/* ========================================
   基础设置
   ======================================== */
:root {
    font-size: 16px;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --gold-primary: #c5a059;
    --gold-soft: rgba(197, 160, 89, 0.7);
    --text-main: #ffffff;
    --text-muted: #999999;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
}

@media (max-width: 320px) { 
    :root { font-size: 14px; } 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
	padding-bottom: 4rem;
}

/* ========================================
   顶部导航
   ======================================== */
.header {
    height: 5rem;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
}

/* PC 端 */
@media (min-width: 768px) {
    .header {
        padding: 0 2rem;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.logo-text {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.brand-logo-text {
    display: none;
}

.header-icons {
    display: none;
}

.header-icons i {
    display: none;
}

.header-left {
    position: absolute;
    left: 1.25rem;
    display: flex;
    align-items: center;
}

.back-btn {
    color: var(--text-main);
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.back-btn:active {
    color: var(--gold-primary);
}

/* ========================================
   导航按钮
   ======================================== */
.nav-toggle {
    position: absolute;
    left: 1.25rem;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-toggle:active {
    opacity: 0.7;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 1600;
    transition: left 0.3s;
    overflow-y: auto;
}

.sidebar.show {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:active {
    color: var(--gold-primary);
}

.sidebar-menu {
    padding: 1rem 0;
}

.menu-item {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.menu-item:active {
    background-color: rgba(197, 160, 89, 0.1);
    border-left-color: var(--gold-primary);
    color: var(--gold-primary);
}

.menu-item i {
    margin-right: 0.8rem;
    width: 1.2rem;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background-color: #1f1f1f;
    margin: 0.5rem 0;
}

.menu-category {
    padding: 0.8rem 1.25rem;
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-category:active {
    background-color: rgba(197, 160, 89, 0.1);
}

.menu-category-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gold-primary);
    flex: 1;
}

.menu-category-left:visited {
    color: var(--gold-primary);
}

.menu-category-left:active {
    color: var(--gold-primary);
}

.menu-category-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    padding: 0.5rem 0.8rem;
    margin: -0.5rem -0.8rem;
    cursor: pointer;
}

.menu-category.expanded .menu-category-arrow {
    transform: rotate(180deg);
}

.submenu-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.submenu-wrapper.expanded {
    grid-template-rows: 1fr;
}

.submenu-inner {
    overflow: hidden;
}

.menu-sub {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

/* ========================================
   轮播图
   ======================================== */
.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* 不设置固定比例，由第一张图片决定 */
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideAnim 15s infinite ease-in-out;
}

.slide {
    width: 100.33%;
    height: 100%;
    position: relative;
}

/* 使用 img 标签，保持图片原始比例 */
.slide img {
    width: 100%;
    height: auto; /* 自动高度，保持图片原始比例 */
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 2rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
}

.slide-content h2 {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.slide-content p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

@keyframes slideAnim {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-33.33%); }
    66%, 91% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

/* ========================================
   产品卡片
   ======================================== */
.main-container {
    padding: 1.5rem 1.25rem 6rem 1.25rem;
}

/* PC 端：固定宽度 1600px，居中显示 */
@media (min-width: 768px) {
    .main-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 2rem 2rem 2rem 2rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h3 {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-size: 1.3rem;
    letter-spacing: 0.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* PC 端：4列，固定宽度 */
@media (min-width: 768px) {
    .product-grid { 
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid #1f1f1f;
    padding: 1rem;
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.product-card:active {
    border-color: var(--gold-primary);
}

/* PC 端：hover 效果 */
@media (min-width: 768px) {
    .product-card {
        padding: 1.5rem;
    }
    
    .product-card:hover {
        border-color: var(--gold-primary);
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    }
    
    .product-card:hover .btn-gold {
        background-color: var(--gold-primary);
        color: var(--bg-dark);
    }
}

.product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0.5rem 0.5rem rgba(0,0,0,0.5));
}

.prod-brand {
    font-size: 0.65rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.prod-name {
    font-size: 0.85rem;
    font-family: var(--font-serif);
    min-height: 2.5rem;
    margin-bottom: 0.8rem;
}

.prod-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.btn-gold {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.75rem;
    padding: 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gold:active {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

/* ========================================
   热门产品
   ======================================== */
.hot-section {
    padding: 2rem 0 1.5rem 0;
    background-color: var(--bg-dark);
}

.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
}

/* PC 端：固定宽度 1600px，居中显示 */
@media (min-width: 768px) {
    .hot-header {
        max-width: 1600px;
        margin: 0 auto 1.5rem auto;
        padding: 0 2rem;
    }
}

.hot-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    letter-spacing: 0.2rem;
}

.hot-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.view-more {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hot-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.25rem;
}

.hot-scroll-container::-webkit-scrollbar {
    display: none;
}

/* PC 端：显示滚动条，固定宽度 1600px */
@media (min-width: 768px) {
    .hot-scroll-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .hot-scroll-container::-webkit-scrollbar {
        display: block;
        height: 8px;
    }
    
    .hot-scroll-container::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }
    
    .hot-scroll-container::-webkit-scrollbar-thumb {
        background: var(--gold-primary);
        border-radius: 4px;
    }
    
    .hot-scroll-container::-webkit-scrollbar-thumb:hover {
        background: var(--gold-soft);
    }
}

.hot-products {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.hot-card {
    flex: 0 0 280px;
    background-color: var(--bg-card);
    border: 1px solid #1f1f1f;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    transition: border-color 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.hot-card:active {
    border-color: var(--gold-primary);
    transform: scale(0.98);
}

/* PC 端：hover 效果 */
@media (min-width: 768px) {
    .hot-card {
        flex: 0 0 320px;
    }
    
    .hot-card:hover {
        border-color: var(--gold-primary);
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(197, 160, 89, 0.2);
    }
    
    .hot-card:active {
        transform: translateY(-2px);
    }
}

.hot-card-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 1rem;
    background-color: rgba(197, 160, 89, 0.05);
}

.hot-card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-soft));
    color: var(--bg-dark);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.hot-brand {
    font-size: 0.65rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.hot-name {
    font-size: 0.9rem;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hot-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
}

.hot-sales {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ========================================
   联系信息
   ======================================== */
.contact-footer {
    background-color: var(--bg-card);
    padding: 2rem 1.25rem;
    margin-top: 2rem;
}

/* PC 端：网格布局，固定宽度 1600px */
@media (min-width: 768px) {
    .contact-footer {
        max-width: 1600px;
        margin: 2rem auto 0;
        padding: 3rem 2rem;
    }
    
    .contact-footer-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.contact-footer-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #1f1f1f;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-icon i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-main);
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1f1f1f;
}

/* ========================================
   底部导航
   ======================================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 4rem;
    background-color: #0f0f0f;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #1f1f1f;
    z-index: 1000;
}

/* PC 端：隐藏底部导航栏 */
@media (min-width: 768px) {
    .tab-bar {
        display: none;
    }
    
    body {
        padding-bottom: 0; /* 移除底部 padding */
    }
}

.tab-item {
	width: 5rem;
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
}

.tab-item i {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.tab-item.active {
    color: var(--gold-primary);
}

/* ========================================
   分类导航 (products.html)
   ======================================== */
.category-nav {
    display: none;
}

.category-list {
    display: none;
}

.category-group-label {
    display: none;
}

.category-item {
    display: none;
}

/* ========================================
   筛选弹窗 (products.html)
   ======================================== */
.filter-modal {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-card);
    z-index: 1;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.filter-content {
    padding: 1rem 0;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.filter-item:active {
    background-color: rgba(197, 160, 89, 0.1);
}

.filter-item i:first-child {
    margin-right: 0.8rem;
    width: 1.2rem;
    text-align: center;
    color: var(--gold-primary);
}

.filter-item span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.filter-check {
    color: var(--gold-primary);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-item.active .filter-check {
    opacity: 1;
}

.filter-sub {
    padding-left: 3rem;
    font-size: 0.85rem;
}

.filter-sub span {
    font-size: 0.85rem;
}

.filter-divider {
    height: 1px;
    background-color: #1f1f1f;
    margin: 0.5rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gold-soft);
    margin-bottom: 1rem;
}

/* ========================================
   品牌故事 (brand-story.html)
   ======================================== */
.story-container {
    padding: 0 0 6rem 0;
}

.brand-hero {
    width: 100%;
    height: 15rem;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1527030280862-64139fba04ca?q=80&w=800');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
}

.brand-hero h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3rem;
}

.brand-hero p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
}

.story-section {
    padding: 2rem 1.25rem;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.story-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-content p {
    margin-bottom: 1rem;
}

.divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 2rem auto;
}

.contact-section {
    background-color: var(--bg-card);
    padding: 2rem 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.qrcode-section {
    padding: 2rem 1.25rem;
    text-align: center;
}

.qrcode-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.qrcode-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.qrcode-item {
    text-align: center;
}

.qrcode-box {
    width: 150px;
    height: 150px;
    background-color: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    padding: 1rem;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-label {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* ========================================
   产品详情 (product-detail.html)
   ======================================== */
.detail-container {
    padding: 0 0 6rem 0;
}

.product-image-section {
    width: 100%;
    background-color: var(--bg-card);
    padding: 2rem 1.25rem;
    text-align: center;
}

.product-main-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 1rem 2rem rgba(0,0,0,0.5));
}

.product-info {
    padding: 1.5rem 1.25rem;
}

.product-info .prod-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.prod-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.copy-btn i {
    font-size: 0.85rem;
}

.copy-btn span {
    font-size: 0.85rem;
}

.copy-btn:active {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.copy-btn.copied {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(197, 160, 89, 0.95);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-toast.show {
    opacity: 1;
}

.prod-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.specs-section {
    background-color: var(--bg-card);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.specs-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #1f1f1f;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spec-value {
    color: var(--text-main);
    font-size: 0.85rem;
}

.bottom-action {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #0f0f0f;
    padding: 1rem 1.25rem;
    border-top: 1px solid #1f1f1f;
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.btn-solid {
    flex: 1;
    background-color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-solid:active {
    opacity: 0.8;
}

.btn-icon {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

/* ========================================
   弹窗
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.form-modal {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 400px;
    padding: 2rem 1.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:active {
    color: var(--gold-primary);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #1f1f1f;
    color: var(--text-main);
    padding: 0.8rem;
    font-size: 0.9rem;
    border-radius: 0.3rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.form-submit {
    width: 100%;
    background-color: var(--gold-primary);
    border: none;
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0.3rem;
    margin-top: 0.5rem;
}

.form-submit:active {
    opacity: 0.8;
}

.qrcode-modal {
    background-color: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 350px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.qrcode-modal-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.qrcode-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background-color: #ffffff;
    border: 2px solid var(--gold-primary);
    border-radius: 0.5rem;
    margin: 0 auto 1.5rem auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.qrcode-close-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.85rem;
    padding: 0.8rem;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 0.3rem;
}

.qrcode-close-btn:active {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}


/* 搜索按钮 */
.search-toggle {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    z-index: 100;
}

.search-toggle:hover {
    color: var(--gold-light);
    transform: translateY(-50%) scale(1.1);
}

/* 搜索弹窗 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    background-color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.search-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    outline: none;
}

.search-header input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.search-close:hover {
    color: var(--gold-primary);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.search-placeholder,
.search-loading,
.search-empty,
.search-error {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.search-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
}

.search-item:hover {
    background-color: rgba(197, 160, 89, 0.1);
}

.search-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.3rem;
}

.search-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.search-item-name {
    font-size: 1rem;
    font-weight: 500;
}

.search-item-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-item-price {
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .search-toggle {
        right: 3.5rem;
        font-size: 1.2rem;
    }
    
    .search-modal {
        padding-top: 3rem;
    }
    
    .search-item img {
        width: 60px;
        height: 60px;
    }
}

/* 产品详情页图片轮播 */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--gold);
    width: 32px;
    border-radius: 5px;
    border-color: var(--gold);
}

/* 售罄产品样式 */
.product-img-wrapper {
    position: relative;
    width: 100%;
}

.sold-out-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 1;
}

.product-card.sold-out {
    opacity: 0.7;
}

.product-card.sold-out .product-img {
    filter: grayscale(50%);
}

.product-card.sold-out .btn-gold:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-card.sold-out .btn-gold:disabled:hover {
    background: #999;
    transform: none;
}


/* ========================================
   图片懒加载和占位符
   ======================================== */
   
/* 基础懒加载样式 */
img.lazy {
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        #2d2d2d 25%, 
        #3a3a3a 50%, 
        #2d2d2d 75%, 
        #1a1a1a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite ease-in-out;
    /* 防止图片闪烁 */
    min-height: 100px;
}

img.lazy.loaded {
    animation: none;
    background: transparent;
}

img.lazy.error {
    animation: none;
    opacity: 0.5;
    background: #1a1a1a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/50px no-repeat;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 产品卡片图片加载动画 */
.product-img.lazy {
    min-height: 200px;
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        #2d2d2d 20%, 
        #3a3a3a 40%,
        #2d2d2d 60%, 
        #1a1a1a 80%,
        #1a1a1a 100%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s infinite ease-in-out;
}

.product-img.lazy.loaded {
    animation: none;
    background: transparent;
}

/* 热门产品图片加载 */
.hot-card-img.lazy {
    min-height: 120px;
    background: linear-gradient(90deg, 
        rgba(197, 160, 89, 0.05) 0%, 
        rgba(197, 160, 89, 0.15) 20%,
        rgba(197, 160, 89, 0.25) 40%,
        rgba(197, 160, 89, 0.15) 60%,
        rgba(197, 160, 89, 0.05) 80%,
        rgba(197, 160, 89, 0.05) 100%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s infinite ease-in-out;
}

.hot-card-img.lazy.loaded {
    animation: none;
    background: rgba(197, 160, 89, 0.05);
}

/* 产品详情页主图加载 */
.product-main-img.lazy {
    min-height: 400px;
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        #2d2d2d 20%, 
        #3a3a3a 40%,
        #2d2d2d 60%, 
        #1a1a1a 80%,
        #1a1a1a 100%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s infinite ease-in-out;
}

.product-main-img.lazy.loaded {
    animation: none;
    background: transparent;
}

/* 搜索结果图片加载 */
.search-item img.lazy {
    min-height: 80px;
    width: 80px;
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        #2d2d2d 20%, 
        #3a3a3a 40%,
        #2d2d2d 60%, 
        #1a1a1a 80%,
        #1a1a1a 100%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s infinite ease-in-out;
}

.search-item img.lazy.loaded {
    animation: none;
    background: transparent;
}
