@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap");

:root {
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --ink: #071b3a;
  --text: #334155;
  --muted: #718096;
  --line: #d7e0ec;
  --accent: #0062ff;
  --accent-soft: #edf5ff;
  --cyan: #00d5f5;
  --navy: #03142e;
  --navy-2: #071d3b;
  --success: #10b981;
  --danger: #dc2626;
  --font-display: "Funnel Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1248px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, backdrop-filter .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(7, 27, 58, .06);
  backdrop-filter: blur(14px);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  align-items: center;
  gap: 24px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
}

.brand-name {
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: var(--navy);
}

.brand-mark i,
.brand-mark b,
.brand-mark em {
  position: absolute;
  display: block;
  font-style: normal;
}

.brand-mark i { left: 7px; top: 7px; width: 5px; height: 22px; background: var(--cyan); }
.brand-mark b { right: 7px; top: 7px; width: 5px; height: 22px; background: var(--accent); }
.brand-mark em { left: 10px; top: 15px; width: 17px; height: 5px; background: #fff; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  padding: 28px 0 26px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.nav-link:hover,
.nav-link.is-active { color: var(--accent); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.search-wrap { position: relative; }

.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 39px;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.search-wrap input:focus { border-color: var(--accent); background: #fff; }
.search-wrap input::placeholder { color: var(--muted); font-size: 14px; }
.search-icon { position: absolute; z-index: 2; top: 9px; left: 14px; color: var(--muted); font-size: 18px; }

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: min(440px, 92vw);
  max-height: 380px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(7, 27, 58, .13);
}

.search-panel.is-open { display: block; }
.search-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-item:hover { background: var(--surface-alt); }
.search-item strong { font-size: 15px; }
.search-item .meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-empty { padding: 20px; color: var(--muted); font-size: 14px; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.menu-btn span { display: block; height: 1px; margin: 4px 0; background: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .45;
  background-image:
    linear-gradient(rgba(0, 98, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 98, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero-title {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.eyebrow,
.tech-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.muted { color: var(--muted); }
.breadcrumb { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.breadcrumb a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { color: #fff; background: #0052d6; }
.btn-secondary { background: #fff; }
.btn-ghost { min-height: 0; padding: 0; color: var(--accent); background: transparent; border: 0; }
.btn-sm { min-height: 40px; padding: 9px 14px; font-size: 14px; }

.article-card,
.tool-card,
.prompt-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.article-card:hover,
.tool-card:hover,
.feature-card:hover {
  border-color: #9cbff1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 27, 58, .08);
}

.article-card { overflow: hidden; }
.article-card-link { display: block; height: 100%; }
.article-visual { position: relative; height: 118px; overflow: hidden; background: var(--navy); }
.article-visual::before { position: absolute; top: 18px; bottom: 18px; left: 18px; width: 2px; content: ""; background: var(--cyan); }
.article-visual-index { position: absolute; top: 18px; right: 18px; color: #6ea8d9; font-family: var(--font-mono); font-size: 12px; }
.article-visual-line { position: absolute; left: 38px; height: 1px; background: #275380; }
.article-visual-line.line-a { top: 34px; width: 46%; }
.article-visual-line.line-b { top: 59px; width: 67%; }
.article-visual-line.line-c { top: 84px; width: 37%; }
.article-card-body { padding: 20px; }
.article-card-title { margin: 10px 0 9px; color: var(--ink); font-size: 19px; font-weight: 750; line-height: 1.35; }
.article-card-description { display: -webkit-box; min-height: 48px; margin: 0; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.card-meta span:last-child { color: var(--accent); }

.tool-card { display: flex; min-height: 224px; flex-direction: column; padding: 20px; }
.tool-card-top, .tool-footer, .prompt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-initial { display: grid; width: 34px; height: 34px; place-items: center; color: var(--cyan); background: var(--navy); font-weight: 750; }
.tool-name { margin: 17px 0 8px; font-size: 20px; font-weight: 750; }
.tool-description { flex: 1; margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.tool-footer { margin-top: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.tool-footer a { color: var(--accent); }

.prompt-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; }
.prompt-number { align-self: start; color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.prompt-card-body { min-width: 0; }
.prompt-card h3 { margin: 0; font-size: 18px; font-weight: 750; }
.prompt-content { margin: 9px 0 0; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #bcd5f5;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.badge-muted { color: var(--muted); background: var(--surface-alt); border-color: var(--line); }
.badge-green { color: #067b55; background: #eafaf4; border-color: #a9e3ce; }
.badge-amber { color: #a35a00; background: #fff8e8; border-color: #f1d89d; }

.filter-chip {
  padding: 8px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  transition: .15s ease;
}

.filter-chip:hover { color: var(--accent); border-color: var(--accent); }
.filter-chip.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 11px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 0; font-size: 14px; }
.page-btn-wide { min-width: 68px; }
.page-btn:hover, .page-btn.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.page-btn:disabled { opacity: .38; pointer-events: none; }
.page-gap { align-self: center; color: var(--muted); }

.prose-article {
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  line-height: 1.8;
}

.prose-article h1,
.prose-article h2,
.prose-article h3 { scroll-margin-top: 100px; color: var(--ink); font-weight: 750; line-height: 1.3; }
.prose-article h1 { margin-top: 0; font-size: 32px; }
.prose-article h2 { margin: 1.8em 0 .7em; padding-top: .2em; border-bottom: 0; font-size: 28px; }
.prose-article h2::before { margin-right: 10px; color: var(--accent); content: "#"; font-family: var(--font-mono); font-size: .55em; }
.prose-article h3 { margin: 1.5em 0 .6em; font-size: 20px; }
.prose-article p, .prose-article li { color: var(--text); font-size: 17px; }
.prose-article ul, .prose-article ol { padding-left: 1.4rem; }
.prose-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-article img { max-width: 100%; margin: 24px 0; border: 1px solid var(--line); border-radius: 0; }
.prose-article pre { position: relative; margin: 24px 0; overflow: auto; padding: 22px; color: #d9e9f8; background: var(--navy); border-radius: 0; }
.prose-article code { font-family: var(--font-mono); font-size: .88em; }
.prose-article :not(pre) > code { padding: 2px 5px; color: var(--accent); background: var(--accent-soft); }
.code-copy-btn { position: absolute; top: 10px; right: 10px; padding: 6px 9px; color: var(--cyan); background: var(--navy-2); border: 1px solid #275380; border-radius: 0; font-family: var(--font-mono); font-size: 12px; }

.toc-list a { display: block; padding: 10px 12px; color: var(--text); border-left: 2px solid transparent; font-size: 14px; }
.toc-list a:hover, .toc-list a.is-active { color: var(--ink); background: var(--accent-soft); border-left-color: var(--accent); }
.toc-h3 { padding-left: 24px !important; color: var(--muted) !important; font-size: 13px !important; }

.empty-state { padding: 56px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); text-align: center; }
.skeleton { border-radius: 0; background: linear-gradient(90deg, #eef2f7 25%, #dfe7f1 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; padding: 11px 16px; color: #fff; background: var(--navy); border: 1px solid #275380; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .2s ease; font-size: 14px; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.mobile-drawer { position: fixed; z-index: 80; inset: 0; display: none; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(3, 20, 46, .58); }
.mobile-drawer-panel { position: absolute; top: 0; right: 0; width: min(330px, 88vw); height: 100%; padding: 22px; background: #fff; border-left: 1px solid var(--line); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 36px; height: 36px; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: 22px; }
.mobile-nav { display: flex; flex-direction: column; padding-top: 14px; }
.mobile-nav .nav-link { padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .nav-link::after { display: none; }

.site-footer { margin-top: 0; color: #c8d8e8; background: var(--navy); border-top: 1px solid #17365f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 220px; align-items: start; gap: 44px; padding-top: 40px; padding-bottom: 32px; }
.logo-mark-light .brand-name { color: #fff; }
.footer-slogan { margin: 12px 0 0; color: #8ea9c5; font-size: 15px; }
.footer-links { display: flex; gap: 24px; padding-top: 8px; font-size: 15px; }
.footer-links a:hover { color: var(--cyan); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: #6f8daa; font-family: var(--font-mono); font-size: 12px; text-align: right; }
.footer-bottom { padding: 16px 24px; color: #6f8daa; border-top: 1px solid #17365f; font-family: var(--font-mono); font-size: 12px; text-align: center; }

.float-rail { position: fixed; z-index: 30; top: 50%; right: 16px; display: none; flex-direction: column; border: 1px solid var(--line); transform: translateY(-50%); }
.float-rail a { display: grid; width: 52px; height: 52px; place-items: center; padding: 5px; color: var(--accent); background: #fff; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; line-height: 1.3; text-align: center; }
.float-rail a:last-child { border-bottom: 0; }
.float-rail a:hover { color: #fff; background: var(--accent); }

.workflow-console { padding: 24px; color: #fff; background: var(--navy); border: 1px solid #164477; }
.console-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #17365f; }
.console-head span { display: flex; gap: 6px; }
.console-head i { display: block; width: 8px; height: 8px; background: #fb7185; }
.console-head i:nth-child(2) { background: #fbbf24; }
.console-head i:nth-child(3) { background: #34d399; }
.console-head b { color: #6ea8d9; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.console-steps { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.console-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; min-height: 68px; padding: 12px 16px; background: var(--navy-2); border-left: 2px solid var(--cyan); }
.console-steps li:nth-child(2) { margin-left: 24px; border-left-color: var(--accent); }
.console-steps li:nth-child(3) { margin-left: 48px; }
.console-steps li:nth-child(4) { margin-left: 72px; border-left-color: var(--success); }
.console-steps > li > span { color: var(--cyan); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.console-steps li:nth-child(2) > span { color: #75a8ff; }
.console-steps li:nth-child(4) > span { color: #4ade80; }
.console-steps strong, .console-steps small { display: block; }
.console-steps strong { font-size: 15px; }
.console-steps small { margin-top: 4px; color: #8ea9c5; font-size: 13px; }

.scene-card { display: block; min-height: 230px; padding: 24px; }
.scene-card > div { display: flex; align-items: center; justify-content: space-between; }
.scene-card > div span { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.scene-card > div b { color: var(--accent); font-family: var(--font-mono); font-size: 22px; }
.scene-card:first-child > div b { color: var(--cyan); }
.scene-card h3 { margin: 38px 0 8px; font-size: 21px; font-weight: 750; }
.scene-card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.scene-card em { display: block; margin-top: 25px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-style: normal; font-weight: 600; }
.home-prompt-list .prompt-card { grid-template-columns: 28px 1fr; padding: 15px 0; border-width: 0 0 1px; box-shadow: none; transform: none; }
.home-prompt-list .prompt-card .btn { display: none; }
.home-prompt-list .prompt-card h3 { font-size: 16px; }
.home-prompt-list .prompt-content { font-size: 14px; }

.page-intro { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.page-intro h1, .article-header h1, .about-hero h1 { margin: 10px 0 0; color: var(--ink); font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.page-intro p:last-child { max-width: 720px; margin: 17px 0 0; color: var(--text); font-size: 17px; line-height: 1.6; }
.page-intro-dark { color: #fff; background: var(--navy); border-color: #17365f; }
.page-intro-dark h1 { color: #fff; }
.page-intro-dark p:last-child { color: #b6cce1; }
.page-intro-dark .breadcrumb { color: #6f8daa; }
.page-intro-dark .tech-label { color: var(--cyan); }

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.result-head h2 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.result-head span { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.side-panel { padding: 20px; background: #fff; border: 1px solid var(--line); }
.side-panel h2 { margin: 0 0 12px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.side-panel p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.side-panel-dark { color: #fff; background: var(--navy); border-color: #17365f; }
.side-panel-dark p { color: #b6cce1; }
.side-panel-dark a { border-color: #17365f !important; color: #d9e9f8 !important; }
.side-panel-dark a:hover { color: var(--cyan) !important; }

.filter-section { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.filter-search { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 14px; gap: 10px; background: #fff; border: 1px solid var(--line); }
.filter-search:focus-within { border-color: var(--accent); }
.filter-search span { color: var(--muted); font-size: 18px; }
.filter-search input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.filter-search input::placeholder { color: var(--muted); font-size: 14px; }
.filter-row { display: grid; grid-template-columns: 54px 1fr; align-items: start; gap: 12px; margin-top: 14px; }
.filter-row strong { padding-top: 8px; font-family: var(--font-mono); font-size: 12px; }
.filter-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-sidebar { padding: 18px; background: #fff; border: 1px solid var(--line); }

.article-header { background: #fff; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 980px; font-size: clamp(34px, 4vw, 48px); }
.mobile-toc { display: none; background: #fff; border: 1px solid var(--line); }
.mobile-toc summary { padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 650; }
.mobile-toc .toc-list { padding: 0 10px 10px; }
.toc-panel { padding: 18px 16px; background: #fff; border: 1px solid var(--line); }
.article-next { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 18px; padding: 20px 22px; background: var(--accent-soft); border: 1px solid #bcd5f5; }
.article-next h2 { margin: 7px 0 4px; font-size: 19px; font-weight: 750; }
.article-next p:last-child { margin: 0; color: var(--text); font-size: 15px; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.article-header-inner { padding-top: 42px; padding-bottom: 42px; }
.article-breadcrumb { margin-bottom: 20px; }
.article-page-content { padding-top: 30px; padding-bottom: 40px; }
.article-static-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; align-items: start; gap: 28px; }
.article-static-toc { position: sticky; top: 96px; }
.article-static-aside { display: flex; flex-direction: column; gap: 18px; }
.author-link { display: inline-block; margin-top: 12px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.prose-article blockquote { margin: 24px 0; padding: 16px 18px; color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.related-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-title { margin: 8px 0 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.about-hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.about-hero h1 { max-width: 780px; }
.about-hero > .site-container > div:first-child > p:last-child { max-width: 730px; margin: 22px 0 0; color: var(--text); font-size: 17px; line-height: 1.65; }
.about-brand { padding: 28px; color: #fff; background: var(--navy); }
.about-lockup { display: flex; align-items: center; gap: 14px; }
.about-lockup .brand-mark { width: 64px; height: 64px; flex-basis: 64px; background: var(--navy-2); }
.about-lockup .brand-mark i { left: 12px; top: 12px; width: 8px; height: 40px; }
.about-lockup .brand-mark b { right: 12px; top: 12px; width: 8px; height: 40px; }
.about-lockup .brand-mark em { left: 18px; top: 27px; width: 30px; height: 9px; }
.about-lockup strong { font-size: 34px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.about-stats > div { padding: 14px; border: 1px solid #264c74; }
.about-stats strong, .about-stats span { display: block; }
.about-stats strong { color: var(--cyan); font-family: var(--font-mono); font-size: 24px; }
.about-stats span { margin-top: 5px; color: #8ea9c5; font-size: 13px; }
.principle-card { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 24px; background: var(--surface-alt); border: 1px solid var(--line); }
.principle-card > span { color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.principle-card h2 { margin: 0; font-size: 20px; font-weight: 750; }
.principle-card p { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.contact-strip { background: var(--accent-soft); border-block: 1px solid #bcd5f5; }
.contact-strip .site-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.contact-strip h2 { margin: 6px 0 0; font-size: 25px; font-weight: 750; }
.contact-strip a { color: var(--accent); font-family: var(--font-mono); font-size: 14px; font-weight: 600; }

@media (min-width: 1320px) { .float-rail { display: flex; } }

@media (max-width: 1023px) {
  .nav-inner { grid-template-columns: 1fr 220px auto; }
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { align-items: flex-start; text-align: left; }
  .article-static-layout { grid-template-columns: minmax(0, 1fr); }
  .article-static-toc, .article-static-aside { display: none; }
  .mobile-toc { display: block; margin-bottom: 20px; }
}

@media (max-width: 767px) {
  .site-container { width: min(100% - 40px, var(--container)); }
  .site-header { height: 64px; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-mark i { left: 6px; top: 6px; width: 4px; height: 18px; }
  .brand-mark b { right: 6px; top: 6px; width: 4px; height: 18px; }
  .brand-mark em { left: 8px; top: 13px; width: 14px; height: 4px; }
  .brand-name { font-size: 20px; }
  .search-wrap { display: none; }
  .hero-title { font-size: 36px; line-height: 1.08; }
  .section-title { font-size: 28px; }
  .article-visual { display: none; }
  .article-card-link { display: flex; min-height: 116px; }
  .article-card-link::before { width: 54px; flex: 0 0 54px; color: var(--cyan); background: var(--navy); content: "↗"; display: grid; place-items: start center; padding-top: 18px; font-family: var(--font-mono); font-size: 12px; }
  .article-card-body { flex: 1; padding: 17px; }
  .article-card-title { margin-top: 6px; font-size: 17px; }
  .article-card-description { display: none; }
  .card-meta { margin-top: 10px; }
  .tool-card { min-height: 0; padding: 18px; }
  .tool-name { margin-top: 12px; font-size: 18px; }
  .prompt-card { grid-template-columns: 28px 1fr; align-items: start; padding: 16px; }
  .prompt-card .btn { grid-column: 2; justify-self: start; }
  .prompt-content { white-space: normal; }
  .workflow-console { padding: 16px; }
  .console-steps li:nth-child(n) { margin-left: 0; }
  .scene-card { min-height: 0; padding: 18px; }
  .scene-card > div { align-items: flex-start; }
  .scene-card h3 { margin-top: 12px; font-size: 18px; }
  .scene-card em { margin-top: 14px; }
  .page-intro h1, .about-hero h1 { font-size: 34px; }
  .page-intro p:last-child { font-size: 16px; }
  .filter-row { grid-template-columns: 1fr; gap: 4px; }
  .filter-row strong { padding-top: 0; }
  .result-head h2 { font-size: 23px; }
  .article-next { align-items: flex-start; flex-direction: column; }
  .article-header-inner { padding-top: 30px; padding-bottom: 30px; }
  .article-page-content { padding-top: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .about-hero > .site-container > div:first-child > p:last-child { font-size: 16px; }
  .principle-card { grid-template-columns: 42px 1fr; padding: 17px; }
  .contact-strip .site-container { align-items: flex-start; flex-direction: column; }
  .prose-article { padding: 22px 18px; }
  .prose-article h2 { font-size: 23px; }
  .prose-article p, .prose-article li { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .footer-meta { align-items: flex-start; }
}
