:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --band: #f1ece2;
  --ink: #1b2422;
  --muted: #5d6a66;
  --line: #e3dccd;
  --brand: #0f3b3a;
  --brand-ink: #ffffff;
  --accent: #a87a2c;
  --wa: #128c4a;
  --wa-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 30 28 / 6%), 0 8px 24px rgb(20 30 28 / 6%);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716; --surface: #18201f; --band: #151d1c; --ink: #ebe7df; --muted: #a2aea9;
    --line: #2a3533; --brand: #7fc3b8; --brand-ink: #0d1514; --accent: #d7ad62; --wa: #25b566; --wa-ink: #06170d;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111716; --surface: #18201f; --band: #151d1c; --ink: #ebe7df; --muted: #a2aea9;
  --line: #2a3533; --brand: #7fc3b8; --brand-ink: #0d1514; --accent: #d7ad62; --wa: #25b566; --wa-ink: #06170d;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); margin: 0 auto 64px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .06em; margin-bottom: .5em; }
.zh { font-weight: 600; color: var(--muted); font-size: .8em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .78rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; display: block; font-size: .95rem; }
.site-nav > ul > li > a:not(.btn):hover { background: var(--band); }
.site-nav .btn-wa { color: var(--wa-ink); padding: 8px 16px; margin-left: 6px; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); font: inherit; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: none; }
  .sub a { font-size: .88rem; color: var(--muted); padding: 4px 10px; }
  .site-nav .btn-wa { margin: 8px 0 0; }
}

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding: 48px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-cap { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.stats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 32px; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 28px; } }

/* sections */
.section { padding: 40px 0; }
.band { background: var(--band); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { white-space: nowrap; font-weight: 600; text-decoration: none; }
.page-head { padding: 20px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--band); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-short img { object-position: center 30%; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / 75%); color: #fff; font-size: .75rem; padding: 1px 6px; border-radius: 4px; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.card-kicker { font-size: .78rem !important; color: var(--accent) !important; font-weight: 600; letter-spacing: .03em; margin-bottom: .3em !important; }

/* areas & chips */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.area-tile { display: flex; flex-direction: column; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.area-tile:hover { border-color: var(--accent); }
.area-tile span { color: var(--muted); font-size: .85rem; }
.area-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.area-row h2 a { color: var(--ink); text-decoration: none; }
.area-row small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 400; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.chip span { color: var(--muted); font-size: .8rem; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.filters input[type=search] { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; margin-bottom: 14px; }
.empty { padding: 24px 0; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.tag-area { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* project */
.project { padding-bottom: 24px; }
.project-head { padding: 16px 0 24px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.project-main > section { margin-top: 36px; }
.project-side { position: sticky; top: 84px; }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; } .project-side { position: static; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 0 0 .55em 1.7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 1em; height: .55em; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 7.5em; color: var(--muted); font-weight: 500; background: var(--band); }
.facts tr:last-child > * { border-bottom: 0; }
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-list p { margin-top: 8px; }

/* video facade */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: none; border: 0; padding: 0; cursor: pointer; filter: drop-shadow(0 2px 8px rgb(0 0 0 / 40%)); transition: transform .15s; }
.yt:hover .yt-play { transform: scale(1.08); }

/* CTA */
.cta-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cta-h { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.cta-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* form */
.form { display: grid; gap: 14px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* footer */
.site-footer { background: var(--brand); color: color-mix(in srgb, var(--brand-ink) 85%, transparent); margin-top: 48px; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: var(--brand-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--brand-ink); font-weight: 700; }
.footer-h { color: var(--brand-ink); font-weight: 700; }
.site-footer .muted { color: inherit; opacity: .75; }
.disclaimer { border-top: 1px solid color-mix(in srgb, var(--brand-ink) 20%, transparent); margin-top: 32px; padding-top: 18px; font-size: .8rem; opacity: .8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* floating whatsapp */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 25%); }
@media (min-width: 961px) { .fab-wa { display: none; } }

/* SY 的看法 */
.sy-says { margin: 20px 0 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.sy-says-h { font-family: var(--serif); font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.sy-says p:last-child { margin: 0; }

/* 效果图 / 平面图 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-fp img { object-fit: contain; background: #fff; }
.gallery a:hover img { transform: scale(1.04); }
.lb { border: 0; padding: 0; background: rgb(0 0 0 / 92%); width: 100vw; height: 100vh; max-width: none; max-height: none; }
.lb::backdrop { background: rgb(0 0 0 / 70%); }
.lb img { position: absolute; inset: 56px 16px 56px; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 112px); object-fit: contain; background: #fff; }
.lb button { position: absolute; background: rgb(255 255 255 / 14%); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.lb .lb-close { top: 8px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }
