:root {
  --paper: #f5f4f0;
  --white: #ffffff;
  --ink: #18211d;
  --muted: #66716b;
  --line: #d7dbd6;
  --green: #315c48;
  --green-dark: #213f31;
  --coral: #d66745;
  --yellow: #e3b84d;
  --dark: #202724;
  --max: 1120px;
  --shadow: 0 18px 44px rgba(24, 33, 29, 0.11);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(215, 219, 214, .9); background: rgba(245, 244, 240, .94); backdrop-filter: blur(12px); }
.nav-shell { display: flex; width: min(calc(100% - 40px), var(--max)); min-height: 70px; margin: auto; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; place-items: center; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 8px 11px; border-bottom: 2px solid transparent; color: #465149; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--coral); color: var(--ink); }

.hero { position: relative; display: grid; min-height: min(74vh, 700px); overflow: hidden; background: var(--dark) url("/html1/avatar.jpg") center 34% / cover; color: white; isolation: isolate; place-items: end start; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: rgba(17, 26, 22, .6); content: ""; }
.hero-content { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 82px 0 68px; }
.hero h1 { margin: 0; font: 700 clamp(50px, 9vw, 104px)/1.02 Georgia, "Noto Serif SC", serif; }
.hero-lead { max-width: 650px; margin: 22px 0 30px; color: #f0f3f1; font-size: clamp(17px, 2.2vw, 22px); }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: #ffd7ca; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: white; }
.button-primary:hover { background: #bc5334; }
.button-dark { background: var(--green-dark); color: white; }
.button-outline { border-color: var(--ink); background: transparent; }
.button-glass { border-color: rgba(255, 255, 255, .75); background: rgba(20, 30, 25, .48); color: white; }

.section { padding: 82px 0; }
.section-white { border-block: 1px solid var(--line); background: white; }
.section-dark { background: var(--dark); color: white; }
.section-heading { display: grid; margin-bottom: 34px; grid-template-columns: 1fr minmax(240px, 420px); align-items: end; gap: 30px; }
.section-heading h2, .page-intro h1 { margin: 0; font: 700 clamp(34px, 5vw, 56px)/1.14 Georgia, "Noto Serif SC", serif; }
.section-heading p { margin: 0; color: var(--muted); }
.section-dark .section-heading p { color: #c1c9c4; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; flex-direction: column; box-shadow: 0 8px 24px rgba(24, 33, 29, .05); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-visual { display: flex; min-height: 122px; padding: 22px; align-items: flex-end; background: var(--green); color: white; font: 700 38px Georgia, serif; }
.card:nth-child(2) .card-visual { background: var(--coral); }
.card:nth-child(3) .card-visual { background: var(--yellow); color: var(--ink); }
.card-body { display: flex; padding: 22px; flex: 1; flex-direction: column; }
.meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.card h3 { margin: 7px 0; font-size: 21px; line-height: 1.35; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.more { margin-top: auto; color: var(--green); font-size: 14px; font-weight: 800; }

.page-intro { padding: 68px 0 52px; }
.page-intro p { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.back-link { display: inline-flex; margin-bottom: 24px; align-items: center; gap: 7px; color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--coral); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; flex-direction: column; box-shadow: 0 10px 30px rgba(24, 33, 29, .07); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-cover { display: grid; min-height: 250px; background: var(--green-dark); color: white; place-items: center; }
.project-card:nth-child(2) .project-cover { background: var(--coral); }
.project-symbol { font: 700 64px Georgia, serif; }
.project-card-body { display: flex; padding: 27px; flex: 1; flex-direction: column; }
.project-card h2 { margin: 6px 0 10px; font: 700 30px/1.2 Georgia, "Noto Serif SC", serif; }
.project-card p { margin: 0 0 20px; color: var(--muted); }
.tags { display: flex; margin: 0 0 21px; padding: 0; flex-wrap: wrap; gap: 7px; list-style: none; }
.tags li { padding: 5px 10px; border: 1px solid #c5ccc7; border-radius: 999px; color: #465149; font-size: 12px; font-weight: 700; }

.detail-hero { padding: 72px 0; background: var(--green-dark); color: white; }
.detail-hero.balance { background: var(--coral); }
.detail-hero h1 { max-width: 800px; margin: 8px 0 15px; font: 700 clamp(38px, 6vw, 64px)/1.12 Georgia, "Noto Serif SC", serif; }
.detail-hero p { max-width: 760px; margin: 0; color: #e3e9e5; font-size: 18px; }
.detail-hero.balance p { color: #fff2ed; }
.detail-section { padding: 64px 0; }
.detail-section h2, .prose h2 { margin: 0 0 18px; font: 700 32px/1.25 Georgia, "Noto Serif SC", serif; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-block { padding: 25px; border-left: 4px solid var(--green); background: white; }
.detail-block:nth-child(2) { border-color: var(--coral); }
.detail-block:nth-child(3) { border-color: var(--yellow); }
.detail-block:nth-child(4) { border-color: #697a8f; }
.detail-block h3 { margin: 0 0 7px; font-size: 18px; }
.detail-block p { margin: 0; color: var(--muted); font-size: 14px; }
.fact-grid { display: grid; margin: 0; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.fact-grid div { min-width: 0; padding: 23px; background: white; }
.fact-grid dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.fact-grid dd { margin: 4px 0 0; font: 700 22px Georgia, serif; overflow-wrap: anywhere; }

.about { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 52px; }
.portrait { width: 100%; max-height: 600px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.prose p { margin: 0 0 18px; color: #46514b; }

.media-stack { display: grid; gap: 52px; }
.media-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 40px; }
.media-feature:nth-child(even) .media-frame { order: 2; }
.media-frame { overflow: hidden; border-radius: 8px; background: var(--dark); box-shadow: var(--shadow); }
.media-frame img, .media-frame video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-copy h2 { margin: 0 0 10px; font: 700 32px/1.22 Georgia, "Noto Serif SC", serif; }
.media-copy p { margin: 0; color: var(--muted); }
.audio-panel { padding: 27px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.audio-panel audio { width: 100%; margin-top: 16px; }

.article { width: min(calc(100% - 40px), 760px); margin: auto; padding: 68px 0 92px; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 12px 0 16px; font: 700 clamp(38px, 6vw, 62px)/1.13 Georgia, "Noto Serif SC", serif; }
.article-deck { margin: 0; color: var(--muted); font-size: 19px; }
.article-body { padding-top: 30px; font: 18px/1.95 Georgia, "Noto Serif SC", serif; }
.article-body h2 { margin: 42px 0 11px; font-size: 28px; }
.article-body p { margin: 0 0 22px; }
.article-body blockquote { margin: 34px 0; padding: 20px 24px; border-left: 4px solid var(--coral); background: white; color: #3f4a44; font-size: 20px; }
.article-footer { display: flex; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--line); justify-content: space-between; gap: 15px; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--green); font-weight: 800; text-decoration: none; }

@media (max-width: 820px) {
  .nav-shell { align-items: flex-start; flex-direction: column; gap: 2px; padding: 11px 0 9px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav a { flex: 0 0 auto; padding: 6px 9px; }
  .section { padding: 62px 0; }
  .section-heading, .about, .media-feature { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .media-feature:nth-child(even) .media-frame { order: 0; }
}

@media (max-width: 580px) {
  .container, .nav-shell, .hero-content, .article { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 68vh; }
  .hero h1 { font-size: 50px; }
  .card-grid, .project-grid, .detail-grid, .fact-grid { grid-template-columns: 1fr; }
  .buttons .button { width: 100%; }
  .page-intro { padding: 48px 0 38px; }
  .article-footer, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
