/* ==========================================================================
   16IDC · site v2
   Technical-atlas shell: sticky header, directory rail, ink hero, hairline grids.
   Loaded after style.css; legacy page styles are kept and only lightly adapted.
   ========================================================================== */

:root {
  --ast-ink: #10151d;
  --ast-ink-soft: #1b2330;
  --ast-paper: #f3f4ef;
  --ast-surface: #ffffff;
  --ast-line: #dfe3dc;
  --ast-line-strong: #c5ccc3;
  --ast-muted: #66707b;
  --ast-muted-light: #8b949d;
  --ast-lime: #d8f46c;
  --ast-lime-deep: #b9d94a;
  --ast-ok-soft: #eef6da;
  --ast-ok-ink: #33510f;
  --ast-ok-ink-soft: #4c6b2b;
  --ast-danger-soft: #fbeaea;
  --ast-danger-ink: #8a2626;
  --ast-danger-ink-soft: #9a4d4d;
  --ast-radius: 4px;
  --ast-font-display: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ast-font-body: "Noto Sans SC", "Archivo", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --ast-font-mono: "IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;
  --ast-header-h: 68px;
}

html {
  scroll-padding-top: 92px;
}

body.ast-body {
  font-family: var(--ast-font-body);
  font-size: 15px;
  color: var(--ast-ink);
  background-color: #f4f5f0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 10% -6%, rgba(216, 244, 108, 0.13), transparent 62%),
    radial-gradient(1000px 560px at 102% 1%, rgba(16, 21, 29, 0.05), transparent 58%),
    radial-gradient(900px 700px at 45% 108%, rgba(16, 21, 29, 0.03), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 160px 160px, auto, auto, auto;
}

.ast-body ::selection {
  background: var(--ast-lime);
  color: var(--ast-ink);
}

/* 低优先级，让组件自身的颜色声明（如 hero 实心按钮）优先 */
:where(.ast-body) a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.ast-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ast-line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.ast-header.is-scrolled {
  background: rgba(243, 244, 239, 0.96);
  box-shadow: 0 1px 0 rgba(16, 21, 29, 0.06), 0 12px 30px rgba(16, 21, 29, 0.05);
}

.ast-header__inner {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--ast-header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.ast-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ast-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ast-ink);
  color: var(--ast-lime);
  font-family: var(--ast-font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.ast-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ast-brand__text strong {
  font-family: var(--ast-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ast-ink);
}

.ast-brand__text small {
  margin-top: 4px;
  font-family: var(--ast-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ast-muted);
  white-space: nowrap;
}

.ast-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ast-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.ast-nav__link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ast-ink-soft);
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ast-nav__link:hover,
.ast-nav__link.is-active {
  background: rgba(16, 21, 29, 0.06);
  color: var(--ast-ink);
}

button.ast-nav__link {
  font-family: inherit;
}

.ast-nav__caret {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 34px;
  margin-left: -6px;
  color: var(--ast-muted);
}

.ast-nav__caret svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.2s ease;
}

.ast-nav__item.is-open .ast-nav__caret svg {
  transform: rotate(180deg);
}

.ast-nav__panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 40;
  width: min(560px, calc(100vw - 48px));
  padding: 18px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  box-shadow: 0 24px 60px rgba(16, 21, 29, 0.14);
}

.ast-nav__item.is-open .ast-nav__panel {
  display: block;
  animation: ast-fade 0.18s ease both;
}

.ast-nav__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ast-line);
}

.ast-nav__panel-head span {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ast-muted);
}

.ast-nav__panel-head p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ast-muted);
}

.ast-nav__panel-head a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 4px;
}

.ast-nav__panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.ast-nav__panel-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--ast-ink-soft);
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.ast-nav__panel-grid a:hover {
  background: var(--ast-paper);
}

.ast-nav__panel-grid em {
  font-style: normal;
  font-size: 13px;
  color: var(--ast-muted);
}

.ast-nav__panel--tags {
  width: min(420px, calc(100vw - 48px));
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.ast-nav__item.is-open .ast-nav__panel--tags {
  display: grid;
}

.ast-nav__panel--tags a {
  padding: 7px 10px;
  font-size: 13px;
  color: var(--ast-ink-soft);
  border-radius: 3px;
}

.ast-nav__panel--tags a:hover {
  background: var(--ast-paper);
  color: var(--ast-ink);
}

.ast-nav__empty {
  font-size: 12px;
  color: var(--ast-muted);
}

.ast-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ast-header .site-search {
  margin: 0;
}

.ast-header .site-search__trigger {
  height: 34px;
  padding: 0 12px;
  border-color: var(--ast-line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: var(--ast-ink-soft);
}

.ast-header .site-search__trigger span:first-child {
  font-size: 17px;
  transform: none;
}

.ast-header .site-search__panel {
  top: 44px;
  border-radius: var(--ast-radius);
}

.ast-header .site-search__form button {
  background: var(--ast-ink);
  border-radius: 3px;
}

.ast-header .site-search__form input {
  border-radius: 3px;
}

.ast-lang {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--ast-line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
}

.ast-lang a {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  font-family: var(--ast-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ast-muted);
  border-radius: 2px;
}

.ast-lang a:hover {
  color: var(--ast-ink);
}

.ast-lang a.is-active {
  background: var(--ast-ink);
  color: var(--ast-lime);
}

/* 提交服务商 CTA：墨色描边 + 柠檬绿底 + 硬投影，区别于普通导航链接与常规按钮 */
.ast-submit-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  font-family: var(--ast-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ast-ink);
  background: var(--ast-lime);
  border: 1px solid var(--ast-ink);
  border-radius: 3px;
  box-shadow: 2px 2px 0 var(--ast-ink);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ast-submit-cta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ast-submit-cta:hover {
  color: var(--ast-lime);
  background: var(--ast-ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ast-lime);
}

.ast-submit-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ast-ink);
}

.ast-submit-cta:focus-visible {
  outline: 2px solid var(--ast-ink);
  outline-offset: 2px;
}

.ast-menu {
  display: none;
  width: 36px;
  height: 34px;
  border: 1px solid var(--ast-line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ast-menu span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ast-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ast-menu.is-active span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.ast-menu.is-active span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile drawer */
.ast-mobile {
  border-top: 1px solid var(--ast-line);
  background: var(--ast-paper);
  padding: 14px 24px 22px;
  max-height: calc(100vh - var(--ast-header-h));
  overflow: auto;
}

.ast-mobile__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ast-line);
}

.ast-mobile__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--ast-line);
  font-family: var(--ast-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ast-mobile__list a span {
  color: var(--ast-muted);
}

.ast-mobile__cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ast-line);
}

.ast-mobile__cats a {
  padding: 7px 0;
  font-size: 13px;
  color: var(--ast-muted);
}

.ast-mobile__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 16px;
}

.ast-mobile__foot a {
  font-size: 12px;
  color: var(--ast-muted);
}

/* --------------------------------------------------------------------------
   Shell + rail
   -------------------------------------------------------------------------- */

.ast-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.ast-rail {
  /* 随页面滚动；JS 按方向在“贴顶 / 贴底”两个吸附点间切换 --ast-rail-top */
  position: sticky;
  top: var(--ast-rail-top, var(--ast-header-h));
  transition: top 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
  padding: 18px 22px 24px 0;
}

@media (prefers-reduced-motion: reduce) {
  .ast-rail {
    transition: none;
  }
}

.ast-rail__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ast-rail__label {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ast-muted-light);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ast-line);
}

.ast-rail__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: -10px;
}

.ast-rail__group a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 8px 4px 0;
  font-size: 13.5px;
  color: var(--ast-ink-soft);
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ast-rail__group a:hover {
  color: var(--ast-ink);
  background: rgba(16, 21, 29, 0.045);
}

.ast-rail__group a.is-active {
  color: var(--ast-ink);
  font-weight: 600;
}

.ast-rail__group a.is-active .ast-rail__index {
  color: var(--ast-ink);
}

.ast-rail__index {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-muted-light);
}

.ast-rail__sub {
  padding-left: 22px !important;
  font-size: 12.5px !important;
  color: var(--ast-muted) !important;
}

.ast-rail__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ast-line-strong);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.ast-rail__sub:hover .ast-rail__dot,
.ast-rail__sub.is-active .ast-rail__dot {
  background: var(--ast-lime-deep);
}

.ast-rail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -10px;
}

.ast-rail__tags a {
  padding: 3px 7px;
  font-size: 11.5px;
  color: var(--ast-muted);
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ast-rail__tags a:hover {
  border-color: var(--ast-ink);
  color: var(--ast-ink);
}

.ast-workspace {
  min-width: 0;
  padding: 24px 0 72px;
}

/* --------------------------------------------------------------------------
   Home · hero
   -------------------------------------------------------------------------- */

.ast-home {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ast-hero {
  position: relative;
  overflow: hidden;
  background: var(--ast-ink);
  color: #eef1ea;
  border-radius: var(--ast-radius);
  padding: 48px 44px 0;
}

.ast-hero__texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(680px 340px at 82% -10%, rgba(216, 244, 108, 0.16), transparent 70%),
    radial-gradient(520px 320px at 4% 108%, rgba(216, 244, 108, 0.08), transparent 70%);
  pointer-events: none;
}

.ast-hero__top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: start;
}

.ast-hero__copy {
  padding-bottom: 44px;
}

.ast-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

.ast-kicker--light {
  color: rgba(238, 241, 234, 0.62);
}

.ast-kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ast-lime);
  box-shadow: 0 0 0 4px rgba(216, 244, 108, 0.12);
}

.ast-hero__title {
  margin: 18px 0 20px;
  font-family: var(--ast-font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f7f8f3;
}

.ast-hero__title em {
  display: block;
  font-style: normal;
  color: var(--ast-lime);
}

.ast-hero__lede {
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(238, 241, 234, 0.66);
}

.ast-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin-top: 28px;
  padding: 6px 6px 6px 14px;
  background: #f7f8f3;
  border-radius: 3px;
}

.ast-search__icon {
  font-size: 19px;
  line-height: 1;
  color: var(--ast-ink);
  transform: rotate(-15deg);
}

.ast-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ast-font-body);
  font-size: 14px;
  color: var(--ast-ink);
}

.ast-search input::placeholder {
  color: var(--ast-muted-light);
}

.ast-search button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--ast-ink);
  color: var(--ast-lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ast-search button:hover {
  background: var(--ast-lime);
  color: var(--ast-ink);
}

.ast-hero__suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 14px;
  font-size: 12px;
}

.ast-hero__suggest span {
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(238, 241, 234, 0.45);
}

.ast-hero__suggest a {
  padding-bottom: 1px;
  color: rgba(238, 241, 234, 0.78);
  border-bottom: 1px solid rgba(238, 241, 234, 0.22);
}

.ast-hero__suggest a:hover {
  color: var(--ast-lime);
  border-bottom-color: var(--ast-lime);
}

.ast-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ast-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ast-btn--solid {
  background: var(--ast-lime);
  color: var(--ast-ink);
}

.ast-btn--solid:hover {
  background: #f7f8f3;
}

.ast-btn--ghost {
  border-color: rgba(238, 241, 234, 0.28);
  color: #eef1ea;
}

.ast-btn--ghost:hover {
  border-color: var(--ast-lime);
  color: var(--ast-lime);
}

/* Hero index */
.ast-index {
  border: 1px solid rgba(238, 241, 234, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 44px;
}

.ast-index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(238, 241, 234, 0.12);
}

.ast-index__head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eef1ea;
}

.ast-index__head p {
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(238, 241, 234, 0.42);
}

.ast-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px 8px 8px;
  gap: 0 12px;
}

.ast-index__list a {
  display: grid;
  grid-template-columns: 20px 18px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(238, 241, 234, 0.07);
  font-size: 12.5px;
  color: rgba(238, 241, 234, 0.82);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ast-index__list li:nth-last-child(-n + 2) a {
  border-bottom: none;
}

.ast-index__list a:hover {
  color: var(--ast-lime);
  background: rgba(216, 244, 108, 0.05);
}

.ast-index__no {
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  color: rgba(238, 241, 234, 0.34);
}

.ast-index__glyph {
  font-size: 12px;
  color: rgba(238, 241, 234, 0.55);
}

.ast-index__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ast-index__count {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: rgba(238, 241, 234, 0.4);
}

.ast-index__arrow {
  font-size: 10px;
  color: rgba(238, 241, 234, 0.28);
}

.ast-index__list a:hover .ast-index__arrow {
  color: var(--ast-lime);
}

/* Hero stats */
.ast-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto)) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(238, 241, 234, 0.12);
}

.ast-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ast-stats dt {
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 241, 234, 0.42);
  order: 2;
}

.ast-stats dd {
  font-family: var(--ast-font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ast-lime);
  order: 1;
}

.ast-stats__note {
  justify-self: end;
  text-align: right;
  font-size: 11px;
  color: rgba(238, 241, 234, 0.36);
}

/* --------------------------------------------------------------------------
   Home · discovery panels
   -------------------------------------------------------------------------- */

.ast-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ast-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 10px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
}

.ast-panel__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ast-line);
}

.ast-panel__head h2 {
  margin: 8px 0 4px;
  font-family: var(--ast-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ast-panel__head p:last-child {
  font-size: 12px;
  color: var(--ast-muted);
}

.ast-rank {
  display: flex;
  flex-direction: column;
}

.ast-rank__row {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ast-line);
}

.ast-rank__row:last-child {
  border-bottom: none;
}

.ast-rank__no {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-muted-light);
}

.ast-rank__no--date {
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.ast-rank__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--ast-line);
  border-radius: 3px;
  background: #fff;
  padding: 3px;
}

.ast-rank__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ast-rank__body a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ast-ink);
}

.ast-rank__body a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 3px;
}

.ast-rank__body small {
  font-size: 11px;
  color: var(--ast-muted-light);
}

.ast-rank__score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--ast-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ast-ink);
  padding: 2px 6px;
  background: rgba(216, 244, 108, 0.35);
  border-radius: 2px;
}

.ast-rank__score small {
  font-size: 9px;
  font-weight: 400;
  color: rgba(16, 21, 29, 0.5);
}

.ast-rank__arrow {
  font-size: 11px;
  color: var(--ast-line-strong);
}

.ast-rank__row:hover .ast-rank__arrow {
  color: var(--ast-ink);
}

.ast-heat {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.ast-heat a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 36px;
  align-items: center;
  gap: 10px;
  padding: 9.5px 0;
  border-bottom: 1px solid var(--ast-line);
  font-size: 13px;
}

.ast-heat li:last-child a {
  border-bottom: none;
}

.ast-heat__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ast-ink-soft);
}

.ast-heat__bar {
  display: block;
  height: 4px;
  background: rgba(16, 21, 29, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.ast-heat__bar i {
  display: block;
  height: 100%;
  background: var(--ast-ink);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.ast-heat a:hover .ast-heat__bar i {
  background: var(--ast-lime-deep);
}

.ast-heat__count {
  font-family: var(--ast-font-mono);
  font-size: 11px;
  text-align: right;
  color: var(--ast-muted);
}

/* --------------------------------------------------------------------------
   Home · catalog
   -------------------------------------------------------------------------- */

.ast-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ast-line-strong);
}

.ast-section-head h2 {
  margin: 8px 0 6px;
  font-family: var(--ast-font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ast-section-head p:last-child {
  max-width: 560px;
  font-size: 13.5px;
  color: var(--ast-muted);
}

.ast-section-head__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.ast-section-head__meta span {
  font-family: var(--ast-font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ast-ink);
}

.ast-section-head__meta small {
  font-size: 11px;
  color: var(--ast-muted);
}

.ast-section-head__link {
  flex-shrink: 0;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ast-ink);
  border-bottom: 1px solid var(--ast-lime-deep);
}

.ast-catalog {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.ast-cat {
  scroll-margin-top: 92px;
}

.ast-cat + .ast-cat {
  padding-top: 36px;
  border-top: 1px dashed var(--ast-line-strong);
}

.ast-cat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.ast-cat__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ast-cat__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ast-line-strong);
  border-radius: 3px;
  background: var(--ast-surface);
  font-size: 17px;
}

.ast-cat__title h3 {
  margin-top: 5px;
  font-family: var(--ast-font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ast-cat__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}

.ast-cat__meta span {
  font-size: 11px;
  color: var(--ast-muted);
}

.ast-cat__meta b {
  font-family: var(--ast-font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ast-ink);
}

.ast-cat__count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11px;
  color: var(--ast-muted);
  transition: color 0.15s ease;
}

.ast-cat__count b {
  font-family: var(--ast-font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ast-ink);
}

.ast-cat__count:hover {
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ast-cat__top {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  font-family: var(--ast-font-mono);
  font-size: 12px;
  color: var(--ast-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ast-cat__top:hover {
  border-color: var(--ast-ink);
  color: var(--ast-ink);
}

.ast-cat__desc {
  margin-top: 10px;
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ast-muted);
}

.ast-cat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

/* Catalog card overrides (shared partial markup) */
:is(.ast-cat__grid, .ast-grid) .service-card {
  padding: 14px 14px 12px;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  background: var(--ast-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

:is(.ast-cat__grid, .ast-grid) .service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--ast-lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s ease;
}

:is(.ast-cat__grid, .ast-grid) .service-card:hover {
  transform: translateY(-2px);
  border-color: var(--ast-line-strong);
  box-shadow: 0 14px 30px rgba(16, 21, 29, 0.07);
}

:is(.ast-cat__grid, .ast-grid) .service-card:hover::before {
  transform: scaleY(1);
}

:is(.ast-cat__grid, .ast-grid) .service-card__header {
  gap: 10px;
  margin-bottom: 2px;
  padding-right: 0;
  padding-bottom: 0;
}

:is(.ast-cat__grid, .ast-grid) .service-card__logo {
  width: 32px;
  height: 32px;
  border-radius: 3px;
}

.service-card__logo.is-missing,
.ast-page-head__logo.is-missing {
  display: none;
}

:is(.ast-cat__grid, .ast-grid) .service-card__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

:is(.ast-cat__grid, .ast-grid) .service-card__name a {
  color: var(--ast-ink);
}

:is(.ast-cat__grid, .ast-grid) .service-card__brief {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ast-muted);
  -webkit-line-clamp: 1;
}

:is(.ast-cat__grid, .ast-grid) .service-card__tag {
  position: static;
  max-width: none;
  margin-left: auto;
  padding: 1px 5px;
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  background: var(--ast-paper);
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  color: var(--ast-muted);
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

/* 悬停时地区标签让位给“新窗口打开”图标 */
:is(.ast-cat__grid, .ast-grid) .service-card:hover .service-card__tag,
:is(.ast-cat__grid, .ast-grid) .service-card:focus-within .service-card__tag {
  opacity: 0;
}

.service-card__site {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ast-line-strong);
  border-radius: 2px;
  background: var(--ast-surface);
  color: var(--ast-ink);
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.service-card__site svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.ast-cat__grid, .ast-grid) .service-card:hover .service-card__site,
.service-card__site:focus-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.service-card__site:hover {
  background: var(--ast-lime);
  border-color: var(--ast-lime-deep);
}

/* --------------------------------------------------------------------------
   Home · reading
   -------------------------------------------------------------------------- */

.ast-reading {
  margin-top: 52px;
}

.ast-reading__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  margin-top: 22px;
}

.ast-timeline {
  position: relative;
  padding: 4px 0;
}

.ast-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--ast-line-strong);
}

.ast-tl {
  position: relative;
  padding-left: 26px;
}

.ast-tl__date {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 6px;
  font-family: var(--ast-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  color: var(--ast-ink);
}

.ast-tl__date::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--ast-lime);
  border: 1px solid var(--ast-ink);
}

.ast-tl:first-child .ast-tl__date {
  margin-top: 8px;
}

.ast-tl__count {
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ast-muted-light);
  border: 1px solid var(--ast-line);
  border-radius: 20px;
}

.ast-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: start;
  gap: 14px;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--ast-line);
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.ast-tl .ast-entry:last-child {
  border-bottom: none;
}

.ast-entry:hover {
  background: var(--ast-surface);
  padding-left: 12px;
}

.ast-entry__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ast-entry__cat {
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

.ast-entry__body strong {
  font-family: var(--ast-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ast-ink);
  transition: color 0.15s ease;
}

.ast-entry:hover .ast-entry__body strong {
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ast-entry__body small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 12.5px;
  color: var(--ast-muted);
}

.ast-entry__arrow {
  padding-top: 4px;
  font-size: 12px;
  color: var(--ast-line-strong);
}

.ast-entry:hover .ast-entry__arrow {
  color: var(--ast-ink);
}

.ast-hot {
  align-self: start;
  padding: 22px;
  background: var(--ast-ink);
  color: #eef1ea;
  border-radius: var(--ast-radius);
}

.ast-hot .ast-kicker {
  color: rgba(238, 241, 234, 0.45);
}

.ast-hot h3 {
  margin: 8px 0 12px;
  font-family: var(--ast-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ast-hot ol {
  display: flex;
  flex-direction: column;
}

.ast-hot li + li {
  border-top: 1px solid rgba(238, 241, 234, 0.1);
}

.ast-hot a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
}

.ast-hot__no {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-lime);
}

.ast-hot__title {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(238, 241, 234, 0.86);
}

.ast-hot a:hover .ast-hot__title {
  color: var(--ast-lime);
}

.ast-hot__views {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: rgba(238, 241, 234, 0.4);
}

.ast-hot .ast-empty {
  color: rgba(238, 241, 234, 0.5);
  padding: 10px 0;
  font-size: 12px;
}

.ast-empty {
  padding: 24px 0;
  font-size: 13px;
  color: var(--ast-muted);
}

/* --------------------------------------------------------------------------
   Footer + partners (light restyle on top of legacy markup)
   -------------------------------------------------------------------------- */

.ast-body .partner-showcase {
  margin-top: 52px;
  padding: 24px 24px 26px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
}

.ast-body .partner-showcase .container {
  padding: 0;
}

.ast-body .partner-showcase__header h2 {
  font-family: var(--ast-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ast-body .partner-showcase__header p {
  color: var(--ast-muted);
  font-size: 13px;
}

.ast-body .partner-showcase__grid {
  gap: 10px;
}

.ast-body .partner-showcase__card {
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  background: var(--ast-paper);
}

.ast-body .footer {
  background: var(--ast-ink);
  padding: 34px 0 0;
}

.ast-body .footer__compact {
  border-top: none;
  padding-top: 0;
}

.ast-body .footer__nav a,
.ast-body .footer__lang a,
.ast-body .footer__bottom p {
  font-size: 12px;
  color: rgba(238, 241, 234, 0.55);
}

.ast-body .footer__nav a:hover,
.ast-body .footer__lang a:hover {
  color: var(--ast-lime);
}

/* --------------------------------------------------------------------------
   Legacy page compatibility inside the new workspace
   -------------------------------------------------------------------------- */

.ast-workspace .breadcrumb {
  padding: 26px 0 0;
  font-size: 12px;
  color: var(--ast-muted);
}

.ast-workspace .breadcrumb + .section {
  padding-top: 20px;
}

.ast-workspace .hero {
  padding: 56px 0 48px;
  border-radius: var(--ast-radius);
}

.ast-workspace .hero__title {
  font-family: var(--ast-font-display);
  letter-spacing: -0.03em;
}

.ast-workspace .section {
  padding: 36px 0;
}

.ast-workspace .container {
  padding-left: 0;
  padding-right: 0;
}

.ast-workspace .article-card,
.ast-workspace .news-article,
.ast-workspace .discovery-card {
  border-radius: var(--ast-radius);
}

.ast-workspace .btn {
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Shared page components
   Used by article, provider, discovery, info, category and error pages.
   -------------------------------------------------------------------------- */

.ast-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 服务商详情页：在页面内容与页脚之间额外留出呼吸空间（仅此页） */
.ast-page--provider-detail {
  padding-bottom: 64px;
}

/* Inner page head (ink panel) */
.ast-page-head {
  position: relative;
  overflow: hidden;
  padding: 34px 36px 32px;
  background: var(--ast-ink);
  color: #eef1ea;
  border-radius: var(--ast-radius);
}

.ast-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 88% -20%, rgba(216, 244, 108, 0.14), transparent 70%),
    radial-gradient(420px 260px at 0% 120%, rgba(216, 244, 108, 0.07), transparent 70%);
  pointer-events: none;
}

.ast-page-head__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.ast-page-head__title {
  margin: 12px 0 10px;
  font-family: var(--ast-font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: #f7f8f3;
}

.ast-page-head__title em {
  font-style: normal;
  color: var(--ast-lime);
}

.ast-page-head__lede {
  max-width: 720px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(238, 241, 234, 0.64);
}

.ast-page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 16px;
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 241, 234, 0.48);
}

.ast-page-head__meta b {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ast-lime);
}

.ast-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ast-page-head__side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ast-page-head__logo {
  width: 68px;
  height: 68px;
  padding: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(238, 241, 234, 0.18);
  border-radius: 4px;
}

.ast-page-head__score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 8px;
  font-family: var(--ast-font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ast-ink);
  background: var(--ast-lime);
  border-radius: 2px;
}

.ast-page-head__score small {
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(16, 21, 29, 0.55);
}

.ast-page-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ast-page-head .ast-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(238, 241, 234, 0.2);
  color: rgba(238, 241, 234, 0.78);
}

.ast-page-head .ast-chip:hover {
  border-color: var(--ast-lime);
  color: var(--ast-lime);
}

/* Breadcrumb */
.ast-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ast-muted);
}

.ast-breadcrumb a:hover {
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 4px;
}

.ast-breadcrumb__sep {
  color: var(--ast-line-strong);
}

.ast-breadcrumb__current {
  max-width: 62ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ast-ink);
}

/* Buttons */
.ast-btn--dark {
  background: var(--ast-ink);
  color: var(--ast-lime);
}

.ast-btn--dark:hover {
  background: var(--ast-lime);
  color: var(--ast-ink);
}

.ast-btn--line {
  border-color: var(--ast-line-strong);
  background: var(--ast-surface);
  color: var(--ast-ink);
}

.ast-btn--line:hover {
  border-color: var(--ast-ink);
  background: var(--ast-paper);
}

.ast-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.ast-btn--block {
  width: 100%;
  justify-content: center;
}

/* Chips */
.ast-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ast-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ast-muted);
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

a.ast-chip:hover {
  border-color: var(--ast-ink);
  color: var(--ast-ink);
}

.ast-chip--accent {
  background: rgba(216, 244, 108, 0.38);
  border-color: transparent;
  color: var(--ast-ink);
}

.ast-chip--dark {
  background: var(--ast-ink);
  border-color: var(--ast-ink);
  color: var(--ast-lime);
}

/* Notices */
.ast-notice {
  padding: 14px 16px;
  background: var(--ast-paper);
  border: 1px solid var(--ast-line);
  border-left: 3px solid var(--ast-line-strong);
  border-radius: 2px;
}

.ast-notice strong {
  display: block;
  font-family: var(--ast-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ast-notice p,
.ast-notice ul {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ast-muted);
}

.ast-notice ul {
  padding-left: 18px;
  list-style: disc;
}

.ast-notice--success {
  background: rgba(216, 244, 108, 0.22);
  border-left-color: var(--ast-lime-deep);
}

.ast-notice--error {
  background: rgba(217, 154, 154, 0.12);
  border-left-color: #d99a9a;
}

/* Forms */
.ast-form {
  margin-top: 4px;
}

.ast-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.ast-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ast-field--full {
  grid-column: 1 / -1;
}

.ast-label {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

.ast-input,
.ast-select,
.ast-textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ast-ink);
  background: var(--ast-paper);
  border: 1px solid var(--ast-line-strong);
  border-radius: 2px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ast-input,
.ast-select {
  height: 40px;
}

.ast-textarea {
  min-height: 132px;
  line-height: 1.7;
  resize: vertical;
}

.ast-input:focus,
.ast-select:focus,
.ast-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ast-ink);
}

.ast-input::placeholder,
.ast-textarea::placeholder {
  color: var(--ast-muted-light);
}

.ast-hint {
  font-size: 11px;
  color: var(--ast-muted-light);
}

.ast-error {
  font-size: 11.5px;
  color: #b45454;
}

.ast-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ast-line);
}

.ast-form__note {
  font-size: 11.5px;
  color: var(--ast-muted-light);
}

.ast-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ast-info--spaced {
  margin-top: 18px;
}

.ast-side__text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ast-muted);
}

.ast-side__list .ast-side__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ast-ink-soft);
  border-bottom: 1px solid var(--ast-line);
}

.ast-side__list .ast-side__item:last-child {
  border-bottom: none;
}

/* Card grid for provider / corporation cards */
.ast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ast-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ast-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Panels */
.ast-card {
  position: relative;
  padding: 22px 24px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
}

.ast-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ast-line);
}

.ast-card__title {
  font-family: var(--ast-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ast-card__meta {
  flex-shrink: 0;
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ast-muted);
}

.ast-card__meta .ast-section-head__link {
  margin-left: 10px;
}

/* Split layout: main + side */
.ast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.ast-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.ast-layout__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Provider detail: 优势 / 不足 / 产品信息 三栏并排且等高（以内容最高者为准） */
.ast-detail__trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: stretch;
}

.ast-detail__trio > .ast-card {
  min-width: 0;
}

/* 正文流：优惠活动 / 详细说明 / 官网入口，占左侧两栏 */
.ast-detail__stream {
  grid-column: 1 / 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* 推荐文章：位于产品信息同一栏的正下方，栏内撑满以便吸顶 */
.ast-detail__trio > .ast-side__block--sticky {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
}

/* 侧栏吸顶（服务商详情推荐文章 / 文章详情热门文章侧栏）：与 scroll-padding-top 使用同一偏移量，避免被吸顶导航遮挡 */
.ast-side__block--sticky,
.ast-side--sticky {
  position: sticky;
  top: calc(var(--ast-header-h) + 24px);
}

/* 内容高于可视区时由 JS 降级为普通静态，不做内部滚动 */
.ast-side__block--sticky.is-flat,
.ast-side--sticky.is-flat {
  position: static;
}

/* List rows */
.ast-row-list {
  display: flex;
  flex-direction: column;
}

.ast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--ast-line);
  transition: background-color 0.18s ease, padding 0.18s ease;
}

.ast-row:last-child {
  border-bottom: none;
}

.ast-row:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--ast-surface);
}

.ast-row__main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ast-row__title {
  font-family: var(--ast-font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ast-ink);
}

.ast-row:hover .ast-row__title {
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ast-row__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ast-muted);
}

.ast-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ast-muted-light);
}

.ast-row__side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  color: var(--ast-muted-light);
}

.ast-row__arrow {
  font-size: 12px;
  color: var(--ast-line-strong);
  transition: color 0.15s ease;
}

.ast-row:hover .ast-row__arrow {
  color: var(--ast-ink);
}

/* Sidebar */
.ast-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ast-side__block {
  padding: 18px 18px 14px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
}

.ast-side__title {
  padding-bottom: 9px;
  margin-bottom: 8px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ast-muted);
  border-bottom: 1px solid var(--ast-line);
}

.ast-side__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ast-side__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--ast-ink-soft);
  border-radius: 2px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ast-side__nav a:hover {
  background: var(--ast-paper);
  color: var(--ast-ink);
}

.ast-side__nav a.is-active {
  font-weight: 600;
  color: var(--ast-ink);
  background: rgba(216, 244, 108, 0.35);
}

.ast-side__count {
  font-family: var(--ast-font-mono);
  font-size: 10.5px;
  color: var(--ast-muted);
}

.ast-side__list {
  display: flex;
  flex-direction: column;
}

.ast-side__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ast-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ast-ink-soft);
}

.ast-side__list li:last-child a {
  border-bottom: none;
}

.ast-side__list a:hover {
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 3px;
}

.ast-side__num {
  flex-shrink: 0;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-muted-light);
}

.ast-side__date {
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-muted-light);
}

.ast-side__logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ast-side__list a.ast-side__service {
  align-items: center;
}

.ast-side__list a > span {
  min-width: 0;
}

.ast-chip-row--spaced {
  margin-top: 16px;
}

/* Meta line */
.ast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

/* Definition style info rows */
.ast-info {
  display: flex;
  flex-direction: column;
}

.ast-info__row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ast-line);
  font-size: 13px;
}

.ast-info__row:last-child {
  border-bottom: none;
}

.ast-info__label {
  padding-top: 2px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

.ast-info__value {
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--ast-ink);
}

.ast-info__value a {
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 3px;
}

/* Feature list */
.ast-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ast-feature {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--ast-paper);
  border-left: 2px solid var(--ast-line-strong);
  border-radius: 2px;
}

.ast-feature--pro {
  background: var(--ast-ok-soft);
  border-left-color: var(--ast-ok-ink);
  color: var(--ast-ok-ink);
}

.ast-feature--pro .ast-feature__icon,
.ast-feature--pro .ast-feature__desc {
  color: var(--ast-ok-ink-soft);
}

.ast-feature--con {
  background: var(--ast-danger-soft);
  border-left-color: var(--ast-danger-ink);
  color: var(--ast-danger-ink);
}

.ast-feature--con .ast-feature__icon,
.ast-feature--con .ast-feature__desc {
  color: var(--ast-danger-ink-soft);
}

.ast-feature__icon {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ast-muted);
}

.ast-feature__desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ast-muted);
}

/* Promotions */
.ast-promo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ast-promo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(216, 244, 108, 0.24);
  border: 1px solid var(--ast-lime-deep);
  border-radius: 3px;
}

.ast-promo__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.ast-promo__desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ast-ink-soft);
}

.ast-promo__desc p {
  margin: 0;
}

.ast-promo__date {
  display: block;
  margin-top: 6px;
  font-family: var(--ast-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ast-muted);
}

.ast-promo__link {
  flex-shrink: 0;
}

/* Article header */
.ast-article-head {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ast-line-strong);
}

.ast-article-head h1 {
  margin: 10px 0 12px;
  font-family: var(--ast-font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.ast-article-head__lede {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ast-muted);
}

/* Source line under article body */
.ast-source {
  padding-top: 14px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ast-muted);
  border-top: 1px solid var(--ast-line);
}

.ast-source a {
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 3px;
}

/* Prev / next pager */
.ast-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ast-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: 3px;
  transition: border-color 0.15s ease;
}

.ast-pager a:hover {
  border-color: var(--ast-ink);
}

.ast-pager__dir {
  font-family: var(--ast-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ast-muted);
}

.ast-pager__title {
  font-family: var(--ast-font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ast-ink);
}

.ast-pager a:only-child {
  grid-column: 1 / -1;
}

/* Share */
.ast-share {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ast-share a,
.ast-share button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--ast-font-mono);
  font-size: 11px;
  color: var(--ast-ink-soft);
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ast-share a:hover,
.ast-share button:hover {
  background: var(--ast-lime);
  border-color: var(--ast-lime-deep);
  color: var(--ast-ink);
}

/* Prose (article body, legal pages) */
.ast-prose {
  max-width: 78ch;
  margin-inline: auto;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ast-ink-soft);
}

/* 服务商详细介绍等整行内容：不限制阅读宽度，占满卡片可用宽度 */
.ast-prose--wide {
  max-width: none;
  margin-inline: 0;
}

.ast-prose > *:first-child {
  margin-top: 0;
}

.ast-prose h2 {
  margin: 34px 0 12px;
  padding-bottom: 8px;
  font-family: var(--ast-font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ast-ink);
  border-bottom: 1px solid var(--ast-line);
}

.ast-prose h3 {
  margin: 26px 0 10px;
  font-family: var(--ast-font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ast-ink);
}

.ast-prose h4 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ast-ink);
}

.ast-prose p,
.ast-prose ul,
.ast-prose ol,
.ast-prose pre,
.ast-prose table,
.ast-prose blockquote {
  margin-bottom: 16px;
}

.ast-prose ul,
.ast-prose ol {
  padding-left: 20px;
}

.ast-prose li {
  margin-bottom: 7px;
}

.ast-prose a {
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ast-prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ast-line);
  border-radius: 3px;
}

.ast-prose code {
  padding: 1px 5px;
  font-family: var(--ast-font-mono);
  font-size: 0.9em;
  background: rgba(16, 21, 29, 0.06);
  border-radius: 2px;
}

.ast-prose pre {
  overflow: auto;
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
  background: var(--ast-ink);
  border-radius: 3px;
}

.ast-prose pre code {
  padding: 0;
  color: #eef1ea;
  background: none;
}

.ast-prose blockquote {
  padding: 2px 0 2px 16px;
  font-style: italic;
  color: var(--ast-muted);
  border-left: 2px solid var(--ast-lime-deep);
}

.ast-prose blockquote p {
  margin-bottom: 6px;
}

.ast-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ast-prose th,
.ast-prose td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--ast-line);
}

.ast-prose th {
  background: var(--ast-paper);
  font-weight: 600;
}

/* Pagination */
.ast-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--ast-line);
}

.ast-pagination__item {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  font-family: var(--ast-font-mono);
  font-size: 11.5px;
  color: var(--ast-ink-soft);
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ast-pagination__item--wide {
  padding: 0 14px;
}

a.ast-pagination__item:hover {
  border-color: var(--ast-ink);
  color: var(--ast-ink);
}

.ast-pagination__item--active {
  background: var(--ast-ink);
  border-color: var(--ast-ink);
  color: var(--ast-lime);
}

.ast-pagination__item--disabled {
  color: var(--ast-muted-light);
  background: transparent;
  border-color: var(--ast-line);
}

/* Empty state */
.ast-empty--panel {
  padding: 40px 24px;
  text-align: center;
  background: var(--ast-surface);
  border: 1px dashed var(--ast-line-strong);
  border-radius: var(--ast-radius);
}

/* Contact document markup mapped onto the new system */
.ast-contact .contact-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ast-contact .contact-cta {
  text-align: center;
}

.ast-contact .contact-info-card {
  padding: 22px;
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ast-contact .contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--ast-line-strong);
  box-shadow: 0 14px 30px rgba(16, 21, 29, 0.07);
}

.ast-contact .contact-info-card__icon {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.ast-contact .contact-info-card__title {
  margin-bottom: 6px;
  font-family: var(--ast-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ast-contact .contact-info-card__desc {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ast-muted);
}

.ast-contact .contact-info-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ast-ink);
  text-decoration: underline;
  text-decoration-color: var(--ast-lime-deep);
  text-underline-offset: 4px;
}

.ast-contact .contact-qr-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--ast-line);
  border-radius: 3px;
}

.ast-contact .section {
  padding: 32px 0 0;
}

.ast-contact .section--alt {
  padding-top: 36px;
  background: none;
}

.ast-contact .section__header {
  margin-bottom: 18px;
  text-align: center;
}

.ast-contact .section__title {
  font-family: var(--ast-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ast-contact .section__accent {
  color: var(--ast-lime-deep);
}

.ast-contact .section__desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ast-muted);
}

.ast-contact .btn--primary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ast-lime);
  background: var(--ast-ink);
  border-radius: 2px;
}

.ast-contact .btn--primary:hover {
  color: var(--ast-ink);
  background: var(--ast-lime);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes ast-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ast-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.ast-hero__copy > * {
  animation: ast-rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.ast-hero__copy > *:nth-child(2) { animation-delay: 0.05s; }
.ast-hero__copy > *:nth-child(3) { animation-delay: 0.1s; }
.ast-hero__copy > *:nth-child(4) { animation-delay: 0.14s; }
.ast-hero__copy > *:nth-child(5) { animation-delay: 0.18s; }
.ast-hero__copy > *:nth-child(6) { animation-delay: 0.22s; }

.ast-index__list li {
  animation: ast-rise 0.4s ease both;
}

.ast-index__list li:nth-child(1) { animation-delay: 0.04s; }
.ast-index__list li:nth-child(2) { animation-delay: 0.07s; }
.ast-index__list li:nth-child(3) { animation-delay: 0.1s; }
.ast-index__list li:nth-child(4) { animation-delay: 0.13s; }
.ast-index__list li:nth-child(5) { animation-delay: 0.16s; }
.ast-index__list li:nth-child(6) { animation-delay: 0.19s; }
.ast-index__list li:nth-child(7) { animation-delay: 0.22s; }
.ast-index__list li:nth-child(8) { animation-delay: 0.25s; }
.ast-index__list li:nth-child(9) { animation-delay: 0.28s; }
.ast-index__list li:nth-child(10) { animation-delay: 0.31s; }
.ast-index__list li:nth-child(11) { animation-delay: 0.34s; }
.ast-index__list li:nth-child(12) { animation-delay: 0.37s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1440px) {
  .ast-cat__grid,
  .ast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .ast-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .ast-hero {
    padding: 40px 32px 0;
  }

  .ast-hero__top {
    gap: 32px;
  }

  .ast-reading__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .ast-page-head {
    padding: 30px 28px 28px;
  }

  .ast-layout {
    grid-template-columns: minmax(0, 1fr) 296px;
  }
}

@media (max-width: 1180px) {
  .ast-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px;
  }

  .ast-rail {
    display: none;
  }

  .ast-workspace {
    padding-top: 20px;
  }

  .ast-header__inner {
    padding: 0 20px;
  }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .ast-submit-cta {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .ast-submit-cta span {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ast-nav {
    display: none;
  }

  .ast-submit-cta {
    display: none;
  }

  .ast-menu {
    display: flex;
  }

  .ast-hero__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ast-hero__copy {
    padding-bottom: 32px;
  }

  .ast-index {
    margin-bottom: 32px;
  }

  .ast-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ast-panels .ast-panel:last-child {
    grid-column: 1 / -1;
  }

  .ast-reading__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-detail__trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-side__block--sticky,
  .ast-side--sticky {
    position: static;
  }

  .ast-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 服务商详情窄屏：三栏依次堆叠，卡片恢复各自内容高度 */
  .ast-page--provider-detail .ast-detail__trio {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ast-page--provider-detail .ast-detail__stream,
  .ast-page--provider-detail .ast-detail__trio > .ast-side__block--sticky {
    grid-column: auto;
    grid-row: auto;
  }

  .ast-contact .contact-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ast-cat__grid,
  .ast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ast-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ast-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
  }

  .ast-stats__note {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .ast-page-head__top {
    flex-direction: column-reverse;
    gap: 18px;
  }

  .ast-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-info__row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .ast-header__inner {
    gap: 12px;
  }

  .ast-brand__text small {
    display: none;
  }

  .ast-header .site-search__trigger span:last-child {
    display: none;
  }

  .ast-lang {
    display: none;
  }

  .ast-hero {
    padding: 32px 20px 0;
  }

  .ast-hero__title {
    font-size: 32px;
  }

  .ast-search {
    padding-left: 12px;
  }

  .ast-search button {
    padding: 0 14px;
  }

  .ast-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-panels .ast-panel:last-child {
    grid-column: auto;
  }

  .ast-index__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-index__list li:nth-last-child(2) a {
    border-bottom: 1px solid rgba(238, 241, 234, 0.07);
  }

  .ast-cat__grid,
  .ast-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-tl {
    padding-left: 22px;
  }

  .ast-tl__date::before {
    left: -21px;
  }

  .ast-section-head__meta span {
    font-size: 22px;
  }

  .ast-page-head {
    padding: 24px 20px;
  }

  .ast-card {
    padding: 18px;
  }

  .ast-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ast-row__side {
    display: none;
  }

  .ast-info__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .ast-info__value {
    text-align: left;
  }

  .ast-contact .contact-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ast-form__actions .ast-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ast-hero__copy > *,
  .ast-index__list li,
  .ast-nav__item.is-open .ast-nav__panel {
    animation: none;
  }

  :is(.ast-cat__grid, .ast-grid) .service-card,
  :is(.ast-cat__grid, .ast-grid) .service-card::before,
  .ast-entry {
    transition: none;
  }
}
