:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --surface: #f1f4f2;
  --surface-strong: #e1e9e4;
  --ink: #1d2522;
  --muted: #58645e;
  --accent: #09634f;
  --on-accent: #ffffff;
  --serif: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); min-height: 80px; }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.site-header nav { gap: 30px; }
.site-header .nav-start { background: var(--accent); color: var(--on-accent); border-radius: 30px; padding: 8px 20px; text-decoration: none; }
.site-header .nav-start:hover { transform: scale(1.04); }
.button { border-radius: 40px; gap: 20px; padding: 14px 28px; font-weight: 500; }
.button:hover { transform: scale(1.04); }
.button svg { transition: transform 200ms var(--ease); }
.button:hover svg { transform: translateX(4px); }
.motion-hero { text-align: center; padding-top: 44px; padding-bottom: 36px; }
.motion-hero h1 { font-family: var(--sans); font-size: clamp(48px, 6.5vw, 94px); font-weight: 600; line-height: 1.3; letter-spacing: -.065em; margin: 0 0 18px; }
.title-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-inline: 3px; margin-inline: -3px; }
.title-mask > span { display: inline-block; }
.hero-description { font-size: var(--lead); line-height: 1.85; max-width: 35em; margin: 0 auto 24px; }
.hero-start { font-size: var(--body); }
.tool-showcase { padding-top: 15px; padding-bottom: 68px; overflow: hidden; }
.screen-depth { position: relative; isolation: isolate; padding: 16px 0 0; perspective: 1800px; }
.tool-screen { position: relative; z-index: 2; width: min(84%, 1030px); margin-inline: auto; background: var(--surface); border-radius: 24px; overflow: hidden; transform: translateY(var(--stage-y, 18px)) rotateX(var(--stage-rotate, 5deg)) scale(var(--stage-scale, .94)); transform-origin: center 65%; will-change: transform; }
.tool-image { display: block; cursor: zoom-in; background: var(--surface-strong); }
.tool-image img { width: 100%; height: clamp(250px, 34vw, 450px); object-fit: cover; object-position: top; }
.screen-caption { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 30px; background: var(--surface); }
.screen-caption strong { font-size: var(--body); font-weight: 600; }
.screen-caption p { font-size: var(--small); margin-top: 3px; }
.screen-caption > a { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; font-size: var(--small); }
.screen-caption > a:hover { text-decoration: underline; }
.screen-caption svg { width: 18px; height: 18px; }
.screen-side { position: absolute; top: 60px; width: 34%; height: 76%; z-index: 1; border-radius: 22px; overflow: hidden; background: var(--surface); }
.screen-side img { height: 100%; width: 100%; object-fit: cover; object-position: top; }
.side-left { left: 0; transform: translateX(var(--left-shift, 0px)) rotateY(22deg) scale(.82); }
.side-right { right: 0; transform: translateX(var(--right-shift, 0px)) rotateY(-22deg) scale(.82); }
.tool-tabs { display: flex; position: relative; isolation: isolate; align-items: center; justify-content: center; gap: 2px; width: fit-content; max-width: 100%; padding: 5px; background: var(--surface); border-radius: 40px; margin: 34px auto 0; }
.tool-tabs button { position: relative; z-index: 1; font-size: var(--small); color: var(--ink); background: transparent; border: 0; padding: 12px 24px; border-radius: 30px; min-height: 44px; }
.tool-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab-indicator { position: absolute; left: 5px; top: 5px; bottom: 5px; width: var(--tab-width, 111px); background: #d6e6dd; border-radius: 30px; transform: translateX(var(--tab-x, 0px)); transition: transform 450ms var(--ease), width 450ms var(--ease); pointer-events: none; }
.tool-tabs button:active { transform: scale(.96); }
.reading-route { grid-template-columns: 1fr 1.15fr; padding-block: 74px 100px; gap: 100px; }
.route-heading h2 { font-family: var(--sans); font-size: clamp(38px, 4.1vw, 58px); line-height: 1.32; letter-spacing: -.05em; margin-bottom: 24px; }
.route-heading p { font-size: var(--body); color: var(--muted); max-width: 23em; }
.route-links { display: flex; flex-direction: column; gap: 0; }
.route-links a { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 27px 30px; }
.route-links a:nth-child(2) { background: var(--surface); }
.route-links strong { font-size: var(--lead); font-weight: 600; }
.route-links span { font-size: var(--body); line-height: 1.8; margin-top: 8px; }
.route-links a:hover { transform: translateX(6px); }
.route-links a:hover strong { text-decoration: none; }
.route-links svg { transition: transform 250ms var(--ease); }
.route-links a:hover svg { transform: translateX(6px); }
.directory-field { background: #f5f7f6; padding-block: 80px 60px; }
.home-layout { gap: 70px; grid-template-columns: 270px minmax(0, 1fr); padding-block: 0; }
.blog-aside { top: 110px; }
.about-note { background: transparent; padding: 4px 0 30px; }
.about-note h2 { font-size: 28px; line-height: 1.45; font-weight: 600; letter-spacing: -.035em; margin-bottom: 24px; }
.about-note p { font-size: var(--body); max-width: 15em; }
.about-note a { margin-top: 26px; }
.aside-resources { padding-top: 30px; }
.index-heading { margin-bottom: 26px; }
.index-heading h2 { font-size: var(--heading); font-weight: 600; line-height: 1.4; letter-spacing: -.05em; }
.post-search > div { background: var(--paper); border-radius: 18px; padding: 6px; }
.post-search label { font-size: var(--small); }
.post-search input { padding: 14px 16px; }
.post-search button { background: var(--accent); color: var(--on-accent); border-radius: 50%; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.category-filters { gap: 6px; margin-block: 8px; padding-bottom: 20px; }
.category-filters button { border-radius: 30px; padding: 9px 14px; }
.category-filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); }
.post-row { padding: 27px 26px; margin-inline: 0; margin-bottom: 10px; gap: 30px; grid-template-columns: minmax(0,1fr) 170px; border-radius: 24px; background: var(--paper); }
.post-row:nth-child(even) { background: var(--paper); }
.post-row:hover { transform: translateY(-3px); }
.post-row-copy h3 { font-weight: 600; }
.post-thumbnail { border-radius: 16px; }
.post-thumbnail img { aspect-ratio: 1.4; }
.post-row-copy p { font-size: 16px; line-height: 1.85; }
.post-row-text { grid-template-columns: minmax(0,1fr); padding-block: 26px; }
.closing-note { grid-template-columns: 1fr auto; gap: 28px 90px; padding-top: 100px; padding-bottom: 100px; margin-bottom: 0; align-items: center; }
.closing-note h2 { grid-row: auto; font-size: clamp(34px, 4vw, 54px); line-height: 1.4; letter-spacing: -.04em; font-weight: 600; }
.closing-note p { grid-column: 1; max-width: 35em; color: var(--muted); }
.closing-note .button { grid-column: 2; grid-row: 1 / 3; font-size: var(--body); }
.site-footer { background: #edf2ef; color: var(--ink); }
.home-page .site-footer { position: static; }
.home-page main { position: static; }
.footer-title { font-size: var(--heading); font-weight: 600; }
.article-page { background: #f5f7f6; }
.article-page .site-header { background: #f5f7f6; }
.article-heading h1 { font-weight: 600; letter-spacing: -.045em; }
.article-body { border-radius: 28px; }
.toc { border-radius: 22px; background: #e9eeeb; }
.toc nav a { border-radius: 10px; }
.article-aside { top: 105px; }
.article-heading .post-meta { font-variant-numeric: tabular-nums; }
.chapter { scroll-margin-top: 105px; }
.chapter h2 { font-weight: 600; }
.image-link { border-radius: 18px; overflow: hidden; }
.simple-page h1 { font-weight: 600; }
.archive-year li { border-radius: 18px; }
dialog { border-radius: 24px; }
.dialog-toolbar button { border-radius: 24px; }
@keyframes title-unmask { from { transform: translateY(110%) rotate(3deg); } to { transform: translateY(0) rotate(0); } }
@media (prefers-reduced-motion: no-preference) {
  .title-mask > span { animation: title-unmask 1100ms var(--ease) both; }
  .title-mask:nth-child(2) > span { animation-delay: 110ms; }
  .hero-description { animation-delay: 180ms; }
  .hero-start { animation-delay: 260ms; }
  .screen-depth { animation-duration: 1200ms; animation-delay: 220ms; }
}
@media (max-width: 1100px) {
  .tool-screen { width: 87%; }
  .reading-route { gap: 46px; }
  .home-layout { grid-template-columns: 220px minmax(0,1fr); gap: 45px; }
  .post-row { grid-template-columns: minmax(0,1fr) 125px; gap: 22px; padding: 23px; }
  .post-row-text { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .site-header { min-height: 76px; }
  .site-header nav { gap: 20px; }
  .site-header .nav-start { padding-inline: 15px; }
  .motion-hero { padding-top: 38px; padding-bottom: 28px; }
  .motion-hero h1 { font-size: clamp(42px, 7vw, 70px); }
  .hero-description { font-size: var(--body); }
  .tool-showcase { padding-bottom: 45px; }
  .tool-image img { height: 310px; }
  .screen-caption { padding: 18px 22px; }
  .screen-side { top: 40px; height: 72%; }
  .reading-route { padding-block: 50px 68px; gap: 40px; grid-template-columns: .9fr 1.1fr; }
  .route-heading h2 { font-size: 36px; }
  .route-links a { padding: 24px; }
  .route-links strong { font-size: var(--body); }
  .route-links span { font-size: 16px; }
  .directory-field { padding-block: 55px 45px; }
  .home-layout { grid-template-columns: 1fr; }
  .blog-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
  .about-note { padding: 0; }
  .about-note p { max-width: 30em; }
  .about-note h2 { font-size: 26px; }
  .aside-resources { padding-top: 4px; }
  .post-row { grid-template-columns: minmax(0,1fr) 180px; }
  .post-row-text { grid-template-columns: 1fr; }
  .closing-note { grid-template-columns: 1fr 1fr; gap: 24px 40px; padding-block: 65px; }
  .closing-note h2 { font-size: 34px; }
  .closing-note .button { grid-column: 2; }
}
@media (max-width: 540px) {
  .site-header { min-height: 72px; flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; padding-block: 15px; }
  .brand { font-size: 17px; }
  .site-header nav { width: auto; gap: 18px; }
  .site-header nav a { font-size: 13px; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .site-header .nav-start { display: inline-block; font-size: 13px; padding: 7px 13px; }
  .motion-hero { padding-top: 34px; padding-bottom: 26px; }
  .motion-hero h1 { font-size: clamp(33px, 9.1vw, 49px); line-height: 1.4; margin-bottom: 16px; letter-spacing: -.065em; white-space: nowrap; }
  .title-mask { padding-bottom: 2px; }
  .hero-description { font-size: 16px; line-height: 1.85; margin-bottom: 23px; }
  .hero-start { min-height: 48px; font-size: 16px; padding: 11px 23px; }
  .tool-showcase { padding-inline: 12px; padding-top: 0; padding-bottom: 40px; }
  .screen-depth { padding-top: 4px; }
  .tool-screen { width: 94%; border-radius: 19px; }
  .tool-image img { height: 235px; object-position: 37% top; }
  .screen-side { top: 30px; width: 36%; height: 72%; border-radius: 16px; }
  .screen-caption { display: block; padding: 17px 19px; }
  .screen-caption strong { font-size: 16px; }
  .screen-caption p { font-size: 13px; line-height: 1.75; }
  .screen-caption > a { margin-top: 10px; font-size: 13px; padding-block: 3px; }
  .tool-tabs { margin-top: 24px; padding: 4px; gap: 0; }
  .tool-tabs button { font-size: 13px; padding: 10px 15px; min-height: 44px; }
  .tab-indicator { top: 4px; bottom: 4px; left: 4px; }
  .reading-route { grid-template-columns: 1fr; padding-top: 22px; padding-bottom: 54px; gap: 30px; }
  .route-heading h2 { font-size: 34px; margin-bottom: 17px; }
  .route-heading p { font-size: 16px; max-width: 100%; }
  .route-links a { padding: 22px 20px; align-items: center; }
  .route-links a > div { min-width: 0; }
  .route-links strong { font-size: var(--body); }
  .route-links span { display: block; margin-top: 7px; font-size: 16px; }
  .directory-field { padding-block: 44px 38px; }
  .index-heading h2 { font-size: 25px; line-height: 1.45; max-width: 10em; }
  .index-heading { gap: 14px; }
  .index-heading p { font-size: 13px; }
  .post-search input { padding: 12px 11px; }
  .post-search > div { border-radius: 15px; }
  .post-search button { height: 44px; width: 44px; }
  .category-filters { gap: 5px 3px; margin-block: 6px 0; }
  .category-filters button { padding: 8px 11px; font-size: 13px; }
  .post-row { grid-template-columns: minmax(0,1fr) 80px; padding: 21px 18px; margin: 0 0 10px; gap: 15px; border-radius: 20px; }
  .post-row-copy h3 { font-size: 17px; }
  .post-row-copy p { font-size: 16px; }
  .post-thumbnail { border-radius: 12px; }
  .post-thumbnail img { aspect-ratio: 1; }
  .post-row-text { grid-template-columns: 1fr; }
  .post-row-copy .post-meta { margin-top: 15px; }
  .blog-aside { grid-template-columns: 1fr; gap: 30px; }
  .about-note h2 { font-size: 28px; margin-bottom: 18px; }
  .about-note h2 br { display: none; }
  .about-note p { max-width: none; }
  .aside-resources { padding-bottom: 0; }
  .closing-note { grid-template-columns: 1fr; padding-block: 55px; gap: 24px; }
  .closing-note h2 { font-size: 34px; grid-column: 1; }
  .closing-note p { grid-column: 1; }
  .closing-note .button { grid-column: 1; grid-row: auto; justify-self: start; font-size: 16px; }
  .article-body { border-radius: 0; }
  .article-aside { position: static; }
  .chapter { scroll-margin-top: 92px; }
  .image-link { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-screen { transform: none; will-change: auto; }
  .screen-side { display: none; }
}
@media (scripting: none) {
  .tool-tabs { display: none; }
  .tool-panel[hidden] { display: block !important; margin-top: 24px; }
  .screen-side { display: none; }
  .tool-screen { transform: none; }
}
