:root {
  --bg: #0b0d10;
  --bg-soft: #0f1217;
  --panel: #14181e;
  --panel-2: #181d24;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #e8edf2;
  --muted: #8b95a1;
  --muted-2: #6b7581;
  --accent: #00d6ac;
  --accent-2: #00b894;
  --accent-soft: rgba(0, 214, 172, .12);
  --orange: #ff9600;
  --red: #ff4d6d;
  --blue: #4c8dff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 214, 172, .10), transparent 60%),
    radial-gradient(700px 420px at 5% 0%, rgba(76, 141, 255, .08), transparent 60%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00e0b4, #00a98a);
  color: #04120e; font-weight: 900; font-size: 18px; letter-spacing: -.5px;
  box-shadow: 0 6px 18px rgba(0, 214, 172, .28);
}
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: -4px; margin-top: 12px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 13.5px;
  transition: .2s; flex-shrink: 0;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.search-form { position: relative; display: flex; align-items: center; width: 218px; flex-shrink: 0; }
.search-form input {
  width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); padding: 0 40px 0 13px; outline: none;
  font-size: 13px; transition: .2s;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form input:focus { border-color: rgba(0, 214, 172, .55); box-shadow: 0 0 0 3px rgba(0, 214, 172, .10); }
.search-form button {
  position: absolute; right: 5px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search-form button:hover { color: var(--accent); background: var(--accent-soft); }
.menu-toggle {
  display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.mobile-search {
  display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); align-items: center; justify-content: center;
}
.mobile-search:hover { color: var(--accent); border-color: rgba(0, 214, 172, .4); }

/* common */
.eyebrow {
  display: inline-block; color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; border: 1px solid var(--border);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 17px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; font-size: 13.5px; font-weight: 600; transition: .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #00e0b4, #00b090); color: #04120e;
  box-shadow: 0 8px 22px rgba(0, 214, 172, .22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 214, 172, .32); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(0, 214, 172, .45); color: var(--accent); background: var(--accent-soft); }
.badge {
  position: absolute; top: 11px; left: 11px; z-index: 2; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .3px;
  backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.sign-win { background: rgba(255, 150, 0, .92); }
.sign-mac { background: rgba(97, 97, 97, .92); }
.sign-neutral { background: rgba(0, 214, 172, .9); color: #04120e; }
.hot-badge {
  position: absolute; top: 11px; right: 11px; z-index: 2; padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 77, 109, .92); color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 109, .25);
}
.hot-badge.inline { position: static; display: inline-block; }

/* hero */
.hero-wrap { padding-top: 24px; }
.hero {
  position: relative; min-height: 470px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 13, .98) 0%, rgba(8, 10, 13, .88) 42%, rgba(8, 10, 13, .28) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 13, .65), transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 52px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(0, 214, 172, .10); border: 1px solid rgba(0, 214, 172, .25);
  padding: 6px 11px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 4.1rem); line-height: 1.04; margin: 0 0 16px; letter-spacing: -1.5px; }
.hero-desc { color: #b7c0ca; font-size: 15.5px; line-height: 1.75; margin: 0 0 20px; max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 22px;
}
.stat { background: var(--panel); padding: 20px 24px; }
.stat strong { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 12.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.feature {
  display: flex; gap: 13px; align-items: flex-start; padding: 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.feature h3 { margin: 0 0 3px; font-size: 14.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* section */
.section { padding-top: 54px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-title-wrap { display: flex; flex-direction: column; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.5px; line-height: 1.2; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 7px 11px; border-radius: 8px; transition: .2s; }
.more-link:hover { color: var(--accent); background: var(--accent-soft); }

/* grid/cards */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 214, 172, .32); box-shadow: 0 18px 38px rgba(0, 0, 0, .30); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-download {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; background: rgba(8, 10, 13, .72); color: #dbe3ea;
  font-size: 11px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .10);
}
.card-download.is-guide { color: var(--muted); }
.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--accent); font-size: 11.5px; font-weight: 600; margin-bottom: 5px; }
.card h3 { margin: 0 0 7px; font-size: 15.5px; line-height: 1.42; font-weight: 700; }
.card h3 a { transition: .2s; }
.card h3 a:hover { color: var(--accent); }
.card-excerpt {
  margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 11.5px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card.is-hidden { display: none; }

/* page hero */
.page-hero { padding: 44px 0 8px; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; margin: 0 0 8px; }
.page-hero p { color: var(--muted); max-width: 760px; margin: 0; font-size: 14.5px; }
.page-hero-meta { display: flex; gap: 18px; color: var(--muted-2); font-size: 12.5px; margin-top: 14px; }
.page-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted-2); font-size: 12px; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--muted-2); }

/* filter */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer;
  padding: 6px 11px; border-radius: 8px; font-size: 12.5px; transition: .2s;
}
.chip span { opacity: .6; margin-left: 2px; font-size: 11px; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: #04120e; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.filter-right { display: flex; align-items: center; gap: 12px; }
.filter-count { color: var(--muted); font-size: 12.5px; }
.filter-count strong { color: var(--text); }
.sort-select {
  height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); padding: 0 10px; outline: none; font-size: 12.5px;
}

/* post */
.post-hero { padding: 30px 0 0; }
.post-head { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 28px; align-items: center; }
.post-cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-head-info h1 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -1px; }
.post-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-cat { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(0, 214, 172, .22); padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.post-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.72; margin: 0 0 16px; max-width: 760px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 12.5px; margin-bottom: 20px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; padding-top: 30px; align-items: start; }
.post-main { min-width: 0; }
.post-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.side-card h3 .icon { color: var(--accent); }
.info-list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; border-bottom: 1px dashed rgba(255, 255, 255, .06); padding-bottom: 8px; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { color: var(--muted-2); }
.info-list dd { margin: 0; color: var(--text); text-align: right; }
.info-list dd a { color: var(--accent); }
.side-tips p { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; line-height: 1.6; }
.side-tips p:last-child { margin-bottom: 0; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; transition: .2s; }
.mini-item:hover { background: rgba(255, 255, 255, .04); }
.mini-item img { width: 58px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mini-item span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-item strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item em { color: var(--muted-2); font-style: normal; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }

/* download */
.download-box {
  background: linear-gradient(180deg, rgba(0, 214, 172, .07), rgba(0, 214, 172, .015)), var(--panel);
  border: 1px solid rgba(0, 214, 172, .28); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 214, 172, .04);
}
.download-box.is-empty { border-color: var(--border); background: var(--panel); }
.download-head { display: flex; align-items: flex-start; gap: 13px; }
.download-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #04120e;
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 214, 172, .25);
}
.download-head h2 { margin: 0 0 2px; font-size: 20px; letter-spacing: -.3px; }
.download-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.download-free { margin-left: auto; background: rgba(0, 214, 172, .12); color: var(--accent); border: 1px solid rgba(0, 214, 172, .25); padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.download-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.download-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(0, 0, 0, .18); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
}
.download-main { min-width: 0; }
.provider { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.provider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.provider-xunlei .provider-dot { background: var(--blue); }
.provider-quark .provider-dot { background: #8b5cf6; }
.provider-other .provider-dot { background: var(--muted); }
.soft-badge { font-size: 10.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(0, 214, 172, .2); padding: 2px 6px; border-radius: 5px; font-weight: 600; }
.soft-badge.muted { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--border); }
.download-label { color: var(--muted); font-size: 12px; margin-top: 3px; }
.download-pwd { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.download-pwd code { background: rgba(0, 214, 172, .10); color: var(--accent); border: 1px solid rgba(0, 214, 172, .18); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.mini-btn { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 5px; padding: 2px 7px; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.mini-btn:hover { color: var(--accent); border-color: rgba(0, 214, 172, .35); }
.download-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.download-note { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 11.5px; margin-top: 14px; }

/* article */
.article-body {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; margin-top: 22px; color: #c9d1d9; font-size: 14.5px; line-height: 1.85;
}
.article-title { margin: 0 0 18px; font-size: 22px; color: var(--text); letter-spacing: -.4px; }
.article-subtitle { margin: 28px 0 14px; font-size: 18px; color: var(--text); }
.article-body p { margin: 0 0 14px; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--text); margin: 26px 0 10px; line-height: 1.35; }
.article-body h2 { font-size: 20px; }
.article-body h3 { font-size: 17px; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(0, 214, 172, .35); text-underline-offset: 3px; }
.article-body img { border-radius: 10px; margin: 14px auto; border: 1px solid var(--border); cursor: zoom-in; }
.article-body figure { margin: 18px 0; }
.article-body figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 6px; }
.article-body blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--muted); }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 14px; }
.article-body li { margin: 5px 0; }
.article-body code { background: rgba(255, 255, 255, .06); padding: 2px 5px; border-radius: 4px; font-size: 12.5px; }
.article-body pre { background: #0b0d10; border: 1px solid var(--border); padding: 14px; border-radius: 10px; overflow: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--bg-soft); color: var(--text); }
.related-section { padding-top: 34px; }

/* search */
.search-hero .search-big {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; max-width: 720px;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 14px; padding: 0 16px; height: 54px;
  box-shadow: var(--shadow);
}
.search-hero .search-big .icon { color: var(--accent); font-size: 20px; }
.search-hero .search-big input { flex: 1; height: 100%; border: 0; background: transparent; color: var(--text); outline: none; font-size: 15px; }
.search-hero .search-big:focus-within { border-color: rgba(0, 214, 172, .55); box-shadow: 0 0 0 3px rgba(0, 214, 172, .10); }
.search-hero .search-big input::placeholder { color: var(--muted-2); }
.search-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted-2); font-size: 12px; }
.search-hot .chip { font-size: 12px; padding: 4px 9px; }
.search-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }

/* cta */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0, 214, 172, .10), rgba(76, 141, 255, .06)), var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
}
.cta-band h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.5px; }
.cta-band p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { margin-top: 70px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .18); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding: 46px 0 34px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; max-width: 340px; }
.footer-brand .footer-domain { color: var(--accent); font-size: 12px; letter-spacing: .6px; margin-top: 7px; }
.footer-brand .footer-desc { line-height: 1.7; }
.footer-badges { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.footer-badges span { font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; }
.footer-col h4 { margin: 0 0 13px; font-size: 13.5px; color: var(--text); }
.footer-col a { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 4px 0; transition: .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a span { color: var(--muted-2); }
.footer-col p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 8px; }
.footer-updated { color: var(--muted-2) !important; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted-2); font-size: 11.5px; }

/* floating */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transform: rotate(-90deg); transition: .2s;
}
.back-top:hover { color: var(--accent); border-color: rgba(0, 214, 172, .4); }
.back-top.show { display: flex; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 300;
  background: #10151b; border: 1px solid rgba(0, 214, 172, .35); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: .25s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .86);
  display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* responsive */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .search-form { width: 190px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11, 13, 16, .98); border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: 14px; }
  .menu-toggle { display: flex; margin-left: auto; }
  .search-form { width: 170px; margin-left: 0; }
  .header-inner { gap: 12px; }
  .post-head { grid-template-columns: 1fr; gap: 18px; }
  .post-cover { max-width: 560px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 36px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .hero { min-height: 420px; }
  .hero-content { padding: 28px 22px; }
  .hero-desc { font-size: 14px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 34px 0 24px; }
  .section { padding-top: 38px; }
  .section-head h2 { font-size: 22px; }
  .download-item { align-items: flex-start; }
  .download-actions { width: 100%; }
  .download-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .search-form { display: none; }
  .mobile-search { display: flex; }
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .hero h1 { font-size: 2rem; }
  .hero-meta { gap: 9px; font-size: 12px; }
  .hero-actions .btn { flex: 1; }
  .article-body { padding: 20px; font-size: 14px; }
  .post-hero { padding-top: 18px; }
  .download-box { padding: 16px; border-radius: var(--radius); }
  .download-head { gap: 10px; }
  .download-icon { width: 38px; height: 38px; font-size: 18px; }
  .download-head h2 { font-size: 18px; }
  .filter-bar { padding: 11px; }
  .filter-right { width: 100%; justify-content: space-between; }
}