/* ===== 高等数学 · 四算子思维框架 =====
 * 视觉方向：浅色极简 / 单色系分组
 * 节点去边框，靠字号与颜色分层；连线淡化
 */
:root{
  --bg:#fafbfc;
  --bg-2:#ffffff;
  --panel:#ffffff;
  --panel-2:#ffffff;
  --line:#e6eaf0;
  --wire:#b9c7d8;
  --text:#2d3748;
  --dim:#64748b;
  --dim2:#94a3b8;

  --root:#db2777;
  --limit:#0891b2;
  --diff:#059669;
  --integral:#7c3aed;
  --struct:#d97706;
  --fix:#dc2626;
  --res:#475569;

  --sans:-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --serif:"Iowan Old Style","Palatino Linotype","Cambria Math","Georgia","Songti SC",serif;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* 顶部极淡的冷色光，保持白底干净 */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(760px 380px at 14% -10%, rgba(8,145,178,.045), transparent 65%),
    radial-gradient(680px 340px at 88% -8%, rgba(124,58,237,.04), transparent 62%);
  pointer-events:none;
  z-index:0;
}

::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:#dde3ec;border-radius:6px;border:3px solid var(--bg);}
::-webkit-scrollbar-thumb:hover{background:#c6d0dc;}

.app{
  position:relative;
  z-index:1;
  max-width:1460px;
  margin:0 auto;
  padding:34px 34px 64px;
}

/* ================= Hero ================= */
.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
  padding:14px 0 32px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

.hero-copy h1{
  margin:0 0 13px;
  font-size:36px;
  font-weight:750;
  line-height:1.12;
  letter-spacing:-.022em;
  color:#1a202c;
}
.hero-copy p{
  margin:0 auto;
  max-width:560px;
  color:var(--dim);
  font-size:13.5px;
  line-height:1.72;
}

.ops{
  display:grid;
  grid-template-columns:repeat(4, auto);
  gap:44px;
  align-items:start;
  justify-content:center;
}
.op{
  --c:var(--dim);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  padding:4px 6px;
  background:none;
  border:0;
  cursor:pointer;
  text-align:center;
  font-family:inherit;
  transition:background .2s;
  border-radius:8px;
}
.op .sym{
  font-family:var(--serif);
  font-style:italic;
  font-size:40px;
  line-height:.95;
  color:var(--c);
  font-weight:400;
  transition:text-shadow .25s;
}
.op .nm{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  letter-spacing:.02em;
}
.op .ds{
  font-size:10.5px;
  color:var(--dim2);
  letter-spacing:.01em;
  white-space:nowrap;
}
.op:hover .sym{text-shadow:0 2px 18px color-mix(in srgb,var(--c) 28%,transparent);}
.op.on{background:color-mix(in srgb,var(--c) 7%,transparent);}
.op.on .nm{color:var(--c);}
.op.t-limit{--c:var(--limit);}
.op.t-diff{--c:var(--diff);}
.op.t-integral{--c:var(--integral);}
.op.t-struct{--c:var(--struct);}

/* ================= Tabs ================= */
.tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid var(--line);
}
.tab{
  padding:13px 2px 12px;
  margin-right:26px;
  border:0;
  background:none;
  color:var(--dim2);
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  position:relative;
  transition:color .18s;
}
.tab:hover{color:var(--dim);}
.tab.active{color:var(--text);}
.tab.active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:var(--text);
  border-radius:1px;
}

/* ================= Toolbar ================= */
.toolbar{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:16px 0 18px;
}
.toolbar input{
  flex:1;
  min-width:240px;
  max-width:420px;
  padding:9px 13px;
  border-radius:7px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-family:inherit;
  outline:none;
  transition:border-color .18s, box-shadow .18s;
}
.toolbar input:focus{
  border-color:color-mix(in srgb,var(--limit) 55%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--limit) 10%,transparent);
}
.toolbar input::placeholder{color:var(--dim2);}
.tbtn{
  padding:8px 13px;
  border-radius:7px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--dim);
  font-size:12.5px;
  font-family:inherit;
  font-weight:600;
  cursor:pointer;
  transition:color .16s,border-color .16s,background .16s;
}
.tbtn:hover{color:var(--text);border-color:#cfd8e3;background:#f8fafc;}

/* ================= Views ================= */
.view{display:none;}
.view.active{display:block;animation:viewIn .28s ease;}
@keyframes viewIn{from{opacity:0;}to{opacity:1;}}

/* ================= Tree ================= */
#view-map{overflow-x:auto;padding-bottom:26px;}
.tree{position:relative;padding:20px 0 16px 2px;min-width:max-content;}

.branch{display:flex;align-items:center;}
.tree > .branch{align-items:flex-start;}
.tree > .branch > .node{margin-top:2px;}

/* 曲线连线层 */
.tree-wire{
  position:absolute;
  left:0;top:0;
  pointer-events:none;
  overflow:visible;
  z-index:0;
}
.tree-wire path{
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
}
.w-root{stroke:rgba(45,55,72,.28);}
.w-limit{stroke:rgba(8,145,178,.52);}
.w-diff{stroke:rgba(5,150,105,.50);}
.w-integral{stroke:rgba(124,58,237,.44);}
.w-struct{stroke:rgba(217,119,6,.50);}
.w-res{stroke:rgba(71,85,105,.42);}
.w-fix{stroke:rgba(220,38,38,.48);}

/* 节点：无边框、纯文字，靠字号与颜色分层 */
.node{
  --c:var(--dim);
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 11px;
  border-radius:6px;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:13px;
  line-height:1.5;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
  transition:background .16s,color .16s;
}
.node:hover{background:rgba(45,55,72,.045);}
.node .ar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--ac, #c3cedd);
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  margin-left:3px;
  flex:none;
  transition:filter .16s,transform .16s;
}
.node .ar::before{content:"−";}
.branch.collapsed > .node .ar::before{content:"+";}
.node:hover .ar{filter:brightness(1.08);}
/* 整支子树共用分支色（后定义的覆盖前者，root 放最前） */
.b-root .ar{--ac:var(--root);}
.b-limit .ar{--ac:var(--limit);}
.b-diff .ar{--ac:var(--diff);}
.b-integral .ar{--ac:var(--integral);}
.b-struct .ar{--ac:var(--struct);}
.b-res .ar{--ac:var(--res);}
.b-fix .ar{--ac:var(--fix);}
/* 模块/根用自己的色 */
.node.lv1 .ar{background:var(--c);}
.node.lv0 .ar{background:var(--root);}
.branch.collapsed > .children{display:none;}

.node.lv0{
  --c:var(--root);
  font-size:18px;
  font-weight:750;
  letter-spacing:-.01em;
  padding:8px 12px;
  color:#1a202c;
}
.node.lv0:hover{background:transparent;}
.node.lv1{
  font-size:14.5px;
  font-weight:700;
  padding:7px 12px 7px 11px;
  color:var(--c);
}
.node.lv2{
  font-size:13px;
  font-weight:600;
  color:#334155;
}
.node.lv3{
  font-size:12.5px;
  font-weight:400;
  color:#64748b;
}
.node.lv4{
  font-size:12px;
  font-weight:400;
  color:#94a3b8;
  padding:4px 10px;
}

.node.t-limit{--c:var(--limit);}
.node.t-diff{--c:var(--diff);}
.node.t-integral{--c:var(--integral);}
.node.t-struct{--c:var(--struct);}
.node.t-res{--c:var(--res);}
.node.t-root{--c:var(--root);}
.node.t-fix{
  --c:var(--fix);
  color:var(--fix);
  background:rgba(220,38,38,.045);
}
.node.t-fix:hover{background:rgba(220,38,38,.08);}

/* 正交连线 */
.branch > .node{position:relative;}
/* 缩进由 margin + padding 提供，线条由 SVG 层绘制 */
.children{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-left:30px;
  padding-left:44px;
  animation:branchIn .2s ease;
}
@keyframes branchIn{from{opacity:0;}to{opacity:1;}}

/* 搜索命中 */
.node.hit{
  background:rgba(8,145,178,.09);
  box-shadow:inset 0 0 0 1px rgba(8,145,178,.28);
  color:#0f172a;
}
.node.dimmed{opacity:.28;}

/* ================= Network ================= */
.net-bar{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:16px 0 14px;
}
.net-hint{
  margin-left:auto;
  font-size:11.5px;
  color:var(--dim2);
}
.net-wrap{
  position:relative;
  height:min(70vh,720px);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  cursor:grab;
  background:
    radial-gradient(circle, rgba(100,116,139,.14) 1px, transparent 1px) 0 0/24px 24px,
    #fff;
}
.net-wrap.dragging{cursor:grabbing;}
#netSvg,
#mineSvg{
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
}

.ng-node{
  cursor:grab;
  transition:transform .18s cubic-bezier(.2,.7,.3,1);
}
.ng-node.dragging{
  cursor:grabbing;
  transition:none;
}
.ng-node.dragging .box{
  stroke-opacity:1;
  fill:#f8fafc;
  filter:drop-shadow(0 6px 14px rgba(15,23,42,.16));
}
.ng-node .box{
  fill:#fff;
  stroke:var(--c);
  stroke-opacity:.38;
  stroke-width:1;
  transition:fill .16s,stroke-opacity .16s;
}
.ng-node:hover .box{fill:#f8fafc;stroke-opacity:.9;}
.ng-node .bar{fill:var(--c);opacity:.9;}
.ng-node .label{
  fill:#2d3748;
  font-size:12.5px;
  font-weight:600;
  font-family:var(--sans);
  pointer-events:none;
}
.ng-node .mark{
  fill:var(--dim2);
  font-size:13px;
  font-family:var(--sans);
  pointer-events:none;
}
.ng-node:hover .mark{fill:var(--c);}

.ng-node.lv0 .box{
  fill:#fff;
  stroke:var(--root);
  stroke-opacity:.5;
}
.ng-node.lv0 .label{font-size:14px;font-weight:750;fill:#1a202c;}
.ng-node.lv1 .label{font-size:13px;font-weight:700;fill:var(--c);}

.ng-edge{
  fill:none;
  stroke:#b9c7d8;
  stroke-width:1.4;
  pointer-events:none;
}
.ng-cross{
  fill:none;
  stroke:var(--c);
  stroke-width:1.1;
  stroke-dasharray:3 5;
  stroke-opacity:.38;
  pointer-events:stroke;
}
.ng-cross:hover{stroke-opacity:.8;}

/* ================= 我的脑图 ================= */
.mc .box{cursor:grab;}
.mc.selected .box{
  stroke-width:2.2;
  stroke-opacity:1;
  fill:#f8fafc;
}
.mc.link-from .box{
  stroke-dasharray:4 3;
  stroke-opacity:1;
}
.mc-link{
  fill:none;
  stroke:#b9c7d8;
  stroke-width:1.5;
  pointer-events:none;
}
.mine-empty{
  fill:#94a3b8;
  font-size:13px;
  font-family:var(--sans);
  text-anchor:middle;
  dominant-baseline:central;
  pointer-events:none;
}

/* 画布缩放按钮 */
.mine-zoom{
  position:absolute;
  right:12px;
  bottom:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:15;
}
.mine-zoom button{
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:16px;
  line-height:1;
  font-family:var(--sans);
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
  transition:background .15s;
}
.mine-zoom button:hover{background:#f8fafc;}
.mine-zoom button:active{background:#eef2f7;}

/* 画布内联输入框 */
.mc-input{
  position:absolute;
  z-index:20;
  box-sizing:border-box;
  padding:0 10px;
  border:2px solid var(--limit);
  border-radius:7px;
  background:#fff;
  color:#1a202c;
  font:600 13px var(--sans);
  text-align:center;
  outline:none;
  box-shadow:0 0 0 3px rgba(8,145,178,.14);
}
.mc-input::placeholder{color:#b6c2d2;font-weight:400;}

/* 复制兜底弹层 */
.copy-mask{
  position:fixed;
  inset:0;
  z-index:120;
  background:rgba(15,23,42,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.copy-box{
  width:min(440px,100%);
  background:#fff;
  border-radius:12px;
  padding:16px;
  box-shadow:0 24px 60px -20px rgba(15,23,42,.35);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.copy-tip{
  font-size:13px;
  color:#475569;
}
.copy-box textarea{
  width:100%;
  height:180px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.6;
  font-family:inherit;
  color:#1a202c;
  resize:none;
  outline:none;
}
.copy-box button{
  align-self:flex-end;
  padding:8px 18px;
  border:0;
  border-radius:7px;
  background:var(--text);
  color:#fff;
  font-size:13px;
  font-family:inherit;
  cursor:pointer;
}
.tbtn.on{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}

/* 模板菜单 */
.mine-tpl{position:relative;}
.mine-menu{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:30;
  min-width:170px;
  padding:6px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 16px 36px -14px rgba(15,23,42,.25);
  display:flex;
  flex-direction:column;
  gap:2px;
}
.mine-menu.hidden{display:none;}
.mine-menu button{
  border:0;
  background:none;
  text-align:left;
  padding:8px 11px;
  border-radius:6px;
  font-size:12.5px;
  font-family:inherit;
  color:#334155;
  cursor:pointer;
  transition:background .14s,color .14s;
}
.mine-menu button:hover{
  background:#f1f5f9;
  color:#0f172a;
}

/* ================= Detail ================= */
.detail{
  --c:var(--dim);
  position:fixed;
  right:28px;
  bottom:28px;
  width:min(420px,calc(100vw - 40px));
  max-height:calc(100vh - 56px);
  overflow-y:auto;
  background:var(--panel-2);
  border:1px solid var(--line);
  border-left:3px solid var(--c);
  border-radius:9px;
  padding:17px 19px 18px;
  box-shadow:0 18px 44px -16px rgba(15,23,42,.22);
  z-index:60;
  transition:opacity .2s,transform .2s;
}
.detail.hidden{opacity:0;transform:translateY(10px);pointer-events:none;}
.detail .dtag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10.5px;
  letter-spacing:.13em;
  color:var(--c);
  font-weight:700;
  margin-bottom:9px;
}
.detail .dtag i{
  width:5px;height:5px;border-radius:50%;
  background:var(--c);
}
.detail h3{
  margin:0 0 10px;
  font-size:14.5px;
  font-weight:700;
  line-height:1.45;
  padding-right:24px;
  color:#1a202c;
}
.detail p{
  margin:0;
  color:var(--dim);
  font-size:12.8px;
  line-height:1.72;
}
.detail .path{
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--dim2);
  line-height:1.5;
}
.detail .close{
  position:absolute;
  top:11px;right:11px;
  width:25px;height:25px;
  border:0;
  background:#f1f5f9;
  border-radius:6px;
  color:var(--dim);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  transition:background .15s,color .15s;
}
.detail .close:hover{color:var(--text);background:#e8eef5;}

/* 学习卡：定义 / 直觉 / 历史 / 计算 / 推导 / 可视化 / 题库 */
.study{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:9px;
}
.srow{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:10px;
  align-items:start;
}
.sk{
  font-size:10.5px;
  font-weight:700;
  color:var(--c);
  letter-spacing:.02em;
  padding-top:2px;
  white-space:nowrap;
}
.sv{
  font-size:12.3px;
  color:#475569;
  line-height:1.65;
}
.links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line);
}
.link{
  font-size:11.5px;
  font-weight:600;
  padding:4px 9px;
  border-radius:6px;
  border:1px solid var(--line);
  color:var(--c);
  background:#fff;
  text-decoration:none;
  cursor:pointer;
  font-family:inherit;
  transition:background .15s,border-color .15s;
}
.link:hover{
  background:#f8fafc;
  border-color:color-mix(in srgb,var(--c) 35%,var(--line));
}
.link.ai{
  margin-left:auto;
  background:var(--c);
  color:#fff;
  border-color:var(--c);
}
.link.ai:hover{filter:brightness(1.08);}

/* ================= Meta ================= */
.meta-intro,.howto-intro{
  margin:2px 0 24px;
  color:var(--dim);
  font-size:13px;
  max-width:760px;
  line-height:1.7;
}
.meta-grid{
  display:grid;
  gap:0 34px;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
}
.dcard{
  padding:20px 0 16px;
  border-top:1px solid var(--line);
}
.dcard h3{
  margin:0 0 14px;
  font-size:15px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:9px;
  letter-spacing:-.005em;
  color:#1a202c;
}
.dcard h3 .ic{
  font-family:var(--serif);
  font-size:16px;
  color:var(--limit);
  line-height:1;
  width:18px;
  text-align:center;
}
.mrow{
  display:flex;
  gap:11px;
  padding:7px 0;
}
.mrow .mk{
  flex:none;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  padding:2px 6px;
  border-radius:4px;
  height:fit-content;
  margin-top:2px;
  color:var(--c);
  background:color-mix(in srgb,var(--c) 9%,transparent);
  white-space:nowrap;
}
.mrow .mt{
  font-size:12.3px;
  color:#475569;
  line-height:1.6;
}
.mk.k1{--c:var(--limit);}
.mk.k2{--c:var(--diff);}
.mk.k3{--c:var(--integral);}
.mk.k4{--c:var(--struct);}

/* ================= Howto ================= */
.q-grid{
  display:grid;
  gap:0 32px;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  margin-bottom:38px;
}
.qcard{
  padding:18px 0 16px;
  border-top:1px solid var(--line);
  position:relative;
}
.qcard::before{
  content:"";
  position:absolute;
  left:0;top:-1px;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,var(--c),transparent 72%);
}
.qcard.k1{--c:var(--limit);}
.qcard.k2{--c:var(--diff);}
.qcard.k3{--c:var(--integral);}
.qcard.k4{--c:var(--struct);}
.qcard .qn{
  font-family:var(--serif);
  font-style:italic;
  font-size:19px;
  color:var(--c);
  line-height:1;
}
.qcard h4{
  margin:9px 0 8px;
  font-size:15.5px;
  font-weight:750;
  color:#1a202c;
}
.qcard .qq{
  font-size:13px;
  color:#334155;
  font-weight:600;
  line-height:1.55;
}
.qcard .qd{
  margin-top:9px;
  font-size:12.2px;
  color:var(--dim);
  line-height:1.68;
}

.sect-h{
  font-size:13px;
  color:#1a202c;
  font-weight:750;
  margin:0 0 6px;
  letter-spacing:-.005em;
}
.sect-h::before{
  content:"";
  display:inline-block;
  width:16px;
  height:1px;
  background:var(--dim2);
  vertical-align:middle;
  margin-right:9px;
  margin-bottom:4px;
}
.steps{
  display:flex;
  flex-direction:column;
  margin-bottom:36px;
}
.step{
  display:flex;
  gap:18px;
  padding:14px 0;
  border-top:1px solid #eef1f6;
}
.step:first-child{border-top:0;}
.step .sn{
  flex:none;
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--serif);
  font-style:italic;
  font-size:13px;
  color:var(--limit);
  background:rgba(8,145,178,.08);
  border:1px solid rgba(8,145,178,.2);
}
.step .sb h5{
  margin:2px 0 4px;
  font-size:13.5px;
  font-weight:700;
  color:#1a202c;
}
.step .sb p{
  margin:0;
  font-size:12.5px;
  color:var(--dim);
  line-height:1.65;
}

.diag{
  display:grid;
  gap:0 30px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}
.dg{
  padding:15px 0;
  border-top:1px solid var(--line);
}
.dg h5{
  margin:0 0 6px;
  font-size:12.5px;
  color:var(--fix);
  font-weight:700;
  letter-spacing:.01em;
}
.dg p{
  margin:0;
  font-size:12.2px;
  color:var(--dim);
  line-height:1.65;
}

/* ================= Footer ================= */
footer{
  margin-top:48px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--dim2);
  font-size:11.5px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
footer .sig{
  font-family:var(--serif);
  font-style:italic;
  font-size:13px;
  color:var(--dim);
  letter-spacing:.02em;
}

/* ================= Responsive ================= */
@media (max-width:860px){
  .app{padding:24px 18px 52px;}
  .hero{
    grid-template-columns:1fr;
    gap:26px;
    padding-bottom:22px;
  }
  .hero-copy h1{font-size:27px;}
  .ops{grid-template-columns:repeat(4,1fr);}
  .op{min-width:0;padding-right:8px;}
  .op .sym{font-size:26px;}
  .op .ds{display:none;}
  .toolbar input{max-width:none;}
  .detail{right:12px;bottom:12px;}

  .tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .tabs::-webkit-scrollbar{display:none;}
  .tab{white-space:nowrap;padding:12px 2px;margin-right:22px;}

  .net-wrap{height:min(64vh,560px);}
  .net-bar{gap:6px;padding:12px 0 12px;}
  .net-bar .tbtn{padding:9px 12px;font-size:12.5px;}
  .net-hint{display:none;}
  .mine-zoom button{width:42px;height:42px;font-size:19px;}
  .mc-input{font-size:14px;}
}
@media (max-width:520px){
  .ops{grid-template-columns:repeat(2,1fr);gap:14px 0;}
  .op:nth-child(3){border-left:0;padding-left:0;}
  .hero-copy h1{font-size:24px;}
  .net-wrap{height:min(62vh,520px);}
  .net-bar .tbtn{padding:8px 10px;font-size:12px;}
  .mine-tpl{width:100%;}
  #mineTplBtn{width:100%;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
  }
}
