/* ===== 字体 ===== */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=ZCOOL+XiaoWei&family=Long+Cang&family=ZCOOL+QingKe+HuangYou&display=swap');

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

/* ===== body ===== */
body {
  font-family: "FZXingKai-Z04S", "STXingkai", "华文行楷", "KaiTi", "楷体", "FangSong", "仿宋", serif;
  color: #2b2b2b;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 背景层 ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('001.PNG');
  background-size: cover;
  background-position: center;
  z-index: -3;
  transition: opacity .8s ease;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, .62);
  z-index: -2;
  transition: background .8s ease;
}

/* ===== 季节色调滤镜 ===== */
body.season-spring .bg-overlay {
  background: rgba(15, 30, 20, .58);
}
body.season-summer .bg-overlay {
  background: rgba(10, 25, 15, .60);
}
body.season-autumn .bg-overlay {
  background: rgba(30, 22, 10, .58);
}
body.season-winter .bg-overlay {
  background: rgba(10, 15, 30, .62);
}
body.season-market .bg-overlay {
  background: rgba(25, 18, 10, .55);
}

/* ===== 花瓣 ===== */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  border-radius: 0 100% 0 100%;
  opacity: .7;
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: .8; }
  25%  { transform: translateY(25vh) rotate(90deg) translateX(20px); }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(-15px); opacity: .6; }
  75%  { transform: translateY(75vh) rotate(270deg) translateX(10px); }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-5px); opacity: 0; }
}

/* ===== 纸张主体 ===== */
.paper {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(247, 241, 227, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  box-shadow:
    0 0 0 1px #c9a96e,
    0 0 0 6px rgba(247,241,227,.92),
    0 0 0 7px #c9a96e,
    0 30px 80px rgba(0,0,0,.55);
  min-height: 100vh;
}

/* 纸张纹理 */
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(180,150,100,.03) 39px, rgba(180,150,100,.03) 40px),
    radial-gradient(ellipse at 50% 0%, rgba(200,170,120,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 卷轴 ===== */
.scroll-top, .scroll-bottom {
  height: 18px;
  background: linear-gradient(180deg, #5a3820, #8b5e3c, #5a3820);
  border-radius: 9px;
  margin: 0 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.scroll-top { margin-top: 12px; margin-bottom: -6px; }
.scroll-bottom { margin-bottom: 12px; margin-top: -6px; }
.scroll-top::before, .scroll-bottom::before {
  content: '';
  position: absolute;
  left: -10px; top: 2px;
  width: 14px; height: 14px;
  background: radial-gradient(circle, #a07040, #5a3820);
  border-radius: 50%;
  box-shadow: calc(100% + 1080px) 0 #a07040;
}

/* ===== 横幅 ===== */
.banner {
  height: 320px;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Yangzhou_Slender_West_Lake.jpg/1280px-Yangzhou_Slender_West_Lake.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,20,.3), rgba(10,25,20,.85));
  display: flex; align-items: center; justify-content: center;
  gap: 30px;
}

.banner-decor {
  font-size: 48px;
  color: rgba(255,210,140,.4);
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .3; } to { opacity: .7; } }

.banner-text { text-align: center; color: #f5ecd8; }

.banner h1 {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 68px;
  letter-spacing: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.7), 0 0 60px rgba(255,200,100,.1);
  font-weight: 400;
}

.subtitle {
  font-family: "Long Cang", cursive;
  font-size: 22px;
  letter-spacing: 10px;
  margin-top: 8px;
  opacity: .8;
}

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 14px 0 10px;
}
.divider span {
  display: block; width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, #d8b46a, transparent);
}
.divider em {
  font-family: "Ma Shan Zheng", cursive;
  font-style: normal;
  font-size: 20px;
  color: #d8b46a;
}

.spots-line {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 16px;
  letter-spacing: 6px;
  opacity: .75;
}

.ink-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,25,20,.4) 100%);
  pointer-events: none;
}

/* ===== 布局 ===== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 28px 28px 24px;
  position: relative;
  z-index: 1;
}

/* ===== 竖排 ===== */
.vertical-title {
  position: absolute;
  left: 8px; top: 360px;
  display: flex; flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.vertical-title span {
  writing-mode: vertical-rl;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 14px;
  color: rgba(122,44,44,.25);
  letter-spacing: 4px;
}

/* ===== 菜单 ===== */
.menu {
  display: flex; flex-direction: column; gap: 0;
  border-right: 1px solid rgba(201,164,110,.4);
  padding-right: 20px;
}

.menu-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 14px;
  color: #a04040;
  letter-spacing: 8px;
  text-align: center;
  padding: 0 0 16px;
  border-bottom: 1px dashed rgba(201,164,110,.5);
  margin-bottom: 12px;
}

.spot-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,164,110,.2);
  cursor: pointer;
  transition: all .4s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.spot-btn::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(122,44,44,.08), transparent);
  transition: width .4s ease;
}

.spot-btn:hover::after { width: 100%; }
.spot-btn:hover { padding-left: 20px; }

.spot-btn.active {
  background: linear-gradient(90deg, rgba(122,44,44,.1), rgba(122,44,44,.02));
}
.spot-btn.active::after { width: 4px; background: #7a2c2c; }

.btn-num {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 18px;
  color: #a04040;
  opacity: .6;
  min-width: 24px;
}

.btn-text {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 20px;
  color: #3a2f1a;
  letter-spacing: 2px;
  flex: 1;
}

.btn-tag {
  font-family: "Long Cang", cursive;
  font-size: 13px;
  color: #8a7a55;
  border: 1px solid rgba(138,122,85,.3);
  padding: 1px 6px;
  border-radius: 3px;
}

.spot-btn.active .btn-text { color: #7a2c2c; font-weight: bold; }
.spot-btn.active .btn-num { opacity: 1; }

/* ===== 展示区 ===== */
.show {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  transition: opacity .4s ease, transform .4s ease;
}

.show.switching {
  opacity: 0;
  transform: scale(.98);
}

/* ===== 图片 ===== */
.photo-wrapper {
  display: flex; flex-direction: column; gap: 12px;
}

.photo-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}

.photo {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94), filter .8s ease;
  filter: saturate(1.05) contrast(1.02);
}

.show:not(.switching) .photo img {
  animation: imgReveal .8s ease-out;
}
@keyframes imgReveal {
  from { opacity: 0; filter: blur(10px) saturate(.5); }
  to { opacity: 1; filter: blur(0) saturate(1.05); }
}

.photo:hover img { transform: scale(1.06); filter: saturate(1.15) contrast(1.05); }

.photo-ink {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(20,40,35,.15), transparent 70%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.frame-corner {
  position: absolute; width: 24px; height: 24px;
  border-color: #a04040; border-style: solid; border-width: 0;
  opacity: .7;
}
.frame-corner.tl { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: 6px; right: 6px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: 6px; left: 6px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }

/* ===== 诗句 ===== */
.poem-box {
  background: linear-gradient(135deg, #2e2a25, #3a3530);
  border-radius: 6px;
  padding: 14px 18px;
  position: relative;
  border-left: 3px solid #a04040;
}

.poem {
  font-family: "Long Cang", cursive;
  font-size: 22px;
  color: #e8d5b0;
  letter-spacing: 3px;
  line-height: 1.5;
}

.poem-author {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 13px;
  color: rgba(232,213,176,.5);
  margin-top: 4px;
  text-align: right;
}

/* ===== 信息 ===== */
.info {
  background: #fffdf7;
  border: 1px solid #e0d4ba;
  border-radius: 6px;
  padding: 26px 24px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(200,180,140,.06);
  transition: opacity .4s ease, transform .4s ease;
}

.show.switching .info {
  opacity: 0;
  transform: translateX(20px);
}

.info-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}

.info h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 34px;
  color: #7a2c2c;
  letter-spacing: 4px;
}

.seal {
  width: 38px; height: 38px;
  border: 2px solid #a04040;
  color: #a04040;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  opacity: .55;
  transform: rotate(-7deg);
  flex-shrink: 0;
}

.red-thread {
  height: 1px;
  background: linear-gradient(90deg, #a04040, transparent);
  margin: 12px 0 16px;
  opacity: .3;
}

.info p {
  font-size: 16px; line-height: 2;
  color: #3a3222;
  text-align: justify;
  margin-bottom: 14px;
}

.info ul { margin: 12px 0 16px; padding: 0; }

.info li {
  font-size: 15px;
  margin-bottom: 10px;
  list-style: none;
  padding-left: 26px;
  position: relative;
  color: #5b4a2f;
  line-height: 1.8;
}

.info li::before {
  content: '❖';
  position: absolute; left: 0; top: 1px;
  color: #a04040;
  font-size: 12px;
}

.addr-box {
  display: flex; align-items: center; gap: 6px;
  border-top: 1px dashed #d8cbb0;
  padding-top: 14px;
  margin-top: 8px;
}

.addr {
  font-family: "ZCOOL XiaoWei", serif;
  color: #8a7a55;
  font-size: 14px;
}

.addr-icon { font-size: 16px; }

.bookmark {
  position: absolute;
  top: -1px; right: 24px;
  width: 28px; height: 44px;
  background: linear-gradient(180deg, #a04040, #7a2c2c);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(122,44,44,.3);
}
.bookmark::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 10px;
  background: #f7f1e3;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* ===== 页脚 ===== */
footer {
  text-align: center;
  padding: 22px;
  border-top: 1px solid rgba(201,164,110,.3);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  color: #8a7a55;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 15px;
  letter-spacing: 4px;
}

.footer-left, .footer-right { color: #c9a96e; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .vertical-title { display: none; }
  .show { grid-template-columns: 1fr; }
  .banner h1 { font-size: 42px; letter-spacing: 8px; }
  .menu { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(201,164,110,.4); padding-right: 0; padding-bottom: 12px; }
  .spot-btn { flex: 1; min-width: 120px; }
  .btn-tag { display: none; }
}
#fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
