/* ═══════════════════════════════════════════════════════
   天智无痛英语 v2.0 · 高端雅致版
   替换原 tianzhi-v2.css 即可
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #F5F4EF;
  --bg2: #EFF3EB;
  --surface: #FFFFFF;
  --surface-warm: #FDFCF9;
  --ink: #1A2E22;
  --ink-2: #2E4438;
  --muted: #7B8E80;
  --caption: #A0ADA3;
  --green: #2A6E4E;
  --green-soft: #3D8A65;
  --green-bg: #EAF4ED;
  --green-bg2: rgba(42,110,78,.07);
  --gold: #C4A24D;
  --gold-soft: #E8D9A4;
  --gold-bg: #FBF6E8;
  --orange: #C97B52;
  --line: #E4E0D6;
  --line-2: #EEEBE3;
  --serif: "Noto Serif SC","Songti SC","STSong","Georgia","Times New Roman",serif;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  --navH: 76px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 2px 12px rgba(30,50,35,.05);
  --shadow-lg: 0 8px 30px rgba(30,50,35,.07);
  --ease: cubic-bezier(.25,.46,.45,.94);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--sans);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
::selection{background:rgba(42,110,78,.15)}
.page{min-height:100vh;padding:20px 18px calc(var(--navH) + 24px)}
.shell{max-width:980px;margin:0 auto}
.home-shell{max-width:500px}
.wide-shell{max-width:1180px}
.compact-shell{max-width:920px}

/* ─── Hero ─── */
.hero{
  position:relative;
  display:flex;flex-direction:column;align-items:center;
  padding:34px 28px 30px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow-lg);
  text-align:center;
  overflow:hidden;
}
.hero::before{
  content:"";position:absolute;
  width:220px;height:220px;border-radius:50%;
  top:-90px;right:-50px;
  background:radial-gradient(circle, rgba(42,110,78,.05) 0%, transparent 70%);
  pointer-events:none;
}
.hero::after{
  content:"";position:absolute;
  width:160px;height:160px;border-radius:50%;
  bottom:-70px;left:-30px;
  background:radial-gradient(circle, rgba(196,162,77,.05) 0%, transparent 70%);
  pointer-events:none;
}
.angel{
  position:relative;z-index:1;
  width:142px;height:142px;border-radius:30px;
  background:linear-gradient(145deg,#F7FCF7,#FFFFFF);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 34px rgba(42,110,78,.12), inset 0 0 0 1px rgba(255,255,255,.72);
  border:1px solid rgba(42,110,78,.14);
  flex:0 0 auto;margin-bottom:20px;
  overflow:hidden;
}
.angel svg{width:72px;height:72px}
.angel-image img{
  width:100%;height:100%;display:block;object-fit:contain;object-position:center;
  transform:none;
}

.hero-text{position:relative;z-index:1}
.brand{
  font-family:var(--serif);
  font-size:28px;line-height:1.2;font-weight:700;
  letter-spacing:.12em;color:var(--green);
}
.welcome{
  font-size:15px;line-height:1.4;font-weight:400;
  margin-top:6px;color:var(--muted);letter-spacing:.06em;
}
.safe-line{
  position:relative;z-index:1;
  display:inline-flex;align-items:center;gap:8px;
  margin-top:18px;padding:8px 20px;
  border-radius:999px;
  background:var(--green-bg);
  color:var(--green);
  font-size:12.5px;font-weight:500;letter-spacing:.04em;
  border:1px solid rgba(42,110,78,.10);
}
.safe-dot{
  width:7px;height:7px;border-radius:50%;flex:none;
  background:#6DC48E;
  box-shadow:0 0 0 3px rgba(109,196,142,.20);
}

/* ─── 三句箴言 ─── */
.motto-row{display:flex;justify-content:center;gap:16px;margin:22px 0 30px}
.motto{
  flex:0 1 128px;position:relative;
  padding:16px 10px 15px;
  border-radius:22px;
  text-align:center;
  font-size:14.5px;line-height:1.66;font-weight:600;
  letter-spacing:.045em;overflow:hidden;
  border:1.5px solid rgba(255,255,255,.85);
  box-shadow:0 10px 22px rgba(30,50,35,.08), inset 0 1.5px 0 rgba(255,255,255,.85);
}
.motto::before{content:"";position:absolute;left:0;right:0;top:0;height:46%;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,0));pointer-events:none}
.motto-ico{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0 auto 9px;border-radius:11px;background:rgba(255,255,255,.78);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.9),0 3px 8px rgba(30,50,35,.08)}
.motto-ico svg{width:18px;height:18px;display:block}
.motto m1 .motto-ico,.motto.m1 .motto-ico{color:#5E8A60}
.motto.m2 .motto-ico{color:#5A8AB0}
.motto.m3 .motto-ico{color:#C98A2E}
.m1{
  color:#2E654B;
  background:linear-gradient(155deg,#F7F2C9 0%,#EEF7DF 55%,#FDFCF7 100%);
  border:1px solid rgba(196,162,77,.34);
}
.m2{
  color:#315D67;
  background:linear-gradient(155deg,#EAF5F1 0%,#E3F0F8 55%,#FDFCF7 100%);
  border:1px solid rgba(101,155,173,.28);
}
.m3{
  color:#735E28;
  background:linear-gradient(155deg,#FBF0D8 0%,#F4E6BD 55%,#FFFDF7 100%);
  border:1px solid rgba(196,162,77,.38);
}
.motto::after{
  content:"";position:absolute;
  right:-14px;top:-14px;width:58px;height:58px;border-radius:50%;
  background:rgba(255,255,255,.45);pointer-events:none;
}
.motto::before{
  content:"";position:absolute;inset:4px;border-radius:18px;
  border:1px solid rgba(255,255,255,.62);pointer-events:none;
}

/* ─── 学习室标题 ─── */
.section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 0 14px;padding:0 2px;
}
.room-title{
  display:flex;align-items:center;gap:8px;
  font-family:var(--serif);
  font-size:20px;font-weight:700;
  color:var(--ink);letter-spacing:.03em;
}
.room-ico{
  width:30px;height:30px;border-radius:10px;
  background:var(--green);color:#fff;
  display:grid;place-items:center;
  font-size:13px;font-weight:700;
  box-shadow:0 2px 8px rgba(42,110,78,.18);
  font-family:var(--serif);
}
.guide-btn{
  font-size:13px;font-weight:500;color:var(--green);
  padding:7px 14px;border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);letter-spacing:.02em;
  transition:all .2s var(--ease);
}
.guide-btn:active{background:var(--green-bg);border-color:rgba(42,110,78,.2)}

/* ─── Zone 卡片 ─── */
.zone-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.zone-card{
  position:relative;
  display:flex;flex-direction:column;justify-content:space-between;
  min-height:112px;
  padding:18px 16px 14px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.zone-card:active{transform:scale(.97);box-shadow:0 1px 4px rgba(30,50,35,.03)}
.zone-card::before{
  content:"";position:absolute;left:14px;right:14px;top:0;
  height:3px;border-radius:0 0 3px 3px;
}
.z1::before{background:linear-gradient(90deg,#6DC48E,#4AAA72)}
.z2::before{background:linear-gradient(90deg,#5EB5D0,#3E98B8)}
.z3::before{background:linear-gradient(90deg,#E8B44D,#D4A03C)}
.z4::before{background:linear-gradient(90deg,#D48E6A,#C07852)}
.z5::before{background:linear-gradient(90deg,#9B8ED8,#7E72C0)}
.z6::before{background:linear-gradient(90deg,#E87E8A,#D06872)}
.z7::before{background:linear-gradient(90deg,#6DBBAA,#4FA898)}
.z8::before{background:linear-gradient(90deg,#A0A0B8,#8888A2)}
.zone-title{
  font-size:18px;line-height:1.3;font-weight:700;
  letter-spacing:-.01em;color:var(--ink);
  position:relative;z-index:1;
}
.zone-desc{
  font-size:12.5px;line-height:1.5;color:var(--muted);
  margin-top:4px;position:relative;z-index:1;
}
.zone-foot{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:10px;position:relative;z-index:1;
}
.zone-ico{
  width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;
  background:var(--bg);border:1px solid var(--line-2);
  font-size:15px;line-height:1;
}
.zone-arrow{
  font-size:18px;color:var(--caption);font-weight:300;
  transition:transform .2s var(--ease);
}
.zone-card:active .zone-arrow{transform:translateX(3px)}

/* ─── 底部标语 ─── */
.footer-slogan{
  text-align:center;color:var(--caption);
  margin:24px 0 0;font-size:13px;line-height:1.7;letter-spacing:.08em;
}

/* ─── 底部导航 ─── */
.bottom-nav{
  position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:50;
  width:min(420px,calc(100vw - 36px));height:var(--navH);
  border-radius:24px;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(140%) blur(18px);
  -webkit-backdrop-filter:saturate(140%) blur(18px);
  box-shadow:0 4px 24px rgba(30,50,35,.08), inset 0 0 0 1px rgba(230,226,217,.5);
  display:grid;grid-template-columns:repeat(4,1fr);align-items:center;
}
.nav-item{
  height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  color:var(--caption);font-size:11px;font-weight:500;letter-spacing:.02em;
}
.nav-item svg{width:22px;height:22px}
.nav-item.active{color:var(--green)}
.nav-item.active .nav-bubble{
  padding:8px 18px;border-radius:18px;
  background:var(--green-bg);
  display:flex;flex-direction:column;align-items:center;gap:2px;
}

/* ═══════════════════════════════════════════════════════
   子页面通用
   ═══════════════════════════════════════════════════════ */
.sub-hero{
  position:relative;border-radius:24px;
  background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow-lg);padding:28px 26px;margin:0 0 20px;overflow:hidden;
}
.sub-hero::after{
  content:"";position:absolute;right:-40px;top:-40px;
  width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle, rgba(42,110,78,.05) 0%, transparent 70%);
  pointer-events:none;
}
.sub-kicker{color:var(--green);font-weight:600;font-size:13px;letter-spacing:.06em}
.sub-title{font-family:var(--serif);font-size:28px;line-height:1.25;margin:8px 0;font-weight:700;color:var(--ink)}
.sub-desc{font-size:14.5px;color:var(--muted);line-height:1.7}
.back-link{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow);margin:0 0 12px;font-size:18px;color:var(--muted);
}
.unit-strip{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.unit-pill{
  border-radius:999px;padding:8px 15px;
  border:1px solid var(--line);background:var(--surface);
  color:var(--ink-2);font-weight:600;font-size:14px;
}
.unit-pill.primary{background:var(--green);color:#fff;border-color:var(--green)}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.link-card{
  min-height:100px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow);padding:16px;position:relative;overflow:hidden;
}
.link-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--green),var(--green-soft));border-radius:0 2px 2px 0;
}
.link-card h3{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--ink)}
.link-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.tag{
  display:inline-block;border-radius:999px;
  background:var(--green-bg);color:var(--green);
  padding:3px 10px;font-size:11px;margin-top:8px;
  border:1px solid rgba(42,110,78,.12);font-weight:500;
}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.tabs{display:flex;gap:6px;overflow-x:auto;padding:2px;-webkit-overflow-scrolling:touch}
.tab{
  white-space:nowrap;border:1px solid var(--line);
  background:var(--surface);border-radius:999px;
  padding:8px 14px;font-weight:600;color:var(--muted);font-size:13.5px;
}
.tab.active{background:var(--green);color:#fff;border-color:var(--green)}
.learn-card{
  background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow);border-radius:var(--radius);
  padding:20px;margin-bottom:14px;
}
.learn-card h2{font-family:var(--serif);font-size:20px;font-weight:700;margin:0 0 14px;color:var(--ink)}
.word-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.word-card{
  background:var(--surface-warm);border:1px solid var(--line-2);
  border-radius:var(--radius-sm);padding:14px;
}
.word{font-size:18px;font-weight:700;color:var(--ink)}
.meaning{color:var(--muted);margin-top:4px;font-size:13px}
.play-btn,.soft-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  border:0;border-radius:999px;background:var(--green);color:#fff;
  padding:7px 14px;font-weight:600;cursor:pointer;margin-top:10px;font-size:13px;
}
.play-btn:active,.soft-btn:active{opacity:.7}
.soft-btn{background:var(--gold-bg);color:var(--gold);border:1px solid var(--gold-soft)}
.sentence-list{display:grid;gap:10px}
.sentence{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--line);background:var(--surface);
  border-radius:var(--radius-sm);padding:14px;
}
.sentence strong{font-size:16px;color:var(--ink)}
.sentence p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.passage{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);padding:16px;margin-bottom:12px}
.passage h3{margin:0 0 8px;font-size:16px;font-weight:700}
.line{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed var(--line-2);padding:10px 0;font-size:14px}
.placeholder-art{
  height:140px;border-radius:var(--radius);
  background:linear-gradient(145deg,var(--green-bg),var(--gold-bg));
  display:grid;place-items:center;margin-top:16px;
  border:1px solid var(--line);font-size:48px;
}
.project-frame{width:100%;height:70vh;border:0;border-radius:var(--radius);background:#fff;border:1px solid var(--line)}

/* ─── 响应式 ─── */
@media (min-width:900px){
  .home-shell{max-width:680px}
  .zone-grid{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:repeat(3,1fr)}
  .hero{padding:42px 36px 36px}
  .angel{width:168px;height:168px;border-radius:34px;margin-bottom:22px}
  .brand{font-size:32px}
  .room-title{font-size:22px}
  .page{padding-left:32px;padding-right:32px}
  .bottom-nav{width:520px}
  .word-grid{grid-template-columns:repeat(5,1fr)}
}
@media (max-width:390px){
  .brand{font-size:25px}
  .angel{width:128px;height:128px;border-radius:28px;margin-bottom:18px}
  .motto-row{gap:10px}
  .motto{font-size:13.5px;padding:13px 6px 11px;flex-basis:105px;border-radius:20px}
  .zone-title{font-size:16px}
  .room-title{font-size:18px}
  .bottom-nav{width:calc(100vw - 28px)}
  .word-grid{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:1fr}
}
@media (max-width:720px){
  .sentence{align-items:flex-start;flex-direction:column}
  .project-frame{height:60vh}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* v2.4 hero and zone card refinements */
.hero .angel{
  width:clamp(220px, 46vw, 280px);
  height:clamp(220px, 46vw, 280px);
  border-radius:28px;
  margin-bottom:18px;
  background:linear-gradient(145deg,#f8fffb,#ffffff);
}
.hero .brand{
  font-size:28px;
  letter-spacing:.10em;
}
.hero .welcome{
  font-size:18px;
  color:#6e8176;
  margin-top:8px;
}
@media (max-width:380px){
  .hero .angel{width:204px;height:204px;}
  .hero .brand{font-size:25px;}
  .hero .welcome{font-size:16.5px;}
}

.zone-card{
  min-height:108px;
  padding:16px 82px 14px 16px;
}
.zone-copy{position:relative;z-index:2;}
.zone-foot,.zone-ico,.zone-arrow{display:none!important;}
.zone-mascot{
  position:absolute;
  right:12px;
  bottom:10px;
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(220,205,156,.55);
  box-shadow:0 5px 14px rgba(30,50,35,.08), inset 0 0 0 1px rgba(255,255,255,.72);
  z-index:1;
}
.zone-card::after{
  content:"";
  position:absolute;
  right:-18px;
  bottom:-26px;
  width:100px;
  height:100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.64),rgba(255,255,255,0) 68%);
  pointer-events:none;
}
@media (min-width:768px){
  .hero .angel{width:240px;height:240px;}
  .zone-card{min-height:104px;padding-right:86px;}
  .zone-mascot{width:62px;height:62px;}
}

/* v2.5 首页最终优化：专区卡片双行标题 + 等高玩偶图标 */
.hero .welcome{
  font-size:21px;
  color:#5f7569;
  margin-top:10px;
}

.zone-card{
  min-height:112px;
  padding:18px 46% 18px 18px;
  display:flex;
  justify-content:center;
  border-radius:21px;
  overflow:hidden;
}
.zone-card::after{display:none;}
.zone-copy{
  height:100%;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:3;
}
.zone-title{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:18px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
}
.zone-title span{display:block;}
.zone-desc{display:none!important;}
.zone-mascot{display:none!important;}
.zone-photo{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:43%;
  height:100%;
  border-radius:0 21px 21px 0;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(248,245,235,.72));
  border-left:1px solid rgba(215,196,132,.35);
  z-index:1;
}
.zone-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(255,255,255,.35) 35%,rgba(255,255,255,0) 70%);
  z-index:2;
  pointer-events:none;
}
.zone-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  transform:scale(1.04);
}

@media (max-width:390px){
  .hero .welcome{font-size:19px;}
  .zone-card{min-height:104px;padding:16px 45% 16px 15px;}
  .zone-title{font-size:16px;line-height:1.18;gap:2px;}
}
@media (min-width:768px){
  .hero .welcome{font-size:22px;}
  .zone-card{min-height:112px;padding-right:43%;}
  .zone-title{font-size:18px;}
  .zone-photo{width:40%;}
}


/* v2.6 专区玩偶图标优化：缩小到约70%，透明底显示 */
.zone-card{
  padding:18px 34% 18px 18px;
}
.zone-photo{
  width:32%;
  right:6px;
  top:8px;
  bottom:8px;
  height:auto;
  border-radius:18px;
  background:transparent!important;
  border-left:0!important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
.zone-photo::before{display:none!important;}
.zone-photo img{
  width:70%;
  height:70%;
  object-fit:contain;
  object-position:center center;
  transform:none!important;
  filter:drop-shadow(0 8px 12px rgba(44,58,47,.12));
}
@media (max-width:390px){
  .zone-card{padding:16px 34% 16px 15px;}
  .zone-photo{width:32%;right:5px;top:8px;bottom:8px;}
  .zone-photo img{width:70%;height:70%;}
}
@media (min-width:768px){
  .zone-card{padding-right:30%;}
  .zone-photo{width:28%;right:10px;}
  .zone-photo img{width:70%;height:70%;}
}

/* v2.7 专区引路者图标：使用用户提供的透明PNG，不再做抠图处理 */
.zone-card{
  padding:18px 36% 18px 18px;
}
.zone-photo{
  width:36%;
  right:2px;
  top:4px;
  bottom:4px;
  background:transparent!important;
  border-left:0!important;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
  pointer-events:none;
}
.zone-photo::before{display:none!important;}
.zone-photo img{
  width:auto;
  height:92%;
  max-width:100%;
  object-fit:contain;
  object-position:center bottom;
  transform:none!important;
  filter:drop-shadow(0 8px 12px rgba(44,58,47,.10));
}
@media (max-width:390px){
  .zone-card{padding:16px 38% 16px 15px;}
  .zone-title{font-size:16px;line-height:1.18;}
  .zone-photo{width:38%;right:1px;top:5px;bottom:5px;}
  .zone-photo img{height:90%;}
}
@media (min-width:768px){
  .zone-card{padding-right:34%;}
  .zone-photo{width:32%;right:4px;top:5px;bottom:5px;}
  .zone-photo img{height:92%;}
}


/* v2.8 单词专区重构：专区只选单元，单元页只呈现12个词 */
.zone-clean-hero{
  padding:26px 24px;
  margin-bottom:18px;
}
.zone-clean-hero .sub-title{margin-bottom:0;}
.unit-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.unit-card-simple{
  position:relative;
  min-height:102px;
  border-radius:22px;
  background:linear-gradient(145deg,#fffefb 0%,#f8fbf5 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 16px 18px 18px;
  overflow:hidden;
}
.unit-card-simple::before{
  content:"";
  position:absolute;
  left:0;top:14px;bottom:14px;width:4px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,var(--green),var(--green-soft));
}
.unit-card-simple::after{
  content:"";
  position:absolute;
  right:-28px;top:-34px;width:104px;height:104px;border-radius:50%;
  background:radial-gradient(circle,rgba(196,162,77,.10),rgba(196,162,77,0) 68%);
}
.unit-card-title{
  position:relative;z-index:2;
  font-family:var(--serif);
  font-size:20px;font-weight:700;letter-spacing:.02em;color:var(--ink);
}
.unit-card-icon{
  position:relative;z-index:2;
  width:46px;height:46px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(228,224,214,.75);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72), 0 4px 12px rgba(30,50,35,.05);
}
.unit-card-icon svg{width:38px;height:38px;display:block;}
.u2::before{background:linear-gradient(180deg,#E8B44D,#D4A03C)}
.u3::before{background:linear-gradient(180deg,#6DBBAA,#4FA898)}
.u4::before{background:linear-gradient(180deg,#7E72C0,#9B8ED8)}
.u5::before{background:linear-gradient(180deg,#D48E6A,#C07852)}
.u6::before{background:linear-gradient(180deg,#E87E8A,#D06872)}
.u7::before{background:linear-gradient(180deg,#5EB5D0,#3E98B8)}
.u8::before{background:linear-gradient(180deg,#A0A0B8,#8888A2)}
.u9::before{background:linear-gradient(180deg,#75B66A,#3D8A65)}
.u10::before{background:linear-gradient(180deg,#C4A24D,#8F7B3C)}
.unit-word-hero{
  padding:24px 24px 22px;
  margin-bottom:16px;
}
.unit-word-hero .sub-title{margin-bottom:0;}
.words-only-card{padding:16px;}
.word-grid.word-grid-12{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px;
}
.word-card-simple{
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  padding:14px 12px;
  border-radius:18px;
  background:linear-gradient(145deg,#fffefb,#fbfaf4);
  border:1px solid #e9e5dc;
  box-shadow:0 2px 8px rgba(30,50,35,.035);
}
.word-card-simple .word{
  font-size:18px;
  line-height:1.15;
  word-break:break-word;
}
.word-card-simple .meaning{
  font-size:12.5px;
  line-height:1.35;
  min-height:34px;
}
.word-card-simple .play-btn{
  align-self:center;
  margin-top:8px;
  min-width:46px;
  padding:7px 12px;
}
@media (min-width:768px){
  .unit-card-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
  .unit-card-simple{min-height:112px;}
  .word-grid.word-grid-12{max-width:720px;margin:0 auto;}
}
@media (max-width:390px){
  .unit-card-grid{gap:10px;}
  .unit-card-simple{min-height:92px;padding:15px 12px 15px 14px;border-radius:20px;}
  .unit-card-title{font-size:18px;}
  .unit-card-icon{width:40px;height:40px;border-radius:14px;}
  .unit-card-icon svg{width:32px;height:32px;}
  .words-only-card{padding:12px;}
  .word-grid.word-grid-12{gap:8px;}
  .word-card-simple{min-height:124px;padding:12px 9px;border-radius:16px;}
  .word-card-simple .word{font-size:16px;}
  .word-card-simple .meaning{font-size:12px;}
}


/* v2.9 单词页底部：返回专区 / 下一单元 */
.unit-step-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:16px 2px 96px;
}
.unit-step-btn{
  min-height:58px;
  border-radius:22px;
  border:1px solid rgba(216,211,198,.92);
  background:linear-gradient(145deg,rgba(255,255,252,.96),rgba(247,252,245,.92));
  box-shadow:0 10px 26px rgba(39,74,53,.08), inset 0 1px 0 rgba(255,255,255,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
  position:relative;
  overflow:hidden;
}
.unit-step-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 82% 18%,rgba(204,232,192,.45),transparent 38%);
  opacity:.9;
  pointer-events:none;
}
.unit-step-btn.next{
  background:linear-gradient(145deg,rgba(255,253,246,.98),rgba(255,247,226,.92));
}
.unit-step-btn.next::before{
  background:radial-gradient(circle at 18% 18%,rgba(236,202,118,.35),transparent 38%);
}
.unit-step-btn b{
  position:relative;z-index:2;
  display:block;
  font-size:15px;
  line-height:1.15;
  font-weight:700;
}
.unit-step-btn em{
  position:relative;z-index:2;
  display:block;
  margin-top:4px;
  font-style:normal;
  font-size:11px;
  color:var(--muted);
  font-weight:500;
}
.step-arrow{
  position:relative;z-index:2;
  width:30px;height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--green);
  font-size:24px;
  line-height:1;
  font-family:Arial, sans-serif;
  box-shadow:0 8px 18px rgba(42,110,78,.18);
}
.unit-step-btn.next .step-arrow{
  background:#d89a45;
  box-shadow:0 8px 18px rgba(216,154,69,.18);
}
@media (max-width:390px){
  .unit-step-nav{gap:10px;margin:14px 0 92px;}
  .unit-step-btn{min-height:54px;border-radius:20px;gap:8px;}
  .unit-step-btn b{font-size:14px;}
  .unit-step-btn em{font-size:10.5px;}
  .step-arrow{width:28px;height:28px;font-size:22px;}
}

/* v3.0 句子专区重构：专区只选单元，单元页只呈现12个常用句子 */
.sentence-zone-hero{
  background:linear-gradient(145deg,#fffdf8 0%,#f7fbff 100%);
}
.sentence-unit-card::before{
  background:linear-gradient(180deg,#E8B44D,#6DBBAA);
}
.unit-sentence-hero{
  padding:24px 24px 22px;
  margin-bottom:16px;
  background:linear-gradient(145deg,#fffdf8 0%,#f7fbff 100%);
}
.unit-sentence-hero .sub-title{margin-bottom:0;}
.sentences-only-card{
  padding:14px;
}
.sentence-card-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.sentence-card-simple{
  position:relative;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  min-height:74px;
  border-radius:18px;
  background:linear-gradient(145deg,#fffefb,#fbfaf4);
  border:1px solid #e9e5dc;
  box-shadow:0 2px 8px rgba(30,50,35,.035);
  padding:12px 12px;
  overflow:hidden;
}
.sentence-card-simple::before{
  content:"";
  position:absolute;
  left:0;top:12px;bottom:12px;width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,var(--green),#E8B44D);
}
.sentence-num{
  width:30px;height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef8ef;
  color:var(--green);
  font-size:12px;
  font-weight:700;
  font-family:Arial, sans-serif;
}
.sentence-main{min-width:0;}
.sentence-en{
  font-size:17px;
  line-height:1.28;
  font-weight:800;
  color:var(--ink);
  word-break:normal;
}
.sentence-zh{
  margin-top:5px;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
}
.sentence-play{
  min-width:46px;
  padding:8px 12px;
  border-radius:999px;
}
.sentence-step-nav .unit-step-btn.next{
  background:linear-gradient(145deg,rgba(255,253,246,.98),rgba(239,249,252,.94));
}
.sentence-step-nav .unit-step-btn.next .step-arrow{
  background:#58a99b;
  box-shadow:0 8px 18px rgba(88,169,155,.18);
}
@media (min-width:768px){
  .sentences-only-card{padding:18px;}
  .sentence-card-simple{grid-template-columns:40px 1fr auto;min-height:78px;padding:14px 16px;}
  .sentence-en{font-size:19px;}
  .sentence-zh{font-size:14px;}
}
@media (max-width:390px){
  .sentences-only-card{padding:12px;}
  .sentence-card-simple{grid-template-columns:30px 1fr auto;gap:8px;min-height:70px;padding:11px 10px;border-radius:16px;}
  .sentence-num{width:27px;height:27px;font-size:11px;}
  .sentence-en{font-size:15.5px;line-height:1.25;}
  .sentence-zh{font-size:12px;margin-top:4px;}
  .sentence-play{min-width:42px;padding:7px 10px;}
}

/* v3.1 48个音标专区：一行一音标，5个例词，整体懒人模式 */
.phonetics-hero{
  background:linear-gradient(145deg,#fffdf8 0%,#f7fbff 100%);
  padding-bottom:22px;
}
.lazy-read-btn{
  margin-top:12px;
  border:0;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  padding:10px 18px;
  font-weight:800;
  font-size:14px;
  box-shadow:0 10px 22px rgba(42,110,78,.18);
}
.lazy-read-btn.playing{background:#c86f56;}
.phonetic-guide{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.76);
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6;
}
.vowel-dot,.consonant-dot{
  width:10px;height:10px;border-radius:999px;display:inline-block;
}
.vowel-dot{background:#e58aa5;box-shadow:0 0 0 4px rgba(229,138,165,.13);}
.consonant-dot{background:#5c8fc8;box-shadow:0 0 0 4px rgba(92,143,200,.13);}
.mark-demo,.ph-word-mark{color:#d84b3f;font-weight:900;}
.phonetic-section{margin:18px 0 20px;}
.phonetic-section h2{
  font-family:var(--serif);
  font-size:20px;
  margin:0 0 12px;
  color:var(--ink);
}
.phonetic-list{display:grid;gap:10px;}
.phonetic-row{
  position:relative;
  display:grid;
  grid-template-columns:72px 1fr 46px;
  gap:10px;
  align-items:center;
  min-height:86px;
  padding:12px;
  border-radius:20px;
  border:1px solid #e8e3d9;
  background:linear-gradient(145deg,#fffefb,#fbfaf4);
  box-shadow:0 2px 10px rgba(30,50,35,.04);
  overflow:hidden;
}
.phonetic-row::before{
  content:"";
  position:absolute;left:0;top:12px;bottom:12px;width:4px;
  border-radius:0 4px 4px 0;
}
.vowel-row::before{background:linear-gradient(180deg,#e58aa5,#e8b44d);}
.consonant-row::before{background:linear-gradient(180deg,#5c8fc8,#6dbbaa);}
.phonetic-row.active-reading{
  border-color:rgba(42,110,78,.34);
  box-shadow:0 10px 26px rgba(42,110,78,.10);
}
.ph-symbol{
  position:relative;z-index:1;
  width:64px;min-height:62px;
  border:0;
  border-radius:18px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(224,218,206,.9),0 6px 16px rgba(30,50,35,.05);
  color:var(--ink);
}
.ph-symbol span{
  font-family:"Charis SIL","Doulos SIL","Noto Sans",var(--sans);
  font-size:22px;
  font-weight:900;
  line-height:1.15;
}
.ph-symbol em{
  margin-top:4px;
  font-style:normal;
  font-size:10.5px;
  color:var(--muted);
  font-weight:700;
}
.ph-content{min-width:0;position:relative;z-index:1;}
.ph-examples{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
}
.ph-example{
  min-height:50px;
  border-radius:14px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(232,227,218,.76);
  padding:7px 6px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}
.ph-word{
  font-size:14px;
  font-weight:800;
  line-height:1.15;
  color:var(--ink);
  word-break:break-word;
}
.ph-meaning{
  margin-top:3px;
  font-size:10.5px;
  line-height:1.2;
  color:var(--muted);
}
.ph-row-play{
  position:relative;z-index:1;
  border:0;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-size:13px;
  font-weight:800;
  padding:8px 0;
  min-width:42px;
}
.consonant-row .ph-row-play{background:#3f79a8;}
@media (min-width:900px){
  .phonetic-row{grid-template-columns:82px 1fr 54px;padding:14px;}
  .ph-symbol{width:72px;min-height:68px;}
  .ph-symbol span{font-size:24px;}
  .ph-example{min-height:56px;}
  .ph-word{font-size:15px;}
}
@media (max-width:520px){
  .phonetic-row{
    grid-template-columns:62px 1fr 42px;
    gap:8px;
    padding:10px 9px;
    border-radius:18px;
    min-height:96px;
  }
  .ph-symbol{width:56px;min-height:62px;border-radius:16px;}
  .ph-symbol span{font-size:20px;}
  .ph-examples{grid-template-columns:repeat(5,minmax(42px,1fr));gap:5px;}
  .ph-example{min-height:58px;padding:6px 3px;border-radius:12px;}
  .ph-word{font-size:12.5px;}
  .ph-meaning{font-size:9.5px;}
  .ph-row-play{min-width:38px;font-size:12px;}
}
@media (max-width:390px){
  .ph-examples{grid-template-columns:repeat(5,minmax(38px,1fr));gap:4px;}
  .ph-word{font-size:11.5px;}
  .ph-meaning{font-size:9px;}
  .phonetic-row{grid-template-columns:58px 1fr 38px;}
  .ph-symbol{width:52px;}
}


/* v3.3 48个音标：只点读单项，例词放大并可换行 */
.phonetic-row{
  grid-template-columns:72px 1fr !important;
  min-height:auto;
  align-items:start;
  gap:12px;
  padding:14px 14px 14px 16px;
}
.ph-symbol{cursor:pointer;}
.ph-examples{
  display:flex !important;
  flex-wrap:wrap;
  gap:9px;
  align-items:stretch;
}
.ph-example{
  border:1px solid rgba(232,227,218,.9);
  background:rgba(255,255,255,.82);
  min-height:58px;
  min-width:92px;
  flex:1 0 auto;
  padding:8px 10px;
  cursor:pointer;
  text-align:center;
  font:inherit;
  color:inherit;
}
.ph-example:active,.ph-symbol:active{transform:translateY(1px);}
.ph-word{
  font-size:18px;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
}
.ph-meaning{font-size:11px;margin-top:4px;}
.ph-row-play{display:none!important;}
@media (min-width:900px){
  .phonetic-row{grid-template-columns:86px 1fr !important;padding:16px;}
  .ph-symbol{width:74px;min-height:70px;}
  .ph-word{font-size:19px;}
  .ph-example{min-width:104px;}
}
@media (max-width:520px){
  .phonetic-row{grid-template-columns:62px 1fr !important;gap:9px;padding:12px 10px 12px 12px;}
  .ph-examples{gap:7px;}
  .ph-example{min-width:82px;min-height:56px;padding:7px 8px;border-radius:13px;}
  .ph-word{font-size:16px;}
  .ph-meaning{font-size:10px;}
}
@media (max-width:390px){
  .phonetic-row{grid-template-columns:58px 1fr !important;}
  .ph-example{min-width:78px;}
  .ph-word{font-size:15.5px;}
}

/* v3.6 音标页入口按钮：自动阅读右置，新增口型版/视频版 */
.phonetics-actions{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.phonetics-version-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.phonetic-version-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid rgba(42,110,78,.18);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:var(--green);
  padding:9px 16px;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(30,50,35,.06);
}
.phonetic-version-btn.disabled{
  color:#9ca8a1;
  background:rgba(255,255,255,.55);
  border-color:rgba(160,170,165,.25);
  box-shadow:none;
  cursor:not-allowed;
}
.phonetics-actions .lazy-read-btn{
  margin-top:0;
  min-height:42px;
  padding:10px 20px;
  white-space:nowrap;
}
@media (max-width:520px){
  .phonetics-actions{align-items:stretch;gap:10px;}
  .phonetics-version-actions{flex:1 1 auto;}
  .phonetic-version-btn{flex:1 1 auto;padding:9px 12px;font-size:13px;}
  .phonetics-actions .lazy-read-btn{margin-left:auto;font-size:14px;}
}


/* ===== 平板适配修正（min-width:600px）：内容居中、两列、卡片不挤爆 ===== */
@media (min-width:600px){
  .home-shell{max-width:620px;margin-left:auto;margin-right:auto}
  .zone-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .zone-card{min-height:120px}
  .motto-row{gap:18px}
  .motto{flex:0 1 150px}
}


/* ===== 柔和内联提示 ===== */
.tz-toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(12px);
  background:rgba(40,60,48,.94);color:#fff;font-size:14px;font-weight:600;
  padding:12px 20px;border-radius:999px;box-shadow:0 10px 28px rgba(0,0,0,.18);
  opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:9999;max-width:80vw;text-align:center}
.tz-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
