﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 状态栏 - 与index.html保持一致 */
.status-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar i {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0,255,136,0.3);
}

/* 顶部导航栏 - 与index.html保持一致 */
.top-nav {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(48,188,244,0.3);
}

.back-btn {
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
    border: none;
}

.back-btn:hover {
    transform: scale(1.1);
}

.title-section {
    text-align: center;
    margin-right: -30px;
}

.main-title {
    font-size: 27px;
    font-weight: bold;
    color: black;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sub-title {
    font-size: 12px;
    color: rgb(0 0 0 / 80%);
}

.action-btn {
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
    border: none;
    margin-left: 10px;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* 图片轮播 - 支持触摸滑动 */
.image-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: white;
    cursor: grab;
}

.image-carousel:active {
    cursor: grabbing;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    width: 400%; /* 4张图片的宽度 */
}

.carousel-slide {
    width: 25%; /* 每张图片占25%宽度 */
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 产品信息 */
.product-info {
    /* background: white; */
    padding: 0;
    text-align: center;
    margin: 5px;
    border-radius: 16px;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.1); */
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-brand {
    font-size: 14px;
    color: var(--theme-color);
    font-weight: 600;
    text-align: center;
    /* line-height: 33px; */
    overflow: hidden;
    width: 80px;
    font-size: 13px;
    display: block;
    text-overflow: ellipsis;
    white-space:nowrap;
}

.product-price {
    /* display: flex; */
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.price-symbol {
    font-size: 16px;
    color: #e74c3c;
    font-weight: 600;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.price-unit {
    font-size: 14px;
    color: #6c757d;
}

/* 规格选择 */
.spec-section {
    margin-bottom: 20px;
}

.spec-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

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

.spec-option {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.spec-option:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-2px);
}

.spec-option.active {
    border-color: var(--theme-color);
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(48,188,244,0.3);
}

/* 产品详情表格 */
.product-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
}

.detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

/* 产品描述 */
.product-description {
    background: white;
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 100px; /* 为底部导航留出空间 */
}

.description-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.description-content {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 10px;
}

/* 底部购买栏 */
.bottom-purchase {
    position: fixed;
    bottom: 80px; /* 为底部导航留出空间 */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 100;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #6c757d;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    color: white;
}

.purchase-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #30bcf4 0%, #3892ef 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231,76,60,0.4);
}

/* 底部导航 - 与index.html保持一致 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 0px 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 12px;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-icon i {
    color: #6c757d;
    transition: all 0.3s ease;
}

.active .nav-icon {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    box-shadow: 0 4px 15px rgba(48,188,244,0.3);
}

.active .nav-icon i {
    color: white;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.active {
    color: var(--theme-color);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .image-carousel {
        height: 250px;
    }

    .product-title {
        font-size: 24px;
    }

    .price-value {
        font-size: 24px;
    }

    .spec-option {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info,
.product-description {
    animation: fadeInUp 0.6s ease forwards;
}

.product-description {
    animation-delay: 0.2s;
} 

/* 视频列表专用样式 */
.video-list-container {
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.video-list-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.video-list-subtitle {
    font-size: 14px;
    color: #7f8c8d;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--theme-color);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
}

.video-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-category {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 188, 244, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 188, 244, 0.4);
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal video {
    width: 100%;
    height: auto;
}

/* 字体定义 */
@font-face {
    font-family: 'Heavy';
    src: url('../font/Heavy.ttf') format('truetype');
}

.font1 {
    font-family: "Heavy";
}

/* 图标颜色定义 */
.fa-arrow-left:before {
    content: "\f060";
    color: #000;
}

.fa-magnifying-glass:before, .fa-search:before {
    content: "\f002";
    color: #ffffff;
}

/* 视频列表响应式设计 - 所有设备都显示两列 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-list-container {
        padding: 15px 10px;
    }

    .video-list-title {
        font-size: 20px;
    }

    .video-card {
        border-radius: 10px;
    }

    .video-thumbnail {
        height: 120px;
    }

    .play-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-info {
        padding: 10px;
    }

    .video-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .video-description {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .video-meta {
        font-size: 10px;
    }

    .video-category {
        font-size: 10px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }
}

/* 确保在所有桌面和平板设备上一行显示两个视频 */
@media (min-width: 769px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
} 
.bottom-nav a{text-decoration:none}
/* 底部导航固定（兜底） */
.bottom-nav {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
}
/* 购物车角标（底部导航内） */
.nav-icon {
    position: relative;
}
.nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ff0626;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
}
/* 分类/产品卡片防止溢出 */
.category-card,
.product-card {
    min-width: 0;
}

/* 搜索功能样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

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

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.close-search {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.close-search:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.search-input-group {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    border-color: var(--theme-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(48, 188, 244, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
}

.search-suggestions {
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.suggestion-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
}

.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn.primary {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(48, 188, 244, 0.3);
}

.search-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 188, 244, 0.4);
}

.search-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.search-btn.secondary:hover {
    background: #e9ecef;
}

/* 提示信息样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== 顶栏白色（重设计） ===== */
.top-nav {
    background:
        radial-gradient(circle at 15% -60%, rgba(48, 188, 244, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 130%, rgba(48, 188, 244, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.title-section {
    text-align: center;
    margin-right: 0;
}
.main-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: none;
}
.sub-title {
    color: #8a93a1;
    font-size: 11px;
    margin-top: 2px;
    letter-spacing: 1px;
}
.back-btn {
    display: flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
}
.back-btn img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(48, 188, 244, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30bcf4 0%, #3892ef 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(48, 188, 244, 0.35);
}

/* ===== 分页 ===== */
.pagebar {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pagination a {
    background: #3892ef;
    border: 1px solid #ccc;
    color: #fff;
    font-size: 14px;
    padding: 8px 13px;
    border-radius: 8px;
    text-decoration: none;
}
.pagination a:hover {
    color: #4fc08d;
    border-color: #4fc08d;
}
.pagination a.page-num-current {
    color: #fff;
    background: #4fc08d;
    border-color: #4fc08d;
}
.hidden-sm {
    display: inline-block;
}

/* ===== 空状态 ===== */
.empty-note {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 14px;
}

/* ===== 产品网格细节（列表页/详情相关推荐） ===== */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card .product-info {
    flex: 1;
    padding: 10px 12px 14px;
    text-align: left;
}
/* ===== 产品图片溜光扫光效果 ===== */
.product-image {
    overflow: hidden;
}
.product-image::before {
    content: '';
    position: absolute;
    top: -35%;
    left: -85%;
    width: 45%;
    height: 170%;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.65) 50%, transparent 88%);
    transform: rotate(20deg);
    transition: none;
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover .product-image::before {
    transform: rotate(20deg);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0% { left: -85%; }
    55%, 100% { left: 135%; }
}
/* ===== 首页分类卡片：溜光 + 特效 ===== */
.category-card,
.category-card::after,
.category-image,
.category-image img {
    border-radius: 0;
}
.category-image {
    position: relative;
    overflow: hidden;
}
.category-image::before {
    content: '';
    position: absolute;
    top: -35%;
    left: -85%;
    width: 45%;
    height: 170%;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.6) 50%, transparent 88%);
    transform: rotate(20deg);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.category-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #30bcf4 0%, #3892ef 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(48, 188, 244, 0.35);
    background: #fff;
}
.category-card:hover .category-image {
    transform: scale(1.1);
}
.category-card:hover .category-name {
    color: #3892ef;
}
.category-image {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ===== 轮播图（炫酷：淡入缩放 + 进度条） ===== */
.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #101820;
    cursor: grab;
    perspective: 1200px;
}
.image-carousel.home-banner {
    height: 200px;
}
.image-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}
.image-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(70px) rotateY(12deg) scale(1.04);
    transform-origin: center;
    overflow: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.image-carousel .carousel-slide.active {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
    z-index: 2;
}
.image-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    will-change: transform;
}
.image-carousel .carousel-slide::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -80%;
    width: 45%;
    height: 170%;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.35) 50%, transparent 88%);
    transform: rotate(18deg);
    animation: banner-shine 4.5s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes banner-shine {
    0% { left: -80%; }
    50%, 100% { left: 140%; }
}
.image-carousel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    pointer-events: none;
    z-index: 3;
}
.image-carousel .carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 4;
}
.image-carousel .indicator {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}
.image-carousel .indicator.active {
    width: 20px;
    background: #fff;
}
.image-carousel .carousel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 5;
}
.image-carousel .carousel-progress .progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #30bcf4 0%, #3892ef 100%);
}
.image-carousel.gsap-carousel .carousel-slide {
    transition: none;
}
.image-carousel .carousel-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}
.product-list-container .product-name,
.recommendations .product-name {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-list-container .product-price,
.recommendations .product-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: 700;
    margin-top: 4px;
    display: block;
    text-align: left;
}

/* ===== 详情页 ===== */
.detail-info {
    background: #fff;
    padding: 22px 18px;
    margin: 12px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.detail-info .product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 10px;
}
.detail-info .product-price {
    font-size: 26px;
    color: #e74c3c;
    font-weight: 700;
    margin: 4px 0 10px;
    text-align: center;
}
.detail-info .product-brand {
    display: inline-block;
    width: auto;
    font-size: 13px;
    color: #999;
    margin: 0 0 16px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.detail-info .purchase-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 46px;
    margin: 0 auto;
    flex: none;
    border-radius: 23px;
    background: linear-gradient(135deg, #30bcf4 0%, #3892ef 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}
.product-details {
    background: #fff;
    margin: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.product-details .detail-row {
    padding: 10px 0;
}
.product-details .detail-label {
    color: #999;
}
.product-details .detail-value {
    color: #2c3e50;
}
.product-description {
    background: #fff;
    margin: 12px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.product-description .description-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 4px solid #30bcf4;
}
.product-description .description-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.description-content img {
    width: 100%;
    border-radius: 8px;
    margin: 6px 0;
}
.description-content h3,
.description-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 16px 0 8px;
    padding-left: 10px;
    border-left: 3px solid #30bcf4;
}
.description-content ul,
.description-content ol {
    padding-left: 18px;
    margin: 8px 0;
}
.description-content li {
    margin: 4px 0;
    color: #555;
}
.description-content p {
    margin-bottom: 8px;
}
.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}
.description-content td,
.description-content th {
    border: 1px solid #e9ecef;
    padding: 8px 10px;
    font-size: 13px;
    text-align: left;
}
.recommendations {
    padding: 0 12px 90px;
}
.recommendations .section-header {
    margin-bottom: 12px;
}
.recommendations .section-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    padding-left: 10px;
    border-left: 4px solid #30bcf4;
}

/* ===== 购物车 ===== */
.cart-float {
    position: fixed;
    right: 16px;
    bottom: 76px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #369cf0 0%, #2787d6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 12px 26px rgba(48, 188, 244, 0.45);
    z-index: 1500;
    border: none;
}
.cart-float .cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ff0626;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.cart-mask {
    position: fixed;
    inset: 0;
    background: rgba(25, 21, 17, 0.55);
    z-index: 1900;
    display: none;
}
.cart-mask.show {
    display: block;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92%, 400px);
    background: #fff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(25, 21, 17, 0.25);
}
.cart-drawer.show {
    transform: translateX(0);
}
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e9ecef;
}
.cart-head h3 {
    font-size: 18px;
    color: #2c3e50;
    letter-spacing: 4px;
}
.cart-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: transparent;
    color: #6c757d;
    font-size: 14px;
}
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
}
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}
.cart-item img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #ece4d2;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-price {
    font-size: 15px;
    color: #e74c3c;
    font-weight: 700;
    margin-top: 4px;
}
.cart-item-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.cart-item-ctrl button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    font-size: 13px;
    line-height: 1;
}
.cart-item-ctrl span {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}
.cart-item-rm {
    margin-left: auto;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 14px;
}
.cart-empty {
    text-align: center;
    color: #adb5bd;
    padding: 60px 10px;
    font-size: 14px;
}
.cart-form {
    padding: 14px 18px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}
.cart-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 9px;
    font-family: inherit;
    background: #fff;
    outline: none;
}
.cart-form input:focus {
    border-color: #30bcf4;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}
.cart-total b {
    color: #e74c3c;
    font-size: 20px;
}
.cart-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #30bcf4 0%, #3892ef 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    box-shadow: 0 10px 22px rgba(48, 188, 244, 0.4);
}
.cart-submit:disabled {
    background: #d8d2c4;
    box-shadow: none;
}
.cart-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 21, 17, 0.92);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 3000;
}