
    :root {
      color-scheme: light;
      /* 纸面与墨色 */
      --paper: #f6f3eb;
      --paper-warm: #fbf9f3;
      --surface: #fffefb;
      --surface-2: #f2eee5;
      --surface-muted: #ebe6d9;
      --ink: #1b241f;
      --ink-soft: #3a433b;
      --forest: #22322a;
      --forest-light: #2e4337;
      /* 强调色：钴蓝 + 柑橘 */
      --green: #5b7850;
      --green-soft: #e9efe0;
      --blue: #2f55c6;
      --blue-deep: #23419d;
      --blue-soft: #e7ecfa;
      --lime: #d9ef6e;
      --muted: #6d7268;
      --muted-soft: #8d9187;
      /* 线与形 */
      --line: #e3ddd0;
      --line-strong: #cfc7b4;
      --r-xs: 4px;
      --r-sm: 7px;
      --r-md: 11px;
      --r-lg: 16px;
      --sh-1: 0 1px 2px rgb(27 36 31 / 5%), 0 3px 8px -3px rgb(27 36 31 / 6%);
      --sh-2: 0 2px 4px rgb(27 36 31 / 5%), 0 16px 32px -12px rgb(27 36 31 / 18%);
      --sh-3: 0 26px 60px -18px rgb(27 36 31 / 28%);
      /* Noto Serif SC 承担中文衬线（本机与主流 Win/mac 均已安装或可回落） */
      --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
      --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
      --ease: cubic-bezier(.22,.68,.24,1);
      --topbar-h: 68px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font: 15px/1.65 var(--sans);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    /* 极淡纸面网点，给浅底一点材质感（纯 CSS，无外部资源） */
    body::before {
      position: fixed;
      z-index: 0;
      inset: 0;
      background-image: radial-gradient(circle at 1px 1px, rgb(27 36 31 / 9%) 1px, transparent 0);
      background-size: 26px 26px;
      content: "";
      opacity: .34;
      pointer-events: none;
    }
    ::selection { background: var(--lime); color: var(--ink); }
    button, input { font: inherit; }
    button { color: inherit; }
    .shell {
      position: relative;
      z-index: 1;
      width: min(100%, 1520px);
      min-height: 100vh;
      margin-inline: auto;
      padding-inline: clamp(20px, 5vw, 72px);
    }

    /* Masthead */
    .topbar {
      position: sticky;
      z-index: 20;
      top: 0;
      display: flex;
      min-height: var(--topbar-h);
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      border-bottom: 1px solid var(--line);
      background: var(--paper);
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      flex: none;
      color: var(--ink);
      font-size: 13px;
      font-weight: 780;
      letter-spacing: .07em;
      white-space: nowrap;
    }
    .brand-mark {
      position: relative;
      display: grid;
      width: 34px;
      height: 34px;
      flex: none;
      place-items: center;
      border-radius: 11px;
      background: linear-gradient(152deg, #3d68e0, var(--blue-deep));
      box-shadow: 0 5px 14px -5px rgb(47 85 198 / 62%), inset 0 1px 0 rgb(255 255 255 / 26%);
    }
    .brand-mark::before {
      position: absolute;
      width: 12px;
      height: 12px;
      border: 1.5px solid var(--lime);
      border-radius: 50%;
      content: "";
    }
    .brand-mark::after {
      position: absolute;
      width: 2px;
      height: 24px;
      border-radius: 2px;
      background: var(--lime);
      content: "";
      transform: rotate(38deg);
    }
    .brand small {
      margin-left: 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 550;
      letter-spacing: .08em;
    }
    .top-right {
      display: flex;
      min-width: 0;
      align-items: center;
      justify-content: flex-end;
      gap: clamp(12px, 2vw, 22px);
      color: var(--muted);
      font-size: 12px;
    }
    .top-meta { white-space: nowrap; }
    .local-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border: 1px solid #d5ddc6;
      border-radius: 99px;
      background: #eef2e6;
      color: #40533b;
      font-size: 11px;
      white-space: nowrap;
    }
    .local-pill i {
      width: 7px;
      height: 7px;
      flex: none;
      border-radius: 50%;
      background: #72923f;
      box-shadow: 0 0 0 0 rgb(114 146 63 / 55%);
      animation: live-pulse 2.8s var(--ease) infinite;
    }
    @keyframes live-pulse {
      70% { box-shadow: 0 0 0 7px rgb(114 146 63 / 0%); }
      100% { box-shadow: 0 0 0 0 rgb(114 146 63 / 0%); }
    }
    .lang-picker { position: relative; display: inline-flex; flex: none; }
    .lang-button {
      position: relative;
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      gap: 8px;
      padding: 7px 32px 7px 12px;
      border: 1px solid var(--line-strong);
      border-radius: var(--r-sm);
      background: var(--surface);
      color: var(--ink);
      font-size: 12px;
      line-height: 1.25;
      cursor: pointer;
      transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
    }
    .lang-button:hover { border-color: var(--blue); background: #fff; box-shadow: var(--sh-1); }
    .lang-button[aria-expanded="true"] { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgb(47 85 198 / 12%); }
    .lang-button-inner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
    .lang-caret {
      position: absolute;
      top: 50%;
      right: 13px;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      transform: translateY(-70%) rotate(45deg);
      transition: transform .2s var(--ease);
      pointer-events: none;
    }
    .lang-button[aria-expanded="true"] .lang-caret { transform: translateY(-30%) rotate(-135deg); }
    .lang-menu {
      position: absolute;
      z-index: 20;
      top: calc(100% + 8px);
      right: 0;
      min-width: 196px;
      max-height: 324px;
      overflow-y: auto;
      margin: 0;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: var(--r-md);
      background: var(--surface);
      box-shadow: var(--sh-3);
      list-style: none;
      animation: menu-in .18s var(--ease);
    }
    @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
    .lang-menu[hidden] { display: none; }
    .lang-option {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      border-radius: var(--r-xs);
      color: var(--ink);
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
      transition: background .14s var(--ease), color .14s var(--ease);
    }
    .lang-option:hover, .lang-option.active { background: var(--surface-2); }
    .lang-option[aria-selected="true"] { color: var(--blue); font-weight: 700; }
    .lang-option .lang-check { margin-left: auto; color: var(--blue); visibility: hidden; }
    .lang-option[aria-selected="true"] .lang-check { visibility: visible; }
    .flag {
      display: inline-block;
      width: 18px;
      height: 13.5px;
      flex: none;
      border-radius: 2px;
      box-shadow: 0 0 0 1px rgb(60 55 40 / 18%);
      vertical-align: -2px;
    }
    .lang-select { position: relative; display: inline-flex; align-items: center; }
    .lang-select select {
      appearance: none;
      border: 1px solid var(--line-strong);
      border-radius: var(--r-sm);
      background-color: var(--surface);
      background-repeat: no-repeat;
      background-position: 11px center;
      background-size: 18px 12px;
      color: var(--ink);
      min-height: 40px;
      padding: 7px 30px 7px 35px;
      font-size: 12px;
      line-height: 1.25;
      cursor: pointer;
    }
    .lang-select option { padding-left: 4px; }
    .lang-select::after {
      position: absolute;
      top: 50%;
      right: 12px;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      content: "";
      transform: translateY(-70%) rotate(45deg);
      pointer-events: none;
    }
    .lang-menu::-webkit-scrollbar, .category-list::-webkit-scrollbar { width: 8px; height: 8px; }
    .lang-menu::-webkit-scrollbar-thumb, .category-list::-webkit-scrollbar-thumb { border-radius: 99px; background: rgb(27 36 31 / 18%); }
    .lang-menu::-webkit-scrollbar-track, .category-list::-webkit-scrollbar-track { background: transparent; }

    /* Editorial introduction */
    .hero {
      margin-top: 0;
      padding: clamp(40px, 4.4vw, 60px) clamp(26px, 5.4vw, 76px) 44px;
      border-bottom: 1px solid var(--line);
    }
    .eyebrow {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .14em;
      line-height: 1.5;
      text-transform: uppercase;
    }
    .eyebrow-line {
      width: 7px;
      height: 7px;
      flex: none;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 0 3px rgb(47 85 198 / 14%);
    }
    .eyebrow [data-i18n] { min-width: 0; overflow-wrap: anywhere; }
    h1 {
      max-width: 1120px;
      margin: 18px 0 16px;
      font-family: var(--serif);
      font-size: clamp(32px, 8.4vw, 42px);
      font-weight: 400;
      line-height: 1.22;
      letter-spacing: -.02em;
      text-wrap: balance;
    }
    /* 中文标题三段各自成块，换行只发生在段与段之间，
       避免中文无词边界时被浏览器在词中间断开（如「一款 / 游戏」）。
       仅限 zh：拉丁/西里尔词长差异大，nowrap 会导致整页横向溢出。
       窄屏一律恢复自然换行，否则长段会出界。 */
    @media (min-width: 901px) {
      html[lang="zh-cn"] h1 span,
      html[lang="zh-cn"] h1 em { white-space: nowrap; }
    }
    /* 关键短语只加一道柑橘色细下划线，不做整块高亮 */
    h1 em {
      color: var(--blue);
      font-style: normal;
      text-decoration: underline;
      text-decoration-color: rgb(217 239 110 / 95%);
      text-decoration-thickness: .09em;
      text-underline-offset: .13em;
    }
    .hero-copy {
      max-width: 760px;
      margin: 0;
      color: var(--muted);
      font-size: 15.5px;
      line-height: 1.85;
    }
    .hero-note {
      max-width: 880px;
      margin: 26px 0 0;
      padding: 16px 0 0;
      border: 0;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.8;
    }
    .hero-note strong {
      display: block;
      margin: 0 0 6px;
      color: var(--blue);
      font-family: var(--serif);
      font-size: 18px;
      font-weight: 400;
      line-height: 1.45;
    }
    .hero-note p { margin: 0; }

    /* Browsing controls and content */
    .workspace {
      display: grid;
      grid-template-columns: 218px minmax(0, 1fr);
      align-items: start;
      gap: clamp(32px, 4vw, 58px);
      padding: 44px 0 88px;
    }
    .sidebar { position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; min-width: 0; }
    .side-head {
      margin: 0 0 12px;
      color: var(--muted-soft);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .14em;
      line-height: 1.5;
      text-transform: uppercase;
    }
    .category-list { display: grid; gap: 2px; }
    .category-button {
      display: flex;
      min-height: 42px;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 12px;
      border: 1px solid transparent;
      border-radius: var(--r-sm);
      background: transparent;
      color: var(--ink-soft);
      font-size: 13px;
      text-align: left;
      cursor: pointer;
      transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
    }
    .category-button:hover { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
    .category-button[aria-pressed="true"] {
      border-color: var(--ink);
      background: var(--ink);
      color: #fffdf5;
      box-shadow: 0 10px 20px -12px rgb(27 36 31 / 80%);
    }
    .category-button:focus-visible, .random-button:focus-visible, .case-link:focus-visible,
    .lang-button:focus-visible, .lang-option:focus-visible, .lang-select select:focus-visible {
      outline: 3px solid rgb(47 85 198 / 40%);
      outline-offset: 2px;
    }
    .category-button .category-mark {
      flex: none;
      color: var(--muted-soft);
      font-size: 11px;
      font-variant-numeric: tabular-nums;
      transition: color .18s var(--ease);
    }
    .category-button[aria-pressed="true"] .category-mark { color: rgb(217 239 110 / 90%); }
    .side-note {
      margin-top: 26px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.75;
    }
    .side-note strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
    .main-content { min-width: 0; }
    .toolbar {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 26px;
    }
    .searchbox {
      display: flex;
      min-width: 0;
      min-height: 52px;
      max-width: 520px;
      flex: 1;
      align-items: center;
      gap: 12px;
      padding: 0 16px;
      border: 1px solid var(--line-strong);
      border-radius: var(--r-md);
      background: var(--surface);
      box-shadow: var(--sh-1);
      transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
    }
    .searchbox:hover { border-color: var(--muted-soft); }
    .searchbox:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(47 85 198 / 12%); }
    .searchbox svg { flex: none; color: var(--muted-soft); transition: color .18s var(--ease); }
    .searchbox:focus-within svg { color: var(--blue); }
    .searchbox input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13.5px; }
    .searchbox input::placeholder { color: var(--muted-soft); }
    .searchbox input:focus-visible { outline: none; }
    .toolbar-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
    .result-label { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .random-button {
      display: inline-flex;
      min-height: 48px;
      flex: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 18px;
      border: 1px solid var(--blue-deep);
      border-radius: var(--r-md);
      background: linear-gradient(180deg, #3a64d8, var(--blue-deep));
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 22px -12px rgb(47 85 198 / 95%), inset 0 1px 0 rgb(255 255 255 / 22%);
      transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
    }
    .random-button:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 16px 28px -12px rgb(47 85 198 / 85%), inset 0 1px 0 rgb(255 255 255 / 22%); }
    .random-button:active { transform: translateY(0); }
    .section-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 18px;
      margin: 0 0 22px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line-strong);
    }
    .section-heading h2 {
      margin: 0;
      font-family: var(--serif);
      font-size: clamp(21px, 1.9vw, 27px);
      font-weight: 400;
      letter-spacing: -.015em;
      line-height: 1.3;
      text-wrap: balance;
    }
    .section-heading span { color: var(--muted); font-size: 12px; text-align: right; }
    .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: genre; }
    .genre-group { display: grid; grid-column: 1 / -1; gap: 14px; counter-increment: genre; }
    .genre-group + .genre-group { margin-top: 20px; }
    .genre-group-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-top: 4px;
      padding: 0 0 12px;
      border-bottom: 1px solid var(--line);
    }
    .genre-group-header h3 {
      display: flex;
      align-items: baseline;
      gap: 11px;
      margin: 0;
      font-family: var(--serif);
      font-size: 20px;
      font-weight: 400;
      letter-spacing: -.012em;
      line-height: 1.4;
    }
    .genre-group-header h3::before {
      color: var(--blue);
      content: counter(genre, decimal-leading-zero);
      font-family: var(--mono);
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: .06em;
    }
    .genre-group-header span { color: var(--muted-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
    .genre-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .idea-card {
      position: relative;
      display: flex;
      min-width: 0;
      min-height: 300px;
      flex-direction: column;
      overflow: hidden;
      padding: 21px 20px 17px;
      border: 1px solid var(--line);
      border-radius: var(--r-md);
      background: var(--surface);
      box-shadow: var(--sh-1);
      scroll-margin-top: calc(var(--topbar-h) + 24px);
      animation: card-in .46s var(--ease) backwards;
      transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
    }
    .idea-card::after {
      position: absolute;
      inset: 0 0 auto;
      height: 2px;
      background: linear-gradient(90deg, var(--blue), var(--lime));
      content: "";
      opacity: 0;
      transition: opacity .28s var(--ease);
    }
    .idea-card:hover { transform: translateY(-4px); border-color: #bcc8e6; box-shadow: var(--sh-2); }
    .idea-card:hover::after { opacity: .85; }
    .idea-card.picked { border-color: var(--blue); box-shadow: var(--sh-2), 0 0 0 3px rgb(47 85 198 / 22%); }
    @keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
    .genre-group-grid > .idea-card:nth-child(2), .card-grid > .idea-card:nth-child(2) { animation-delay: .05s; }
    .genre-group-grid > .idea-card:nth-child(3), .card-grid > .idea-card:nth-child(3) { animation-delay: .1s; }
    .genre-group-grid > .idea-card:nth-child(4), .card-grid > .idea-card:nth-child(4) { animation-delay: .14s; }
    .genre-group-grid > .idea-card:nth-child(5), .card-grid > .idea-card:nth-child(5) { animation-delay: .18s; }
    .genre-group-grid > .idea-card:nth-child(6), .card-grid > .idea-card:nth-child(6) { animation-delay: .22s; }
    .card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
    .tag {
      display: inline-flex;
      max-width: calc(100% - 52px);
      align-items: center;
      padding: 3px 9px;
      border: 1px solid #d5e0c8;
      border-radius: 99px;
      background: var(--green-soft);
      color: #465f3d;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .04em;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }
    /* 卡号做成淡色水印，压在右上角 */
    .card-index {
      position: absolute;
      top: 13px;
      right: 18px;
      color: rgb(27 36 31 / 7%);
      font-family: var(--mono);
      font-size: 34px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: -.02em;
      font-variant-numeric: tabular-nums;
      pointer-events: none;
      transition: color .28s var(--ease);
    }
    .idea-card:hover .card-index { color: rgb(47 85 198 / 14%); }
    .idea-card h3 {
      margin: 0 0 9px;
      font-family: var(--serif);
      font-size: 18.5px;
      font-weight: 400;
      letter-spacing: -.012em;
      line-height: 1.42;
      overflow-wrap: anywhere;
      text-wrap: balance;
    }
    .card-summary { min-height: 44px; margin: 0; color: #5d6459; font-size: 13px; line-height: 1.72; overflow-wrap: anywhere; }
    .rule-line { display: flex; gap: 9px; margin: 15px 0 12px; padding-top: 13px; border-top: 1px solid var(--line); }
    .rule-symbol { flex: none; color: var(--blue); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
    .rule-line p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.72; overflow-wrap: anywhere; }
    /* 把「玩家动作 / 设计方向」排成小号标签，正文另起一层 */
    .rule-line b, .direction b {
      color: var(--blue);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .1em;
    }
    .direction {
      margin-top: auto;
      padding: 11px 13px;
      border-left: 2px solid var(--blue);
      border-radius: 0 var(--r-sm) var(--r-sm) 0;
      background: var(--surface-2);
      color: var(--ink-soft);
      font-size: 12.5px;
      line-height: 1.72;
      overflow-wrap: anywhere;
    }
    /* 案例链接做通栏页脚，hover 整条高亮 */
    .case-link {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin: 15px -20px -17px;
      padding: 11px 20px 13px;
      border-top: 1px solid var(--line);
      background: transparent;
      color: var(--blue);
      font-size: 11px;
      text-decoration: none;
      transition: background .2s var(--ease);
    }
    .case-link:hover { background: var(--blue-soft); }
    .case-link .case-label { flex: 0 1 auto; font-weight: 750; }
    .case-link:hover .case-label { text-decoration: underline; text-underline-offset: 3px; }
    .case-link .case-title { min-width: 0; color: var(--ink-soft); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
    .empty-state {
      grid-column: 1 / -1;
      padding: 60px 24px;
      border: 1px dashed var(--line-strong);
      border-radius: var(--r-md);
      background: var(--surface);
      color: var(--muted);
      text-align: center;
    }
    .empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; }
    .footer {
      display: flex;
      justify-content: space-between;
      gap: 28px;
      padding: 22px 0 32px;
      border-top: 1px solid var(--line-strong);
      color: var(--muted-soft);
      font-size: 11px;
    }
    .footer a { color: var(--blue); text-decoration: none; }
    .footer a:hover { text-decoration: underline; }
    .toast {
      position: fixed;
      z-index: 30;
      bottom: 26px;
      left: 50%;
      max-width: min(92vw, 520px);
      padding: 12px 18px;
      border: 1px solid rgb(255 255 255 / 12%);
      border-radius: var(--r-md);
      background: rgb(27 36 31 / 96%);
      color: #fffdf5;
      font-size: 12.5px;
      box-shadow: var(--sh-3);
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 14px) scale(.98);
      transition: opacity .24s var(--ease), transform .24s var(--ease);
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      clip-path: inset(50%);
    }

    /* 宽屏：标题回到单行，说明文字与注释同行 */
    @media (min-width: 901px) {
      h1 { font-size: clamp(38px, 3.8vw, 54px); letter-spacing: -.028em; }
      h1 br { display: none; }
      .hero-note strong { display: inline; margin: 0 14px 0 0; font-size: 19px; }
      .hero-note p { display: inline; }
    }
    @media (max-width: 1120px) {
      .shell { padding-inline: 30px; }
      .workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
      .card-grid, .genre-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 900px) {
      .hero { padding: 40px clamp(26px, 5vw, 48px) 34px; }
      .hero-copy { max-width: none; }
      .hero-note { max-width: none; margin-top: 22px; }
      .workspace { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 32px; }
      .sidebar { position: static; }
      .category-list { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: thin; }
      .category-button { min-width: max-content; justify-content: flex-start; gap: 10px; padding-inline: 13px; }
      .side-note { display: none; }
      .card-grid, .genre-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 680px) {
      .shell { padding-inline: 17px; }
      :root { --topbar-h: 62px; }
      .topbar { min-height: 62px; gap: 12px; }
      .brand { gap: 8px; font-size: 12px; }
      .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
      .brand-mark::after { height: 21px; }
      .brand small, .top-right .top-meta, .local-pill { display: none; }
      .top-right { gap: 0; }
      .lang-button { min-height: 38px; }
      .hero { padding: 34px 21px 28px; }
      .eyebrow { gap: 8px; font-size: 9px; letter-spacing: .12em; }
      h1 { margin: 16px 0 14px; font-size: clamp(25px, 6.5vw, 33px); line-height: 1.3; }
      .hero-copy { font-size: 14px; line-height: 1.8; }
      .hero-note { margin-top: 20px; padding-top: 14px; font-size: 12px; }
      .hero-note strong { font-size: 17px; }
      .workspace { gap: 22px; padding: 28px 0 58px; }
      .side-head { margin-bottom: 10px; }
      .category-list { margin-inline: -2px; }
      .category-button { min-height: 40px; font-size: 12px; }
      .toolbar { align-items: stretch; flex-direction: column; gap: 11px; margin-bottom: 22px; }
      .searchbox { max-width: none; min-height: 49px; }
      .toolbar-actions { justify-content: space-between; gap: 12px; margin-left: 0; }
      .result-label { white-space: normal; }
      .random-button { min-height: 43px; padding-inline: 15px; }
      .section-heading { align-items: flex-start; margin-bottom: 18px; }
      .section-heading h2 { font-size: 22px; }
      .section-heading span { max-width: 48%; font-size: 11px; }
      .genre-group-header { padding-bottom: 10px; }
      .genre-group-header h3 { font-size: 19px; }
      .genre-group + .genre-group { margin-top: 14px; }
      .card-grid, .genre-group-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
      .idea-card { min-height: 0; padding: 18px 16px 15px; }
      .card-top { margin-bottom: 12px; }
      .card-index { top: 12px; right: 15px; font-size: 30px; }
      .idea-card h3 { font-size: 17.5px; }
      .card-summary { min-height: 0; }
      .rule-line { margin-top: 13px; }
      .case-link { align-items: flex-start; flex-wrap: wrap; margin: 13px -16px -15px; padding: 10px 16px 12px; }
      .case-link .case-title { flex: 1 1 100%; text-align: left; }
      .footer { flex-direction: column; gap: 7px; padding-bottom: 24px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }
  /* ==========================================================================
   seo.css — 静态 SEO 页面的增量样式
   基础设计 token 与组件样式复用 index.html 的 <style>（由 extract.js 抽出），
   这里只补静态页面特有的部分：广告位、详情页、内链网格、面包屑。
   ========================================================================== */

/* ---------- 广告位 ----------
   规则（AdSense 政策）：
   - 广告不能伪装成网站自有内容（不加 .fake-link 类）
   - 与内容保持距离，不做「误点击诱导」
   - 预留固定高度，避免广告加载完后的 CLS

   宽度坑：AdSense 的 data-full-width-responsive 会按**视口宽度**渲染，
   在390px 视口下 ins 实际宽 390px，而 .ad-slot 的内容宽只有 374px
   （390 减去 shell 的左右 padding），于是每个广告位都撑出 8px 横向溢出，
   而且会传染给父容器（.workspace / .sidebar / .main-content 全被撑宽）。
   修法：给 .ad-slot 加 max-width:100%，并给 ins 显式 width:100% + max-width:100%。
*/
.ad-slot {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 22px;
  overflow: hidden;
  text-align: center;
}
.ad-slot ins {
  display: block;
  width: 100%;
  max-width: 100%;
}
/* AdSense 运行时会在 <ins> 上写 margin-left:-8px + width:视口宽（它假设 body 有 8px margin）。
   本站 body margin 为 0，所以那个负边距必然溢出容器 —— 用 !important 强制覆盖，
   这一条是防横向溢出的关键兜底，不能删。 */
.ad-slot ins.adsbygoogle {
  max-width: 100% !important;
  margin-left: 0 !important;
}
/* 侧边栏 300x600 竖幅 */
.ad-slot--side {
  width: 100%;
  max-width: 300px;
  min-height: 600px;
  margin-top: 26px;
}
/* 内容流横幅 */
.ad-slot--banner {
  max-width: 728px;
  min-height: 90px;
  margin: 26px auto;
}
/* 文章内方形 */
.ad-slot--inline {
  max-width: 336px;
  min-height: 280px;
  margin: 30px auto;
}
/* 移动端底部吸附前留白 */
.ad-slot--foot {
  max-width: 728px;
  min-height: 90px;
  margin: 30px auto 10px;
}
.ad-note {
  display: block;
  margin-top: 6px;
  color: var(--muted-soft);
  font-size: 10px;
  letter-spacing: .04em;
}
/* 未配置 data-ad-slot 时的占位：
   不要保留 600px / 250px 的广告预留高度——那是给真实广告防CLS 用的，
   没有广告时留这么大一块空洞既难看又拉低页面质量分（Google 会算"内容与广告不匹配"）。
   折叠成一条细提示，等配好 slot 后自动恢复预留高度。 */
.ad-slot.is-unfilled {
  min-height: 0;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 3px;
}
.ad-slot.is-unfilled .ad-note { margin-top: 0; }
@media (max-width: 900px) {
  .ad-slot--side { min-height: 0; max-width: 336px; }
  .ad-slot--banner, .ad-slot--foot { min-height: 100px; }
}
@media (max-width: 680px) {
  .ad-slot--banner, .ad-slot--foot { min-height: 250px; }
}
/* 未配置时移动端也不必预留 250px */
@media (max-width: 900px) {
  .ad-slot.is-unfilled { min-height: 0; }
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: .02em;
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- 卡片详情页 ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  padding: 30px 0 84px;
}
.detail-main { min-width: 0; }

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.detail h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.detail-lede {
  margin: 0 0 26px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.detail-block {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.detail-block h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-block p { margin: 0; font-size: 15px; line-height: 1.72; }
.detail-block--direction { border-left-color: var(--green); }

.detail-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-warm);
}
.detail-case-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-case a {
  color: var(--blue-deep);
  font-weight: 640;
  text-decoration: none;
  border-bottom: 1px solid rgb(35 65 157 / 32%);
}
.detail-case a:hover { border-bottom-color: var(--blue-deep); }

.detail-side { min-width: 0; }
@media (max-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-side { display: contents; }
  .detail-side .ad-slot--side { order: -1; }
}

/* ---------- 内链网格（每页都带相关卡片，织出站内链接网） ---------- */
.related { margin: 34px 0 0; }
.related h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.related-sub {
  margin: 0 0 16px;
  color: var(--muted-soft);
  font-size: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-item {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.related-item:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.related-item b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 660;
  line-height: 1.4;
}
.related-item span {
  display: block;
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: .05em;
}

/* ---------- 静态页分类导航 ----------
   index.html 的 .category-list 里放的是 <button class="category-button">，
   移动端靠 .category-button 的 min-width:max-content + overflow-x:auto 做横向滚动。
   静态页为了 SEO 用的是真实 <a>（爬虫可跟随），没有 .category-button 类，
   所以必须自己声明同样的横向滚动行为，否则链接会撑破容器造成 8px 溢出。
*/
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.category-list a:hover { background: var(--surface-2); color: var(--ink); }
.category-list a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 640;
}
.category-list a small { color: inherit; opacity: .62; font-size: 11px; }

@media (max-width: 900px) {
  .category-list a { min-width: max-content; }
}

/* ---------- 分类页 / 首页的静态卡片网格 ---------- */
.static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  list-style: none;
  padding: 0;
}
.static-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 19px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.static-card h3 {
  margin: 8px 0 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 640;
  line-height: 1.34;
}
.static-card h3 a { color: var(--ink); text-decoration: none; }
.static-card h3 a:hover { color: var(--blue-deep); }
.static-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.68;
}
.static-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.static-card-foot .case-ref { color: var(--muted-soft); }
.static-card-foot .go {
  color: var(--blue-deep);
  font-weight: 660;
  text-decoration: none;
  white-space: nowrap;
}
.static-card-foot .go:hover { text-decoration: underline; }

.tag-static {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ---------- 页脚（静态页） ---------- */
.static-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.8;
}
.static-foot a { color: var(--muted); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 34px;
  margin-bottom: 20px;
}
.foot-cols h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.foot-cols ul { margin: 0; padding: 0; list-style: none; }
.foot-cols li { margin-bottom: 5px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 语言切换条（静态页用真链接，爬虫可跟随） ---------- */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.lang-strip li { margin: 0; }
.lang-strip a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.lang-strip a:hover { border-color: var(--blue); color: var(--blue-deep); }
.lang-strip a[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Cookie 同意横幅（Consent Mode v2）
   ==========================================================================
   设计约束：
   - 「同意」和「拒绝」必须视觉等重。Google 明确禁止把拒绝做成
     灰色小字链接、只把同意做成醒目按钮——那是「伪装同意」，
     审核会被判不通过。
   - 不能用遮罩挡住整页（不给选就关站点 = 变相强制同意）。
     所以是底部一条，不设全屏遮罩。
   - 同意前广告与分析都不加载，但页面内容必须完全可读可点。
*/
.gdpr-banner {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 6px 28px -8px rgb(27 36 31 / 22%);
  font-size: 13px;
  line-height: 1.62;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  pointer-events: none;
}
/* 等 load 事件后再显示，避免用户点同意时 gtag 还没定义 */
.gdpr-banner.is-ready { opacity: 1; transform: none; pointer-events: auto; }
.gdpr-banner.is-gone { display: none; }

.gdpr-text { flex: 1 1 auto; min-width: 0; color: var(--muted); }
.gdpr-text strong {
  display: block;
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}
.gdpr-text p { margin: 0; }
.gdpr-text a { color: var(--blue-deep); text-decoration: underline; }

.gdpr-actions { display: flex; flex: none; align-items: center; gap: 9px; }
/* 按钮权重：同意与拒绝必须「同等显著」。
   Google 明确禁止把拒绝做成灰色小字、只把同意做成醒目按钮（伪装同意）。
   所以两者：同尺寸、同形状、同字号、同位置，只有底色明暗不同；
   同意用品牌蓝而非近黑，压迫感弱一点，不显得在诱导点击。 */
.gdpr-btn {
  padding: 9px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 640;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease);
}
.gdpr-btn--accept {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.gdpr-btn--accept:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.gdpr-btn--reject:hover { background: var(--surface-2); }

/* 横幅是 fixed 底部条，会盖住卡片。出现时给 body 加底部内边距把内容顶上去，
   否则用户读到最后一张卡时被横幅压住，体验很差。
   padding 由 JS 写到 body.style（横幅消失时移除），这里只给过渡。 */
body.has-consent-banner .shell { padding-bottom: 128px; }
@media (max-width: 720px) {
  .gdpr-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .gdpr-actions { justify-content: stretch; }
  .gdpr-btn { flex: 1 1 0; text-align: center; }
  body.has-consent-banner .shell { padding-bottom: 210px; }
}

/* ---------- 页脚里的隐私设置入口（用户想改选择时用） ---------- */
.foot-privacy {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.foot-privacy:hover { color: var(--blue-deep); }

/* ---------- 隐私政策页 ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.legal h1 { margin: 0 0 6px; }
.legal .legal-lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}
.legal h2 {
  margin: 30px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}
.legal p, .legal li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-deep); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal th, .legal td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  vertical-align: top;
}
.legal th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.legal td code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
/* 窄屏放不下整串 cookie 名时，宁可断行也不要横向溢出 */
@media (max-width: 560px) {
  .legal th, .legal td { padding: 8px 7px; font-size: 12px; }
  .legal td code { font-size: 11px; overflow-wrap: anywhere; }
}
