/* ============================================================
   星河心序 stellarorder — 宣传站
   漆器红主题 · 宣纸浅底 · 朱砂金 · 中英双语
   配色对齐小程序 styles/variables.wxss（2026-08-26）
   字体参考小程序引导页：品牌/标题用 SealScript + Calligraphy 书法体
   ============================================================ */

/* 引导页同款书法字体（与小程序登录页/启动页一致） */
@font-face {
  font-family:'SealScript';
  src:url('../fonts/MaShanZheng-Regular-subset.ttf') format('truetype');
  font-display:swap;
}
@font-face {
  font-family:'Calligraphy';
  src:url('../fonts/LongCang-Regular-subset.ttf') format('truetype');
  font-display:swap;
}

:root {
  /* 浅色漆器主题（对齐小程序 styles/variables.wxss） */
  --bg:         #FAF8F5;  /* 素胚白 页面底色 */
  --bg-2:       #F5F0E8;  /* 宣纸白 卡片 */
  --bg-3:       #F0EBE3;  /* 输入/悬停 */
  --red:        #8B2500;  /* 漆红 主色 */
  --red-bright: #C23B22;  /* 朱砂 激活 */
  --gold:       #C9A84C;  /* 琥珀金 点缀 */
  --gold-soft:  #d9bd6e;
  --text:       #3C2E24;  /* 檀木深棕 主文字 */
  --text-dim:   #8C7E74;  /* 麻布灰 次要文字 */
  --line:       #D4CCC4;  /* 竹纤维 边框 */
  --line-bright:#B8AEA6;  /* 麻布灰 强调边框 */
  --radius: 14px;
  --font-head: 'Calligraphy','SealScript',"Songti SC","Noto Serif SC",serif;
  --font-seal: 'SealScript','Calligraphy',"Songti SC",serif;
  --font-body: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

html { scroll-behavior:smooth; }

body {
  font-family:var(--font-body);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(139,37,0,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201,168,76,.10), transparent 55%),
    var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* 宣纸颗粒质感（浅色） */
body::before {
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.58 0 0 0 0 0.55 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.6;
}

h1,h2,h3,h4 { font-family:var(--font-head); font-weight:600; line-height:1.35; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

.container { max-width:1120px; margin:0 auto; padding:0 22px; position:relative; z-index:1; }

/* ============ 顶部导航 ============ */
.site-nav {
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,245,.86);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner { display:flex; align-items:center; gap:26px; height:60px; position:relative; }
.brand { display:flex; align-items:center; gap:10px; font-family:var(--font-seal); font-size:20px; letter-spacing:2px; color:var(--red); white-space:nowrap; }
.brand .brand-logo { width:26px; height:26px; border-radius:7px; display:block; box-shadow:0 0 0 1px rgba(60,46,36,.12); }
.nav-links { display:flex; gap:4px; margin-left:auto; }
.nav-links a { padding:7px 12px; border-radius:8px; font-size:14px; color:var(--text-dim); transition:.2s; }
.nav-links a:hover { color:var(--red); background:rgba(139,37,0,.06); }
.nav-links a.active { color:var(--red); border-bottom:1px solid var(--red); }
.lang-switch { margin-left:8px; }
.lang-switch button {
  background:transparent; border:1px solid var(--line-bright); color:var(--red);
  padding:5px 12px; border-radius:20px; font-size:13px; cursor:pointer; transition:.2s;
}
.lang-switch button:hover { background:rgba(139,37,0,.06); }

/* 移动端汉堡菜单按钮 */
.nav-toggle {
  display:none; align-items:center; justify-content:center;
  width:36px; height:36px; margin-left:auto; background:none; border:1px solid var(--line);
  border-radius:8px; cursor:pointer; color:var(--red);
}
.nav-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }

/* ============ 印章 ============ */
.seal {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--red); color:#f6e9d8;
  border:2px solid var(--gold-soft); border-radius:8px;
  padding:6px 14px; font-family:var(--font-seal); letter-spacing:6px; text-indent:6px;
  box-shadow:0 4px 14px rgba(139,37,0,.25), inset 0 0 12px rgba(0,0,0,.25);
  transform:rotate(-2deg);
}
.seal.lg { font-size:30px; padding:12px 26px; border-radius:12px; }

/* 盖印动效 */
@keyframes stamp {
  0% { transform:rotate(-2deg) scale(1.6); opacity:0; }
  60% { transform:rotate(-2deg) scale(.95); opacity:1; }
  100% { transform:rotate(-2deg) scale(1); opacity:1; }
}
.stamp { animation:stamp .5s cubic-bezier(.2,.9,.3,1.2) both; }

/* ============ Hero ============ */
.hero { position:relative; padding:76px 0 64px; text-align:center; overflow:hidden; }
.hero::before { /* 星轨 */
  content:""; position:absolute; left:50%; top:38%; width:720px; height:720px;
  transform:translate(-50%,-50%); border-radius:50%;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(201,168,76,.06), transparent 60%);
}
.orbit { position:absolute; left:50%; top:38%; width:720px; height:720px; transform:translate(-50%,-50%); border-radius:50%; border:1px dashed var(--line); animation:spin 60s linear infinite; }
.orbit::before { content:""; position:absolute; top:-4px; left:50%; width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 12px var(--gold); }
@keyframes spin { to { transform:translate(-50%,-50%) rotate(360deg); } }

.hero .eyebrow { color:var(--gold); letter-spacing:4px; font-size:13px; margin-bottom:18px; }
.hero h1 { font-size:clamp(34px,6vw,58px); margin-bottom:18px; color:var(--text); }
.hero h1 .accent { color:var(--red-bright); }
.hero .sub { max-width:640px; margin:0 auto 30px; color:var(--text-dim); font-size:clamp(16px,2.4vw,20px); }

.cta-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:34px; }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 30px; border-radius:999px; font-size:16px; cursor:pointer; transition:.25s; border:1px solid transparent;
}
.btn-primary { background:linear-gradient(135deg,var(--red-bright),var(--red)); color:#fff4e6; box-shadow:0 8px 24px rgba(139,37,0,.25); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(194,59,34,.35); }
.btn-ghost { border-color:var(--line-bright); color:var(--red); background:transparent; }
.btn-ghost:hover { background:rgba(139,37,0,.06); }

/* 小程序码卡 */
.qr-card {
  max-width:180px; margin:6px auto 0; padding:14px; border-radius:var(--radius);
  background:var(--bg-2); border:1px solid var(--line);
}
.qr-card img { border-radius:6px; }
.qr-card .tip { font-size:12px; color:var(--text-dim); margin-top:8px; }

/* ============ 通用区块 ============ */
.section { padding:72px 0; }
.section-head { text-align:center; margin-bottom:46px; }
.section-head .kicker { color:var(--gold); letter-spacing:3px; font-size:13px; margin-bottom:10px; }
.section-head h2 { font-size:clamp(26px,4vw,38px); }
.section-head .lead { max-width:640px; margin:12px auto 0; color:var(--text-dim); }

/* ============ 三支柱 ============ */
.pillars { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; }
.pillar {
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px; transition:.3s; position:relative; overflow:hidden;
}
.pillar::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--red),var(--gold)); opacity:0; transition:.3s; }
.pillar:hover { transform:translateY(-4px); border-color:var(--line-bright); }
.pillar:hover::before { opacity:1; }
.pillar .icon { font-size:30px; margin-bottom:14px; }
.pillar .icon .icon-img { width:34px; height:34px; display:block; }
.pillar h3 { font-size:22px; margin-bottom:10px; }
.pillar p { color:var(--text-dim); font-size:15px; }
.pillar .tag { display:inline-block; margin-top:12px; font-size:12px; color:var(--gold); border:1px solid var(--line-bright); border-radius:20px; padding:3px 12px; }

/* ============ 场景 ============ */
.scenarios { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px; }
.scenario {
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 20px; transition:.25s;
}
.scenario:hover { border-color:var(--line-bright); background:var(--bg-3); }
.scenario .s-icon { font-size:26px; margin-bottom:4px; }
.scenario .s-icon .icon-img { width:30px; height:30px; display:block; }
.scenario h4 { font-size:17px; margin:10px 0 6px; }
.scenario p { font-size:13.5px; color:var(--text-dim); }

/* ============ 沙盒（AI 演示） ============ */
.sandbox {
  max-width:680px; margin:0 auto; background:var(--bg-2); border:1px solid var(--line-bright);
  border-radius:var(--radius); padding:26px; box-shadow:0 20px 50px rgba(60,46,36,.10);
}
.sandbox .sb-label { font-size:13px; color:var(--gold); letter-spacing:2px; margin-bottom:12px; }
.sandbox input[type=text] {
  width:100%; padding:14px 16px; font-size:16px; border-radius:10px;
  background:var(--bg); border:1px solid var(--line); color:var(--text); outline:none;
}
.sandbox input[type=text]:focus { border-color:var(--gold); }
.sb-actions { display:flex; gap:10px; margin-top:12px; }
.sb-chip { font-size:12px; color:var(--text-dim); border:1px solid var(--line); border-radius:20px; padding:4px 12px; cursor:pointer; transition:.2s; }
.sb-chip:hover { color:var(--gold); border-color:var(--gold); }
.sb-result { margin-top:16px; min-height:20px; }
.sb-row {
  display:flex; align-items:center; gap:10px; padding:10px 14px; margin-top:8px;
  background:var(--bg); border-radius:10px; border:1px solid var(--line); animation:fadeUp .3s both;
}
.sb-row .cls { flex-shrink:0; font-size:12px; color:#fff4e6; background:var(--red-bright); border-radius:6px; padding:3px 10px; }
.sb-row .cls.periodic { background:var(--gold); color:#2a1505; }
.sb-row .txt { font-size:14.5px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px);} to {opacity:1; transform:none;} }

/* ============ 真实演示（手机样机） ============ */
.demo-real { background:var(--bg); }
.phone-frame {
  position:relative; width:272px; margin:0 auto;
  padding:12px; border-radius:44px;
  background:linear-gradient(160deg, var(--text), #1a1a1a);
  box-shadow:0 24px 60px rgba(60,46,36,.28), inset 0 0 0 2px var(--line);
}
.phone-frame::before { /* 顶部听筒 */
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:64px; height:5px; border-radius:3px; background:rgba(255,255,255,.35); z-index:2;
}
.phone-frame video { width:100%; border-radius:30px; display:block; background:#000; }
.phone-sound {
  position:absolute; right:-16px; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:50%;
  background:var(--red); color:#fff4e6; border:2px solid var(--bg);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 6px 16px rgba(139,37,0,.35); transition:.2s;
}
.phone-sound:hover { transform:translateY(-50%) scale(1.08); }
.phone-sound svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.phone-sound .muted-show { display:block; }
.phone-sound .muted-hide { display:none; }
.phone-sound.unmuted .muted-show { display:none; }
.phone-sound.unmuted .muted-hide { display:block; }

/* ============ 价格 ============ */
.pricing { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; max-width:720px; margin:0 auto; }
.price-card { background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px; text-align:center; }
.price-card.pro { border-color:var(--gold); position:relative; background:linear-gradient(160deg,var(--bg-3),var(--bg-2)); }
.price-card .hot {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:linear-gradient(135deg,var(--red-bright),var(--red)); color:#fff4e6;
  font-size:12px; padding:4px 14px; border-radius:20px; letter-spacing:1px;
}
.price-card .name { font-family:var(--font-head); font-size:20px; margin-bottom:8px; }
.price-card .price { font-size:40px; font-family:var(--font-head); color:var(--red); margin:12px 0 4px; }
.price-card .per { font-size:13px; color:var(--text-dim); }
.price-card ul { list-style:none; margin:20px 0; text-align:left; }
.price-card li { padding:6px 0 6px 26px; position:relative; font-size:14px; color:var(--text-dim); }
.price-card li::before { content:"✦"; position:absolute; left:4px; color:var(--gold); font-size:11px; }
.price-card li.no { opacity:.4; }
.price-card li.no::before { content:"✕"; }

/* ============ 品牌故事 ============ */
.story-block { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.story-block .story-text p { color:var(--text-dim); margin-bottom:14px; }
.lacquer-rings { position:relative; width:300px; height:300px; margin:auto; border-radius:50%; border:2px solid var(--gold-soft); box-shadow:inset 0 0 60px rgba(139,37,0,.15), 0 0 40px rgba(139,37,0,.10); }
.lacquer-rings::before { content:""; position:absolute; inset:26px; border-radius:50%; border:1px solid var(--red-bright); }
.lacquer-rings::after { content:""; position:absolute; inset:56px; border-radius:50%; border:1px solid var(--gold); }
.lacquer-rings .core { position:absolute; inset:86px; border-radius:50%; background:radial-gradient(circle,var(--red-bright),var(--red)); display:flex; align-items:center; justify-content:center; color:#fff2e2; font-family:var(--font-seal); font-size:22px; }

/* ============ FAQ ============ */
.faq-list { max-width:720px; margin:0 auto; }
.faq-item { background:var(--bg-2); border:1px solid var(--line); border-radius:12px; margin-bottom:12px; overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:none; color:var(--text); padding:16px 18px; font-size:15.5px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.faq-q .arr { color:var(--gold); transition:.25s; }
.faq-item.open .arr { transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s; }
.faq-a-in { padding:0 18px 16px; color:var(--text-dim); font-size:14px; }

/* ============ 页脚 ============ */
.site-footer { border-top:1px solid var(--line); margin-top:40px; padding:40px 0 34px; text-align:center; color:var(--text-dim); font-size:13px; }
.site-footer .f-brand { font-family:var(--font-seal); font-size:20px; color:var(--red); letter-spacing:3px; margin-bottom:10px; }
.site-footer .f-links { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.site-footer a:hover { color:var(--red); }

/* ============ 响应式 ============ */
@media (max-width:760px) {
  /* 汉堡菜单：桌面横排链接 → 移动端 ☰ + 下拉列表 */
  .nav-toggle { display:flex; }
  /* 手机端功能/场景卡片一律单列竖排 */
  .pillars, .scenarios { grid-template-columns:1fr; }
  .nav-links {
    display:none; position:absolute; top:100%; left:0; right:0; z-index:49;
    margin-left:0; flex-direction:column; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:6px 22px 12px; box-shadow:0 12px 24px rgba(60,46,36,.08);
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:13px 4px; font-size:15px; border-bottom:1px solid var(--line); }
  .nav-links a.active { border-bottom:1px solid var(--line); color:var(--red); font-weight:600; }
  .brand { font-size:18px; }
  .brand .brand-logo { width:24px; height:24px; }
  .lang-switch { margin-left:6px; }
  .hero { padding:54px 0 44px; }
  .section { padding:52px 0; }
  .story-block { grid-template-columns:1fr; }
  .orbit { width:460px; height:460px; }
}
