/* ============================================================
   初讯智考 · 清爽版 v4（fresh）桌面端独立模板
   按第二版设计图：顶部玻璃胶囊导航 + 小智大形象 + 今日学习流 + 底部玻璃统计条
   亮 emerald 主色 + 薄荷渐变背景，不影响现有站点界面
   ============================================================ */
:root {
  /* 新色板（对齐设计图，区别于旧深青） */
  --brand: #10B98A;
  --brand-deep: #0B9A7C;
  --brand-mid: #14C49A;
  --brand-light: #5FD8BE;
  --brand-glow: #0FBE93;
  --brand-soft: #E3F6EF;
  --brand-pale: #F1FAF6;
  --bg1: #E5F4EE;
  --bg2: #F1FAF6;

  /* 兼容旧组件引用的别名 */
  --main: var(--brand);
  --deep: var(--brand-deep);
  --mid: var(--brand-mid);
  --light: var(--brand-light);
  --mint: var(--brand-soft);
  --pale: var(--brand-pale);

  --ink: #17241F;
  --ink-2: #43554F;
  --muted: #7C8E89;
  --line: #E3EEEA;
  --danger: #EF4444;
  --warn: #F59E5B;
  --card: #ffffff;
  --shadow: 0 16px 36px -22px rgba(16,153,124,.32);
  --glass-line: rgba(255,255,255,.92);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% 4%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(900px 520px at 88% 96%, rgba(214,243,233,.75), rgba(214,243,233,0) 72%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 48%, #F7FCFA 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

.fr-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部玻璃胶囊导航 ---------- */
.fr-topnav {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(233,247,241,.96), rgba(233,247,241,.72));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,239,232,.85);
}
.fr-navrow {
  max-width: 1480px; margin: 0 auto; padding: 14px 40px;
  display: flex; align-items: center; gap: 16px;
}
.fr-logo {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--glass-line);
  box-shadow: 0 10px 22px -16px rgba(16,153,124,.6);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.fr-logo img { width: 30px; height: 30px; object-fit: contain; }

.fr-nav {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.6); border: 1px solid var(--glass-line);
  box-shadow: 0 14px 30px -24px rgba(16,153,124,.5);
  border-radius: 20px; padding: 5px;
  backdrop-filter: blur(12px);
}
.fr-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 15px;
  font-size: 16px; font-weight: 600; color: #33443E;
  transition: background .16s ease, color .16s ease;
}
.fr-nav a svg { width: 18px; height: 18px; opacity: .8; }
.fr-nav a:hover { background: rgba(227,246,239,.85); color: var(--brand-deep); }
.fr-nav a.active { color: var(--brand-glow); }
.fr-nav a.active svg { opacity: 1; }
.fr-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%); width: 26px; height: 3px;
  border-radius: 4px; background: var(--brand-glow);
}

.fr-navright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.fr-nav-more {
  width: 34px; height: 34px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); border-radius: 50%;
}
.fr-nav-more:hover { background: rgba(255,255,255,.7); }
.fr-nav-more svg { width: 18px; height: 18px; }

/* 用户区（兼容旧 .fr-user） */
.fr-user, .fr-side__user { display: flex; align-items: center; gap: 10px; }
.fr-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: #E9F7F1; border: 1px solid var(--glass-line);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -14px rgba(16,153,124,.7);
}
.fr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fr-login-btn {
  padding: 9px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.fr-login-btn:hover { border-color: var(--brand-light); background: var(--brand-pale); }
.fr-switch {
  padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); color: var(--muted); font-size: 13px; font-weight: 600;
}
.fr-switch:hover { border-color: var(--brand-light); background: var(--brand-pale); color: var(--brand-deep); }

.fr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-topbar {
  max-width: 1480px; width: 100%; margin: 0 auto;
  padding: 26px 40px 6px; display: flex; align-items: center; justify-content: space-between;
}
.fr-topbar__title { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.fr-topbar__right { display: flex; align-items: center; gap: 14px; }
.fr-iconbtn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink-2);
  background: rgba(255,255,255,.8); border: 1px solid var(--glass-line);
  box-shadow: 0 10px 24px -18px rgba(16,153,124,.6);
}
.fr-iconbtn:hover { color: var(--brand-deep); background: #fff; }
.fr-iconbtn svg { width: 19px; height: 19px; }
.fr-iconbtn--sm { width: 38px; height: 38px; position: relative; }
.fr-iconbtn--sm svg { width: 18px; height: 18px; }
.fr-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

/* ---------- 内容容器 ---------- */
.fr-wrap { max-width: 1480px; margin: 0 auto; padding: 16px 40px 56px; width: 100%; }

/* ---------- 卡片 ---------- */
.fr-card {
  background: var(--card); border: 1px solid var(--glass-line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- 按钮 ---------- */
.fr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 99px; border: 0;
  background: linear-gradient(135deg, #19C99F, var(--brand-deep));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 26px -16px rgba(16,190,146,.9);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fr-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -16px rgba(16,190,146,.95); }
.fr-btn--ghost { background: #fff; color: var(--brand-deep); border: 1px solid var(--line); box-shadow: none; }
.fr-btn--sm { padding: 8px 15px; font-size: 13px; border-radius: 11px; }

/* ---------- 首页：左小智 + 右今日学习流 ---------- */
.fr-home { display: flex; flex-direction: column; gap: 18px; }
.fr-home__grid {
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr);
  gap: 40px; align-items: start;
}

.fr-hero { position: relative; min-height: 600px; overflow: hidden; }
.fr-hero__mascot { position: absolute; left: -10px; bottom: -196px; width: 61%; max-width: 440px; }
.fr-hero__mascot img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgba(16,153,124,.16)); }
.fr-hero__bubble {
  position: absolute; left: 52%; top: 14%; width: min(300px, 44%);
  padding: 24px 26px; border-radius: 26px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 46px -34px rgba(16,153,124,.55);
  font-size: 25px; font-weight: 800; line-height: 1.45; color: #16221E;
  letter-spacing: -.5px;
}
.fr-hero__bubble::after {
  content: ""; position: absolute; left: 6px; bottom: -13px;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 10px;
  background: rgba(255,255,255,.72);
  transform: rotate(-14deg);
}

/* 今日学习流 */
.fr-flow-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px -34px rgba(16,153,124,.45);
  padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.fr-flow-card__head { display: flex; align-items: center; justify-content: space-between; }
.fr-flow-card__head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.fr-flow-card__more {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: var(--muted);
  background: rgba(255,255,255,.75); border: 1px solid var(--glass-line);
}
.fr-flow-card__more:hover { color: var(--brand-deep); background: #fff; }
.fr-flow-card__more svg { width: 18px; height: 18px; }

.fr-flow-row {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.55);
  box-shadow: none;
  border: 1px solid rgba(226,240,235,.9);
  border-radius: 22px; padding: 20px 22px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.fr-flow-row:hover { box-shadow: 0 16px 30px -24px rgba(16,153,124,.55); transform: translateY(-1px); }
.fr-flow-row__ico {
  flex: none; width: 46px; height: 46px; border-radius: 15px;
  background: #E9F8F2; color: var(--brand-glow);
  display: inline-flex; align-items: center; justify-content: center;
}
.fr-flow-row__ico svg { width: 20px; height: 20px; }
.fr-flow-row__ico--blue { background: #EDF3FF; color: #5B9BF0; }
.fr-flow-row__title { flex: 1; min-width: 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.fr-flow-row .fr-btn { flex: none; padding: 12px 30px; font-size: 16px; }

/* 底部玻璃统计条 */
.fr-statbar {
  position: relative; z-index: 3; margin-top: -26px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--glass-line);
  border-radius: 26px; padding: 16px 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px -34px rgba(16,153,124,.5);
}
.fr-statbar__cell { flex: 0 0 290px; display: flex; align-items: center; gap: 15px; padding: 6px 12px; position: relative; }
.fr-statbar__cell + .fr-statbar__cell::before {
  content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(214,235,227,.9);
}
.fr-statbar__ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #E4F8F0; color: var(--brand-glow);
  display: inline-flex; align-items: center; justify-content: center;
}
.fr-statbar__ico svg { width: 20px; height: 20px; }
.fr-statbar__label { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.fr-statbar__num { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 2px; letter-spacing: -.4px; }
.fr-statbar__num small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.fr-statbar__pager { flex: none; margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fr-statbar__pager button {
  width: 28px; height: 28px; border: 0; background: transparent; color: #B9CBC4;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.fr-statbar__pager button:hover { color: var(--brand-deep); background: rgba(255,255,255,.75); }
.fr-statbar__pager i { width: 9px; height: 9px; border-radius: 3px; background: #CFE3DA; }
.fr-statbar__pager button svg { width: 14px; height: 14px; }

/* 兼容旧首页学习流结构 */
.fr-flow { padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.fr-flow__head { display: flex; align-items: center; justify-content: space-between; }
.fr-flow__head h2 { font-size: 21px; color: var(--ink); }
.fr-flow__more { color: var(--muted); font-size: 13px; }
.fr-task {
  display: flex; align-items: center; gap: 14px;
  background: var(--brand-pale); border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 17px;
}
.fr-task__ico {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  background: #fff; color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.fr-task__ico svg { width: 21px; height: 21px; }
.fr-task__body { flex: 1; min-width: 0; }
.fr-task__title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.fr-task__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fr-stats {
  margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px; padding: 20px 10px; backdrop-filter: blur(10px);
}
.fr-stat { text-align: center; position: relative; }
.fr-stat + .fr-stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.fr-stat__ico { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; }
.fr-stat__ico svg { width: 19px; height: 19px; }
.fr-stat__label { font-size: 13px; color: var(--muted); }
.fr-stat__num { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.fr-stat__num small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }

/* ---------- 练习页 ---------- */
.fr-practice { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.fr-quiz { padding: 30px 32px; }
.fr-quiz__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.fr-quiz__head h2 { font-size: 20px; }
.fr-quiz__sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.fr-stem { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.fr-options { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.fr-opt {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); background: var(--brand-pale);
  border-radius: 16px; padding: 16px 18px; font-size: 15.5px; color: var(--ink);
  transition: all .15s ease;
}
.fr-opt__key { flex: none; width: 30px; height: 30px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.fr-opt:hover { border-color: var(--brand-light); }
.fr-opt.is-picked { border-color: var(--brand-mid); background: var(--brand-soft); }
.fr-opt.is-picked .fr-opt__key { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.fr-opt.is-right { border-color: var(--brand-mid); background: #EAF9F4; }
.fr-opt.is-wrong { border-color: #F3B7B7; background: #FDEEEE; }
.fr-progress { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.fr-progress__bar { flex: 1; height: 8px; border-radius: 99px; background: #EAF2EF; overflow: hidden; }
.fr-progress__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-light), var(--brand-deep)); }
.fr-progress__num { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.fr-coach { padding: 24px; position: sticky; top: 96px; }
.fr-side__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fr-side__head img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #E9F8F2; }
.fr-side__head b { font-size: 15.5px; }
.fr-side__bubble { background: var(--brand-pale); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.fr-side__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fr-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* ---------- 助手页 ---------- */
.fr-assistant { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.fr-chat { padding: 26px 28px; min-height: 520px; display: flex; flex-direction: column; }
.fr-chat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fr-chat__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #E9F8F2; }
.fr-chat__head b { font-size: 17px; }
.fr-msgs { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.fr-msg { display: flex; gap: 10px; max-width: 72%; }
.fr-msg img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; flex: none; background: #E9F8F2; }
.fr-msg__bubble { background: #fff; border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; padding: 13px 16px; font-size: 14px; line-height: 1.7; color: var(--ink); box-shadow: var(--shadow); }
.fr-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.fr-msg.me .fr-msg__bubble { background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep)); color: #fff; border-radius: 18px 6px 18px 18px; }
.fr-plan { padding: 24px; }
.fr-plan h3 { font-size: 18px; margin-bottom: 18px; }
.fr-plan__row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fr-plan__row:last-of-type { border-bottom: 0; }
.fr-plan__ico { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; }
.fr-plan__name { flex: 1; font-weight: 700; font-size: 14.5px; }
.fr-plan__meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.fr-plan .fr-btn { width: 100%; margin-top: 18px; }

/* ---------- 错题页 ---------- */
.fr-wrong { display: grid; grid-template-columns: 230px 1fr 360px; gap: 26px; align-items: start; }
.fr-wrong__side { padding: 18px 14px; }
.fr-wrong__cat { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fr-wrong__cat.active { background: var(--brand-soft); color: var(--brand-deep); }
.fr-wrong__cat svg { width: 17px; height: 17px; }
.fr-wrong__list { display: flex; flex-direction: column; gap: 16px; }
.fr-wrong__item { padding: 20px 22px; display: flex; gap: 16px; }
.fr-wrong__thumb { flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-deep); font-weight: 800; }
.fr-wrong__main { flex: 1; min-width: 0; }
.fr-wrong__title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.fr-wrong__desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.fr-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); border-radius: 9px; padding: 4px 10px; }
.fr-wrong__detail { padding: 24px; position: sticky; top: 96px; }
.fr-wrong__detail h3 { font-size: 17px; margin-bottom: 16px; }
.fr-wrong__ans { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.fr-wrong__ans b { color: var(--brand-deep); }
.fr-wrong__detail .fr-btn { width: 100%; margin-top: 20px; }

/* ---------- 空态 ---------- */
.fr-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.fr-empty img { width: 130px; margin: 0 auto 16px; opacity: .95; }
.fr-empty p { font-size: 14px; }

/* ---------- 报告页 ---------- */
.fr-rpt { display: flex; flex-direction: column; gap: 20px; }
.fr-rpt__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fr-rpt__stat {
  display: flex; align-items: center; gap: 15px; padding: 20px 22px;
  background: rgba(255,255,255,.78); border: 1px solid var(--glass-line);
  border-radius: 22px; box-shadow: 0 16px 34px -26px rgba(16,153,124,.42);
  backdrop-filter: blur(12px);
}
.fr-rpt__stat .ico {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  background: #E4F8F0; color: var(--brand-glow);
  display: inline-flex; align-items: center; justify-content: center;
}
.fr-rpt__stat .ico svg { width: 22px; height: 22px; }
.fr-rpt__stat .label { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.fr-rpt__stat .num { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 2px; letter-spacing: -.4px; }
.fr-rpt__stat .num small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }

.fr-quota-strip {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.55); border: 1px solid var(--glass-line);
  border-radius: 16px; padding: 12px 18px;
}
.fr-quota-strip__label { flex: none; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.fr-panel { padding: 26px; }
.fr-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fr-panel__head h2 { font-size: 19px; }
.fr-rpt__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }

.fr-chart__body { display: flex; gap: 12px; }
.fr-chart__axis {
  flex: none; width: 40px; height: 220px; padding-bottom: 24px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  font-size: 12px; color: var(--muted);
}
.fr-trend { flex: 1; display: flex; align-items: flex-end; gap: 10px; height: 220px; }
.fr-trend__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.fr-trend__bar { width: 58%; max-width: 34px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--brand-mid), var(--brand-deep)); min-height: 5px; }
.fr-trend__cnt { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.fr-trend__day { font-size: 12.5px; color: var(--muted); }

.fr-levels__list { display: flex; flex-direction: column; gap: 11px; }
.fr-levels__row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(226,240,235,.9);
  border-radius: 16px; padding: 12px 14px;
}
.fr-levels__ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #E4F8F0; color: var(--brand-glow); display: inline-flex; align-items: center; justify-content: center; }
.fr-levels__ico svg { width: 18px; height: 18px; }
.fr-levels__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-levels__acc { flex: none; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.fr-rpt__hint {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.72); border: 1px solid var(--glass-line);
  border-radius: 24px; padding: 18px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -32px rgba(16,153,124,.45);
}
.fr-rpt__hint img { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #E9F8F2; }
.fr-rpt__hint__body { flex: 1; min-width: 0; }
.fr-rpt__hint__body b { font-size: 16px; }
.fr-rpt__hint__body p { font-size: 14px; color: var(--ink-2); margin-top: 3px; line-height: 1.6; }
.fr-rpt__hint__chev { flex: none; color: var(--muted); }
.fr-rpt__hint__chev svg { width: 20px; height: 20px; }

.fr-prog { display: flex; flex-direction: column; gap: 18px; }
.fr-prog__row { display: flex; align-items: center; gap: 16px; }
.fr-prog__main { flex: 1; min-width: 0; }
.fr-prog__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.fr-prog__meta { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fr-prog__bar { height: 9px; border-radius: 99px; background: #EAF2EF; overflow: hidden; }
.fr-prog__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-light), var(--brand-deep)); }
.fr-quota { display: flex; align-items: center; gap: 14px; flex: 1; }
.fr-quota__bar { flex: 1; height: 10px; border-radius: 99px; background: #EAF2EF; overflow: hidden; }
.fr-quota__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--brand-deep)); }

/* 掌握度标签 */
.fr-level { font-size: 12px; font-weight: 700; border-radius: 9px; padding: 4px 11px; white-space: nowrap; }
.fr-level--good { color: var(--brand-deep); background: var(--brand-soft); }
.fr-level--mid { color: #2E8B74; background: #EAF4F0; }
.fr-level--weak { color: var(--warn); background: #FDF1E7; }

/* ---------- 消息通知页 ---------- */
.fr-notify { display: flex; flex-direction: column; gap: 18px; }
.fr-notify__hero {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #F2FBF8);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: 22px 24px;
}
.fr-notify__hero img { width: 54px; height: 54px; border-radius: 50%; object-fit: contain; background: #E9F8F2; }
.fr-notify__hero b { font-size: 17px; }
.fr-notify__hero p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.fr-notify__badge { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.fr-nlist { display: flex; flex-direction: column; gap: 16px; }
.fr-nitem {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.fr-nitem__ico { flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--brand-soft); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; }
.fr-nitem__ico svg { width: 23px; height: 23px; }
.fr-nitem__ico--warn { background: #FDF1E7; color: var(--warn); }
.fr-nitem__body { flex: 1; min-width: 0; }
.fr-nitem__title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.fr-nitem__desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.fr-nitem__time { flex: none; font-size: 12.5px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .fr-home__grid { grid-template-columns: 1fr; gap: 28px; }
  .fr-hero { min-height: 460px; }
  .fr-practice, .fr-assistant, .fr-wrong, .fr-rpt__grid { grid-template-columns: 1fr; }
  .fr-coach, .fr-wrong__detail { position: static; }
  .fr-wrong__side { display: flex; flex-wrap: wrap; gap: 8px; }
  .fr-nav a { padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 820px) {
  .fr-navrow { padding: 12px 18px; gap: 10px; }
  .fr-nav { overflow-x: auto; }
  .fr-nav a svg { display: none; }
  .fr-wrap, .fr-topbar { padding-left: 18px; padding-right: 18px; }
  .fr-rpt__stats { grid-template-columns: repeat(2, 1fr); }
  .fr-statbar { flex-wrap: wrap; }
  .fr-statbar__cell { min-width: 45%; }
}

/* ============================================================
   首页 v5（对齐最终产品稿）：左宽右窄 + 今日统计 + 圈子动态
   仅作用于桌面 /fresh/ 首页，类名前缀 frh-，不影响手机版
   ============================================================ */
.frh-home { display: flex; flex-direction: column; gap: 40px; }

.frh-grid {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: 40px; align-items: start;
}
.frh-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.frh-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* 问候 + 副标题 */
.frh-hello { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.6px; line-height: 1.25; }
.frh-sub { font-size: 15px; color: var(--ink-2); margin-top: 8px; }

/* 搜索栏 */
/* 搜索卡（对齐线上主站：搜索行 + 问初讯小智排计划入口） */
.frh-searchcard {
  width: 100%; max-width: 620px;
  background: #fff;
  border: 1px solid #D6E7E2;
  border-radius: 18px; padding: 6px 6px 8px;
  box-shadow: 0 16px 34px -26px rgba(12,59,54,.55);
  display: flex; flex-direction: column;
}
.frh-search {
  display: flex; align-items: center; gap: 0;
  height: 58px; padding: 4px 6px 4px 10px; margin: 0;
  background: transparent; border: 0; box-shadow: none;
}
.frh-search__cat { display: inline-flex; align-items: center; position: relative; flex: none; }
.frh-search__cat select {
  -webkit-appearance: none; appearance: none;
  border: 0; background: transparent; font-family: inherit;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 8px 24px 8px 8px; outline: none; cursor: pointer;
}
.frh-caret {
  position: absolute; right: 6px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid #96AEA8; border-bottom: 1.5px solid #96AEA8;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.frh-search__cat::after {
  content: ""; width: 1px; height: 22px; margin-left: 2px;
  background: #E7F0ED;
}
.frh-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 0 14px;
}
.frh-search input::placeholder { color: #9DB1AB; }
.frh-search__btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 20px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, #15786B, #0A534B);
  color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 12px 22px -16px rgba(10,83,75,.9);
}
.frh-search__btn svg { width: 15px; height: 15px; }
.frh-search__btn:hover { filter: brightness(1.06); }

/* 问初讯小智入口条（ai-plan.js 注入 .ai-entry 基础样式，这里补分隔线） */
.frh-searchcard .ai-entry {
  border-top: 1px solid #EAF2EF;
  border-radius: 0 0 12px 12px;
  padding: 9px 10px 8px;
}
.frh-searchcard .ai-entry .ai-ico { background: linear-gradient(135deg,#17A08F,#0B5F57); }

/* 今日学习流（复用 .fr-flow-card / .fr-flow-row） */
.frh-flow { padding: 26px 26px 22px; gap: 16px; }
.frh-flow .fr-flow-row { padding: 18px 20px; gap: 16px; }
.fr-flow-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fr-flow-row__body .fr-flow-row__title { flex: none; font-size: 16.5px; }
.frh-flow-row__sub { font-size: 13px; color: var(--muted); }

/* 今日统计玻璃卡 */
.frh-statcard {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--glass-line);
  border-radius: 26px; padding: 24px 26px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px -34px rgba(16,153,124,.45);
}
.frh-statcard__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.frh-statcard__trio { display: flex; margin-top: 18px; }
.frh-statcard__cell { flex: 1; text-align: center; }
.frh-statcard__cell b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.frh-statcard__cell small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }

/* 右栏小智 */
.frh-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; justify-content: center; }
.frh-hero__bubble {
  position: absolute; top: 4%; left: 2%;
  padding: 14px 18px; border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 38px -30px rgba(16,153,124,.5);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.frh-hero__bubble::after {
  content: ""; position: absolute; left: 14px; bottom: -10px;
  width: 22px; height: 22px; border-radius: 50% 50% 50% 10px;
  background: rgba(255,255,255,.72); transform: rotate(-16deg);
}
.frh-hero__mascot { width: 62%; max-width: 320px; }
.frh-hero__mascot img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgba(16,153,124,.16)); }

/* 圈子 · 热门动态 */
.frh-circle { display: flex; flex-direction: column; gap: 20px; }
.frh-circle__head { display: flex; align-items: center; justify-content: space-between; }
.frh-circle__head h2 { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.frh-circle__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.frh-circle__more svg { width: 16px; height: 16px; }
.frh-circle__more:hover { color: var(--brand-deep); }
.frh-circle__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.frh-post {
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--glass-line);
  border-radius: 22px; padding: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .18s ease, transform .18s ease;
}
.frh-post:hover { box-shadow: 0 18px 34px -26px rgba(16,153,124,.55); transform: translateY(-1px); }
.frh-post__head { display: flex; align-items: center; gap: 12px; }
.frh-post__avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.frh-post__meta { min-width: 0; }
.frh-post__meta b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.frh-post__meta span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frh-post__excerpt {
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.frh-post__foot { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.frh-post__foot span { display: inline-flex; align-items: center; gap: 6px; }
.frh-post__foot svg { width: 15px; height: 15px; }

/* 响应式 */
@media (max-width: 1240px) {
  .frh-grid { grid-template-columns: 1fr; gap: 28px; }
  .frh-side { order: 2; }
  .frh-hero { min-height: 320px; }
  .frh-circle__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .frh-home { gap: 28px; }
  .frh-search { height: 56px; }
  .frh-search__btn { height: 42px; padding: 0 18px; }
  .frh-circle__grid { grid-template-columns: 1fr; }
  .frh-hello { font-size: 26px; }
}
