:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-deep: #030914;
  --panel: rgba(13, 27, 45, 0.78);
  --panel-solid: #0d1b2d;
  --panel-soft: rgba(18, 36, 58, 0.66);
  --line: rgba(151, 177, 211, 0.15);
  --line-strong: rgba(151, 177, 211, 0.25);
  --text: #edf5ff;
  --muted: #91a6bf;
  --muted-2: #687e98;
  --blue: #4aa8ff;
  --blue-bright: #72c4ff;
  --violet: #997cff;
  --green: #43d8a0;
  --amber: #ffbd5b;
  --red: #ff6d7d;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(14, 35, 58, 0.34), transparent 360px),
    radial-gradient(circle at 50% -12%, rgba(39, 123, 208, 0.22), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-glow { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .11; pointer-events: none; }
.page-glow-a { top: 160px; left: -240px; background: #2e9dff; }
.page-glow-b { top: 560px; right: -260px; background: #6f4cff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, 100%);
  min-height: 72px;
  margin-inline: auto;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 12, 23, .76);
  backdrop-filter: blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(114, 196, 255, .32); border-radius: 12px; color: white; font-weight: 900; background: linear-gradient(145deg, #168af5, #7f62e8); box-shadow: 0 10px 32px rgba(46, 153, 255, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted-2); font-size: 9px; letter-spacing: .19em; }
.header-links { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.header-links a { padding: 9px 13px; border-radius: 10px; transition: .2s ease; }
.header-links a:hover { color: white; background: var(--panel-soft); }
.header-links .primary-link { color: #dff2ff; border: 1px solid rgba(74, 168, 255, .25); background: rgba(32, 127, 219, .12); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 72px; align-items: center; min-height: 520px; padding-block: 74px 62px; }
.eyebrow, .section-kicker, .panel-kicker { color: var(--blue-bright); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(74, 168, 255, .16); border-radius: 999px; background: rgba(74, 168, 255, .07); }
.pulse-dot, .freshness-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(67, 216, 160, .08), 0 0 18px rgba(67, 216, 160, .6); }
.hero h1 { margin: 24px 0 20px; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; letter-spacing: -.055em; }
.hero h1 span { background: linear-gradient(95deg, #67baff, #a991ff 72%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.api-address { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 30px; padding: 8px 8px 8px 15px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(3, 10, 20, .52); box-shadow: inset 0 1px rgba(255,255,255,.02); }
.api-address span { color: var(--muted-2); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.api-address code { overflow: hidden; color: #dceeff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; text-overflow: ellipsis; }
.api-address button, .freshness button, .reset-button, .pagination button, .error-state button { border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 11px; background: rgba(255,255,255,.04); cursor: pointer; transition: .2s ease; }
.api-address button:hover, .freshness button:hover, .reset-button:hover, .pagination button:hover:not(:disabled), .error-state button:hover { border-color: rgba(74, 168, 255, .5); background: rgba(74, 168, 255, .12); }

.hero-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 310px; padding: 36px; overflow: hidden; border: 1px solid rgba(121, 173, 226, .18); border-radius: 28px; background: linear-gradient(145deg, rgba(14, 33, 55, .9), rgba(7, 20, 36, .78)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05); }
.hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(103, 186, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 186, 255, .04) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent); }
.panel-orbit { position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border: 1px solid rgba(114,196,255,.18); border-radius: 50%; box-shadow: inset 0 0 70px rgba(74,168,255,.08), 0 0 0 28px rgba(74,168,255,.025), 0 0 0 64px rgba(74,168,255,.02); }
.hero-panel > strong { margin-top: 25px; font-size: 74px; line-height: 1; letter-spacing: -.06em; }
.hero-status-title { font-size: clamp(42px, 5vw, 64px) !important; background: linear-gradient(95deg, #67baff, #a991ff 72%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-panel > span:not(.panel-kicker) { margin-top: 8px; color: var(--muted); }
.hero-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.hero-panel-grid div { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.hero-panel-grid b, .hero-panel-grid small { display: block; }
.hero-panel-grid b { font-size: 20px; }
.hero-panel-grid small { margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.gemini-panel { justify-content: flex-start; min-height: 390px; padding: 30px 32px; }
.gemini-panel-title { margin: 12px 0 15px; font-size: 24px; line-height: 1.3; }
.gemini-panel-list { position: relative; z-index: 1; margin: 0; }
.gemini-panel-list > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.gemini-panel-list dt { color: #e5f3ff; font-size: 11px; font-weight: 800; }
.gemini-panel-list dd { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 80px; }
.stat-card { display: flex; align-items: center; gap: 15px; min-height: 102px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-soft); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 26px; letter-spacing: -.03em; }
.stat-card div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 13px; font-size: 14px; font-weight: 900; }
.stat-icon.blue { color: #8acbff; background: rgba(74,168,255,.12); }
.stat-icon.violet { color: #beaaff; background: rgba(153,124,255,.12); }
.stat-icon.amber { color: #ffd58b; background: rgba(255,189,91,.12); }
.stat-icon.green { color: #85edc8; background: rgba(67,216,160,.12); }

.directory { padding-bottom: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading h2 { margin: 7px 0 0; font-size: 34px; letter-spacing: -.035em; }
.freshness { display: flex; align-items: center; gap: 9px; min-height: 38px; color: var(--muted); font-size: 12px; }
.freshness-dot.stale { background: var(--amber); box-shadow: 0 0 0 5px rgba(255,189,91,.08), 0 0 18px rgba(255,189,91,.5); }
.freshness-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(255,109,125,.08), 0 0 18px rgba(255,109,125,.5); }
.freshness button { margin-left: 4px; padding: 6px 10px; font-size: 11px; }
.freshness button.loading { opacity: .55; pointer-events: none; }

.notice { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 13px 15px; border: 1px solid rgba(74,168,255,.15); border-radius: 13px; background: rgba(74,168,255,.055); color: var(--muted); }
.notice > span { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid rgba(114,196,255,.25); border-radius: 50%; color: var(--blue-bright); font-size: 12px; font-weight: 900; }
.notice p { margin: 0; font-size: 12px; line-height: 1.6; }

.filters { display: grid; grid-template-columns: minmax(260px, 1.8fr) repeat(5, minmax(130px, 1fr)) auto auto; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7, 18, 32, .72); }
.filters label { position: relative; min-width: 0; }
.filters label > span:not(.sr-only) { position: absolute; top: 7px; left: 12px; z-index: 1; color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.filters input, .filters select { width: 100%; height: 50px; border: 1px solid transparent; border-radius: 11px; outline: 0; color: #dce9f7; background: rgba(255,255,255,.035); transition: .2s ease; }
.filters input:hover, .filters select:hover { background: rgba(255,255,255,.052); }
.filters input:focus, .filters select:focus { border-color: rgba(74,168,255,.45); box-shadow: 0 0 0 3px rgba(74,168,255,.08); }
.filters select { padding: 18px 29px 4px 11px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7187a0 50%), linear-gradient(135deg, #7187a0 50%, transparent 50%); background-position: calc(100% - 15px) 23px, calc(100% - 11px) 23px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
select { color-scheme: only light; }
select option { color: #172335; background: #f7f9fc; }
.mobile-select-trigger { display: none; }
.mobile-select-open { overflow: hidden; }
.mobile-select-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding-top: 60px; background: rgba(0, 0, 0, .68); }
.mobile-select-dialog { display: flex; flex-direction: column; width: min(100%, 560px); max-height: calc(100dvh - 60px); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 18px 18px 0 0; color: var(--text); background: #0d1b2d; box-shadow: 0 -24px 70px rgba(0, 0, 0, .45); }
.mobile-select-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 64px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.mobile-select-header h3 { margin: 0; font-size: 17px; }
.mobile-select-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 28px; cursor: pointer; }
.mobile-select-options { overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.mobile-select-option { position: relative; display: block; width: 100%; min-height: 56px; padding: 14px 56px 14px 20px; border: 0; border-bottom: 1px solid rgba(151, 177, 211, .1); color: #edf5ff; background: transparent; text-align: left; cursor: pointer; }
.mobile-select-option.selected { color: var(--blue-bright); background: rgba(74, 168, 255, .1); }
.mobile-select-option.selected::after { content: "✓"; position: absolute; top: 50%; right: 22px; color: var(--blue-bright); font-size: 19px; transform: translateY(-50%); }
.search-field { grid-row: span 1; }
.search-field svg { position: absolute; left: 14px; top: 17px; width: 17px; fill: none; stroke: var(--muted-2); stroke-width: 1.8; }
.search-field input { padding: 0 42px 0 42px; }
.search-field kbd { position: absolute; top: 14px; right: 12px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: rgba(0,0,0,.15); font-size: 11px; }
.reset-button { height: 50px; align-self: end; white-space: nowrap; color: var(--muted); }
.filter-button { height: 50px; align-self: end; padding: 0 17px; border: 1px solid rgba(74,168,255,.35); border-radius: 10px; color: #eaf7ff; background: rgba(74,168,255,.16); cursor: pointer; transition: .2s ease; }
.filter-button:hover { border-color: rgba(114,196,255,.7); background: rgba(74,168,255,.25); }

.result-bar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 4px; color: var(--muted); font-size: 12px; }
.result-bar p { margin: 0; }
.result-bar strong { color: white; font-size: 14px; }
.change-summary { color: #8ed9ff; }
.page-size-label { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.page-size-label select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; color: var(--muted); background: var(--panel-solid); }

.model-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 20, 35, .75); box-shadow: 0 26px 80px rgba(0,0,0,.16); }
.model-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.model-table th { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); background: rgba(255,255,255,.018); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.model-table th:nth-child(1) { width: 27%; }
.model-table th:nth-child(2) { width: 16%; }
.model-table th:nth-child(3) { width: 24%; }
.model-table th:nth-child(4) { width: 12%; }
.model-table th:nth-child(5) { width: 16%; }
.model-table th:nth-child(6) { width: 5%; }
.model-table td { padding: 18px 16px; border-bottom: 1px solid rgba(151,177,211,.09); vertical-align: middle; }
.model-table tr:last-child td { border-bottom: 0; }
.model-table tbody tr { transition: background .18s ease; }
.model-table tbody tr:hover { background: rgba(74,168,255,.038); }
.model-name { display: block; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace; font-size: 13px; font-weight: 700; line-height: 1.55; }
.model-sub { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.provider-name { display: block; font-size: 13px; font-weight: 700; }
.endpoint-list, .tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 9px; white-space: nowrap; }
.pill.endpoint { color: #9bd3ff; border-color: rgba(74,168,255,.18); background: rgba(74,168,255,.07); }
.pill.tag { color: #b5a8dc; border-color: rgba(153,124,255,.14); }
.pill.modality-pill { color: #9bd3ff; border-color: rgba(74,168,255,.18); background: rgba(74,168,255,.055); }
.billing-badge { display: inline-flex; padding: 3px 7px; border-radius: 6px; color: #e5d9ff; background: rgba(153,124,255,.12); font-size: 9px; font-weight: 800; }
.billing-badge.request { color: #ffe0a8; background: rgba(255,189,91,.12); }
.price-primary { color: white; font-size: 14px; font-weight: 800; }
.price-details { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.price-details span { white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-stable { color: #6be5b7; background: rgba(67,216,160,.09); }
.status-available { color: #86cfef; background: rgba(74,168,255,.09); }
.status-fluctuating { color: #ffd077; background: rgba(255,189,91,.09); }
.status-abnormal { color: #ff8793; background: rgba(255,109,125,.09); }
.status-unmonitored { color: #8ca0b7; background: rgba(140,160,183,.08); }
.success-text { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.performance { display: grid; gap: 5px; }
.performance-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 10px; }
.performance-row b { color: #c7d5e4; font-size: 11px; font-weight: 600; }
.copy-model { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.copy-model:hover { color: white; border-color: rgba(74,168,255,.4); background: rgba(74,168,255,.1); }

.model-cards { display: none; gap: 12px; }
.model-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 22, 38, .78); }
.model-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.model-card .model-name { font-size: 12px; }
.model-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.model-card-price { margin-top: 16px; padding: 12px; border: 1px solid rgba(151,177,211,.1); border-radius: 12px; background: rgba(255,255,255,.02); }
.model-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.model-card-grid > div { min-width: 0; }
.model-card-grid small { display: block; color: var(--muted-2); font-size: 9px; text-transform: uppercase; }
.model-card-grid strong { display: block; margin-top: 4px; font-size: 12px; }

.state-panel { display: grid; justify-items: center; min-height: 280px; padding: 56px 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: rgba(8,20,35,.58); text-align: center; }
.state-panel > span:not(.loader) { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue-bright); font-size: 18px; font-weight: 800; }
.state-panel strong { margin-top: 17px; color: white; font-size: 17px; }
.state-panel p { max-width: 440px; margin: 8px 0 0; font-size: 12px; line-height: 1.7; }
.loader { width: 36px; height: 36px; border: 3px solid rgba(74,168,255,.12); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state > span { color: var(--red); }
.error-state button { margin-top: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.pagination button { min-width: 38px; height: 36px; padding: 0 11px; color: var(--muted); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.page-buttons { display: flex; gap: 6px; }
.page-buttons button.active { color: white; border-color: rgba(74,168,255,.5); background: rgba(74,168,255,.14); }

.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-block: 10px 100px; }
.explain article { position: relative; min-height: 190px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15,31,51,.75), rgba(7,18,32,.72)); }
.explain article > span { color: rgba(114,196,255,.22); font-size: 46px; font-weight: 900; letter-spacing: -.06em; }
.explain h3 { margin: -2px 0 10px; font-size: 16px; }
.explain p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.site-footer { display: flex; justify-content: space-between; gap: 28px; padding-block: 32px 45px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; }
.site-footer strong { color: #c9d7e6; font-size: 13px; }
.site-footer p { max-width: 650px; margin: 7px 0 0; line-height: 1.7; }
.footer-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; text-align: right; }
.footer-meta a:hover { color: var(--blue-bright); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: calc(100% - 32px); padding: 10px 16px; border: 1px solid rgba(74,168,255,.28); border-radius: 11px; color: #e8f5ff; background: rgba(10,26,44,.94); box-shadow: 0 18px 60px rgba(0,0,0,.35); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: .24s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.not-found-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.not-found-card { width: min(520px, 100%); padding: 54px 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); text-align: center; box-shadow: var(--shadow); }
.not-found-card > span { color: var(--blue); font-size: 72px; font-weight: 900; letter-spacing: -.08em; }
.not-found-card h1 { margin: 7px 0 0; }
.not-found-card p { color: var(--muted); line-height: 1.7; }
.not-found-card a { display: inline-flex; margin-top: 14px; padding: 10px 16px; border: 1px solid rgba(74,168,255,.3); border-radius: 11px; background: rgba(74,168,255,.1); }

.tutorial-page { padding-block: 76px 100px; }
.tutorial-hero { max-width: 760px; padding-bottom: 50px; }
.tutorial-hero h1 { margin: 22px 0 16px; font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.tutorial-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.tutorial-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 50px; align-items: start; }
.tutorial-toc { position: sticky; top: 96px; display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(9, 22, 38, .7); }
.tutorial-toc > span { margin-bottom: 6px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tutorial-toc a { padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: 12px; transition: .2s ease; }
.tutorial-toc a:hover { color: white; background: rgba(74,168,255,.1); }
.tutorial-content { display: grid; gap: 15px; }
.tutorial-card { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 18px; padding: 27px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(15,31,51,.8), rgba(7,18,32,.78)); }
.tutorial-number { color: var(--blue-bright); font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.tutorial-card h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.025em; }
.tutorial-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tutorial-card p + p { margin-top: 12px; }
.tutorial-card a:not(.tutorial-action) { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.tutorial-action { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px 14px; border: 1px solid rgba(74,168,255,.32); border-radius: 10px; color: #e8f6ff; background: rgba(74,168,255,.12); font-size: 12px; font-weight: 700; transition: .2s ease; }
.tutorial-action:hover { background: rgba(74,168,255,.22); }
.tutorial-action.secondary { border-color: rgba(153,124,255,.3); background: rgba(153,124,255,.1); }
.code-copy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding: 10px 11px 10px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(2,8,16,.58); }
.code-copy code { overflow: hidden; color: #cdeaff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.code-copy button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); cursor: pointer; font-size: 11px; }
.tutorial-muted { color: var(--muted-2) !important; font-size: 11px !important; }
.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.tip-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.tip-grid strong, .tip-grid span { display: block; }
.tip-grid strong { font-size: 12px; }
.tip-grid span { margin-top: 6px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.faq-card details { border-top: 1px solid var(--line); padding: 13px 0; }
.faq-card details:first-of-type { margin-top: 5px; }
.faq-card summary { color: #dbeafa; cursor: pointer; font-size: 13px; font-weight: 700; }
.faq-card details p { margin-top: 8px; color: var(--muted-2); font-size: 12px; }

@media (max-width: 760px) {
  .tutorial-page { padding-top: 52px; }
  .tutorial-layout { grid-template-columns: 1fr; gap: 20px; }
  .tutorial-toc { position: static; grid-template-columns: 1fr 1fr; }
  .tutorial-toc > span { grid-column: 1 / -1; }
  .tutorial-card { grid-template-columns: 40px minmax(0, 1fr); padding: 21px; gap: 10px; }
  .tip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .filters { grid-template-columns: 2fr repeat(3, 1fr); }
  .reset-button { width: 100%; }
  .filter-button { width: 100%; }
  .model-table th:nth-child(2), .model-table td:nth-child(2) { display: none; }
  .model-table th:nth-child(1) { width: 31%; }
  .model-table th:nth-child(3) { width: 29%; }
  .model-table th:nth-child(4) { width: 15%; }
  .model-table th:nth-child(5) { width: 19%; }
  .model-table th:nth-child(6) { width: 6%; }
}

@media (max-width: 900px) {
  .site-header { padding-inline: 20px; }
  .header-links a:not(.primary-link) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding-block: 70px 48px; }
  .hero-panel { min-height: 250px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 65px; }
  .model-table-wrap { display: none !important; }
  .model-cards:not([hidden]) { display: grid; }
  .explain { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { min-height: 64px; padding-inline: 14px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand strong { font-size: 13px; }
  .header-links .primary-link { padding: 8px 10px; font-size: 11px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-copy > p { font-size: 14px; }
  .api-address { display: grid; grid-template-columns: auto 1fr auto; width: 100%; gap: 8px; }
  .api-address code { font-size: 10px; }
  .hero-panel { padding: 26px; }
  .hero-panel > strong { font-size: 60px; }
  .gemini-panel { min-height: 0; padding: 24px; }
  .gemini-panel-title { font-size: 22px; }
  .stats { gap: 9px; }
  .stat-card { min-height: 88px; padding: 14px; gap: 10px; }
  .stat-card strong { font-size: 22px; }
  .stat-icon { width: 37px; height: 37px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 29px; }
  .freshness { width: 100%; }
  .freshness button { margin-left: auto; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; }
  .filters select.mobile-select-native, .page-size-label select.mobile-select-native { display: none; }
  .filters .mobile-select-trigger { display: flex; align-items: flex-end; width: 100%; height: 50px; padding: 18px 29px 5px 11px; overflow: hidden; border: 1px solid transparent; border-radius: 11px; color: #dce9f7; background: rgba(255,255,255,.035); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  .filters .mobile-select-trigger::after { content: ""; position: absolute; right: 13px; bottom: 16px; width: 7px; height: 7px; border-right: 2px solid #7187a0; border-bottom: 2px solid #7187a0; transform: rotate(45deg); }
  .page-size-label .mobile-select-trigger { display: inline-flex; align-items: center; min-width: 50px; height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel-solid); }
  .search-field { grid-column: 1 / -1; }
  .reset-button { grid-column: 1 / -1; }
  .filter-button { grid-column: 1 / -1; }
  .result-bar { flex-wrap: wrap; padding-block: 10px; }
  .change-summary { width: 100%; order: 3; }
  .page-size-label { margin-left: auto; }
  .model-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination { gap: 6px; }
  .page-buttons button { min-width: 32px; padding-inline: 7px; }
  .site-footer { flex-direction: column; }
  .footer-meta { justify-content: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .filters { grid-template-columns: 1fr; }
  .search-field, .reset-button { grid-column: auto; }
  .filter-button { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card { align-items: flex-start; flex-direction: column; }
  .hero-panel-grid { gap: 8px; }
  .model-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
