/* 视觉样式独立于内容。日后主要在 site.config.js 修改项目。
   要调整配色、宽度、字体，可以从下面的 CSS 变量开始。 */
:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --surface: #fcfcf7;
  --ink: #303d35;
  --muted: #687364;
  --subtle: #969c90;
  --line: #dddfd5;
  --accent: #667b5c;
  --accent-soft: #e8ebdf;
  --hover: #eeefe7;
  --shadow: 0 18px 35px -24px #293b352f;
  --page-width: 1160px;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c2521;
  --surface: #242e28;
  --ink: #e3e8da;
  --muted: #a6b0a0;
  --subtle: #899783;
  --line: #39433a;
  --accent: #b1c09b;
  --accent-soft: #354333;
  --hover: #2b372d;
  --shadow: 0 18px 35px -24px #0008;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.12' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); opacity: .14; z-index: 5; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { outline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); }
button, input { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: #cdd9bd; color: #283c2c; }
.site-shell { max-width: var(--page-width); width: calc(100% - 112px); margin: auto; }
.site-header { display: flex; align-items: center; height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 41px; height: 41px; display: grid; place-items: center; background: var(--ink); border-radius: 50%; color: var(--paper); }
.brand-mark svg { width: 30px; height: 30px; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.brand:hover .brand-mark svg { transform: rotate(90deg); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 21px; font-family: var(--serif); font-weight: 650; letter-spacing: 3px; }
.brand-copy > span { font-size: 8px; letter-spacing: 2.1px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 35px; margin-left: auto; font-size: 12px; }
.main-nav a { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); transition: color .2s; }
.main-nav a:hover, .main-nav .nav-active { color: var(--ink); }
.nav-dot { height: 4px; width: 4px; border-radius: 50%; background: var(--accent); }
.theme-toggle { margin-left: 38px; width: 39px; height: 39px; background: transparent; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s, transform .2s; }
.theme-toggle:hover { background: var(--accent-soft); transform: rotate(-10deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }

.intro { display: flex; align-items: center; justify-content: space-between; padding: 36px 0 32px; gap: 40px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 8px; font-weight: 550; letter-spacing: 2.1px; color: var(--muted); }
.eyebrow > span:first-child { width: 22px; height: 1px; background: var(--accent); }
h1 { font-family: var(--serif); margin: 0; font-weight: 500; font-size: clamp(36px, 4.0vw, 48px); letter-spacing: 2px; line-height: 1.34; }
h1 .accent { color: var(--accent); }
.title-star { font-size: 34px; color: #a4b18f; display: inline-block; vertical-align: 8px; margin-left: 16px; transform: rotate(13deg); }
.intro-description { font-size: 13px; letter-spacing: .3px; line-height: 1.9; color: var(--muted); margin: 16px 0 0; white-space: pre-line; }
.intro-aside { display: flex; flex-direction: column; align-items: center; padding: 11px 51px 0 0; flex-shrink: 0; }
.wander-stamp { width: 135px; height: 135px; color: #87957b; transform: rotate(13deg); }
.wander-stamp svg { width: 100%; height: 100%; }
.wander-stamp text { fill: currentColor; font-size: 8.15px; letter-spacing: 2.4px; }
.aside-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; margin: 23px 0 0; letter-spacing: .7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #8f9f79; box-shadow: 0 0 0 4px #8f9f7914; }

.collection-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0 21px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title h2 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: 1px; }
.collection-total { background: var(--accent-soft); color: var(--accent); border-radius: 5px; padding: 4px 6px; font: 10px var(--sans); font-variant-numeric: tabular-nums; }
.section-en { margin-left: 7px; font-size: 8px; letter-spacing: 1.5px; color: var(--subtle); }
.collection-hint { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.collection-hint svg { width: 23px; height: 23px; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 21px 0 24px; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 36px; padding: 8px 15px; border: 1px solid transparent; border-radius: 25px; background: transparent; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 9px; transition: background .2s, color .2s; }
.filter:hover { background: var(--hover); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-count { font-size: 9px; opacity: .57; font-variant-numeric: tabular-nums; }
.search-field { display: flex; align-items: center; gap: 9px; color: var(--subtle); min-height: 38px; padding: 6px 10px 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; flex-shrink: 0; transition: border-color .2s, background .2s; }
.search-field:focus-within { background: var(--surface); border-color: var(--accent); }
.search-field svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-field input { width: 133px; min-width: 0; color: var(--ink); font-size: 10px; padding: 2px 0; border: 0; background: transparent; outline: none; }
.search-field input::placeholder { color: var(--subtle); }
.search-field:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-field kbd { display: grid; place-items: center; width: 16px; height: 18px; font-size: 9px; font-family: var(--sans); color: var(--subtle); border: 1px solid var(--line); border-radius: 3px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 15px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; animation: arrive .48s ease both; animation-delay: calc(var(--card-index, 0) * 55ms); }
.project-card:hover { transform: translateY(-5px); border-color: #b8c2ad; box-shadow: var(--shadow); }
.project-card:focus-visible { outline-offset: 6px; }
.project-cover { aspect-ratio: 1.82; position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: #e1dfd2; }
.project-card[data-tone="sage"] .project-cover { background: #e1dfd2; }
.project-card[data-tone="sky"] .project-cover { background: #dcebe7; }
.project-card[data-tone="rose"] .project-cover { background: #f0e1dc; }
.project-card[data-tone="sand"] .project-cover { background: #eae1cc; }
.project-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.17,.67,.25,1); }
.project-cover img[data-fit="contain"] { object-fit: contain; padding: 13px 19px 0; }
.project-card:hover .project-cover img { transform: scale(1.045); }
.project-number { position: absolute; z-index: 1; top: 19px; left: 21px; color: #5d6d5d; font-size: 9px; letter-spacing: 1.4px; }
.project-type { position: absolute; z-index: 1; top: 16px; right: 18px; background: #fffdf46b; border: 1px solid #ffffff50; padding: 6px 10px; border-radius: 18px; color: #556958; font-size: 9px; letter-spacing: .4px; backdrop-filter: blur(6px); }
.cover-arrow { position: absolute; z-index: 1; right: 18px; bottom: 17px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #f9faf080; border: 1px solid #ffffff61; color: #405443; backdrop-filter: blur(5px); transition: background .3s, transform .3s; }
.cover-arrow svg { width: 18px; height: 18px; }
.project-card:hover .cover-arrow { background: #fcfff1e0; transform: rotate(45deg); }
.cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #62755d; }
.cover-fallback span { font-size: 65px; line-height: 1; font-weight: 300; }
.cover-fallback strong { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 2px; }
.project-info { padding: 23px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.project-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.project-title-row h3 { margin: 0; font-size: 23px; font-family: var(--serif); font-weight: 550; letter-spacing: 1px; }
.project-subtitle { color: var(--subtle); font-size: 8px; letter-spacing: 1.25px; }
.project-description { margin: 11px 0 21px; color: var(--muted); font-size: 12px; line-height: 1.85; letter-spacing: .15px; }
.project-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 8px; letter-spacing: .15px; }
.project-enter { color: var(--accent); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; white-space: nowrap; }
.project-enter svg { width: 14px; height: 14px; transition: transform .2s; }
.project-card:hover .project-enter svg { transform: translate(2px, -2px); }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 15px; padding: 52px 20px; background: var(--surface); }
.empty-symbol { display: block; color: var(--accent); font-size: 38px; }
.empty-state h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 18px 0 12px; }
.empty-state p { font-size: 12px; color: var(--muted); }
.empty-state button { margin-top: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--accent-soft); color: var(--ink); padding: 11px 19px; font-size: 11px; }
.empty-state button span { margin-left: 10px; }

.about { display: flex; align-items: center; gap: 23px; margin-top: 49px; padding: 33px 0; border-top: 1px solid var(--line); }
.about-symbol { display: grid; place-items: center; width: 77px; height: 87px; color: var(--accent); flex-shrink: 0; }
.about-symbol svg { width: 62px; height: 62px; }
.about-eyebrow { font-size: 7px; color: var(--subtle); letter-spacing: 1.6px; margin: 0 0 11px; }
.about h2 { font-size: 19px; font-weight: 500; letter-spacing: .6px; margin: 0; font-family: var(--serif); }
.about-description { color: var(--muted); white-space: pre-line; font-size: 10px; line-height: 1.9; margin: 10px 0 0; }
.back-top { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--muted); }
.back-top span:first-child { border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; width: 36px; height: 36px; font-size: 18px; transition: transform .2s; }
.back-top span:last-child { font-size: 10px; }
.back-top:hover span:first-child { transform: translateY(-3px); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--subtle); font-size: 9px; }
.site-footer p { margin: 0; line-height: 1.8; }
.footer-separator { margin: 0 12px; opacity: .6; }
.footer-signature { font-size: 7px; letter-spacing: 1.4px; display: flex; align-items: center; gap: 13px; }
.footer-signature span { color: var(--accent); font-size: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 14px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 14px; border-radius: 8px; }
.skip-link:focus { top: 14px; }
.no-script { font-size: 13px; color: var(--muted); line-height: 2; }
.no-script a { text-decoration: underline; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .intro { padding-top: 48px; padding-bottom: 44px; } }
@media (max-width: 1050px) {
  .site-shell { width: calc(100% - 72px); }
  .intro-aside { padding-right: 17px; }
  .project-info { padding: 21px 19px 18px; }
  .project-title-row { gap: 10px; }
  .project-bottom { gap: 9px; }
  .project-tags { gap: 4px; }
  .project-tag { font-size: 7px; padding: 5px 6px; }
}
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { height: 82px; }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-copy strong { font-size: 18px; letter-spacing: 2px; }
  .brand-copy > span { font-size: 6px; letter-spacing: 1.2px; }
  .main-nav { gap: 20px; font-size: 10px; }
  .theme-toggle { margin-left: 21px; width: 34px; height: 34px; }
  .intro { padding: 39px 0 37px; gap: 12px; }
  .eyebrow { font-size: 6px; letter-spacing: 1.3px; gap: 7px; margin-bottom: 17px; }
  .eyebrow > span:first-child { width: 14px; }
  h1 { font-size: clamp(31px, 5.4vw, 41px); letter-spacing: 1px; }
  .title-star { font-size: 25px; margin-left: 8px; vertical-align: 5px; }
  .intro-description { font-size: 10px; line-height: 1.95; margin-top: 17px; letter-spacing: 0; }
  .intro-aside { padding: 0 7px 0 0; }
  .wander-stamp { width: 100px; height: 100px; }
  .aside-note { display: none; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-cover { aspect-ratio: 1.8; }
  .project-cover img[data-fit="contain"] { padding: 7px 10px 0; }
  .project-info { padding: 22px 22px 20px; }
  .project-tag { font-size: 8px; }
  .project-description { font-size: 11px; }
  .collection-heading { padding-bottom: 17px; }
  .collection-hint { display: none; }
  .section-title h2 { font-size: 17px; }
  .collection-toolbar { margin: 17px 0 21px; gap: 15px; }
  .filters { gap: 3px; }
  .filter { padding: 8px 11px; font-size: 10px; gap: 6px; }
  .search-field input { width: 102px; font-size: 10px; }
  .search-field kbd { display: none; }
  .about { margin-top: 36px; padding: 29px 0; gap: 13px; }
  .about-symbol { width: 46px; }
  .about-symbol svg { width: 44px; }
  .about h2 { font-size: 17px; }
  .about-eyebrow { font-size: 6px; letter-spacing: 1px; }
  .about-description { font-size: 9px; }
  .back-top span:last-child { display: none; }
  .site-footer { align-items: flex-start; font-size: 8px; }
  .footer-signature { font-size: 6px; letter-spacing: 1px; text-align: right; max-width: 114px; line-height: 1.8; }
  .footer-signature span { display: none; }
}
@media (max-width: 480px) {
  .intro { position: relative; overflow: hidden; }
  .intro-aside { position: absolute; right: -10px; top: 79px; opacity: .30; z-index: -1; }
  .wander-stamp { width: 86px; height: 86px; }
  h1 { font-size: 33px; line-height: 1.4; letter-spacing: .5px; }
  .main-nav { gap: 15px; }
  .theme-toggle { margin-left: 17px; }
  .collection-toolbar { flex-wrap: wrap; gap: 13px; }
  .search-field { width: 100%; padding: 8px 12px; }
  .search-field input { flex: 1; width: auto; min-height: 19px; }
  .section-en { font-size: 7px; margin-left: auto; }
  .section-title { width: 100%; gap: 10px; }
  .project-info { padding: 20px 18px 19px; }
  .project-title-row h3 { font-size: 22px; }
  .project-title-row { gap: 9px; }
  .project-subtitle { font-size: 7px; letter-spacing: .8px; }
  .project-number { left: 16px; top: 17px; font-size: 8px; }
  .project-type { right: 14px; top: 13px; font-size: 8px; }
  .project-description { font-size: 10px; margin-bottom: 18px; }
  .project-tag { font-size: 7px; padding: 5px 6px; }
  .project-enter { font-size: 9px; gap: 4px; }
  .project-tags { gap: 4px; }
  .about-description { max-width: 235px; }
  .about-symbol { display: none; }
  .back-top { margin-left: auto; }
  .site-footer { gap: 18px; }
  .footer-separator { margin-inline: 7px; }
}
@media (max-width: 360px) {
  .site-shell { width: calc(100% - 32px); }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 9px; }
  .theme-toggle { margin-left: 13px; }
  .brand-copy strong { font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; }
  h1 { font-size: 29px; }
  .project-subtitle { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
