:root {
  --ink: #211d18;
  --ink-soft: #4a4238;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --line: #e4dac9;
  --accent: #b06a2c;
  --accent-deep: #8f5420;
  --accent-soft: #f2e7d5;
  --muted: #94897a;
  --dark: #1b1611;
  --dark-line: #37302a;
  --ok: #4a7c59;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans);
  background: var(--paper); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 232, .88); backdrop-filter: blur(12px);
}
.top-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px; font-weight: 700; letter-spacing: 4px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
#nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
#nav a {
  color: var(--ink); text-decoration: none; font-size: 14px;
  padding: 6px 15px; border-radius: 999px;
  opacity: .68;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
#nav a:hover { opacity: 1; color: var(--accent); }
#nav a.active { opacity: 1; background: var(--accent-soft); color: var(--accent-deep); }

.user-area { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.btn-login, .btn-ws {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 8px 22px; border-radius: 999px; cursor: pointer; font-size: 14px;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.btn-login:hover, .btn-ws:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 用户菜单 */
.user-menu { position: relative; }
.user-menu > button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.user-menu > button:hover { border-color: var(--accent); color: var(--accent); }
.user-menu .drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(60, 42, 20, .14); padding: 6px; display: none;
}
.user-menu.open .drop { display: block; }
.user-menu .drop a, .user-menu .drop button {
  display: block; width: 100%; text-align: left; padding: 9px 13px;
  border: 0; background: none; color: var(--ink); font-size: 13.5px;
  border-radius: 9px; cursor: pointer; text-decoration: none;
}
.user-menu .drop a:hover, .user-menu .drop button:hover { background: var(--accent-soft); color: var(--accent-deep); }
.user-menu .drop .sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- Hero（深色编辑感） ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(214, 148, 78, .16), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(214, 148, 78, .08), transparent 60%),
    var(--dark);
  color: #f3ecdf;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: 64px 32px 72px;
  min-height: calc(100vh - 64px);
}
.hero-text { padding: 24px 0; }
.hero .eyebrow {
  display: inline-block; padding: 5px 14px;
  border: 1px solid rgba(243, 236, 223, .28); border-radius: 999px;
  color: #d9a869; font-size: 12px; letter-spacing: 3px;
  background: rgba(243, 236, 223, .04);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.2; margin: 22px 0 18px;
  letter-spacing: 2px; font-weight: 700; color: #faf5ea;
}
.hero h1 em {
  font-style: normal; color: #e0aa6b;
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 10px; text-decoration-color: rgba(224, 170, 107, .45);
}
.slogan { color: rgba(243, 236, 223, .62); font-size: 16px; max-width: 520px; margin: 0 0 26px; }
.hero-cta { margin: 0 0 40px; }
.btn-light {
  display: inline-block; color: #f3ecdf; text-decoration: none; font-size: 14px;
  border: 1px solid rgba(243, 236, 223, .3); border-radius: 999px;
  padding: 10px 24px; transition: border-color .15s ease, background .15s ease;
}
.btn-light:hover { border-color: #e0aa6b; background: rgba(224, 170, 107, .1); }
.hero-points {
  display: flex; gap: 44px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-line);
}
.point { padding: 18px 0 4px; }
.point b { display: block; font-size: 15px; margin-bottom: 2px; color: #faf5ea; }
.point span { color: rgba(243, 236, 223, .5); font-size: 13px; }

/* 右列：手机 + 叠加扫码卡 */
.hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  position: relative;
}
.phone-wrap { position: relative; padding: 10px 0 40px 90px; }
.phone {
  position: relative;
  width: 236px; padding: 10px;
  background: linear-gradient(160deg, #2e2822, #14100c);
  border-radius: 38px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .4);
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-10px); }
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; background: #14100c;
  border-bottom-left-radius: 11px; border-bottom-right-radius: 11px;
  z-index: 2;
}
.phone-screen {
  border-radius: 29px; overflow: hidden; background: #000;
  aspect-ratio: 9/19.2;
}
.phone-screen video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.qr-card {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  max-width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
#qr {
  width: 108px; height: 108px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); object-fit: contain; flex: none;
}
.qr-tip { text-align: left; font-size: 13.5px; line-height: 1.6; }
#qr-state { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.link {
  border: 0; background: none; color: var(--accent); cursor: pointer;
  padding: 0; margin-top: 6px; font-size: 13px;
}
.hero-caption {
  color: rgba(243, 236, 223, .42); font-size: 12px; text-align: center;
}

/* ---------- 通用分区 ---------- */
.band { max-width: 1200px; margin: 0 auto; padding: 84px 32px; }
.band.alt { background: #efe7d8; max-width: none; }
.band.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 44px; }
.sec-head .eyebrow {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--accent-deep); font-size: 12px; letter-spacing: 2px;
  background: var(--card);
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 10px; letter-spacing: 2px;
}
.band-sub { color: var(--muted); margin: 0; max-width: 560px; font-size: 15px; }

/* 场景画廊 */
.scene-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.scene {
  position: relative; margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.scene:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(80, 60, 30, .16); }
.scene img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .5s ease;
}
.scene:hover img { transform: scale(1.045); }
.scene figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 1px;
  background: linear-gradient(transparent, rgba(20, 14, 8, .66));
}

/* 功能 */
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(80, 60, 30, .1); }
.feature-icon {
  font-family: var(--serif);
  font-size: 15px; color: var(--accent); letter-spacing: 1px;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 10px; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: 1px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* 配饰 */
.mat-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.mat {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(80, 60, 30, .1); }
.mat img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mat figcaption { padding: 16px 18px; }
.mat figcaption b { display: block; font-size: 15px; margin-bottom: 3px; letter-spacing: .5px; }
.mat figcaption span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* 套餐 */
.plan-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 24px 26px; text-align: center;
}
.plan.hot { border-color: var(--accent); box-shadow: 0 16px 34px rgba(176, 106, 44, .16); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px;
  padding: 3px 13px; border-radius: 999px; letter-spacing: 2px;
}
.plan-price { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.plan-name { color: var(--muted); font-size: 13px; margin: 2px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.plan li { padding: 7px 0; border-top: 1px dashed var(--line); }

/* 作品墙 */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(80, 60, 30, .12); }
.card .thumb {
  width: 100%; aspect-ratio: 3/4; background: #ece4d7;
  object-fit: cover; cursor: pointer;
}
.card .meta { padding: 12px 14px; }
.card .title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; color: var(--muted); font-size: 12px;
}
.tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.tag.video { background: #eef3ee; color: var(--ok); }
.tag.image { background: #f3ece2; color: var(--accent-deep); }
.tag.pending { background: #f6f0e2; color: #a07c2c; }
.tag.failed { background: #f7e8e8; color: #b04a4a; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 15px; }

/* 页脚（深色收底） */
footer {
  background: var(--dark); color: rgba(243, 236, 223, .5);
  border-top: 1px solid var(--dark-line);
}
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 32px 48px;
  text-align: center; font-size: 13px;
}
.foot-brand {
  font-family: var(--serif);
  font-size: 20px; letter-spacing: 5px; color: #f3ecdf; font-weight: 700;
}
.foot-note { margin: 8px 0 14px; }
.foot-copy { font-size: 12px; opacity: .7; }

/* 弹层（作品播放 / 场景预览 / 登录） */
.modal {
  position: fixed; inset: 0; background: rgba(16, 12, 8, .88);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60;
}
.modal video, .modal img.media {
  max-width: min(92vw, 420px); max-height: 86vh; border-radius: 12px; background: #000;
}
.modal .close {
  position: absolute; top: 18px; right: 22px; color: #fff;
  background: none; border: 0; font-size: 30px; cursor: pointer;
}
.login-modal .qr-card {
  position: static; max-width: none;
  background: var(--card); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: none;
}
.login-modal #qr { width: 216px; height: 216px; }
.login-modal .qr-tip { text-align: center; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 22px 56px; gap: 40px; min-height: 0; }
  .phone-wrap { padding-left: 60px; }
  .phone { width: 216px; }
  .top-inner { gap: 16px; }
  #nav a { padding: 6px 9px; }
}
@media (max-width: 560px) {
  .top-inner { padding: 0 16px; }
  #nav { overflow-x: auto; }
  #nav a { font-size: 13px; }
  .band { padding: 56px 18px; }
  .hero-points { flex-direction: column; }
  .point { padding: 14px 0 0; margin-right: 0; border-top: 1px solid var(--dark-line); }
  .phone-wrap { padding-left: 0; padding-bottom: 10px; }
  .qr-card {
    position: static; transform: none;
    max-width: none; width: 100%; margin-top: -30px;
  }
}
