/* ===== 全局变量（保留兼容映射，核心变量已在header.php定义）===== */
:root {
    /* 仅保留兼容映射，核心变量已在header.php中定义 */
    --primary-red: var(--jp-red);
    --primary-navy: var(--jp-navy);
    --primary-green: #4CAF50;
    --primary-orange: #FF9800;
    --primary-purple: #9C27B0;
    --light-beige: var(--jp-beige);
    --light-gray: var(--jp-gray);
    --border-gray: var(--jp-light-gray);
    --text-dark: var(--jp-black);
    --text-medium: #666666;
    --text-light: #999999;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius-md: var(--radius);
    --radius-lg: 12px;
    --transition: var(--transition);
    --font-size-body: var(--jp-font-size, 15px);
    --font-size-title: 28px;
    --line-height: 1.8;
}

/* ===== 通用容器样式（非重复）===== */
.container, .category-header-content, .category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== 加载动画 ===== */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--light-gray);
    border-bottom-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-wrapper {
    padding: 60px 0;
    text-align: center;
}

/* ===== 页面通用组件样式 ===== */
.page-section {
    margin-bottom: 60px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: var(--font-size-title);
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-navy);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 英雄区域样式 ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 43, 52, 0.9) 0%, rgba(27, 43, 52, 0.7) 100%), 
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-bottom: 60px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNlOGU2ZTAiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzAgMGw2MCA2MEgwbC02MC02MnoiLz48L2c+PC9nPjwvc3ZnPg==');
    opacity: 0.3;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 48px;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.hero-button:hover::after {
    left: 100%;
}

.hero-button:hover {
    background-color: #a80e27;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* ===== 快速搜索区域样式 ===== */
.quick-search-section, .quick-search-box {
    background-color: white;
    padding: 50px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 60px;
}

.quick-search-title {
    font-size: 24px;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.advanced-search, .quick-search-box .search-form {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-select, .quick-search-box .search-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background-color: white;
}

.search-input, .quick-search-box .search-input {
    flex: 2;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
}

.search-button, .quick-search-box .search-button {
    flex: 0 0 120px;
    padding: 12px 15px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover, .quick-search-box .search-button:hover {
    background-color: #a80e27;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.model-tag {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--border-gray);
    border-radius: 30px;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.model-tag:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.model-tag:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.search-link {
    text-align: center;
    margin-top: 20px;
}

.search-link a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-link a:hover {
    text-decoration: underline;
}

/* ===== 分类导航区域样式 ===== */
.category-section {
    background-color: white;
    padding: 50px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 60px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.category-item {
    flex: 0 0 calc(20% - 15px);
    min-width: 180px;
    text-align: center;
}

.category-link {
    display: block;
    padding: 20px 15px;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-link:hover, .category-link.active {
    background-color: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ===== 分类页专属样式 ===== */
.category-header {
    background-color: var(--light-beige);
    padding: 40px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-gray);
}

.category-breadcrumb {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.category-breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: var(--primary-red);
}

.category-breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

.category-title {
    font-size: 36px;
    color: var(--text-dark);
    font-family: 'Noto Serif JP', "ＭＳ Ｐ明朝", serif;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 16px;
    color: var(--text-medium);
    max-width: 800px;
}

.category-count {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 15px;
}

.category-container {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
}

.category-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.sidebar-category-list {
    list-style: none;
}

.sidebar-category-item {
    margin-bottom: 12px;
}

.sidebar-category-item a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.sidebar-category-item a:hover,
.sidebar-category-item a.active {
    background-color: var(--light-beige);
    color: var(--primary-red);
}

.category-main {
    flex: 1;
}

.product-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-medium);
    font-size: 20px;
}

.product-empty a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}

.free-shipping {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    padding: 3px 8px;
    font-size: 12px;
    color: var(--jp-brown);
    border-radius: 4px;
    z-index: 1;
}

.favorite-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.favorite-btn:hover {
    color: var(--primary-red);
}

/* ===== 信任区域样式 ===== */
.trust-section {
    background-color: white;
    padding: 60px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trust-card {
    background-color: #f8f9fa;
    padding: 30px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-green);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.trust-card:hover::before {
    transform: translateY(0);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-green);
}

.trust-icon {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.trust-card:hover .trust-icon {
    transform: scale(1.1);
}

.trust-title {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.trust-description {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

.payment-shipping-info {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
}

.payment-shipping-info h3 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    text-align: center;
}

.payment-shipping-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.payment-shipping-info li {
    padding: 10px;
    color: var(--text-medium);
    font-size: 14px;
}

.payment-shipping-info strong {
    color: var(--primary-navy);
}

/* ===== 支付/配送独立模块样式（命名空间隔离）===== */
.payment-shipping-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
}
.payment-shipping-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.payment-shipping-grid .payment-col {
    flex: 1;
    min-width: 280px;
}
.payment-shipping-grid .payment-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}
.payment-shipping-grid .payment-icons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    align-items: center;
}
.payment-shipping-grid .payment-icon {
    border-radius: 4px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.payment-shipping-grid .payment-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.payment-shipping-grid .shipping-col {
    flex: 1;
    min-width: 280px;
}
.payment-shipping-grid .shipping-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}
.payment-shipping-grid .shipping-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.payment-shipping-grid .shipping-list li {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
    line-height: 1.5;
}
.payment-shipping-grid .shipping-list li i {
    color: var(--primary-red);
    font-size: 0.8rem;
    min-width: 16px;
    text-align: center;
}

.payment-shipping-grid .highlight {
    color: var(--primary-red);
    font-weight: 500;
}

/* ===== 最近查看弱化样式 ===== */
.secondary-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.small-grid {
    gap: 1rem;
}
.small-card {
    padding: 0.8rem;
}
.small-card .card-image {
    height: 140px;
}
.small-title {
    font-size: 0.9rem;
    line-height: 1.3;
}
.small-price {
    margin: 0.5rem 0;
}
.light-empty {
    padding: 1rem 0;
    color: #888;
}

/* ===== 商品卡片通用样式（整合所有场景）===== */
.products-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

/* 通用商品卡片 */
.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 详情页相关产品卡片兼容 */
.related-products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0;
}

.card-image img.loaded {
    opacity: 1;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-product-code {
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 5px;
    display: block;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-red);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.card-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tag-normal {
    background-color: rgba(102, 102, 102, 0.1);
    color: #666;
}

.tag-new {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-green);
}

.tag-popular {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--primary-orange);
}

.tag-sale {
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--primary-red);
}

.tag-limited {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--primary-purple);
}

.tag-warranty {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-red);
}

/* 商品规格信息样式 */
.card-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-medium);
}

.spec-item {
    padding: 2px 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

/* 价格样式优化 */
.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-red);
    margin: 10px 0;
}

.card-price small {
    font-size: 14px;
    color: var(--text-medium);
    margin-left: 8px;
    font-weight: normal;
}

.original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.sale-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
}

.price-tax {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 400;
    margin-left: 5px;
}

.price-compare {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 10px;
}

.price-shipping {
    font-size: 12px;
    color: var(--primary-green);
    margin-left: 10px;
}

.stock-info {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-info.in-stock {
    color: var(--primary-green);
}

.stock-info.out-stock {
    color: var(--primary-red);
}

.delivery-time {
    font-size: 11px;
    color: var(--text-medium);
}

.card-button, .btn-card {
    display: block;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
}

.card-button.disabled, .btn-card.disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    pointer-events: none;
}

.card-button::after, .btn-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s ease;
}

.card-button:hover::after, .btn-card:hover::after {
    left: 100%;
}

.card-button:hover, .btn-card:hover {
    background-color: #a80e27;
}

/* 多状态徽章样式 */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

.badge-sale {
    background-color: var(--primary-red);
}

.badge-new {
    background-color: var(--primary-green);
}

.badge-popular {
    background-color: var(--primary-orange);
}

.badge-limited {
    background-color: var(--primary-purple);
}

.badge-free-shipping {
    background-color: var(--primary-red);
}

.price-sale-badge {
    background-color: var(--primary-red);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #f44336;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* ===== 推荐商品区域样式 ===== */
.recommend-section {
    margin-bottom: 60px;
}

.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.recommend-badge {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== 特色商品区域样式 ===== */
.featured-section {
    margin-bottom: 60px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    border: 2px solid var(--border-gray);
    transition: var(--transition);
}

.view-all-button:hover {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ===== 最近查看区域样式 ===== */
.recent-section {
    margin-bottom: 60px;
}

/* ===== 筛选区域样式 ===== */
.filter-section {
    background-color: white;
    padding: 50px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 60px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.filter-button {
    padding: 10px 20px;
    background-color: var(--light-gray);
    color: var(--primary-navy);
    border: 2px solid transparent;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
}

/* ===== FAQ区域样式（整合详情页FAQ）===== */
.faq-section {
    background-color: white;
    padding: 50px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 60px;
}

/* 详情页FAQ样式（命名空间隔离） */
.product-detail .faq-section {
    padding: 30px;
    margin-bottom: 40px;
    border-radius: var(--radius-md);
}
.product-detail .faq-title {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    font-family: 'Noto Serif JP', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-detail .faq-item {
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}
.product-detail .faq-item:hover {
    border-color: var(--primary-green);
}
.product-detail .faq-question {
    padding: 18px 20px;
    background: #f8f9fa;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.product-detail .faq-question:hover {
    background: #f0f0f0;
}
.product-detail .faq-answer {
    padding: 20px;
    display: none;
    line-height: 1.7;
    background: white;
}
.product-detail .faq-answer.active {
    display: block;
}
.product-detail .faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}
.product-detail .faq-answer li {
    margin-bottom: 8px;
}

/* 通用FAQ样式 */
.faq-item {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 15px;
}

.faq-question {
    font-size: 16px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 20px;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== 空状态样式 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    margin: 20px 0;
}

.empty-state i {
    font-size: 48px;
    color: var(--border-gray);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.empty-state p {
    margin-bottom: 20px;
}

.empty-action {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-red);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.empty-action:hover {
    background-color: #a80e27;
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background-color: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Noto Sans JP', sans-serif;
}

.pagination-btn:hover {
    background-color: var(--light-beige);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination-btn.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0 15px;
}

/* ===== 产品详情页专属样式 ===== */
/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #8b5a2b;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 产品主区域 */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.product-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* 图片下方信息卡片 */
.image-info-card {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: left;
    border: 1px solid var(--border-gray);
}

.image-info-card h4 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.spec-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.spec-summary-item .spec-label {
    color: #666;
    font-size: 15px;
    width: 45%;
}

.spec-summary-item .spec-value {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 15px;
    width: 55%;
    text-align: right;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: white;
    border: 1px solid var(--border-gray);
}

.quick-links a:hover {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* 右侧详情区域 */
.product-details {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-primary-info {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-secondary-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 产品标题 */
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-family: 'Noto Serif JP', serif;
    line-height: 1.3;
}

.product-full-title {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* 商品标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

/* 信任标签 */
.trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.trust-tag {
    background: var(--primary-green);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 价格区域 */
.price-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.price-area .original-price {
    font-size: 18px;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-red);
}

.price-area .sale-price {
    font-size: 28px;
}

.tax-label {
    font-size: 16px;
    color: #666;
}

.discount-badge {
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.price-area .stock-badge {
    position: static;
    display: inline-block;
    background: var(--primary-green);
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 13px;
}

.price-area .stock-badge.out-of-stock {
    background: #FF5252;
}

.shipping-info {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 商品基本信息 */
.product-base-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 15px;
}

/* 评分区域 */
.rating-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    margin-top: 20px;
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rating-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-value {
    font-size: 48px;
    font-weight: bold;
    color: #FF9800;
    line-height: 1;
}

.rating-stars {
    color: #FF9800;
    font-size: 20px;
    margin: 10px 0;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 30px;
    font-size: 14px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-progress-bar {
    height: 100%;
    background: #FF9800;
}

.rating-percent {
    width: 40px;
    font-size: 14px;
    text-align: right;
    color: #666;
}

/* 规格表 */
.specs-box {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    display: none;
}

.specs-box h3 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.specs-box .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    background: transparent;
    border-radius: 0;
}

.specs-box .spec-label {
    color: #666;
    font-size: 15px;
}

.specs-box .spec-value {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 15px;
}

/* 购买区域 */
.buy-box {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-red);
    box-shadow: var(--shadow-light);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-label {
    font-weight: 500;
    font-size: 16px;
    color: var(--primary-navy);
}

.quantity-control {
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-navy);
    color: white;
}

.qty-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 0 5px;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-cart {
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-cart:hover {
    background: #a80e27;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-buy {
    padding: 16px;
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-buy:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 43, 52, 0.3);
}

.btn-buy:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 保证区域 */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guarantee-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.guarantee-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.guarantee-icon {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.guarantee-title {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 500;
}

.guarantee-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 标签页样式 */
.tabs-section {
    margin-bottom: 50px;
}

.tab-buttons {
    display: flex;
    background: #f5f5f5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.tab-btn {
    padding: 18px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: var(--transition);
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: white;
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-light);
}

.tab-content.hidden {
    display: none;
}

/* 相关产品 */
.related-products {
    margin-bottom: 50px;
}

.related-products .section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-navy);
    font-family: 'Noto Serif JP', serif;
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    font-size: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== 响应式设计（移除header相关规则，保留其他页面响应式）===== */
@media (max-width: 1200px) {
    .container, .category-header-content, .category-container {
        padding: 0 30px;
    }
    .category-item {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-description {
        font-size: 18px;
    }
    .section-title {
        font-size: 28px;
    }
    .category-item {
        flex: 0 0 calc(33.333% - 15px);
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid, .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    /* 产品详情页适配 */
    .product-main {
        gap: 30px;
    }
    .product-image {
        max-width: 100%;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 分类页适配 */
    .category-title {
        font-size: 30px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    .pagination-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-description {
        font-size: 16px;
    }
    .hero-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .section-title {
        font-size: 24px;
    }
    .category-item {
        flex: 0 0 calc(50% - 15px);
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .products-grid, .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .card-image {
        height: 180px;
    }
    .filter-buttons {
        gap: 8px;
    }
    .filter-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    /* 支付/配送模块适配 */
    .payment-shipping-grid {
        gap: 1.2rem;
    }
    .payment-shipping-grid .payment-col, 
    .payment-shipping-grid .shipping-col {
        min-width: 100%;
    }
    /* 独立搜索框适配 */
    .quick-search-box .search-form {
        flex-direction: column;
        gap: 0.6rem;
    }
    .quick-search-box .search-input, 
    .quick-search-box .search-select, 
    .quick-search-box .search-button {
        flex: none;
        width: 100%;
    }
    .payment-shipping-grid .payment-icons {
        flex-wrap: wrap;
    }
    /* 产品详情页适配 */
    .product-main {
        flex-direction: column;
        gap: 20px;
    }
    .product-image {
        order: 1;
    }
    .product-details {
        order: 2;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    .rating-header {
        flex-direction: column;
        gap: 20px;
    }
}