/*
Theme Name: GannanOrange
Theme URI: https://example.com/gannanorange
Author: WordPress Developer
Author URI: https://example.com
Description: 专业的赣南脐橙及地方特产商城主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gannanorange
Tags: e-commerce, responsive-layout, accessibility-ready, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, post-formats, rtl-language-support, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 轮播组件样式 */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* 设置轮播高度 */
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-item:hover .slider-image {
    transform: scale(1.05);
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.slider-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.slider-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 轮播控制按钮 */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.indicator:hover {
    background: var(--primary-light);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .slider-container {
        height: 400px;
    }
    
    .slider-content h2 {
        font-size: 28px;
    }
    
    .slider-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    
    .slider-content h2 {
        font-size: 24px;
    }
    
    .slider-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 25px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 300px;
    }
    
    .slider-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .slider-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .slider-content .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .slider-control {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slider-indicators {
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 20px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 主色调定义 */
:root {
    --primary-color: #FF7F00; /* Pantone 15-1148 近似色 */
    --primary-dark: #E67300;
    --primary-light: #FF9F40;
    --primary-hover: #CC6600;
    --accent-color: #FF4500;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #999999;
    --dark-gray: #2C3E50;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 通用链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 容器样式 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

/* 子菜单样式 */
.nav-menu .sub-menu,
.nav-menu .children {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 200px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scaleY(0.95);
    transform-origin: top left;
    pointer-events: none;
    transition: 
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    list-style: none;
}

.nav-menu .sub-menu li,
.nav-menu .children li {
    width: 100%;
}

.nav-menu .sub-menu li a,
.nav-menu .children li a {
    padding: 8px 20px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .children li a:hover {
    background-color: var(--light-gray);
}

/* 有子菜单的菜单项样式 */
.nav-menu li.menu-item-has-children > a,
.nav-menu li.page_item_has_children > a {
    position: relative;
    padding-right: 20px;
}

/* 添加展开/收起图标 */
.nav-menu li.menu-item-has-children > a::after,
.nav-menu li.page_item_has_children > a::after {
    content: '▼';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* 展开状态样式 */
.nav-menu li.menu-item-has-children.open > a::after,
.nav-menu li.page_item_has_children.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.nav-menu li.menu-item-has-children.open > .sub-menu,
.nav-menu li.menu-item-has-children.open > .children,
.nav-menu li.page_item_has_children.open > .sub-menu,
.nav-menu li.page_item_has_children.open > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}

/* 移动端菜单样式 */
@media (max-width: 768px) {
    .nav-menu .sub-menu,
    .nav-menu .children {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }
    
    .nav-menu li.menu-item-has-children.open > .sub-menu,
    .nav-menu li.menu-item-has-children.open > .children,
    .nav-menu li.page_item_has_children.open > .sub-menu,
    .nav-menu li.page_item_has_children.open > .children {
        max-height: 500px;
    }
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

/* 产品卡片样式 */
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-content {
    padding: 20px;
}

.product-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 产品库存状态样式 */
.product-card-stock {
    margin-bottom: 15px;
}

.stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* 产品参数样式 */
.product-card-params {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.product-param-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.product-param-item:last-child {
    margin-bottom: 0;
}

.param-label {
    color: #666;
    font-weight: 500;
}

.param-value {
    color: #333;
    font-weight: 600;
}

.stock.instock {
    background-color: #E8F5E8;
    color: var(--success-color);
}

.stock.outofstock {
    background-color: #FFF0F0;
    color: var(--error-color);
}

.stock.onbackorder {
    background-color: #FFF9E6;
    color: var(--warning-color);
}

/* 产品网格响应式布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-card img {
        height: 220px;
    }
    
    .product-card-content {
        padding: 15px;
    }
    
    .product-card-title {
        font-size: 16px;
    }
    
    .product-card-price {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
    color: var(--white);
}

/* 产品详情页样式 */
.product-detail {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin: 20px 0;
    transition: box-shadow var(--transition);
}

.product-detail:hover {
    box-shadow: var(--shadow-lg);
}

.product-detail-row {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.product-images {
    flex: 1;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-info {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail-images img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.thumbnail-images img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.thumbnail-images img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.2);
}

.product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
    line-height: 1.3;
}

/* 面包屑样式优化 */
.breadcrumb {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 15px;
}

.breadcrumb li::after {
    content: '>';
    margin: 0 10px;
    color: var(--border-color);
    font-size: 12px;
    font-weight: 400;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li:last-child {
    margin-right: 0;
    font-weight: 600;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: all var(--transition);
    font-weight: 400;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb li:last-child a {
    color: var(--dark-gray);
    font-weight: 600;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 15px;
        padding: 10px 0;
        font-size: 13px;
    }
    
    .breadcrumb li {
        margin-right: 10px;
    }
    
    .breadcrumb li::after {
        margin: 0 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb li {
        margin-right: 8px;
    }
    
    .breadcrumb li::after {
        margin: 0 6px;
    }
}

.product-price-section {
    margin-bottom: 35px;
    padding: 25px;
    background-color: #FFF9F0;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.product-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.product-meta {
    color: var(--medium-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.stock-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.stock-status.in-stock {
    background-color: #E8F5E8;
    color: var(--success-color);
}

.stock-status.out-of-stock {
    background-color: #FFF0F0;
    color: var(--error-color);
}

.stock-status.on-backorder {
    background-color: #FFF9E6;
    color: var(--warning-color);
}

/* 产品属性样式 */
.product-attributes {
    margin-bottom: 35px;
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.attributes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attributes-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.attributes-list li:last-child {
    border-bottom: none;
}

.attributes-list li strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* 数量控制样式优化 */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quantity-input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

/* 操作按钮样式优化 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.action-buttons .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.action-buttons .btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-buttons .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-buttons .btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-buttons .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 联系方式板块样式 */
.contact-info-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #F0F8FF;
    border-radius: var(--border-radius);
    border: 1px solid #E0F0FF;
}

.contact-info-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--dark-gray);
}

.wechat-qrcode-small {
    margin-top: 15px;
    text-align: center;
}

.wechat-qrcode-small img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.wechat-qrcode-small img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.wechat-qrcode-small p {
    margin-top: 8px;
    font-size: 12px;
    color: var(--medium-gray);
    font-weight: 500;
}

/* 产品内容区域样式 */
.product-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.product-description,
.product-params,
.product-reviews,
.shipping-info {
    margin-bottom: 50px;
    padding: 35px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-description h3,
.product-params h3,
.product-reviews h3,
.shipping-info h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 24px;
    font-weight: 700;
}

/* 产品参数表格样式优化 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.params-table th,
.params-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.params-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 35%;
}

.params-table tr:nth-child(even) {
    background-color: #FFF9F0;
}

.params-table tr:hover {
    background-color: #FFF0E0;
    transition: background-color var(--transition);
}

.params-table tr:last-child th,
.params-table tr:last-child td {
    border-bottom: none;
}

/* 产品评价样式优化 */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #F8F9FA;
    border-radius: var(--border-radius);
}

.review-rating {
    text-align: center;
    flex: 1;
}

.rating-stars {
    margin-bottom: 15px;
}

.rating-stars .star {
    font-size: 24px;
    color: #FFD700;
    margin: 0 2px;
}

.rating-score {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.rating-count {
    font-size: 14px;
    color: var(--medium-gray);
    font-weight: 500;
}

.rating-breakdown {
    flex: 2;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-label {
    width: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease-out;
}

.rating-percentage {
    width: 45px;
    font-size: 12px;
    color: var(--medium-gray);
    text-align: right;
    font-weight: 500;
}

/* 评价列表样式 */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #F8F9FA;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 16px;
}

.reviewer-info .rating-stars .star {
    font-size: 16px;
    color: #FFD700;
}

.review-date {
    font-size: 14px;
    color: var(--medium-gray);
}

.review-content {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.review-actions {
    text-align: center;
    margin-top: 40px;
}

/* 配送信息样式 */
.shipping-info p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.shipping-tracking {
    margin-top: 30px;
    padding: 25px;
    background-color: #E8F5E8;
    border-radius: var(--border-radius);
    border: 1px solid #C8E6C8;
}

.shipping-tracking h4 {
    margin-bottom: 20px;
    color: var(--success-color);
    font-size: 18px;
    font-weight: 600;
}

.tracking-form {
    display: flex;
    gap: 15px;
}

.tracking-form input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all var(--transition);
}

.tracking-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

.tracking-form .btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

/* 相关产品样式优化 */
.related-products {
    margin-bottom: 50px;
    padding: 35px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.related-products h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 24px;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 联系我们板块样式 */
.contact-section.product-contact {
    margin-top: 50px;
    padding: 35px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-section.product-contact h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 24px;
    font-weight: 700;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background-color: #F8F9FA;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info h4 {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 18px;
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--dark-gray);
}

.contact-info ul li:last-child {
    border-bottom: none;
}

.contact-info ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 在线咨询表单样式 */
.contact-form-container {
    flex: 2;
    background-color: #F8F9FA;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form-container h4 {
    margin-bottom: 25px;
    color: var(--dark-gray);
    font-size: 18px;
    font-weight: 600;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all var(--transition);
    font-family: inherit;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.contact-form .btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 文章管理样式 */

/* 文章列表页面 */
.articles-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 搜索和筛选区域 */
.articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
}

/* 文章列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章项 */
.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-thumbnail {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.article-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--medium-gray);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    font-weight: 500;
    color: var(--dark-gray);
}

.publish-date, .read-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 10px 0;
}

.read-more {
    margin-top: auto;
}

/* 分页控件 */
.articles-pagination {
    margin-top: 30px;
    text-align: center;
}

.articles-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.articles-pagination .nav-links a, 
.articles-pagination .nav-links span {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.articles-pagination .nav-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.articles-pagination .nav-links .current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 加载更多按钮 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--medium-gray);
    color: var(--white);
}

/* 文章详情页面 */
.post-detail-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-gray);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: var(--medium-gray);
}

.post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-role {
    font-size: 12px;
    color: var(--primary-color);
}

.publish-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: var(--dark-gray);
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: var(--dark-gray);
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--medium-gray);
}

.post-tags a {
    padding: 5px 12px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 分享功能 */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: var(--medium-gray);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    padding: 8px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: var(--white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 相关文章 */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-item {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-post-thumbnail {
    height: 150px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    font-size: 13px;
    color: var(--medium-gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .articles-container {
        padding: 15px;
    }
    
    .articles-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .article-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .article-thumbnail {
        flex: 0 0 auto;
        height: auto;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-detail-container {
        padding: 15px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .publish-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-excerpt {
        font-size: 14px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 22px;
    }
    
    .post-content h3 {
        font-size: 18px;
    }
}

/* 购物车页面样式 */
.cart-page {
    padding: 40px 0;
}

.cart-page .page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-gray);
    text-align: center;
}

.cart-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

/* 购物车为空时的样式 */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.empty-cart-message p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* 购物车表格样式 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table thead {
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--primary-color);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

/* 购物车选择列 */
.cart-select {
    width: 60px;
}

.cart-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* 购物车商品信息列 */
.cart-item {
    width: 40%;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-image img:hover {
    transform: scale(1.05);
}

.cart-item-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.cart-item-details .cart-item-sku {
    font-size: 14px;
    color: var(--medium-gray);
}

/* 购物车价格列 */
.cart-price {
    width: 15%;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 16px;
}

/* 购物车数量列 */
.cart-quantity {
    width: 20%;
}

.cart-quantity .quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity .quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.cart-quantity .quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.cart-quantity .quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
}

/* 购物车小计列 */
.cart-subtotal {
    width: 15%;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 16px;
}

/* 购物车操作列 */
.cart-action {
    width: 10%;
}

.cart-action .btn-remove {
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-action .btn-remove:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* 购物车底部样式 */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.cart-summary {
    text-align: right;
    background-color: var(--light-gray);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.summary-value {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.btn-checkout {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-checkout:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cart-content {
        padding: 20px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 15px 10px;
    }
    
    .cart-item-info {
        gap: 15px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details h4 {
        font-size: 14px;
    }
    
    .cart-item-details .cart-item-sku {
        font-size: 12px;
    }
    
    .cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cart-actions {
        justify-content: center;
    }
    
    .cart-summary {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cart-page .page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table th,
    .cart-table td {
        display: block;
        text-align: right;
    }
    
    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
    }
    
    .cart-table td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
        position: relative;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        width: 50%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--dark-gray);
    }
    
    .cart-item-info {
        justify-content: flex-end;
    }
    
    .cart-quantity .quantity-control {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .cart-content {
        padding: 15px;
    }
    
    .cart-page .page-title {
        font-size: 24px;
    }
    
    .cart-item-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-summary {
        padding: 15px 20px;
    }
    
    .summary-row {
        font-size: 14px;
    }
    
    .summary-value {
        font-size: 16px;
    }
    
    .btn-checkout {
        font-size: 16px;
        padding: 10px 30px;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-detail {
        padding: 30px;
    }
    
    .product-detail-row {
        gap: 30px;
    }
    
/* 独立用户系统样式 */
.default-avatar {
  width: 150px;
  height: 150px;
  background-color: #1a73e8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.user-profile-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.user-profile-sidebar {
  width: 250px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
}

.user-profile-content {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-profile-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.user-profile-menu li {
  margin: 10px 0;
}

.user-profile-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.user-profile-menu li a:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

.user-profile-menu li.active a {
  background: #1a73e8;
  color: white;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.profile-info-item {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.profile-info-label {
  font-weight: bold;
  color: #666;
  margin-right: 10px;
}

.user-logout {
  margin-top: 30px;
}

.user-message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  font-weight: bold;
}

.user-message-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.user-message-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.user-message-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.user-message-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-detail-row {
        flex-direction: column;
    }
    
    .product-images,
    .product-info {
        flex: none;
        width: 100%;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 30px;
    }
    
    .review-rating,
    .rating-breakdown {
        flex: none;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-info,
    .contact-form-container {
        flex: none;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 移动端菜单样式 */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* 产品详情页响应式 */
    .product-detail {
        padding: 25px;
        margin: 10px 0;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-content {
        padding: 25px;
    }
    
    .product-description,
    .product-params,
    .product-reviews,
    .shipping-info,
    .related-products,
    .contact-section.product-contact {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .product-price-section {
        padding: 15px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .quantity-control {
        gap: 10px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 60px;
        height: 35px;
    }
    
    .params-table th,
    .params-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .params-table th {
        width: 40%;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 20px 0;
    }
    
    .product-detail {
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-detail-row {
        gap: 20px;
    }
    
    .product-images,
    .product-info {
        padding: 15px;
    }
    
    .main-image {
        margin-bottom: 15px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail-images img {
        width: 60px;
        height: 60px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .product-attributes {
        padding: 15px;
    }
    
    .attributes-list li {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-description h3,
    .product-params h3,
    .product-reviews h3,
    .shipping-info h3,
    .related-products h3,
    .contact-section.product-contact h3 {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rating-score {
        font-size: 36px;
    }
    
    .rating-stars .star {
        font-size: 20px;
    }
    
    .rating-item {
        gap: 10px;
    }
    
    .rating-label {
        width: 30px;
        font-size: 13px;
    }
    
    .rating-percentage {
        width: 40px;
        font-size: 11px;
    }
}

/* 结算页面样式 */
.checkout-page {
    padding: 40px 0;
}

.checkout-page .page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-gray);
    text-align: center;
}

/* 结算步骤指示器 */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 20px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.checkout-steps .step::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.checkout-steps .step:last-child::after {
    display: none;
}

.checkout-steps .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--medium-gray);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 2;
    transition: all var(--transition);
    border: 3px solid transparent;
}

.checkout-steps .step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    text-align: center;
    transition: color var(--transition);
}

.checkout-steps .step.active .step-number {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.checkout-steps .step.active .step-title {
    color: var(--primary-color);
}

.checkout-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 订单确认区域 */
.order-summary-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.order-summary-section h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 20px;
    font-weight: 700;
}

.order-items {
    margin-bottom: 20px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.order-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.order-table th,
.order-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.order-table td {
    font-size: 14px;
    color: var(--dark-gray);
}

.checkout-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.checkout-item-image img:hover {
    transform: scale(1.05);
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 5px;
    font-size: 14px;
}

.checkout-item-sku {
    font-size: 12px;
    color: var(--medium-gray);
}

.checkout-price,
.checkout-quantity,
.checkout-subtotal {
    font-weight: 600;
    color: var(--dark-gray);
}

.checkout-subtotal {
    color: var(--accent-color);
}

/* 订单总计 */
.order-totals {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.total-row:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    font-weight: 700;
}

.total-label {
    color: var(--dark-gray);
}

.total-value {
    color: var(--accent-color);
    font-weight: 600;
}

.total-row:last-child .total-value {
    font-size: 20px;
    color: var(--accent-color);
}

/* 收货地址区域 */
.shipping-address-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.shipping-address-section h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 20px;
    font-weight: 700;
}

/* 地址验证提示 */
.address-validation {
    background-color: #FFF9E6;
    border: 1px solid #FFE0B2;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.validation-message p {
    color: var(--warning-color);
    font-weight: 500;
    margin: 0;
}

/* 地址选择 */
.address-selection {
    margin-bottom: 20px;
}

.existing-addresses {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    background-color: var(--light-gray);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.address-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.address-info h4 {
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 600;
}

.address-phone {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.address-location {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.6;
}

.address-default {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.address-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* 新增地址表单 */
.new-address-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.new-address-form h4 {
    margin-bottom: 25px;
    color: var(--dark-gray);
    font-size: 18px;
    font-weight: 600;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all var(--transition);
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* 联系方式管理 */
.contact-methods {
    margin-bottom: 20px;
}

.contact-methods h5 {
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 600;
}

.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-method-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.contact-method-item .form-row {
    margin-bottom: 0;
}

.contact-actions {
    flex: 0 0 auto;
}

.contact-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* 支付方式区域 */
.payment-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.payment-section h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-gray);
    font-size: 20px;
    font-weight: 700;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-gray);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.payment-method:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.payment-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    color: var(--dark-gray);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.wechat-icon::before {
    content: "💬";
}

.alipay-icon::before {
    content: "💰";
}

.bank-icon::before {
    content: "💳";
}

/* 结算操作按钮 */
.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-color);
}

.checkout-actions .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.checkout-actions .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.checkout-actions .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.checkout-actions .btn-secondary {
    background-color: var(--white);
    color: var(--dark-gray);
    border: 2px solid var(--medium-gray);
}

.checkout-actions .btn-secondary:hover {
    background-color: var(--medium-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--error-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shipping-address-section,
    .payment-section,
    .order-summary-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .checkout-page .page-title {
        font-size: 28px;
    }
    
    .checkout-content {
        padding: 30px;
    }
    
    .checkout-steps {
        gap: 40px;
    }
    
    .step-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 20px 0;
    }
    
    .checkout-page .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    
    .checkout-steps .step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        max-width: none;
    }
    
    .checkout-steps .step::after {
        display: none;
    }
    
    .checkout-steps .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .checkout-content {
        padding: 20px;
        gap: 20px;
    }
    
    .order-summary-section,
    .shipping-address-section,
    .payment-section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .contact-method-item .form-row {
        flex-direction: column;
    }
    
    .address-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .address-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .order-table th,
    .order-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .checkout-item-info {
        gap: 10px;
    }
    
    .checkout-item-image {
        width: 50px;
        height: 50px;
    }
    
    .checkout-item-name {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .checkout-content {
        padding: 15px;
    }
    
    .checkout-steps {
        padding: 15px;
    }
    
    .order-summary-section,
    .shipping-address-section,
    .payment-section {
        padding: 15px;
    }
    
    .new-address-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkout-actions .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}