/* ════════════════════════════════════════════
   戎玮 · 视觉作品集  —  style.css
   视觉系极简 · 作品墙 · 米白暖调
   ════════════════════════════════════════════ */

:root {
  --bg: #f4f1eb;          /* 米白背景 */
  --bg-soft: #ece8e0;     /* 柔和米 */
  --ink: #1c1a17;         /* 深墨色文字 */
  --ink-soft: #6b6459;    /* 次级文字 */
  --accent: #b5694a;      /* 陶土橙 · 强调色 */
  --card: #ffffff;
  --line: #e2dcd2;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 40px 90px rgba(28, 26, 23, 0.14);
  --serif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── 顶部导航 ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(244, 241, 235, 0.75);
  border-bottom: 1px solid rgba(226, 220, 210, 0.5);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(244, 241, 235, 0.92);
  box-shadow: 0 8px 30px rgba(28,26,23,0.05);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .04em;
}
.brand-dot { color: var(--accent); }
.nav { display: flex; gap: 32px; font-weight: 400; font-size: .95rem; }
.nav a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* 移动端菜单按钮 */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 60px;
}
.hero-inner { max-width: 820px; }
.hero-eyebrow { font-size: .82rem; letter-spacing: .35em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.18;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 540px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 14px 30px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--bg); box-shadow: 0 12px 30px rgba(28,26,23,0.2); }
.btn-solid:hover { background: #000; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

/* 滚动提示 */
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-soft); }
.scroll-text { font-size: .65rem; letter-spacing: .35em; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--ink-soft); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:0;top:7px} 30%{opacity:1} 100%{opacity:0;top:20px} }

/* ── Section 通用 ── */
.section { padding: 90px 32px; max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow { font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.section-desc { color: var(--ink-soft); font-size: .98rem; }

/* ── 作品总览：筛选 Tab ── */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 44px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── 作品墙：每卡自适配比例 ── */
.work-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  align-items: start;
}
.work-tile {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
/* 封面区：承载作品的真实比例（竖/横/方） */
.thumb-media-box { position: relative; overflow: hidden; }
.work-tile.ratio-p .thumb-media-box { aspect-ratio: 9 / 16; }   /* 竖屏 */
.work-tile.ratio-l .thumb-media-box { aspect-ratio: 16 / 9; }   /* 横屏 */
.work-tile.ratio-s .thumb-media-box { aspect-ratio: 1 / 1; }    /* 方形 */
.work-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-tile:hover .thumb-inner, .work-tile:hover .thumb-video, .work-tile:hover .thumb-media { transform: scale(1.05); }
/* 封面媒体（图片或视频首帧） */
.thumb-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  z-index: 0;
}
.thumb-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  z-index: 0;
}
.thumb-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px; color: #fff; text-align: center;
  transition: transform .5s ease;
}
.thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 40%);
  z-index: 1;
}
/* 分类小标签 */
.thumb-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .7rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
  letter-spacing: .05em;
}
/* 播放 / 查看按钮 —— 封面区居中 */
.thumb-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.thumb-play .tp-tri {
  width: 0; height: 0;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.thumb-view {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1.5px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.work-tile:hover .thumb-play { animation: pulse 1s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}
.thumb-meta {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  margin-top: auto;
}
.thumb-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-year { font-size: .76rem; color: var(--ink-soft); }

/* ── 关于 ── */
.section-about { background: var(--bg-soft); border-radius: 40px; }
.about-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.about-text { color: var(--ink-soft); font-size: 1.05rem; margin: 0 auto 32px; }
.about-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 页脚 ── */
.site-footer { padding: 60px 32px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.footer-copy { color: var(--ink-soft); font-size: .85rem; }

/* ── Lightbox（视频 / 图片） ── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,14,12,0.94);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 44px 24px;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-media {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-height: 78vh;
}
/* 图片 */
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  display: block;
}
/* 图片占位层（仅图片占位模式显示） */
.lightbox-ph {
  display: none; align-items: center; justify-content: center;
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 78vh;
  border-radius: 10px;
  overflow: hidden;
}
.lightbox-ph.show { display: flex; }
.lightbox-ph::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 55%);
  z-index: 1;
}
.lightbox-ph .ph-label {
  position: relative; z-index: 2;
  color: #fff; text-align: center;
  font-family: var(--serif); font-size: 1.4rem;
}
.lightbox-ph .ph-label small {
  display: block; margin-top: 8px;
  font-size: .8rem; opacity: .8; font-family: var(--sans);
}
/* 图片占位时，media 容器作为渐变背景 */
.lightbox-media.has-photo-placeholder {
  position: relative;
  height: 70vh;
  max-height: 78vh;
  width: min(80vh, 90vw);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
} block; margin-top: 6px;
  font-size: .8rem; opacity: .75; font-family: var(--sans);
}
/* 视频：竖屏/横屏自适应，不裁切（contain） */
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 78vh;
}
.lightbox-video {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  background: #000;
  display: block;
  outline: none;
  object-fit: contain;
}
.lightbox-video.placeholder {
  aspect-ratio: 9 / 16;
  height: 70vh;
  max-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
/* 视频占位层（默认隐藏，仅占位模式显示） */
.lightbox-video-ph {
  display: none; align-items: center; justify-content: center;
  aspect-ratio: 9 / 16;
  height: 70vh;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  background: linear-gradient(160deg, #2c2a27 0%, #4a463f 100%);
  position: relative;
  overflow: hidden;
}
.lightbox-video-ph.show { display: flex; }
.lightbox-video-ph::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
  z-index: 0;
}
.lvph-note {
  position: relative; z-index: 2;
  color: #fff; text-align: center; font-family: var(--serif);
  font-size: 1.25rem; line-height: 1.5;
}
.lvph-note small { display: block; margin-top: 8px; font-size: .78rem; opacity: .75; font-family: var(--sans); }

.lightbox-info { text-align: center; margin-top: 20px; }
.lightbox-cap { color: #eee; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.lightbox-tag { color: var(--accent-soft, #d8a893); font-size: .85rem; margin-top: 6px; letter-spacing: .05em; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: 0; color: #fff; font-size: 2.8rem;
  cursor: pointer; line-height: 1; z-index: 5;
  transition: transform .2s;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ── 进场动画 ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 66px 0 auto 0; background: var(--bg); flex-direction: column; align-items: center; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .3s; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px; width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  .work-wall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
}
@media (max-width: 620px) {
  .section { padding: 60px 20px; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 3rem); }
  .work-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: .84rem; }
  .thumb-play { width: 46px; height: 46px; }
  .thumb-play .tp-tri { border-left-width: 12px; border-top-width: 7px; border-bottom-width: 7px; }
  .thumb-view { width: 38px; height: 38px; }
}
