/* ==========================================================================
   ROBOFORGE 机甲工场 · base.css
   机器人聚合开源平台 —— 基础层：变量 / 重置 / 布局 / 背景 / 导航 / 翻页
   风格配比：工业 50% · 科技 20% · 玩具 20% · 社交 10%（风格差异体现在前景，背景全站统一）
   配色：蓝 #2E7CF6 / 深蓝 #1B3A6B / 红 #E23B3B
   适配：移动端 H5 优先（底部 Tab），桌面端 PC 顶部折叠浮窗导航
   ========================================================================== */
:root{
  /* 主色 */
  --blue:#2E7CF6; --blue-d:#1B3A6B; --blue-dd:#0F2B4C; --blue-l:#7CC4FF; --cyan:#38B6FF;
  --red:#E23B3B; --red-l:#FF8A80; --red-d:#A81F1F;
  /* 中性 */
  --ink:#0A1626; --ink-2:#12233B; --steel:#8896A8; --steel-l:#C7D4E4;
  --white:#FFFFFF; --bg:#0B1420; --bg-2:#0E1B2E; --line:rgba(46,124,246,.22);
  /* 尺寸 */
  --r-s:8px; --r-m:14px; --r-l:20px; --r-x:28px;
  --sp:12px; --sp-2:16px; --sp-3:24px;
  --nav-h:54px; --tab-h:58px; --npch:56px;
  --font:'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:var(--font); font-size:14px; line-height:1.5; color:var(--steel-l);
  /* ===== 全站统一背景：深蓝黑底 + 统一工业/科技底纹（所有页面共享） ===== */
  background:#0B1420 url('../img/gen/bg/bg_unified.svg') center/cover fixed;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{display:block;max-width:100%;border:0}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;outline:none;border:0;background:none}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-thumb{background:rgba(46,124,246,.35);border-radius:3px}

/* ---------- 布局容器：手机框（移动） / 宽栅格（桌面） ---------- */
.stage{min-height:100%;display:flex;justify-content:center;background:transparent}
.app{
  width:100%; max-width:480px; min-height:100vh; position:relative; overflow:hidden;
  /* 与 body 完全相同的底图与定位，保证内容区与页面背景视觉连续 */
  background:#0B1420 url('../img/gen/bg/bg_unified.svg') center/cover fixed;
  box-shadow:0 0 60px rgba(0,0,0,.6);
  padding-bottom:calc(var(--tab-h) + 12px);
}
.app::before{
  /* 统一叠加层：轻微电路纹理，增强工业感但不改变底色 */
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:url('../img/gen/bg/bg_circuit.svg') center/cover; opacity:.16; mix-blend-mode:screen;
}
.screen{position:relative;z-index:1}
.wide .app{max-width:1200px}

/* ---------- 顶部导航 ---------- */
.topbar{
  position:sticky;top:0;z-index:60;height:var(--nav-h);display:flex;align-items:center;gap:8px;
  padding:0 12px;background:linear-gradient(180deg,rgba(10,22,40,.96),rgba(10,22,40,.82));
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line);
}
.topbar .logo{height:30px;width:auto}
.topbar .title{font-size:16px;font-weight:700;color:#fff;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-btn{
  width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:rgba(46,124,246,.14);border:1px solid var(--line);flex:none;cursor:pointer;
}
.tb-btn img{width:18px;height:18px}
.tb-lang{font-size:12px;font-weight:700;color:var(--blue-l)}
.tb-back{width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer}
.tb-back::before{content:'';width:10px;height:10px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}

/* ---------- 底部 Tab（主次顺序：新闻 / 模块 / 玩具 / AI / 我的 ---------- */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;height:var(--tab-h);display:flex;
  background:linear-gradient(180deg,rgba(11,23,39,.97),rgba(7,14,23,1));
  border-top:1px solid var(--line);backdrop-filter:blur(10px);
}
.wide .tabbar{max-width:1200px;left:50%;transform:translateX(-50%);right:auto;width:100%}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--steel);font-size:10px}
.tabbar a img{width:22px;height:22px;opacity:.65}
.tabbar a.on{color:var(--blue-l)}
.tabbar a.on img{opacity:1;filter:drop-shadow(0 0 6px rgba(46,124,246,.9))}
.tabbar a .dot{position:absolute;margin:-16px 0 0 14px;width:7px;height:7px;border-radius:50%;background:var(--red)}

/* ---------- Hero 主视觉（背景图为设计图） ---------- */
.hero{position:relative;min-height:180px;overflow:hidden;border-bottom:1px solid var(--line)}
.hero .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.85}
.hero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,20,32,.30) 0%,rgba(11,20,32,.72) 55%,#0B1420 100%)}
.hero .hero-in{position:relative;z-index:2;padding:22px 16px 18px}
.hero h1{font-size:22px;font-weight:800;color:#fff;letter-spacing:.5px;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.hero h1 em{font-style:normal;color:var(--red-l)}
.hero p{margin-top:8px;font-size:12px;color:var(--steel-l);max-width:88%}
.hero .hero-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.hero .grid-corner{position:absolute;z-index:2;left:16px;top:12px;width:26px;height:26px;border-left:2px solid var(--red);border-top:2px solid var(--red);opacity:.8}

/* ---------- 区块 ---------- */
.sec{padding:14px 12px 4px;position:relative}
.sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sec-hd h2{font-size:15px;font-weight:700;color:#fff;display:flex;align-items:center;gap:7px}
.sec-hd h2::before{content:'';width:4px;height:15px;background:var(--red);border-radius:2px}
.sec-hd .more{font-size:11px;color:var(--blue-l);display:flex;align-items:center;gap:3px}
.sec-hd .more::after{content:'';width:6px;height:6px;border-top:1px solid var(--blue-l);border-right:1px solid var(--blue-l);transform:rotate(45deg)}
.sec-sub{font-size:11px;color:var(--steel);margin:-4px 0 10px}

/* ---------- 卡片 ---------- */
.card{
  background:linear-gradient(160deg,rgba(18,35,59,.92),rgba(10,20,34,.92));
  border:1px solid var(--line);border-radius:var(--r-m);overflow:hidden;position:relative;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
.card::after{content:'';position:absolute;right:0;top:0;width:22px;height:22px;border-top:2px solid var(--red);border-right:2px solid var(--red);opacity:.35}
.card-body{padding:10px}
.grid{display:grid;gap:10px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.thumb{position:relative;width:100%;aspect-ratio:4/3;background:#0A1626;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .badge{position:absolute;left:6px;top:6px}
.thumb .price{position:absolute;right:0;bottom:0;padding:3px 8px;background:rgba(226,59,59,.92);color:#fff;font-size:11px;font-weight:700;border-radius:8px 0 0 0}
.tt{font-size:13px;font-weight:600;color:#fff;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ts{font-size:11px;color:var(--steel);margin-top:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tp{font-size:14px;font-weight:800;color:var(--red-l);margin-top:5px}

/* ---------- 列表项 ---------- */
.list{display:flex;flex-direction:column;gap:10px}
.item{display:flex;gap:10px;padding:10px;background:rgba(14,27,46,.78);border:1px solid var(--line);border-radius:var(--r-m);align-items:flex-start}
.item .pic{width:88px;height:66px;flex:none;border-radius:8px;overflow:hidden;background:#0A1626}
.item .pic img{width:100%;height:100%;object-fit:cover}
.item .info{flex:1;min-width:0}
.item .info .tt{margin-bottom:3px}
.item .info .meta{font-size:11px;color:var(--steel);display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.item .side{font-size:11px;color:var(--steel);text-align:right;flex:none}

/* ---------- 标签 / 徽章 ---------- */
.tag{display:inline-block;padding:2px 7px;border-radius:5px;font-size:10px;background:rgba(46,124,246,.16);color:var(--blue-l);border:1px solid var(--line)}
.tag.red{background:rgba(226,59,59,.18);color:var(--red-l);border-color:rgba(226,59,59,.35)}
.tag.green{background:rgba(45,200,140,.16);color:#5FE3B0;border-color:rgba(45,200,140,.3)}
.tag.gray{background:rgba(136,150,168,.14);color:var(--steel);border-color:rgba(136,150,168,.25)}
.tag.gold{background:rgba(255,190,60,.16);color:#FFD27A;border-color:rgba(255,190,60,.35)}
.badge{padding:2px 6px;border-radius:4px;font-size:10px;font-weight:700;color:#fff;background:var(--red)}
.badge.blue{background:var(--blue)}
.badge.gray{background:var(--steel)}
.dot-live{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:4px;animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.25}}

/* ---------- 按钮 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;
  border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent;
  background:rgba(46,124,246,.14);color:var(--blue-l);transition:.15s;
}
.btn img{width:16px;height:16px}
.btn-primary{background:linear-gradient(135deg,var(--blue),var(--blue-d));color:#fff;box-shadow:0 6px 16px rgba(46,124,246,.32)}
.btn-danger{background:linear-gradient(135deg,var(--red),var(--red-d));color:#fff;box-shadow:0 6px 16px rgba(226,59,59,.3)}
.btn-ghost{border-color:var(--line);color:var(--steel-l)}
.btn-block{display:flex;width:100%}
.btn-lg{height:44px;font-size:15px}
.btn-s{height:28px;padding:0 10px;font-size:12px;border-radius:8px}
.btn-group{display:flex;gap:8px;flex-wrap:wrap}

/* ---------- Tab / 左右翻页 ---------- */
.tabbar-scroll{display:flex;gap:8px;overflow-x:auto;padding:2px 12px 8px;scrollbar-width:none}
.tabbar-scroll::-webkit-scrollbar{display:none}
.chip{flex:none;padding:6px 14px;border-radius:20px;font-size:12px;background:rgba(14,27,46,.8);border:1px solid var(--line);color:var(--steel-l);cursor:pointer;white-space:nowrap}
.chip.on{background:linear-gradient(135deg,var(--blue),var(--blue-d));color:#fff;border-color:transparent;font-weight:700}
.pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 0}
.pager .pg-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;background:rgba(14,27,46,.8);cursor:pointer}
.pager .pg-btn.off{opacity:.3;pointer-events:none}
.pager .pg-btn::before{content:'';width:8px;height:8px;border-left:2px solid var(--blue-l);border-bottom:2px solid var(--blue-l);transform:rotate(45deg)}
.pager .pg-btn.next::before{transform:rotate(-135deg)}
.pager .pg-num{font-size:12px;color:var(--steel)}
.pager .dots{display:flex;gap:5px}
.pager .dots i{width:6px;height:6px;border-radius:50%;background:rgba(136,150,168,.4)}
.pager .dots i.on{background:var(--blue);width:16px;border-radius:3px}
/* 横向翻页容器（单页超 3 屏时启用） */
.swiper{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding:2px 12px 10px;scrollbar-width:none}
.swiper::-webkit-scrollbar{display:none}
.swiper>*{flex:0 0 calc(100% - 24px);scroll-snap-align:start}
.wide .swiper>*{flex:0 0 calc(33.333% - 14px)}
.swiper-hint{display:flex;justify-content:center;gap:4px;margin-top:-2px}
.swiper-hint i{width:14px;height:3px;border-radius:2px;background:rgba(136,150,168,.35)}
.swiper-hint i.on{background:var(--blue)}

/* ---------- 搜索 / 筛选 ---------- */
.searchbar{display:flex;align-items:center;gap:8px;padding:10px 12px;position:sticky;top:var(--nav-h);z-index:50;background:rgba(11,20,32,.94);backdrop-filter:blur(6px)}
.searchbar .box{flex:1;display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:10px;background:#0B1727;border:1px solid var(--line)}
.searchbar .box img{width:16px;height:16px;opacity:.7}
.searchbar .box input{flex:1;font-size:12px;color:#fff}
.searchbar .box input::placeholder{color:var(--steel)}
.filterbar{display:flex;gap:8px;overflow-x:auto;padding:0 12px 10px;scrollbar-width:none}
.filterbar::-webkit-scrollbar{display:none}
.filterbar .f{flex:none;padding:6px 12px;border-radius:8px;font-size:12px;background:rgba(14,27,46,.7);border:1px solid var(--line);color:var(--steel-l);display:flex;align-items:center;gap:4px}
.filterbar .f.on{border-color:var(--blue);color:var(--blue-l);background:rgba(46,124,246,.14)}

/* ---------- 表单 ---------- */
.form{padding:12px}
.fi{margin-bottom:14px}
.fi label{display:block;font-size:12px;color:var(--steel-l);margin-bottom:6px;font-weight:600}
.fi label i{color:var(--red);font-style:normal}
.fi .input,.fi textarea,.fi select{
  width:100%;padding:10px 12px;border-radius:10px;background:#0B1727;border:1px solid var(--line);
  color:#fff;font-size:13px;line-height:1.5;
}
.fi textarea{min-height:88px;resize:vertical}
.fi .input::placeholder,.fi textarea::placeholder{color:rgba(136,150,168,.7)}
.fi .hint{font-size:11px;color:var(--steel);margin-top:5px}
.fi .row{display:flex;gap:8px}
.fi .row>*{flex:1}
.upload{display:flex;gap:8px;flex-wrap:wrap}
.upload .slot{width:74px;height:74px;border-radius:10px;border:1px dashed var(--line);background:#0B1727;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;color:var(--steel);cursor:pointer;overflow:hidden}
.upload .slot img{width:100%;height:100%;object-fit:cover}
.switch{width:44px;height:24px;border-radius:12px;background:rgba(136,150,168,.3);position:relative;cursor:pointer;transition:.2s;flex:none}
.switch.on{background:var(--blue)}
.switch::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch.on::after{left:22px}

/* ---------- 步骤条 / 进度 / 时间轴 ---------- */
.steps{display:flex;align-items:center;padding:14px 12px}
.steps .st{flex:1;text-align:center;position:relative;font-size:11px;color:var(--steel)}
.steps .st .n{width:26px;height:26px;margin:0 auto 5px;border-radius:50%;background:#0B1727;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--steel)}
.steps .st.on .n{background:linear-gradient(135deg,var(--blue),var(--blue-d));color:#fff;border-color:transparent;box-shadow:0 0 0 4px rgba(46,124,246,.18)}
.steps .st.done .n{background:var(--red);color:#fff;border-color:transparent}
.steps .st.on{color:var(--blue-l);font-weight:600}
.steps .st::after{content:'';position:absolute;top:13px;left:50%;width:100%;height:2px;background:var(--line);z-index:-1}
.steps .st:last-child::after{display:none}
.progress{height:8px;border-radius:4px;background:#0B1727;overflow:hidden;border:1px solid var(--line)}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--blue-l));border-radius:4px}
.progress i.warn{background:linear-gradient(90deg,var(--red),var(--red-l))}
.timeline{position:relative;padding-left:22px}
.timeline::before{content:'';position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.timeline .tl{position:relative;padding-bottom:16px}
.timeline .tl::before{content:'';position:absolute;left:-20px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--blue-d);border:2px solid var(--blue)}
.timeline .tl.done::before{background:var(--red);border-color:var(--red-l)}
.timeline .tl.now::before{box-shadow:0 0 0 4px rgba(46,124,246,.2)}
.timeline .tl h4{font-size:13px;color:#fff;font-weight:600}
.timeline .tl p{font-size:11px;color:var(--steel);margin-top:3px}

/* ---------- 统计 / 排行榜 ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.stat{background:rgba(14,27,46,.8);border:1px solid var(--line);border-radius:12px;padding:10px 6px;text-align:center}
.stat b{display:block;font-size:17px;color:#fff;font-weight:800}
.stat b.red{color:var(--red-l)}
.stat span{font-size:10px;color:var(--steel)}
.rank-list .rk{display:flex;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid rgba(46,124,246,.12)}
.rank-list .rk .no{width:22px;text-align:center;font-size:13px;font-weight:800;color:var(--steel);flex:none}
.rank-list .rk:nth-child(1) .no{color:#FFD27A}.rank-list .rk:nth-child(2) .no{color:#D8DEE7}.rank-list .rk:nth-child(3) .no{color:#E8A87C}
.rank-list .rk img.av{width:34px;height:34px;border-radius:50%;flex:none;border:1px solid var(--line)}
.rank-list .rk .nm{flex:1;font-size:13px;color:#fff;font-weight:600}
.rank-list .rk .nm small{display:block;font-size:10px;color:var(--steel);font-weight:400}
.rank-list .rk .vv{font-size:11px;color:var(--blue-l);flex:none}

/* ---------- 用户 / 资料卡 ---------- */
.ucard{display:flex;align-items:center;gap:10px;padding:12px;background:linear-gradient(140deg,rgba(27,58,107,.6),rgba(10,20,34,.8));border:1px solid var(--line);border-radius:var(--r-m)}
.ucard img.av{width:52px;height:52px;border-radius:50%;border:2px solid var(--blue)}
.ucard .nm{font-size:15px;font-weight:700;color:#fff}
.ucard .mt{font-size:11px;color:var(--steel);margin-top:3px}
.ucard .ops{margin-left:auto;display:flex;gap:6px}

/* ---------- 聊天 ---------- */
.chat{padding:12px;display:flex;flex-direction:column;gap:12px}
.msg{display:flex;gap:8px;align-items:flex-start}
.msg.me{flex-direction:row-reverse}
.msg img.av{width:34px;height:34px;border-radius:50%;flex:none;border:1px solid var(--line)}
.msg .bubble{max-width:74%;padding:9px 12px;border-radius:14px;font-size:13px;line-height:1.5;background:rgba(14,27,46,.9);border:1px solid var(--line);color:#fff}
.msg.me .bubble{background:linear-gradient(135deg,var(--blue),var(--blue-d));border-color:transparent}
.msg .bubble .time{display:block;font-size:10px;color:rgba(255,255,255,.55);margin-top:5px}
.msg .bubble.file{display:flex;align-items:center;gap:8px;min-width:180px}
.msg .bubble.order{background:rgba(226,59,59,.14);border-color:rgba(226,59,59,.4)}
.chat-input{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 12px;background:rgba(11,20,32,.96);border-top:1px solid var(--line);align-items:center}
.chat-input input{flex:1;height:38px;padding:0 12px;border-radius:19px;background:#0B1727;border:1px solid var(--line);color:#fff;font-size:13px}
.chat-input .ic{width:38px;height:38px;border-radius:50%;background:rgba(46,124,246,.16);display:flex;align-items:center;justify-content:center;flex:none}
.chat-input .ic img{width:19px;height:19px}

/* ---------- 资料下载 / 文档 ---------- */
.doc{display:flex;align-items:center;gap:10px;padding:10px;background:rgba(14,27,46,.7);border:1px solid var(--line);border-radius:12px}
.doc img{width:34px;height:34px;flex:none}
.doc .dn{flex:1;font-size:13px;color:#fff;font-weight:600}
.doc .dn small{display:block;font-size:10px;color:var(--steel);font-weight:400;margin-top:2px}
.doc .dl{font-size:12px;color:var(--blue-l);display:flex;align-items:center;gap:4px;flex:none}
.doc .dl::before{content:'';width:12px;height:12px;background:url('../img/gen/icon/download_b.svg') center/contain no-repeat}

/* ---------- 空状态 / 提示 / 弹层 ---------- */
.empty{padding:40px 20px;text-align:center;color:var(--steel)}
.empty img{width:130px;margin:0 auto 12px;opacity:.8}
.empty p{font-size:12px}
.notice{display:flex;align-items:center;gap:8px;padding:8px 12px;background:rgba(226,59,59,.12);border-bottom:1px solid rgba(226,59,59,.25);font-size:12px;color:var(--red-l)}
.notice img{width:16px;height:16px}
.modal-mask{position:fixed;inset:0;background:rgba(3,8,15,.7);z-index:200;display:none;align-items:flex-end;justify-content:center}
.modal-mask.on{display:flex}
.sheet{width:100%;max-width:480px;background:var(--bg-2);border-radius:18px 18px 0 0;padding:16px;border-top:1px solid var(--line);animation:up .22s ease}
@keyframes up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sheet h3{font-size:15px;color:#fff;margin-bottom:12px}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:rgba(10,22,40,.95);border:1px solid var(--line);color:#fff;padding:10px 16px;border-radius:10px;font-size:12px;z-index:300;display:none}
.toast.on{display:block}

/* ---------- 页脚 ---------- */
.foot{padding:18px 12px 8px;text-align:center;color:var(--steel);font-size:11px;border-top:1px solid var(--line);margin-top:14px}
.foot .links{display:flex;justify-content:center;gap:14px;margin-bottom:8px;flex-wrap:wrap}
.foot .links a{color:var(--blue-l)}

/* ---------- 桌面端 16:9 兼容栅格 ---------- */
@media(min-width:900px){
  .app{max-width:1200px;padding-bottom:24px;border-left:1px solid var(--line);border-right:1px solid var(--line)}
  .app::before{opacity:.12}
  .grid-2{grid-template-columns:repeat(4,1fr)}
  .grid-3{grid-template-columns:repeat(6,1fr)}
  .grid-4{grid-template-columns:repeat(8,1fr)}
  .hero{min-height:300px}
  .hero .hero-in{padding:44px 32px 30px;max-width:60%}
  .hero h1{font-size:34px}
  .hero p{font-size:14px;max-width:520px}
  .sec{padding:20px 20px 8px}
  .stats{grid-template-columns:repeat(8,1fr)}
  .form{max-width:640px;margin:0 auto}
  .swiper>*{flex:0 0 calc(25% - 12px)}
  .two-col{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}
  .two-col .side{position:sticky;top:calc(var(--nav-h) + 8px)}
  .msg .bubble{max-width:56%}
  .chat,.sec{max-width:1200px}
}
@media(min-width:900px) and (orientation:landscape){
  .hero{min-height:340px}
}
/* 窄屏微调 */
@media(max-width:360px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(3,1fr)}
  .hero h1{font-size:19px}
}

/* ---------- 页脚联系卡片（备案 / 联系人 / 电话 / 微信二维码） ---------- */
.foot .contact-card{
  display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap;
  margin:12px auto 10px; padding:12px 14px; max-width:520px;
  background:rgba(20,38,66,.5); border:1px solid var(--line); border-radius:var(--r-m);
}
.foot .cc-qr{display:flex; flex-direction:column; align-items:center; gap:5px; flex:none}
.foot .cc-qr img{
  width:88px; height:88px; border-radius:8px; background:#fff;
  border:1px solid var(--line); padding:2px;
}
.foot .cc-qr span{font-size:10px; color:var(--steel)}
.foot .cc-info{flex:1; min-width:190px; text-align:left}
.foot .cc-line{display:flex; gap:8px; font-size:12px; line-height:1.9; color:var(--steel-l)}
.foot .cc-line b{color:var(--steel); font-weight:600; min-width:48px; flex:none}
.foot .cc-line a{color:var(--blue-l)}
.foot .cc-line a:hover{color:#fff}
.foot .icp{margin-top:6px; font-size:11px; color:var(--steel)}
.foot .icp a{color:var(--steel)}
.foot .icp a:hover{color:var(--blue-l)}
@media(max-width:400px){
  .foot .contact-card{flex-direction:column; text-align:center}
  .foot .cc-info{text-align:left}
}
