/* ============ 吴毅摄影 · RYO FOTO 全局样式 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #101014;
  --bg2: #15151b;
  --panel: #1a1a22;
  --fg: #f2f1ee;
  --muted: #9b9ba6;
  --line: #2b2b36;
  --gold: #cfa96b;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.center { text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(16, 16, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 20px; letter-spacing: .35em; font-weight: 700; white-space: nowrap; }
.brand span { color: var(--gold); }
.links { display: flex; gap: 26px; }
.links a { color: var(--muted); font-size: 15px; letter-spacing: .1em; transition: color .2s; }
.links a:hover { color: var(--fg); }
.links a.active { color: var(--gold); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 30px;
  border: 1px solid var(--gold); color: var(--gold);
  letter-spacing: .2em; font-size: 14px; transition: all .25s;
}
.btn:hover { background: var(--gold); color: #111; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--fg); color: var(--fg); background: transparent; }

/* ---------- 首页横幅 ---------- */
.hero {
  min-height: 78vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-plain { background: radial-gradient(1200px 500px at 50% -10%, #23232e, var(--bg)); background-size: auto; }
.hero-inner { text-align: center; }
.hero-kicker { color: var(--gold); letter-spacing: .3em; font-size: 12px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 84px); letter-spacing: .25em; margin-left: .25em;
  font-weight: 600; font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
}
.hero-sub { color: #cfcfd8; font-size: clamp(15px, 2.4vw, 20px); margin-top: 14px; letter-spacing: .15em; }
.hero-cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg2); }
.sec-title {
  font-size: 28px; letter-spacing: .3em; text-align: center; margin-bottom: 40px;
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif; font-weight: 600;
}
.about-teaser { text-align: center; }
.about-teaser .btn { margin-top: 26px; }

/* ---------- 首页系列卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: block; aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--panel); border: 1px solid var(--line);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.06); }
.card.empty { display: flex; align-items: center; justify-content: center; }
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  display: flex; justify-content: space-between; align-items: baseline;
}
.card-meta span { font-size: 18px; letter-spacing: .25em; }
.card-meta small { color: var(--muted); }

/* ---------- 作品页 ---------- */
.page-head { text-align: center; padding: 56px 0 8px; }
.page-head h1 {
  font-size: 34px; letter-spacing: .4em; margin-left: .4em;
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 22px 16px 6px; }
.chip {
  border: 1px solid var(--line); padding: 7px 18px; border-radius: 999px;
  color: var(--muted); font-size: 14px; letter-spacing: .08em; transition: all .2s;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip.active { color: #111; background: var(--gold); border-color: var(--gold); }

.grid { max-width: 1280px; margin: 26px auto 70px; padding: 0 18px; columns: 4 250px; column-gap: 14px; }
.item {
  break-inside: avoid; margin: 0 0 14px;
  position: relative; overflow: hidden; cursor: zoom-in; background: var(--panel);
}
.item img { width: 100%; opacity: .92; transition: transform .45s, opacity .3s; }
.item:hover img { transform: scale(1.05); opacity: 1; }
.empty { text-align: center; padding: 60px 0; }

/* ---------- 大图浏览（lightbox） ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 8, 11, .94);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.lb button {
  position: absolute; background: none; border: none;
  color: #ddd; font-size: 34px; line-height: 1; padding: 18px; cursor: pointer;
}
.lb button:hover { color: #fff; }
.lb .lb-close { top: 8px; right: 12px; }
.lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--muted); letter-spacing: .2em; font-size: 13px; }

/* ---------- 关于我 ---------- */
.lede { font-size: 18px; margin-bottom: 22px; }
.muted-big { color: var(--muted); margin-bottom: 8px; }
.muted-big b { color: var(--fg); }
.awards { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.award { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 14px 20px; }
.award b { display: block; letter-spacing: .05em; }
.award small { color: var(--muted); }

/* ---------- 联系 ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.channel { background: var(--panel); border: 1px solid var(--line); padding: 22px; text-align: center; }
.ch-name { color: var(--muted); font-size: 13px; letter-spacing: .25em; margin-bottom: 8px; }
.ch-val { font-size: 16px; letter-spacing: .05em; word-break: break-all; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; text-align: center; }
.f-brand .brand { font-size: 16px; }
.f-brand small { color: var(--muted); letter-spacing: .12em; margin-left: 12px; }
.footer .copy { font-size: 13px; margin-top: 10px; letter-spacing: .05em; }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .links { gap: 16px; }
  .nav { padding: 12px 16px; }
  .hero { min-height: 70vh; }
  .section { padding: 52px 0; }
}
@media (max-width: 520px) {
  .cards { gap: 10px; }
  .card-meta { padding: 26px 12px 12px; }
  .card-meta span { font-size: 15px; letter-spacing: .15em; }
  .grid { column-gap: 10px; padding: 0 12px; }
  .item { margin-bottom: 10px; }
  .links a { font-size: 13px; gap: 4px; }
  .links { gap: 12px; }
  .brand { font-size: 16px; letter-spacing: .22em; }
}
