/* ===========================================
   光影时光坊 — 复古木框主题样式表
   =========================================== */

:root {
  --wood-dark: #2C1810;
  --wood-mid: #5D3A1A;
  --wood-light: #8B6914;
  --gold: #C8A86E;
  --gold-light: #E8D5A3;
  --gold-dark: #A8873E;
  --paper: #F5EDE0;
  --paper-dark: #E8DCC8;
  --sepia: #F0E4D0;
  --ink: #1A1410;
  --ink-light: #3D3228;
  --gray: #7A7060;
  --gray-light: #C8BFA8;
  --cream: #FFF8F0;
  --shadow: rgba(44, 24, 16, 0.15);
  --shadow-lg: rgba(44, 24, 16, 0.25);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-seal: 'Ma Shan Zheng', 'KaiTi', cursive;
  --frame-width: 36px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: #1A0F0A;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.8;
  /* 给木框留空间，不让内容被框挡住 */
  padding: var(--frame-width) var(--frame-width) 0;
  padding-bottom: 0;
  min-height: 100vh;
}

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

/* =============================================================
   木框 — 四根独立木条，`position: fixed` 精确到视口边缘
   上下框有立体光影渐变（上亮下暗），左右框同理
   ============================================================= */

/* 共用的木纹基底 + 立体光影 */
.frame-top,
.frame-bottom,
.frame-left,
.frame-right {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

/* ── 上框 ── 从上到下：亮→暗（模拟顶光） */
.frame-top {
  top: 0; left: 0; right: 0;
  height: var(--frame-width);
  background:
    /* 木纹线条 */
    repeating-linear-gradient(
      85deg,
      transparent 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 18px
    ),
    /* 立体光影：上亮下暗 */
    linear-gradient(
      180deg,
      #8B6B3A 0%,
      #6B4226 15%,
      #5D3A1A 40%,
      #4A2818 70%,
      #2C1810 100%
    );
  box-shadow:
    inset 0 -3px 10px rgba(0,0,0,0.4),
    0 0 30px rgba(0,0,0,0.3);
}

/* ── 下框 ── 从下到上：亮→暗（模拟底光反射） */
.frame-bottom {
  bottom: 0; left: 0; right: 0;
  height: var(--frame-width);
  background:
    /* 木纹线条 */
    repeating-linear-gradient(
      85deg,
      transparent 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 18px
    ),
    /* 立体光影：下亮上暗（反射光） */
    linear-gradient(
      0deg,
      #8B6B3A 0%,
      #6B4226 15%,
      #5D3A1A 40%,
      #4A2818 70%,
      #2C1810 100%
    );
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,0.4),
    0 0 30px rgba(0,0,0,0.3);
}

/* ── 左框 ── 从左到右：亮→暗 */
.frame-left {
  top: 0; left: 0; bottom: 0;
  width: var(--frame-width);
  background:
    /* 木纹线条（竖向） */
    repeating-linear-gradient(
      175deg,
      transparent 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 18px
    ),
    /* 立体光影：左亮右暗 */
    linear-gradient(
      90deg,
      #8B6B3A 0%,
      #6B4226 15%,
      #5D3A1A 40%,
      #4A2818 70%,
      #2C1810 100%
    );
  box-shadow:
    inset -3px 0 10px rgba(0,0,0,0.4),
    0 0 30px rgba(0,0,0,0.3);
}

/* ── 右框 ── 从右到左：亮→暗 */
.frame-right {
  top: 0; right: 0; bottom: 0;
  width: var(--frame-width);
  background:
    /* 木纹线条（竖向） */
    repeating-linear-gradient(
      175deg,
      transparent 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 18px
    ),
    /* 立体光影：右亮左暗（反射光） */
    linear-gradient(
      270deg,
      #8B6B3A 0%,
      #6B4226 15%,
      #5D3A1A 40%,
      #4A2818 70%,
      #2C1810 100%
    );
  box-shadow:
    inset 3px 0 10px rgba(0,0,0,0.4),
    0 0 30px rgba(0,0,0,0.3);
}

/* 木节纹理 — 叠加在四条框上 */
.frame-top::after,
.frame-bottom::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 14px 10px at 20% 50%, rgba(30,12,5,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 12px 8px at 60% 30%, rgba(35,15,8,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 10px 7px at 85% 65%, rgba(25,10,5,0.15) 0%, transparent 50%);
}
.frame-left::after,
.frame-right::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 10px 14px at 50% 20%, rgba(30,12,5,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 8px 12px at 30% 60%, rgba(35,15,8,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 7px 10px at 65% 85%, rgba(25,10,5,0.15) 0%, transparent 50%);
}

/* ── 金色内框线（卡纸效果） ── */
.frame-bevel {
  position: fixed;
  top: var(--frame-width);
  left: var(--frame-width);
  right: var(--frame-width);
  bottom: var(--frame-width);
  border: 1px solid rgba(200, 168, 110, 0.18);
  pointer-events: none;
  z-index: 10000;
  box-shadow:
    0 0 12px rgba(200, 168, 110, 0.06);
}

/* ── 四角金色装饰 ── */
.frame-corner {
  position: fixed;
  width: 38px;
  height: 38px;
  z-index: 10001;
  pointer-events: none;
}
.frame-corner.tl {
  top: calc(var(--frame-width) - 2px);
  left: calc(var(--frame-width) - 2px);
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.6;
}
.frame-corner.tr {
  top: calc(var(--frame-width) - 2px);
  right: calc(var(--frame-width) - 2px);
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.6;
}
.frame-corner.bl {
  bottom: calc(var(--frame-width) - 2px);
  left: calc(var(--frame-width) - 2px);
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.6;
}
.frame-corner.br {
  bottom: calc(var(--frame-width) - 2px);
  right: calc(var(--frame-width) - 2px);
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.6;
}

/* ===== 滚动按钮 ===== */
.scroll-buttons {
  position: fixed;
  right: calc(var(--frame-width) + 16px);
  bottom: 80px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
  pointer-events: none;
}
.scroll-buttons.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.scroll-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 168, 110, 0.3);
  background: rgba(44, 24, 16, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.scroll-btn:hover {
  background: var(--gold);
  color: var(--wood-dark);
  transform: scale(1.1);
  border-color: var(--gold);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: calc(var(--frame-width) + 8px);
  left: calc(var(--frame-width) + 8px);
  right: calc(var(--frame-width) + 8px);
  z-index: 1000;
  padding: 0 24px;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 15, 10, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(200, 168, 110, 0.15);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.logo .logo-icon {
  width: 40px;
  height: 40px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--gold-light);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
  letter-spacing: 1px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(200,168,110,0.06) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}
  padding: 100px 48px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 40% 30%, rgba(200, 168, 110, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 60% 70%, rgba(93, 58, 26, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #1A0F0A 0%, #2C1810 30%, #3D2010 60%, #1A0F0A 100%);
  z-index: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 15, 10, 0.6) 0%, transparent 40%, transparent 60%, rgba(26, 15, 10, 0.3) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-seal {
  display: inline-block;
  font-family: var(--font-seal);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  border: 2px solid rgba(200, 168, 110, 0.15);
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  margin-bottom: 24px;
  transform: rotate(-8deg);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(200, 168, 110, 0.2);
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 1px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1A0F0A;
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(200, 168, 110, 0.2);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 168, 110, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover {
  background: var(--gold);
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  font-size: 1.05rem;
  font-weight: 600;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 3px;
}
.btn-load-more:hover {
  background: linear-gradient(135deg, rgba(200,168,110,0.15), rgba(200,168,110,0.05));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,110,0.2);
}

/* ===== 滚动指示器 ===== */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.8rem;
  z-index: 2;
  animation: float 2s ease-in-out infinite;
  letter-spacing: 2px;
}
.scroll-arrow { font-size: 1.1rem; animation: bounce 2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== 通用段落 ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(200, 168, 110, 0.3);
  background: rgba(44, 24, 16, 0.5);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 3px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
}

/* ===== 品牌特色 ===== */
.features {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
.feature-card {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.6), rgba(61, 32, 16, 0.4));
  border: 1px solid rgba(200, 168, 110, 0.12);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 168, 110, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gold-light); }
.feature-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.7; }

/* ===== 分类标签 ===== */
.categories {
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
  scroll-margin-top: 100px;
}
.gallery, .about, .contact {
  scroll-margin-top: 100px;
}
.categories-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 28px;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cat-tab {
  padding: 8px 22px;
  border: 1px solid rgba(200, 168, 110, 0.2);
  background: rgba(44, 24, 16, 0.3);
  font-size: 0.85rem;
  color: var(--gold-light);
  transition: var(--transition);
  letter-spacing: 1px;
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold); background: rgba(44, 24, 16, 0.6); }
.cat-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A0F0A;
  font-weight: 700;
}

/* ===== 画廊 ===== */
.gallery {
  padding: 40px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--gray);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(200, 168, 110, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 明信片卡片 ===== */
.postcard {
  background: linear-gradient(160deg, rgba(61, 32, 16, 0.5), rgba(44, 24, 16, 0.3));
  border: 1px solid rgba(200, 168, 110, 0.12);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.postcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(200, 168, 110, 0.3);
}
.postcard-image {
  position: relative;
  overflow: hidden;
  background: #2c1810;
  height: 350px;
}
.postcard-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.postcard-image img.landscape {
  object-fit: cover;
  object-position: center top;
  height: 200px;
}
.postcard:hover .postcard-image img { transform: scale(1.08); }
.postcard-image .placeholder {
  font-size: 3.5rem;
  opacity: 0.25;
}
.postcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 12px;
  background: var(--gold);
  color: #1A0F0A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.postcard-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 16px 10px;
  background: linear-gradient(transparent 10%, rgba(26,15,10,0.85) 50%);
  pointer-events: none;
}
.postcard-info > * { pointer-events: auto; }
.postcard-category {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.7;
}
.postcard-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0;
  color: var(--gold-light);
}
.postcard-subtitle {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 4px;
}
.postcard-asset-id {
  font-size: 0.68rem;
  color: var(--gray);
  opacity: 0.5;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.modal-asset-id {
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.5;
  margin: 4px 0;
}
.postcard-credits {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 8px;
  line-height: 1.5;
}
.credit-sep {
  display: inline-block;
  margin: 0 4px;
  opacity: 0.4;
}
.postcard-stars {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 2px;
}
.modal-credits {
  margin: 8px 0;
  font-size: 0.85rem;
  color: var(--gold-light);
  opacity: 0.8;
  line-height: 1.6;
}
.postcard-stars .star-filled { color: #f1c40f; filter: drop-shadow(0 0 4px rgba(241, 196, 15, 0.3)); }
.postcard-stars .star-empty { color: rgba(200, 168, 110, 0.15); }
.postcard-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.postcard-tag {
  padding: 2px 10px;
  border: 1px solid rgba(200, 168, 110, 0.12);
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.6;
}

/* ===== About ===== */
.about {
  padding: 100px 48px;
  background: linear-gradient(180deg, rgba(26, 15, 10, 0.8), rgba(44, 24, 16, 0.6));
  border-top: 1px solid rgba(200, 168, 110, 0.08);
  border-bottom: 1px solid rgba(200, 168, 110, 0.08);
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 2;
}
.about-text strong { color: var(--gold-light); }
.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(200, 168, 110, 0.15);
}
.stat-label { color: var(--gray); font-size: 0.85rem; letter-spacing: 2px; }

/* ===== 联系 ===== */
.contact {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
.contact-card {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.5), rgba(61, 32, 16, 0.3));
  border: 1px solid rgba(200, 168, 110, 0.1);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 168, 110, 0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--gold-light); }
.contact-card p { color: var(--gray); font-size: 0.9rem; }
.contact-card a { color: var(--gold); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(135deg, #2C1810, #3D2010);
  border: 1px solid rgba(200, 168, 110, 0.2);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 168, 110, 0.2);
  background: rgba(44, 24, 16, 0.6);
  color: var(--gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover { background: var(--gold); color: #1A0F0A; }
.modal-body { display: flex; flex-direction: column; }
@media (min-width: 1025px) {
  .modal-body { flex-direction: row; }
}
.modal-image {
  flex: 1;
  min-height: 280px;
  background: rgba(44, 24, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.4s;
  padding: 20px;
}
.modal-image img:hover { opacity: 0.85; }
.modal-image .placeholder { font-size: 4rem; opacity: 0.2; }
.modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 12px;
  background: var(--gold);
  color: #1A0F0A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.modal-info { flex: 1; padding: 32px; }
.modal-category {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.7;
}
.modal-info h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 4px 0;
  color: var(--gold-light);
}
.modal-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.modal-stars {
  margin-bottom: 16px;
  font-size: 1.4rem;
  letter-spacing: 4px;
}
.modal-stars .star-filled { color: #f1c40f; filter: drop-shadow(0 0 6px rgba(241, 196, 15, 0.4)); }
.modal-stars .star-empty { color: rgba(200, 168, 110, 0.12); }
.modal-desc {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.modal-tags span {
  padding: 3px 12px;
  border: 1px solid rgba(200, 168, 110, 0.15);
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.7;
}
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(200, 168, 110, 0.1);
  background: rgba(44, 24, 16, 0.3);
}
.modal-specs .spec-item { font-size: 0.82rem; }
.modal-specs .spec-label { color: var(--gray); display: block; font-size: 0.75rem; }
.modal-specs .spec-value { font-weight: 500; color: var(--gold-light); }

/* ===== 页脚 ===== */
.footer {
  background: #1A0F0A;
  color: var(--gold-light);
  padding: 60px 48px 0;
  border-top: 1px solid rgba(200, 168, 110, 0.08);
}
/* ===== 投稿弹窗表单 ===== */
.submit-modal { max-width: 600px !important; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(44, 24, 16, 0.5);
  border: 1px solid rgba(200, 168, 110, 0.15);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(200, 168, 110, 0.1);
}
.form-input::placeholder { color: rgba(200, 168, 110, 0.25); }
.form-textarea { resize: vertical; min-height: 80px; }
.upload-area {
  border: 2px dashed rgba(200, 168, 110, 0.2);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(44, 24, 16, 0.2);
}
.upload-area:hover {
  border-color: var(--gold);
  background: rgba(44, 24, 16, 0.4);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid rgba(200, 168, 110, 0.1);
  background: rgba(44, 24, 16, 0.2);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* 导航-投稿按钮 */
.nav-submit {
  padding: 6px 16px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-submit:hover {
  background: var(--gold) !important;
  color: #1A0F0A !important;
}
.nav-submit::after { display: none !important; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-brand .logo-icon { color: var(--gold); }
.footer-brand .logo-text { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.footer-brand p { color: var(--gray); margin-top: 8px; font-size: 0.85rem; }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 500;
}
.footer-links a {
  display: block;
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: var(--gray); font-size: 0.85rem; margin-bottom: 8px; }
.footer-bottom {
  text-align: center;
  padding: 24px;
  padding-bottom: calc(24px + var(--frame-width) + 12px);
  margin-top: 40px;
  border-top: 1px solid rgba(200, 168, 110, 0.06);
  color: var(--gray);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.icp-info {
  margin-top: 8px;
  font-size: 0.75rem;
}
.icp-info a {
  color: rgba(200, 168, 110, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.beian-link::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url(/images/beian-icon.png) center no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
}
.icp-info a:hover {
  color: var(--gold);
}
@media (max-width: 768px) {
  .icp-info a {
    display: block;
    margin: 4px 0;
  }
  .icp-sep { display: none; }
  .beian-link {
    display: inline-flex;
  }
}
}

/* ===== 动画辅助 ===== */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: animateUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes animateUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 28px;
  background: rgba(44, 24, 16, 0.95);
  border: 1px solid rgba(200, 168, 110, 0.2);
  color: var(--gold-light);
  font-size: 0.85rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 灯箱 ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(200, 168, 110, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
  font-family: serif;
}
.lightbox-close:hover {
  color: var(--gold);
}
.lightbox-image {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: opacity 0.3s ease;
}
.lightbox-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
  z-index: 100001;
  display: none;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox-toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.5px;
  z-index: 100001;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.lightbox-toast.show { opacity: 1; }

@media (max-width: 1024px) {
  :root { --frame-width: 10px; }
  body { padding: var(--frame-width) var(--frame-width) 0; }
  .navbar { top: calc(var(--frame-width) + 4px); left: 4px; right: 4px; }
  .scroll-buttons { right: calc(var(--frame-width) + 6px); bottom: 50px; }
  .scroll-btn { width: 34px; height: 34px; font-size: 1rem; }
  .frame-corner { width: 24px; height: 24px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(26, 15, 10, 0.98);
    padding: 24px;
    gap: 16px;
    border: 1px solid rgba(200, 168, 110, 0.12);
  }
  .hamburger { display: block; color: var(--gold); font-size: 1.5rem; }

  /* Hero */
  .scroll-indicator { bottom: -20px; }
  .hero { padding: 70px 20px 50px; min-height: 70vh; }
  .hero-image { max-height: 50vh; object-position: top; }
  .hero-video { max-height: 50vh; object-position: top; }
  .hero-seal { width: 60px; height: 60px; line-height: 60px; font-size: 2rem; }
  .hero-desc { font-size: 0.9rem; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }

  /* 区块通用 */
  .features, .categories, .gallery, .about, .contact {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-header { margin-bottom: 32px; }
  .categories-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-header h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* 特色卡片 */
  .features { padding-top: 50px; padding-bottom: 50px; }
  .feature-card { padding: 24px 16px; }
  .feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.8rem; }

  /* 分类标签：横向滚动 */
  .categories { margin-bottom: 24px; }
  .category-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
    overflow: visible;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 1rem;
  }

  /* 画廊 */
  .gallery { padding: 30px 20px 60px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .postcard-image { height: 260px; }
  .postcard-image img.landscape { height: 160px; }
  .postcard-info { padding: 12px; }
  .postcard-category { font-size: 0.65rem; }
  .postcard-title { font-size: 1rem; }
  .postcard-subtitle { font-size: 0.75rem; }
  .postcard-stars { font-size: 0.8rem; margin-bottom: 4px; }
  .postcard-tag { font-size: 0.65rem; padding: 2px 8px; }

  /* About */
  .about { padding: 60px 20px; }
  .about-text p { font-size: 0.95rem; line-height: 1.8; }
  .about-stats { gap: 20px; }
  .stat { flex: 1; min-width: 80px; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.75rem; }

  /* 联系 */
  .contact { padding: 60px 20px; }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .contact-card { padding: 20px 12px; }
  .contact-icon { font-size: 1.6rem; margin-bottom: 8px; }
  .contact-card h3 { font-size: 0.85rem; }
  .contact-card p { font-size: 0.78rem; }

  /* Footer */
  .footer { padding: 40px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-links a { display: inline-block; margin: 4px 12px; }
  .footer-bottom { font-size: 0.7rem; padding: 16px; }
  .icp-info { font-size: 0.65rem; }

  /* 弹窗 */
  .modal {
    width: 95vw;
    max-height: 90vh;
  }
  .modal-body { flex-direction: column !important; }
  .modal-image { min-height: 180px; }
  .modal-image img { padding: 12px; }
  .modal-info { padding: 16px 20px; }
  .modal-title { font-size: 1.2rem; }
  .modal-subtitle { font-size: 0.85rem; }
  .modal-desc { font-size: 0.85rem; }
  .modal-specs { grid-template-columns: 1fr 1fr; }

  /* 投稿弹窗 */
  .submit-modal { width: 95vw; }
  .modal-info { padding: 20px !important; }
  .form-input { font-size: 0.85rem; padding: 10px 14px; }
  .form-textarea { min-height: 60px; }

  /* 灯箱 */
  .lightbox-close { top: 12px; right: 16px; font-size: 2rem; }
  .lightbox-image { max-width: 96vw; max-height: 85vh; }

  /* 滚动按钮 */
  .scroll-btn { width: 34px; height: 34px; font-size: 1rem; }
}

/* ========== 季节粒子 ========== */
.summer-mote {
  position: fixed; top: -20px; z-index: 9998; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #ffcc00);
  box-shadow: 0 0 8px rgba(255,200,50,.6), 0 0 16px rgba(255,150,0,.3);
  animation: moteFall linear infinite, twinkle 2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes moteFall {
  0%{transform:translateY(0)translateX(0)}
  100%{transform:translateY(105vh)translateX(var(--drift,30px))}
}
@keyframes twinkle {
  0%,100%{opacity:0.4;box-shadow:0 0 6px rgba(255,200,50,.3)}
  25%{opacity:1;box-shadow:0 0 14px rgba(255,200,50,.8),0 0 24px rgba(255,150,0,.4)}
  50%{opacity:0.3;box-shadow:0 0 4px rgba(255,200,50,.2)}
  75%{opacity:0.9;box-shadow:0 0 12px rgba(255,200,50,.7),0 0 20px rgba(255,150,0,.3)}
}

.snowflake {
  position: fixed; top: -14px; z-index: 9999; pointer-events: none;
  background: radial-gradient(circle, #fff, rgba(220,230,255,.8));
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,.5), inset 0 0 2px rgba(255,255,255,.8);
  animation: flakeFall linear infinite, twinkleSnow 3s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes flakeFall {
  0%{transform:translateY(0)translateX(0)}
  100%{transform:translateY(105vh)translateX(var(--drift,20px))}
}
@keyframes twinkleSnow {
  0%,100%{opacity:0.3}
  30%{opacity:1;box-shadow:0 0 12px rgba(255,255,255,.7)}
  60%{opacity:0.5}
  80%{opacity:0.9}
}


.is-winter .frame-top::before{content:"";position:absolute;top:-3px;left:0;right:0;height:5px;background:linear-gradient(180deg,rgba(255,255,255,.2),transparent);border-radius:0 0 3px 3px}
