/* ==========================================================================
   向日葵远程控制 - 资源下载站  样式表
   风格：克制、沉稳、信息密度优先的下载站视觉
   ========================================================================== */

:root {
    --ink: #1c2128;
    --ink-2: #3a424d;
    --ink-3: #6b7480;
    --ink-4: #9aa3ad;
    --line: #e3e6ea;
    --line-2: #eef0f3;
    --bg: #f4f5f7;
    --paper: #ffffff;
    --brand: #1467b8;
    --brand-d: #0f4f8f;
    --brand-l: #e8f1fa;
    --accent: #c0392b;
    --ok: #2e8b57;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-s: 0 1px 2px rgba(28, 33, 40, .05);
    --shadow-m: 0 2px 10px rgba(28, 33, 40, .07);
    --shadow-l: 0 10px 34px rgba(28, 33, 40, .12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-d); }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.topbar {
    background: #1a1f26;
    color: #98a2ad;
    font-size: 12.5px;
    line-height: 34px;
    border-bottom: 1px solid #262c34;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar span { color: #98a2ad; }
.topbar .tb-tag { color: #7f8a95; }

.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 18px; color: var(--ink); letter-spacing: .3px; font-weight: 700; }
.brand-txt i { font-style: normal; font-size: 11.5px; color: var(--ink-4); letter-spacing: 1.4px; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
    color: var(--ink-2); font-size: 14.5px; padding: 8px 14px;
    border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--line-2); color: var(--brand); }
.nav a.on { color: var(--brand); background: var(--brand-l); font-weight: 600; }

/* ---------- 通用区块 ---------- */
.sec { padding: 44px 0; }
.sec-tight { padding: 30px 0; }
.sec-head { margin-bottom: 22px; }
.sec-head h2 {
    font-size: 21px; color: var(--ink); font-weight: 700;
    letter-spacing: .2px; display: flex; align-items: center; gap: 10px;
}
.sec-head h2::before {
    content: ""; width: 3px; height: 18px; background: var(--brand); border-radius: 2px;
}
.sec-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { justify-content: center; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-pad { padding: 24px 26px; }

/* ---------- 首页主视觉 ---------- */
.hero {
    background: linear-gradient(160deg, #1a1f26 0%, #212a36 52%, #1d2b3a 100%);
    color: #e8ecf1; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -140px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 103, 184, .30), rgba(20, 103, 184, 0) 68%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 42px; padding-bottom: 46px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.crumb { font-size: 12.5px; color: #8e99a5; margin-bottom: 18px; }
.crumb a { color: #a9b4c0; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 7px; color: #5d6772; }

.hero h1 {
    font-size: 32px; line-height: 1.32; font-weight: 700; color: #fff;
    letter-spacing: .3px; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: #6fb4f0; }
.hero .lead { color: #aab5c2; font-size: 14.5px; line-height: 1.85; margin-bottom: 20px; max-width: 620px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
    font-size: 12.5px; color: #b9c4d0; border: 1px solid #39424e;
    background: rgba(255, 255, 255, .03); padding: 4px 11px; border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; font-family: var(--font);
    transition: all .22s; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(20, 103, 184, .3); }
.btn-primary:hover { background: var(--brand-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #d5dde6; border-color: #414b58; }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.btn-line { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.hero-note { margin-top: 16px; font-size: 12.5px; color: #7f8a96; }

.hero-shot {
    border: 1px solid #333d49; border-radius: 12px; overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .42); background: #10151b;
}
.hero-shot img { width: 100%; display: block; }

/* ---------- 软件信息表 ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line-2); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
    text-align: left; font-weight: 400; color: var(--ink-3);
    padding: 11px 10px 11px 0; width: 96px; vertical-align: top; white-space: nowrap;
}
.spec-table td { padding: 11px 0; color: var(--ink); }
.spec-table td .kv-note { color: var(--ink-4); font-size: 12.5px; margin-left: 6px; }

.ver-tag {
    display: inline-block; background: var(--brand-l); color: var(--brand-d);
    font-size: 12px; padding: 2px 9px; border-radius: 4px; font-weight: 600;
}
.score-line { display: flex; align-items: center; gap: 10px; }
.stars { color: #e2a03f; letter-spacing: 2px; font-size: 15px; }
.score-line b { color: var(--accent); font-size: 17px; }

/* ---------- 下载区 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dl-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; padding: 20px 20px 18px; position: relative;
    transition: box-shadow .25s, border-color .25s;
}
.dl-card:hover { box-shadow: var(--shadow-m); border-color: #d3d9e0; }
.dl-card .dl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dl-card .dl-top img { width: 30px; height: 30px; object-fit: contain; }
.dl-card h3 { font-size: 16px; color: var(--ink); font-weight: 700; }
.dl-card .dl-meta { font-size: 12.5px; color: var(--ink-4); margin-bottom: 14px; }
.dl-card .dl-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; min-height: 42px; }

.stat-row { display: flex; gap: 0; border-top: 1px solid var(--line); background: #fff; }
.stat-row .st {
    flex: 1; text-align: center; padding: 20px 10px; border-right: 1px solid var(--line);
}
.stat-row .st:last-child { border-right: 0; }
.stat-row .st b {
    display: block; font-size: 24px; color: var(--ink); font-weight: 700;
    letter-spacing: -.4px; line-height: 1.3;
}
.stat-row .st span { font-size: 12.5px; color: var(--ink-4); }

/* ---------- 功能 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 20px;
}
.feat .fi {
    width: 40px; height: 40px; border-radius: 9px; background: var(--brand-l);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feat .fi img { width: 24px; height: 24px; object-fit: contain; }
.feat-no {
    display: block; font-size: 21px; font-weight: 800; line-height: 1;
    color: #d7dfe8; letter-spacing: 1.2px; margin-bottom: 13px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.nd-badge {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .5px;
}
.nd-badge.quark { background: linear-gradient(135deg, #3a6ff0, #2a4fd6); }
.nd-badge.baidu { background: linear-gradient(135deg, #2f9ae0, #1f6fc9); }
.feat h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.feat p { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 截图 ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; display: block; background: #f0f2f4; }
.shot figcaption { padding: 11px 14px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line-2); }

/* ---------- 内容排版 ---------- */
.doc h2 {
    font-size: 19px; color: var(--ink); margin: 34px 0 12px; font-weight: 700;
    padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.5;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15.5px; color: var(--ink); margin: 22px 0 8px; font-weight: 700; }
.doc p { margin-bottom: 13px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 2px; }
.doc ul li, .doc ol li {
    position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-2);
}
.doc ul li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.doc ol { counter-reset: li; }
.doc ol li::before {
    content: counter(li); counter-increment: li; position: absolute; left: 0; top: 1px;
    width: 17px; height: 17px; border-radius: 50%; background: var(--brand);
    color: #fff; font-size: 11px; text-align: center; line-height: 17px; font-weight: 600;
}
.doc strong { color: var(--ink); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 16px; background: #fff; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl th { background: #f7f8fa; color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl tbody tr:nth-child(even) td { background: #fbfcfd; }

.tip {
    border-left: 3px solid var(--brand); background: #f2f7fc;
    padding: 13px 16px; border-radius: 0 6px 6px 0;
    font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px;
}
.tip.warn { border-color: #d9a441; background: #fdf8ee; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .tags span {
    font-size: 12.5px; color: var(--ink-3); background: #fff;
    border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}
.tags a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 侧栏布局 ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.side .panel { margin-bottom: 18px; }
.side h4 {
    font-size: 14.5px; color: var(--ink); padding: 14px 18px;
    border-bottom: 1px solid var(--line-2); font-weight: 700;
}
.side-list { padding: 8px 18px 14px; }
.side-list li { border-bottom: 1px dashed var(--line-2); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); }
.side-list a:hover { color: var(--brand); padding-left: 4px; }
.side-body { padding: 16px 18px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 下载单页 ---------- */
.dl-hero { background: #fff; border-bottom: 1px solid var(--line); }
.dl-hero .wrap { padding-top: 26px; padding-bottom: 26px; }
.dl-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: center; }
.app-id { display: flex; gap: 18px; align-items: flex-start; }
.app-id .app-icon {
    width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--line);
    background: #fff; padding: 8px; flex-shrink: 0;
}
.app-id .app-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-id h1 { font-size: 24px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.app-id .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.kv-inline span {
    font-size: 12px; color: var(--ink-3); border: 1px solid var(--line);
    background: #fafbfc; border-radius: 4px; padding: 2px 9px;
}

/* 二维码 */
.qr-box { text-align: center; }
.qr-frame {
    display: inline-block; padding: 8px; background: #fff; border-radius: 10px;
    position: relative; line-height: 0;
    animation: qrBreath 2.6s ease-in-out infinite;
    border: 2px solid rgba(20, 103, 184, .45);
}
.qr-frame img { width: 150px; height: 150px; border-radius: 4px; }
@keyframes qrBreath {
    0%   { box-shadow: 0 0 0 0 rgba(20, 103, 184, .00), 0 0 0 rgba(20, 103, 184, .30); border-color: rgba(20, 103, 184, .28); }
    50%  { box-shadow: 0 0 0 5px rgba(20, 103, 184, .10), 0 0 16px rgba(20, 103, 184, .38); border-color: rgba(20, 103, 184, .78); }
    100% { box-shadow: 0 0 0 0 rgba(20, 103, 184, .00), 0 0 0 rgba(20, 103, 184, .30); border-color: rgba(20, 103, 184, .28); }
}
.qr-caption { font-size: 13px; color: var(--ink-2); margin-top: 11px; font-weight: 600; }
.qr-sub { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(18, 22, 27, .62);
    display: none; align-items: center; justify-content: center; z-index: 999;
    padding: 20px; backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
    box-shadow: var(--shadow-l); overflow: hidden; animation: mIn .26s ease;
}
@keyframes mIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-head {
    padding: 16px 22px; border-bottom: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 16px; color: var(--ink); font-weight: 700; }
.modal-close {
    background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-4);
    cursor: pointer; padding: 0 2px; font-family: var(--font);
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px 22px; display: flex; gap: 24px; align-items: flex-start; }
.modal-qr { flex-shrink: 0; text-align: center; }
.modal-info { flex: 1; min-width: 0; }
.modal-info h4 { font-size: 15px; color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.modal-info ul li {
    position: relative; padding-left: 18px; font-size: 13.5px;
    color: var(--ink-2); margin-bottom: 7px; line-height: 1.7;
}
.modal-info ul li::before {
    content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--ok);
}
.modal-warn {
    margin-top: 6px; background: #fdf6f5; border: 1px solid #f3ddd9;
    border-radius: 8px; padding: 11px 14px; font-size: 13px; color: #a8382b; line-height: 1.7;
}
.modal-foot {
    padding: 14px 22px 20px; border-top: 1px solid var(--line-2);
    display: flex; gap: 12px; justify-content: flex-end;
}

/* ---------- 页脚 ---------- */
.site-foot { background: #1a1f26; color: #8b96a2; margin-top: 40px; font-size: 13px; }
.site-foot a { color: #b3bdc8; }
.site-foot a:hover { color: #fff; }
.foot-main {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px;
    padding: 36px 0 28px; border-bottom: 1px solid #262d36;
}
.foot-main h5 { color: #dfe5eb; font-size: 14px; margin-bottom: 12px; font-weight: 700; }
.foot-main p { line-height: 1.9; color: #87929e; }
.foot-links li { margin-bottom: 8px; }
.foot-bottom { padding: 18px 0 22px; line-height: 1.9; color: #77828e; }
.foot-bottom .copyright { margin-bottom: 6px; }
.foot-bottom .declare { color: #9aa4b0; }
.foot-bottom .ico-note { margin-top: 8px; font-size: 12px; color: #6e7883; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero-grid, .layout, .dl-hero-grid { grid-template-columns: 1fr; }
    .feat-grid, .shots { grid-template-columns: repeat(2, 1fr); }
    .foot-main { grid-template-columns: 1fr 1fr; }
    .side { order: 2; }
}
@media (max-width: 720px) {
    body { font-size: 14.5px; }
    .site-head .wrap { height: auto; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
    .nav { gap: 0; }
    .nav a { padding: 6px 10px; font-size: 13.5px; }
    .hero h1 { font-size: 24px; }
    .hero .wrap { padding-top: 28px; padding-bottom: 32px; }
    .dl-grid, .feat-grid, .shots, .foot-main { grid-template-columns: 1fr; }
    .stat-row { flex-wrap: wrap; }
    .stat-row .st { flex: 1 0 50%; border-bottom: 1px solid var(--line); }
    .modal-body { flex-direction: column; align-items: center; }
    .modal-info { width: 100%; }
    .app-id { flex-direction: column; }
    .topbar .wrap { flex-direction: column; align-items: flex-start; line-height: 1.8; padding-top: 6px; padding-bottom: 6px; }
}
