﻿/* About Page Styles */

.rc_page_banner {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/about.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

.rc_page_banner_content {
    max-width: 800px;
    padding: 0 20px;
}

.rc_page_banner_content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.rc_page_banner_content p {
    font-size: 18px;
    opacity: 0.9;
}

.rc_about_content {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.rc_about_container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.rc_about_container h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.rc_about_container p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Product Categories Section Styles - Enhanced Version from index.css */

.rc_products_section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.rc_products_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.rc_products_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.rc_products_title {
    text-align: center;
    font-size: 2.5em;
    color: var(--main-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.rc_products_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.rc_products_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Products Display Area */
.rc_products_display {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.rc_products_track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Item - 优化链接样式 */
.rc_product_item {
    flex: 0 0 calc(25% - 20px);
    min-width: calc(25% - 20px);
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    margin-bottom: 20px;
}

.rc_product_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--main-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.rc_product_item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15);
}

.rc_product_item:hover::before {
    transform: scaleX(1);
}

.rc_product_item:active {
    transform: translateY(-8px);
}

.rc_product_image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 1;
}

.rc_product_image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.rc_product_item:hover .rc_product_image::after {
    opacity: 1;
}

.rc_product_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.rc_product_item:hover .rc_product_image img {
    transform: scale(1.1) rotate(1deg);
}

.rc_product_name {
    padding: 20px;
    text-align: center;
    font-size: 1.3em;
    color: var(--main-color);
    font-weight: 600;
    margin: 0;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.rc_product_name::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}

.rc_product_item:hover .rc_product_name {
    color: var(--secondary-color);
}

.rc_product_item:hover .rc_product_name::after {
    width: 50px;
}

/* 确保链接在所有状态下都没有下划线 */
a.rc_product_item,
a.rc_product_item:link,
a.rc_product_item:visited,
a.rc_product_item:hover,
a.rc_product_item:active,
a.rc_product_item:focus {
    text-decoration: none !important;
    outline: none;
}

/* 添加产品描述 */
.rc_product_description {
    padding: 0 20px 20px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.rc_product_item:hover .rc_product_description {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Arrows */
.rc_products_arrow {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.rc_products_arrow:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.rc_products_arrow:active {
    transform: scale(0.95);
}

.rc_products_arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.rc_products_prev {
    order: 0;
}

.rc_products_next {
    order: 2;
}

.rc_products_display {
    order: 1;
}

/* Pagination Dots */
.rc_products_dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.rc_products_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rc_products_dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.rc_products_dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .rc_products_container {
        padding: 0 40px;
    }
}

/* Medium-Large Screens (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .rc_products_title {
        font-size: 2.3em;
    }
    
    .rc_product_item {
        flex: 0 0 calc(25% - 15px);
        min-width: calc(25% - 15px);
    }
}

/* Medium Screens (992px to 1199px) - Show 3 items */
@media (max-width: 1199px) and (min-width: 992px) {
    .rc_products_title {
        font-size: 2.2em;
    }
    
    .rc_product_item {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
    
    .rc_products_arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Tablets (768px to 991px) - Show 2 items */
@media (max-width: 991px) and (min-width: 768px) {
    .rc_products_section {
        padding: 60px 0;
    }
    
    .rc_products_title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .rc_product_item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .rc_products_track {
        gap: 15px;
    }
    
    .rc_products_arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .rc_product_name {
        font-size: 1.1em;
        padding: 15px;
    }
}

/* Mobile Landscape (576px to 767px) - Show 2 items */
@media (max-width: 767px) and (min-width: 576px) {
    .rc_products_section {
        padding: 50px 0;
    }
    
    .rc_products_container {
        padding: 0 15px;
    }
    
    .rc_products_title {
        font-size: 1.8em;
        margin-bottom: 35px;
    }
    
    .rc_product_item {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    
    .rc_products_track {
        gap: 12px;
    }
    
    .rc_products_wrapper {
        gap: 15px;
    }
    
    .rc_products_arrow {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .rc_product_name {
        font-size: 1em;
        padding: 12px;
    }
    
    .rc_products_dots {
        margin-top: 30px;
        gap: 10px;
    }
    
    .rc_products_dot {
        width: 10px;
        height: 10px;
    }
    
    .rc_products_dot.active {
        width: 25px;
    }
}

/* Mobile Portrait (up to 575px) - Show 1 item */
@media (max-width: 575px) {
    .rc_products_section {
        padding: 40px 0;
    }
    
    .rc_products_container {
        padding: 0 10px;
    }
    
    .rc_products_title {
        font-size: 1.6em;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .rc_products_title::after {
        width: 60px;
        height: 3px;
    }
    
    .rc_product_item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .rc_products_track {
        gap: 0;
    }
    
    .rc_products_wrapper {
        gap: 10px;
    }
    
    .rc_products_arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .rc_product_name {
        font-size: 1.1em;
        padding: 15px;
    }
    
    .rc_products_dots {
        margin-top: 25px;
        gap: 8px;
    }
    
    .rc_products_dot {
        width: 8px;
        height: 8px;
    }
    
    .rc_products_dot.active {
        width: 20px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .rc_products_section {
        padding: 35px 0;
    }
    
    .rc_products_title {
        font-size: 1.4em;
        margin-bottom: 25px;
    }
    
    .rc_products_arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .rc_product_name {
        font-size: 1em;
        padding: 12px;
    }
}

/* Smooth animations for all transitions */
@media (prefers-reduced-motion: reduce) {
    .rc_products_track,
    .rc_product_item,
    .rc_product_image img,
    .rc_products_arrow,
    .rc_products_dot {
        transition: none;
    }
}
