/* ============================
   全局变量与新中式新拟态主题 (蟾宫折桂)
   ============================ */
:root {
  --bg: #ebe5dd;
  --shadow-dark: rgba(184, 172, 153, 0.6);
  --shadow-light: rgba(255, 255, 255, 0.9);
  
  --ink-main: #2b2620;
  --ink-sub: #5c5346;
  --ink-light: #948773;

  --accent-red: #ba4c35;
  --accent-gold: #cba052;
  
  --font-serif: 'STZhongsong', 'STKaiti', 'SimSun', 'Noto Serif SC', serif;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ============================
   极客黑科技：原生滚动吸附与层叠控制
   ============================ */
html { 
  font-size: 16px; 
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 层叠板块本体 (去掉吸附属性，防止错乱) */
.section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  box-shadow: 0 -15px 30px rgba(184, 172, 153, 0.2);
  border-top: 1px solid rgba(184, 172, 153, 0.4);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}
.hero { box-shadow: none; border-top: none; }


/* ============================
   拟态组件库 (Neumorphism)
   ============================ */
.neu-out { background: var(--bg); box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light); border-radius: 16px; }
.neu-in { background: var(--bg); box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light); border-radius: 16px; }
.neu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px; background: var(--bg);
  color: var(--ink-main); font-weight: bold; text-decoration: none;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: all 0.3s var(--ease); border: 1px solid transparent; cursor: pointer;
}
.neu-btn:hover { color: var(--accent-red); transform: translateY(-2px); }
.neu-btn:active { box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); transform: translateY(0); }
.neu-btn.highlight { color: var(--accent-red); border: 1px solid rgba(186, 76, 53, 0.2); }

/* ============================
   Header 导航
   ============================ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 1000;
  background: rgba(235, 229, 221, 0.85); backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(184, 172, 153, 0.2);
}
.header-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: bold; }
.header-logo img { height: 40px; border-radius: 8px; }
.header-nav { display: flex; gap: 30px; align-items: center; }
.header-nav a { text-decoration: none; color: var(--ink-sub); font-weight: 500; transition: color 0.3s; }
.header-nav a:hover { color: var(--accent-gold); }
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 28px; height: 3px; background-color: var(--ink-main); border-radius: 3px; transition: all 0.3s var(--ease); }
.mobile-only-btn { display: none; }

/* ============================
   基础图文排版布局
   ============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.section-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  width: 100%; max-width: 1200px; margin: 0 auto; align-items: center; padding: 0 20px;
}
.text-box h2 { font-family: var(--font-serif); font-size: 2.2rem; color: var(--ink-main); margin-bottom: 24px; position: relative; }
.text-box h2::after { 
  content: ''; position: absolute; left: 0; bottom: -10px; 
  width: 0px; height: 3px; background: var(--accent-gold); border-radius: 2px; transition: width 1s var(--ease) 0.5s;
}
.text-box.active h2::after { width: 60px; }
/* 修正：居中标题下划线对齐 */
.text-box.center-title h2::after { left: 50%; transform: translateX(-50%); }

.text-box ul { list-style: none; margin-top: 30px; }
.text-box li { margin-bottom: 20px; font-size: 1rem; color: var(--ink-sub); position: relative; padding-left: 28px; }
.text-box li::before { content: '✦'; position: absolute; left: 0; top: 2px; color: var(--accent-gold); font-size: 0.9rem; }

/* ============================
   首屏 Hero Section
   ============================ */
.hero { padding-top: 80px; } /* 微调，适应100vh */
.hero-title { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.2; color: var(--ink-main); text-shadow: 2px 2px 4px rgba(0,0,0,0.05); }
.hero-subtitle { font-size: 1.2rem; color: var(--ink-sub); margin: 20px 0 30px; font-weight: 300; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.tag { padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--accent-red); background: var(--bg); box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light); }
.hero-actions { display: flex; gap: 20px; }
.hero-visual { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-visual img { width: 90%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 2; }

/* 悬浮 Logo 容器 */
.floating-logo {
  position: absolute; right: -40px; top: -40px; width: 110px; height: 110px;
  border-radius: 24px; background: var(--bg);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  z-index: 5; display: flex; align-items: center; justify-content: center;
  animation: floatBox 5s ease-in-out infinite; border: 1px solid rgba(255,255,255,0.4);
}
.floating-logo img { width: 60%; height: 60%; object-fit: contain; border-radius: 8px; }
@keyframes floatBox {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* ============================
   PPT 轮播板块
   ============================ */
.ppt-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; padding: 40px; border-radius: 24px; }
.ppt-viewport { overflow: hidden; width: 100%; }
.ppt-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.ppt-slide { flex: 0 0 100%; display: flex; align-items: center; gap: 50px; padding: 10px; }
.ppt-img-box { flex: 1; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px; }
.ppt-img-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.ppt-text-box { flex: 1; text-align: left; }
.ppt-text-box h3 { font-family: var(--font-serif); font-size: 2rem; color: var(--accent-red); margin-bottom: 20px; }
.ppt-text-box p { font-size: 1.1rem; color: var(--ink-sub); line-height: 1.8; margin-bottom: 15px; }
.ppt-controls { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 40px; }
.ppt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light); cursor: pointer; transition: all 0.3s; }
.ppt-dot.active { background: var(--accent-red); box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2); transform: scale(1.3); }

/* ============================
   图文交互 (轮播/悬浮虚化)
   ============================ */
.media-box { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 20px; padding: 15px; }
.carousel-container { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); }
.carousel-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transform: scale(1.05); }
.carousel-img.active { opacity: 1; transform: scale(1); }
.img-overlay { position: absolute; inset: 0; background: rgba(235, 229, 221, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; cursor: pointer; z-index: 10; }
.carousel-container:hover .img-overlay { opacity: 1; }
.img-overlay span { padding: 10px 24px; border: 1px solid var(--accent-gold); color: var(--accent-gold); border-radius: 30px; font-family: var(--font-serif); letter-spacing: 2px; }
.single-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* ============================
   滚动浮现动效
   ============================ */
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 1s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 1s var(--ease); }
.reveal-up { opacity: 0; transform: translateY(60px); transition: all 1s var(--ease); }
.neu-out.reveal-scale { opacity: 0; transform: scale(0.92); box-shadow: 0 0 0 transparent, 0 0 0 transparent; transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow 1.2s var(--ease) 0.3s; }
.reveal-left.active, .reveal-right.active, .reveal-up.active { opacity: 1; transform: translate(0); }
.neu-out.reveal-scale.active { opacity: 1; transform: scale(1); box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light); }

/* ============================
   FAQ 常见问题
   ============================ */
.faq-section { background: var(--bg); padding-bottom: 80px; }
.faq-title { font-family: var(--font-serif); font-size: 2.5rem; color: var(--ink-main); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { padding: 24px 30px; cursor: pointer; transition: all 0.3s; }
.faq-q { font-size: 1.1rem; color: var(--ink-main); font-weight: bold; position: relative; padding-right: 30px; }
.faq-q::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--accent-gold); font-size: 1.5rem; transition: transform 0.3s; }
.faq-a { max-height: 0; overflow: hidden; color: var(--ink-sub); margin-top: 0; opacity: 0; transition: all 0.3s var(--ease); line-height: 1.8;}
.faq-item.active-faq .faq-q::after { transform: rotate(45deg); }
.faq-item.active-faq .faq-a { max-height: 500px; margin-top: 15px; opacity: 1; padding-top:15px; border-top: 1px dashed rgba(184, 172, 153, 0.3); }

/* ============================
   Footer 页脚 (修复被覆盖问题)
   ============================ */
.footer { 
  position: relative; 
  z-index: 50 !important; /* 强制最高层级，盖住最后一个版块 */
  background: var(--bg); 
  padding: 60px 5%; text-align: center; color: var(--ink-sub); 
  border-top: 1px solid rgba(184, 172, 153, 0.3); 
  box-shadow: 0 -10px 20px rgba(184, 172, 153, 0.1); 

}
.footer p { margin-bottom: 10px; font-size: 0.9rem; }
.footer .soft-notice { color: var(--accent-red); font-size: 0.85rem; }
.footer-links { margin-top: 20px; }
.footer-links a { color: var(--ink-sub); text-decoration: none; margin: 0 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-gold); }
.bg-watermark { position: fixed; top: 40%; right: -5%; writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 15vw; color: rgba(184, 172, 153, 0.08); pointer-events: none; z-index: 0; letter-spacing: 0.2em; font-weight: bold; }

/* ============================
   响应式修复
   ============================ */
/* ============================
   响应式修复 (完美适配移动端自然排版)
   ============================ */
@media (max-width: 992px) {
  
  /* --- 🚀 核心修复：解除手机端 100vh 锁死与吸顶导致的拥挤 --- */
  .section {
    position: relative !important; /* 取消吸顶层叠，恢复自然流排版 */
    height: auto !important;       /* 高度由内容自由撑开，不再强行挤压 */
    min-height: 100svh;            /* 至少占满一屏，svh 完美兼容手机浏览器的地址栏缩放 */
    padding: 120px 0 80px 0;       /* 给上下增加充足的呼吸留白 */
    overflow-y: visible !important;/* 彻底干掉版块内部的嵌套滚动条 */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero { 
    padding-top: 140px; /* 首页留出导航栏空间 */
  }

  /* 基础布局调整 */
  .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-inner.reverse { grid-template-areas: "text" "media"; }
  .section-inner.reverse .text-box { grid-area: text; }
  .section-inner.reverse .media-box { grid-area: media; }
  
  /* 首屏与 PPT 细节微调 */
  .hero-title { font-size: 2.5rem; }
  .floating-logo { width: 80px; height: 80px; right: -15px; top: -25px; border-radius: 16px; }
  .ppt-slide { flex-direction: column; gap: 30px; text-align: center; }
  .ppt-text-box { text-align: center; }
  
  /* --- 移动端毛玻璃导航菜单 --- */
  .header-logo { gap: 8px; }
  .header-logo span { font-size: 1rem; white-space: nowrap; }
  .desktop-btn { display: none !important; }
  .menu-toggle { display: flex; }
  
  .header-nav {
    display: flex !important; position: absolute; top: 80px; left: 0; width: 100%;
    background: rgba(235, 229, 221, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    flex-direction: column; padding: 20px 0 30px 0; gap: 20px;
    box-shadow: 0 15px 25px rgba(184, 172, 153, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-15px); transition: all 0.4s var(--ease);
  }
  .header-nav.nav-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .mobile-only-btn { display: inline-flex; margin-top: 10px; font-size: 1rem; }
  .menu-toggle.nav-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--accent-red); }
  .menu-toggle.nav-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.nav-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--accent-red); }
}

@media (max-width: 480px) {
  .header { padding: 0 15px; }
  .header-logo span { font-size: 0.85rem; }
  .header-logo img { height: 28px; }
  .hero { padding-top: 120px; }
}

/* ============================
   首屏鼠标向下滚动提示器
   ============================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  /* 初始隐藏，首屏加载后延迟 1.5 秒淡入，不抢主体内容的风头 */
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  pointer-events: none; /* 防止遮挡底部按钮的点击 */
}

/* 拟态鼠标外壳 */
.scroll-mouse {
  width: 30px;
  height: 48px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 
    4px 4px 8px var(--shadow-dark), 
    -4px -4px 8px var(--shadow-light),
    inset 2px 2px 4px rgba(255,255,255,0.5);
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 朱砂红滚轮动画 */
.scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--accent-red);
  animation: scrollWheelAnim 1.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* 提示文字 */
.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--ink-light);
  letter-spacing: 0.2em;
  text-shadow: 1px 1px 1px var(--shadow-light);
  /* 文字轻微呼吸，增强引导感 */
  animation: pulseText 2s ease-in-out infinite alternate;
}

/* 动画关键帧 */
@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(16px); opacity: 0; }
}

@keyframes pulseText {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* 针对小屏幕手机适配 */
@media (max-width: 480px) {
  .scroll-indicator { bottom: 25px; transform: translateX(-50%) scale(0.85); }
}