/* 全局样式：现代社区风 (类似 Discord / 游戏圈氛围) */
:root {
    --bg-dark: #1e1f22;      /* 护眼深灰背景 */
    --bg-card: #2b2d31;      /* 卡片背景 */
    --bg-light: #313338;     /* 浅色高亮 */
    --primary: #5865F2;      /* 亲和的蓝紫色 (社区经典色) */
    --primary-hover: #4752C4;
    --accent: #23a559;       /* 成功/推荐的绿色 */
    --accent-hover: #1a8245;
    --text-main: #f2f3f5;
    --text-muted: #b5bac1;
    --border-color: #3f4147;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { 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;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* 图片样式：温和的圆角和阴影 */
.showcase-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.showcase-img:hover { transform: translateY(-4px); }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 按钮通用样式：圆润友好 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
}

.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4); }
.btn-accent { background-color: var(--accent); color: #fff; }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(35, 165, 89, 0.4); }
.btn-outline { background-color: transparent; border: 2px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); background-color: rgba(255,255,255,0.05); }

/* 动画定义 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* 头部导航栏 (Header) */
header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(30, 31, 34, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
header.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.logo span { background-color: var(--primary); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.nav-menu { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav-link:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* 第一屏：英雄区 */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.hero-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.hero-cta-group { margin-bottom: 24px; display: flex; gap: 12px; }
.hero-trust { display: flex; gap: 20px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.trust-item { display: flex; align-items: center; gap: 6px; }

/* 第二屏：核心功能特性 */
.section-padding { padding: 8px 0; }
.section-header { text-align: center; margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 15px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); background-color: var(--bg-light); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* 第三屏：使用场景 (图文交替) */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.showcase-row:nth-child(even) { direction: rtl; }
.showcase-row:nth-child(even) .showcase-content { direction: ltr; }
.showcase-content h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.showcase-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
.showcase-list { list-style: none; }
.showcase-list li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    background-color: var(--bg-card); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
}

/* 第四屏：极简下载 */
.download-section { background-color: var(--bg-card); border-radius: 24px; padding: 30px; margin-bottom: 80px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px;}
.download-card { background-color: var(--bg-dark); padding: 32px 24px; border-radius: 16px; text-align: center; }
.download-card h3 { font-size: 20px; margin: 12px 0 8px; }
.download-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.download-card img { width: 24px;height: 24px; display: block;margin: 0 auto;
}

/* 第五屏：亲民价格 */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--primary);
    background-color: var(--bg-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background-color: var(--primary); color: #fff; padding: 4px 12px; font-size: 12px; font-weight: 700; border-radius: 12px; }
.pricing-plan { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pricing-price span { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.pricing-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.pricing-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.pricing-features li { margin-bottom: 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: "✅"; font-size: 12px; }

/* 第六屏：真实评价 */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background-color: var(--bg-card); border-radius: 16px; padding: 24px; }
.testimonial-quote { font-size: 14px; line-height: 1.6; margin-bottom: 20px; color: var(--text-main); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 20px;}
.author-info h4 { font-size: 14px; color: #fff; }
.author-info p { font-size: 12px; color: var(--text-muted); }

/* 第七屏：常见问题 FAQ */
.faq-max { max-width: 700px; margin: 0 auto; }
.faq-item { background-color: var(--bg-card); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s; }
.faq-item:hover { background-color: var(--bg-light); }
.faq-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq-title { font-size: 15px; font-weight: 600; color: #fff;}
.faq-icon { font-size: 20px; color: var(--text-muted); transition: transform 0.3s; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.faq-item.open .faq-content { max-height: 300px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* 弹窗通用样式 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 16px; width: 100%; position: relative; transform: translateY(20px); transition: all 0.3s; box-shadow: 0 20px 40px rgba(0,0,0,0.4); overflow: hidden;}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; z-index: 10;}
.modal-close-btn:hover { background: rgba(255,255,255,0.2); }

/* 表单样式 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control { width: 100%; background-color: var(--bg-card); border: 1px solid transparent; border-radius: 8px; padding: 12px 16px; color: #fff; font-family: inherit; font-size: 14px; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); background-color: var(--bg-dark); }

/* 登录弹窗 */
.auth-box { max-width: 400px; }
.auth-tabs { display: flex; background-color: var(--bg-card); }
.auth-tab { flex: 1; text-align: center; padding: 16px; font-weight: 600; font-size: 14px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); background-color: var(--bg-dark); }
.auth-body { padding: 32px 24px; }
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }

/* 支付弹窗 */
.payment-box { max-width: 480px; }
.payment-body { padding: 32px; }
.payment-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; text-align: center;}

.payment-summary-card { background-color: var(--bg-card); border-radius: 12px; padding: 16px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.summary-left .plan-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.summary-left .plan-desc { font-size: 12px; color: var(--text-muted); }
.summary-right { text-align: right; }
.summary-right .total-amount { font-size: 24px; font-weight: 800; color: var(--accent); }

.payment-methods-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
.payment-methods-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
.payment-method-item { background-color: var(--bg-card); border: 2px solid transparent; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; }
.payment-method-item:hover { background-color: var(--bg-light); }
.payment-method-item.selected { border-color: var(--primary); background-color: rgba(88, 101, 242, 0.1); }
.method-icon { font-size: 20px; }
.method-info h5 { font-size: 14px; font-weight: 600; color: #fff; }

/* 底部 Footer */
footer { background-color: #111214; padding: 64px 0 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.footer-column h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }

/* 新增样式：价格排版 */
.price-wrapper {
    margin-bottom: 16px;
}

.original-price {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.daily-price {
    font-size: 12px;
    color: var(--accent); /* 使用绿色突出性价比 */
    font-weight: 600;
    margin-top: 4px;
}

/* 如果你想让原价显得更淡一点 */
del.original-price {
    text-decoration-color: var(--border-color);
}
/* 原有的用户名截断样式 */
.username-txt {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    color: var(--text-main); /* 确保初始颜色与文字一致 */
    transition: color 0.2s ease;
}

/* 新增：鼠标悬浮时变成社区蓝紫色，并带有下划线提示 */
.username-txt:hover {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 768px) {
    /* 1. 锁死容器边距，防止内容溢出屏幕 */
    .container { padding: 0 16px !important; width: 100% !important; }

    /* 2. 导航栏修改：在手机上隐藏文字菜单，并缩减元素尺寸、强制单行，防止挤压变形 */
    .nav-menu { display: none !important; }
    .nav-container { height: 60px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
    .logo { font-size: 17px !important; gap: 6px !important; white-space: nowrap !important; }
    .logo span { font-size: 11px !important; padding: 2px 6px !important; border-radius: 4px !important; }
    .nav-actions { font-size: 13px !important; white-space: nowrap !important; gap: 8px !important; }
    .nav-actions .btn { padding: 4px 12px !important; font-size: 13px !important; border-radius: 16px !important; }

    /* 3. 第一屏（英雄区）：强制垂直堆叠 */
    .hero-section { padding-top: 80px !important; padding-bottom: 40px !important; }
    .hero-grid {
        grid-template-columns: 1fr !important; /* 强制单列 */
        text-align: center !important;
        gap: 24px !important;
    }
    .hero-content h1 { font-size: 28px !important; line-height: 1.2 !important; }
    .hero-cta-group { flex-direction: column !important; }
    .hero-cta-group .btn { width: 100% !important; margin-bottom: 10px !important; }

    /* 4. 网格区：将所有 Grid 布局全部打散，让子元素自动变宽撑满 */
    .features-grid, .pricing-grid, .download-grid, .testimonials-grid {
        grid-template-columns: 1fr !important; /* 强制变成单列 */
        gap: 16px !important;
    }

    /* 5. showcase区（图文左右排版）：强制改为图片在上，文字在下 */
    .showcase-row, .showcase-row:nth-child(even) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        direction: ltr !important;
        margin-bottom: 40px !important;
    }
    .showcase-content h3 { font-size: 22px !important; }

    /* 6. 弹窗：让弹窗宽度接近屏幕，但保留一点呼吸边距 */
    .modal-box { width: 92% !important; margin: 10px auto !important; }

    /* 7. Footer：垂直排列，避免文字太挤 */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; gap: 24px !important; }

    .scrollbar-hide {
        padding-right: 17px; /* 补偿滚动条宽度 */
        overflow: hidden;
    }
}