/* 官网首页样式 —— 与后台 app.css、会员站 member.css 完全独立
   视觉：深色 hero + 暖橙主色 + 大圆角白卡，移动端优先。 */

:root {
  --brand: #f2541b;
  --brand-2: #ff7a3c;
  --brand-soft: #fff1e9;
  --ink: #14161b;
  --ink-2: #5e636d;
  --ink-3: #98a0aa;
  --line: #ecebe6;
  --bg: #f7f6f3;
  --card: #ffffff;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(23, 26, 32, .04), 0 10px 30px rgba(23, 26, 32, .06);
  --shadow-lift: 0 2px 8px rgba(23, 26, 32, .07), 0 20px 44px rgba(23, 26, 32, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(20, 18, 16, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 17px; letter-spacing: .2px;
}
.logo {
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(242, 84, 27, .38);
}
/* 栏目：五个内容入口（产品/教程/问答/公告/固件）挨在一起，会员单独隔一道竖线。
   选中态用 2px 渐变色下划线，不给整块加底色——导航上已经有搜索框和登录按钮
   两个色块，再铺底色会显得满脸补丁。 */
.navlinks { display: flex; align-items: center; gap: 2px; }
.navlinks > a {
  position: relative;
  color: rgba(255, 255, 255, .68);
  font-size: 14px; font-weight: 500; letter-spacing: .2px;
  padding: 8px 11px;
  transition: color .18s ease;
}
.navlinks > a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.navlinks > a:hover { color: #fff; }
.navlinks > a:hover::after { transform: scaleX(1); }
.navlinks > a.on { color: #fff; font-weight: 600; }
.navlinks > a.on::after { transform: scaleX(1); }
.navlinks > a[data-sec="member"] { margin-left: 10px; }
.navlinks > a[data-sec="member"]::before {
  content: ''; position: absolute; left: -6px; top: 50%;
  width: 1px; height: 13px; margin-top: -6.5px;
  background: rgba(255, 255, 255, .16);
}

/* ===== 按钮 ===== */
/* 这两个类多数挂在 <a> 上，但留言页的「提交留言」是 <button>——
   浏览器给 <button> 自带 2px outset 边框，不重置就会在橙色渐变外面
   套一圈深灰描边，手机上看就是"黑色边框"。appearance 一并清掉，
   否则 iOS Safari 还会再叠一层自己的圆角和内阴影。
   font-family 也要 inherit，button 不继承 body 字体。 */
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border: 0; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  line-height: 1.4; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-solid {
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 6px 20px rgba(242, 84, 27, .34);
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(242, 84, 27, .42); }
.btn-ghost {
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 13px 28px; font-size: 15.5px; }

/* ===== Hero ===== */
/* 首屏高度：原来上下 88/96、标题 50px，一屏只剩标题和按钮，往下什么都看不到。
   现在收到 52/56、标题最大 44px，整块压到 380 上下，产品卡能露出来一截。 */
.hero {
  position: relative; overflow: hidden;
  padding: 52px 24px 56px;
  background: radial-gradient(120% 90% at 78% 0%, #33190d 0%, #17181c 46%, #101114 100%);
  color: #fff;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero-kicker {
  display: inline-block; margin: 0 0 14px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(242, 84, 27, .16);
  border: 1px solid rgba(242, 84, 27, .32);
  color: #ffb491; font-size: 13px; letter-spacing: .6px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.26; font-weight: 700; letter-spacing: -.5px;
}
.hero-sub {
  margin: 0 auto 26px; max-width: 520px;
  color: rgba(255, 255, 255, .66); font-size: 16px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute; z-index: 1;
  width: 620px; height: 620px; border-radius: 50%;
  left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 84, 27, .34) 0%, rgba(242, 84, 27, 0) 66%);
  filter: blur(10px);
  pointer-events: none;
}

/* ===== 区块 ===== */
.sec { max-width: 1080px; margin: 0 auto; padding: 72px 24px 12px; }
.sec-alt { padding-top: 64px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 {
  margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.3px;
}
.sec-head p { margin: 0; color: var(--ink-3); font-size: 15px; }
.none { color: var(--ink-3); font-size: 15px; padding: 24px 0; }

/* ===== 产品卡 ===== */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.pcard {
  display: flex; gap: 18px;
  background: var(--card); border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* 屏幕示意：圆屏是正圆，方屏是圆角矩形 */
.pshot {
  flex: 0 0 auto;
  width: 112px; height: 112px;
  border-radius: 22px;
  background: linear-gradient(160deg, #23262c, #15171b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 22px rgba(15, 17, 21, .18);
}
.pshot.round { border-radius: 50%; }
.pscreen {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff;
}
.ptime { font-size: 24px; font-weight: 600; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.ptemp { font-size: 11px; color: rgba(255, 255, 255, .5); }

.pbody { min-width: 0; flex: 1 1 auto; }
.ptitle { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ptitle h3 { margin: 0; font-size: 17.5px; font-weight: 700; }
.pbadge {
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.psummary { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.pdetail {
  margin: 0 0 12px; color: var(--ink-3); font-size: 13px;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pfoot {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-size: 18px; font-weight: 700; color: var(--brand); }
.ptip { font-size: 12.5px; color: var(--ink-3); }

/* ===== 公告 ===== */
.newslist { display: flex; flex-direction: column; gap: 12px; }
.nitem {
  background: var(--card); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.nhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.nhead h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1 1 auto; }
.nhead time { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.npin {
  padding: 2px 8px; border-radius: 999px;
  background: #fdecea; color: #d13b2e; font-size: 11.5px; font-weight: 600;
}
.nbody {
  margin: 0; color: var(--ink-2); font-size: 14.5px;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 底部行动区 ===== */
.cta {
  max-width: 1080px; margin: 56px auto 0;
  padding: 52px 24px;
  text-align: center;
}
.cta h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.cta p { margin: 0 0 26px; color: var(--ink-3); }

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 24px 56px;
  text-align: center;
  background: #fbfaf8;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; margin-bottom: 10px;
}
.foot-note { margin: 0 0 14px; color: var(--ink-3); font-size: 13.5px; }
.foot-copy { margin: 0; color: #b6bcc4; font-size: 12.5px; }

/* ===== 移动端 ===== */
@media (max-width: 620px) {
  .nav { padding: 10px 14px; gap: 10px; }
  /* 原来把锚点全 display:none 了，手机上就没有任何站内跳转入口。
     改成横向可滚动的一行，够用又不挤。 */
  /* 导航的手机两行排版统一放在文件后面的"导航栏"一节，
     这里只保留不影响布局的细节。 */
  .brand { flex: 0 0 auto; }
  /* 手机首屏：原来上下 60/68 留白 + 三行大标题 + 三个标签，一屏吃掉将近 500px，
     往下滚之前什么都看不见，看着就像贴了一张大黑图。
     现在压到 230 上下：留白收到 18/20，标题 22px，标签不显示。 */
  .hero { padding: 18px 18px 20px; }
  .hero-kicker { margin-bottom: 8px; font-size: 11px; padding: 3px 10px; letter-spacing: .4px; }
  .hero h1 { font-size: 22px; line-height: 1.28; margin-bottom: 10px; letter-spacing: -.2px; }
  .hero-sub { font-size: 13px; margin-bottom: 16px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn-lg { padding: 10px 20px; font-size: 14.5px; }
  .sec { padding: 52px 16px 8px; }
  .sec-head h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .pcard { padding: 16px; gap: 14px; }
  .pshot { width: 88px; height: 88px; border-radius: 18px; }
  .pshot.round { border-radius: 50%; }
  .ptime { font-size: 20px; }
  .cta { margin-top: 36px; padding: 40px 20px; }
}

/* ===== Hero 底部特性标签 ===== */
.hero-tags {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.hero-tags span {
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
}

/* ===== 固件版本 ===== */
.fwgrid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.fwcard {
  position: relative;
  background: var(--card); border-radius: var(--r-md);
  padding: 20px 20px 16px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fwcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.fwtop { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fwmodel { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fwforce {
  padding: 1px 8px; border-radius: 999px;
  background: #fdecea; color: #c0392b;
  font-size: 11px; font-weight: 600;
}
.fwver {
  font-size: 26px; font-weight: 700; letter-spacing: -.5px;
  color: var(--ink); line-height: 1.2;
}
.fwnotes {
  margin: 8px 0 12px; font-size: 13.5px; color: var(--ink-2);
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fwmeta { font-size: 12px; color: var(--ink-3); }
.fwhint { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

/* ===== 固件更新页 /updates =====
   当前版本用上面的 fwcard，下面接历次发布记录。
   一条更新一个卡片，左边竖条跟 fwcard 呼应，日期靠右对齐方便扫时间线。 */
.fwh2 {
  margin: 44px 0 14px;
  font-size: 20px; font-weight: 700; letter-spacing: -.3px;
}
/* 首页固件区块里，版本卡下面的两行更新记录 */
.fwnews { margin-top: 18px; }
.fwlog { display: flex; flex-direction: column; gap: 14px; }
/* 从首页点"固件更新"进来会带 #r{id} 锚点，留出滚动余量，别让标题顶在导航底下 */
.fwlog-item { scroll-margin-top: 90px; }
.fwlog-item {
  position: relative;
  background: var(--card); border-radius: var(--r-md);
  padding: 22px 24px 22px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fwlog-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #ffd2b8, var(--brand));
}
.fwlog-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.fwlog-head h3 {
  margin: 0; font-size: 17.5px; font-weight: 650; letter-spacing: -.2px;
  line-height: 1.45;
}
.fwlog-head time {
  flex: 0 0 auto;
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.fwlog-body {
  margin-top: 10px;
  font-size: 15px; line-height: 1.85; color: #2a2d33;
  white-space: pre-wrap; word-break: break-word;
}
.fwlog-empty { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }

/* ===== 会员权益页 /member =====
   上半部分是首页那块 mbox 的原样复用（左"怎么来"、右"怎么花"），
   下面接一排常见疑问，两列自适应，问题多了会自动换行。 */
.mfaq {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.mfaq-item {
  background: var(--card); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.mfaq-item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.mfaq-item p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

@media (max-width: 620px) {
  .mfaq { grid-template-columns: 1fr; }
  .mfaq-item { padding: 18px 18px; }
}

@media (max-width: 620px) {
  .fwh2 { margin-top: 32px; }
  .fwlog-item { padding: 18px 18px 18px 20px; }
  .fwlog-head h3 { font-size: 16.5px; }
  .fwlog-head { flex-direction: column; gap: 4px; }
}

/* ===== 关于我们（深色卡片，视觉上压住版面）===== */
.about {
  background: radial-gradient(120% 130% at 88% 0%, #2c1a10 0%, #17181c 55%, #101114 100%);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  color: #fff;
  box-shadow: 0 18px 46px rgba(16, 17, 20, .22);
}
.about-text {
  margin: 0 0 26px;
  font-size: 16.5px; line-height: 1.95;
  color: rgba(255, 255, 255, .82);
  white-space: pre-line;
}
.about-meta {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.am { display: flex; flex-direction: column; gap: 3px; }
.am-k { font-size: 12px; color: rgba(255, 255, 255, .42); letter-spacing: .5px; }
.am-v { font-size: 14.5px; color: rgba(255, 255, 255, .9); }

/* ===== 留言反馈 ===== */
.fbmsg {
  margin-bottom: 16px; padding: 12px 16px;
  border-radius: 12px; font-size: 14px;
}
.fbmsg.ok { background: #e8f7ee; color: #17734a; border: 1px solid #c8ecd8; }
.fbmsg.bad { background: #fdecea; color: #a32b2b; border: 1px solid #f6d2cd; }

.fbform {
  background: var(--card); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.fbrow { display: flex; gap: 12px; margin-bottom: 12px; }
.fbform input, .fbform textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fcfbfa;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.fbform input:focus, .fbform textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(242, 84, 27, .1);
}
.fbform textarea { resize: vertical; line-height: 1.7; }

/* 正文 + 右下角字数计数。计数器绝对定位在输入框里，
   所以 textarea 底部要留出 padding，不然最后一行文字会被数字压住。 */
.fbbody { position: relative; }
.fbbody textarea { display: block; padding-bottom: 32px; }
.fbcount {
  position: absolute; right: 14px; bottom: 10px;
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: color .16s ease;
}
.fbcount.near { color: #b4761f; }
.fbcount.full { color: #a32b2b; font-weight: 600; }

.fbfoot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.fbnote { font-size: 12.5px; color: var(--ink-3); }

/* 蜜罐字段：挪到屏幕外而不是 display:none。
   有些脚本会跳过 display:none 的框，但通常不会判断"在不在可视区"。 */
.fbhp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

@media (max-width: 620px) {
  /* 三个特性标签在手机上不占首屏，内容下面各区块都讲到了 */
  .hero-tags { display: none; }
  .about { padding: 28px 22px; }
  .about-text { font-size: 15.5px; }
  .about-meta { gap: 14px 24px; }
  .fbrow { flex-direction: column; gap: 10px; }
  .fwgrid { grid-template-columns: 1fr; }
  .fbfoot { flex-direction: column; align-items: stretch; }
  .fbfoot .btn-solid { width: 100%; }
}

/* ==========================================================================
   产品详情页（/p/{id}）
   ========================================================================== */

/* 浅底上的描边按钮。首页的 .btn-ghost 是给深色区用的，搬到白底会看不见。 */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
  border: 1px solid #dcdad4;
  background: #fff;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn-line:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---- 头部：左边一台机器，右边文案 ---- */
.pdhero {
  position: relative; overflow: hidden;
  background: radial-gradient(110% 120% at 22% 10%, #33200f 0%, #17181c 52%, #101114 100%);
  color: #fff;
  padding: 64px 24px 72px;
}
.pd-wrap {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 56px; align-items: center;
}

/* 真机示意：外壳 + 内屏 + 外发光 */
.pd-shot {
  position: relative;
  width: 100%; max-width: 320px; aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 44px;
  background: linear-gradient(160deg, #2c3037, #14161a);
  display: flex; align-items: center; justify-content: center;
  /* 最后一层是橙色外发光。用 box-shadow 而不是伪元素，
     因为伪元素配 z-index:-1 会掉到 .pdhero 背景下面，光晕直接看不见。 */
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1),
              inset 0 -18px 40px rgba(0, 0, 0, .5),
              0 30px 70px rgba(0, 0, 0, .45),
              0 0 90px 8px rgba(242, 84, 27, .18);
}
.pd-shot.round { border-radius: 50%; }
.pd-screen {
  width: 78%; height: 78%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 30%, #1e222a, #0b0d10 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .05);
  position: relative; overflow: hidden;
}
.pd-shot.round .pd-screen { border-radius: 50%; }
.pd-time {
  font-size: clamp(38px, 5.4vw, 56px); font-weight: 300; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.pd-date { font-size: 11.5px; color: rgba(255, 255, 255, .4); letter-spacing: .5px; }
.pd-wx { margin-top: 4px; font-size: 13px; color: #7fc6ff; }
.pd-glow {
  position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 120%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 84, 27, .22), transparent 70%);
  pointer-events: none;
}

.pd-info { min-width: 0; }
.pd-back {
  display: inline-block; margin-bottom: 18px;
  font-size: 13px; color: rgba(255, 255, 255, .42);
  transition: color .16s ease;
}
.pd-back:hover { color: rgba(255, 255, 255, .8); }
.pd-badge {
  display: inline-block; margin-bottom: 12px;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(242, 84, 27, .18);
  border: 1px solid rgba(242, 84, 27, .34);
  color: #ffb491; font-size: 12px; font-weight: 600;
}
.pd-info h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.5px;
  line-height: 1.24;
}
.pd-sum {
  margin: 0 0 26px; max-width: 460px;
  color: rgba(255, 255, 255, .62); font-size: 15.5px; line-height: 1.8;
}
.pd-price {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.pd-price b { font-size: 30px; font-weight: 700; color: #ffb491; letter-spacing: -.5px; }
.pd-price span { font-size: 12.5px; color: rgba(255, 255, 255, .38); }
.pd-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-btns .btn-line { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.pd-btns .btn-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); color: #fff; }

/* ---- 四个卖点 ---- */
.feat {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.fitem {
  background: var(--card); border-radius: var(--r-md);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow);
}
.fico {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--brand); opacity: .55;
}
.fitem h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.fitem p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---- 详细介绍 ---- */
.pd-detail {
  background: var(--card); border-radius: var(--r-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow);
  font-size: 15.5px; line-height: 2;
  color: var(--ink-2);
  white-space: pre-line;
}

/* ---- 参数表 ---- */
.spec {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec-row {
  display: flex; align-items: baseline; gap: 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row span {
  flex: 0 0 96px; font-size: 13px; color: var(--ink-3);
}
.spec-row b { font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* ---- 购买 ---- */
.buybox {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff4ec, #fffaf6);
  border: 1px solid #f6e2d5;
  border-radius: var(--r-lg);
  padding: 34px 34px;
}
.buy-left h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.buy-left p { margin: 0; max-width: 520px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.buy-contact { margin-top: 10px !important; }
.buy-contact b { color: var(--brand); }

/* ---- 首页产品卡可点 ---- */
.pcard-link { cursor: pointer; }
.pcard-link:hover .ptip { color: var(--brand); }

/* ---- 移动端 ---- */
@media (max-width: 760px) {
  .pdhero { padding: 40px 20px 52px; }
  .pd-wrap { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .pd-shot { max-width: 240px; }
  .pd-info h1 { font-size: 26px; }
  .pd-sum { margin-left: auto; margin-right: auto; }
  .pd-price { justify-content: center; }
  .pd-btns { justify-content: center; }
  .pd-detail { padding: 24px 22px; font-size: 15px; }
  .spec-row { padding: 13px 18px; gap: 14px; }
  .spec-row span { flex-basis: 78px; }
  .buybox { padding: 26px 22px; }
  .buy-right, .buy-right .btn-solid { width: 100%; }
}

/* ==========================================================================
   首页：三步上手 + 会员权益
   ========================================================================== */

.steps {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step {
  position: relative;
  background: var(--card); border-radius: var(--r-md);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
}
.snum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 15px;
  border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 15px; font-weight: 700;
}
.step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---- 会员权益：左边讲规则，右边列价目 ---- */
.mbox {
  display: grid; grid-template-columns: 1.15fr .85fr;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.mleft { padding: 36px 34px; }
.mleft h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.mleft > p { margin: 0 0 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.mlist { list-style: none; margin: 0 0 24px; padding: 0; }
.mlist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.mlist li:last-child { border-bottom: 0; }
.mlist b { font-weight: 600; }
.mlist span { color: var(--brand); font-weight: 600; font-size: 13.5px; white-space: nowrap; }

.mright {
  padding: 36px 34px;
  background: linear-gradient(160deg, #1e2026, #101114);
  color: #fff;
}
.mcell {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
}
.mcell span { color: rgba(255, 255, 255, .55); }
.mcell b { font-size: 16px; font-weight: 700; color: #ffb491; }
.mcell b.mfree { color: #5fd39a; }
.mnote {
  margin: 18px 0 0; font-size: 12.5px;
  color: rgba(255, 255, 255, .36); line-height: 1.7;
}

@media (max-width: 760px) {
  .mbox { grid-template-columns: 1fr; }
  .mleft, .mright { padding: 26px 22px; }
  .mleft > p { font-size: 14px; }
}

/* ==========================================================================
   页脚（覆盖前面那版居中的简单页脚）
   ========================================================================== */

.foot {
  border-top: 1px solid var(--line);
  background: #fbfaf8;
  padding: 52px 24px 34px;
  text-align: left;
}
.foot-top {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brandcol .foot-brand { margin-bottom: 12px; }
.foot-col .foot-note {
  margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.8;
  max-width: 300px;
}
.foot-col h4 {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: .3px;
}
.foot-col a {
  display: block; margin-bottom: 9px;
  font-size: 13.5px; color: var(--ink-3);
  transition: color .16s ease;
}
.foot-col a:hover { color: var(--brand); }
.foot-static { display: block; font-size: 13.5px; color: var(--ink-3); word-break: break-all; }
.foot-bottom {
  max-width: 1080px; margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #b6bcc4;
}

@media (max-width: 760px) {
  .foot { padding: 40px 20px 28px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-brandcol { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 6px; margin-top: 26px; }
}

/* ==========================================================================
   产品实拍图（后台上传的）
   没有图时仍用 CSS 画的示意屏，两种排在一起尺寸必须一样。
   ========================================================================== */

/* 首页卡片左侧的小图 */
.pshot-real {
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .07), 0 8px 22px rgba(15, 17, 21, .10);
}
.pshot-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 详情页首屏的大图 */
.pd-shot-real {
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .08),
              0 30px 70px rgba(0, 0, 0, .40);
}
.pd-shot-real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 760px) {
  .pshot-real { border-radius: 18px; }
  .pshot-real.round { border-radius: 50%; }
}

/* ==========================================================================
   内容：使用教程卡片 / 常见问题 / 详情页
   四类内容（公告、教程、FAQ、固件说明）共用一套卡片和详情页，
   靠 .ktag 的四种颜色区分栏目。
   ========================================================================== */

/* 栏目标签，后台表格里也用（app.css 里有同名的，两边各自定义） */
.ktag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px;
  background: #eef0f3; color: var(--ink-2); white-space: nowrap;
}
.ktag.k-news    { background: #fff1e9; color: #c2410c; }
.ktag.k-guide   { background: #e8f0ff; color: #1d4ed8; }
.ktag.k-faq     { background: #eaf7ef; color: #15803d; }
.ktag.k-release { background: #f2ecff; color: #6d28d9; }

/* 教程卡片网格 */
.tgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tcard {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.tcover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #2a2d33, #14161b);
}
.tcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcover-blank {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .35); font-size: 13px; letter-spacing: 4px;
}
.tplay {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.tplay svg { width: 20px; height: 20px; fill: var(--brand); }

.tbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tbody h3 {
  margin: 0 0 6px; font-size: 16.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tbody p {
  margin: 0 0 14px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tfoot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}
.tmore { color: var(--brand); font-weight: 600; }
.tcard:hover .tmore { text-decoration: underline; }

/* 常见问题：一条一行，左边一个 Q */
.faqlist { display: flex; flex-direction: column; gap: 10px; }
.faqitem {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.faqitem:hover { transform: translateX(3px); box-shadow: var(--shadow-lift); }
.fq {
  flex: none; width: 26px; height: 26px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; margin-top: 2px;
}
.faqitem h3 { margin: 0 0 4px; font-size: 15.5px; line-height: 1.45; }
.faqitem p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.farrow { flex: none; margin-left: auto; color: var(--ink-3); font-size: 15px; padding-top: 3px; }
.faqitem:hover .farrow { color: var(--brand); }

/* 公告 / 固件说明的可点击条目 */
.nitem-link { transition: transform .15s, box-shadow .15s; }
.nitem-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.nitem-link:hover h3 { color: var(--brand); }

/* ===== 内容详情页 ===== */
.post {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 24px;
}
.post-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 16px;
}
.post-crumb a:hover { color: var(--brand); }
.post-head h1 {
  margin: 12px 0 10px; font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3; letter-spacing: -.6px;
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.post-cover {
  margin: 28px 0 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.post-cover img { width: 100%; display: block; }

/* 正文：后台填的换行原样保留，用户不用会写 HTML */
.post-body {
  margin-top: 28px; font-size: 16.5px; line-height: 1.85;
  color: #2a2d33; white-space: pre-wrap; word-break: break-word;
}

.post-video { margin-top: 32px; }
.vbox {
  border-radius: var(--r-md); overflow: hidden; background: #14161b;
  box-shadow: var(--shadow);
}
.vbox iframe { display: block; width: 100%; border: 0; }
/* 抖音是竖屏，铺满整行会糊；B站是横屏，按 16:9 */
.v-vertical { width: min(400px, 100%); margin: 0 auto; }
.v-vertical iframe { aspect-ratio: 9 / 16; }
.v-wide iframe { aspect-ratio: 16 / 9; }
.vhint { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.post-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.post-contact { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .tgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tgrid { grid-template-columns: 1fr; gap: 16px; }
  .post { padding: 40px 20px 16px; }
  .post-body { font-size: 16px; }
}

/* ==========================================================================
   栏目列表页 /c/{kind}
   首页每个栏目只放最新 3 条，全量在这里看。四类内容共用这一页，
   靠 .ctabs 切换，靠 Kind 决定列表形态。
   ========================================================================== */

/* 首页区块标题右侧的"查看全部"。总数不超过首页展示条数时不显示。 */
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.sec-more {
  flex: none; margin-bottom: 2px;
  font-size: 14px; font-weight: 600; color: var(--brand);
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft);
  transition: background .16s ease, color .16s ease;
  white-space: nowrap;
}
.sec-more:hover { background: var(--brand); color: #fff; }

.cat {
  max-width: 1080px; margin: 0 auto;
  padding: 56px 24px 72px;
}
.cat-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 18px;
}
.cat-crumb a:hover { color: var(--brand); }

.cat-head h1 {
  margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.8px; line-height: 1.25;
}
.cat-head p {
  margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.7;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cat-n {
  padding: 2px 10px; border-radius: 999px;
  background: #F2EFEA; color: var(--ink-soft);
  font-size: 12.5px; font-weight: 600;
}

/* 栏目切换：四个胶囊，当前栏目实心 */
.ctabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 26px 0 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.ctab {
  padding: 8px 16px; border-radius: 999px;
  background: #F2EFEA; color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.ctab:hover { background: #E9E4DC; color: var(--ink); }
.ctab.on { background: var(--ink); color: #fff; }

.cat-empty {
  padding: 72px 0; text-align: center;
  color: var(--ink-3); font-size: 15px;
}
.cat-empty p { margin: 0 0 18px; }

/* 翻页 */
.pager {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.pg {
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 14px; box-shadow: var(--shadow);
  transition: background .15s ease, color .15s ease;
}
.pg:hover { background: var(--brand); color: #fff; }
.pg.off { color: #c9ccd2; background: transparent; box-shadow: none; }
.pg-info { font-size: 13.5px; color: var(--ink-3); }

/* 简版页脚：内容页不需要四栏，只留一行 */
.foot-slim { padding: 28px 24px 34px; }
.foot-slim .foot-bottom { margin: 0; padding: 0; border-top: 0; }
.foot-links { display: flex; gap: 16px; }
.foot-links a:hover { color: var(--brand); }

@media (max-width: 760px) {
  .cat { padding: 34px 20px 56px; }
  .ctabs { margin: 20px 0 22px; padding-bottom: 16px; }
  .ctab { padding: 7px 13px; font-size: 13px; }
  .sec-head-row { align-items: flex-start; }
  .sec-more { font-size: 13px; padding: 5px 12px; }
}

/* 关于我们 / 留言反馈：正文页比列表页窄，一行别拉太长 */
.cat-narrow { max-width: 820px; }
.cat-narrow .about { margin-top: 6px; }
.cat-narrow .fbform { margin-top: 8px; }
/* 底部两个互跳链接，居中排 */
.pager-links { gap: 10px; }

/* 留言提交成功：整块替换表单，只留一句"已经提交了" */
.fbdone {
  margin-top: 8px; padding: 44px 32px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); text-align: center;
}
.fbdone-icon {
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; background: #e8f7ee;
  display: flex; align-items: center; justify-content: center;
  color: #17734a;
}
.fbdone-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.fbdone h2 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.fbdone p {
  margin: 0 auto 24px; max-width: 460px;
  color: var(--ink-3); font-size: 14.5px; line-height: 1.8;
}
.fbdone-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   手机端底部菜单
   官网在手机上原来只能靠顶部横向滑动的导航，滑到哪算哪、没有全局入口。
   这里补一条常驻底栏：首页 / 产品 / 教程 / 公告 / 我的。
   只在 620px 以下出现，桌面完全不受影响。
   ========================================================================== */

.mtab { display: none; }

@media (max-width: 620px) {
  /* 底栏是 fixed 的，会把页面最后一段盖住，留出等高的下边距。
     底栏总高 = 56(按钮区) + 底部留白，底部留白别写死 0：
     安卓虚拟键 + 微信/浏览器自带底栏都会压上来，12px 明显不够（图标被咬掉一半），
     这里抬到 34px；刘海屏在安全区之上再多垫 16px，保证图标不落在 home 条里。 */
  body { padding-bottom: 90px; }
  body { padding-bottom: calc(56px + max(34px, calc(env(safe-area-inset-bottom, 0px) + 16px))); }

  .mtab {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 -6px 24px rgba(20, 22, 26, .06);
    /* 不支持 max() 的老浏览器退回到 34px，不会贴底 */
    padding-bottom: 34px;
    padding-bottom: max(34px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }
  .mtab a {
    flex: 1 1 0;
    height: 56px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    color: #8b9099;
    font-size: 12px; line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
  }
  .mtab a svg {
    width: 23px; height: 23px;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .mtab a.on { color: var(--brand); }
  .mtab a.on svg { stroke-width: 2; }
  .mtab a:active { color: var(--brand); }
}

/* ==========================================================================
   导航栏
   桌面：一行 —— 品牌 / 栏目 / 搜索框 / 登录注册。
   手机：两行 —— 第一行 品牌 + 搜索框（占满剩下的宽度）+ 公告铃；
                  第二行 栏目一排（放不下可以横向拖）+ 更多按钮。
   DOM 只写一份，桌面靠 flex order 排、手机靠 grid-area 摆。
   ========================================================================== */

.nav { justify-content: flex-start; }
.brand { order: 1; }
.navlinks { order: 2; gap: 2px; }
/* 短词只在手机上用，桌面上隐藏 */
.navlinks .sm { display: none; }
.ns { order: 3; margin-left: auto; }
/* 账户区（登录/注册）和左边的内容栏目隔开：一道竖线 + 一点留白，
   让人一眼看出"前面是逛的，这里是账号"。 */
.nav-acc {
  order: 4;
  display: flex; align-items: center; gap: 9px;
  margin-left: 4px; padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
/* 这两个只在手机上出现 */
.ntool, .nmore { display: none; }
.npanel { display: none; }

/* ===== 站内搜索框 ===== */
.ns {
  display: flex; align-items: center; gap: 7px;
  height: 36px; width: 172px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
  transition: background .18s ease, border-color .18s ease, width .22s ease;
}
.ns:hover { background: rgba(255, 255, 255, .13); }
.ns:focus-within {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(242, 84, 27, .6);
  width: 214px;
}
.ns svg {
  flex: none; width: 15px; height: 15px;
  fill: none; stroke: rgba(255, 255, 255, .58);
  stroke-width: 2; stroke-linecap: round;
  transition: stroke .18s ease;
}
.ns:focus-within svg { stroke: var(--brand-2); }
.ns input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: 0; padding: 0;
  color: #fff; font-size: 13.5px; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.ns input::placeholder { color: rgba(255, 255, 255, .42); }
/* Safari/Chrome 自带的清除叉号在深色底上是一块灰，自己管 */
.ns input::-webkit-search-cancel-button,
.ns input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* ==========================================================================
   回到顶部
   滚动超过一屏才出现，右下角圆形，点了平滑回去。
   手机上要抬到底部菜单上方，否则会被压在菜单底下。
   ========================================================================== */
.totop {
  position: fixed; right: 22px; bottom: 26px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 22px rgba(20, 22, 26, .16);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease,
              box-shadow .18s ease;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { box-shadow: 0 10px 28px rgba(20, 22, 26, .24); }
.totop:active { transform: scale(.94); }
.totop svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--ink); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .18s ease;
}
.totop:hover svg { stroke: var(--brand); }

/* 中等屏：导航挤了，搜索框先收窄 */
@media (max-width: 1000px) {
  .ns { width: 150px; }
  .ns:focus-within { width: 180px; }
}

/* 平板这一档（620~900）最容易挤：五个栏目 + 搜索框 + 两个按钮在一行里放不下，
   又还没到切两行的时候。整体收一档间距和字号，让它喘得开。 */
@media (min-width: 621px) and (max-width: 900px) {
  .nav { gap: 10px; padding: 12px 16px; }
  .navlinks > a { padding: 7px 8px; font-size: 13.5px; }
  .navlinks > a::after { left: 8px; right: 8px; }
  .navlinks > a[data-sec="member"] { margin-left: 6px; }
  .ns { width: 126px; }
  .ns:focus-within { width: 150px; }
  .nav-acc { gap: 7px; padding-left: 11px; }
  .nav-acc .btn-ghost, .nav-acc .btn-solid { padding: 8px 13px; font-size: 13.5px; }
}

@media (max-width: 620px) {
  /* ---------- 顶部两行 ---------- */
  .nav {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand search tool"
      "links links links";
    align-items: center;
    column-gap: 8px; row-gap: 9px;
    padding: 10px 14px 9px;
  }
  .brand { grid-area: brand; }

  /* 搜索框在手机上不缩成图标了：撑满第一行剩下的宽度，放大镜还在框里 */
  .ns {
    grid-area: search;
    width: auto; height: 38px; padding: 0 12px;
    margin-left: 0;
    border-radius: 12px;
  }
  .ns:focus-within { width: auto; }
  .ns input { display: block; font-size: 14px; }

  .ntool {
    grid-area: tool;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    -webkit-tap-highlight-color: transparent;
  }
  .ntool svg {
    width: 19px; height: 19px;
    fill: none; stroke: rgba(255, 255, 255, .78);
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  }
  .ntool:active { background: rgba(255, 255, 255, .18); }

  /* 第二行：一排栏目，跨满整行。右边预留 42px 给"更多"按钮，
     这样以后栏目多到要横向拖，也不会有链接被按钮压住。
     注意不要用负 margin：那会让这个盒子比屏幕宽，整页跟着横向溢出。 */
  .navlinks {
    grid-area: links;
    min-width: 0;
    display: flex; align-items: center; justify-content: flex-start;
    gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 42px 0 0;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  /* "使用教程/常见问题"在手机上换成短词，六项才排得下 */
  .navlinks .lg { display: none; }
  .navlinks .sm { display: inline; }
  /* 手机上不用下划线（贴着屏幕边缘太细看不清），改成胶囊底：
     当前栏目直接染成品牌色的浅底 + 亮字。 */
  .navlinks > a {
    display: block; white-space: nowrap;
    font-size: 13.5px; padding: 6px 10px;
    border-radius: 9px;
    transition: color .15s ease, background .15s ease;
  }
  .navlinks > a::after { display: none; }
  /* 触屏没有 hover，用 :active 给一下点击反馈；
     用 :hover 的话点完手指抬起状态会粘住，看着像选中了两项。 */
  .navlinks > a:active { background: rgba(255, 255, 255, .1); }
  .navlinks > a.on {
    color: var(--brand-2); font-weight: 600;
    background: rgba(242, 84, 27, .16);
  }
  /* 会员前的竖线在小屏上多余，还占宽度 */
  .navlinks > a[data-sec="member"] { margin-left: 0; }
  .navlinks > a[data-sec="member"]::before { display: none; }

  .nav-acc { display: none; }

  /* 更多按钮绝对定位在第二行最右，不占栏目那一排的宽度 */
  .nmore {
    position: absolute;
    right: 14px; bottom: 9px;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 30px; border-radius: 9px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, border-color .15s ease;
  }
  .nmore svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, .78); stroke: none; }
  .nmore[aria-expanded="true"] {
    background: rgba(242, 84, 27, .92);
    border-color: transparent;
  }

  /* ---------- 更多面板 ---------- */
  .npanel {
    display: block;
    position: absolute;
    top: calc(100% + 6px); right: 12px;
    width: min(268px, calc(100vw - 24px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .3);
    z-index: 70;
  }
  .npanel[hidden] { display: none; }
  .npanel-in { padding: 6px; }
  .npanel a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 11px 13px; border-radius: 11px;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .npanel a:active { background: #f5f3ef; }
  .npanel a span { font-size: 14.5px; font-weight: 600; }
  .npanel a em { font-style: normal; font-size: 12px; color: var(--ink-3); }
  .npanel-hi span { color: var(--brand); }

  /* 回顶按钮要落在底部菜单上方 */
  .totop {
    right: 14px;
    bottom: 102px;
    bottom: calc(56px + max(34px, calc(env(safe-area-inset-bottom, 0px) + 16px)) + 12px);
    width: 42px; height: 42px;
  }
  .totop svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   搜索结果页 /search
   导航栏那个搜索框是快捷入口，真正的输入框在这一页，能写长一点。
   ========================================================================== */

.sbig {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 0; padding: 6px 6px 6px 20px;
  background: var(--card); border-radius: 18px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sbig:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(242, 84, 27, .12);
}
.sbig > svg {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round;
}
.sbig input {
  flex: 1 1 auto; min-width: 0;
  padding: 14px 0; border: 0; outline: 0; background: none;
  font-size: 16px; font-family: inherit; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.sbig input::placeholder { color: #b7bbc2; }
.sbig input::-webkit-search-cancel-button,
.sbig input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sbig button {
  flex: none; padding: 13px 24px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(242, 84, 27, .3);
  transition: transform .14s ease;
}
.sbig button:active { transform: scale(.97); }

.scount { margin: 24px 0 4px; font-size: 14px; color: var(--ink-3); }
.scount b { color: var(--ink); font-weight: 600; }

.sgroup { margin-top: 26px; }
.sgroup h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 16px; font-weight: 600;
}
.sgroup h2 em {
  font-style: normal; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); background: #F2EFEA;
  padding: 2px 9px; border-radius: 999px;
}

.slist { display: flex; flex-direction: column; gap: 10px; }
.sitem {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sitem:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.sitem:hover .stext b { color: var(--brand); }

.stext {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1 1 auto; min-width: 0;
}
.stext .ktag { align-self: flex-start; }
.stext b {
  font-size: 15.5px; font-weight: 600; line-height: 1.45;
  transition: color .15s ease;
}
.sdesc {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.sthumb {
  flex: none; width: 56px; height: 56px;
  border-radius: 14px; object-fit: cover;
  background: #1b1e23;
}
.sthumb-blank {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
  background: linear-gradient(140deg, #3a3d44, #1a1c21);
}
.sarrow { flex: none; color: var(--ink-3); font-size: 15px; transition: color .15s ease; }
.sitem:hover .sarrow { color: var(--brand); }
.swhen { flex: none; font-size: 12.5px; color: var(--ink-3); }

.sempty {
  margin-top: 26px; padding: 44px 24px;
  text-align: center;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.sempty p { margin: 0 0 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.sjump { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sjump a {
  padding: 9px 18px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.sjump a:hover { background: var(--brand); color: #fff; }

.shint { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

@media (max-width: 620px) {
  .sbig { padding: 5px 5px 5px 16px; border-radius: 16px; gap: 8px; }
  .sbig > svg { width: 18px; height: 18px; }
  .sbig input { font-size: 15.5px; }
  .sbig button { padding: 12px 16px; font-size: 14px; border-radius: 12px; }
  .sthumb { width: 48px; height: 48px; border-radius: 12px; }
  .swhen { display: none; }
  .sempty { padding: 34px 18px; }
}
