/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #c9a96e;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ========== 颜色变量 ========== */
:root {
    --primary: #c9a96e;
    --primary-dark: #a88a4f;
    --secondary: #2c2c2c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ========== 顶部导航栏 ========== */
.top-bar {
    background: var(--secondary);
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ccc;
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--primary);
}

/* 主导航 */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary);
}

.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 6px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 150px;
    font-size: 14px;
}

.search-box button {
    background: none;
    color: var(--text-gray);
    font-size: 16px;
}

.cart-btn {
    position: relative;
    font-size: 22px;
    color: var(--secondary);
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

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

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
}

/* ========== 轮播 Banner ========== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,44,44,0.7), rgba(201,169,110,0.3));
}

.hero-slide-1 {
    background: linear-gradient(135deg, #2c2c2c, #4a3f35);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #c9a96e, #8b7355);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots span.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ========== 分类导航 ========== */
.category-nav {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-light);
}

.category-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
}

/* ========== 区块标题 ========== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 15px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== 商品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .placeholder-icon {
    font-size: 80px;
    color: #ccc;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-badge.hot {
    background: #e74c3c;
}

.product-badge.new {
    background: #27ae60;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.product-actions button:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.price-current {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

.price-original {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-gray);
}

.stars {
    color: #f39c12;
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--primary);
}

/* ========== 特色服务 ========== */
.features {
    background: var(--bg-white);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== 商品详情页 ========== */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-main-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main-image .placeholder-icon {
    font-size: 150px;
    color: #ccc;
}

.detail-thumbnails {
    display: flex;
    gap: 15px;
}

.detail-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.detail-thumb.active {
    border-color: var(--primary);
}

.detail-thumb:hover {
    border-color: var(--primary);
}

.detail-info h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.detail-price-box {
    background: #fff8f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.detail-price {
    color: #e74c3c;
    font-size: 32px;
    font-weight: bold;
}

.detail-price .currency {
    font-size: 16px;
}

.detail-price .original {
    color: var(--text-light);
    font-size: 16px;
    text-decoration: line-through;
    margin-left: 15px;
    font-weight: normal;
}

.detail-discount {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.detail-specs {
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.spec-label {
    width: 80px;
    color: var(--text-gray);
    flex-shrink: 0;
}

.spec-value {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-variants {
    margin-bottom: 25px;
}

.variant-label {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.variant-options {
    display: flex;
    gap: 10px;
}

.variant-option {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.variant-option.active,
.variant-option:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.detail-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-label {
    font-size: 14px;
    color: var(--text-gray);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    font-size: 18px;
    color: var(--text-dark);
}

.quantity-control button:hover {
    background: var(--primary);
    color: white;
}

.quantity-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

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

.btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

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

.btn-secondary:hover {
    background: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
}

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

.btn-block {
    width: 100%;
}

/* 商品详情 Tab */
.detail-tabs {
    background: var(--bg-white);
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-item {
    padding: 18px 30px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.tab-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.cart-table-wrap {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--bg-light);
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.cart-table td {
    padding: 20px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}

.cart-product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-product-spec {
    font-size: 12px;
    color: var(--text-gray);
}

.cart-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.cart-remove {
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    background: none;
}

.cart-remove:hover {
    color: #e74c3c;
}

.cart-summary {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-label {
    color: var(--text-gray);
}

.summary-total {
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
}

.cart-coupon {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.cart-coupon input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.cart-coupon input:focus {
    border-color: var(--primary);
}

/* 空购物车 */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

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

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.checkout-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

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

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option.active {
    border-color: var(--primary);
    background: #fff9f0;
}

.payment-option input[type="radio"] {
    accent-color: var(--primary);
}

.payment-icon {
    font-size: 28px;
}

.payment-info {
    flex: 1;
}

.payment-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.payment-info p {
    font-size: 12px;
    color: var(--text-gray);
}

.order-summary {
    position: sticky;
    top: 100px;
}

/* ========== 页面通用 ========== */
.page-header {
    background: linear-gradient(135deg, var(--secondary), #3a3a3a);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 15px;
    opacity: 0.8;
}

/* ========== 关于我们 ========== */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
}

.stats-section {
    background: var(--bg-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 15px;
}

/* ========== 联系我们 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-form-wrap {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

/* ========== 商品列表页 ========== */
.products-page {
    padding: 40px 0;
}

.products-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-category {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-category:hover,
.sidebar-category.active {
    color: var(--primary);
    padding-left: 5px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.products-count {
    font-size: 14px;
    color: var(--text-gray);
}

.products-sort {
    display: flex;
    gap: 15px;
    align-items: center;
}

.products-sort label {
    font-size: 14px;
    color: var(--text-gray);
}

.products-sort select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    color: white;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
}

/* ========== 弹窗/通知 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-msg {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 14px;
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        padding: 12px 20px;
        border-top: none;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-gray);
    }
}

/* ========== 政策 / 合规页面 ========== */
.policy-section {
    padding: 50px 0;
}

.policy-wrap {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 45px 50px;
    max-width: 960px;
    margin: 0 auto;
}

.policy-wrap h2 {
    font-size: 20px;
    color: var(--secondary);
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.policy-wrap h2:first-of-type {
    margin-top: 0;
}

.policy-wrap p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 10px;
}

.policy-wrap ul {
    list-style: disc;
    padding-left: 24px;
    margin: 8px 0 16px;
}

.policy-wrap li {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
}

.policy-meta {
    color: var(--text-light);
    font-size: 13px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faq-a {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.85;
}

.qual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

.qual-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    line-height: 1.7;
}

.qual-row .k {
    color: var(--text-gray);
    flex-shrink: 0;
    width: 110px;
}

.qual-row .v {
    color: var(--text-dark);
    word-break: break-all;
}

@media (max-width: 768px) {
    .policy-wrap {
        padding: 28px 22px;
    }

    .qual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
}
