/* ==========================================================================
   海外源码 · 主题样式（纯 CSS，无依赖）
   ========================================================================== */
:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --ink: #14161d;
  --ink-2: #3b4152;
  --muted: #727a8c;
  --line: #e6e8ef;
  --brand: #ff5a1f;
  --brand-2: #ffa03a;
  --brand-soft: #fff2ea;
  --dark: #0b0e14;
  --dark-2: #131824;
  --tg: #229ed9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 20, 32, .04), 0 8px 24px -12px rgba(16, 20, 32, .18);
  --shadow-lg: 0 18px 50px -22px rgba(16, 20, 32, .35);
  --maxw: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 "Inter", -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 20, .94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { border-radius: 11px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { color: #fff; font-size: 17px; letter-spacing: .01em; }
.logo-text em { color: #8b93a7; font-size: 11px; font-style: normal; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; }
.nav-item {
  position: relative; padding: 8px 13px; border-radius: 9px;
  color: #c3c9d6; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: .18s;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item.is-active { color: #fff; }
.nav-item.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.header-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hsearch {
  display: flex; align-items: center; gap: 0;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px; padding: 2px 2px 2px 12px; transition: .18s;
}
.hsearch:focus-within { border-color: rgba(255, 138, 61, .6); background: rgba(255, 255, 255, .1); }
.hsearch input {
  width: 150px; border: 0; background: none; outline: none;
  color: #fff; font-size: 13.5px; padding: 6px 0;
}
.hsearch input::placeholder { color: #7d8496; }
.hsearch button {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: #cfd5e2;
}
.hsearch button:hover { background: var(--brand); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 0;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: .18s;
}
.btn-tg { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 18px -10px rgba(255, 90, 31, .9); }
.btn-tg:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cfd4e0; }
.btn.big { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.header-tg { height: 36px; }

.nav-toggle {
  display: none; width: 40px; height: 36px; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px; background: rgba(255, 255, 255, .06); padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #e7eaf3; }

/* ---------------------------------- layout -------------------------------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  align-items: start; padding-top: 26px; padding-bottom: 56px;
}
.content { min-width: 0; }
.layout > * { min-width: 0; }

/* ----------------------------------- hero --------------------------------- */
.hero {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0b0e14; box-shadow: var(--shadow-lg); margin-bottom: 26px;
}
.hero-track { position: relative; aspect-ratio: 1200 / 520; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: scale(1.02); transition: opacity .6s ease, transform .8s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.slide-link { position: absolute; inset: 0; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 8, 13, .92) 0%, rgba(6, 8, 13, .72) 42%, rgba(6, 8, 13, .1) 78%);
}
.slide-copy {
  position: absolute; z-index: 2; left: 40px; top: 50%; transform: translateY(-50%);
  max-width: 470px; color: #fff;
}
.slide-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: #ffd9c6; background: rgba(255, 90, 31, .18);
  border: 1px solid rgba(255, 138, 61, .45); margin-bottom: 14px;
}
.slide-copy h2 { font-size: clamp(20px, 2.6vw, 32px); line-height: 1.25; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.slide-copy p { color: #b9c1d2; font-size: 14px; max-width: 400px; margin-bottom: 20px; }
.slide-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 20px;
  border-radius: 11px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.hero-arrow {
  position: absolute; top: 42%; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 13, 20, .5);
  color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center;
  opacity: 0; transition: .2s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 40px; bottom: 52px; display: flex; gap: 7px; }
.hero-dots button {
  width: 22px; height: 4px; border-radius: 3px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .3); transition: .25s;
}
.hero-dots button.is-active { width: 34px; background: var(--brand-2); }

.hero-marquee {
  position: relative; height: 38px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
}
.marquee-track { display: flex; gap: 34px; white-space: nowrap; animation: marquee 46s linear infinite; }
.marquee-track a {
  display: inline-flex; align-items: center; gap: 8px; color: #9aa3b6; font-size: 13px;
}
.marquee-track a:hover { color: #fff; }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------- group head ------------------------------ */
.group-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 26px 0 16px;
}
.group-head h2 { font-size: 20px; }
.group-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 17px; margin-right: 9px;
  border-radius: 3px; vertical-align: -2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.group-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.group-head .more {
  display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13.5px; font-weight: 600;
}

/* ----------------------------------- chips --------------------------------- */
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; transition: .16s;
}
.chip:hover { border-color: #ffc9ad; color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ----------------------------------- cards --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: .22s; box-shadow: 0 1px 2px rgba(16, 20, 32, .03);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ec; }
.card-cover { position: relative; display: block; aspect-ratio: 800 / 480; overflow: hidden; background: #0b0e14; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-cover img { transform: scale(1.045); }
.card-cat {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--c-from, #ff5a1f), var(--c-to, #ffa03a));
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .8);
}
.card-views {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px; color: #e8ecf5;
  background: rgba(8, 11, 17, .6); backdrop-filter: blur(6px);
}
.card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 15px; font-weight: 650; line-height: 1.5; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title a { color: var(--brand); }
.card-excerpt {
  color: var(--muted); font-size: 12.8px; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #8b93a5;
}
.card-stack { color: var(--ink-2); background: #f2f4f8; border-radius: 6px; padding: 2px 7px; font-weight: 500; }
.cards.small .card-title { font-size: 14px; }
.cards.small .card-excerpt { display: none; }

/* ----------------------------------- pager --------------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 30px 0 4px; }
.pg {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); transition: .16s;
}
.pg:hover { border-color: #ffc9ad; color: var(--brand); }
.pg.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pg.dots { border: 0; background: none; color: var(--muted); }

/* ---------------------------------- sidebar -------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; min-width: 0; }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 1px 2px rgba(16, 20, 32, .03);
}
.widget-title { font-size: 15px; font-weight: 650; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.about-widget { padding: 0 18px 18px; overflow: hidden; text-align: center; }
.about-cover {
  height: 74px; margin: 0 -18px 0; border-radius: 0;
  background: radial-gradient(120% 120% at 20% 0%, #2a3244 0%, #0b0e14 70%);
  position: relative;
}
.about-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 80% 30%, rgba(255, 90, 31, .35), transparent 70%);
}
.about-avatar {
  width: 74px; height: 74px; margin: -37px auto 0; position: relative; z-index: 2;
  border-radius: 50%; border: 3px solid #fff; background: #1b2233;
}
.about-name { font-size: 15.5px; margin-top: 9px; }
.about-bio { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.about-note { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.about-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.about-links .btn { height: 36px; font-size: 13px; padding: 0 8px; }

.rank-list li + li { margin-top: 3px; }
.rank-list a { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13.3px; }
.rank-list a:hover .rank-t { color: var(--brand); }
.rank {
  flex: none; width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; background: #f0f2f7; color: #8b93a5;
}
.rank.r1 { background: linear-gradient(135deg, #ff5a1f, #ffa03a); color: #fff; }
.rank.r2 { background: #ffedd8; color: #d97706; }
.rank.r3 { background: #fff1e6; color: #ea8a3d; }
.rank-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rank-v { flex: none; color: #a3aab9; font-size: 11.5px; }

.mini-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13.2px; }
.mini-list li + li { border-top: 1px dashed var(--line); }
.mini-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mini-list a:hover { color: var(--brand); }
.mini-list time { flex: none; color: #a3aab9; font-size: 11.5px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px;
  background: #f4f6fa; color: var(--ink-2); font-size: 12.5px; transition: .16s;
}
.tag-cloud a:hover { background: var(--brand-soft); color: var(--brand); }
.tag-cloud i { font-style: normal; color: #a3aab9; font-size: 11px; }

.contact-widget .contact-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  background: #f7f8fb; margin-bottom: 8px; transition: .16s;
}
.contact-widget .contact-row:hover { background: var(--brand-soft); }
.contact-row .ci {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a3244, #131824); color: #fff; font-size: 12px; font-weight: 700;
}
.contact-row b { display: block; font-size: 13px; font-weight: 600; }
.contact-row small { display: block; color: var(--muted); font-size: 11.5px; }

/* -------------------------------- page head -------------------------------- */
.page-head { margin-bottom: 20px; }
.crumb { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.8px; margin-bottom: 12px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb b { color: var(--ink-2); font-weight: 500; }
.crumb span { color: #c3c9d6; }
.page-head h1 { font-size: clamp(23px, 2.4vw, 29px); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-head .count {
  font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
  border: 1px solid #ffe0cf; padding: 2px 9px; border-radius: 999px;
}
.page-head p { color: var(--muted); font-size: 14px; margin-top: 9px; }

/* --------------------------------- article --------------------------------- */
.article-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.article-title { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4; }
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 14px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12.8px;
}
.article-meta .author { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 500; }
.article-meta .author img { border-radius: 50%; }
.meta-cat {
  padding: 2px 9px; border-radius: 6px; color: #fff; font-size: 12px;
  background: linear-gradient(135deg, var(--c-from, #ff5a1f), var(--c-to, #ffa03a));
}
.article-banner { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 22px; background: #0b0e14; }
.article-banner img { width: 100%; height: auto; }
.article-body { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.article-body p { margin-bottom: 15px; }
.article-body h2 {
  font-size: 17px; color: var(--ink); margin: 26px 0 12px;
  padding-left: 11px; border-left: 3px solid var(--brand);
}
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 6px; }
.feat-list li {
  position: relative; padding: 9px 12px 9px 32px; border-radius: 9px; background: #f7f8fb;
  font-size: 13.5px; color: var(--ink-2);
}
.feat-list li::before {
  content: "✓"; position: absolute; left: 11px; top: 9px; color: var(--brand); font-weight: 700;
}
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.shot { display: block; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #0b0e14; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.shot:hover img { transform: scale(1.05); }

.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 24px 0 18px; padding: 20px; border-radius: 12px;
  background: linear-gradient(135deg, #171c28, #0b0e14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
}
.cta-box h3 { font-size: 16px; margin-bottom: 6px; }
.cta-box p { color: #a9b2c4; font-size: 13px; }

.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 11px; border-radius: 8px; background: #f4f6fa; color: var(--ink-2);
  font-size: 12.5px; border: 1px solid transparent;
}
.tag-pill:hover { background: var(--brand-soft); color: var(--brand); border-color: #ffe0cf; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.an { display: block; padding: 12px 14px; border-radius: 10px; background: #f7f8fb; transition: .16s; }
.an:hover { background: var(--brand-soft); }
.an span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.an b { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.an.next { text-align: right; }
.an.empty { background: none; }

.related { margin-top: 26px; }

/* ------------------------------- line list -------------------------------- */
.line-list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 13.5px;
}
.line-list li:hover { border-color: #ffd4bd; }
.line-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-list span { color: var(--ink-2); background: #f2f4f8; border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.line-list time { color: #a3aab9; font-size: 12px; }

/* ---------------------------------- panels -------------------------------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16, 20, 32, .03);
}
.panel h2 { font-size: 17px; margin-bottom: 12px; padding-left: 11px; border-left: 3px solid var(--brand); }
.panel p { color: var(--ink-2); font-size: 14px; line-height: 1.85; margin-bottom: 10px; }
.swap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.swap-grid .panel { margin-bottom: 0; }
.num-list { counter-reset: n; }
.num-list li { position: relative; padding: 9px 0 9px 34px; font-size: 13.8px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.num-list li:last-child { border-bottom: 0; }
.num-list li::before {
  counter-increment: n; content: counter(n); position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700;
}
.check-list li { position: relative; padding: 7px 0 7px 26px; font-size: 13.8px; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }
.faq dt { font-weight: 600; font-size: 14px; margin-top: 14px; }
.faq dd { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #f7f8fb; border-radius: 11px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--brand); letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px;
  background: #f7f8fb; border: 1px solid var(--line); transition: .18s;
}
.contact-card:hover { background: var(--brand-soft); border-color: #ffe0cf; }
.contact-card .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2a3244, #131824); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.contact-card b { font-size: 14px; }
.contact-card small { color: var(--muted); font-size: 12px; }

/* ---------------------------------- search -------------------------------- */
.search-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; height: 46px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line);
  background: #f7f8fb; font-size: 14.5px; outline: none; transition: .18s; color: var(--ink);
}
.search-form input:focus { border-color: #ffc9ad; background: #fff; box-shadow: 0 0 0 4px rgba(255, 90, 31, .08); }
.search-form .btn { height: 46px; padding: 0 24px; }
.search-hint { color: var(--muted); font-size: 13px; margin: 14px 0 16px; }

/* --------------------------------- notfound ------------------------------- */
.notfound { text-align: center; padding: 80px 20px; }
.notfound b { display: block; font-size: 92px; line-height: 1; letter-spacing: -.04em; color: #e8ebf2; }
.notfound h1 { font-size: 24px; margin: 10px 0 8px; }
.notfound p { color: var(--muted); }
.nf-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

/* ---------------------------------- footer -------------------------------- */
.site-footer { background: #0b0e14; color: #9aa3b6; padding: 42px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; }
.f-col h4 { color: #fff; font-size: 14px; margin-bottom: 13px; }
.f-col ul li { padding: 5px 0; font-size: 13.3px; }
.f-col a:hover { color: var(--brand-2); }
.f-about p { font-size: 13px; line-height: 1.75; margin-top: 12px; color: #8b93a7; }
.f-about .f-note { color: #6b7285; font-size: 12.2px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12.3px; color: #6b7285;
}

/* ------------------------------------ fab --------------------------------- */
.fab {
  position: fixed; right: 22px; bottom: 88px; z-index: 50; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 17px;
  opacity: 0; visibility: hidden; transition: .2s;
}
.fab.show { opacity: 1; visibility: visible; }
.fab:hover { color: var(--brand); border-color: #ffd4bd; }
.fab-tg {
  bottom: 22px; background: linear-gradient(135deg, var(--tg), #1b8ac0); color: #fff; border: 0;
  opacity: 1; visibility: visible; box-shadow: 0 12px 26px -12px rgba(34, 158, 217, .9);
}
.fab-tg:hover { color: #fff; filter: brightness(1.07); }

/* -------------------------------- responsive ------------------------------ */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-item { padding: 8px 10px; font-size: 14px; }
  .hsearch input { width: 116px; }
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .hero-track { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px 14px 16px; background: #0b0e14; border-bottom: 1px solid rgba(255, 255, 255, .08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding-top: 0; padding-bottom: 0;
  }
  .nav.open { max-height: 460px; padding-top: 10px; padding-bottom: 16px; }
  .nav-item.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-tg { display: none; }
  .hsearch { display: none; }
  .slide-copy { left: 20px; right: 20px; max-width: none; }
  .slide-copy p { display: none; }
  .slide-copy h2 { font-size: 19px; }
  .hero-dots { left: 20px; bottom: 46px; }
  .article-wrap { padding: 18px; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-list { grid-template-columns: minmax(0, 1fr); }
  .swap-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .an.next { text-align: left; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .header-inner { height: 60px; }
  .nav { top: 60px; }
  .logo-text em { display: none; }
  .page-head h1 { font-size: 21px; }
  .hero-marquee { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fab { right: 14px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   CMS 补充样式（正文 HTML、列表、占位状态）
   ========================================================================== */
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 7px 0; }
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body h3 { font-size: 16px; color: var(--ink); margin: 22px 0 10px; }
.article-body img { border-radius: 10px; margin: 12px 0; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
  margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--brand);
  background: #f8f9fc; border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: #f7f8fb; }
.panel.article-body { padding: 24px; font-size: 15px; line-height: 1.85; }
.panel.article-body h2 { margin-top: 22px; }
.empty-tip {
  padding: 40px 20px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.notfound .btn + .btn { margin-left: 8px; }
/* 正文代码块（技术教程常用） */
.article-body pre {
  background: #0b0e14; color: #dbe2ee; padding: 14px 16px; border-radius: 10px;
  overflow-x: auto; font-size: 12.8px; line-height: 1.75; margin: 14px 0;
  border: 1px solid rgba(255,255,255,.08);
}
.article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-body code {
  background: #f1f3f8; padding: 1px 5px; border-radius: 4px;
  font: 12.8px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #b93b0e;
}
.article-body h3 { font-size: 15.5px; color: var(--ink); margin: 20px 0 8px; }
/* 系统截图：带说明文字 */
.shot { margin: 0; }
.shot figcaption {
  padding: 7px 9px; font-size: 12px; color: var(--muted); background: #fff;
  border-top: 1px solid var(--line); line-height: 1.5;
}
.shot > a { display: block; }