:root {
  --ink: #071419;
  --ink-2: #10272e;
  --paper: #f2f1e8;
  --paper-2: #e5e4d8;
  --cyan: #46e4e2;
  --cyan-dark: #0e868b;
  --coral: #ff785f;
  --muted: #65757a;
  --line: rgba(7, 20, 25, .18);
  --radius: 4px;
  --shadow: 12px 14px 0 rgba(7, 20, 25, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.72; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--cyan-dark); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); background: var(--cyan); color: var(--ink); padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { transform: none; }
.utility-bar { background: var(--ink); color: #b8d1d4; font-size: .76rem; letter-spacing: .04em; }
.utility-inner, .header-inner, .footer-grid, .footer-bottom { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-links { display: flex; gap: 1.2rem; }
.utility-links a { color: #eaf8f8; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(242, 241, 232, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 190px; text-decoration: none; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; background: var(--cyan); color: var(--ink); font-weight: 900; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: .08em; }
.brand small { margin-top: .1rem; color: var(--muted); font-size: .7rem; }
.primary-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(.7rem, 1.5vw, 1.35rem); font-size: .88rem; font-weight: 700; }
.primary-nav a { text-decoration: none; white-space: nowrap; }
.primary-nav .tool-link { padding: .55rem .75rem; border: 1px solid var(--ink); background: white; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--ink); background: var(--cyan); color: var(--ink); font-weight: 800; }
main { min-height: 60vh; }
.content-shell, .article-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.article-shell { max-width: 860px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1.2rem 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 8vw, 8rem) 0; }
.hero-copy { min-width: 0; }
.eyebrow, .section-label { margin: 0 0 .75rem; color: var(--cyan-dark); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(4rem, 10vw, 8.8rem); line-height: .9; letter-spacing: -.08em; font-weight: 900; }
.hero-lead { max-width: 690px; margin: 2rem 0 .8rem; font-size: clamp(1.22rem, 2vw, 1.65rem); line-height: 1.5; font-weight: 700; }
.hero-boundary { max-width: 660px; color: #40565c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 850; cursor: pointer; }
.button.primary { background: var(--cyan); box-shadow: 5px 5px 0 var(--ink); }
.button.secondary { background: transparent; }
.poster-stack { position: relative; min-height: 500px; min-width: 0; }
.poster-card { position: absolute; border: 1px solid var(--ink); }
.poster-back { inset: 30px 8px 42px 38px; transform: rotate(5deg); background: var(--coral); box-shadow: var(--shadow); }
.poster-main { inset: 0 48px 70px 0; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink-2); color: var(--paper); box-shadow: 12px 14px 0 var(--cyan); }
.poster-main::before { content: ""; position: absolute; width: 120px; height: 120px; right: 0; top: 62px; border-radius: 50%; border: 30px solid var(--cyan); opacity: .9; }
.poster-code { color: var(--cyan); font: 700 .74rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.poster-main strong { position: relative; z-index: 1; margin: 2.4rem 0 auto; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.05em; }
.poster-grid { position: absolute; right: 2.4rem; bottom: 5rem; display: grid; grid-template-columns: repeat(2, 28px); gap: 5px; }
.poster-grid i { height: 28px; background: var(--coral); }
.poster-grid i:nth-child(2), .poster-grid i:nth-child(3) { background: var(--cyan); }
.poster-foot { font: 600 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #9ebdc2; }
.desk-slip { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(280px, 78%); padding: 1rem 1.2rem; background: white; border: 1px solid var(--ink); transform: rotate(-2deg); box-shadow: 7px 7px 0 rgba(7, 20, 25, .16); }
.desk-slip span, .desk-slip small { display: block; color: var(--muted); font-size: .7rem; }
.desk-slip strong { display: block; margin: .2rem 0; font: 900 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-block { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-block.compact { width: 100%; padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 7rem); }
h2 { margin: 0 0 1.1rem; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { margin: 0 0 .6rem; font-size: 1.18rem; line-height: 1.35; }
p { margin: 0 0 1rem; }
.prose-block { font-size: 1.08rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.channel-card { min-width: 0; min-height: 310px; padding: 1.5rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.34); }
.channel-card:nth-child(even) { background: rgba(70,228,226,.09); }
.index-number { display: block; margin-bottom: 2.5rem; color: var(--cyan-dark); font: 800 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.channel-card h3 a, .editorial-tile h3 a, .desk-card h3 a, .tool-card h3 a { text-decoration: none; }
.text-link { display: inline-block; margin-top: .6rem; color: var(--cyan-dark); font-weight: 800; }
.cyan-panel { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2.5rem; padding-inline: clamp(1.5rem, 5vw, 5rem); background: var(--cyan); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.method-index { font: 900 clamp(4rem, 10vw, 8rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .22; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(7,20,25,.25); border: 1px solid var(--ink); }
.steps-grid article { min-width: 0; padding: 1.25rem; background: var(--paper); }
.steps-grid span { font: 800 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan-dark); }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.editorial-tile { min-width: 0; min-height: 285px; display: flex; flex-direction: column; padding: 1.4rem; background: white; border: 1px solid var(--line); }
.editorial-tile:nth-child(3n+2) { transform: translateY(12px); }
.editorial-tile p { color: #46595e; }
.editorial-tile .text-link { margin-top: auto; }
.tile-label, .tool-status { display: inline-flex; align-self: flex-start; margin-bottom: 1.8rem; padding: .22rem .5rem; background: var(--ink); color: var(--cyan); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.split-panel { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.tag-cloud a, .tag-row a { padding: .48rem .72rem; border: 1px solid var(--ink); background: white; text-decoration: none; font-weight: 700; }
.tool-grid, .desk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool-card, .desk-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.desk-card { position: relative; padding-left: 2.7rem; }
.desk-dot { position: absolute; left: 1.2rem; top: 1.75rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,120,95,.18); }
.faq-block { max-width: 900px; }
.faq-block details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq-block details:last-child { border-bottom: 1px solid var(--line); }
.faq-block summary { cursor: pointer; font-weight: 800; }
.faq-block details p { padding-top: .8rem; color: #46595e; }
.page-heading { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-heading h1 { max-width: 930px; margin: 0; font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-lead { max-width: 760px; margin: 1.4rem 0 .6rem; font-size: clamp(1.1rem, 2vw, 1.38rem); font-weight: 650; }
.page-note { max-width: 760px; color: var(--muted); }
.check-list { margin: 1rem 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; background: var(--cyan); border: 1px solid var(--ink); }
.boundary-box, .summary-card { margin: 1rem 0 4rem; padding: 1.3rem; border-left: 6px solid var(--coral); background: white; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.summary-card { margin: 2rem 0; border-left-color: var(--cyan-dark); }
.summary-card strong { display: block; margin-bottom: .4rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.tag-row a { font-size: .78rem; padding: .28rem .55rem; }
.article-section { padding: 2.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.article-section h2 { font-size: clamp(1.65rem, 3.5vw, 2.45rem); }
.article-section.conclusion { margin-top: 1rem; padding-inline: clamp(1rem, 4vw, 2.4rem); background: rgba(70,228,226,.1); border: 1px solid rgba(14,134,139,.35); }
.tag-explainer { max-width: 800px; }
.tool-panel { padding: clamp(1rem, 4vw, 2rem); background: white; border: 1px solid var(--ink); box-shadow: var(--shadow); }
.check-options, .worksheet-fields { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.check-option { min-height: 48px; display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 1px solid var(--line); cursor: pointer; }
.check-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--cyan-dark); }
.worksheet-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.worksheet-fields label { display: grid; gap: .35rem; font-weight: 750; }
.worksheet-fields input { min-width: 0; min-height: 46px; padding: .6rem .7rem; border: 1px solid var(--ink); background: var(--paper); }
.tool-panel .button { margin-right: .6rem; }
.tool-result { margin-top: 1.2rem; padding: 1rem; background: var(--ink); color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.error-page { padding-bottom: 5rem; }
.site-footer { margin-top: 5rem; padding: 4rem 0 1.2rem; background: var(--ink); color: #d8e5e5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { color: white; }
.footer-note p { max-width: 340px; margin-top: 1rem; color: #9fb5b8; }
.footer-title { display: block; margin-bottom: .8rem; color: var(--cyan); font-size: .78rem; letter-spacing: .12em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #d8e5e5; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #8fa8ac; font-size: .72rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); }
  .primary-nav { gap: .65rem; font-size: .8rem; }
  .channel-grid, .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-tile:nth-child(3n+2) { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .utility-links { display: none; }
  .header-inner { min-height: 70px; flex-wrap: wrap; padding: .65rem 0; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .primary-nav { order: 3; width: 100%; display: none; margin: 0; padding: .5rem 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
  .primary-nav[data-open="true"] { display: grid; }
  .primary-nav a { min-height: 44px; display: flex; align-items: center; padding: .5rem; white-space: normal; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); }
  .poster-stack { min-height: 440px; max-width: 560px; width: 100%; }
  .intro-grid, .split-panel { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .cyan-panel { grid-template-columns: minmax(0, 1fr); }
  .method-index { display: none; }
}
@media (max-width: 680px) {
  .utility-inner, .header-inner, .footer-grid, .footer-bottom, .hero, .section-block, .content-shell, .article-shell { width: min(100% - 28px, 1180px); }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { padding: 3.4rem 0 4.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .poster-stack { min-height: 390px; }
  .poster-back { inset: 25px 0 50px 30px; }
  .poster-main { inset: 0 28px 65px 0; padding: 1.5rem; box-shadow: 8px 10px 0 var(--cyan); }
  .poster-main::before { width: 86px; height: 86px; border-width: 22px; top: 55px; }
  .poster-main strong { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .poster-grid { right: 1.5rem; bottom: 4rem; }
  .channel-grid, .editorial-grid, .tool-grid, .desk-grid, .steps-grid, .worksheet-fields { grid-template-columns: minmax(0, 1fr); }
  .channel-card { min-height: auto; }
  .section-heading { align-items: start; flex-direction: column; gap: .3rem; }
  .section-block { padding: 3.6rem 0; }
  .cyan-panel { width: calc(100% - 28px); padding-inline: 1rem; }
  .page-heading { padding-top: 3rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
