/* ==========================================================================
   Melek Hoca · 全站样式
   风格：伊兹尼克瓷砖（İznik çinisi）—— 钴蓝、绿松石、番茄红、翡翠绿、釉白
   ========================================================================== */

:root {
  --cobalt: #1F3F8C;
  --cobalt-deep: #152B63;
  --cobalt-ink: #0F1F47;
  --cobalt-soft: #E8EDF8;
  --turq: #2A9D99;
  --turq-dark: #1E7C79;
  --turq-light: #8FD3CF;
  --turq-pale: #E4F4F2;
  --red: #C8372D;
  --red-dark: #A82A21;
  --red-pale: #FBE9E6;
  --green: #2E7D4F;
  --green-pale: #E4F2E8;
  --gold: #B8892B;
  --gold-pale: #F6EBD3;
  --glaze: #FBF7EF;
  --glaze-2: #F3EBDB;
  --paper: #FFFDF8;
  --ink: #1B2540;
  --ink-2: #4A5470;
  --ink-3: #7C8399;
  --line: #E7DDC9;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(21, 43, 99, .06), 0 2px 8px rgba(21, 43, 99, .05);
  --shadow: 0 1px 2px rgba(21, 43, 99, .06), 0 10px 30px rgba(21, 43, 99, .09);
  --header-h: 64px;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --latin: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;

  /* 瓷砖边带（郁金香 + 玫瑰花饰） */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Crect width='56' height='28' fill='%23FBF7EF'/%3E%3Crect width='56' height='3' fill='%231F3F8C'/%3E%3Crect y='25' width='56' height='3' fill='%231F3F8C'/%3E%3Cpath d='M14 22V12' stroke='%232E7D4F' stroke-width='1.4'/%3E%3Cpath d='M14 20c-3-1-5-3-6-6 3 0 5 2 6 6zM14 20c3-1 5-3 6-6-3 0-5 2-6 6z' fill='%232E7D4F'/%3E%3Cpath d='M14 13c-4 0-5-4-4-7 1.5 2 2.5 2 4-1 1.5 3 2.5 3 4 1 1 3 0 7-4 7z' fill='%23C8372D'/%3E%3Ccircle cx='42' cy='14' r='5.2' fill='%231F3F8C'/%3E%3Ccircle cx='42' cy='14' r='1.8' fill='%23FBF7EF'/%3E%3Cpath d='M42 5.5v2.5M42 20v2.5M33.5 14H36M48 14h2.5' stroke='%232A9D99' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  /* 淡色瓷砖底纹 */
  --tile-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%232A9D99' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M44 24l5 15 15 5-15 5-5 15-5-15-15-5 15-5z'/%3E%3Ccircle cx='44' cy='44' r='4'/%3E%3Cpath d='M0 20l6-14 14-6M68 0l14 6 6 14M88 68l-6 14-14 6M20 88L6 82 0 68'/%3E%3C/g%3E%3C/svg%3E");
  /* 深色底上的瓷砖纹 */
  --tile-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%238FD3CF' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M44 24l5 15 15 5-15 5-5 15-5-15-15-5 15-5z'/%3E%3Ccircle cx='44' cy='44' r='4'/%3E%3Cpath d='M0 20l6-14 14-6M68 0l14 6 6 14M88 68l-6 14-14 6M20 88L6 82 0 68'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--glaze);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cobalt-ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.tr { color: var(--cobalt); font-weight: 600; }
.latin { font-family: var(--latin); }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.tile-band { height: 28px; background: var(--band) repeat-x center / auto 28px; }
.tile-band.thin { height: 18px; background-size: auto 18px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 6px 16px rgba(31, 63, 140, .25); }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(200, 55, 45, .22); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt-soft); color: var(--cobalt); }
.btn-light { background: #fff; color: var(--cobalt); }
.btn-light:hover { background: var(--turq-pale); color: var(--cobalt-deep); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--cobalt); cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { background: var(--turq-pale); border-color: var(--turq); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.playing { background: var(--turq); border-color: var(--turq); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.7;
  background: var(--turq-pale); color: var(--turq-dark); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.red { background: var(--red-pale); color: var(--red-dark); }
.chip.blue { background: var(--cobalt-soft); color: var(--cobalt); }
.chip.gold { background: var(--gold-pale); color: #8a6517; }
.chip.green { background: var(--green-pale); color: var(--green); }
.chip.gray { background: #eeeae2; color: var(--ink-3); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 239, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--latin); font-size: 21px; font-weight: 700; color: var(--cobalt); letter-spacing: .01em; }
.brand-name em { color: var(--red); font-style: italic; font-weight: 400; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--turq-pale); color: var(--cobalt); }
.nav a.active { color: var(--cobalt); font-weight: 700; }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 6px; height: 6px; margin-left: -3px;
  background: var(--red); transform: rotate(45deg); border-radius: 1px;
}
.nav .nav-cta { margin-left: 8px; background: var(--cobalt); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: transparent; border-radius: 12px; color: var(--cobalt); cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--glaze);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(21, 43, 99, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.active::after { left: auto; right: 12px; top: 50%; margin-top: -3px; }
  .nav .nav-cta { margin: 14px 0 0; border-radius: 999px; text-align: center; border: 0; }
}

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 88px; background: var(--cobalt-deep) var(--tile-dark); color: #CFD8EF; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 15px; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #CFD8EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14.5px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #9FB0D6; }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 340px; color: #B8C5E4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 26px; font-size: 13px; color: #8E9DC4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 通用版块 ---------- */
.section { padding: 72px 0 0; }
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--turq-dark); margin-bottom: 6px; }
.eyebrow::before { content: "❋ "; font-style: normal; color: var(--red); }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-2); max-width: 620px; margin-bottom: 0; }
@media (max-width: 600px) { .section { padding-top: 56px; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.page-hero { padding: 56px 0 40px; background: var(--tile-bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0; }
.breadcrumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--cobalt); }

/* 待补充占位（给老师填资料用） */
.todo {
  position: relative; border: 2px dashed var(--gold); background: var(--gold-pale);
  border-radius: 12px; padding: 14px 16px 12px; color: #6d5212; font-size: 15px;
}
.todo::before {
  content: "TO COMPLETE"; position: absolute; top: -11px; left: 14px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px;
}
.todo p:last-child { margin-bottom: 0; }

/* ---------- 首页 Hero + 地图 ---------- */
.hero { position: relative; padding: 36px 0 12px; background: var(--tile-bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero-copy .eyebrow { font-size: 19px; }
.hero-copy h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.22; margin-bottom: 18px; }
.hero-copy h1 .tr { font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--red); }
.hero-copy .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--turq); flex: none; }
@media (max-width: 900px) {
  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy .lead { max-width: none; }
}

.map-frame {
  position: relative; padding: 12px; border-radius: 22px;
  background: var(--cobalt-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3.2' fill='none' stroke='%238FD3CF' stroke-opacity='.55' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='12' r='1' fill='%23C8372D'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23FBF7EF' fill-opacity='.35'/%3E%3Ccircle cx='24' cy='0' r='2' fill='%23FBF7EF' fill-opacity='.35'/%3E%3Ccircle cx='0' cy='24' r='2' fill='%23FBF7EF' fill-opacity='.35'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23FBF7EF' fill-opacity='.35'/%3E%3C/svg%3E");
  box-shadow: 0 30px 60px -20px rgba(21, 43, 99, .45), 0 0 0 1px rgba(21, 43, 99, .2);
}
.map-frame::before {
  content: ""; position: absolute; inset: 7px; border-radius: 17px;
  border: 1.5px solid rgba(184, 137, 43, .8); pointer-events: none;
}
.map-svg { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--cobalt); }
.map-caption { margin: 12px 4px 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* 地图上的可点击地标 */
.hotspot { cursor: pointer; outline: none; }
.hotspot .hs-ring { fill: none; stroke: #FBF7EF; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hs-pulse 2.8s ease-out infinite; }
.hotspot:nth-of-type(2n) .hs-ring { animation-delay: .9s; }
.hotspot:nth-of-type(3n) .hs-ring { animation-delay: 1.7s; }
.hotspot .hs-pill { fill: #FFFDF8; stroke: var(--cobalt-deep); stroke-width: 2; transition: fill .2s; }
.hotspot .hs-num { fill: var(--red); transition: fill .2s; }
.hotspot .hs-label { fill: var(--cobalt-ink); font-family: var(--serif); font-weight: 700; font-size: 24px; transition: fill .2s; }
.hotspot .hs-sub { fill: var(--turq-dark); font-family: var(--latin); font-style: italic; font-size: 14px; transition: fill .2s; }
.hotspot .hs-line { stroke: var(--cobalt-deep); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.hotspot .hs-landmark { transition: transform .25s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.hotspot:hover .hs-pill, .hotspot:focus-visible .hs-pill { fill: var(--red); }
.hotspot:hover .hs-num, .hotspot:focus-visible .hs-num { fill: var(--cobalt-deep); }
.hotspot:hover .hs-label, .hotspot:focus-visible .hs-label,
.hotspot:hover .hs-sub, .hotspot:focus-visible .hs-sub { fill: #fff; }
.hotspot:hover .hs-landmark, .hotspot:focus-visible .hs-landmark { transform: scale(1.12); }
@keyframes hs-pulse { 0% { opacity: .85; transform: scale(.5); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
.map-sea-label { font-family: var(--latin); font-style: italic; fill: #DCE6FA; letter-spacing: .12em; }
.map-sea-label-zh { font-family: var(--serif); fill: #B9CCF2; letter-spacing: .3em; }
.map-land-label { font-family: var(--latin); font-style: italic; fill: #8B7A5A; letter-spacing: .08em; }
@media (max-width: 600px) {
  .hotspot .hs-sub { display: none; }
  .hotspot .hs-label { transform: translateY(8px); font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot .hs-ring, .map-boat, .map-gull { animation: none !important; }
}
.map-boat { animation: boat-bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes boat-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }

/* ---------- 栏目入口卡片（拱门形） ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.entry-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 16px 20px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 50% 50% 16px 16px / 64px 64px 16px 16px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.entry-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--turq-light); pointer-events: none;
  border-radius: 50% 50% 12px 12px / 58px 58px 12px 12px; opacity: .7;
}
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--turq-light); color: var(--ink); }
.entry-num {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 24px; height: 24px; background: var(--red); border-radius: 4px; display: grid; place-items: center;
}
.entry-num span { transform: rotate(-45deg); color: #fff; font-size: 13px; font-weight: 700; }
.entry-icon { width: 86px; height: 70px; margin: 16px 0 8px; }
.entry-card h3 { font-size: 18px; margin-bottom: 2px; }
.entry-card .entry-tr { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--turq-dark); margin-bottom: 8px; }
.entry-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.6; }
.entry-card .chip { margin-top: auto; }
@media (max-width: 420px) {
  .entry-grid { gap: 12px; grid-template-columns: 1fr 1fr; }
  .entry-card { padding: 28px 10px 16px; }
  .entry-card p { font-size: 13px; }
  .entry-icon { width: 72px; height: 58px; }
}

/* ---------- 品牌故事：为什么是这抹蓝 ---------- */
.story {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
  padding: 44px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.story-plate { width: 100%; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(21, 43, 99, .22)); }
.story h2 { margin-bottom: 14px; }
.story-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.story-chain li { padding: 6px 14px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); font-weight: 600; font-size: 14.5px; }
.story-chain li.arrow { background: none; padding: 0; color: var(--red); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; } .story-plate { max-width: 220px; } }

/* ---------- 课程预览 / 课程列表 ---------- */
.lesson-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .lesson-preview { grid-template-columns: 1fr; } }
.lp-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.lp-card h3 { font-size: 18px; margin: 2px 0 2px; }
.lp-card .lp-tr { font-family: var(--latin); font-style: italic; color: var(--cobalt); font-size: 19px; }
.lp-card p { font-size: 14px; color: var(--ink-2); margin: 4px 0 10px; }
.lp-card.locked { background: linear-gradient(180deg, var(--paper), var(--glaze-2)); }

.star-badge { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; }
.star-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-badge span { position: relative; color: #fff; font-family: var(--latin); font-weight: 700; font-size: 19px; }
.star-badge.locked svg path { fill: var(--ink-3); }

/* ---------- 文章卡片 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.article-card .ac-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 19px; margin: 8px 0 6px; }
.article-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.article-card time { margin-top: auto; font-size: 13px; color: var(--ink-3); }

.cover {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: var(--cobalt) var(--tile-dark);
}
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--band) repeat-x center / auto 14px; }
.cover-word { position: relative; font-family: var(--latin); font-style: italic; font-size: clamp(34px, 5vw, 46px); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); padding: 0 16px; text-align: center; line-height: 1.1; }
.cover-word::before, .cover-word::after { content: "❋"; font-style: normal; font-size: .45em; vertical-align: middle; margin: 0 .5em; color: var(--turq-light); }
.cover.red { background-color: var(--red); }
.cover.teal { background-color: var(--turq-dark); }
.cover.green { background-color: var(--green); }
.cover.blue { background-color: var(--cobalt); }

/* ---------- 今日一词 ---------- */
.wotd {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(135deg, var(--turq-dark), var(--cobalt)) ; color: #fff; position: relative; overflow: hidden;
}
.wotd::before { content: ""; position: absolute; inset: 0; background: var(--tile-dark); opacity: .9; pointer-events: none; }
.wotd > * { position: relative; }
.wotd-label { font-size: 13px; letter-spacing: .12em; color: var(--turq-light); text-transform: uppercase; }
.wotd-word { font-family: var(--latin); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-style: italic; }
.wotd-mean { font-size: 17px; color: #E5EDFF; margin-top: 4px; }
.wotd-ex { font-size: 14.5px; color: #C7D6F5; margin-top: 8px; }
.wotd-ex b { color: #fff; font-weight: 600; }
.wotd .icon-btn { width: 56px; height: 56px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.wotd .icon-btn svg { width: 26px; height: 26px; }
.wotd-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 640px) {
  .wotd { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 16px; }
  .wotd-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}

/* ---------- 行动号召条 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 44px;
  background: var(--cobalt-deep) var(--tile-dark); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #C9D5F0; margin: 0; }
.cta-band .tr { color: var(--turq-light); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 30px 22px; } }

/* ---------- 文章正文 ---------- */
.article-hero { padding: 0; border-bottom: 0; }
.article-hero .cover { aspect-ratio: auto; height: clamp(200px, 32vw, 340px); }
.article-hero .cover-word { font-size: clamp(44px, 8vw, 84px); }
.article-head { padding: 34px 0 10px; }
.article-head h1 { font-size: clamp(28px, 4vw, 40px); }
.article-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: 14px; flex-wrap: wrap; }
.prose { font-size: 18px; line-height: 1.8; color: #232C47; }
.prose h2 { font-size: 25px; margin: 1.8em 0 .6em; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.prose p { margin-bottom: 1.15em; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--turq-pale); border-radius: 0 12px 12px 0; border-left: 4px solid var(--turq); color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 12px; margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose .phrase-box { margin: 1.6em 0; padding: 4px 0; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.phrase-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--line); }
.phrase-row:last-child { border-bottom: 0; }
.phrase-row .p-tr { font-weight: 700; color: var(--cobalt); font-size: 18px; line-height: 1.4; }
.phrase-row .p-zh { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.article-source { margin-top: 2.5em; padding: 14px 18px; border-radius: 12px; background: var(--glaze-2); font-size: 14.5px; color: var(--ink-2); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-btn { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 16px; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.filter-btn:hover { border-color: var(--turq); color: var(--cobalt); }
.filter-btn.active { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ---------- 认识老师 ---------- */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.arch-photo {
  position: relative; aspect-ratio: 3 / 4; max-width: 360px; margin: 0 auto;
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; overflow: hidden;
  background: var(--cobalt) var(--tile-dark); border: 8px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow);
}
.arch-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.arch-photo img + .ph { display: none; }
.arch-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #DCE6FA; padding: 20px; font-size: 14px; }
.arch-photo .ph svg { display: block; width: 120px; height: 120px; margin: 0 auto 10px; opacity: .85; }
.name-meaning { margin-top: 22px; padding: 18px 20px; text-align: center; }
.name-meaning .nm-word { font-family: var(--latin); font-size: 34px; font-style: italic; color: var(--cobalt); line-height: 1.1; }
.name-meaning p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.fact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 26px 0; }
.fact { padding: 16px 18px; }
.fact b { display: block; font-family: var(--serif); font-size: 17px; color: var(--cobalt-ink); }
.fact span { font-size: 14px; color: var(--ink-2); }
.quote-card { position: relative; padding: 26px 28px 22px 64px; margin: 28px 0; background: var(--cobalt-soft); border-radius: 18px; }
.quote-card::before { content: "“"; position: absolute; left: 20px; top: -6px; font-family: var(--latin); font-size: 84px; color: var(--red); line-height: 1; }
.quote-card .q-tr { font-family: var(--latin); font-style: italic; font-size: 19px; color: var(--cobalt); margin-bottom: 6px; }

/* ---------- 课程页 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { display: flex; flex-direction: column; padding: 26px 24px 22px; position: relative; overflow: hidden; }
.course-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--cobalt); }
.course-card.red::before { background: var(--red); }
.course-card.teal::before { background: var(--turq); }
.course-card.green::before { background: var(--green); }
.course-card.gold::before { background: var(--gold); }
.course-card h3 { margin: 8px 0 4px; font-size: 21px; }
.course-card .c-tr { font-family: var(--latin); font-style: italic; color: var(--turq-dark); font-size: 15px; }
.course-card ul { padding-left: 1.1em; margin: 14px 0 18px; font-size: 15px; color: var(--ink-2); }
.course-card li { margin-bottom: 4px; }
.course-card .price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.course-card .price b { font-family: var(--serif); font-size: 20px; color: var(--red); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 22px 20px 18px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px;
  border-radius: 50%; background: var(--cobalt); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 4px var(--cobalt-soft);
}
.steps b { display: block; font-size: 16.5px; margin-bottom: 4px; color: var(--cobalt-ink); }
.steps span { font-size: 14.5px; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--cobalt-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- 落地服务 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.service-card { padding: 24px 22px; }
.service-card .s-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--turq-pale); color: var(--turq-dark); margin-bottom: 14px; }
.service-card .s-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 2px; }
.service-card .s-tr { font-family: var(--latin); font-style: italic; color: var(--turq-dark); font-size: 14px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--glaze-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.contact-item:hover { color: var(--ink); border-color: var(--turq); }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--cobalt); }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-icon.wa { background: #25A366; }
.contact-item .ci-icon.ig { background: var(--red); }
.contact-item b { display: block; font-size: 15px; }
.contact-item span { font-size: 14px; color: var(--ink-2); word-break: break-all; }
button.contact-item { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.contact-stack { display: grid; gap: 10px; margin: 16px 0 8px; text-align: left; }
.contact-stack .contact-item { box-shadow: none; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 31, 71, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 31, 71, .4);
  animation: pop-in .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal .tile-band { border-radius: 22px 22px 0 0; }
.modal-body { padding: 26px 26px 24px; text-align: center; }
.modal-close { position: absolute; top: 36px; right: 12px; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal .lock-icon { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--red-pale); color: var(--red); }
.modal .lock-icon svg { width: 30px; height: 30px; }
.code-input {
  width: 100%; height: 58px; margin: 8px 0 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  font-size: 28px; font-family: var(--latin); letter-spacing: .5em; text-align: center; padding-left: .5em; color: var(--cobalt-ink);
  transition: border-color .2s, box-shadow .2s;
}
.code-input:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 4px var(--turq-pale); }
.code-input.error { border-color: var(--red); animation: shake .4s; }
.code-error { min-height: 22px; font-size: 14px; color: var(--red); margin-bottom: 8px; }
.modal-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 14px;
  background: var(--cobalt-ink); color: #fff; font-size: 14.5px; box-shadow: var(--shadow);
  animation: toast-in .3s ease;
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* 浮动 WhatsApp 按钮（手机） */
.float-contact {
  position: fixed; right: 16px; bottom: 18px; z-index: 55; display: none;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25A366; color: #fff; box-shadow: 0 10px 24px rgba(37, 163, 102, .4);
}
.float-contact svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .float-contact { display: grid; place-items: center; } }

/* 封面插图（二弟的图片放好后自动显示，文字叠在上面） */
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img .cover-word { text-shadow: 0 2px 18px rgba(15, 31, 71, .6); }

/* WhatsApp 联系按钮 */
.btn-wa { background: #25A366; color: #fff; box-shadow: 0 6px 16px rgba(37, 163, 102, .28); margin-top: 6px; }
.btn-wa:hover { background: #1E8A56; color: #fff; }
.modal .wa-icon { background: #E3F5EB; color: #25A366; }
.wa-number { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); letter-spacing: .02em; }
.contact-or { margin: 4px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }
a.float-contact { text-decoration: none; }
a.float-contact:hover { color: #fff; }
