:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8eb;
  --text: #1f2329;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1f2329;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta {
  padding: 7px 18px !important;
  background: #1f2329;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}
.nav-cta:hover { background: #111418; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 11px; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 64px; }

.hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.hero p.sub {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: #1f2329; color: #fff; }
.btn-primary:hover { background: #111418; }

.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9cdd4; }

/* ---------- Section ---------- */
.section { padding: 52px 0; }

.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head h2 { font-size: 26px; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: #c9cdd4; }

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }

/* ---------- 下载卡片 ---------- */
.dl-card { display: flex; flex-direction: column; gap: 12px; }
.dl-top { display: flex; align-items: flex-start; gap: 12px; }

.dl-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dl-top h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.dl-meta .tag { font-size: 13px; color: var(--muted); }

.dl-desc { color: var(--muted); font-size: 14px; flex: 1; }

.dl-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
}
.link-btn:hover { border-color: var(--accent); color: var(--accent); }

.link-btn.pending {
  color: #9ca3af;
  background: var(--bg-soft);
  border-style: dashed;
  cursor: default;
}
.link-btn.pending:hover { color: #9ca3af; border-color: var(--line); }

.badge { font-size: 13px; font-weight: 500; }
.badge-ok { color: var(--ok); }
.badge-wait { color: var(--warn); }

/* ---------- 公告 ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 36px;
}
.notice .n-icon { font-size: 16px; line-height: 1.6; }
.notice b { font-weight: 600; }
.notice p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- 教程 ---------- */
.tuto-card .t-cat { font-size: 13px; color: var(--accent); display: block; margin-bottom: 10px; }
.tuto-card h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.tuto-card .t-date { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- 卡网 ---------- */
.card-hero { text-align: center; padding: 64px 0 36px; }
.card-hero h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.card-hero p { color: var(--muted); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; font-size: 15px; }

.kf-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
}

.kf-box label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.kf-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}
.kf-input:focus { border-color: var(--accent); }
.kf-input::placeholder { color: #9ca3af; }

.kf-result {
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--bg-soft);
  font-size: 14px;
  display: none;
}
.kf-result.show { display: block; }
.kf-result .r-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kf-result .r-row:last-child { border-bottom: none; }
.kf-result .r-row span:first-child { color: var(--muted); }
.kf-result.ok { border-color: #b7e0c6; }
.kf-result.err { border-color: #f0c0c8; }

/* 说明区 */
.steps { display: grid; gap: 14px; max-width: 680px; margin: 0 auto; }
.step {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step .num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.step .num::before { content: counter(step); }
.steps { counter-reset: step; }
.step .num { counter-increment: step; }
.step b { font-size: 15px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.footer .f-links { display: grid; gap: 6px; }
.footer .f-links a { color: var(--muted); font-size: 14px; }
.footer .f-links a:hover { color: var(--text); }
.footer .copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

/* ---------- 页头(内页) ---------- */
.page-head { padding: 64px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; font-size: 15px; }

.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

.contact-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 14px; }
.contact-row b { color: var(--text); font-weight: 600; }
/* ---------- 链接主页（参考图风格） ---------- */
.link-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.link-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px 28px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.link-brand { text-align: center; margin-bottom: 6px; }
.link-brand .avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #1f2329;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.link-brand h1 { font-size: 22px; font-weight: 700; }
.link-brand p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.link-list { display: grid; gap: 12px; margin-top: 24px; }

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.link-item:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08); }
.link-item .li-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.link-item .li-body { flex: 1; min-width: 0; }
.link-item .li-title { font-size: 15px; font-weight: 600; }
.link-item .li-hint { font-size: 13px; color: var(--muted); margin-top: 1px; }
.link-item .li-arrow { color: #c9cdd4; font-size: 16px; flex-shrink: 0; }

.link-notice {
  margin-top: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}