/* 豆包下载站 - 公共样式 */
:root {
  --ink: #23292f;
  --ink-2: #4d5761;
  --ink-3: #8a939d;
  --line: #e4e7eb;
  --line-2: #eef0f3;
  --paper: #f6f7f9;
  --card: #ffffff;
  --brand: #2f6bdb;
  --brand-deep: #2456b3;
  --brand-soft: #eef4fe;
  --ok: #2e9e5b;
  --warn: #b97a1a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .site-name { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.brand .site-tag { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); padding: 1px 8px; border-radius: 20px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); font-size: 15px; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.nav .nav-dl { background: var(--brand); color: #fff; padding: 7px 18px; border-radius: 6px; border: none; }
.nav .nav-dl:hover { background: var(--brand-deep); color: #fff; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.nav-toggle svg { display: block; }

/* ---------- 页面小标题 ---------- */
.page-head { padding: 34px 0 6px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
h1.page-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.page-sub { color: var(--ink-2); margin-top: 8px; max-width: 720px; }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(180deg, #eef4fe 0%, var(--paper) 100%); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 48px; padding: 54px 0 50px; }
.hero-main { flex: 1.15; min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-deep); background: #fff; border: 1px solid #d7e4fb; border-radius: 30px; padding: 4px 14px; margin-bottom: 18px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: .01em; }
.hero h1 .thin { font-weight: 500; color: var(--ink-2); font-size: 24px; }
.hero-desc { color: var(--ink-2); margin: 16px 0 10px; max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 16px 0 26px; font-size: 13px; color: var(--ink-3); }
.hero-meta span::before { content: "·"; margin-right: 7px; color: var(--line); }
.hero-meta span:first-child::before { content: ""; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-qr { display: flex; align-items: center; gap: 12px; }
.hero-qr .qr-text { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.hero-visual { flex: 1; min-width: 0; position: relative; }
.hero-visual .shot-pc { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-visual .shot-phone { position: absolute; right: -6px; bottom: -34px; width: 128px; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(16, 24, 40, .16); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-size: 16px; font-weight: 600; border-radius: 8px; transition: background .18s, box-shadow .18s, transform .12s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; padding: 13px 40px; box-shadow: 0 6px 16px rgba(47, 107, 219, .28); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); padding: 12px 26px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { font-size: 14px; padding: 9px 22px; }
.btn-block { width: 100%; }

/* ---------- 二维码 + 呼吸边框 ---------- */
.qr-shell { padding: 7px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(16, 24, 40, .10); }
.qr-breath { border-radius: 8px; display: block; animation: qrBreathe 2.6s ease-in-out infinite; }
.qr-shell--sm .qr-breath { width: 92px; height: 92px; }
.qr-shell--md .qr-breath { width: 150px; height: 150px; }
@keyframes qrBreathe {
  0%, 100% { box-shadow: 0 0 0 1px #dfe6f2, 0 0 0 0 rgba(47, 107, 219, .22); transform: scale(1); }
  50% { box-shadow: 0 0 0 1px #c9d9f3, 0 0 0 7px rgba(47, 107, 219, .08); transform: scale(1.022); }
}
@media (prefers-reduced-motion: reduce) { .qr-breath { animation: none; } }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; }
.section-head { margin-bottom: 26px; }
.section-head .kicker { font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: 24px; font-weight: 700; margin-top: 4px; }
.section-head p { color: var(--ink-2); margin-top: 6px; max-width: 680px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 功能网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 24px 22px; }
.feature-card .f-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--brand); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); font-size: 14px; }

/* 截图画廊 */
.shots-pc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots-pc figure { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.shots-pc img { width: 100%; aspect-ratio: 1120 / 760; object-fit: cover; transition: transform .35s ease; }
.shots-pc figure:hover img { transform: scale(1.02); }
.shots-pc figcaption { padding: 10px 14px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.shots-m { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shots-m figure { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.shots-m img { width: 100%; aspect-ratio: 450 / 800; object-fit: cover; }

/* 信息表格 */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 12px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 130px; color: var(--ink-3); font-weight: 500; background: #fafbfc; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

/* 下载页：资源详情 + 网盘卡片 */
.dl-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.res-detail { padding: 26px 28px; }
.res-detail h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: 14.5px; }
.check-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: #e9f7ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5-5.4' fill='none' stroke='%232e9e5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }

.pan-card { padding: 24px; text-align: center; }
.pan-card + .pan-card { margin-top: 18px; }
.pan-card .pan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.pan-card .pan-note { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.pan-card .pan-tip { font-size: 12.5px; color: var(--warn); background: #fdf6ec; border: 1px solid #f3e3c6; border-radius: 8px; padding: 8px 12px; margin-top: 14px; text-align: left; line-height: 1.6; }
.pan-card .pwd { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.pan-card .pwd b { color: var(--ink); font-weight: 700; letter-spacing: .12em; }

/* 步骤 */
.steps { counter-reset: step; list-style: none; }
.steps li { position: relative; padding: 0 0 22px 46px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 14px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 20px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--ink-2); font-size: 14.5px; }

/* 更新日志 */
.log-list { list-style: none; }
.log-list li { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.log-list li:last-child { border-bottom: none; }
.log-list .log-date { flex: none; width: 100px; color: var(--ink-3); font-size: 13.5px; padding-top: 1px; }
.log-list .log-body b { font-weight: 600; }
.log-list .log-body { color: var(--ink-2); font-size: 14px; }

/* 双栏排版（教程等） */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.prose h2 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.prose p { color: var(--ink-2); margin-bottom: 10px; }
.prose ul, .prose ol { color: var(--ink-2); margin: 6px 0 14px; }
.prose li { margin-bottom: 6px; }
.prose .img-wrap { margin: 16px 0 20px; }
.prose .img-wrap img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose .img-wrap figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* 侧栏卡片 */
.side-card { padding: 20px 22px; margin-bottom: 18px; }
.side-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* 提示条 */
.note { border-radius: 8px; padding: 12px 16px; font-size: 13.5px; line-height: 1.7; }
.note-warn { background: #fdf6ec; border: 1px solid #f3e3c6; color: #8a5a10; }
.note-info { background: var(--brand-soft); border: 1px solid #d7e4fb; color: #27509c; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(18, 24, 34, .55); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 380px; max-width: 100%; padding: 30px 28px 26px; text-align: center; position: relative; animation: modalIn .22s ease; box-shadow: 0 24px 60px rgba(16, 24, 40, .3); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: #f2f3f5; border-radius: 50%; cursor: pointer; color: var(--ink-3); font-size: 17px; line-height: 1; }
.modal-close:hover { background: #e7e9ec; color: var(--ink); }
.modal h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.modal .m-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.modal .m-qr { display: flex; justify-content: center; margin-bottom: 14px; }
.modal .m-tip { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.modal .m-safe { margin-top: 14px; font-size: 12.5px; color: var(--ok); background: #eef8f2; border: 1px solid #cfe9da; border-radius: 8px; padding: 8px 12px; }

/* ---------- 页脚 ---------- */
.footer { background: #1d232b; color: #9aa4b0; margin-top: 56px; font-size: 13.5px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 38px 20px 26px; }
.footer .f-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 18px; }
.footer .f-links a { color: #9aa4b0; border: 1px solid #333b45; border-radius: 6px; padding: 3px 12px; font-size: 12.5px; transition: all .15s; }
.footer .f-links a:hover { color: #fff; border-color: var(--brand); }
.footer .f-title { color: #cfd6de; font-weight: 600; margin-bottom: 12px; font-size: 13px; letter-spacing: .05em; }
.footer .f-declare { border-top: 1px solid #333b45; padding-top: 18px; line-height: 1.9; color: #848e99; font-size: 12.5px; }
.footer .f-declare b { color: #aab3bd; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 30px; padding: 36px 0 44px; }
  .hero-visual { width: 100%; max-width: 520px; }
  .hero-visual .shot-phone { width: 96px; bottom: -26px; }
  .hero h1 { font-size: 26px; }
  .hero h1 .thin { font-size: 19px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .shots-m { grid-template-columns: repeat(3, 1fr); }
  .dl-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line-2); }
  .nav .nav-dl { margin: 12px 0; text-align: center; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .shots-pc { grid-template-columns: 1fr; }
  .shots-m { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { gap: 14px; }
  .hero-qr { display: none; }
  .section { padding: 34px 0; }
  .prose { padding: 22px 18px; }
  h1.page-title { font-size: 21px; }
}
