:root {
  color-scheme: light;
  --paper: #f4f3eb;
  --card: #fdfcf6;
  --ink: #192d27;
  --muted: #52645a;
  --line: #d6dbce;
  --deep: #19362c;
  --lime: #d7e1a8;
  --mint: #e5ebdc;
  --white: #fcfcf4;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #926028; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, .feature-title { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; }
img, video { max-width: 100%; display: block; }
img { object-fit: cover; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { text-decoration: none; font-weight: 780; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 29px; height: 29px; background: var(--deep); border-radius: 8px;
}
.brand-mark::after { content: ""; display: block; width: 13px; aspect-ratio: 1.43; border: 1px solid var(--lime); border-inline-width: 3px; }
.mode { font-size: .78rem; color: var(--muted); }
.mode::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: #6b8c6f; vertical-align: .12em; }
.hero {
  min-height: 402px; margin-top: 29px; display: grid; grid-template-columns: 1.04fr 1fr; overflow: hidden;
  border-radius: 21px; color: var(--white); background: var(--deep);
}
.hero-copy { padding: clamp(28px, 5.3vw, 68px); align-self: center; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.8rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy > p { max-width: 28rem; margin: 19px 0 24px; color: #e4ecd9; font-size: .97rem; }
.feature-action { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; padding: 7px 15px; font-size: .87rem; font-weight: 720; color: var(--deep); text-decoration: none; background: var(--lime); border-radius: 8px; }
.hero-figure { min-width: 0; position: relative; min-height: 100%; isolation: isolate; background: #355548; }
.hero-figure img { width: 100%; height: 100%; position: absolute; inset: 0; object-position: 50% 33%; }
.hero-figure::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 0; background: linear-gradient(transparent, #10231ee6); pointer-events: none; }
.feature-link { position: absolute; z-index: 1; inset: auto 0 0; padding: 30px 34px; color: white; text-decoration: none; }
.feature-title { display: block; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.28; text-wrap: balance; }
.feature-meta { display: block; color: #e4ecd9; font-size: .8rem; margin-top: 7px; }
.section { margin: 34px 0 0; }
.section h2 { font-size: clamp(1.6rem, 3.8vw, 2.45rem); line-height: 1.2; letter-spacing: -.025em; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.small, .count { font-size: .82rem; color: var(--muted); }
.categories { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 20px 0 12px; }
.categories button { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 48px; background: var(--card); text-align: left; font-weight: 650; display: flex; align-items: center; justify-content: space-between; column-gap: 5px; }
.categories button span { font: .78rem "Courier New", monospace; color: var(--muted); }
.categories button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: white; }
.categories button[aria-pressed="true"] span { color: var(--lime); }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select, .shot-filter {
  width: 100%; border: 1px solid #c8cfc1; border-radius: 9px; padding: 9px 12px; min-height: 46px;
  background: var(--card);
}
.filters input { font-size: 16px; }
.filters select { min-width: 150px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tile { min-width: 0; border-radius: 13px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.tile a { min-width: 0; display: block; text-decoration: none; height: 100%; }
.tile a:hover h3 { text-decoration: underline; }
.tile-image { aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; }
.tile-image img { width: 100%; height: 100%; object-position: 50% 36%; }
.tile-copy { padding: 13px 15px 16px; }
.tile h3 { font-size: 1.02rem; line-height: 1.42; overflow-wrap: anywhere; }
.tile p { font-size: .81rem; color: var(--muted); margin-top: 5px; }
.tile-kind { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tags span { background: var(--mint); color: #30463d; border-radius: 5px; padding: 2px 7px; font-size: .72rem; }
.empty { padding: 26px 17px; border: 1px dashed #b7c3b5; border-radius: 12px; color: var(--muted); background: var(--card); }
.footer { margin-top: 35px; border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .79rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 20px 0 14px; color: var(--muted); font-size: .85rem; }
.visual-detail {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(15px, 3.8vw, 48px);
  padding: clamp(14px, 3vw, 29px); border-radius: 19px; background: var(--card); border: 1px solid var(--line);
}
.detail-media { background: #182d26; border-radius: 11px; align-content: center; overflow: hidden; min-width: 0; }
.detail-media video { width: 100%; max-height: 465px; aspect-ratio: 9 / 16; object-fit: contain; }
.detail-media img { width: 100%; max-height: 465px; object-fit: cover; object-position: center; }
.detail-copy { align-self: center; min-width: 0; overflow-wrap: anywhere; }
.detail-copy h1 { font-size: clamp(1.85rem, 4.9vw, 3.65rem); line-height: 1.15; letter-spacing: -.025em; margin: 6px 0 14px; }
.detail-copy p { margin-top: 8px; }
.detail-copy code, .clock { font: .82rem "Courier New", Consolas, monospace; color: #3a5a4c; }
.detail-copy ul { padding-left: 18px; }
.related-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.related-links a { background: var(--mint); border-radius: 8px; min-height: 44px; padding: 8px 10px; font-size: .83rem; text-decoration: none; display: inline-flex; align-items: center; }
.related-links a.primary { background: var(--deep); color: white; }
.shot-filter { width: auto; font-size: .86rem; }
.shot-list { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 9px; padding: 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.shot img { width: 56px; aspect-ratio: 9 / 16; border-radius: 4px; }
.shot h3 { font-size: .9rem; }
.shot p { font-size: .78rem; color: var(--muted); }
.shot[hidden] { display: none; }
.motion-notes { display: grid; grid-template-columns: minmax(0, 7.15rem) minmax(0, 1fr); gap: 8px 13px; font-size: .86rem; }
.motion-notes dt { font-weight: 700; }
.motion-notes dd { margin: 0; color: var(--muted); }
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.evidence a { font-size: .76rem; text-align: center; text-decoration: none; }
.evidence img { width: 100%; aspect-ratio: 9 / 16; border-radius: 7px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { min-height: 58px; padding-top: env(safe-area-inset-top); }
  .hero { min-height: 0; margin-top: 14px; grid-template-columns: 1fr; border-radius: 14px; }
  .hero-copy { padding: 25px 21px 21px; }
  .hero-copy > p { margin: 12px 0 14px; }
  .hero-figure { min-height: 193px; }
  .hero-figure img { object-position: 50% 32%; }
  .feature-link { padding: 16px 20px; }
  .section { margin-top: 27px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .categories button:last-child { grid-column: 1 / -1; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(105px, .55fr); }
  .filters select { min-width: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile-copy { padding: 9px; }
  .tile h3 { font-size: .89rem; }
  .tile p { font-size: .76rem; }
  .visual-detail, .shot-list { grid-template-columns: minmax(0, 1fr); }
  .detail-media video { max-height: 420px; }
  .detail-media img { max-height: 380px; }
  .section-header { align-items: start; flex-wrap: wrap; }
  .motion-notes { grid-template-columns: 5.2rem minmax(0, 1fr); }
}

@media (max-width: 345px) {
  .cards, .filters { grid-template-columns: minmax(0, 1fr); }
}
