/* ============================================
   SEO 落地页样式
   由 scripts/build-landing.js 生成页面时引用
   ============================================ */

:root {
    --bg: #0f0f1a;
    --bg-card: #16213e;
    --bg-input: #1a1a3e;
    --text: #e8e8f0;
    --text-dim: #a0a0b8;
    --text-mute: #6c6c8a;
    --accent: #6c63ff;
    --success: #00e676;
    --warning: #ffab40;
    --error: #ff5252;
    --border: rgba(255, 255, 255, .09);
    --radius: 14px;
    --grad: linear-gradient(135deg, #6c63ff, #e63e6d);
}

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------------- 顶部导航 ---------------- */

.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.lp-brand:hover { text-decoration: none; }

.lp-nav-links { display: flex; gap: 16px; font-size: 14px; }
.lp-nav-links a { color: var(--text-dim); }
.lp-nav-links a:hover { color: var(--accent); }

/* ---------------- 正文 ---------------- */

.lp-h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
    margin: 18px 0 14px;
}

.lp-lead { font-size: 17px; color: var(--text-dim); margin-bottom: 22px; }

.lp-section { margin: 34px 0; }

.lp-h2 {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-top: 6px;
}

.lp-h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }

.lp-p { color: var(--text-dim); margin-bottom: 14px; }

.lp-steps { margin: 0 0 0 20px; color: var(--text-dim); }
.lp-steps li { margin-bottom: 8px; }

.lp-list { margin: 0 0 0 20px; color: var(--text-dim); }
.lp-list li { margin-bottom: 6px; }

/* ---------------- 广告位 ---------------- */
/* 固定预留尺寸，防止广告 iframe 撑开造成布局偏移（CLS） */

.ad-slot {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-box {
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-box.ad-728x90 { width: 728px; max-width: 100%; height: 90px; }
.ad-box.ad-300x250 { width: 300px; max-width: 100%; height: 250px; }
.ad-box.ad-320x50 { width: 320px; max-width: 100%; height: 50px; }

@media (max-width: 760px) {
    .ad-box.ad-728x90,
    .ad-box.ad-320x50 {
        width: 100%;
        height: auto;
        min-height: 90px;
    }
}

/* ---------------- 内嵌工具 ---------------- */

.lp-tool {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin: 26px 0;
}

.lp-tool-head {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-input-row { display: flex; gap: 10px; flex-wrap: wrap; }

.lp-input {
    flex: 1;
    min-width: 220px;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.lp-input:focus { border-color: var(--accent); }
.lp-input::placeholder { color: var(--text-mute); }

.lp-btn {
    padding: 13px 26px;
    border-radius: 10px;
    border: none;
    background: var(--grad);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.lp-btn.download { display: none; margin-top: 14px; }

.lp-status { margin-top: 12px; font-size: 14px; color: var(--text-dim); min-height: 20px; }
.lp-status.error { color: var(--error); }

.lp-auth-note {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .3);
    font-size: 14px;
}

.lp-result { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.lp-result-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lp-result-meta { font-size: 13px; color: var(--text-mute); margin-bottom: 12px; }

.lp-quality { display: flex; flex-wrap: wrap; gap: 8px; }

.lp-q-item {
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-q-item.active {
    background: rgba(108, 99, 255, .18);
    border-color: var(--accent);
    color: #fff;
}

.lp-q-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 20px;
    background: rgba(0, 230, 118, .15);
    color: var(--success);
    font-weight: 500;
}

.lp-q-tag.mux { background: rgba(255, 171, 64, .15); color: var(--warning); }

/* ---------------- FAQ ---------------- */

.lp-faq { border-top: 1px solid var(--border); }

.lp-faq-item { border-bottom: 1px solid var(--border); }

.lp-faq-item summary {
    padding: 15px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.lp-faq-item[open] summary::after { content: '−'; }

.lp-faq-item p { padding: 0 0 16px; color: var(--text-dim); font-size: 15px; }

/* ---------------- 内链 ---------------- */

.lp-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.lp-related a {
    display: block;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.lp-related a:hover {
    border-color: var(--accent);
    background: rgba(108, 99, 255, .08);
    text-decoration: none;
}

/* ---------------- 提示与页脚 ---------------- */

.lp-notice {
    margin: 26px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 171, 64, .08);
    border: 1px solid rgba(255, 171, 64, .25);
    font-size: 13px;
    color: var(--text-dim);
}

.lp-cta {
    margin: 30px 0;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
}

.lp-cta p { color: var(--text-dim); margin-bottom: 16px; }

.lp-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-mute);
    text-align: center;
}

.lp-footer a { color: var(--text-mute); margin: 0 8px; }

@media (max-width: 600px) {
    .lp-h1 { font-size: 27px; }
    .lp-h2 { font-size: 20px; }
    .lp-btn { width: 100%; }
}
