:root {
  --bg: #f4f3ed;
  --surface: #fffefb;
  --surface-2: #ecece4;
  --ink: #17211e;
  --muted: #65716b;
  --line: #dcded6;
  --green: #0b6f68;
  --green-2: #0e514e;
  --lime: #cfe39b;
  --gold: #e8b657;
  --navy: #17384b;
  --shadow: 0 18px 55px rgba(25, 51, 43, .09);
  --radius: 24px;
}

html[data-theme="dark"] {
  --bg: #101715;
  --surface: #18211f;
  --surface-2: #202b28;
  --ink: #edf4ef;
  --muted: #a0aea8;
  --line: #31403b;
  --green: #55bdb1;
  --green-2: #327d75;
  --lime: #a9c86e;
  --gold: #e4b45b;
  --navy: #91b7c8;
  --shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(232,182,87,.15), transparent 28rem),
    var(--bg);
  font: 16px/1.65 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--surface);
  background: var(--green);
}
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font: 700 1.08rem/1.2 Georgia, "Times New Roman", serif; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.top-actions { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: .9rem; }
.top-actions a:hover { color: var(--green); }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 32px;
  color: #f7fffc;
  background:
    linear-gradient(120deg, rgba(15, 66, 59, .98), rgba(8, 104, 96, .91)),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,.03) 20px 21px);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -90px;
  top: -170px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.03), 0 0 0 96px rgba(255,255,255,.025);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow {
  margin: 0 0 14px;
  color: #bfe5df;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow.dark { color: var(--green); }
.hero h1 {
  margin: 0;
  font: 700 clamp(2.45rem, 5vw, 4.7rem)/1.06 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 650px; margin: 24px 0 0; color: #d5ebe7; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 700;
  font-size: .9rem;
}
.primary-button { color: #183025; background: var(--lime); }
.secondary-button { border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); }
.update-note { display: flex; align-items: center; gap: 8px; margin-top: 23px; color: #b8d8d2; font-size: .77rem; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(207,227,155,.12); }

.today-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 23px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  min-width: 0;
}
.today-badge { color: var(--lime); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.today-number { margin-top: 7px; font: 700 2.4rem/1 Georgia, serif; }
.today-panel h2 { margin: 12px 0 4px; font: 700 1.3rem/1.35 Georgia, serif; }
.today-panel > p { margin: 0; color: #bdd9d5; }
.today-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.today-meta span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 99px; font-size: .69rem; }
.mini-progress { margin-top: 22px; }
.mini-progress > div:first-child { display: flex; justify-content: space-between; font-size: .74rem; color: #c7e0dc; }
.mini-progress strong { color: #fff; }
.progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 62px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.stats-strip article { padding: 18px 22px; border-right: 1px solid var(--line); }
.stats-strip article:last-child { border-right: 0; }
.stats-strip strong { display: block; font: 700 1.45rem/1.1 Georgia, serif; }
.stats-strip span { color: var(--muted); font-size: .75rem; }

.section-block { margin-top: 56px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font: 700 clamp(1.8rem, 3.5vw, 2.7rem)/1.1 Georgia, serif; letter-spacing: -.03em; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 240px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.search-box span { color: var(--muted); font-size: 1.2rem; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .82rem; }
.filter-button {
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  font-size: .8rem;
}
.filter-button.active { border-color: var(--green); color: #fff; background: var(--green); }

.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(34, 52, 46, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); box-shadow: var(--shadow); }
.course-card::after {
  content: attr(data-index);
  position: absolute;
  right: 15px;
  bottom: -30px;
  color: color-mix(in srgb, var(--green) 7%, transparent);
  font: 700 130px/1 Georgia, serif;
  pointer-events: none;
}
.course-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.day-label { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.status-pill { padding: 4px 8px; border-radius: 99px; color: var(--muted); background: var(--surface-2); font-size: .68rem; }
.status-pill.started { color: var(--green-2); background: color-mix(in srgb, var(--lime) 45%, var(--surface)); }
.course-card h3 { position: relative; z-index: 1; margin: 15px 0 5px; font: 700 1.43rem/1.3 Georgia, serif; }
.course-subtitle { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .86rem; }
.tag-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag-row span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .68rem; }
.course-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.course-progress { flex: 1; max-width: 170px; }
.course-progress span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .68rem; }
.course-progress .progress-track { height: 5px; margin: 0; background: var(--surface-2); }
.course-progress .progress-track span { height: 100%; margin: 0; background: var(--green); }
.course-link { color: var(--green); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.empty-state { padding: 40px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

.roadmap-section { padding-top: 8px; }
.section-aside { max-width: 360px; margin: 0; color: var(--muted); font-size: .84rem; text-align: right; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phase { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.phase.active { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.phase > span { color: var(--green); font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.phase h3 { margin: 32px 0 8px; font: 700 1.17rem Georgia, serif; }
.phase p { margin: 0; color: var(--muted); font-size: .81rem; }

.method-card {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 35px;
  align-items: center;
  margin-top: 56px;
  padding: 34px;
  border-radius: 25px;
  background: var(--navy);
  color: var(--surface);
}
.method-card .eyebrow { color: var(--lime); }
.method-card h2 { margin: 0; font: 700 1.8rem/1.2 Georgia, serif; }
.method-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.method-list li { padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); }
.method-list li > span { display: block; color: var(--gold); font: 700 1.25rem Georgia, serif; }
.method-list strong { display: block; margin-top: 17px; font-size: 1rem; }
.method-list small { display: block; margin-top: 5px; color: rgba(255,255,255,.65); font-size: .68rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .today-panel { max-width: 540px; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .method-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-shell { width: calc(100% - 20px); }
  .topbar { min-height: 72px; }
  .top-actions a { display: none; }
  .brand small { display: none; }
  .hero { padding: 28px 20px; border-radius: 22px; }
  .hero h1 { font-size: clamp(2rem, 10.6vw, 2.8rem); letter-spacing: -.055em; }
  .hero-actions { flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
  .today-panel { padding: 20px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip article:nth-child(2) { border-right: 0; }
  .stats-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .filter-row { justify-content: flex-start; }
  .search-box { min-width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .phase { min-height: 160px; }
  .phase h3 { margin-top: 20px; }
  .section-aside { text-align: left; }
  .method-card { padding: 26px 20px; }
  .method-list { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; }
}

