/* ===== 无界网页投屏助手 - 官网样式 ===== */
:root {
    --bg: #1a1a2e;
    --bg-deep: #0d1117;
    --panel: #16213e;
    --panel-2: #0f1923;
    --border: #0f3460;
    --border-2: #1a5276;
    --accent: #E8B341;
    --accent-dark: #C8942D;
    --text: #eee;
    --muted: #8899aa;
    --dim: #556677;
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(22, 33, 62, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 17px;
    white-space: nowrap;
}

.brand-logo { width: 32px; height: 32px; flex-shrink: 0; }

.brand-name { margin-left: 10px; }

.nav { display: flex; align-items: center; }

.nav > a {
    margin-left: 28px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.nav > a:hover { color: var(--text); }

.nav > a.nav-cta {
    margin-left: 28px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.nav > a.nav-cta:hover { background: var(--accent); color: #0F1129; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-2);
    border-radius: 6px;
    cursor: pointer;
    padding: 0 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span + span { margin-top: 5px; }

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 80% 0%, rgba(232, 179, 65, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 60% at 10% 100%, rgba(26, 82, 118, 0.25), transparent 60%),
        var(--bg-deep);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-text { flex: 1 1 52%; max-width: 560px; }

.hero-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(232, 179, 65, 0.1);
    border: 1px solid rgba(232, 179, 65, 0.35);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-title .accent {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(232, 179, 65, 0.35);
}

.hero-subtitle {
    margin-top: 20px;
    font-size: 16px;
    color: var(--muted);
    max-width: 480px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
}

.hero-actions .btn { margin-right: 14px; margin-bottom: 12px; }

.hero-meta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--dim);
    font-size: 13px;
}

.hero-meta .dot { margin: 0 10px; }

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-2);
    vertical-align: middle;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0F1129;
    box-shadow: 0 4px 18px rgba(232, 179, 65, 0.35);
}

.btn-primary:hover { box-shadow: 0 6px 24px rgba(232, 179, 65, 0.5); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-2);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero 视觉 */
.hero-visual {
    flex: 1 1 40%;
    max-width: 440px;
    position: relative;
    margin-left: 48px;
}

.screen-frame {
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(232, 179, 65, 0.7), rgba(26, 82, 118, 0.6));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(232, 179, 65, 0.15);
}

.screen-inner {
    border-radius: 16px;
    background: linear-gradient(160deg, #0f1923, #0d1117);
    padding: 40px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-logo { width: 96px; height: 96px; }

.screen-title {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
}

.screen-cast { width: 140px; margin-top: 8px; }

.screen-cast svg { display: block; width: 100%; }

.wave { opacity: 0.85; }
.wave-1 { animation: wave-pulse 2.2s ease-in-out infinite; }
.wave-2 { animation: wave-pulse 2.2s ease-in-out infinite 0.15s; }
.wave-3 { animation: wave-pulse 2.2s ease-in-out infinite 0.3s; }

@keyframes wave-pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.float-chip {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border-2);
    color: var(--muted);
    white-space: nowrap;
}

.chip-phone { top: -12px; left: -10px; }
.chip-screen { bottom: -12px; right: -10px; }

/* ===== 通用 Section ===== */
.section { padding: 80px 0; }

.section-head { text-align: center; margin-bottom: 48px; }

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-sub {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
}

/* ===== 核心价值 ===== */
.value-grid { display: flex; flex-wrap: wrap; margin: 0 -12px -24px; }

.value-card {
    width: calc(25% - 24px);
    margin: 0 12px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 22px;
    transition: transform 0.2s, border-color 0.2s;
}

.value-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.value-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 179, 65, 0.12);
    color: var(--accent);
    margin-bottom: 18px;
}

.value-icon svg { width: 24px; height: 24px; }

.value-card h3 { font-size: 18px; margin-bottom: 10px; }

.value-card p { font-size: 14px; color: var(--muted); }

/* ===== 核心功能 ===== */
.features-section { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-grid { display: flex; flex-wrap: wrap; margin: 0 -12px -24px; }

.feature-card {
    width: calc(33.333% - 24px);
    margin: 0 12px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); }

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 179, 65, 0.12);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }

.feature-card p { font-size: 14px; color: var(--muted); }

/* ===== 适用场景 ===== */
.scenarios-section { background: var(--bg-deep); border-bottom: 1px solid var(--border); }

.scenario-grid { display: flex; flex-wrap: wrap; margin: 0 -12px -24px; }

.scenario-card {
    width: calc(25% - 24px);
    margin: 0 12px 24px;
    background: var(--panel);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 24px 20px;
    transition: transform 0.2s, background 0.2s;
}

.scenario-card:hover { transform: translateY(-4px); background: #1a2d40; }

.scenario-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }

.scenario-card p { font-size: 13px; color: var(--muted); }

/* ===== 下载 ===== */
.download-grid { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 -12px -24px; }

.download-card {
    width: calc(50% - 24px);
    max-width: 360px;
    margin: 0 12px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.download-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.download-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 179, 65, 0.12);
    color: var(--accent);
}

.download-icon svg { width: 32px; height: 32px; }

.download-card h3 { font-size: 22px; margin-bottom: 8px; }

.download-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.version-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(232, 179, 65, 0.1);
    border: 1px solid rgba(232, 179, 65, 0.35);
    border-radius: 999px;
    padding: 3px 14px;
    margin-bottom: 24px;
}

.version-tag.coming { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--border-2); }

.download-card .btn { width: 100%; }

.download-note {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--dim);
}

/* ===== 接收投屏引导 ===== */
.receive-section { background: var(--bg-deep); border-bottom: 1px solid var(--border); }

.receive-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(232, 179, 65, 0.08), rgba(26, 82, 118, 0.16));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.receive-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 179, 65, 0.12);
    color: var(--accent);
    margin-right: 36px;
}

.receive-icon svg { width: 44px; height: 44px; }

.receive-body { flex: 1; min-width: 0; }

.receive-body .section-sub { max-width: 640px; }

.receive-steps {
    display: flex;
    flex-wrap: wrap;
    margin: 22px 0 24px;
}

.receive-step {
    margin: 0 12px 10px 0;
    font-size: 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    padding: 6px 16px;
}

@media (max-width: 640px) {
    .receive-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .receive-icon { margin-right: 0; margin-bottom: 20px; }
}

/* ===== 页脚 ===== */
.site-footer {
    background: #0f1923;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid { display: flex; flex-wrap: wrap; margin: 0 -16px -32px; }

.footer-brand { flex: 1 1 300px; margin: 0 16px 32px; }

.footer-brand-name { font-size: 18px; }

.footer-slogan { margin-top: 14px; font-size: 14px; color: var(--muted); }

.footer-col { flex: 1 1 180px; margin: 0 16px 32px; }

.footer-col h4 { font-size: 15px; margin-bottom: 16px; color: var(--text); }

.footer-col a,
.footer-col p {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--dim);
    text-align: center;
}

.footer-bottom p + p { margin-top: 10px; }

.footer-bottom .dot { margin: 0 8px; }

.placeholder { color: var(--border-2); }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--panel);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(232, 179, 65, 0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero-text { max-width: 100%; }
    .hero-visual { max-width: 440px; width: 100%; margin-left: 0; margin-top: 56px; }

    .value-card { width: calc(50% - 24px); }
    .feature-card { width: calc(50% - 24px); }
    .scenario-card { width: calc(50% - 24px); }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }

    .nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 20px;
        display: none;
    }

    .nav.open { display: flex; }

    .nav > a {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav > a:last-child { border-bottom: none; }

    .nav > a.nav-cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
        border: 1px solid var(--accent);
    }
}

@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .section { padding: 56px 0; }
    .hero-inner { padding-top: 48px; padding-bottom: 48px; }
    .hero-title { font-size: 30px; }

    .value-card,
    .feature-card,
    .scenario-card { width: calc(100% - 24px); }

    .download-card { width: calc(100% - 24px); max-width: none; }
}
