/* ==========================================================
   MyTV 前台首页
   ========================================================== */
:root {
    --bg: #070b14;
    --bg-2: #0b1222;
    --card: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .09);
    --text: #e9eefb;
    --muted: #8a97b1;
    --primary: #4f7cff;
    --primary-2: #7a5cff;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
svg.i { width: 18px; height: 18px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.glow {
    position: fixed; inset: -20% -10% auto -10%; height: 700px;
    background:
        radial-gradient(600px 400px at 18% 10%, rgba(79, 124, 255, .28), transparent 70%),
        radial-gradient(520px 360px at 78% 0%, rgba(122, 92, 255, .22), transparent 70%);
    filter: blur(10px);
    pointer-events: none; z-index: 0;
}

/* ---------------- 顶栏 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 20, .7);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px -12px rgba(79, 124, 255, .9);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 15px; }
.logo-text small { color: var(--muted); font-size: 11.5px; }

.site-nav { display: flex; gap: 22px; margin-left: 18px; font-size: 13.5px; color: var(--muted); }
.site-nav a:hover { color: #fff; }

.header-admin {
    margin-left: auto;
    padding: 8px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
    font-size: 13px; transition: .15s;
}
.header-admin:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px;
    border-radius: 12px; font-size: 14px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: .18s;
    font-family: inherit;
}
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6b8bff);
    color: #fff;
    box-shadow: 0 16px 34px -18px rgba(79, 124, 255, 1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -18px rgba(79, 124, 255, 1); }
.btn-outline { border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, .09); }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero { position: relative; z-index: 1; padding: 84px 0 40px; }
.hero-inner { max-width: 780px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
    font-size: 12.5px; color: #b8c4dc;
}
.pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #2ee08a;
    box-shadow: 0 0 0 4px rgba(46, 224, 138, .18);
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.18; letter-spacing: -1px;
    margin: 22px 0 18px; font-weight: 750;
}
.grad {
    background: linear-gradient(120deg, #7fa5ff, #b18cff 60%, #6fe1ff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-desc { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* ---------------- 统计 ---------------- */
.stats { position: relative; z-index: 1; padding: 30px 0 10px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}
.stats-item { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats-item:last-child { border-right: 0; }
.stats-item strong { display: block; font-size: 26px; letter-spacing: -.5px; }
.stats-item span { color: var(--muted); font-size: 12.5px; }

/* ---------------- 区块 ---------------- */
.section-head { margin: 0 0 30px; }
.section-head h2 { font-size: 26px; letter-spacing: -.5px; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; font-size: 14px; }

.features { position: relative; z-index: 1; padding: 72px 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: .2s;
}
.feature:hover { border-color: rgba(79, 124, 255, .45); transform: translateY(-3px); background: rgba(79, 124, 255, .07); }
.feature-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 14px;
    background: rgba(79, 124, 255, .16); color: #9db6ff;
}
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* ---------------- 下载 ---------------- */
.download { position: relative; z-index: 1; padding: 30px 0; }
.download-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(79, 124, 255, .3);
    background: linear-gradient(120deg, rgba(79, 124, 255, .16), rgba(122, 92, 255, .1));
    flex-wrap: wrap;
}
.download h2 { margin: 0 0 6px; font-size: 22px; }
.download p { margin: 0; color: #b4c1dc; font-size: 13.5px; max-width: 560px; }

/* ---------------- 文档 ---------------- */
.docs { position: relative; z-index: 1; padding: 60px 0 70px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.doc-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc-box-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.doc-box-value { font-size: 13.5px; color: #b9cdfb; word-break: break-all; }
.code {
    background: #05080f;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 12.5px; line-height: 1.85;
    color: #c3d2ee;
    margin: 0 0 14px;
    white-space: pre;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.docs-tip { color: var(--muted); font-size: 13px; }
.docs-tip a { color: #8ea9ff; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner strong { font-size: 14px; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.footer-right { display: flex; gap: 18px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .site-nav { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-item:nth-child(2) { border-right: 0; }
    .stats-item:nth-child(1), .stats-item:nth-child(2) { border-bottom: 1px solid var(--line); }
    .docs-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 30px; }
}
@media (max-width: 620px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .download-inner { padding: 22px; }
}
