/* 首页 - 科技感深色系风格 */
:root {
    /* 深色背景色调 */
    --dark-bg-primary: #0a0e1a;
    --dark-bg-secondary: #1a1f2e;
    --dark-bg-tertiary: #2a2f3e;
    --dark-bg-card: #1e2332;
    
    /* 亮蓝色高饱和按钮和描边 */
    --tech-blue-primary: #00d4ff;
    --tech-blue-secondary: #0099cc;
    --tech-blue-accent: #0066ff;
    --tech-blue-glow: rgba(0, 212, 255, 0.3);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --text-muted: #6b7280;
    --text-accent: #00d4ff;
    
    /* 边框和阴影 */
    --border-tech: rgba(0, 212, 255, 0.2);
    --shadow-tech: 0 8px 32px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 212, 255, 0.2);
    
    /* 渐变效果 */
    --gradient-tech: linear-gradient(135deg, var(--tech-blue-primary), var(--tech-blue-accent));
    --gradient-card: linear-gradient(145deg, var(--dark-bg-secondary), var(--dark-bg-tertiary));
    --gradient-button: linear-gradient(135deg, var(--tech-blue-primary), var(--tech-blue-secondary));
    
    /* 字体 */
    --font-family: 'SF Pro Display', 'Segoe UI', 'Roboto', '微软雅黑', sans-serif;
}

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

body {
    background: var(--dark-bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

/* 背景科技效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 153, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 横幅区域 */
.custom-banner {
    position: relative;
    margin: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-tech);
}

.banner-swiper {
    width: 100%;
    height: 200px;
    position: relative;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 20px;
    overflow: hidden;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

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

.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: var(--tech-blue-primary);
    box-shadow: 0 0 10px var(--tech-blue-glow);
}

.indicator:hover {
    background: var(--tech-blue-secondary);
}

/* 轮播控制按钮 */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-tech);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-btn:hover {
    background: var(--tech-blue-primary);
    box-shadow: 0 0 15px var(--tech-blue-glow);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

/* 菜单区域 */
.custom-menu {
    margin: 30px 20px;
}

.menu-row-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.menu-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-tech);
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    position: relative;
    overflow: hidden;
}


.menu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* 产品网格区域 */
.product-list-grid {
    margin: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card-grid {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-tech);
    transition: all 0.3s ease;
    position: relative;
}


.product-img-grid {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}

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


.product-info-grid {
    padding: 20px;
}

.product-title-grid {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.product-tags-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag-grid {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-tech);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-accent);
    font-weight: 500;
}

.tag-profit-grid {
    background: rgba(0, 255, 127, 0.1);
    border-color: rgba(0, 255, 127, 0.3);
    color: #00ff7f;
}

.product-desc-grid {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-amount-row {
    display: flex;
    align-items: baseline;
}

.amount-currency {
    font-size: 14px;
    color: var(--text-accent);
    font-weight: 600;
}

.amount-value {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
    margin-left: 2px;
}

.buy-btn-grid {
    background: linear-gradient(353deg,#9e6f34,#f8f18f,#df9c52,#f9f28f,#cc9c51,#faf290),linear-gradient(45deg,#c38b43,#432b0e,#9e6f34,#f8f18f,#df9c52,#f9f28f,#cc9c51,#faf290,#c69753,#b27d3d,#432b0e)!important;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-tech);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.buy-btn-grid.disabled {
    background: var(--dark-bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* 产品列表区域 */
.product-list {
    margin: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.product-card-new {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-tech);
    transition: all 0.3s ease;
    position: relative;
}

.product-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.product-img-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

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


.product-info-wrap {
    padding: 20px;
}

.product-title-new {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-tech);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-accent);
    font-weight: 500;
}

.tag-profit {
    background: rgba(0, 255, 127, 0.1);
    border-color: rgba(0, 255, 127, 0.3);
    color: #00ff7f;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.buy-btn {
    background: var(--gradient-button);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-tech);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.buy-btn.disabled {
    background: var(--dark-bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modern-modal {
    background: var(--dark-bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    margin: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-tech);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--gradient-tech);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-tech);
}

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

.header-icon {
    font-size: 20px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-body {
    padding: 20px;
}

.announcement-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.agreement-list {
    color: var(--text-secondary);
}

.agreement-item {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-tech);
}

.agreement-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid var(--border-tech);
}

.primary-btn {
    background: var(--gradient-button);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-tech);
    transition: all 0.3s ease;
}


.secondary-btn {
    background: var(--dark-bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-tech);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .custom-banner {
        margin: 15px;
    }
    
    .banner-swiper {
        height: 160px;
    }
    
    .banner-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .custom-menu {
        background: linear-gradient(145deg, #2e3a5e, #1e2740);
        padding: 20px;
        border-radius: 15px;
        display: flex;
        justify-content: center;
      }
      
      .menu-row-horizontal {
        display: flex;
        gap: 30px;
      }
      
      .menu-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        text-align: center;
      }
      
      .menu-icon {
        width: 60px;
        height: 60px;
        background: radial-gradient(circle at center, #8b5e3c, #5e3b1e);
        border: 2px solid gold;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 0 10px gold, 0 0 5px gold;
      }
      
      .menu-icon img {
        width: 30px;
        height: 30px;
      }
      
      .menu-title {
        margin-top: 10px;
        color: gold;
        font-size: 14px;
        font-weight: bold;
      }

      
      .gold-card {
        background: linear-gradient(145deg, #2e3a5e, #1e2740);
        border: 2px solid gold;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        display: flex;
        flex-direction: column;
        width: 100%;
      }
      
      .gold-card-img {
        width: 100%;
        height: 160px;
        background-color: #000; /* 图片占位色，可替换为合适背景 */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }
      
      .gold-card-info {
        padding: 15px;
        color: #fff8dc;
      }
      
      .gold-card-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
      }
      
      .gold-card-tags {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
      }
      
      .gold-tag {
        background: radial-gradient(circle, #8b5e3c, #5e3b1e);
        border: 1px solid gold;
        border-radius: 20px;
        padding: 4px 10px;
        font-size: 12px;
        color: gold;
      }
      
      .gold-tag-profit {
        background: transparent;
        border: 1px solid gold;
      }
      
      .gold-card-desc {
        font-size: 14px;
        color: #f0e68c;
        margin-bottom: 15px;
      }
      
      .gold-card-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      
      .gold-card-amount {
        display: flex;
        align-items: baseline;
        color: gold;
      }
      
      .gold-amount-currency {
        font-size: 16px;
      }
      
      .gold-amount-value {
        font-size: 22px;
        font-weight: bold;
        margin-left: 4px;
      }
      
      .gold-buy-btn {
        background: radial-gradient(circle, #8b5e3c, #5e3b1e);
        border: 1px solid gold;
        color: gold;
        padding: 6px 15px;
        border-radius: 20px;
        cursor: pointer;
      }
      
      .gold-buy-btn.disabled {
        background: #555;
        border-color: #777;
        color: #aaa;
        cursor: not-allowed;
      }
      
    
    .gold-modal-overlay {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
      }
  
      .gold-modal-container {
        background: linear-gradient(145deg, #2c261f, #3e352c);
        border: 1px solid rgba(255, 215, 0, 0.2);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.1), inset 0 0 10px rgba(255, 215, 0, 0.05);
        border-radius: 16px;
        width: 90%;
        max-width: 420px;
        padding: 1.5rem;
      }
  
      .gold-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
      }
  
      .gold-header-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
  
      .gold-header-icon {
        font-size: 1.8rem;
        color: gold;
      }
  
      .gold-modal-title {
        font-size: 1.5rem;
        color: #f5deb3;
        letter-spacing: 1px;
      }
  
      .gold-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #f5deb3;
        cursor: pointer;
        transition: color 0.2s;
      }
  
      .gold-close-btn:hover {
        color: gold;
      }
  
      .gold-modal-body {
        padding: 0.5rem 0 1rem;
      }
  
      .gold-agreement-list {
        padding-left: 0.5rem;
      }
  
      .gold-agreement-item {
        margin-bottom: 0.5rem;
        color: #ffe4b5;
        font-size: 1rem;
        line-height: 1.6;
      }
  
      .gold-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
      }
  
      .gold-btn {
        padding: 0.6rem 1.2rem;
        border: none;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
      }
  
      .gold-btn-primary {
        background: radial-gradient(circle at top left, #cba135, #9c7a2d);
        color: #fffaf0;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
      }
  
      .gold-btn-primary:hover {
        background: #d4af37;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
      }
  
      .gold-btn-secondary {
        background: #4a3d33;
        color: #f5deb3;
        border: 1px solid rgba(255, 215, 0, 0.2);
      }
  
      .gold-btn-secondary:hover {
        background: #5b4a3e;
        color: gold;
      }

    .product-list-grid,
    .product-list {
        margin: 25px 15px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-info-grid,
    .product-info-wrap {
        padding: 15px;
    }
    
    .product-title-grid,
    .product-title-new {
        font-size: 15px;
    }
    
    .amount-value {
        font-size: 18px;
    }
    
    .buy-btn-grid,
    .buy-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .custom-banner {
        margin: 10px;
    }
    
    .banner-swiper {
        height: 140px;
    }
    
    .banner-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .banner-indicators {
        bottom: 8px;
    }
    
    .indicator {
        width: 5px;
        height: 5px;
    }
    
    .custom-menu {
        margin: 20px 10px;
    }
    
    .menu-row-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .menu-card {
        padding: 12px 8px;
    }
    
    .menu-title {
        font-size: 12px;
    }
    
    .product-list-grid,
    .product-list {
        margin: 20px 10px;
    }
    
    .product-info-grid,
    .product-info-wrap {
        padding: 12px;
    }
    
    .product-title-grid,
    .product-title-new {
        font-size: 14px;
    }
    
    .tag-grid,
    .tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .amount-value {
        font-size: 16px;
    }
    
    .buy-btn-grid,
    .buy-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes techGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
}


/* .custom-banner { animation-delay: 0.1s; }
.menu-card:nth-child(1) { animation-delay: 0.2s; }
.menu-card:nth-child(2) { animation-delay: 0.3s; }
.menu-card:nth-child(3) { animation-delay: 0.4s; }
.menu-card:nth-child(4) { animation-delay: 0.5s; } */

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--tech-blue-primary);
    border-radius: 3px;
}