:root {
    color-scheme: light;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f8faff;
    --text: #10213f;
    --muted: #697792;
    --line: #dfe6f2;
    --primary: #2877f4;
    --primary-dark: #155dd1;
    --primary-soft: #eaf2ff;
    --success: #16a36a;
    --warning: #e89312;
    --danger: #dc4754;
    --shadow: 0 14px 38px rgba(34, 66, 125, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% -5%, rgba(40,119,244,.16), transparent 31rem),
        radial-gradient(circle at 98% 5%, rgba(80,196,231,.14), transparent 28rem),
        var(--bg);
    font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, -apple-system, sans-serif;
    line-height: 1.65;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    border-bottom: 1px solid rgba(223,230,242,.85);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
}
.topbar-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, #398af9, #185dd7);
    box-shadow: 0 8px 18px rgba(40,119,244,.28);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand small { display: block; color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 13px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.mobile-label { display: none; }
.btn-login { color: #fff !important; border-color: #183a73 !important; background: #183a73 !important; }
.btn-login:hover { color: #fff !important; background: #102a59 !important; }

.btn {
    border: 1px solid var(--line); border-radius: 11px; padding: 10px 17px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--text); background: #fff; text-decoration: none; cursor: pointer;
    transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #b9c9e5; box-shadow: 0 8px 18px rgba(42,74,127,.09); }
.btn-primary { color: #fff; border-color: var(--primary); background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.btn-small { padding: 7px 11px; border-radius: 9px; font-size: 13px; }
.btn-wide { width: 100%; }

.hero { padding: 74px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
    background: var(--primary-soft); border: 1px solid #d4e4ff;
    border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px;
}
.pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(22,163,106,.12); }
.hero h1 { margin: 20px 0 16px; font-size: clamp(36px, 5vw, 62px); line-height: 1.12; letter-spacing: -2px; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 6px; }

.release-card {
    position: relative; overflow: hidden; padding: 28px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 25px;
    color: #fff; background: linear-gradient(145deg, #102a59, #173d7c 55%, #1f6be0);
    box-shadow: 0 24px 60px rgba(20,58,120,.28);
}
.release-card::after {
    content: ""; position: absolute; width: 230px; height: 230px; right: -110px; top: -100px;
    border-radius: 50%; background: rgba(255,255,255,.09);
}
.release-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.version-number { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.release-card .muted-light { color: rgba(255,255,255,.68); }
.release-card h3 { margin: 24px 0 8px; font-size: 20px; }
.release-notes { padding: 0; margin: 14px 0 24px; list-style: none; }
.release-notes li { position: relative; padding: 5px 0 5px 25px; color: rgba(255,255,255,.85); }
.release-notes li::before { content: "✓"; position: absolute; left: 0; color: #74e3bd; font-weight: 900; }
.release-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.release-meta div { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.08); border-radius: 12px; padding: 11px; }
.release-meta small { color: rgba(255,255,255,.58); display: block; }

.notice { margin: 0 auto 22px; padding: 14px 16px; border-radius: 13px; border: 1px solid #cfe0ff; background: #edf4ff; color: #29558f; }
.notice.warning { border-color: #f7d999; background: #fff7e7; color: #815b13; }
.notice.success { border-color: #bdebd8; background: #eafaf4; color: #146848; }
.notice.danger { border-color: #f1c1c5; background: #fff0f1; color: #8a3038; }

.section { padding: 54px 0; scroll-margin-top: 92px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-title h2 { margin: 0; font-size: 30px; letter-spacing: -.8px; }
.section-title p { margin: 5px 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-card { padding: 24px; }
.feature-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); font-weight: 900; font-size: 20px; }
.feature-card h3 { margin: 16px 0 7px; }
.feature-card p { margin: 0; color: var(--muted); }
.timeline { display: grid; gap: 15px; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.timeline-version { color: var(--primary); font-size: 21px; font-weight: 900; }
.timeline-item h3 { margin: 0 0 6px; }
.timeline-item p { color: var(--muted); margin: 0; white-space: pre-line; }
.footer { margin-top: 50px; padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

/* Product homepage */
.product-hero { padding-top: 48px; padding-bottom: 76px; }
.product-hero-grid { grid-template-columns: .88fr 1.12fr; }
.product-hero h1 { font-size: clamp(38px, 4.5vw, 56px); letter-spacing: -1.5px; }
.section-kicker {
    display: inline-block; margin-bottom: 8px; color: var(--primary);
    font-size: 13px; font-weight: 800; letter-spacing: .08em;
}
.app-preview {
    position: relative; overflow: hidden; border: 1px solid #d7e1f1; border-radius: 24px;
    background: #fff; box-shadow: 0 28px 70px rgba(30,64,124,.18);
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    cursor: default; user-select: none;
}
.preview-demo-label {
    position: absolute; z-index: 4; left: 18px; top: 76px;
    padding: 5px 10px; border: 1px dashed #88a9da; border-radius: 999px;
    color: #426a9e; background: rgba(239,245,255,.94);
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.preview-titlebar {
    display: flex; align-items: center; gap: 10px; padding: 16px 18px;
    border-bottom: 1px solid var(--line); background: #f8faff;
}
.preview-titlebar > div:nth-child(2) { display: grid; line-height: 1.35; }
.preview-titlebar small { color: var(--muted); }
.preview-logo {
    width: 34px; height: 34px; display: grid; place-items: center;
    color: #fff; border-radius: 10px; font-weight: 900;
    background: linear-gradient(145deg, #398af9, #155dd1);
}
.preview-status {
    margin-left: auto; padding: 4px 9px; color: #08784d; border-radius: 999px;
    background: #dff7ed; font-size: 12px; font-weight: 800;
}
.preview-input {
    display: flex; align-items: center; gap: 10px; margin: 16px;
    padding: 9px 9px 9px 14px; border: 1px solid #cfd9ea; border-radius: 12px;
}
.preview-input span { flex: 1; color: #8a97ac; font-size: 13px; }
.preview-action {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; padding: 9px 12px; color: #fff;
    background: #6f8dbb; font-weight: 700; white-space: nowrap;
}
.preview-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 17px 11px; font-size: 13px; }
.preview-toolbar b { color: var(--primary); }
.preview-toolbar i {
    margin-left: auto; padding: 4px 8px; border-radius: 8px;
    color: var(--primary); background: var(--primary-soft); font-style: normal;
}
.preview-table { margin: 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview-row {
    display: grid; grid-template-columns: 50px minmax(190px, 1fr) 110px 70px;
    align-items: center; min-height: 62px; border-top: 1px solid var(--line);
    color: #51617c; font-size: 12px;
}
.preview-row:first-child { border-top: 0; }
.preview-row > span { padding: 9px 10px; }
.preview-row > span:first-child { text-align: center; color: var(--primary); font-size: 17px; }
.preview-row b, .preview-row small { display: block; }
.preview-row b { overflow: hidden; color: var(--text); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.preview-row small { color: var(--muted); }
.preview-row.preview-head { min-height: 38px; background: #f5f8fd; color: var(--text); font-weight: 800; }
.preview-row.preview-head > span:first-child { color: var(--text); font-size: 12px; }
.preview-row .ok { color: #08784d; font-weight: 800; }
.preview-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 15px 17px; color: var(--muted); font-size: 12px;
}
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
    position: relative; overflow: hidden; min-height: 180px; padding: 26px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    box-shadow: var(--shadow);
}
.step-card > span {
    position: absolute; right: 18px; top: 2px; color: #e8effb;
    font-size: 64px; font-weight: 900; line-height: 1;
}
.step-card h3 { position: relative; margin: 48px 0 7px; font-size: 21px; }
.step-card p { position: relative; margin: 0; color: var(--muted); }
.platform-section { background: linear-gradient(180deg, rgba(232,241,255,.58), rgba(243,246,251,0)); }
.platform-cloud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform-card {
    position: relative; display: flex; align-items: center; gap: 13px; min-height: 94px;
    padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff;
    box-shadow: 0 8px 18px rgba(42,74,127,.05); cursor: default;
}
.platform-logo {
    width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
    border-radius: 14px; background: #f5f7fb;
}
.platform-logo img {
    width: 34px; height: 34px; display: block; object-fit: contain;
    object-position: center; user-select: none;
}
.platform-logo.douyin img, .platform-logo.tiktok img { width: 31px; height: 31px; }
.platform-logo.toutiao img, .platform-logo.x img { width: 32px; height: 32px; }
.platform-logo.youtube img { width: 35px; height: 29px; }
.platform-logo.weibo img { width: 36px; height: 32px; }
.platform-copy { min-width: 0; display: grid; gap: 3px; }
.platform-copy strong { font-size: 16px; }
.platform-copy small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.platform-card > b {
    position: absolute; right: 12px; top: 10px; color: #c0ccdc;
    font-size: 10px; font-weight: 800;
}
.platform-card::after {
    content: "支持解析"; position: absolute; right: 12px; bottom: 9px;
    color: #7490b3; font-size: 10px;
}
.platform-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.privacy-section {
    background: linear-gradient(135deg, #102a59, #173d7c 58%, #1d65cc);
    color: #fff;
}
.privacy-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 40px; align-items: center; }
.privacy-section .section-kicker { color: #7bb5ff; }
.privacy-section h2 { margin: 4px 0 12px; font-size: 34px; }
.privacy-section p { color: rgba(255,255,255,.72); }
.privacy-points { display: grid; gap: 7px; margin-top: 22px; color: rgba(255,255,255,.88); }
.folder-card {
    padding: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px;
    background: rgba(255,255,255,.09); box-shadow: 0 18px 45px rgba(2,13,40,.22);
}
.folder-card small { color: rgba(255,255,255,.58); }
.folder-card strong { display: block; margin: 6px 0 15px; font-size: 19px; }
.folder-card ul { margin: 0; padding: 13px 16px 13px 38px; border-radius: 12px; background: rgba(8,22,50,.38); }
.folder-card li { padding: 3px 0; color: rgba(255,255,255,.76); }
.folder-card .folder-highlight { color: #86e3bd; font-weight: 700; }
.folder-card p { margin: 13px 0 0; font-size: 12px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-grid details {
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; box-shadow: 0 8px 20px rgba(42,74,127,.05);
}
.faq-grid summary { cursor: pointer; color: var(--text); font-weight: 800; }
.faq-grid p { margin: 12px 0 0; color: var(--muted); }
.version-section { background: #eaf2ff; }
.version-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; }
.version-layout h2 { margin: 5px 0 4px; font-size: 35px; }
.version-layout > div > p { margin: 0; color: var(--muted); }
.version-notes { margin: 18px 0; padding-left: 22px; color: #405474; }
.version-meta { align-self: center; color: var(--muted); font-size: 13px; }
.version-side {
    padding: 22px; border: 1px solid #d2e1f9; border-radius: 16px;
    background: rgba(255,255,255,.72);
}
.version-side strong { font-size: 18px; }
.version-side p { color: var(--muted); }
.version-side a { color: var(--primary); text-decoration: none; font-weight: 800; }

/* Admin */
.admin-body { background: #eef2f8; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 15px; background: #10213f; color: #fff; }
.sidebar .brand { padding: 0 9px 22px; color: #fff; }
.sidebar .brand small { color: rgba(255,255,255,.56); }
.side-nav { display: grid; gap: 6px; }
.side-nav a { padding: 11px 13px; border-radius: 11px; text-decoration: none; color: rgba(255,255,255,.70); }
.side-nav a:hover, .side-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.side-footer { position: absolute; left: 18px; right: 18px; bottom: 20px; color: rgba(255,255,255,.48); font-size: 12px; }
.admin-main { padding: 27px; min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-header h1 { margin: 0; font-size: 28px; }
.admin-header p { margin: 4px 0 0; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.stat { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 7px; font-size: 27px; }
.stat-trend { margin-top: 7px; color: var(--success); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; }
.panel { padding: 21px; box-shadow: 0 8px 24px rgba(42,74,127,.06); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 19px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #50617e; font-weight: 700; }
.field input, .field textarea, .field select {
    width: 100%; border: 1px solid #ccd6e7; border-radius: 10px;
    padding: 10px 12px; color: var(--text); background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40,119,244,.12); }
.field textarea { min-height: 125px; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 9px; }
.check-row input { width: 18px; height: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 11px 9px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 9px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; background: #edf2fa; color: #53647f; }
.tag.published, .tag.resolved { color: #08784d; background: #dff7ed; }
.tag.draft, .tag.processing { color: #8a5b00; background: #fff0cb; }
.tag.new { color: #155dd1; background: #e5efff; }
.tag.archived, .tag.ignored { color: #6b7280; background: #eef0f3; }
.inline-form { display: inline-flex; gap: 5px; }
.feedback-item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.feedback-item:last-child { border-bottom: 0; }
.feedback-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.feedback-item p { margin: 8px 0; white-space: pre-wrap; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 25px 65px rgba(25,55,110,.16); }
.login-logo { display: grid; place-items: center; margin: 0 auto 18px; width: 58px; height: 58px; color: #fff; font-size: 26px; font-weight: 900; border-radius: 18px; background: linear-gradient(145deg, #398af9, #155dd1); }
.login-card h1 { text-align: center; margin: 0; }
.login-card > p { text-align: center; color: var(--muted); margin: 7px 0 24px; }
.login-card .field { margin-bottom: 14px; }

@media (max-width: 980px) {
    .hero-grid, .dashboard-grid, .privacy-grid, .version-layout { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .platform-cloud { grid-template-columns: repeat(3, 1fr); }
    .app-preview { transform: none; }
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .side-nav { grid-template-columns: repeat(4, 1fr); }
    .side-footer { display: none; }
    .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .nav a:not(.btn) { display: none; }
    .topbar-inner { min-height: 64px; gap: 8px; }
    .brand { min-width: 0; gap: 9px; }
    .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; }
    .brand-mark svg { width: 20px; height: 20px; }
    .brand > span:last-child { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
    .brand small { display: none; }
    .nav { flex: 0 0 auto; }
    .nav .btn { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
    .nav .version-button { display: none; }
    .btn-login .desktop-label { display: none; }
    .btn-login .mobile-label { display: inline; }
    .hero { padding-top: 42px; }
    .feature-grid, .step-grid, .platform-cloud, .faq-grid, .stats, .form-grid { grid-template-columns: 1fr; }
    .product-hero { padding-bottom: 34px; }
    .step-card { min-height: 155px; padding: 22px; }
    .step-card h3 { margin-top: 36px; }
    .preview-row { grid-template-columns: 42px minmax(150px, 1fr) 80px; }
    .preview-row > span:nth-child(4) { display: none; }
    .preview-toolbar { flex-wrap: wrap; }
    .preview-toolbar i { margin-left: 0; }
    .preview-demo-label { left: 12px; top: 72px; }
    .platform-card { min-height: 88px; }
    .field.full { grid-column: auto; }
    .timeline-item { grid-template-columns: 1fr; gap: 7px; }
    .side-nav { grid-template-columns: 1fr 1fr; }
    .admin-main { padding: 17px; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .footer-inner { flex-direction: column; }
}
