/* ============================================================
   WorkBuddy 教师助手 · 教育行业应用站
   与北京泉江科技官网同一套视觉语言（深蓝 #0e2a4e / 品牌蓝 #1a4d8f / 金 #e8a33d）
   ============================================================ */
:root {
  --navy: #0e2a4e;
  --brand: #1a4d8f;
  --blue: #3e7bd6;
  --sky: #9ec4ee;
  --gold: #e8a33d;
  --text: #24303e;
  --gray: #5f6e82;
  --light: #f4f8fd;
  --line: #e6eefa;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(14, 42, 78, .08);
  --shadow-lg: 0 14px 40px rgba(14, 42, 78, .14);
  --radius: 14px;
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--text); background: var(--white); line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "Consolas", "Courier New", monospace; }

/* ---------------- 顶部导航 ---------------- */
.wb-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.wb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.wb-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 17px; }
.wb-logo img { width: 34px; height: 34px; object-fit: contain; }
.wb-logo small { display: block; font-size: 10.5px; font-weight: 600; color: var(--gray); letter-spacing: .5px; }
.wb-nav { display: flex; align-items: center; gap: 26px; }
.wb-nav a { font-size: 14.5px; font-weight: 600; color: var(--text); padding: 6px 0; position: relative; transition: color .2s; }
.wb-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); transition: width .25s; }
.wb-nav a:hover, .wb-nav a.active { color: var(--brand); }
.wb-nav a:hover::after, .wb-nav a.active::after { width: 100%; }
.wb-back { font-size: 13.5px; font-weight: 700; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.wb-back:hover { background: var(--light); }
.wb-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.wb-burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.wb-hero {
  background: linear-gradient(160deg, #0b2444 0%, #163f77 52%, #1a4d8f 100%);
  color: #fff; padding: 74px 0 60px; position: relative; overflow: hidden;
}
.wb-hero::before, .wb-hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.09); }
.wb-hero::before { width: 460px; height: 460px; right: -160px; top: -170px; }
.wb-hero::after { width: 280px; height: 280px; right: 60px; top: 90px; border-color: rgba(232,163,61,.22); }
.wb-hero-inner { position: relative; z-index: 2; }
.wb-crumb { font-size: 12.5px; color: rgba(255,255,255,.72); margin-bottom: 16px; }
.wb-crumb a:hover { color: var(--gold); }
.wb-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); color: #dbe9fb; margin-bottom: 18px;
}
.wb-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.28; letter-spacing: -.5px; }
.wb-hero h1 .hl { color: var(--gold); }
.wb-hero .lead { font-size: 16px; color: rgba(255,255,255,.86); max-width: 780px; margin-top: 18px; }
.wb-hero .lead b { color: var(--gold); }
.wb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wb-tags span { padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #dbe9fb; }
.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; position: relative; z-index: 2; }
.wb-stat { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 16px 18px; }
.wb-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -.5px; }
.wb-stat span { font-size: 12.5px; color: rgba(255,255,255,.8); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section--alt { background: var(--light); }
.section-head { margin-bottom: 34px; }
.section-head .tag { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: 2px; }
.section-head h2 { font-size: 30px; color: var(--navy); font-weight: 800; margin-top: 6px; line-height: 1.35; }
.section-head p { color: var(--gray); font-size: 15px; margin-top: 10px; max-width: 900px; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
h3.sub-h { font-size: 19px; color: var(--navy); margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--gold); font-weight: 800; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f5; }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card p { color: var(--gray); font-size: 13.8px; }
.card ul { margin: 10px 0 0 0; list-style: none; }
.card ul li { position: relative; padding-left: 16px; font-size: 13.4px; color: var(--gray); margin-bottom: 5px; }
.card ul li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 9px; line-height: 2.1; }
.card .num-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.card--link { display: block; }
.card--link:hover h3 { color: var(--brand); }
.card--link .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand); }
.tag-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef4fb; border: 1px solid #d5e3f5; font-size: 11.5px; color: var(--brand); font-weight: 700; }
.tag-pill--gold { background: #fff6e8; border-color: #f3dcb4; color: #b5781d; }

/* ---------------- 指令块 ---------------- */
.prompt {
  background: #0f2440; color: #e8f0fb; border-radius: 12px; padding: 16px 18px;
  font-size: 13.5px; line-height: 1.85; position: relative; margin: 12px 0 4px;
  font-family: "Consolas", "Courier New", monospace; white-space: pre-wrap; word-break: break-word;
}
.prompt::before { content: "指令示例"; position: absolute; top: -10px; left: 14px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; font-family: inherit; }
.prompt--plain::before { content: "关键做法"; }
.copy-btn {
  position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.24); border-radius: 8px; font-size: 11.5px; padding: 4px 10px;
  cursor: pointer; font-family: inherit;
}
.copy-btn:hover { background: rgba(255,255,255,.26); }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.6px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th { background: #f2f6fc; color: var(--navy); font-size: 13px; text-align: left; padding: 12px 14px; font-weight: 800; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--text); vertical-align: top; }
.tbl tr:hover td { background: #fafcff; }

/* ---------------- 流程 / 步骤 ---------------- */
.steps { counter-reset: st; display: grid; gap: 14px; }
.step { position: relative; padding: 18px 20px 18px 62px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px; font-size: 15px; font-weight: 800; color: #fff;
  width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 4px; }
.step p { font-size: 13.6px; color: var(--gray); }

/* ---------------- 折叠问答 ---------------- */
details.qa { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
details.qa summary { cursor: pointer; font-weight: 800; color: var(--navy); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "＋"; color: var(--gold); font-weight: 800; }
details.qa[open] summary::after { content: "－"; }
details.qa .qa-body { margin-top: 12px; font-size: 13.8px; color: var(--gray); }
details.qa .qa-body b { color: var(--navy); }

/* ---------------- 提示条 ---------------- */
.notice {
  background: #fff8ea; border: 1px solid #f3dcb4; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 14px 18px; font-size: 13.6px; color: #7a5a1c; margin: 16px 0;
}
.notice b { color: #8a5a12; }
.notice--blue { background: #f2f7fe; border-color: #d5e3f5; border-left-color: var(--brand); color: #24486f; }
.notice--blue b { color: var(--brand); }

/* ---------------- 页脚 ---------------- */
.wb-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 46px 0 26px; font-size: 13.4px; }
.wb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.wb-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.wb-footer a:hover { color: var(--gold); }
.wb-footer ul { list-style: none; }
.wb-footer ul li { margin-bottom: 7px; }
.wb-footer .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.wb-footer .f-brand img { width: 30px; }
.footer-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 26px; padding: 16px 0 6px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
.footer-keywords b { color: var(--gold); letter-spacing: 1px; }
.footer-keywords a { color: rgba(255,255,255,.6); }
.wb-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
  .wb-hero h1 { font-size: 32px; }
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-footer-grid { grid-template-columns: 1fr 1fr; }
  .wb-nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    padding: 10px 0 18px; box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s;
    border-bottom: 1px solid var(--line); align-items: stretch;
  }
  .wb-nav.open { transform: translateY(0); }
  .wb-nav a { padding: 13px 24px; }
  .wb-nav a::after { display: none; }
  .wb-burger { display: flex; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wb-hero h1 { font-size: 27px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 23px; }
  .wb-stats { grid-template-columns: 1fr 1fr; }
  .wb-footer-grid { grid-template-columns: 1fr; }
  .tbl { font-size: 12.6px; }
  .tbl th, .tbl td { padding: 9px 10px; }
}
