/* 全站颜色、字体与间距从这里调整。 */
:root {
  color-scheme: dark;
  --background: #080d0a;
  --surface: #101a13;
  --text: #e5f0e8;
  --muted: #9aafa0;
  --accent: #a3ff70;
  --accent-hover: #beff9a;
  --on-accent: #102009;
  --line: #293d2e;
  --sans: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
  --gutter: clamp(24px, 5.5vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg, img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.page-padding { padding-inline: var(--gutter); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 10px 20px; transform: translateY(-160%); border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { transform: translateY(0); }

/* 导航默认可见；脚本只在小屏幕上启用折叠菜单。 */
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; color: var(--accent); }
.brand-dot { color: var(--accent); }
.site-nav { display: flex; gap: clamp(26px, 3vw, 52px); align-items: center; }
.site-nav a { position: relative; padding-block: 10px; font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { content: ""; width: 16px; height: 2px; background: var(--accent); position: absolute; bottom: 2px; left: calc(50% - 8px); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; }

.hero { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; padding-top: 44px; }
.hero-copy { padding-block: 40px 74px; }
.greeting { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.small-spark { font-family: var(--mono); font-size: 19px; line-height: 1; color: var(--accent); }
h1 { font-family: var(--sans); font-size: clamp(54px, 5.75vw, 106px); font-weight: 700; line-height: 1.32; letter-spacing: -.06em; }
.hero-intro { margin-top: 27px; color: var(--muted); font-size: 15px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 22px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding-block: 8px; font-size: 14px; }
.text-link:hover { color: var(--accent); }
.hero-art { position: relative; min-width: 0; display: grid; align-items: center; padding-bottom: 62px; }
.garden-image { width: 100%; height: auto; }
.art-caption { position: absolute; top: 6px; right: 8%; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; color: var(--accent); }
.art-caption span { font-family: var(--mono); font-size: 24px; }
.now-note { position: absolute; right: -5px; bottom: 42px; width: 208px; padding: 25px 27px 22px; background: var(--surface); border: 1px solid #44623c; border-top: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 12px 32px #0006; }
.note-heading { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px #a3ff7055; }
.now-note > p + p { margin-top: 10px; font-family: var(--sans); font-size: 22px; line-height: 1.6; }
.note-sign { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.hero-bottom a { display: flex; align-items: center; gap: 16px; padding: 4px 0 4px 12px; }
.hero-bottom a:hover { color: var(--accent); }

.section-space { padding-block: 90px 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-intro { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.section-heading h2 { font-family: var(--sans); font-size: clamp(32px, 3vw, 46px); font-weight: 700; line-height: 1.4; letter-spacing: -.04em; }
.heading-dot { margin-left: 3px; color: var(--accent); }
.section-side-note { padding-bottom: 7px; color: var(--muted); font-size: 12px; }
.note-entry { display: grid; grid-template-columns: 148px 1fr 48px; align-items: center; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-date { align-self: start; padding-top: 13px; }
.note-date time { font-family: var(--mono); font-size: 39px; line-height: 1.1; letter-spacing: -2px; }
.date-divider { padding-inline: 7px; font-size: 28px; color: var(--muted); }
.date-year { display: block; margin-top: 9px; color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: 0; }
.entry-category { color: var(--accent); font-size: 11px; }
.note-content h3 { margin-top: 8px; font-family: var(--sans); font-size: 28px; font-weight: 600; line-height: 1.5; }
.note-content p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.entry-open { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; }
.entry-open svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.note-entry:hover h3 { color: var(--accent); }
.note-entry:hover .entry-open { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.quiet-note { margin-top: 20px; color: var(--muted); font-size: 12px; }

.projects-section { padding-bottom: 100px; }
.project-placeholder { position: relative; display: grid; grid-template-columns: .85fr 1.6fr; align-items: center; gap: 24px; min-height: 320px; padding: 42px clamp(24px, 5vw, 80px); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.project-drawing { position: relative; justify-self: center; width: 180px; height: 180px; }
.shape { position: absolute; display: block; }
.shape-one { width: 88px; height: 88px; top: 3px; left: 21px; border: 1px solid #547b42; border-radius: 4px; background: #203719; }
.shape-two { width: 99px; height: 86px; bottom: 8px; left: 7px; border: 1px solid var(--accent); border-radius: 4px; background: #172d13; }
.shape-three { width: 80px; height: 81px; right: 1px; bottom: 4px; border: 2px solid var(--accent); border-radius: 4px; transform: translate(8px, 8px); }
.project-drawing svg { position: absolute; top: 14px; right: 6px; width: 38px; stroke: var(--accent); stroke-width: 1.5; }
.project-tag { color: var(--accent); font-size: 11px; }
.project-message h3 { margin-top: 12px; font-family: var(--sans); font-size: 36px; font-weight: 600; line-height: 1.5; }
.project-message p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 2; }
.project-stamp { position: absolute; top: 32px; right: 32px; display: grid; place-items: center; width: 63px; height: 63px; border: 1px solid #44623c; border-radius: 4px; color: var(--accent); font-family: var(--sans); font-size: 12px; line-height: 1.5; text-align: center; }

.about-section { position: relative; display: grid; grid-template-columns: .65fr 1.35fr; align-items: start; gap: 36px; padding-block: 80px 94px; border-top: 1px solid var(--line); background: var(--surface); }
.about-symbol { padding-top: 18px; color: var(--accent); font-family: var(--mono); font-size: clamp(56px, 6vw, 100px); line-height: 1; text-align: center; }
.about-copy h2 { margin-bottom: 24px; font-family: var(--sans); font-size: clamp(32px, 3.4vw, 50px); font-weight: 700; line-height: 1.5; letter-spacing: -.04em; }
.about-copy > p:not(.section-intro) { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 2; }
.back-to-top { position: absolute; right: var(--gutter); bottom: 34px; display: flex; gap: 20px; align-items: center; font-size: 11px; color: var(--muted); }
.back-to-top:hover { color: var(--accent); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px; color: var(--muted); font-size: 11px; }

/* 详情页沿用主页的导航和文字系统，正文保持适合阅读的宽度。 */
.article-page { padding-block: 56px 100px; }
.article-shell { width: min(100%, 760px); margin-inline: auto; }
.article-back { display: inline-flex; align-items: center; gap: 12px; padding-block: 8px; color: var(--muted); font-size: 13px; }
.article-back:hover { color: var(--accent); }
.article-header { margin-top: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-block: 14px 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.5; }
.article-meta { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }
.article-body { padding-top: 32px; font-size: 16px; line-height: 2.1; }
.article-body p + p { margin-top: 22px; }
.article-body h2 { margin-block: 40px 16px; font-family: var(--sans); font-size: 27px; font-weight: 600; }
.article-body blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); font-family: var(--sans); font-size: 20px; }
.article-end { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.error-page { display: grid; place-items: center; min-height: 65vh; padding-block: 60px; text-align: center; }
.error-code { color: var(--accent); font-family: var(--mono); font-size: 100px; line-height: 1.3; }
.error-page h1 { margin-block: 20px 14px; font-size: clamp(30px, 5vw, 48px); }
.error-page p { margin-bottom: 28px; color: var(--muted); font-size: 14px; }

@media (min-width: 1700px) {
  .hero { padding-top: 60px; }
  .hero-copy { padding-top: 65px; }
  .hero-art { max-width: 720px; justify-self: center; }
  .hero-intro { font-size: 17px; }
}

@media (max-width: 1000px) {
  .site-header { min-height: 92px; }
  .hero { padding-top: 24px; grid-template-columns: 1.15fr 1fr; }
  .hero-copy { padding-block: 30px 60px; }
  h1 { font-size: 58px; }
  .hero-intro { font-size: 13px; }
  .hero-actions { gap: 19px; }
  .now-note { bottom: 55px; right: 0; width: 169px; padding: 20px; }
  .now-note > p + p { font-size: 19px; }
  .art-caption { top: 28px; right: 0; font-size: 12px; }
  .section-space { padding-top: 68px; }
  .project-placeholder { grid-template-columns: .75fr 1.3fr; gap: 34px; }
  .project-stamp { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 10px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .site-header { min-height: 86px; flex-wrap: wrap; gap: 0; padding-block: 18px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 30px; height: 30px; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 12px; }
  .menu-label { font-size: 12px; }
  .menu-icon { position: relative; width: 20px; height: 12px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
  .menu-toggle[aria-expanded="true"] .menu-icon { height: 0; border-bottom: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; top: -1.5px; width: 20px; border-top: 1.5px solid; transform: rotate(90deg); }
  .site-nav { width: 100%; justify-content: space-between; gap: 16px; padding-top: 18px; }
  .site-nav a { min-width: 44px; text-align: center; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 12px; gap: 0; }
  .hero-copy { padding-block: 22px 12px; }
  .greeting { margin-bottom: 23px; font-size: 12px; }
  h1 { font-size: clamp(46px, 10.2vw, 72px); letter-spacing: -.055em; }
  .hero-intro { margin-top: 24px; font-size: 14px; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 27px; gap: 24px; }
  .button { min-height: 50px; padding-inline: 18px; font-size: 13px; gap: 13px; }
  .text-link { font-size: 13px; gap: 10px; }
  .hero-art { width: min(100%, 470px); margin: 28px auto 6px; padding: 0 18px 28px 0; }
  .garden-image { width: 95%; }
  .art-caption { top: 0; right: 5%; font-size: 12px; }
  .art-caption span { font-size: 27px; }
  .now-note { bottom: 15px; right: 8px; width: 156px; padding: 20px; }
  .note-heading { font-size: 10px; }
  .now-note > p + p { font-size: 18px; }
  .note-sign { margin-top: 9px; font-size: 9px; }
  .hero-bottom { margin-top: 20px; font-size: 10px; padding-block: 16px; }
  .section-space { padding-top: 60px; padding-bottom: 16px; }
  .section-heading { margin-bottom: 27px; }
  .section-intro { font-size: 11px; margin-bottom: 8px; }
  .section-heading h2 { font-size: 32px; }
  .section-side-note { display: none; }
  .note-entry { grid-template-columns: 61px 1fr 28px; gap: 17px; padding-block: 25px; }
  .note-date { padding-top: 10px; }
  .note-date time { font-size: 20px; letter-spacing: -1px; white-space: nowrap; }
  .date-divider { padding-inline: 2px; font-size: 18px; }
  .date-year { margin-top: 8px; font-size: 10px; }
  .note-content h3 { font-size: clamp(18px, 5.5vw, 22px); }
  .note-content p { font-size: 12px; line-height: 1.9; }
  .entry-category { font-size: 10px; }
  .entry-open { width: 28px; height: 28px; }
  .entry-open svg { width: 16px; }
  .quiet-note { font-size: 11px; }
  .projects-section { padding-bottom: 60px; }
  .project-placeholder { grid-template-columns: 1fr; padding: 36px 28px; gap: 26px; }
  .project-drawing { width: 145px; height: 145px; justify-self: start; margin-left: 8px; }
  .shape-one { width: 65px; height: 65px; }
  .shape-two { width: 75px; height: 68px; }
  .shape-three { width: 65px; height: 65px; }
  .project-message h3 { font-size: 30px; }
  .project-message p { margin-top: 13px; font-size: 12px; }
  .project-stamp { top: 33px; right: 28px; width: 57px; height: 57px; font-size: 11px; }
  .about-section { grid-template-columns: 1fr; gap: 24px; padding-block: 42px 82px; }
  .about-symbol { font-size: 68px; text-align: left; }
  .about-copy h2 { font-size: 34px; margin-bottom: 20px; }
  .about-copy > p:not(.section-intro) { font-size: 13px; }
  .back-to-top { bottom: 28px; }
  .site-footer { padding-block: 22px; font-size: 10px; }
  .article-page { padding-block: 24px 64px; }
  .article-header { margin-top: 26px; padding-bottom: 26px; }
  .article-header h1 { font-size: 38px; }
  .article-body { font-size: 15px; }
  .article-body blockquote { padding: 18px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
