/* ============================================
   寻澜影集 SEEKLAN
   白底、黑字、大留白、深海青灰点缀
   ============================================ */

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --light: #9a9a9a;
  --border: #e8e8e8;
  --accent: #3d5a6c;   /* 澜青 */
  --accent-soft: #f2f5f7;
  --max-width: 1280px;
  --side-pad: clamp(1.25rem, 5vw, 3rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 布局 ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--side-pad); }
.section { padding: clamp(3rem, 8vh, 5.5rem) 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; letter-spacing: 0.06em; margin: 0 0 0.6rem;
}
.section-subtitle {
  font-size: 0.95rem; color: var(--muted); margin: 0 0 2.5rem;
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.section-head .section-subtitle { margin: 0; }
.view-more { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 0.1rem; }
.view-more:hover { color: var(--text); border-color: var(--text); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 500; letter-spacing: 0.08em; }
.logo small { font-size: 0.62em; font-weight: 300; color: var(--muted); margin-left: 0.35em; letter-spacing: 0.12em; }
.main-nav { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--muted); }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.header-actions { display: flex; gap: 1.5rem; align-items: center; font-size: 0.9rem; }
.header-actions a { color: var(--muted); }
.header-actions a:hover, .header-actions a.active { color: var(--text); }
.header-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.search-toggle {
  background: none; border: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  transition: var(--transition);
}
.search-toggle:hover { background: var(--surface); color: var(--text); }

.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  cursor: pointer; padding: 0.35rem; margin-right: 0.75rem;
}

/* ---------- 移动端抽屉菜单 ---------- */
.site-drawer {
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none; visibility: hidden;
  transition: visibility 0.25s ease;
}
.site-drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0;
  transition: opacity 0.25s ease;
}
.site-drawer.is-open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; left: 0; width: min(78vw, 320px); height: 100%;
  background: #fff; transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
.site-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--side-pad); border-bottom: 1px solid var(--border);
  height: 64px;
}
.drawer-head .logo small { display: none; }
.drawer-close {
  background: none; border: none; font-size: 1.6rem; color: var(--light);
  cursor: pointer; line-height: 1;
}
.drawer-nav {
  flex: 1; padding: 1.25rem var(--side-pad); display: flex; flex-direction: column; gap: 0.5rem;
}
.drawer-nav a {
  font-size: 1.05rem; color: var(--text); padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.drawer-nav a.active { color: var(--accent); font-weight: 500; }
.drawer-actions {
  padding: 1.25rem var(--side-pad); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.drawer-actions a:first-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- 全站搜索 ---------- */
.search-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(255,255,255,0.96);
  display: none; flex-direction: column; align-items: center;
  padding-top: 12vh;
}
.search-panel {
  width: 100%; max-width: 680px;
  padding: 0 1.25rem;
}
.search-head {
  display: flex; gap: 0.75rem; align-items: center;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.75rem; margin-bottom: 1.5rem;
}
.search-input {
  flex: 1; border: none; background: transparent;
  font-size: 1.25rem; outline: none;
}
.search-close {
  background: none; border: none; font-size: 1.75rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.search-close:hover { color: var(--text); }
.search-results { display: grid; gap: 0.75rem; max-height: 60vh; overflow-y: auto; }
.search-result {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem;
  align-items: center; padding: 0.75rem;
  border: 1px solid var(--border); transition: var(--transition);
}
.search-result:hover { border-color: var(--text); background: var(--surface); }
.search-result img { width: 64px; height: 64px; object-fit: cover; background: var(--surface); }
.search-type { font-size: 0.7rem; color: var(--light); letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.search-title { font-size: 0.95rem; color: var(--text); }
.search-subtitle { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.search-empty { text-align: center; color: var(--light); font-size: 0.9rem; padding: 2rem 0; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: 0.85rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 1.75rem; margin-bottom: 2.5rem; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 1rem; color: var(--text);
}
.footer-col p { margin: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.35rem 0; }
.footer-col a:hover { color: var(--text); }
.changelog-list { list-style: none; margin: 0; padding: 0; }
.changelog-list li { margin: 0.55rem 0; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }
.changelog-date { display: block; font-size: 0.72rem; color: var(--light); margin-bottom: 0.15rem; letter-spacing: 0.03em; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--border); padding-top: 1.25rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text);
  background: var(--text); color: #fff;
  font-size: 0.85rem; letter-spacing: 0.05em;
  cursor: pointer; transition: var(--transition);
}
.btn:hover { background: #333; border-color: #333; }
.btn.outline { background: transparent; color: var(--text); }
.btn.outline:hover { background: var(--text); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.btn.block { width: 100%; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem; background: var(--surface); border: 1px solid var(--border);
  color: var(--muted);
}
.tag.spot { background: #f3f9f4; border-color: #cfe3d2; color: #3a6b45; }
.tag.preorder { background: #fff8eb; border-color: #f0dcb6; color: #8a6a2a; }
.tag.soldout { background: #f5f5f5; border-color: #ddd; color: var(--light); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 76vh; display: grid; align-items: end; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,18,24,0.62), rgba(12,18,24,0.10)); }
.hero-content {
  position: relative; z-index: 2; color: #fff;
  padding: clamp(2rem, 6vw, 4rem) var(--side-pad);
  max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: 0.06em; line-height: 1.2; margin: 0 0 1rem; }
.hero p { font-size: 1.05rem; opacity: 0.88; max-width: 540px; margin: 0 0 1.75rem; }
.hero .slogan-en { font-size: 0.9rem; letter-spacing: 0.18em; opacity: 0.65; margin-bottom: 0.6rem; }

/* ---------- 栏目入口 ---------- */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.col-card {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
}
.col-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.col-card:hover img { transform: scale(1.04); }
.col-card .overlay { position: absolute; inset: 0; background: rgba(12,18,24,0.42); transition: background 0.3s; }
.col-card:hover .overlay { background: rgba(12,18,24,0.55); }
.col-card .text { position: relative; z-index: 2; }
.col-card h3 { font-size: 1.35rem; font-weight: 400; margin: 0 0 0.25rem; letter-spacing: 0.08em; }
.col-card p { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.col-card .arrow { margin-top: 0.8rem; font-size: 0.75rem; letter-spacing: 0.1em; opacity: 0; transform: translateX(-8px); transition: all 0.3s; }
.col-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 0; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 2rem;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-group a { font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0.9rem; border: 1px solid transparent; }
.filter-group a:hover { color: var(--text); border-color: var(--border); }
.filter-group a.active { color: #fff; background: var(--text); border-color: var(--text); }
.filter-selects select {
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1px solid var(--border); border-radius: 0;
  padding: 0.45rem 2rem 0.45rem 0.75rem; font-size: 0.85rem; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center;
  cursor: pointer; min-width: 7rem;
}
.filter-selects select:hover { border-color: var(--text); }
.filter-selects select:focus { outline: none; border-color: var(--text); }
@media (max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-selects { width: 100%; }
  .filter-selects select { flex: 1; min-width: 0; }
}

/* ---------- 书封栅格 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.book-card { cursor: pointer; }
.book-card .thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--surface); margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.book-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.book-card:hover .thumb img { transform: scale(1.03); }
.book-card .tag { position: absolute; top: 0.6rem; right: 0.6rem; }
.book-spine {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(18, 18, 18, 0.92);
  letter-spacing: 0.14em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0,0,0,0.06);
}
.book-spine .spine-line {
  display: block;
  max-height: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-spine .spine-line:first-child { opacity: 0.82; }
.book-spine .spine-line:last-child { font-weight: 500; }
.book-card .meta { display: flex; justify-content: space-between; gap: 1rem; }
.book-card h3 { font-size: 0.95rem; font-weight: 400; margin: 0 0 0.15rem; }
.book-card .en { font-size: 0.75rem; color: var(--light); }
.book-card .price { font-size: 0.85rem; white-space: nowrap; }
.book-card .price del { color: var(--light); margin-left: 0.4rem; }
.book-card .stock { font-size: 0.75rem; color: var(--light); margin-top: 0.25rem; }

/* ---------- 影集详情 ---------- */
.book-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.book-detail .media { position: sticky; top: 88px; }
.book-detail .media img { width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,0.10); }
.book-detail h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin: 0 0 0.3rem; }
.book-detail .subtitle { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; }
.book-detail .price-block { display: flex; align-items: baseline; gap: 1rem; font-size: 1.35rem; margin-bottom: 1.5rem; }
.book-detail .price-block del { color: var(--light); font-size: 0.95rem; }
.book-detail .tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.book-detail .book-classify {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding: 0.6rem 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
}
.book-classify .classify-item {
  display: flex; align-items: baseline; gap: 0.45rem;
  font-size: 0.78rem; padding-right: 0.75rem; border-right: 1px solid var(--border);
}
.book-classify .classify-item:last-child { border-right: none; padding-right: 0; }
.book-classify .classify-item span { color: var(--light); }
.book-classify .classify-item strong { color: var(--text); font-weight: 500; }
.book-detail dl { display: grid; grid-template-columns: 80px 1fr; gap: 0.45rem 1rem; font-size: 0.85rem; color: var(--muted); }
.book-detail dt { color: var(--text); }
.book-detail dd { margin: 0; }
.book-detail .desc { margin: 2rem 0 1.5rem; color: var(--muted); font-size: 0.95rem; }
.book-detail .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.book-detail .notice { font-size: 0.8rem; color: var(--light); }

/* ---------- 详情页轮播 ---------- */
.book-gallery {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem;
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: var(--text);
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.3s;
}
.book-gallery:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow.prev { left: 0.75rem; }
.gallery-arrow.next { right: 0.75rem; }

.gallery-dots {
  position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.45rem;
}
.gallery-dots .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.55);
  cursor: pointer; transition: background 0.3s;
}
.gallery-dots .dot.active { background: #fff; }

/* ---------- 小红书引导 ---------- */
.xhs-notice {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px;
}
.xhs-notice p { margin: 0; font-size: 0.85rem; color: var(--muted); flex: 1; }
.xhs-notice img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--border); }

@media (max-width: 640px) {
  .xhs-notice { flex-direction: column; align-items: flex-start; }
  .xhs-notice img { width: 64px; height: 64px; }
}

/* ---------- 文章列表 ---------- */
.sort-bar {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  margin-bottom: 1.5rem; font-size: 0.85rem;
}
.sort-bar button {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 0.35rem 0.9rem; cursor: pointer; transition: var(--transition);
}
.sort-bar button:hover { border-color: var(--text); color: var(--text); }
.sort-bar button.active { background: var(--text); border-color: var(--text); color: #fff; }
.post-list { display: grid; gap: 3rem; }
.post-item { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.post-item .thumb { overflow: hidden; aspect-ratio: 4 / 3; }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-item:hover .thumb img { transform: scale(1.03); }
.post-item .meta { font-size: 0.78rem; color: var(--light); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.post-item h3 { font-size: 1.25rem; font-weight: 400; margin: 0 0 0.5rem; }
.post-item p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.8rem; }
.post-item .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ---------- 文章阅读 ---------- */
.post-cover { position: relative; min-height: 55vh; display: grid; align-items: end; margin-bottom: 3rem; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1)); }
.post-cover .text { position: relative; z-index: 2; color: #fff; padding: 3rem var(--side-pad); max-width: var(--max-width); margin: 0 auto; width: 100%; }
.post-cover h1 { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 400; margin: 0 0 0.6rem; line-height: 1.25; }
.post-cover p { margin: 0; opacity: 0.85; }
.article { max-width: 720px; margin: 0 auto; padding: 0 var(--side-pad) 4rem; font-size: 1rem; }
.article p { margin: 0 0 1.2rem; color: var(--muted); }
.article .lead { font-size: 1.15rem; color: var(--text); line-height: 1.8; }
.article h3 { font-size: 1.15rem; font-weight: 500; margin: 2.5rem 0 1rem; color: var(--text); }
.article blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--text);
}

/* 文章内插图 */
.post-figure { margin: 2rem 0; }
.post-figure img { width: 100%; display: block; background: var(--surface); border-radius: 2px; }
.post-figure span { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--light); text-align: center; }

/* ---------- 光房栅格 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover img { transform: scale(1.03); }
.work-card .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 1.25rem; color: #fff; }
.work-card:hover .overlay { opacity: 1; }
.work-card h3 { font-size: 1rem; font-weight: 400; margin: 0 0 0.15rem; }
.work-card span { font-size: 0.78rem; opacity: 0.8; }
.work-card .series-count { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.35rem; background: rgba(255,255,255,0.25); border-radius: 2px; font-size: 0.65rem; line-height: 1.4; opacity: 1; }

.work-category { margin-bottom: 3.5rem; }
.work-category:last-child { margin-bottom: 0; }
.category-title { font-size: 1.15rem; font-weight: 500; margin: 0 0 1.25rem; color: var(--text); }

/* ---------- 单张作品 ---------- */
.light-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: start; }
.light-detail .media img { width: 100%; background: var(--surface); }
.light-detail h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; margin: 0 0 0.6rem; }
.light-detail .year { color: var(--muted); margin-bottom: 1.5rem; }
.light-detail .desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

/* ---------- 光房 Lightbox ---------- */
.lightbox-mask {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(12,18,24,0.88);
  display: none; align-items: center; justify-content: center;
  padding: 0;
}
.lightbox-mask.is-open { display: flex; }
.lightbox-panel {
  position: relative;
  width: 100%; max-width: var(--max-width);
  max-height: 100vh;
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  padding: 2rem var(--side-pad);
  overflow: hidden;
  background: #fff;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: var(--side-pad);
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: var(--light); cursor: pointer; z-index: 10;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.lightbox-media img {
  max-width: 100%; max-height: calc(100vh - 4rem);
  object-fit: contain;
  background: var(--surface);
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border);
  border-radius: 50%; font-size: 1.6rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-arrow:hover { background: var(--text); color: #fff; border-color: var(--text); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-info {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 2rem;
}
.lightbox-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; margin: 0 0 0.6rem; }
.lightbox-info .year { color: var(--muted); margin-bottom: 0.4rem; }
.lightbox-info .lightbox-counter { font-size: 0.8rem; color: var(--light); margin-bottom: 1.25rem; }
.lightbox-info .tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lightbox-info .desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.lightbox-info .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.lightbox-info .notice { font-size: 0.8rem; color: var(--light); }

@media (max-width: 1024px) {
  .lightbox-panel { grid-template-columns: 1fr; gap: 1.5rem; overflow-y: auto; }
  .lightbox-media img { max-height: 56vh; }
  .lightbox-info { padding-right: 0; padding-bottom: 2rem; }
  .lightbox-arrow { width: 2.5rem; height: 2.5rem; font-size: 1.35rem; }
}
@media (max-width: 768px) {
  .lightbox-panel { padding: 1rem var(--side-pad); gap: 1rem; }
  .lightbox-media img { max-height: 50vh; }
  .lightbox-info .actions { gap: 0.75rem; }
  .lightbox-info .btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
}

/* ---------- 跳转浮层 ---------- */
.modal-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 400; display: grid; place-items: start center;
  padding: 8vh 1.25rem 4vh; overflow-y: auto;
}
.modal-panel {
  position: relative; background: #fff; width: 100%; max-width: 520px;
  padding: 2rem; border: 1px solid var(--border);
}
.modal-close {
  position: absolute; top: 0.6rem; right: 0.9rem;
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  color: var(--light); cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-head { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.modal-head img { width: 72px; height: 96px; object-fit: cover; }
.modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.modal-head .en { font-size: 0.78rem; color: var(--light); }
.modal-price { font-size: 1rem; margin-top: 0.35rem; }
.modal-body { padding-top: 1.25rem; }
.modal-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light); margin: 0 0 0.75rem;
}
.qr-row { display: grid; grid-template-columns: 132px 1fr; gap: 1.25rem; align-items: start; }
.qr-row .qr { width: 132px; height: 132px; border: 1px solid var(--border); }
.qr-side p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--muted); }
.copy-line { display: flex; align-items: center; gap: 0.5rem; }
.copy-line code {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  padding: 0.35rem 0.6rem; font-size: 0.85rem;
}
.hint { font-size: 0.75rem; color: var(--light); margin-top: 0.5rem !important; }
.steps { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.steps li { margin: 0.3rem 0; }
.modal-note {
  margin-top: 1.25rem; padding: 0.8rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}

/* ---------- 购买说明页 ---------- */
.buy-guide { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 2rem; }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-size: 0.85rem; color: var(--light); letter-spacing: 0.05em;
}
.step-list h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.35rem; }
.step-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.contact-card { border: 1px solid var(--border); padding: 1.5rem; text-align: center; position: sticky; top: 88px; }
.contact-card img.qr { width: 100%; max-width: 200px; margin: 0 auto 1rem; border: 1px solid var(--border); }
.contact-card p { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0; }

/* ---------- 法律条款与通用 ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.legal-page h1 { font-size: 1.75rem; font-weight: 400; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.05rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.legal-page p { color: var(--muted); margin: 0.6rem 0; }
.legal-page ul { color: var(--muted); }

.about-page { max-width: 900px; margin: 0 auto; padding: 3rem 0; }
.about-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin-bottom: 1.5rem; }
.about-page h2 { font-size: 1.15rem; font-weight: 500; margin: 2.5rem 0 1rem; }
.about-page p { color: var(--muted); margin: 0.8rem 0; }
.about-page img { margin: 2.5rem 0; }

.brand-statement { font-size: 1.2rem; line-height: 1.9; color: var(--text); padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 2rem 0; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0; }
.contact-grid .contact-card { position: static; text-align: left; }
.contact-grid .contact-card h3 { font-size: 0.75rem; color: var(--light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-grid .contact-card p { margin: 0.35rem 0; font-size: 1.05rem; color: var(--text); }
.contact-grid .muted { font-size: 0.8rem !important; color: var(--muted) !important; }
.contact-grid .actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.contact-grid .actions .btn { white-space: nowrap; }
.contact-grid .btn.small { margin-top: 0.75rem; }
.contact-option.secondary { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.contact-option .btn.disabled { opacity: 0.55; pointer-events: none; cursor: default; }
.xhs-avatar { width: 56px; height: 56px; object-fit: cover; object-position: top center; border-radius: 50%; margin-bottom: 0.6rem; border: 1px solid var(--border); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 面包屑 ---------- */
.breadcrumbs { font-size: 0.8rem; color: var(--light); margin-bottom: 1.5rem; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- 空态 ---------- */
.empty { padding: 4rem 0; text-align: center; color: var(--light); }
.empty h3 { font-weight: 400; margin-bottom: 0.5rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--text); color: #fff; padding: 0.8rem 1.2rem;
  font-size: 0.85rem; z-index: 400; opacity: 0; transform: translateY(12px);
  transition: all 0.3s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .columns { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail .media { position: static; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .light-detail { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .buy-guide { grid-template-columns: 1fr; }
  .contact-card { position: static; max-width: 360px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav, .header-actions a:not(.btn) { display: none; }
  .header-actions .search-toggle { margin-right: 0.35rem; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .qr-row { grid-template-columns: 1fr; }
  .qr-row .qr { margin: 0 auto; }
  .modal-panel { padding: 1.5rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
}
