/* ==========================================================================
   Shopify 技术百科 — Design System
   v2.0  Professional documentation theme
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink scale */
  --ink-1000: #070d17;
  --ink-900: #0f1a2b;
  --ink-800: #1c2b40;
  --ink-700: #3b4b62;
  --ink-600: #5b6b82;
  --ink-500: #78889c;
  --ink-400: #9aa7b8;

  /* Lines & surfaces */
  --line: #e5eaf2;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-softer: #fbfcfe;

  /* Brand */
  --brand: #0057b3;
  --brand-hover: #004792;
  --brand-deep: #0a3c78;
  --brand-tint: #eaf2fd;
  --brand-tint2: #d8e8fb;
  --shopify: #008060;
  --shopify-tint: #e6f4f0;

  /* Feedback */
  --warn-bg: #fff8e6;
  --warn-line: #e5b64a;
  --tip-bg: #eef5ff;
  --tip-line: #7aa9e8;
  --danger-bg: #fdeeee;
  --danger-line: #e0736e;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo,
    Consolas, "Liberation Mono", monospace;

  /* Geometry */
  --r-xs: 6px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(15, 26, 43, 0.05);
  --sh-2: 0 4px 14px -4px rgba(15, 26, 43, 0.08);
  --sh-3: 0 18px 44px -18px rgba(15, 26, 43, 0.22);

  /* Layout */
  --wrap: 1180px;
  --read: 760px;
  --header-h: 64px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-hover);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-tint2);
  color: var(--ink-1000);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}
.section.tight {
  padding: 44px 0;
}
.section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head .st-text {
  max-width: 660px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head h2 {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.018em;
  color: var(--ink-1000);
  line-height: 1.3;
}
.section-head p {
  margin-top: 8px;
  color: var(--ink-600);
  font-size: 0.9875rem;
}
.section-more {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 4px;
}
.section-more::after {
  content: " →";
  transition: transform 0.15s ease;
  display: inline-block;
}
.section-more:hover::after {
  transform: translateX(3px);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink-1000);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink-1000);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #0057b3, #0a8f6e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px -2px rgba(0, 87, 179, 0.5);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.6875rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}
.header-nav a {
  padding: 7px 11px;
  border-radius: var(--r-s);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink-600);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--ink-1000);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.search {
  position: relative;
  width: 300px;
  max-width: 42vw;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--bg-soft);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink-900);
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.search input::placeholder {
  color: var(--ink-400);
}
.search input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 87, 179, 0.12);
}
.search .s-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-400);
  pointer-events: none;
}
.search .s-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-400);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  background: #fff;
  pointer-events: none;
}
.search input:focus ~ .s-kbd {
  display: none;
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-3);
  max-height: min(64vh, 460px);
  overflow-y: auto;
  padding: 6px;
  display: none;
  z-index: 200;
}
.search-panel.open {
  display: block;
}
.search-hit {
  display: block;
  padding: 9px 11px;
  border-radius: var(--r-s);
  color: var(--ink-800);
  text-decoration: none;
}
.search-hit:hover,
.search-hit.active {
  background: var(--brand-tint);
  color: var(--ink-1000);
}
.search-hit .h-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.search-hit .h-meta {
  font-size: 0.75rem;
  color: var(--brand);
  margin-top: 2px;
}
.search-empty,
.search-loading {
  padding: 22px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.search-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding: 8px 11px 4px;
  font-size: 0.75rem;
  color: var(--ink-400);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--ink-700);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  padding: 12px 24px 20px;
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink-800);
}
.mobile-nav .m-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 14px 4px 6px;
}
.mobile-nav .m-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  height: 44px;
  border-radius: var(--r-s);
  background: var(--brand);
  color: #fff !important;
  border: none;
  font-weight: 650;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-s);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s,
    box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 87, 179, 0.24), 0 6px 18px -8px rgba(0, 87, 179, 0.5);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff !important;
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-800) !important;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}
.btn-on-dark {
  background: #fff;
  color: var(--ink-1000) !important;
}
.btn-on-dark:hover {
  background: #f0f4fa;
}
.btn-outline-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff !important;
}
.btn-outline-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 0.8125rem;
}

/* ---------- 6. Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a1424;
  color: #fff;
  padding: 72px 0 76px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 110, 220, 0.5), transparent);
  filter: blur(20px);
  z-index: -1;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: #cfdcee;
  margin-bottom: 22px;
}
.hero-eyebrow b {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 650;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #6fb4ff 10%, #4ad9b0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #bccbdd;
  max-width: 600px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}

.hero-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 48px;
  border-radius: var(--r-m);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(8px);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.hero-search input::placeholder {
  color: #adc0d6;
}
.hero-search input:focus {
  background: #fff;
  color: var(--ink-900);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(111, 180, 255, 0.24);
}
.hero-search input:focus::placeholder {
  color: var(--ink-400);
}
.hero-search .s-icon {
  position: absolute;
  left: 17px;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8fa2bb;
  pointer-events: none;
  transition: color 0.18s;
}
.hero-search input:focus ~ .s-icon {
  color: var(--ink-500);
}
.hero-search .search-panel {
  text-align: left;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.hero-tags span {
  font-size: 0.8125rem;
  color: #7e91ab;
  align-self: center;
  margin-right: 2px;
}
.hero-tags a {
  font-size: 0.8125rem;
  color: #c2d2e6;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hero-tags a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.hero-stat:first-child {
  border-left: none;
}
.hero-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hero-stat span {
  font-size: 0.8125rem;
  color: #8296ae;
}

/* ---------- 7. Category grid ---------- */
.cat-group {
  margin-bottom: 40px;
}
.cat-group:last-child {
  margin-bottom: 0;
}
.cat-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-group-head h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.cat-group-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.cat-card:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}
.cat-card .c-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  transition: background 0.18s, color 0.18s;
}
.cat-card .c-ico svg {
  width: 18px;
  height: 18px;
}
.cat-card:hover .c-ico {
  background: var(--brand);
  color: #fff;
}
.cat-card h3 {
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink-1000);
  letter-spacing: -0.005em;
}
.cat-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card .c-foot {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- 8. Hot questions ---------- */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.hot-item:hover {
  border-color: var(--brand-tint2);
  background: var(--bg-softer);
  color: inherit;
  transform: translateX(2px);
}
.hot-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  margin-top: 2px;
}
.hot-item:nth-child(-n + 3) .hot-rank {
  background: var(--brand-tint);
  color: var(--brand);
}
.hot-item .h-body {
  min-width: 0;
  display: block;
}
.hot-item .h-q {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-900);
}
.hot-item .h-c {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-400);
  margin-top: 4px;
}

/* ---------- 9. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0a3c78 0%, #0057b3 55%, #017a6b 100%);
  border-radius: var(--r-xl);
  padding: 44px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
}
.cta-band > * {
  position: relative;
}
.cta-band .cb-text {
  max-width: 560px;
}
.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.cta-band .cb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.875rem;
}
.cta-band .cb-meta a,
.cta-band .cb-meta span {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-band .cb-meta a:hover {
  color: #fff;
  text-decoration: underline;
}
.cta-band .cb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

/* ---------- 10. Breadcrumb ---------- */
.crumbs {
  padding: 18px 0 4px;
  font-size: 0.8125rem;
  color: var(--ink-400);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.crumbs a {
  color: var(--ink-500);
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs .sep {
  color: var(--ink-400);
  opacity: 0.6;
}
.crumbs .cur {
  color: var(--ink-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}

/* ---------- 11. Article ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--shopify));
  z-index: 200;
  transition: width 0.1s linear;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 52px;
  padding: 8px 0 72px;
  align-items: start;
}
.article-shell > article {
  max-width: 742px;
}

.article-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.article-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-decoration: none;
}
.article-head .kicker:hover {
  background: var(--brand-tint2);
  color: var(--brand-hover);
}
.article-head h1 {
  font-size: 2.125rem;
  line-height: 1.32;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--ink-1000);
  margin-bottom: 16px;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.8125rem;
  color: var(--ink-500);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta svg {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}
.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-400);
  opacity: 0.6;
}

/* 浅色页面里的搜索框（404 等） */
.search-on-light {
  max-width: 520px;
  margin: 0 auto 28px;
}
.search-on-light .hero-search input {
  background: #fff;
  border: 1px solid var(--line-strong, #d5dce6);
  color: var(--ink-900);
  box-shadow: var(--sh-1);
}
.search-on-light .hero-search input::placeholder {
  color: var(--ink-400);
}
.search-on-light .hero-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 87, 179, 0.12);
}
.search-on-light .hero-search .s-icon {
  color: var(--ink-400);
}

/* 移动端内联目录（桌面端由侧边栏承担） */
.inline-toc {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.inline-toc a {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-600);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
}
.inline-toc a:hover {
  color: var(--brand);
  border-color: var(--brand-tint2);
  background: var(--brand-tint);
}

/* 图标尺寸约束（防止无 CSS 上下文时撑开） */
.ci-meta svg,
.cta-band .cb-meta svg,
.related h2 svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.related h2 svg {
  color: var(--brand);
}

/* Symptom / quick-answer box */
.lede {
  border: 1px solid var(--brand-tint2);
  border-left: 3px solid var(--brand);
  background: linear-gradient(180deg, #f7fbff, #fdfeff);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  padding: 18px 22px;
  margin-bottom: 34px;
}
.lede .l-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lede .l-label svg {
  width: 14px;
  height: 14px;
}
.lede p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-700);
  margin: 0;
}
.lede p + p {
  margin-top: 8px;
}

/* Body typography */
.prose {
  font-size: 1.0125rem;
  line-height: 1.85;
  color: var(--ink-700);
}
.prose > p {
  margin-bottom: 20px;
}
.prose > p:first-child {
  font-size: 1.0625rem;
  color: var(--ink-800);
}
.prose h2 {
  font-size: 1.375rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  color: var(--ink-1000);
  margin: 40px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
  position: relative;
}
.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.prose h2 .anchor {
  opacity: 0;
  font-size: 0.9rem;
  color: var(--ink-400);
  margin-left: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  font-weight: 400;
}
.prose h2:hover .anchor {
  opacity: 1;
}
.prose h3 {
  font-size: 1.125rem;
  font-weight: 680;
  color: var(--ink-900);
  margin: 28px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 9px;
  padding-left: 2px;
}
.prose li::marker {
  color: var(--ink-400);
}
.prose li > ul,
.prose li > ol {
  margin: 9px 0 0;
}
.prose strong {
  color: var(--ink-900);
  font-weight: 650;
}

/* Step list */
.prose ol.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  margin: 20px 0 26px;
}
.prose ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  min-height: 26px;
}
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--brand-tint2);
}
.prose ol.steps > li::marker {
  content: none;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #f4f7fb;
  border: 1px solid #e4ebf4;
  color: #14508f;
  padding: 1.5px 5px;
  border-radius: 4px;
  word-break: break-word;
}
.prose pre {
  position: relative;
  background: #0c1523;
  color: #dbe6f5;
  border-radius: var(--r-m);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 22px;
  font-size: 0.875rem;
  line-height: 1.65;
  border: 1px solid #1b2a41;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 26px;
  padding: 0 9px;
  font-size: 0.6875rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #c9d8ea;
  cursor: pointer;
}
.prose .copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.prose blockquote {
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  padding: 14px 20px;
  margin: 0 0 22px;
  border-radius: 0 var(--r-s) var(--r-s) 0;
  color: var(--ink-600);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-soft);
  font-weight: 650;
  color: var(--ink-900);
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--brand-tint2);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--brand);
}

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-s);
  border-left: 3px solid;
  margin: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.callout b {
  display: block;
  margin-bottom: 2px;
}
.callout.tip {
  background: var(--tip-bg);
  border-color: var(--tip-line);
}
.callout.warning {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.callout.danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
}

/* Article footer blocks */
.article-end {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.end-note {
  font-size: 0.8125rem;
  color: var(--ink-400);
  line-height: 1.7;
  background: var(--bg-soft);
  border-radius: var(--r-s);
  padding: 12px 16px;
}

.cta-inline {
  margin: 34px 0 0;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.cta-inline:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
}
.cta-inline .ci-text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-1000);
  margin-bottom: 6px;
}
.cta-inline p {
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.7;
}
.cta-inline .ci-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.8125rem;
  color: var(--ink-500);
}
.cta-inline .ci-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cta-inline .ci-meta svg {
  color: var(--ink-400);
}
.cta-inline .ci-meta a {
  color: var(--ink-700);
  font-weight: 550;
}
.cta-inline .ci-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cta-qr {
  width: 104px;
  height: 104px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.cta-qr-btn {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.cta-qr-btn span {
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
}
.cta-qr-btn:hover .cta-qr {
  border-color: var(--brand-tint2);
}

/* Pager */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.pager a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.pager a:hover {
  border-color: var(--brand-tint2);
  background: var(--bg-softer);
  color: inherit;
}
.pager .prev .p-dir::before {
  content: "← ";
}
.pager .next .p-dir::after {
  content: " →";
}
.pager .p-dir {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
}
.pager .p-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-800);
}
.pager .next {
  text-align: right;
}

/* Related */
.related {
  margin-top: 34px;
}
.related h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1000);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-list {
  display: grid;
  gap: 8px;
}
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--ink-800);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.related-item:hover {
  border-color: var(--brand-tint2);
  background: var(--bg-softer);
  color: var(--brand);
}
.related-item span {
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.5;
}
.related-item i {
  font-style: normal;
  color: var(--ink-400);
  flex-shrink: 0;
}

/* Sidebar */
.side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  overflow: hidden;
}
.side-card .sc-head {
  padding: 12px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.toc-list {
  list-style: none;
  padding: 8px;
  margin: 0;
}
.toc-list li {
  margin: 0;
}
.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-600);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.toc-list a:hover {
  color: var(--brand);
  background: var(--bg-soft);
}
.toc-list a.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-tint);
  border-left-color: var(--brand);
}

.side-cta {
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, #f6faff, #fff);
}
.side-cta h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-1000);
  margin-bottom: 6px;
}
.side-cta p {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.65;
  margin-bottom: 12px;
}
.side-cta .sc-actions {
  display: grid;
  gap: 8px;
}
.side-cta .btn {
  width: 100%;
  height: 38px;
  font-size: 0.8125rem;
}
.side-cta:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
}
.qr-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px dashed var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.qr-trigger .qtr-ico {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: var(--shopify-tint);
  color: var(--shopify);
  display: grid;
  place-items: center;
}
.qr-trigger .qtr-ico svg {
  width: 16px;
  height: 16px;
}
.qr-trigger strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-800);
  line-height: 1.5;
}
.qr-trigger i {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-400);
  line-height: 1.5;
}
.side-cat-list {
  list-style: none;
  padding: 6px;
  margin: 0;
}
.side-cat-list a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-600);
  text-decoration: none;
}
.side-cat-list a:hover {
  background: var(--bg-soft);
  color: var(--brand);
}
.side-cat-list a[aria-current="true"] {
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
}

/* ---------- 12. Category page ---------- */
.cat-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.cat-hero .ch-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cat-hero .ch-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cat-hero .ch-ico svg {
  width: 24px;
  height: 24px;
}
.cat-hero h1 {
  font-size: 1.875rem;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--ink-1000);
  line-height: 1.3;
}
.cat-hero .ch-count {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 2px;
}
.cat-hero .ch-intro {
  max-width: 760px;
  font-size: 0.9875rem;
  line-height: 1.8;
  color: var(--ink-600);
}

.cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 52px;
  align-items: start;
  padding-bottom: 72px;
}

.q-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.q-item a {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.q-item a:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
  color: inherit;
}
.q-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.q-item a:hover .q-num {
  background: var(--brand-tint);
  color: var(--brand);
}
.q-item h2 {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink-900);
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}
.q-item p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-500);
}
.q-arrow {
  margin-left: auto;
  align-self: center;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.q-item a:hover .q-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* Categories overview page */
.overview-intro {
  padding: 44px 0 8px;
}
.overview-intro h1 {
  font-size: 2.125rem;
  font-weight: 780;
  letter-spacing: -0.028em;
  color: var(--ink-1000);
  margin-bottom: 12px;
}
.overview-intro p {
  max-width: 720px;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.8;
}

/* Index page (sitemap.html) */
.index-cols {
  columns: 2;
  column-gap: 48px;
}
.index-block {
  break-inside: avoid;
  margin-bottom: 26px;
}
.index-block h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-1000);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.index-block h2 a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}
.index-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.index-block li {
  margin: 0;
}
.index-block li a {
  display: block;
  padding: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-600);
}
.index-block li a:hover {
  color: var(--brand);
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  margin-top: 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.8375rem;
  line-height: 1.75;
  color: var(--ink-500);
  max-width: 34ch;
}
.footer-brand .f-addr {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-400);
}
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.8375rem;
  color: var(--ink-600);
  margin-bottom: 9px;
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--brand);
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact svg {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-400);
}
.footer-bottom p {
  line-height: 1.6;
}
.footer-bottom .fb-links {
  display: flex;
  gap: 16px;
}
.footer-bottom .fb-links a {
  color: var(--ink-500);
}

/* ---------- 14. 404 / static pages ---------- */
.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.page-narrow h1 {
  font-size: 2rem;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--ink-1000);
  margin-bottom: 14px;
}
.page-narrow .pn-lede {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-600);
  margin-bottom: 32px;
}
.page-narrow h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink-1000);
  margin: 36px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.page-narrow h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.page-narrow p,
.page-narrow li {
  font-size: 0.9875rem;
  line-height: 1.85;
  color: var(--ink-700);
  margin-bottom: 12px;
}
.page-narrow ul,
.page-narrow ol {
  padding-left: 1.4em;
  margin-bottom: 18px;
}
.page-narrow a {
  text-decoration: underline;
  text-decoration-color: var(--brand-tint2);
  text-underline-offset: 3px;
}
.page-narrow a:hover {
  text-decoration-color: var(--brand);
}

.err-code {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand), var(--shopify));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 18px;
  background: #fff;
}
.info-card h3 {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink-1000);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 0.8375rem;
  line-height: 1.7;
  color: var(--ink-500);
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-card:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
  color: inherit;
}
.contact-card .cc-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 6px;
}
.contact-card .cc-value {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--ink-1000);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.contact-card .cc-note {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 4px;
}
.qr-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-soft);
  margin: 26px 0;
}
.qr-inline img {
  width: 120px;
  height: 120px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}
.qr-inline .qi-text b {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-1000);
  margin-bottom: 4px;
}
.qr-inline .qi-text span {
  font-size: 0.8375rem;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1080px) {
  .article-shell,
  .cat-layout {
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 36px;
  }
  .search {
    width: 240px;
  }
}

@media (max-width: 960px) {
  .article-shell,
  .cat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: static;
    order: 2;
    margin-top: 8px;
  }
  .side-card.toc-card {
    display: none;
  }
  .inline-toc {
    display: flex;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .header-nav {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .index-cols {
    columns: 1;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }
  .wrap {
    padding: 0 18px;
  }
  .header-inner {
    padding: 0 18px;
    gap: 10px;
  }
  .brand-sub {
    display: none;
  }
  .header-actions .search {
    display: none;
  }
  .section {
    padding: 46px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: 1.375rem;
  }
  .hero {
    padding: 48px 0 52px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-sub {
    font-size: 0.9375rem;
  }
  .hero-search input {
    height: 50px;
    font-size: 0.9375rem;
    padding-left: 42px;
  }
  .hero-search .s-icon {
    left: 14px;
  }
  .hero-stats {
    gap: 0;
    margin-top: 34px;
    padding-top: 24px;
  }
  .hero-stat {
    padding: 0 18px;
  }
  .hero-stat:nth-child(4) {
    display: none;
  }
  .hero-stat b {
    font-size: 1.25rem;
  }
  .hero-stat span {
    font-size: 0.75rem;
  }
  .cat-grid,
  .hot-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 28px 24px;
    border-radius: var(--r-l);
  }
  .cta-band h2 {
    font-size: 1.25rem;
  }
  .cta-band .cb-actions {
    width: 100%;
  }
  .article-head h1 {
    font-size: 1.5rem;
  }
  .article-meta {
    gap: 6px 14px;
    font-size: 0.78125rem;
  }
  .article-meta .dot {
    display: none;
  }
  .prose {
    font-size: 0.9875rem;
  }
  .prose h2 {
    font-size: 1.1875rem;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    text-align: left;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cat-hero {
    padding: 28px 0 24px;
    margin-bottom: 26px;
  }
  .cat-hero h1 {
    font-size: 1.375rem;
  }
  .page-narrow {
    padding: 40px 18px 64px;
  }
  .page-narrow h1 {
    font-size: 1.5rem;
  }
  .err-code {
    font-size: 3.2rem;
  }
  .cta-inline {
    padding: 18px;
  }
  .qr-inline {
    flex-direction: column;
    text-align: center;
  }
  .q-item a {
    padding: 15px 16px;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .side,
  .progress,
  .cta-inline,
  .pager,
  .related {
    display: none !important;
  }
  .article-shell {
    display: block;
  }
  body {
    font-size: 11pt;
  }
}


/* ==========================================================================
   联系弹窗（文章 CTA / 侧栏卡片 / 顶部按钮共用）
   ========================================================================== */
.cmodal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cmodal.open {
  display: flex;
}
.cmodal-veil {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 23, 0.5);
  backdrop-filter: blur(3px);
  animation: cmFade 0.18s ease-out;
}
.cmodal-card {
  position: relative;
  outline: none;
  width: 100%;
  max-width: 484px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(7, 13, 23, 0.3);
  animation: cmPop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes cmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cmPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cmodal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cmodal-x:hover {
  background: #eef3fa;
  color: var(--ink-900);
}
.cmodal-x svg {
  width: 15px;
  height: 15px;
}
.cmodal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--shopify-tint);
  color: var(--shopify);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cmodal-kicker svg {
  width: 13px;
  height: 13px;
}
.cmodal-head h2 {
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink-1000);
  margin-bottom: 8px;
}
.cmodal-head p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-600);
  padding-right: 26px;
}
.cmodal-wx {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.cmodal-wx img {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.cw-label {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-bottom: 7px;
}
.cw-id {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cw-id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: 0.01em;
}
.cw-copy {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 6px 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s;
}
.cw-copy:hover {
  background: var(--brand-hover);
}
.cw-copy.done {
  background: var(--shopify);
}
.cw-tip {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink-400);
}
.cmodal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s;
}
.cm-item:hover {
  border-color: var(--brand-tint2);
  background: var(--bg-softer);
  color: inherit;
}
.cm-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
}
.cm-ico svg {
  width: 16px;
  height: 16px;
}
.cm-txt {
  min-width: 0;
}
.cm-txt em {
  display: block;
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--ink-400);
}
.cm-txt strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-txt i {
  display: block;
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--ink-400);
  line-height: 1.4;
}
.cmodal-submit {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s;
}
.cmodal-submit:hover {
  background: var(--brand-hover);
}
.cmodal-submit span {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.74);
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .cmodal {
    padding: 0;
    align-items: flex-end;
  }
  .cmodal-card {
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    animation: cmUp 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  @keyframes cmUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .cmodal-grid {
    grid-template-columns: 1fr;
  }
  .cmodal-wx {
    gap: 12px;
    padding: 12px;
  }
  .cmodal-wx img {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
}

/* ==========================================================================
   Shopify 新闻栏目
   ========================================================================== */
.nkind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nkind svg {
  width: 13px;
  height: 13px;
}
.nkind.is-official { background: var(--brand-tint); color: var(--brand); border-color: #d3e3fa; }
.nkind.is-product { background: var(--shopify-tint); color: #046b52; border-color: #cfe9e0; }
.nkind.is-developer { background: #eef1f6; color: var(--ink-800); border-color: #dde3ec; }
.nkind.is-agentic { background: #f0ecfd; color: #5436c9; border-color: #e0d8fb; }
.nkind.is-industry { background: #fdf3e2; color: #8a5200; border-color: #f3e2c4; }
.nkind.is-tax { background: #e6f4f5; color: #0b656c; border-color: #cfe7e9; }

/* 新闻首页 */
.news-hero {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--line);
}
.nh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.nh-kicker svg { width: 14px; height: 14px; }
.news-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-1000);
}
.nh-sub {
  max-width: 780px;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-600);
}
.nh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 0.83rem;
  color: var(--ink-500);
}
.nh-stats b { color: var(--ink-800); font-weight: 700; }

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 6px;
}
.nf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nf-chip b {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-400);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 1px 6px;
}
.nf-chip:hover { border-color: var(--brand-tint2); color: var(--brand); }
.nf-chip.is-on {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.nf-chip.is-on b { background: rgba(255, 255, 255, 0.16); color: #fff; }

.news-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 42px;
}
.news-lead {
  display: flex;
  flex-direction: column;
  padding: 30px 32px;
  border-radius: var(--r-l);
  background: linear-gradient(155deg, #0d1c31 0%, #102a4d 58%, #0b3f57 100%);
  color: #fff;
  text-decoration: none;
  min-height: 268px;
  position: relative;
  overflow: hidden;
}
.news-lead::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.28), transparent 70%);
}
.news-lead .nl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.news-lead .nl-meta time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}
.news-lead .nkind { background: rgba(255, 255, 255, 0.12); color: #cfe4ff; border-color: rgba(255, 255, 255, 0.16); }
.news-lead h2 {
  font-size: 1.6rem;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.news-lead p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.news-lead .nl-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}
.news-lead .nl-go { color: #8fd0ff; font-weight: 650; }
.news-lead:hover .nl-go { color: #fff; }

.news-latest {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.nl-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.nl-head svg { width: 14px; height: 14px; }
.news-latest ul { list-style: none; margin: 0; padding: 0; }
.news-latest li + li { border-top: 1px solid var(--line-soft); }
.news-latest li a {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  color: var(--ink-800);
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.6;
}
.news-latest li a:hover { color: var(--brand); }
.nl-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.nl-title { font-weight: 550; }
.nl-rss {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 52px;
  align-items: start;
  padding-bottom: 72px;
}
.nt-month { margin-bottom: 30px; }
.nt-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--ink-900);
}
.nt-label i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-400);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 1px 7px;
}
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-item > a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 15px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.news-item > a:hover {
  border-color: var(--brand-tint2);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.ni-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1px;
  border-right: 1px solid var(--line-soft);
  padding-right: 12px;
}
.ni-date b {
  font-size: 1.2rem;
  font-weight: 780;
  line-height: 1.15;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.ni-date i {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ink-400);
  margin-top: 2px;
}
.ni-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ni-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ni-src { font-size: 0.72rem; color: var(--ink-400); }
.ni-title {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.news-item > a:hover .ni-title { color: var(--brand-deep); }
.ni-sum {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ni-arrow {
  align-self: center;
  color: var(--ink-400);
  transition: color 0.15s, transform 0.15s;
}
.news-item > a:hover .ni-arrow { color: var(--brand); transform: translateX(3px); }

.nkind-list { list-style: none; margin: 0; padding: 0; }
.nkind-list li + li { border-top: 1px solid var(--line-soft); }
.nkind-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.87rem;
  color: var(--ink-700);
  text-decoration: none;
}
.nkind-list a:hover,
.nkind-list a[aria-current="true"] { color: var(--brand); }
.nkind-list a[aria-current="true"] span { font-weight: 700; }
.nkind-list i {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.n-about p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-500);
}
.n-about p + p { margin-top: 10px; }

/* 新闻详情 */
.kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.nk-date {
  font-size: 0.78rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.news-origin {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 0.8rem;
}
.news-origin span { color: var(--ink-400); font-size: 0.72rem; letter-spacing: 0.04em; }
.news-origin a { color: var(--ink-700); text-decoration: none; font-weight: 550; }
.news-origin a:hover { color: var(--brand); }
.news-origin i { font-style: normal; color: var(--ink-400); font-size: 0.72rem; }
.news-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-700);
  padding-left: 16px;
  border-left: 3px solid var(--brand-tint2);
  margin: 22px 0 26px;
}
.src-box {
  margin-top: 34px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.sb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.sb-head svg { width: 15px; height: 15px; color: var(--ink-400); }
.src-box dl { margin: 0; display: grid; gap: 8px; }
.src-box dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.65;
}
.src-box dt { color: var(--ink-400); }
.src-box dd { margin: 0; color: var(--ink-700); word-break: break-all; }
.src-box dd a { color: var(--brand); }
.src-box > p {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink-500);
}
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ntag {
  font-size: 0.77rem;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  text-decoration: none;
}
.ntag:hover { border-color: var(--brand-tint2); color: var(--brand); }

/* 首页新闻区块 */
.hn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
}
.hn-lead {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-m);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}
.hn-lead:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.hl-kind {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 8px;
}
.hl-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.hl-sum {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--ink-500);
}
.hl-go { margin-top: 14px; font-size: 0.82rem; font-weight: 650; color: var(--brand); }
.hn-list { display: flex; flex-direction: column; }
.hn-item {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
}
.hn-item:first-child { padding-top: 0; }
.hn-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hi-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.hi-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hi-kind { font-size: 0.7rem; color: var(--ink-400); }
.hi-title { font-size: 0.86rem; line-height: 1.6; color: var(--ink-800); font-weight: 550; }
.hn-item:hover .hi-title { color: var(--brand); }

@media (max-width: 960px) {
  .news-top { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; gap: 34px; }
  .hn-grid { grid-template-columns: 1fr; }
  .news-layout .side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .news-hero { padding: 30px 0 20px; }
  .news-hero h1 { font-size: 1.6rem; }
  .nh-sub { font-size: 0.92rem; }
  .news-top { margin: 18px 0 30px; }
  .news-lead { padding: 22px 20px; min-height: 0; }
  .news-lead h2 { font-size: 1.22rem; }
  .news-lead p { font-size: 0.85rem; }
  .news-filters { gap: 6px; padding-top: 16px; }
  .nf-chip { padding: 6px 10px; font-size: 0.78rem; }
  .news-item > a { grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; padding: 14px; }
  .ni-date {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    border-right: 0;
    padding-right: 0;
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .ni-date b { font-size: 0.86rem; }
  .ni-date i { font-size: 0.7rem; margin-top: 0; }
  .ni-sum { -webkit-line-clamp: 3; }
  .news-layout .side { grid-template-columns: 1fr; }
  .news-lede { font-size: 0.98rem; padding-left: 12px; }
  .src-box { padding: 16px; }
  .src-box dl > div { grid-template-columns: 1fr; gap: 2px; }
  .kicker-row { flex-wrap: wrap; gap: 8px; }
  .hn-lead { padding: 20px; }
  .hl-title { font-size: 1.02rem; }
}

/* 新闻详情微调 */
.news-lead h2 { text-wrap: balance; }
.news-origin a {
  color: var(--ink-900);
  border-bottom: 1px dotted var(--ink-400);
  padding-bottom: 1px;
}
.news-origin a:hover { border-bottom-color: var(--brand); }
.news-origin span { font-weight: 600; }

/* 首页新闻卡片：让链接贴底，避免拉伸后底部空白 */
.hn-lead { justify-content: flex-start; }
.hl-go { margin-top: auto; padding-top: 16px; }
.hl-sum {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 960px) {
  .hl-go { margin-top: 14px; }
}

/* 移动端：来源行里的箭头会单独占一行，隐藏 */
@media (max-width: 720px) {
  .news-origin i { display: none; }
}
