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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 - 透明 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #5CDB5C;
    text-decoration: none;
}

.nav-logo:hover {
    color: #7AE87A;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 20px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background: linear-gradient(135deg, #5CBF60, #4CAF50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* 主横幅区域 - 紧凑布局，首屏显示更多内容 */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px 40px;
    position: relative;
    /* 深色渐变背景模拟图片效果 */
    background: linear-gradient(135deg, 
        #2d3a4a 0%, 
        #3d4f5f 25%,
        #4a5d6a 50%,
        #5a6d7a 75%,
        #6a7d8a 100%
    );
    background-size: cover;
}

/* 半透明遮罩 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
}

/* 即将上线徽章 - 透明边框样式 */
.coming-soon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 14px 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.coming-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 设备展示 */
.hero-visual {
    display: none;
}

/* 亮点宣传横幅 */
.highlight-banner {
    background: linear-gradient(135deg, #4a90a4 0%, #5ba3b5 50%, #6bb6c6 100%);
    padding: 20px 30px;
    text-align: center;
}

.highlight-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 功能特性 */
.features {
    padding: 40px 30px;
    background: #fff;
}

.features .section-title {
    margin-bottom: 30px;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.feature-card {
    text-align: center;
    padding: 20px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #f5f5f5;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 步骤说明 */
.steps {
    padding: 80px 30px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #333;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #5a9a6e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.step p {
    font-size: 0.85rem;
    color: #666;
}

.step-arrow {
    font-size: 1.5rem;
    color: #ccc;
}

/* 底部 */
.footer {
    background: #2a2a3a;
    padding: 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.icp {
    font-size: 0.8rem;
    margin-top: 8px;
}

.icp a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.icp a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式 */
@media (max-width: 1000px) {
    .features-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .badge {
        padding: 15px 50px;
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* ============ 优惠码分享页面 ============ */

/* 导航栏实色背景（非首页） */
.navbar-solid {
    background: #2a3a4a;
}

/* 主内容区域 */
.promo-page {
    min-height: calc(100vh - 160px);
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, #2d3a4a 0%, #1a1a2e 100%);
}

.promo-container {
    max-width: 600px;
    margin: 0 auto;
}

.promo-header {
    text-align: center;
    margin-bottom: 40px;
}

.promo-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.promo-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 加载状态 */
.promo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #5a9a6e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误状态 */
.promo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.promo-error p {
    margin-bottom: 20px;
}

.retry-btn {
    padding: 10px 30px;
    background: #5a9a6e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #4a8a5e;
}

/* 空状态 */
.promo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* 优惠码列表 */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.promo-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.promo-code {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    word-break: break-all;
}

.promo-progress {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
    padding: 8px 20px;
    background: #5a9a6e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.copy-btn:hover {
    background: #4a8a5e;
    transform: scale(1.02);
}

.copy-btn.copied {
    background: #3d7a4e;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 - 优惠码页面 */
@media (max-width: 600px) {
    .promo-page {
        padding: 80px 16px 40px;
    }
    
    .promo-title {
        font-size: 1.6rem;
    }
    
    .promo-subtitle {
        font-size: 0.9rem;
    }
    
    .promo-item {
        padding: 14px 16px;
    }
    
    .promo-code {
        font-size: 0.95rem;
    }
    
    .copy-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-left: 12px;
    }
}
