
:root {
  --bg: #f6f7f4;
  --paper: #ffffff;
  --ink: #17211c;
  --muted: #607069;
  --line: #dbe3dd;
  --green: #16815a;
  --green-soft: #e4f5ed;
  --blue: #245fd6;
  --blue-soft: #e8efff;
  --amber: #a86400;
  --amber-soft: #fff0cf;
  --red: #b42318;
  --red-soft: #ffe7e3;
  --shadow: 0 16px 40px rgba(22, 33, 28, .08);
}
@keyframes pageDrift {
  0% { background-position: 0% 0%, 100% 0%, 0 0; }
  50% { background-position: 18% 8%, 82% 12%, 0 0; }
  100% { background-position: 0% 0%, 100% 0%, 0 0; }
}
@keyframes buttonShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  20% { transform: translate3d(-1px, 0, 0) rotate(-.7deg); }
  40% { transform: translate3d(1px, 0, 0) rotate(.7deg); }
  60% { transform: translate3d(-1px, 0, 0) rotate(-.45deg); }
  80% { transform: translate3d(1px, 0, 0) rotate(.45deg); }
}
@keyframes softGlow {
  0%, 100% { box-shadow: 0 10px 28px rgba(22,33,28,.05); }
  50% { box-shadow: 0 16px 36px rgba(22,33,28,.1); }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(22,129,90,.12), transparent 32%),
    linear-gradient(240deg, rgba(36,95,214,.10), transparent 34%),
    var(--bg);
  background-size: 180% 180%, 180% 180%, auto;
  animation: pageDrift 18s ease-in-out infinite;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(20px, calc((100vw - 1320px) / 2));
  background: rgba(246, 247, 244, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219,227,221,.84);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark, .logo-xl {
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 120deg, #16815a, #245fd6, #d97706, #16815a);
  color: white;
  font-weight: 900;
}
.brand-mark { width: 40px; height: 40px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top-actions a, .primary, .secondary, .card-actions a, .source-link, .source-links a, .doc-toc a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  transform-origin: center;
}
.button-like {
  cursor: pointer;
  font-family: inherit;
}
.button-like.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.top-actions a, .secondary, .card-actions a:nth-child(2), .source-link {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0 13px;
}
main { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.hero, .detail-hero {
  padding: 38px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 24px;
  align-items: stretch;
}
.hero.slim { grid-template-columns: 1fr; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f5132;
  background: var(--green-soft);
  border: 1px solid #c7ead8;
  font-size: 13px;
  font-weight: 800;
}
h1 { margin: 0; font-size: clamp(34px, 4.5vw, 64px); line-height: .98; max-width: 920px; }
.hero-text { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 820px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.primary { background: var(--ink); color: #fff; padding: 0 16px; }
.secondary { padding: 0 16px; }
.top-actions a:hover, .primary:hover, .secondary:hover, .card-actions a:hover, .source-link:hover, .source-links a:hover, .doc-toc a:hover, .chip:hover {
  animation: buttonShake .36s ease-in-out both;
  box-shadow: 0 10px 22px rgba(22,33,28,.12);
}
.primary:hover, .card-actions a:first-child:hover { background: #0f1713; }
.secondary:hover, .top-actions a:hover, .source-link:hover, .source-links a:hover, .doc-toc a:hover { border-color: #b8c6be; background: #f9fbfa; }
.account-menu {
  position: relative;
  flex: 0 0 auto;
}
.account-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px 4px 5px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22,33,28,.05);
}
.account-trigger:hover { animation: buttonShake .36s ease-in-out both; }
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #16815a, #245fd6);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.account-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 46px rgba(22,33,28,.14);
  padding: 14px;
}
.account-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.account-summary .large { grid-row: span 2; }
.account-summary strong, .account-summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-summary small { color: var(--muted); font-size: 12px; font-weight: 800; }
.account-actions {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}
.account-actions button, .account-actions a {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.account-actions button:hover, .account-actions a:hover { background: #f9fbfa; }
.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}
.hero-panel a {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hero-panel a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(22,33,28,.09); }
.hero-panel strong { font-size: 25px; line-height: 1.1; }
.hero-panel span { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.section { padding: 22px 0; }
.hot-section {
  border-top: 1px solid rgba(219,227,221,.78);
  border-bottom: 1px solid rgba(219,227,221,.78);
  padding: 24px 0;
}
.hot-grid .tool-card {
  border-color: #c7ead8;
  background: linear-gradient(180deg, rgba(228,245,237,.78), rgba(255,255,255,.94));
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.section-head h2 { margin: 0; font-size: 25px; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-tile, .tool-card, .info-box, .detail-main, .screenshot-card, .strategy-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(22,33,28,.05);
}
.category-tile, .tool-card, .transit-card, .guide-grid article, .visual-card, .mini-transit-card, .info-box {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-tile:hover, .tool-card:hover, .transit-card:hover, .guide-grid article:hover, .visual-card:hover, .mini-transit-card:hover {
  transform: translateY(-4px);
  border-color: #c5d3cb;
  box-shadow: 0 18px 34px rgba(22,33,28,.1);
}
.category-tile { padding: 15px; min-height: 150px; }
.category-tile strong { display: block; font-size: 17px; }
.category-tile span { display: block; margin-top: 6px; color: var(--green); font-weight: 800; font-size: 13px; }
.category-tile p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 150px;
  gap: 10px;
  margin-bottom: 12px;
}
input, select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
}
.chip-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}
.chip span { color: var(--muted); margin-left: 3px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active span { color: rgba(255,255,255,.72); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tools-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card {
  min-height: 278px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.card-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.logo-wrap {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7faf8;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-wrap img, .logo-xl img { width: 28px; height: 28px; object-fit: contain; }
.card-title { min-width: 0; }
.card-title strong, .card-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.tool-card p { margin: 0; color: #38443f; line-height: 1.6; font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span {
  border: 1px solid #d7dfda;
  background: #eef1ef;
  color: #4d5c55;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}
.tag-row.large span { font-size: 12px; padding: 6px 9px; }
.mini-facts, .detail-side dl { display: grid; gap: 7px; margin: auto 0 0; }
.mini-facts div, .detail-side dl div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
dt { color: var(--muted); font-weight: 900; font-size: 12px; }
dd { margin: 0; color: #32413a; font-size: 12px; line-height: 1.45; }
.status {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}
.status.ok { background: var(--green-soft); color: #0f5132; }
.status.warn { background: var(--amber-soft); color: #744700; }
.status.mix { background: var(--blue-soft); color: #174ea6; }
.card-actions { display: grid; grid-template-columns: 1fr 82px; gap: 8px; margin-top: 2px; }
.card-actions a:first-child { background: var(--ink); color: #fff; }
.card-actions.transit-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { display: none; padding: 44px; text-align: center; color: var(--muted); border: 1px dashed #bac7c0; border-radius: 8px; background: rgba(255,255,255,.6); }
.back-link { color: var(--muted); font-weight: 800; display: inline-block; margin-bottom: 16px; }
.detail-title { display: flex; gap: 14px; align-items: center; }
.logo-xl {
  width: 68px;
  height: 68px;
  background: #fff;
  border: 1px solid var(--line);
}
.logo-xl img { width: 42px; height: 42px; }
.screenshot-card { margin: 0; padding: 12px; overflow: hidden; align-self: stretch; }
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef1ef;
  transition: transform .35s ease, filter .35s ease;
}
.screenshot-card:hover img { transform: scale(1.018); }
.screenshot-card figcaption { color: var(--muted); font-size: 12px; margin-top: 9px; }
.visual-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 12px;
  margin: 16px 0 26px;
  align-items: stretch;
}
.visual-shot, .visual-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.visual-shot {
  grid-row: span 2;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.visual-shot img {
  width: 100%;
  min-height: 330px;
  flex: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  transition: transform .4s ease, filter .4s ease;
}
.visual-shot:hover img { transform: scale(1.02); filter: saturate(1.04); }
.visual-shot figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 8px;
}
.visual-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visual-card h3 { margin: 0; font-size: 18px; }
.visual-card ul, .visual-card ol { margin: 0; padding-left: 18px; color: #34423c; line-height: 1.7; }
.visual-card li + li { margin-top: 6px; }
.visual-card li strong { margin-right: 7px; }
.visual-card li span { color: var(--muted); }
.visual-card a { color: var(--blue); font-weight: 900; }
.visual-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7faf8;
}
.visual-icon img { width: 34px; height: 34px; object-fit: contain; }
.visual-route {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}
.visual-route b {
  flex: 1;
  height: 2px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 999px;
}
.mini-transit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mini-transit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  gap: 7px;
}
.mini-transit-card span {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7faf8;
}
.mini-transit-card img { width: 26px; height: 26px; object-fit: contain; }
.mini-transit-card strong { color: #18372b; }
.mini-transit-card small { color: var(--muted); line-height: 1.45; }
.mini-transit-card em { width: fit-content; font-style: normal; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  padding: 14px 0 24px;
}
.detail-main, .detail-side, .doc-hero > *, .doc-article { min-width: 0; }
.detail-main { padding: 24px; }
.detail-main h2 { margin: 24px 0 10px; font-size: 22px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { color: #34423c; line-height: 1.75; }
.article-lead {
  font-size: 16px;
  color: #27352f !important;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0; list-style: none; }
.feature-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  color: #34423c;
  font-weight: 700;
}
.feature-list strong, .feature-list span,
.scenario-list strong, .scenario-list span {
  display: block;
}
.feature-list strong, .scenario-list strong {
  color: #18372b;
  margin-bottom: 7px;
}
.feature-list span, .scenario-list span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}
.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.scenario-list li {
  position: relative;
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(228,245,237,.72), #fff);
  padding: 12px 12px 12px 34px;
  color: #2f4038;
  line-height: 1.6;
  font-weight: 700;
}
.scenario-list li:before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.article-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.article-facts div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 13px;
}
.article-facts strong, .article-facts span { display: block; }
.article-facts strong { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.article-facts span { color: #27352f; line-height: 1.55; font-weight: 700; }
.risk-box {
  border: 1px solid #ffc7c0;
  background: var(--red-soft);
  color: #8a1f14 !important;
  border-radius: 8px;
  padding: 12px;
}
.tutorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.advantage-list li {
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(228,245,237,.74), #fff);
  padding: 13px;
}
.advantage-list strong, .advantage-list span { display: block; }
.advantage-list strong { color: #18372b; margin-bottom: 7px; }
.advantage-list span { color: var(--muted); line-height: 1.65; }
.tutorial-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  counter-increment: step;
}
.tutorial-list li:before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 8px;
}
.tutorial-list strong, .tutorial-list span { display: block; }
.tutorial-list span { color: var(--muted); line-height: 1.65; margin-top: 6px; }
.check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.check-list li {
  border-left: 4px solid var(--green);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #34423c;
  line-height: 1.6;
}
.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  color: #34423c;
  line-height: 1.5;
}
.compare-table th {
  color: var(--muted);
  font-size: 12px;
  background: #f7faf8;
}
.compare-table tr.current td {
  background: var(--green-soft);
  font-weight: 800;
}
.compare-table a { color: var(--blue); font-weight: 800; }
.faq-list {
  display: grid;
  gap: 9px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  color: #27352f;
}
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}
.comment-panel {
  margin-top: 24px;
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(228,245,237,.62), #fff);
  padding: 16px;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.comment-head h2 { margin: 0 0 6px !important; }
.comment-head p { margin: 0; color: var(--muted); font-size: 13px; }
.comment-head span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
}
.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: stretch;
}
.comment-form textarea {
  min-height: 74px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
}
.comment-form button { border: 0; cursor: pointer; font-family: inherit; }
.login-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  border: 1px solid #c7ead8;
  border-radius: 8px;
  background: rgba(228,245,237,.72);
  padding: 13px;
}
.login-gate strong, .login-gate span { display: block; }
.login-gate span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-gate button { grid-row: span 2; border: 0; cursor: pointer; font-family: inherit; }
.comment-list { display: grid; gap: 10px; margin-top: 14px; }
.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.comment-item p { margin: 0; color: #34423c; line-height: 1.7; white-space: pre-wrap; }
.comment-delete {
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.comment-empty {
  margin: 0;
  border: 1px dashed #bac7c0;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
}
.detail-side { position: sticky; top: 88px; display: grid; gap: 12px; }
.info-box { padding: 16px; }
.info-box h3 { margin: 0 0 12px; }
.source-link { margin-top: 10px; }
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 40px;
}
.strategy-grid article { padding: 18px; }
.strategy-grid p { color: var(--muted); line-height: 1.7; }
.transit-hero {
  padding: 38px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 24px;
  align-items: stretch;
}
.relay-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(22,129,90,.12), rgba(36,95,214,.08)),
    #fff;
  box-shadow: var(--shadow);
}
.relay-stage:before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(96,112,105,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,112,105,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 78%);
}
.relay-node {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(22,33,28,.18);
}
.relay-node.user { left: 36px; top: 132px; background: #16815a; }
.relay-node.gateway { left: calc(50% - 43px); top: 54px; background: #17211c; animation: floatNode 3.6s ease-in-out infinite; }
.relay-node.model { right: 36px; bottom: 62px; background: #245fd6; }
.beam {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22,129,90,.92), transparent);
  transform-origin: left center;
  animation: beamPulse 2.4s linear infinite;
}
.beam-a { left: 108px; top: 160px; width: 210px; transform: rotate(-23deg); }
.beam-b { left: 50%; top: 138px; width: 240px; transform: rotate(38deg); animation-delay: .8s; }
.pulse-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d97706;
  z-index: 3;
  box-shadow: 0 0 0 8px rgba(217,119,6,.13);
}
.pulse-dot.d1 { left: 34%; top: 34%; animation: dotA 2.4s linear infinite; }
.pulse-dot.d2 { right: 30%; bottom: 28%; animation: dotB 2.8s linear infinite; }
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
@keyframes beamPulse {
  0% { opacity: .25; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.6); }
  100% { opacity: .25; filter: saturate(1); }
}
@keyframes dotA {
  0% { transform: translate(-70px, 42px) scale(.75); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(100px, -44px) scale(1.1); opacity: 0; }
}
@keyframes dotB {
  0% { transform: translate(-100px, -76px) scale(.75); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(72px, 54px) scale(1.1); opacity: 0; }
}
.risk-notice {
  border: 1px solid #f2d29c;
  background: #fff8eb;
  color: #6f4600;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}
.risk-notice p { margin: 0; line-height: 1.7; }
.transit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.transit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(22,33,28,.05);
  padding: 15px;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.transit-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.transit-card-head strong, .transit-card-head small { display: block; }
.transit-card-head strong { font-size: 17px; }
.transit-card-head small { color: var(--muted); margin-top: 4px; }
.risk {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
.risk.low { color: #0f5132; background: var(--green-soft); }
.risk.medium { color: #744700; background: var(--amber-soft); }
.risk.high { color: #8a1f14; background: var(--red-soft); }
.transit-card p { margin: 0; color: #34423c; line-height: 1.62; font-size: 13px; }
.transit-card dl { display: grid; gap: 8px; margin: 0; }
.transit-card dl div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
.model-links { display: flex; gap: 6px; flex-wrap: wrap; }
.model-links a {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 3px 7px;
  color: #245fd6;
  font-weight: 800;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guide-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(22,33,28,.05);
}
.guide-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.guide-grid h3 { margin: 8px 0; }
.guide-grid p { color: var(--muted); line-height: 1.7; }
pre {
  max-width: 100%;
  overflow: auto;
  border-radius: 8px;
  background: #17211c;
  color: #e9f3ee;
  padding: 12px;
  font-size: 12px;
}
.doc-cta {
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(228,245,237,.92), rgba(255,255,255,.92));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 22px;
}
.doc-cta h2 { margin: 0 0 6px; }
.doc-cta p { margin: 0; color: var(--muted); line-height: 1.65; }
.doc-hero {
  padding: 38px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 4px;
}
.doc-toc a {
  border-radius: 8px;
  padding: 10px;
  color: #34423c;
  font-weight: 800;
}
.doc-toc a:hover { background: #edf3ef; }
.doc-article {
  max-width: 980px;
  margin: 0 auto 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  padding: 28px;
}
.doc-article section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.doc-article section:last-child { border-bottom: 0; }
.doc-article h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.doc-article p {
  color: #34423c;
  line-height: 1.78;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.flow-steps div {
  position: relative;
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(228,245,237,.8), #fff);
  padding: 14px;
  min-height: 118px;
}
.flow-steps div:not(:last-child):after {
  content: ">";
  position: absolute;
  right: -19px;
  top: 42px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  z-index: 2;
}
.flow-steps strong, .flow-steps span { display: block; }
.flow-steps span { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.source-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 22px 0 44px;
}
.source-panel p { color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-links a, .source-links span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}
.source-links a {
  color: #245fd6;
}
.source-links span { color: var(--muted); }
.ccs-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  gap: 14px;
  align-items: stretch;
}
.ccs-form, .ccs-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 16px;
}
.ccs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ccs-form label { display: grid; gap: 7px; min-width: 0; }
.ccs-form label span { color: var(--muted); font-size: 12px; font-weight: 900; }
.ccs-form .check-inline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ccs-form .check-inline input { width: 18px; height: 18px; }
.ccs-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ccs-preview h3 { margin: 0; }
.ccs-preview p { margin: 0; color: var(--muted); line-height: 1.65; }
.ccs-preview pre { flex: 1; min-height: 170px; }
.ccs-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--green) !important;
  font-weight: 900;
}
.product-hero { padding-bottom: 10px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 0 22px;
}
.product-card, .feedback-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(22,33,28,.05);
}
.product-card {
  min-height: 190px;
  padding: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #c5d3cb;
  box-shadow: 0 18px 34px rgba(22,33,28,.1);
}
.product-card span {
  display: inline-flex;
  min-width: 36px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
}
.product-card h2 { margin: 20px 0 8px; font-size: 20px; }
.product-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .38fr);
  gap: 14px;
  align-items: start;
  padding: 8px 0 48px;
}
.feedback-panel {
  padding: 18px;
}
.feedback-panel h2, .feedback-panel h3 { margin-top: 0; }
.feedback-panel p { color: var(--muted); line-height: 1.7; }
.feedback-layout > #account,
.feedback-layout > #bug-report,
.feedback-layout > #submit-tool { grid-column: 1; }
.backend-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: 88px;
}
.section-head.compact { margin-bottom: 12px; align-items: flex-start; }
.status-banner, .auth-user, .local-records {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  padding: 12px;
}
.status-banner {
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}
.status-banner.error { color: var(--red); background: #fff7f5; }
.auth-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.auth-user strong, .auth-user span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.auth-user span { color: var(--muted); font-size: 13px; font-weight: 800; }
.auth-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.auth-stack .product-form {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.product-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.product-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.product-form .full { grid-column: 1 / -1; }
.product-form textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
}
.product-form button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.product-form button.secondary { border: 1px solid var(--line); }
.feedback-message {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}
.feedback-message.success {
  border: 1px solid #c7ead8;
  background: var(--green-soft);
  color: var(--green);
}
.feedback-message.error {
  border: 1px solid #f0c2ba;
  background: #fff7f5;
  color: var(--red);
}
.backend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.backend-badges span {
  border: 1px solid #c7ead8;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}
.local-records {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.local-records strong { color: var(--ink); }
.admin-console {
  margin-bottom: 48px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}
.admin-table th {
  background: #f7faf8;
  color: var(--muted);
  font-size: 12px;
}
.admin-table td {
  color: #34423c;
}
.admin-table strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.admin-table small {
  color: var(--muted);
}
.admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.admin-actions button:hover {
  animation: buttonShake .36s ease-in-out both;
  background: #f9fbfa;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,16,13,.48);
  backdrop-filter: blur(8px);
}
.auth-card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(9,16,13,.24);
  padding: 18px;
}
.auth-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.auth-card-head strong, .auth-card-head span { display: block; }
.auth-card-head strong { font-size: 20px; }
.auth-card-head span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-card-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.auth-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.auth-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.auth-form {
  display: none;
  gap: 12px;
}
.auth-form.active { display: grid; }
.auth-form label {
  display: grid;
  gap: 7px;
}
.auth-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.auth-form button { border: 0; cursor: pointer; font-family: inherit; }
.auth-form button.secondary { border: 1px solid var(--line); }
.auth-form p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.auth-form p.success { color: var(--green); font-weight: 900; }
.auth-form p.error { color: var(--red); font-weight: 900; }
.code-line div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}
@media (max-width: 1120px) {
  .tools-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .detail-hero { grid-template-columns: 1fr; }
  .transit-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transit-hero { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .account-menu { width: 100%; }
  .account-trigger { width: 100%; justify-content: flex-start; }
  .account-popover { left: 0; right: auto; width: min(100%, 320px); }
  main { width: min(100% - 22px, 720px); }
  h1 { font-size: 36px; }
  .tools-grid, .tools-grid.compact, .category-grid, .strategy-grid, .product-grid, .feedback-layout, .auth-stack, .product-form { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .ccs-builder, .ccs-form { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .feature-list, .tutorial-list, .scenario-list, .article-facts, .advantage-list { grid-template-columns: 1fr; }
  .visual-guide, .mini-transit-grid, .comment-form { grid-template-columns: 1fr; }
  .login-gate, .code-line div { grid-template-columns: 1fr; }
  .login-gate button { grid-row: auto; }
  .visual-shot { grid-row: auto; }
  .visual-shot img { min-height: 220px; }
  .comment-head { flex-direction: column; }
  .hero-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transit-grid, .guide-grid { grid-template-columns: 1fr; }
  .relay-stage { min-height: 300px; }
  .doc-hero { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-cta { flex-direction: column; align-items: flex-start; }
  .flow-steps { grid-template-columns: 1fr; }
  .feedback-layout > #account, .feedback-layout > #bug-report, .feedback-layout > #submit-tool, .backend-panel { grid-column: auto; }
  .backend-panel { grid-row: auto; position: static; }
  .auth-user { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
