* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --brand: #2f5c3b;
  --accent: #a58a65;
  --bg: #e1a66a;
  --text: #121212;
  --muted: #3a3a3a;
  --card: #ffffff;
  --shadow: rgba(0,0,0,.08);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* 顶部栏（易企秀式） */
.eq-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(250,248,244,.65);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 100;
}
.eq-topbar .brand-mark { height: 26px; width: auto; }
.eq-topbar .brand-name { font-weight: 600; margin-left: 8px; color: var(--brand); }
.page-indicator { font-weight: 700; color: var(--brand); }

/* 顶部栏移动端自适应缩小 */
@media (max-width: 480px) {
  .eq-topbar { height: 48px; padding: 0 8px; }
  .eq-topbar .brand-mark { height: 22px; }
  .eq-topbar .brand-name { font-size: 12px; margin-left: 6px; }
  .page-indicator { font-size: 12px; }
  .btn.small { padding: 4px 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .eq-topbar { height: 44px; padding: 0 6px; }
  .eq-topbar .brand-mark { height: 20px; }
  .eq-topbar .brand-name { font-size: 11px; margin-left: 4px; }
  .page-indicator { font-size: 11px; }
  .btn.small { padding: 3px 7px; font-size: 11px; }
}

/* 按钮 */
.btn {
  appearance: none; border: 1px solid var(--brand);
  background: #fff; color: var(--brand);
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.ghost { background: transparent; border-color: rgba(0,0,0,.2); color: var(--text); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn:active { transform: scale(0.98); }

/* CTA 组 */
.cta-group { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* 滑页容器 */
.snap-container { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; }
.snap-section { min-height: 100vh; padding: 72px 20px 24px; scroll-snap-align: start; display: grid; place-items: center; }
.slide { position: relative; }
.section-inner { width: min(960px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.section-title { font-size: 22px; font-weight: 700; color: var(--brand); margin: 8px 0 12px; text-align: center; }
.section-desc { color: var(--text); line-height: 1.7; text-align: center; }

/* 翻页引导箭头 */
.page-arrow {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: bounce 2s infinite;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-arrow::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg) translateY(-2px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 英雄首屏背景覆盖 */
.slide.hero { 
  position: relative; 
  color: #fff; 
  background-image: var(--bg-image, none);
  background-position: center;
  background-size: cover;
}
.slide.hero::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: var(--bg-overlay, linear-gradient(180deg, rgba(47,92,59,.6), rgba(47,92,59,.85))), var(--bg, none); 
  background-blend-mode: multiply; 
  background-position: center; 
  background-size: cover;
  z-index: -1; /* 确保伪元素在内容之下 */
}
.slide-layer { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-logo { width: 120px; height: auto; margin: 8px auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.tagline { font-size: 13px; color: #f0ead6; letter-spacing: .2px; margin-top: 4px; }
.title { font-size: 28px; letter-spacing: .5px; margin: 8px 0; color: #fff; }
.subtitle { font-size: 14px; color: #f0ead6; }
.location { margin-top: 8px; font-size: 13px; opacity: .95; }

/* 其他屏幕背景（淡化覆盖） */
.slide.bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,248,244,.15), rgba(250,248,244,.25)), var(--bg, none); background-position: center; background-size: cover; }

/* 首屏文字颜色与2-5页一致（提高对比度） */
.slide.bg .title { color: var(--brand); font-weight: 800; }
.slide.bg .subtitle { color: var(--text); }
.slide.bg .tagline { color: var(--text); }
.slide.bg .location { color: var(--text); }
.slide.bg .cd-item span { color: var(--brand); }
.slide.bg .cd-item label { color: var(--muted); }

/* 倒计时 */
.countdown { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.cd-item { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 8px 10px; min-width: 64px; }
.cd-item span { display: block; font-size: 20px; font-weight: 600; color: #fff; }
.cd-item label { font-size: 12px; opacity: .85; color: #fff; }

/* 二屏卡片与要点 */
.card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px var(--shadow); }
.card-body { padding: 16px; }
.card-body .bullet { text-align: center; color: var(--text); margin: 6px 0; }
.card-body.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }

/* 三屏产品九宫格 */
.grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.grid-item { background: var(--card); border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 6px 16px var(--shadow); }
@media (max-width: 768px) { .grid-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-list { grid-template-columns: 1fr; } }

/* 四屏 Web3 流程 */
.web3-flow { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 8px 0 12px; }
.flow-node { background: var(--card); color: var(--brand); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 8px 12px; box-shadow: 0 6px 16px var(--shadow); font-weight: 600; }
.flow-arrow { color: var(--muted); font-weight: 700; }

/* 时间线（五屏投资机构） */
.timeline { list-style: none; padding: 0; margin: 12px auto; display: grid; gap: 10px; max-width: 640px; }
.timeline li { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px; box-shadow: 0 6px 16px var(--shadow); justify-content: center; }
.timeline .text { color: var(--text); font-weight: 600; }
.link { text-align: center; margin-top: 8px; }
.link a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* 六屏二维码 */
.section-inner.center { text-align: center; }
.qr-img { width: 260px; height: 260px; object-fit: contain; margin: 8px auto 12px; border-radius: 8px; background: #fafafa; box-shadow: 0 10px 24px var(--shadow); }
.qr-area { margin-top: 12px; }

/* 六屏赞助表单样式 */
.sponsor-card { max-width: 420px; margin: 10px auto; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; text-align: left; }
.form-row label { color: var(--brand); font-weight: 600; }
.form-row input, .form-row textarea, .form-row select { appearance: none; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: 10px; font-size: 14px; }
.form-actions { display: flex; justify-content: center; margin-top: 8px; }

/* 目录面板 */
.eq-catalog { position: fixed; inset: 0; display: none; z-index: 200; }
.eq-catalog[aria-hidden="false"] { display: grid; place-items: center; }
.catalog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.catalog-content { position: relative; width: min(420px, 90%); background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.catalog-header { display: flex; align-items: center; justify-content: space-between; }
.catalog-header .title { font-weight: 700; color: var(--brand); }
.catalog-list { list-style: none; padding: 0; margin: 8px 0; }
.catalog-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.catalog-list li:hover { background: #f4f4f4; }
.modal-close { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer; }

/* 上下页箭头 */
.eq-nav { position: fixed; left: 8px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 150; }
.eq-arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; box-shadow: 0 6px 16px var(--shadow); font-weight: 700; cursor: pointer; }
.eq-arrow.up { }
.eq-arrow.down { }

/* 入场动画（已存在的元素逐个出场） */
.reveal { opacity: 0; transform: translateY(24px); transition: all .6s cubic-bezier(.2,.7,.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 切换动画：淡入、翻页、卡片滑入 */
.trans-fade .section-inner { opacity: 0; transform: translateY(20px); transition: all .6s cubic-bezier(.2,.7,.2,1); }
.slide.is-current.trans-fade .section-inner { opacity: 1; transform: translateY(0); }

.trans-flip .section-inner { opacity: 0; transform: perspective(800px) rotateX(15deg) scale(.98); transform-origin: center top; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s; }
.slide.is-current.trans-flip .section-inner { opacity: 1; transform: perspective(800px) rotateX(0deg) scale(1); }

.trans-card .section-inner { opacity: 0; transform: translateY(18px) scale(.98); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.slide.is-current.trans-card .section-inner { opacity: 1; transform: translateY(0) scale(1); }

/* 步进控件样式 */
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 36px; height: 36px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.stepper button:active { transform: scale(0.98); }
.stepper input[type="number"] { width: 84px; text-align: center; }
.amount-hint {
  color: #b8860b; /* 金色系提示，可根据主题调整 */
  font-weight: 600;
}

/* 联系信息 */
.contact-info {
  margin-top: 20px;
  padding: 10px 0;
  text-align: center;
}

.contact-info p {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
  margin: 0;
}

.copyable {
  color: #2f5c3b;
  text-decoration: underline;
  cursor: pointer;
}

.copy-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;
}