/* ===== 基础变量 ===== */
:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-alt: #f5f0ea;
  --color-text: #3d3529;
  --color-text-light: #7a7265;
  --color-accent: #c1784a;
  --color-accent-hover: #a05d33;
  --color-border: #e5ded5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); padding: 0 32px;
  background: rgba(250,248,245,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s;
}
.nav--scrolled { background: rgba(250,248,245,.97); box-shadow: var(--shadow); }
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--color-accent); letter-spacing: 2px;
}
.nav__links { display: flex; gap: 8px; list-style: none; }
.nav__links a {
  padding: 8px 18px; border-radius: 20px;
  font-size: .92rem; font-weight: 400;
  color: var(--color-text-light);
  transition: all .25s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--color-accent); background: rgba(193,120,74,.08); }
.nav__toggle { display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px; transition: all .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: url('/images/optimized/微信图片_20260528181532_1023_74-82a502e01e-w1920-q78.webp') center/cover no-repeat;
  color: #fff;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,10,.45) 0%, rgba(30,20,10,.65) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 640px; padding: 0 24px; }
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; margin-bottom: 16px;
  letter-spacing: 4px;
}
.hero__subtitle {
  font-size: 1.1rem; font-weight: 300; opacity: .9; margin-bottom: 36px;
}
.hero__cta {
  display: inline-block; padding: 14px 40px;
  border: 2px solid #fff; border-radius: 30px;
  font-size: 1rem; color: #fff;
  transition: all .3s;
}
.hero__cta:hover { background: #fff; color: #3d3529; }

/* ===== Section 通用 ===== */
.section { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.section--alt { background: var(--color-alt); max-width: 100%; padding-left: 0; padding-right: 0; }
.section--alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section--alt .section__header { padding-left: 24px; padding-right: 24px; }
.section__header { text-align: center; margin-bottom: 48px; }
.section__title { font-size: 1.8rem; font-weight: 600; color: var(--color-text); }

/* ===== 画廊通用 ===== */
.gallery { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--color-surface);
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  aspect-ratio: 4 / 5;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__caption {
  color: #fff; font-size: .9rem; font-weight: 400;
}

/* 瀑布流 (旅行) */
.gallery--masonry,
.gallery--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.gallery__item--landscape,
.gallery__item--panorama {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* 网格 (美食) */
.gallery--grid { align-items: stretch; }

/* ===== 视频区 ===== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
  background: var(--color-surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-card__player {
  position: relative; padding-bottom: 56.25%; /* 16:9 */
}
.video-card__player iframe,
.video-card__player video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; object-fit: cover;
}
.video-card__external {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  background: linear-gradient(135deg, #111 0%, #2f2a25 52%, #c1784a 100%);
  color: #fff;
  overflow: hidden;
}
.video-card__external img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .35s;
}
.video-card__external:hover img {
  transform: scale(1.04);
}
.video-card__external::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.08);
}
.video-card__external-icon {
  position: relative; z-index: 1;
}
.video-card__external-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  font-size: 1.05rem; font-weight: 700;
}
.video-card__info { padding: 16px 20px; }
.video-card__caption { font-size: .95rem; font-weight: 500; }

/* ===== 关于 ===== */
.about { max-width: 640px; text-align: center; margin: 0 auto; }
.about__avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 24px; border: 4px solid var(--color-border);
}
.about__text { font-size: 1.05rem; color: var(--color-text-light); line-height: 1.9; }

/* ===== 灯箱 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,15,10,.92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox--open { opacity: 1; pointer-events: auto; }
.lightbox__close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; font-size: 2.4rem;
  color: #fff; cursor: pointer; opacity: .7; transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__img {
  max-width: 90vw; max-height: 75vh; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); object-fit: contain;
}
.lightbox__caption {
  margin-top: 16px; color: rgba(255,255,255,.75);
  font-size: .95rem; text-align: center;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 40px 24px;
  color: var(--color-text-light); font-size: .85rem;
  border-top: 1px solid var(--color-border);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; background: rgba(250,248,245,.97);
    backdrop-filter: blur(12px); padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%); opacity: 0; transition: all .3s;
  }
  .nav__links--open { transform: translateY(0); opacity: 1; }
  .nav__links a { display: block; text-align: center; padding: 12px; border-radius: 0; }
  .nav__toggle { display: flex; }

  .gallery { gap: 14px; }
  .gallery--masonry,
  .gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 56px 16px; }
  .gallery--masonry,
  .gallery--grid { grid-template-columns: 1fr; }
  .gallery__item--landscape,
  .gallery__item--panorama { grid-column: span 1; }
  .hero__title { font-size: 1.8rem; letter-spacing: 2px; }
}
