/* ============================================================
   萝卜芽 AI 学习平台 · 首页
   浅色乐学风：白底卡片 + 品牌科技蓝 + 向阳黄点缀
   零外链 / 零构建 / 零依赖
   ============================================================ */

:root {
  /* 品牌色板（萝卜芽色板 v1.0） */
  --blue:   #0066FF;   /* 科技蓝 · 主色 */
  --cyan:   #00C2FF;   /* 青蓝 · 高亮 */
  --yellow: #FADB14;   /* 向阳黄 · 点缀 */
  --amber:  #FA8C16;   /* 活力橙 · 次强调 */
  --green:  #52C41A;   /* 萝卜绿 · 完成 */

  /* 中性色 */
  --ink:  #262626;
  --ink2: #595959;
  --ink3: #8C8C8C;
  --line: #E9EFF9;
  --line2:#F0F0F0;
  --card: #FFFFFF;
  --bg:   #F4F8FF;

  --sh:  0 4px 16px rgba(0,60,140,.06);
  --sh2: 0 14px 34px -12px rgba(0,60,140,.16);
}

body.hbody { background: var(--bg); color: var(--ink); }
body.hbody a { color: var(--blue); }
body.hbody .btn { color: var(--ink2); }
body.hbody .btn.ghost { color: var(--ink2); }
body.hbody .btn.primary { color: #fff; }
body.hbody .tag.gray { background: var(--line2); color: var(--ink3); }
body.hbody .tag.green { background: rgba(82,196,26,.10); color: #3F9E12; }
body.hbody .tag.orange { background: rgba(250,140,22,.10); color: #C26A08; }
body.hbody .modal-mask { background: rgba(18,38,80,.42); }
body.hbody .modal { background: #fff; border-color: var(--line); color: var(--ink); }
body.hbody .modal-h { border-bottom-color: var(--line); }
body.hbody .modal-h h3 { color: var(--ink); }
body.hbody .modal-x { color: var(--ink3); }

.hwrap { width: min(1200px, 100% - 44px); margin: 0 auto; }

/* ---------- 顶栏：白底，导航居中，当前项带蓝下划线 ---------- */
.htop {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.90); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.htop-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.hlogo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hlogo .mk {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 16px rgba(0,102,255,.26);
}
.hlogo .mk svg { width: 18px; height: 18px; }
.hlogo .lg-txt { display: flex; align-items: baseline; gap: 7px; }
.hlogo .lg-txt b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.hlogo .lg-txt i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink3); }

.hnav { display: flex; gap: 2px; margin-left: 6px; }
.hnav a {
  position: relative; padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none;
  transition: color .15s, background .15s;
}
.hnav a:hover { background: rgba(0,102,255,.07); color: var(--blue); }
.hnav a.on { color: var(--blue); }
.hnav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--blue), var(--cyan));
}
@media (max-width: 900px) { .hnav { display: none; } }
.htop .sp { flex: 1; }
.htop .btn.primary {
  background: linear-gradient(135deg, var(--blue), #2E85FF); color: #fff; border: 0;
  box-shadow: 0 6px 18px rgba(0,102,255,.28);
}
.htop .btn.primary:hover { filter: brightness(1.06); }

/* ---------- Hero：通栏品牌蓝大图 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(158deg, #0035A8 0%, #0057E0 38%, #0066FF 62%, #1189FF 84%, #00C2FF 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(880px 520px at 80% 10%, rgba(250,219,20,.22), transparent 62%),
    radial-gradient(760px 460px at 6% 92%, rgba(0,194,255,.30), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 58%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 10%, transparent 88%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 10%, transparent 88%);
}
.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 430px; gap: 40px; align-items: center;
  padding: 74px 0 104px;
}
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding: 48px 0 96px; }
  .hero-art { display: none; }
}

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: #fff; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.14); margin-bottom: 18px;
}
.hero .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px rgba(250,219,20,.9); animation: hz 2.4s ease-in-out infinite; }
@keyframes hz { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 {
  font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1.04; color: #fff;
  text-shadow: 0 10px 34px rgba(0,26,86,.32);
}
@media (max-width: 760px) { .hero h1 { font-size: 44px; } }
.hero .sub {
  font-size: 25px; font-weight: 800; margin-top: 12px; color: var(--yellow);
  text-shadow: 0 4px 20px rgba(0,26,86,.30);
}
@media (max-width: 760px) { .hero .sub { font-size: 19px; } }
.hero .desc { margin-top: 18px; font-size: 14.5px; line-height: 1.95; color: rgba(255,255,255,.88); max-width: 560px; }
.hero .desc b { color: #fff; font-weight: 700; }
.hero .desc em { font-style: normal; color: var(--yellow); font-weight: 700; }

.hero-cta { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .b1 {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px;
  background: linear-gradient(135deg, #FFE85C, var(--yellow)); color: #17305E;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 12px 30px rgba(250,219,20,.34); transition: transform .18s, box-shadow .18s;
}
.hero-cta .b1:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(250,219,20,.46); }
.hero-cta .b2 {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; font-size: 14.5px;
  text-decoration: none; background: rgba(255,255,255,.10); backdrop-filter: blur(6px);
}
.hero-cta .b2:hover { background: rgba(255,255,255,.20); border-color: #fff; }

.hero-kpi { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-kpi > div { font-size: 12px; color: rgba(255,255,255,.76); }
.hero-kpi b {
  display: block; font-size: 26px; font-weight: 800; line-height: 1.15; margin-bottom: 2px;
  font-family: var(--mono); letter-spacing: -.5px; color: #fff;
}

/* Hero 右侧：真实作品浮层 */
.hero-art { position: relative; height: 340px; }
.hero-card {
  position: absolute; width: 190px; border-radius: 15px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 24px 54px -16px rgba(0,26,86,.55);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); } }
.hero-card img { display: block; width: 100%; height: 224px; object-fit: cover; }
.hero-card .cap { padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card.c1 { left: 0;    top: 24px; --rot: -6deg;  z-index: 3; animation-delay: 0s; }
.hero-card.c2 { left: 118px; top: 84px; --rot: 3.5deg; z-index: 4; animation-delay: -2.4s; }
.hero-card.c3 { left: 244px; top: 16px; --rot: -3deg;  z-index: 2; animation-delay: -4.6s; }

/* ---------- 悬浮快捷入口卡：五个去处摆一张白卡 ---------- */
.quickbar {
  position: relative; z-index: 3; margin-top: -62px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: #fff; border-radius: 20px; padding: 14px 10px;
  box-shadow: 0 20px 50px -20px rgba(0,52,120,.38);
}
@media (max-width: 980px) { .quickbar { grid-template-columns: repeat(3, 1fr); margin-top: -34px; } }
@media (max-width: 620px) { .quickbar { grid-template-columns: repeat(2, 1fr); } }
.qi {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 14px;
  text-decoration: none; color: inherit; transition: background .16s, transform .16s;
}
.qi:hover { background: rgba(0,102,255,.055); transform: translateY(-2px); }
.qi .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(0,102,255,.12), rgba(0,194,255,.20)); color: var(--blue);
}
.qi .ic svg { width: 22px; height: 22px; }
.qi .tx { min-width: 0; }
.qi b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; white-space: nowrap; }
.qi i { display: block; font-style: normal; font-size: 11.5px; color: var(--ink3); margin-top: 3px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 黄色点缀：第 3、5 个入口用向阳黄底（图标用深棕字保证对比度） */
.qi:nth-child(3) .ic, .qi:nth-child(5) .ic {
  background: linear-gradient(135deg, rgba(250,219,20,.30), rgba(250,140,22,.20)); color: #A9700A;
}

/* ---------- 分区标识：01 课程体系 / 02 教学方法 / 03 创意作品 / 04 教学工具 ---------- */
.sec-tag {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--ink3);
}
.sec-tag i {
  font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 7px; padding: 2px 9px; letter-spacing: .5px;
  box-shadow: 0 6px 14px -6px rgba(0, 102, 255, .55);
}

/* ---------- 通用区块 ---------- */
.sec { padding: 72px 0; position: relative; }
.sec.alt { background: #fff; }
.stitle { text-align: center; margin-bottom: 42px; }
.stitle h2 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.stitle h2 em { font-style: normal; color: var(--blue); }
.stitle p { margin: 12px auto 0; color: var(--ink3); font-size: 14px; max-width: 660px; line-height: 1.8; }
.stitle p b { color: var(--ink2); }
.stitle .deco { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--blue); }
.stitle .deco svg { width: 20px; height: 20px; }

/* ---------- 三大板块 ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .stages { grid-template-columns: repeat(3, minmax(268px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
  .stages::-webkit-scrollbar { height: 6px; }
  .stages::-webkit-scrollbar-thumb { background: rgba(0,102,255,.20); border-radius: 3px; }
}
.stage {
  position: relative; border-radius: 18px; padding: 26px 22px 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  /* 纵向弹性列：描述区吸收多余高度，让「学完带走 / 作品标签 / 按钮」三卡横向对齐 */
  display: flex; flex-direction: column;
}
.stage:hover { transform: translateY(-5px); border-color: rgba(0,102,255,.32); box-shadow: var(--sh2); }
.stage .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.stage.s1 .bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stage.s2 .bar { background: linear-gradient(90deg, var(--yellow), var(--amber)); }
.stage.s3 .bar { background: linear-gradient(90deg, var(--green), #8ED96A); }
.stage .no {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; font-weight: 800; font-size: 15px; margin-bottom: 14px;
  font-family: var(--mono); border: 1px solid transparent;
}
.stage.s1 .no { background: rgba(0,102,255,.10); color: var(--blue); border-color: rgba(0,102,255,.22); }
.stage.s2 .no { background: rgba(250,219,20,.22); color: #A9700A; border-color: rgba(250,140,22,.28); }
.stage.s3 .no { background: rgba(82,196,26,.12); color: #3F9E12; border-color: rgba(82,196,26,.26); }
.stage h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.stage .en { font-size: 11px; color: var(--ink3); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 13px; }
.stage .d {
  font-size: 13.5px; color: var(--ink2); line-height: 1.8;
  /* 描述按最长的一张统一占位（3 行），下面的「学完带走」等才能横向对齐 */
  min-height: calc(1.8em * 3);
}
.stage .d b { color: var(--ink); }
.stage .out {
  margin-top: 15px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.7;
  background: rgba(0,102,255,.05); border: 1px solid rgba(0,102,255,.14); color: var(--ink2);
}
.stage .out b { display: block; font-size: 11px; color: var(--blue); margin-bottom: 4px; font-weight: 700; letter-spacing: .5px; }
.stage .cs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
  /* 作品标签按 2 行统一占位 */
  min-height: 60px; align-content: flex-start;
}
.stage .cs span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink3); border: 1px solid var(--line); }
.stage .go { margin-top: auto; padding-top: 17px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.stage .go:hover { text-decoration: underline; }
.stage .go svg { width: 14px; height: 14px; }

/* ---------- 8 个教学动作 ---------- */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
@media (max-width: 1040px) { .acts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .acts { grid-template-columns: 1fr; } }
.act {
  position: relative; border-radius: 14px; padding: 17px 16px 15px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.act:hover { transform: translateY(-4px); border-color: rgba(0,102,255,.30); box-shadow: var(--sh2); }
.act .an { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.act .an i {
  font-style: normal; font-weight: 800; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 22px;
  font-family: var(--mono);
}
.act h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.act p { font-size: 12.5px; color: var(--ink3); line-height: 1.7; margin: 0; }
.act.key { border-color: rgba(250,140,22,.34); background: linear-gradient(180deg, rgba(250,219,20,.10), #fff 62%); }
.act.key .an i { background: linear-gradient(135deg, #FFE85C, var(--amber)); color: #17305E; }
.act .why {
  margin-top: 10px; font-size: 11.5px; color: #8A5A08; background: rgba(250,219,20,.16);
  border: 1px solid rgba(250,140,22,.26); border-radius: 9px; padding: 7px 10px; line-height: 1.6;
}

/* ---------- 课程演示 ---------- */
.demos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
@media (max-width: 1100px) { .demos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .demos { grid-template-columns: repeat(2, 1fr); } }
.demo-card {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.demo-card:hover { transform: translateY(-5px); border-color: rgba(0,102,255,.32); box-shadow: var(--sh2); }
.demo-card .cv { position: relative; aspect-ratio: 3/2; background: var(--bg); overflow: hidden; }
.demo-card .cv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.demo-card:hover .cv img { transform: scale(1.05); }
.demo-card .cv .pl {
  position: absolute; right: 9px; bottom: 9px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,102,255,.42);
}
.demo-card .cv .pl svg { width: 14px; height: 14px; }
.demo-card .mt { padding: 12px 14px 14px; }
.demo-card .mt .t { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.demo-card .mt .s { font-size: 11.5px; color: var(--ink3); margin-top: 7px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.demo-card .mt .s .tag { background: var(--line2); color: var(--ink3); }

/* ---------- 教学工具 ---------- */
.tool-groups { display: block; }
.tool-cat { margin-bottom: 38px; }
.tool-cat:last-child { margin-bottom: 10px; }
.tool-cat-h { margin-bottom: 16px; }
.tool-cat-t { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tool-cat-t b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.tool-cat-bar { width: 4px; height: 17px; border-radius: 3px; background: var(--blue); flex-shrink: 0; }
.tool-cat-n { font-size: 11px; font-weight: 700; color: var(--ink3); border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px; }
.tool-cat-d { font-size: 12.5px; color: var(--ink3); line-height: 1.75; padding-left: 14px; max-width: 920px; }

.tools { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; }
@media (max-width: 1180px) { .tools { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .tools { grid-template-columns: 1fr; } }

.tool {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 14px; padding: 18px 17px 15px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tool:hover { transform: translateY(-4px); border-color: rgba(0,102,255,.30); box-shadow: var(--sh2); }
.tool .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; flex-shrink: 0; }
.tool .ic svg { width: 20px; height: 20px; }
.tool h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); line-height: 1.4; }
.tool p {
  font-size: 12.5px; color: var(--ink3); line-height: 1.72; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 64px;
}
.tool .tool-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tool .go {
  margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px;
}
.tool .go svg { width: 12px; height: 12px; }

/* ---------- 成品作品弹窗 ---------- */
.art-frame {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #F4F8FF;
}
body.hbody .modal-h .sp { flex: 1; }

/* ---------- 三大板块配图 ---------- */
.stage-img {
  position: relative; margin: -26px -22px 18px; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid var(--line); flex: none;
}
.stage-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 46%, rgba(0,40,110,.42) 100%);
}

/* ---------- 登录弹窗 ---------- */
.lg-mask {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(16,38,84,.42); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.lg-mask.on { display: flex; }
.lg-modal {
  width: min(430px, 100%); border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0,40,110,.42);
}
.lg-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.lg-h .mk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.lg-h .mk svg { width: 17px; height: 17px; }
.lg-h h3 { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; }
.lg-x { background: none; border: 0; color: var(--ink3); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px; }
.lg-x:hover { background: var(--bg); color: var(--ink); }
.lg-b { padding: 20px; }
.lg-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.lg-field label { font-size: 12px; color: var(--ink3); font-weight: 600; }
.lg-field input {
  font-family: inherit; font-size: 14px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); outline: 0;
}
.lg-field input::placeholder { color: #B6BDC9; }
.lg-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,.10); }
.lg-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0 18px; }
.lg-role {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; cursor: pointer;
  background: #fff; text-align: center; transition: all .16s;
}
.lg-role:hover { border-color: rgba(0,102,255,.40); background: rgba(0,102,255,.04); }
.lg-role.on { border-color: var(--blue); background: rgba(0,102,255,.06); box-shadow: 0 0 0 2px rgba(0,102,255,.10); }
.lg-role .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 7px; }
.lg-role .ic svg { width: 17px; height: 17px; }
.lg-role .nm { font-size: 13px; font-weight: 700; color: var(--ink); }
.lg-role .sb { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.lg-role.s1 .ic { background: rgba(0,102,255,.10); color: var(--blue); }
.lg-role.s2 .ic { background: rgba(250,219,20,.22); color: #A9700A; }
.lg-role.s3 .ic { background: rgba(82,196,26,.12); color: #3F9E12; }
.lg-submit {
  width: 100%; padding: 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), #2E85FF); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800;
  box-shadow: 0 10px 26px rgba(0,102,255,.28);
}
.lg-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.lg-err { color: #E04B4B; font-size: 12px; margin-top: 10px; min-height: 17px; }
.lg-tip { color: var(--ink3); font-size: 11.5px; margin-top: 12px; text-align: center; line-height: 1.6; }

/* ---------- 给家长的安心（已下线，保留类名以防回滚） ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust-item {
  border-radius: 14px; padding: 19px 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
}
.trust-item .ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(82,196,26,.12); color: #3F9E12; display: grid; place-items: center; margin-bottom: 12px; }
.trust-item .ic svg { width: 18px; height: 18px; }
.trust-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.trust-item p { font-size: 12.5px; color: var(--ink3); line-height: 1.7; margin: 0; }

/* ---------- 页脚 ---------- */
.hfoot { background: #fff; color: var(--ink3); padding: 32px 0; font-size: 12.5px; border-top: 1px solid var(--line); }
.hfoot-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hfoot .lg { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 14px; }
.hfoot .lg .mk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.hfoot .lg .mk svg { width: 15px; height: 15px; }
.hfoot .sp { flex: 1; }
.hfoot a { color: var(--ink3); }
.hfoot a:hover { color: var(--blue); }

/* ---------- 分类主题色 ---------- */
.tool-cat-exp       .tool-cat-bar { background: var(--blue); }
.tool-cat-principle .tool-cat-bar { background: var(--amber); }
.tool-cat-studio    .tool-cat-bar { background: var(--cyan); }
.tool-cat-code      .tool-cat-bar { background: #722ED1; }
.tool-cat-class     .tool-cat-bar { background: #94A3B8; }

.tool-tags .tg {
  font-size: 10.5px; color: var(--ink3); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 6px; line-height: 1.5; white-space: nowrap;
}
.tool-exp       .ic { background: rgba(0,102,255,.10);  color: var(--blue); }
.tool-principle .ic { background: rgba(250,173,20,.14); color: #B87400; }
.tool-studio    .ic { background: rgba(0,194,255,.12);  color: #0090C8; }
.tool-code      .ic { background: rgba(114,46,209,.10); color: #722ED1; }
.tool-class     .ic { background: rgba(148,163,184,.14);color: #64748B; }
