:root {
  --paper: #efe7d6;        /* 宣纸米黄 */
  --paper-deep: #e6dcc6;   /* 略深纸底 */
  --ink: #2b2620;          /* 墨色 */
  --ink-soft: #5a5248;     /* 淡墨 */
  --accent: #9e3b30;       /* 朱砂 */
  --accent-deep: #7d2c23;  /* 深朱 */
  --gold: #b08d57;         /* 描金 */
  --line: #cdbf a3;        /* 分隔线 */
  --line: #cdbfa3;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  /* 宣纸纹理：底色 + 极淡噪点 */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(176,141,87,0.06), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(158,59,48,0.05), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== 顶部导航 ===== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  z-index: 20;
}
.topbar .brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.topbar .nav-links { display: flex; gap: 28px; }
.topbar .nav-links a {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.topbar .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.topbar .nav-links a:hover { color: var(--accent); }
.topbar .nav-links a:hover::after { width: 100%; }

/* ===== 头图 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  overflow: hidden;
}
/* 竖排诗句（书画感） */
.hero-verse {
  position: absolute;
  top: 50%;
  right: clamp(12px, 6vw, 90px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  opacity: 0.55;
  line-height: 1.6;
}
.hero-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  letter-spacing: 0.45em;
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  font-size: clamp(64px, 13vw, 150px);
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255,255,255,0.3);
}
.hero-tag {
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.5em;
  color: var(--ink-soft);
  margin: 20px 0 0;
  padding-left: 0.5em;
}
/* 朱砂印章 */
.seal {
  width: 64px; height: 64px;
  margin: 26px auto 0;
  border: 2.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 26px;
  line-height: 1.05;
  color: var(--accent);
  background: rgba(158,59,48,0.04);
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  box-shadow: inset 0 0 0 1px rgba(158,59,48,0.25);
}
.hero-slogan {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 30px 0 0;
}
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ===== 理念 ===== */
.manifesto {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px 24px;
  text-align: center;
}
.manifesto .ornament { color: var(--accent); font-size: 18px; }
.manifesto p {
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 2.2;
  color: #3a342b;
  margin: 18px 0 0;
  letter-spacing: 0.08em;
}

/* ===== 区块标题 ===== */
.section-head { text-align: center; margin: 60px 0 26px; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.25em;
  margin: 0;
  color: var(--ink);
}
.section-head h2::before,
.section-head h2::after {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 18px 8px;
}
.section-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 10px 0 0;
}

/* ===== 系列筛选 ===== */
.series-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 38px;
}
.series-tabs button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  transition: color 0.3s ease;
}
.series-tabs button::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}
.series-tabs button:hover { color: var(--ink); }
.series-tabs button.active { color: var(--accent); }
.series-tabs button.active::after { width: 100%; }

/* ===== 瀑布流画廊 ===== */
.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 30px;
  column-count: 3;
  column-gap: 26px;
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

.card {
  break-inside: avoid;
  margin: 0 0 26px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(43,38,32,0.06);
  /* 水墨显影初始态 */
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(8px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2,0.7,0.2,1), filter 0.9s ease;
}
.card.visible { opacity: 1; transform: none; filter: blur(0); }

.photo-wrap { overflow: hidden; background: var(--paper-deep); }
.photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  /* 古风调色：微暖、低饱和、轻做旧 */
  filter: sepia(0.28) saturate(0.82) contrast(0.96) brightness(1.03);
  transition: transform 1.3s cubic-bezier(0.2,0.7,0.2,1), filter 0.8s ease;
}
.card:hover .photo-wrap img {
  transform: scale(1.06);
  filter: sepia(0) saturate(1) contrast(1) brightness(1.02);
}

.caption {
  padding: 14px 18px 20px;
  border-top: 1px solid var(--line);
}
.caption .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.caption .series-tag {
  float: right;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 1px 7px;
  margin-top: 2px;
}
.caption h3 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  margin: 8px 0 5px;
}
.caption .meta {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 9px;
}
.caption .desc {
  font-size: 14px;
  line-height: 1.85;
  color: #4a443a;
  margin: 0;
}

/* ===== 关于 ===== */
.about { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
.about-text p { font-size: 16px; line-height: 2.1; color: #3a342b; margin: 0 0 18px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  letter-spacing: 0.12em;
}
.services li span {
  font-family: "Ma Shan Zheng", cursive;
  color: var(--accent);
  font-size: 22px;
}

/* ===== 预约 ===== */
.contact { max-width: 820px; margin: 30px auto 70px; padding: 0 24px; text-align: center; }
.contact-line {
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 2;
  color: #3a342b;
  letter-spacing: 0.12em;
  margin: 10px 0 36px;
}
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.c-card {
  border: 1px solid var(--line);
  background: #fbf7ee;
  padding: 18px 28px;
  letter-spacing: 0.1em;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(43,38,32,0.05);
}
.c-card span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 6px;
}
.c-card.wechat-card {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 28px 16px;
}
.qr-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 6px 0 4px;
  image-rendering: -webkit-optimize-contrast;
}
.qr-hint {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ===== 页脚 ===== */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 60px; text-align: center; }
.rule { height: 1px; background: var(--line); max-width: 240px; margin: 0 auto 22px; position: relative; }
.rule::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--accent);
  transform: translate(-50%,-50%) rotate(45deg);
}
.site-footer p { color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0.12em; margin: 0; }

/* 尊重减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; filter: none; transition: none; }
  .scroll-hint { animation: none; }
  .photo-wrap img { transition: none; }
}
