:root {
  --bg: #fbf9f6;
  --canvas: #ffffff;
  --ink-primary: #18181b;
  --ink-secondary: #71717a;
  --accent: #dca872;
  --accent-light: #faf0e6;
  --line: rgba(24, 24, 27, 0.07);
  --shadow-lux: 0 30px 70px rgba(100, 78, 58, 0.1), 0 10px 30px rgba(24, 24, 27, 0.025);
  --transition-smooth: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

* { box-sizing: border-box; }

a, .photo-panel, .photo-panel img, .stat, .measure-row, .tag { transition: var(--transition-smooth); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-primary);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 90% 10%, rgba(232, 167, 181, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(220, 168, 114, 0.1), transparent 45%);
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.22; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }

.site-shell {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.brand-zone { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { background: var(--ink-primary); color: var(--canvas); padding: 3px 8px; font-size: 12px; font-weight: 700; border-radius: 6px; }
.brand-name { font-size: 14px; font-weight: 700; color: var(--ink-primary); letter-spacing: 0.1em; }
.home-link { font-size: 13px; color: var(--ink-secondary); text-decoration: none; letter-spacing: 0.12em; padding: 8px 14px; border: 1px solid rgba(24, 24, 27, 0.06); border-radius: 999px; background: rgba(255, 255, 255, 0.45); }
.home-link:hover, .home-link.active { color: var(--ink-primary); border-color: rgba(220, 168, 114, 0.35); background: var(--canvas); font-weight: 600; }
.gallery-stage { display: grid; grid-template-columns: 340px 1fr; gap: 68px; align-items: start; position: relative; }
.photo-panel { position: sticky; top: 24px; background: rgba(255, 255, 255, 0.9); padding: 16px 16px 24px 16px; border-radius: 20px; box-shadow: var(--shadow-lux); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); }
.photo-panel:hover { transform: translateY(-8px) rotate(-1deg); }
.photo-frame { width: 100%; height: 420px; overflow: hidden; border-radius: 14px; }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.photo-caption { margin-top: 16px; text-align: center; }
.photo-caption span { font-size: 11px; letter-spacing: 0.15em; color: var(--ink-secondary); display: block; margin-bottom: 4px; }
.photo-caption strong { font-size: 20px; font-family: serif; font-weight: 700; color: var(--accent); }
.showcase-panel { position: relative; }
.bg-text { position: absolute; width: 100%; overflow: hidden; white-space: nowrap; font-size: 104px; font-weight: 900; color: rgba(24, 24, 27, 0.018); top: -44px; left: 0; pointer-events: none; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
h1 { margin: 0 0 20px 0; font-size: clamp(52px, 7vw, 78px); line-height: 1; font-weight: 800; font-family: "Times New Roman", "SimSun", serif; }
.lead { font-size: 15px; line-height: 1.8; color: var(--ink-secondary); max-width: 600px; margin-bottom: 40px; }
.data-universe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.62); }
.stat, .measure-row { min-height: 82px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.stat:nth-child(4n), .measure-row:nth-child(4n) { border-right: 0; }
.stat:nth-child(n+5), .measure-row:nth-child(n+5) { border-bottom: 0; }
.stat span, .measure-row span { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-secondary); }
.stat strong, .measure-row strong { font-size: 16px; font-weight: 700; }
.measure-row { position: relative; background: var(--accent-light); }
.measure-row span { color: #8a643d; }
.measure-row strong { color: #5c4021; }
.bar { position: absolute; right: 14px; top: 14px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; }
.detail-actions a { color: var(--ink-primary); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; padding: 12px 18px; border-radius: 999px; background: var(--canvas); border: 1px solid rgba(24, 24, 27, 0.06); box-shadow: 0 12px 30px rgba(180, 160, 140, 0.05); }
.detail-actions a.download-link { display: inline-flex; align-items: center; gap: 9px; background: #18181b; border-color: #18181b; color: #ffffff; box-shadow: 0 14px 30px rgba(24, 24, 27, 0.16); }
.download-icon { width: 16px; height: 16px; flex-shrink: 0; }
.download-icon svg { width: 100%; height: 100%; display: block; stroke: currentColor; }
.detail-actions a:hover { transform: translateY(-3px); border-color: rgba(220, 168, 114, 0.35); color: var(--accent); }
.detail-actions a.download-link:hover { color: #ffffff; background: #2f2f36; border-color: #2f2f36; box-shadow: 0 18px 36px rgba(24, 24, 27, 0.22); }
.editorial-bottom { margin-top: 72px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 58px; border-top: 1px solid var(--line); padding-top: 52px; }
.editorial-title { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.editorial-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bio { margin: 0; font-size: 15px; line-height: 2; color: #3f3f46; text-align: justify; column-count: 2; column-gap: 30px; }
.bio::first-letter { font-size: 36px; font-weight: 800; color: var(--accent); float: left; margin-right: 8px; line-height: 1; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 6px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-secondary); }
.tag.featured { background: #fdf2f4; border-color: rgba(232, 167, 181, 0.3); color: #b94a62; font-weight: 600; }
.related-panel { margin-top: 68px; padding: 26px 28px; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line); border-radius: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.related-panel span { display: block; color: var(--ink-secondary); font-size: 11px; letter-spacing: 0.18em; margin-bottom: 6px; }
.related-panel strong { font-size: 20px; font-family: "Times New Roman", "SimSun", serif; }
.related-panel .back-link { color: var(--ink-secondary); text-decoration: none; font-size: 12px; letter-spacing: 0.12em; padding: 9px 16px; border: 1px solid rgba(24, 24, 27, 0.08); border-radius: 999px; background: rgba(255, 255, 255, 0.5); }
.related-panel .back-link:hover { color: var(--ink-primary); border-color: rgba(220, 168, 114, 0.35); background: var(--canvas); box-shadow: 0 10px 30px rgba(180, 160, 140, 0.08); }
.footer-note { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-secondary); }
.download-modal { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(24, 24, 27, 0.34); backdrop-filter: blur(10px); }
.download-modal.visible { display: flex; }
.modal-card { width: min(460px, 100%); padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 34px 90px rgba(24, 24, 27, 0.18); border: 1px solid rgba(255, 255, 255, 0.72); }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.modal-kicker { margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.2em; }
.modal-title { margin: 0; font-size: 24px; font-family: "Times New Roman", "SimSun", serif; }
.modal-close { width: 34px; height: 34px; border: 1px solid rgba(24, 24, 27, 0.08); border-radius: 50%; background: var(--canvas); color: var(--ink-secondary); cursor: pointer; font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--ink-primary); border-color: rgba(220, 168, 114, 0.35); }
.pan-list { display: grid; gap: 12px; }
.pan-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 16px; border-radius: 16px; text-decoration: none; background: var(--bg); border: 1px solid rgba(24, 24, 27, 0.06); color: var(--ink-primary); }
.pan-link strong { display: block; margin-bottom: 4px; font-size: 14px; }
.pan-link span { display: block; color: var(--ink-secondary); font-size: 11px; word-break: break-all; }
.pan-link em { flex-shrink: 0; color: var(--accent); font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.pan-link:hover { transform: translateY(-3px); background: var(--canvas); border-color: rgba(220, 168, 114, 0.28); box-shadow: 0 14px 34px rgba(180, 160, 140, 0.12); }
.modal-note { margin: 16px 0 0; color: var(--ink-secondary); font-size: 11px; line-height: 1.7; }
.modal-note-alert { color: #dc2626; font-weight: 700; }

@media (max-width: 960px) {
  .global-nav { flex-direction: column; gap: 16px; align-items: stretch; }
  .related-panel { flex-direction: column; align-items: flex-start; }
  .gallery-stage { grid-template-columns: 1fr; gap: 40px; }
  .photo-panel { position: relative; top: auto; max-width: 340px; margin: 0 auto; }
  .data-universe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n), .measure-row:nth-child(2n) { border-right: 0; }
  .stat:nth-child(5), .measure-row:nth-child(5), .stat:nth-child(6), .measure-row:nth-child(6) { border-bottom: 1px solid var(--line); }
  .editorial-bottom { grid-template-columns: 1fr; gap: 40px; }
  .bio { column-count: 1; }
}
