/* 
 * Moonlight App Official Website - Production Style
 * Style: Minimalist Dark (GPU-ZZ Inspired)
 */

/* --- 1. 核心变量与重置 --- */
:root {
    --primary: #3a86ff;      /* Moonlight 品牌蓝 */
    --primary-glow: rgba(58, 134, 255, 0.4);
    --bg-black: #050505;     /* 纯黑背景 */
    --bg-gray: #0d0d0d;      /* 极深灰卡片 */
    --border: rgba(255, 255, 255, 0.08); /* 极细边框 */
    --text-main: #ffffff;
    --text-dim: #86868b;     /* 苹果级灰字 */
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

/* 动态背景光晕 */
.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -10%, #1a1a1a 0%, #000 60%);
    z-index: -1;
}

/* --- 2. 导航栏 (强化显眼度) --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: rgba(0, 0, 0, 0.9) !important; /* 加深背景，确保字迹清晰 */
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 10000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.65;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- 3. Hero 区域 --- */
.hero {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #00c9b1;
    background: rgba(0, 201, 177, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.dot {
    width: 6px; height: 6px;
    background: #00c9b1;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(0,201,177,0.4); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(0,201,177,0); }
    100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(0,201,177,0); }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(180deg, #fff 30%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 24px;
    align-items: center;
}

.btn-main {
    background: #ffffff;
    color: #000000;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-link:hover { color: #fff; }

/* --- 4. 品牌背书墙 --- */
.brand-wall {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.2;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* --- 5. 通用布局 --- */
.section { padding: 120px 8%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; }

.section-header p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header p::after {
    content: '';
    position: absolute;
    bottom: 0; left: 25%; width: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bg-dim { background-color: var(--bg-gray); }

/* --- 6. 特性卡片 --- */
.feat-card {
    background: var(--bg-gray);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.feat-icon { font-size: 2.5rem; margin-bottom: 24px; }
.feat-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.feat-card p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }

/* --- 7. 时间轴教程 --- */
.timeline { max-width: 850px; margin: 0 auto; }
.time-item { display: flex; gap: 40px; margin-bottom: 60px; }
.time-num { font-size: 3rem; font-weight: 800; color: var(--primary); opacity: 0.2; line-height: 1; }
.time-content h3 { font-size: 1.6rem; margin-bottom: 12px; }

.highlight-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 10px;
    background: rgba(58, 134, 255, 0.1);
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 6px;
    transition: 0.3s;
}

.highlight-link:hover { background: var(--primary); color: #fff; }

/* --- 8. 下载大卡片 (复刻版) --- */
.download-container { max-width: 900px; margin: 0 auto; }
.download-card {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px;
    transition: 0.4s;
}

.download-card h3 { font-size: 2rem; margin-bottom: 12px; }
.card-subtitle { 
    color: var(--text-dim); margin-bottom: 40px; 
    padding-bottom: 25px; border-bottom: 1px solid var(--border); 
}

.download-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 45px; }
.storage-option {
    display: flex; align-items: center; padding: 24px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none; transition: 0.3s;
}

.storage-option:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
}

.storage-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; margin-right: 24px;
}
.baidu-icon { background: #2b59ff; color: #fff; }
.quark-icon { background: #00c9b1; color: #fff; }

.storage-info h4 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.storage-info p { font-size: 0.85rem; color: var(--text-dim); }

.version-info ul {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 50px;
}
.version-info li {
    font-size: 0.9rem; display: flex; justify-content: space-between;
    padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,0.05);
}

/* --- 9. FAQ & 专项链接 --- */
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-group-title {
    color: var(--primary); font-size: 0.75rem; font-weight: 800;
    letter-spacing: 2px; margin: 50px 0 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px; margin-bottom: 16px;
}

.faq-q {
    padding: 24px 32px; padding-right: 70px;
    cursor: pointer; position: relative; font-weight: 600;
}

.faq-q .arrow {
    position: absolute; right: 32px; top: 50%;
    transform: translateY(-50%);
    font-size: 2rem; font-style: normal; /* 强制笔直 */
    font-weight: 200; color: var(--text-dim);
    line-height: 1; transition: 0.4s;
}

.faq-item.active .arrow {
    transform: translateY(-50%) rotate(45deg);
    color: var(--primary);
}
/* 当父级被赋予 .active 类时，展开高度 */
.faq-item.active .faq-a {
    max-height: 500px;       /* 给一个足够大的数值，确保内容能显示全 */
}
.faq-a { max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-a p { padding: 0 32px 24px; color: var(--text-dim); line-height: 1.8; }

/* 最后一个问题专项链接 */
.action-link-wrapper { padding: 8px 32px 24px; }
.text-jump-link {
    color: var(--primary); text-decoration: none;
    font-weight: 700; font-size: 1.05rem;
    display: inline-flex; align-items: center;
    transition: 0.3s; border-bottom: 2px solid rgba(58, 134, 255, 0.2);
}
.text-jump-link:hover {
    color: #fff; transform: translateX(6px);
    border-bottom-color: var(--primary);
}

/* --- 10. 页脚与提示 --- */
.footer { text-align: center; padding: 80px 0; border-top: 1px solid var(--border); margin-top: 80px; }
.footer p { color: var(--text-dim); font-size: 0.85rem; opacity: 0.6; }

#toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #000; padding: 12px 32px;
    border-radius: 100px; font-weight: 700; z-index: 20000; display: none;
}

/* --- 11. 移动端适配 --- */
@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .nav-links, .brand-wall { display: none; }
    .section { padding: 80px 5%; }
    .hero h1 { font-size: 3rem; }
    .grid-3, .version-info ul { grid-template-columns: 1fr; }
    .download-card { padding: 30px 20px; }
    .time-item { flex-direction: column; gap: 15px; }
    .time-num { font-size: 2rem; }
}
/* 在 style.css 中添加 */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
