:root {
  --bg: #0A0E1A;
  --surface: #121829;
  --surface-2: #1A2236;
  --accent: #00E0C6;
  --accent-2: #2D7FF9;
  --text: #E8ECF4;
  --muted: #8A94A8;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --font-display: 'Sora', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Sora', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; min-width: 0; }
.brand-logo { height: 64px; width: auto; display: block; flex-shrink: 0; }
.brand-mark { color: var(--accent); font-size: 22px; }
.brand-name { font-size: 16px; letter-spacing: .5px; line-height: 1.2; display: flex; flex-direction: column; justify-content: center; }
.brand-name em { display: block; font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 2px; font-weight: 400; line-height: 1.2; margin-top: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; flex-wrap: wrap; min-width: 0; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent); color: #041214; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04121; box-shadow: 0 8px 30px rgba(0, 224, 198, .25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 24px 70px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,224,198,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,198,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr .7fr;
  gap: 40px;
  align-items: center;
}
.eyebrow { color: var(--accent); font-family: var(--font-display); letter-spacing: 3px; font-size: 12px; margin-bottom: 18px; }
.hero-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 58px); line-height: 1.1; font-weight: 800; }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--muted); margin: 22px 0 30px; font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-signal { display: flex; justify-content: flex-end; }
.signal-panel {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.signal-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.signal-row b { color: var(--text); font-family: var(--font-display); }
.signal-row .ok { color: var(--accent); }
.signal-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.signal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.signal-foot { margin-top: 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Blocks ---------- */
.block { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; }
.block-head h2 { font-family: var(--font-display); font-size: 32px; }
.block-head p { color: var(--muted); margin-top: 8px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s, transform .2s;
}
.cap-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.cap-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(0,224,198,.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.cap-card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 14px; }

/* ---------- Vision ---------- */
.vision-block { padding-bottom: 40px; }
.vision-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 36px;
}
.vision-lead { font-size: 18px; line-height: 1.75; max-width: 820px; margin-bottom: 28px; }
.vision-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.v-step {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
}
.v-step b {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent); color: #041214;
  border-radius: 50%; font-family: var(--font-display);
}
.v-step span { font-weight: 500; }
.vision-road { color: var(--muted); font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat b { display: block; font-family: var(--font-display); font-size: 44px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Page hero ---------- */
/* ---------- 返回链接（个人中心子页面） ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 4px; transition: color .2s; }
.back-link:hover { color: var(--accent); }

.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px 30px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); margin: 10px 0; }
.page-sub { color: var(--muted); }

/* ---------- Product stream ---------- */
.prod-stream { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s, transform .2s;
}
.prod-card.offset { transform: translateY(28px); }
.prod-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.prod-card.offset:hover { transform: translateY(24px); }
.prod-tag { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid rgba(0,224,198,.3); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.prod-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.prod-card p { color: var(--muted); margin-bottom: 16px; }
.prod-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.prod-meta li { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 5px 12px; border-radius: 8px; }

/* ---------- Goods grid (实体商品卡 4 款) ---------- */
.goods-grid { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 80px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.goods-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-wrap: wrap; /* 展开后详情区换行到第二行，避免被横向 flex 挤成竖缝 */
  cursor: pointer;
}
.goods-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.goods-img { width: 150px; height: 150px; flex-shrink: 0; overflow: hidden; background: #061018; }
.goods-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-info { padding: 18px 20px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.goods-item .goods-eyebrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.goods-item .goods-eyebrow .badge { font-size: 11px; color: var(--accent); border: 1px solid rgba(0,224,198,.35); padding: 2px 8px; border-radius: 99px; }
.goods-item .goods-eyebrow .pill { font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 99px; }
.goods-item .goods-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; line-height: 1.3; }
.goods-item .goods-desc { color: var(--muted); font-size: 13px; margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-item .goods-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.goods-item .goods-price b { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.goods-item .goods-price span { color: var(--muted); font-size: 12px; }
.goods-detail {
  width: 100%;
  flex: 0 0 100%; /* 强制独占整行：父级 flex 下仅 width:100% 会被压缩 */
  padding: 0 20px 18px 170px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: none;
  border-top: 1px dashed var(--line);
  margin-top: 0;
}
.goods-item.expanded .goods-detail { display: block; }
.goods-detail .detail-toggle { display: none; }
.goods-detail .detail-title { font-size: 12px; color: var(--accent); margin: 14px 0 6px; letter-spacing: 1px; }
.goods-detail .detail-title:first-child { margin-top: 14px; }
.goods-detail ul { list-style: none; padding: 0; margin: 0; }
.goods-detail li { padding: 4px 0; padding-left: 14px; position: relative; }
.goods-detail li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.goods-detail .detail-tip { color: var(--text); font-size: 12px; margin-top: 10px; padding: 8px 10px; background: rgba(0,224,198,.08); border-radius: 8px; }
@media (max-width: 920px) {
  .goods-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .goods-img { width: 110px; height: 110px; }
  .goods-item.expanded .goods-detail { padding: 0 14px 16px 124px; }
  .goods-info { padding: 12px 14px; }
  .goods-item .goods-title { font-size: 15px; }
  .goods-item .goods-desc { font-size: 12px; -webkit-line-clamp: 1; }
  .goods-item .goods-price b { font-size: 20px; }
  .goods-item .goods-eyebrow { margin-bottom: 5px; }
  .goods-detail { padding: 0 14px 14px 124px; }
}

/* ---------- CTA band ---------- */
.cta-band { max-width: var(--maxw); margin: 0 auto 70px; padding: 50px 40px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cta-band h2 { font-family: var(--font-display); font-size: 28px; }
.cta-band p { color: var(--muted); margin: 12px 0 24px; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
/* 联系我们页（2026-10-08 起移除需求提交表单，仅剩联系方式一栏）：单栏居中版式，避免右侧留空格 */
.contact-wrap.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.contact-aside h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); margin: 10px 0; }
.aside-sub { color: var(--muted); margin-bottom: 24px; }
.aside-points { list-style: none; margin-bottom: 28px; }
.aside-points li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text); }
.aside-points li span { color: var(--accent); }
.aside-info p { font-size: 14px; }

/* ---------- 客服微信二维码（联系我们页左栏） ---------- */
/* 二维码必须保持白底黑码（反色会扫不出），用白色圆角卡片 + 青色描边融入深色页面 */
.aside-qr { margin-top: 22px; }
.aside-qr img {
  display: block;
  width: 240px; height: 240px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 224, 198, 0.3);
}
.aside-qr span { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }

.contact-form-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
#submit-btn { width: 100%; margin-top: 6px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form-ok { color: var(--accent); }
.form-err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 24px 30px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-family: var(--font-display); margin-bottom: 12px; font-size: 15px; }
.foot-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.copyright { max-width: var(--maxw); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Footer inner（统一横排导航） ---------- */
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-inner .brand-name { font-size: 18px; font-weight: 700; display: block; margin-bottom: 6px; }
.footer-desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding: 20px 0; text-align: center; }

/* ---------- 服务矩阵（紧凑版） ---------- */
.services-section { padding: 50px 24px 60px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.service-num { font-family: var(--font-display); font-size: 11px; color: var(--accent); opacity: .8; }
.service-tag { font-size: 11px; color: var(--accent); border: 1px solid rgba(0,224,198,.3); padding: 3px 10px; border-radius: 99px; }
.service-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- 携手华医 · 共筑健康 ---------- */
/* overflow-x: clip —— 兜底裁掉区块内装饰元素的横向溢出（不产生滚动容器，不影响 sticky/阴影） */
.huayi-section { position: relative; padding: 60px 24px 50px; overflow-x: clip; }
.huayi-section::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: min(640px, calc(100% - 40px)); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0,224,198,0.35), transparent);
}
/* 标题下方通栏大图 */
.huayi-banner {
  position: relative;
  margin: 30px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(0, 224, 198, .06);
  line-height: 0;
}
.huayi-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 26, .22) 0%, transparent 34%, rgba(10, 14, 26, .30) 100%);
}
.huayi-banner img { width: 100%; height: auto; display: block; }

.huayi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.huayi-card {
  position: relative;
  background: linear-gradient(160deg, rgba(0,224,198,0.06), rgba(45,127,249,0.04) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.huayi-card::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,198,0.12), transparent 70%);
  pointer-events: none;
}
.huayi-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 28px rgba(0,224,198,0.12); }
.huayi-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.huayi-num { font-family: var(--font-display); font-size: 12px; color: var(--accent); opacity: .85; letter-spacing: 1px; }
.huayi-tag { font-size: 11px; color: var(--accent); border: 1px solid rgba(0,224,198,.3); padding: 3px 10px; border-radius: 99px; }
.huayi-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.huayi-alias { color: var(--accent); font-size: 13px; margin-bottom: 8px; opacity: .9; }
.huayi-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 920px) {
  .huayi-section { padding: 50px 20px 40px; }
  .huayi-banner { margin-top: 22px; border-radius: 14px; }
  .huayi-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-signal { justify-content: flex-start; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .prod-stream { grid-template-columns: 1fr; }
  .prod-card.offset { transform: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px; }
  .contact-aside h1 { font-size: 28px; }
  .aside-points li { padding: 6px 0; }
  .aside-qr img { width: 220px; height: 220px; }
  .contact-form-box { padding: 22px; }
  .contact-form input, .contact-form textarea { padding: 14px 14px; font-size: 16px; }
  .nav-wrap { padding: 12px 16px 10px; gap: 10px; flex-direction: column; align-items: stretch; }
  .brand { align-self: flex-start; }
  .brand-name em { display: none; }
  .nav-links {
    display: flex;
    gap: 8px 16px;
    margin-left: 0;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .page-hero { padding-top: 100px; }
  .hero { padding-top: 90px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .services-section { padding: 40px 20px 50px; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

/* =========================================================
 * 首页科技感增强（灵启元AI）
 * 命名空间 .ai-* / .beam-* / .glow-border，独立于既有样式
 * ========================================================= */

/* ---------- Hero 光束层 ---------- */
.hero-beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.beam {
  position: absolute;
  top: -40%;
  width: 2px;
  height: 180%;
  background: linear-gradient(180deg, transparent, rgba(0,224,198,0.35), transparent);
  filter: blur(0.5px);
  opacity: .5;
  animation: beam-float 9s ease-in-out infinite;
}
.beam-1 { left: 18%; transform: rotate(18deg); animation-delay: 0s; }
.beam-2 { left: 52%; transform: rotate(-12deg); background: linear-gradient(180deg, transparent, rgba(45,127,249,0.32), transparent); animation-delay: 2.5s; }
.beam-3 { left: 82%; transform: rotate(20deg); animation-delay: 4.5s; }
.beam-halo {
  position: absolute;
  left: 50%; top: 38%;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  background: conic-gradient(from 0deg, rgba(0,224,198,0) 0deg, rgba(0,224,198,0.10) 60deg, rgba(45,127,249,0) 140deg, rgba(0,224,198,0) 360deg);
  border-radius: 50%;
  filter: blur(40px);
  animation: halo-spin 18s linear infinite;
  opacity: .8;
}
@keyframes beam-float { 0%,100% { transform: translateY(-12px) rotate(18deg); opacity: .35; } 50% { transform: translateY(12px) rotate(18deg); opacity: .65; } }
.beam-2 { animation-name: beam-float-2; }
@keyframes beam-float-2 { 0%,100% { transform: translateY(10px) rotate(-12deg); opacity: .3; } 50% { transform: translateY(-10px) rotate(-12deg); opacity: .6; } }
.beam-3 { animation-name: beam-float-3; }
@keyframes beam-float-3 { 0%,100% { transform: translateY(-8px) rotate(20deg); opacity: .3; } 50% { transform: translateY(14px) rotate(20deg); opacity: .6; } }
@keyframes halo-spin { to { transform: rotate(360deg); } }

/* ---------- Hero eyebrow 脉冲点 ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,224,198,0.6);
  animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,224,198,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0,224,198,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,224,198,0); }
}

/* ---------- Hero 底部指标线 ---------- */
.hero-stats-line {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px; font-size: 14px; color: var(--muted);
  font-family: var(--font-display);
}
.hero-stats-line b { color: var(--accent); font-size: 18px; margin-right: 4px; }
.hero-stats-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- Hero 右侧 AI 视觉图 ---------- */
.hero-ai { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-ai-visual {
  position: relative;
  width: 100%; max-width: 560px;
  margin-top: 16px;
}
.hero-ai-img { width: 100%; height: auto; display: block; }

/* ---------- AI 智能体中枢区块 ---------- */
.ai-robot-section { padding: 30px 24px 50px; }
.ai-robot-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; margin-top: 34px;
}
.robot-card {
  position: relative;
  display: flex; gap: 26px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  overflow: hidden;
}
.robot-visual {
  flex-shrink: 0;
  width: 220px;
  display: flex; align-items: center; justify-content: center;
}
.robot-hologram {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, rgba(0,224,198,0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(45,127,249,0.14) 0%, transparent 50%);
}
.robot-hologram::before {
  content: ""; position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,224,198,0.08), transparent 60%);
  animation: holo-breathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holo-breathe { 0%,100% { opacity: .4; transform: scale(.92); } 50% { opacity: .8; transform: scale(1.05); } }
.holo-ring {
  position: absolute; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.holo-ring-1 { animation: ring-spin 18s linear infinite; }
.holo-ring-2 { animation: ring-spin-reverse 24s linear infinite; }
.holo-ring-3 { animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ring-spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
.robot-particles {
  position: absolute; inset: 0; border-radius: 50%;
  background-image:
    radial-gradient(circle, rgba(0,224,198,0.85) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(45,127,249,0.7) 1px, transparent 1.5px);
  background-size: 60px 60px, 44px 44px;
  background-position: 0 0, 12px 22px;
  opacity: .25;
  animation: particles-float 10s linear infinite;
  pointer-events: none;
}
@keyframes particles-float { 0% { background-position: 0 0, 12px 22px; } 100% { background-position: 60px -60px, 56px -22px; } }
.robot-img {
  position: relative; z-index: 2;
  width: 88%; height: auto;
  display: block;
  filter: drop-shadow(0 12px 34px rgba(0,224,198,0.22));
  animation: robot-float 5s ease-in-out infinite;
}
@keyframes robot-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.robot-scanline {
  position: absolute; z-index: 3;
  top: 12%; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,224,198,0.8), transparent);
  box-shadow: 0 0 10px rgba(0,224,198,0.5);
  opacity: .6;
  animation: scan-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan-sweep { 0%,100% { top: 12%; opacity: 0; } 15% { opacity: .7; } 50% { top: 78%; opacity: .7; } 85% { opacity: 0; } }
.robot-meta { min-width: 0; }
.robot-name { font-family: var(--font-display); font-size: 20px; color: var(--text); display: block; margin-bottom: 8px; }
.robot-meta p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.robot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.robot-tags span {
  font-size: 12px; color: var(--accent);
  border: 1px solid rgba(0,224,198,0.3);
  padding: 4px 12px; border-radius: 99px;
  background: rgba(0,224,198,0.05);
}
.robot-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap-mini {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cap-mini:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,224,198,0.1); }
.cap-mini b { font-family: var(--font-display); font-size: 17px; color: var(--text); display: block; margin-bottom: 6px; }
.cap-mini span { color: var(--muted); font-size: 13px; }

/* ---------- 流光边框 ---------- */
.glow-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, transparent 32%, rgba(0,224,198,0.7) 50%, transparent 68%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sheen 3.6s linear infinite; pointer-events: none;
}
@keyframes sheen { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }

/* ---------- 区块标题线条装饰（全局科技感）---------- */
.block-head h2 { position: relative; display: inline-block; }
.block-head h2::before {
  content: ""; display: inline-block; width: 30px; height: 3px; margin-right: 12px;
  vertical-align: middle; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px rgba(0,224,198,0.6);
}

/* ---------- 卡片 hover 流光（复用既有卡片）---------- */
.service-card:hover, .cap-card:hover { box-shadow: 0 0 24px rgba(0,224,198,0.12); }
.vision-banner { position: relative; overflow: hidden; }
.vision-banner::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,224,198,0.07), transparent);
  transform: skewX(-20deg); animation: vision-sheen 7s ease-in-out infinite;
}
@keyframes vision-sheen { 0% { left: -60%; } 55%,100% { left: 120%; } }

/* ---------- 科技感响应式 ---------- */
@media (max-width: 920px) {
  .hero-ai { margin-top: 36px; }
  .hero-ai-visual { max-width: 420px; }
  .ai-robot-grid { grid-template-columns: 1fr; }
  .robot-card { flex-direction: column; text-align: center; }
  .robot-visual { width: 260px; }
  .robot-hologram { width: 260px; height: 260px; }
  .robot-tags { justify-content: center; }
}
@media (max-width: 560px) {
  .robot-visual { width: 200px; }
  .robot-hologram { width: 200px; height: 200px; }
  .robot-card { padding: 22px 18px; gap: 18px; }
  .robot-caps { grid-template-columns: 1fr; }
  .beam-halo { width: 480px; height: 480px; margin: -240px 0 0 -240px; }
  /* Hero 右侧图：仅图片左右出血贴边，文字区保留左右边距 */
  .hero { padding: 90px 24px 40px; }
  .hero-ai-visual { max-width: none; width: calc(100% + 48px); margin: 8px -24px 0; }
  .hero-ai-img { width: 100%; height: auto; display: block; }
}

/* ---------- 订单收银页 ---------- */
.order-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px 90px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.order-wrap > * { min-width: 0; }
.order-goods-card {
  display: flex;
  gap: 18px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.order-goods-img {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: #061018;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.order-goods-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-goods-info { display: flex; flex-direction: column; justify-content: center; }
.order-goods-info h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.4; }
.order-goods-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.order-goods-price { margin-top: 14px; }
.order-goods-price b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--accent); }
.order-goods-price span { color: var(--muted); font-size: 13px; }

.order-sku-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.order-sku {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.order-sku-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.order-sku:hover { border-color: rgba(0,224,198,.5); }
.order-sku.active { border-color: var(--accent); background: rgba(0,224,198,.07); }
.order-sku.active .order-sku-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.order-assure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.order-assure b { color: var(--accent); margin-right: 4px; }

.order-form-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.order-sku-picked {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,224,198,.07);
  border: 1px solid rgba(0,224,198,.3);
  border-radius: 10px;
  padding: 10px 14px;
}
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-half { flex: 1; min-width: 140px; }
.qty-ctrl { display: flex; align-items: center; gap: 0; }
.qty-ctrl button {
  width: 42px; height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.qty-ctrl button:first-child { border-radius: 10px 0 0 10px; }
.qty-ctrl button:last-child { border-radius: 0 10px 10px 0; }
.qty-ctrl input {
  width: 70px; height: 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: none; border-right: none;
  color: var(--text);
  text-align: center;
  font-size: 16px;
  font-family: var(--font-display);
  outline: none;
}
.order-total {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 46px;
}
#order-btn { width: 100%; margin-top: 6px; }

/* ---------- 支付弹层 ---------- */
.pay-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  box-sizing: border-box;
  background: rgba(2,6,12,.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pay-mask.show { display: flex; }
.pay-modal {
  width: 100%;
  max-width: 400px;
  max-width: min(400px, calc(100vw - 40px));
  margin: auto;
  box-sizing: border-box;
  background: linear-gradient(160deg, var(--surface) 0%, #0a141c 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.pay-state h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; }
.pay-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 10px auto 18px;
  animation: payspin 0.9s linear infinite;
}
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-qr-box {
  width: 248px; height: 248px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 14px;
  display: grid; place-items: center;
  padding: 14px;
}
.pay-qr-box img, .pay-qr-box canvas { display: block; }
.pay-amount { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--accent); }
.pay-waiting { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pay-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  margin-right: 6px;
  animation: payblink 1.2s ease-in-out infinite;
}
@keyframes payblink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.pay-order-no { color: var(--muted); font-size: 12px; margin-top: 10px; word-break: break-all; }
.pay-success-icon {
  width: 64px; height: 64px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: rgba(0,224,198,.12);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 32px;
  line-height: 60px;
}
.pay-success p, .pay-fail p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pay-fail-icon {
  width: 64px; height: 64px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: rgba(255,184,77,.12);
  border: 2px solid #ffb84d;
  color: #ffb84d;
  font-size: 32px;
  line-height: 60px;
  font-weight: 700;
}
.pay-modal .btn { min-width: 160px; }

@media (max-width: 920px) {
  .order-wrap { grid-template-columns: 1fr; gap: 24px; }
  .field-row { flex-direction: column; gap: 0; }
}

/* =========================================================
 * APP 底部 Tab 栏（灵启元AI）
 * 只在 <html class="app-mode">（= 用户已把站点装成 APP）时显示：
 *   安卓 APK / 已「加到主屏幕」的 PWA。
 * 判定与 DOM 构建见 js/app-nav.js；普通浏览器访问不显示、不改变原有布局。
 * 手机端在 app-mode 下顶部只留品牌 Logo，导航全部移到底部。
 * ========================================================= */
.app-tabbar { display: none; }

@media (max-width: 1024px) {
  html.app-mode .app-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80; /* 低于个人中心弹层(100)与全局遮罩(1000)，高于顶部导航(50) */
    background: rgba(10, 14, 26, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
    animation: appTabIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  }

  html.app-mode .app-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease;
  }
  html.app-mode .app-tab svg { width: 23px; height: 23px; display: block; }
  html.app-mode .app-tab-txt {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.app-mode .app-tab.active,
  html.app-mode .app-tab:active { color: var(--accent); }
  html.app-mode .app-tab.active svg { filter: drop-shadow(0 0 7px rgba(0, 224, 198, 0.55)); }

  /* 顶部导航让位：装成 APP 后顶部只留品牌 Logo，导航全部在底部 */
  html.app-mode .nav-links { display: none !important; }
  html.app-mode .nav-wrap { padding-bottom: 12px; }

  /* 页脚导航行：装成 APP 后与底部 Tab 栏完全重复 → 隐藏（2026-10-08 武老板要求）
     普通浏览器 / 电脑端保留该行（那边没有底部 Tab 栏，导航仍需它） */
  html.app-mode .footer-links { display: none; }

  /* 防止页面末尾（页脚 / 提交按钮）被底部栏压住 */
  html.app-mode body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

@keyframes appTabIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* =========================================================
 * 折叠块（信息精简）：默认收起，点击展开，内容零丢失
 * 用法：<details class="fold"><summary>标题<span class="fold-hint"></span></summary><div class="fold-body">…</div></details>
 * ========================================================= */
details.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  margin-top: 6px;
}
details.fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: -3px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform .2s;
}
details.fold[open] > summary::before { transform: rotate(45deg); margin-top: 0; }
details.fold > summary:hover { color: var(--accent); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold-hint { margin-left: auto; font-size: 12px; font-family: inherit; font-weight: 400; color: var(--muted); }
.fold-hint::before { content: "点击展开"; }
details.fold[open] .fold-hint::before { content: "点击收起"; }
.fold-body { padding: 16px; }
.fold-body > .level-grid { margin-bottom: 0 !important; }
.fold-body > table { margin-top: 0; }
.fold-body > h3:first-child { margin-top: 0; }
