:root {
  --ink: #38211f;
  --muted: #7a665f;
  --line: #eadbd0;
  --paper: #fffaf3;
  --mist: #f5ece3;
  --green: #d73543;
  --green-dark: #4b241f;
  --coral: #b44a45;
  --gold: #b9845b;
  --leaf: #6c9d57;
  --teal-soft: #f1e3dd;
  --accent-rgb: 215, 53, 67;
  --ink-rgb: 75, 36, 31;
  --panel-rgb: 124, 32, 38;
  --deep-a: #7c2026;
  --deep-b: #4b171a;
  --footer: #241012;
  --table-a: #b73542;
  --table-b: #8f2630;
  --shadow: 0 18px 50px rgba(var(--ink-rgb), 0.12);
  --wash-pink: #fff0f4;
  --wash-yellow: #fff7dd;
  --wash-blue: #edf6ff;
  --wash-green: #edf9ef;
  --wash-lavender: #f5f0ff;
  --wash-peach: #fff2e7;
  --wash-pink-border: #f1c5d0;
  --wash-yellow-border: #ead99a;
  --wash-blue-border: #bdd8f0;
  --wash-green-border: #bde2c3;
  --wash-lavender-border: #d8cdf6;
  --wash-peach-border: #f1cbb3;
  --wash-pink-accent: #c96e7c;
  --wash-yellow-accent: #bd8d2b;
  --wash-blue-accent: #3279b7;
  --wash-green-accent: #32875e;
  --wash-lavender-accent: #7867b9;
  --wash-peach-accent: #c16f48;
}

:root[data-theme="leaf"] {
  --ink: #203528;
  --muted: #647366;
  --line: #dbe9d3;
  --paper: #fbfff7;
  --mist: #edf6e7;
  --green: #55ae57;
  --green-dark: #2f5127;
  --coral: #8fbc66;
  --gold: #c9b76d;
  --leaf: #6dbf74;
  --teal-soft: #e4f4df;
  --accent-rgb: 85, 174, 87;
  --ink-rgb: 47, 81, 39;
  --panel-rgb: 61, 92, 44;
  --deep-a: #3e612e;
  --deep-b: #223b1c;
  --footer: #1e321b;
  --table-a: #59af5b;
  --table-b: #3f8d43;
}

:root[data-theme="academy"] {
  --ink: #20304b;
  --muted: #61728c;
  --line: #d7e4f2;
  --paper: #f7fbff;
  --mist: #e9f2fb;
  --green: #2d6fbd;
  --green-dark: #173767;
  --coral: #b86745;
  --gold: #c49a47;
  --leaf: #3f9a7a;
  --teal-soft: #e5f2ef;
  --accent-rgb: 45, 111, 189;
  --ink-rgb: 23, 55, 103;
  --panel-rgb: 31, 73, 131;
  --deep-a: #214a83;
  --deep-b: #142f5b;
  --footer: #10264d;
  --table-a: #3276c8;
  --table-b: #2b7a68;
}

html {
  scroll-padding-top: 128px;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 13%, rgba(255, 240, 244, 0.78), transparent 24%),
    radial-gradient(circle at 91% 8%, rgba(237, 246, 255, 0.82), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(237, 249, 239, 0.72), transparent 30%),
    linear-gradient(90deg, rgba(232, 218, 206, 0.78), rgba(255, 250, 243, 0.96) 14%, rgba(255, 250, 243, 0.96) 86%, rgba(232, 218, 206, 0.78)),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

:root[data-theme="leaf"] body {
  background:
    radial-gradient(circle at 7% 13%, rgba(255, 240, 244, 0.66), transparent 24%),
    radial-gradient(circle at 91% 8%, rgba(237, 246, 255, 0.72), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(237, 249, 239, 0.82), transparent 30%),
    linear-gradient(90deg, rgba(221, 237, 211, 0.82), rgba(251, 255, 247, 0.97) 14%, rgba(251, 255, 247, 0.97) 86%, rgba(221, 237, 211, 0.82)),
    var(--paper);
}

:root[data-theme="academy"] body {
  background:
    radial-gradient(circle at 7% 13%, rgba(255, 240, 244, 0.68), transparent 24%),
    radial-gradient(circle at 91% 8%, rgba(237, 246, 255, 0.88), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(237, 249, 239, 0.72), transparent 30%),
    linear-gradient(90deg, rgba(218, 232, 247, 0.86), rgba(247, 251, 255, 0.97) 14%, rgba(247, 251, 255, 0.97) 86%, rgba(218, 232, 247, 0.86)),
    var(--paper);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 12px;
  background: transparent;
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 48px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 14px 36px rgba(var(--ink-rgb), 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: contain;
  padding: 2px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(var(--ink-rgb), 0.08);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(74, 17, 24, 0.08);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 24px;
  color: #6d5c56;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  background: var(--teal-soft);
}

.nav-tools {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.nav-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-control select {
  min-height: 32px;
  max-width: 112px;
  border: 0;
  border-radius: 18px;
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  outline: none;
}

.nav-links a.auth-link {
  border: 1px solid var(--line);
}

.nav-links a.auth-link.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.nav-links a.auth-link.primary:hover {
  color: #fff;
  background: var(--green-dark);
}

.nav-form {
  margin: 0;
}

.nav-form button {
  cursor: pointer;
  padding: 9px 12px;
  border: 0;
  border-radius: 24px;
  color: #6d5c56;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.nav-form button:hover {
  color: var(--green-dark);
  background: var(--teal-soft);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 28, 35, 0.84), rgba(14, 28, 35, 0.32)),
    var(--hero-image) center / cover no-repeat;
}

.hero-inner,
.page-head-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 72px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

br.mobile-break {
  display: none;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
}

.hero p {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-note {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.home-page {
  padding-bottom: 72px;
}

.home-hero {
  padding: 18px 0 22px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 38px;
  min-height: 580px;
  padding: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.08) 52%, rgba(255, 255, 255, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-stage > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-title {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.home-copy {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.85;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.hero-metric {
  position: relative;
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.88));
  box-shadow: 0 12px 26px rgba(var(--ink-rgb), 0.06);
  overflow: hidden;
}

.hero-metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--leaf), var(--gold));
}

.hero-metric::after {
  display: none;
}

.metric-index,
.hero-metric strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  position: relative;
  z-index: 1;
}

.metric-index {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.metric-label {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.brand-card {
  min-height: 470px;
  padding: 28px;
  border-radius: 28px;
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.96), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
  box-shadow: 0 22px 46px rgba(var(--ink-rgb), 0.24);
}

.hero-logo {
  width: 112px;
  height: 112px;
  margin-bottom: 30px;
  border-radius: 24px;
  object-fit: cover;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(255, 245, 237, 0.32);
}

.brand-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  color: rgba(255, 245, 237, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.brand-card h2 {
  max-width: 320px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 34px;
  line-height: 1.12;
}

.brand-card p {
  color: rgba(255, 245, 237, 0.68);
}

.exam-priority {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.exam-priority-main,
.exam-priority-row {
  border: 1px solid rgba(255, 245, 237, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.exam-priority-main {
  padding: 18px;
}

.exam-priority-main span,
.exam-priority-row span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 245, 237, 0.66);
  font-size: 13px;
  font-weight: 900;
}

.exam-priority-main strong {
  display: block;
  color: #fff;
  font-size: 23px;
  line-height: 1.35;
}

.exam-priority-main p {
  margin: 10px 0 0;
  color: rgba(255, 245, 237, 0.78);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.7;
}

.exam-priority-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
}

.exam-priority-row span {
  margin: 0;
}

.exam-priority-row strong {
  color: rgba(255, 245, 237, 0.95);
  font-size: 15px;
  line-height: 1.45;
}

.module {
  scroll-margin-top: 128px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 250, 245, 0.9);
  box-shadow: 0 12px 34px rgba(74, 17, 24, 0.07);
}

.module.dark {
  color: #fff5ed;
  background:
    linear-gradient(145deg, var(--deep-a), var(--deep-b)),
    var(--green-dark);
}

.module-head {
  margin-bottom: 22px;
}

.module-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.module h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 42px;
  line-height: 1.15;
}

.module p {
  color: var(--muted);
}

.module.dark p {
  color: rgba(255, 245, 237, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.exam-card,
.direction-card,
.result-card {
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.service-card,
.flow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(var(--ink-rgb), 0.055);
}

.service-card::before,
.flow-card::before {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -26px;
  z-index: 0;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 2px, transparent 2.7px);
  background-size: 14px 14px;
  opacity: 0.68;
  pointer-events: none;
}

.service-card::after,
.flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.92) 0 16%, transparent 45%),
    radial-gradient(ellipse at 30% 88%, rgba(255, 255, 255, 0.56) 0 18%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 58%);
  pointer-events: none;
}

.service-card > *,
.flow-card > * {
  position: relative;
  z-index: 1;
}

.service-card:nth-child(4n + 1),
.flow-card:nth-child(4n + 1) {
  border-color: rgba(196, 154, 71, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #fff7df 50%, #f7e6b7 100%);
  box-shadow: 0 12px 26px rgba(196, 154, 71, 0.1);
}

.service-card:nth-child(4n + 2),
.flow-card:nth-child(4n + 2) {
  border-color: rgba(45, 111, 189, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #edf6ff 50%, #dbeeff 100%);
  box-shadow: 0 12px 26px rgba(45, 111, 189, 0.1);
}

.service-card:nth-child(4n + 3),
.flow-card:nth-child(4n + 3) {
  border-color: rgba(63, 154, 122, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #ebf8f3 50%, #d9f1e9 100%);
  box-shadow: 0 12px 26px rgba(63, 154, 122, 0.1);
}

.service-card:nth-child(4n),
.flow-card:nth-child(4n) {
  border-color: rgba(202, 113, 136, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #fff0f4 50%, #f8dce6 100%);
  box-shadow: 0 12px 26px rgba(202, 113, 136, 0.09);
}

.service-card .num,
.flow-card .num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--green);
  background: var(--teal-soft);
  font-weight: 900;
}

.service-card:nth-child(4n + 1) .num,
.flow-card:nth-child(4n + 1) .num {
  color: #b8871e;
  background: rgba(255, 241, 202, 0.88);
}

.service-card:nth-child(4n + 2) .num,
.flow-card:nth-child(4n + 2) .num {
  color: #2d6fbd;
  background: rgba(226, 241, 255, 0.9);
}

.service-card:nth-child(4n + 3) .num,
.flow-card:nth-child(4n + 3) .num {
  color: #2f8b6b;
  background: rgba(225, 246, 236, 0.9);
}

.service-card:nth-child(4n) .num,
.flow-card:nth-child(4n) .num {
  color: #bd5c7a;
  background: rgba(255, 232, 239, 0.9);
}

.service-card h3,
.exam-card h3,
.direction-card h3,
.result-card h3,
.flow-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.exam-card {
  border-color: rgba(255, 245, 237, 0.14);
  background: rgba(255, 245, 237, 0.08);
}

.exam-card p {
  color: rgba(255, 245, 237, 0.68);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.result-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4fr;
  gap: 30px;
  align-items: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-card strong {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: Georgia, "Times New Roman", serif;
}

.trust-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.split-head > div {
  max-width: 760px;
}

.text-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.text-link.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.school-module {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(var(--accent-rgb), 0.05)),
    rgba(255, 250, 245, 0.95);
}

.country-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.country-tabs button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.country-tabs button:hover,
.country-tabs button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.18);
}

.school-layout {
  display: block;
}

.country-school-panels {
  min-width: 0;
}

.country-school-panel {
  display: none;
}

.country-school-panel.active {
  display: block;
}

.country-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.82)),
    #fff;
}

.country-panel-head span,
.famous-school-card span,
.school-guide span,
.competitiveness-grid span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.country-panel-head h3 {
  margin-bottom: 4px;
  font-size: 28px;
}

.country-panel-head p {
  max-width: 660px;
  color: var(--muted);
}

.famous-school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.famous-school-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.famous-school-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 16px 34px rgba(var(--ink-rgb), 0.12);
}

.famous-school-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.famous-school-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 20px;
}

.famous-school-card h4 {
  margin-bottom: 6px;
  font-size: 24px;
}

.famous-school-card p {
  margin-bottom: 6px;
  color: var(--muted);
}

.famous-school-card small {
  display: block;
  margin-bottom: 8px;
  color: #6f7f99;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.famous-school-card em {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.more-school-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.more-school-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 820;
}

.more-school-links a:hover {
  color: #fff;
  background: var(--green);
}

.school-guide {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.school-guide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.school-guide div {
  padding: 22px;
}

.school-guide h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.school-guide ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-guide li {
  color: var(--muted);
  font-weight: 780;
}

.school-guide li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 2px;
}

.exam-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.exam-focus-grid article {
  position: relative;
  min-height: 188px;
  padding: 24px;
  border: 1px solid rgba(255, 245, 237, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
}

.exam-focus-grid article::after {
  content: "主力服务";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #10264d;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.exam-focus-grid strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  letter-spacing: 0;
}

.exam-focus-grid h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 23px;
}

.exam-secondary {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 245, 237, 0.16);
}

.exam-secondary > span,
.exam-secondary > div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 245, 237, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.exam-secondary > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.exam-secondary strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.exam-secondary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.65;
}

.journey-module {
  overflow: hidden;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 28px;
  overflow-x: auto;
  padding: 8px 4px 12px;
}

.journey-steps article {
  position: relative;
  min-height: 236px;
  padding: 26px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 999px 999px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.06)),
    #fff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.06);
}

.journey-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  width: 24px;
  height: 14px;
  background: rgba(var(--accent-rgb), 0.28);
  clip-path: polygon(0 39%, 62% 39%, 62% 0, 100% 50%, 62% 100%, 62% 61%, 0 61%);
  transform: translateY(-50%);
  z-index: 1;
}

.journey-steps span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.journey-steps h3 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 22px;
}

.journey-steps p {
  color: #3f4c5e;
  font-weight: 760;
}

.competitiveness-module {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.11), rgba(255, 255, 255, 0.88)),
    rgba(255, 250, 245, 0.96);
}

.competitiveness-intro {
  padding: 28px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, var(--deep-a), var(--deep-b)),
    var(--green-dark);
  box-shadow: 0 18px 42px rgba(var(--ink-rgb), 0.18);
}

.competitiveness-intro .module-label,
.competitiveness-intro h2,
.competitiveness-intro p {
  color: #fff;
}

.competitiveness-intro p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
}

.competitiveness-intro .button {
  background: #fff;
  color: var(--green-dark);
}

.competitiveness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.competitiveness-grid article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(var(--ink-rgb), 0.06);
}

.competitiveness-grid h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 22px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.button.red {
  color: #fff;
  background: linear-gradient(135deg, #c94945 0%, #a93538 100%);
  box-shadow: 0 10px 24px rgba(169, 53, 56, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.72);
}

.home-hero .button.secondary {
  color: var(--green);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.button.leaf {
  color: #fff;
  background: linear-gradient(135deg, #3ba078 0%, #2f8a66 100%);
  box-shadow: 0 10px 24px rgba(47, 138, 102, 0.16);
}

.button.blue {
  color: #fff;
  background: linear-gradient(135deg, #2f76bf 0%, #245fa9 100%);
  box-shadow: 0 10px 24px rgba(36, 95, 169, 0.16);
}

.button.light {
  background: #fff;
  color: var(--green-dark);
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--mist);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.page-head h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.14;
}

.section-head p,
.page-head p,
.lead {
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(24, 32, 42, 0.06);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.card p {
  color: var(--muted);
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-visual {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.1);
}

.photo-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.photo-row img {
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-row img:first-child {
  aspect-ratio: 21 / 10;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--green-dark);
  font-weight: 750;
  font-size: 14px;
}

.resource-hub {
  padding-bottom: 44px;
}

.resource-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.resource-nav a {
  min-height: 74px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(var(--ink-rgb), 0.06);
  font-weight: 850;
  text-align: center;
}

.resource-nav a:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  transform: translateY(-2px);
}

.exam-resource-section {
  scroll-margin-top: 128px;
}

.resource-first {
  padding-top: 54px;
  background:
    radial-gradient(circle at 92% 10%, rgba(108, 157, 87, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf3, var(--mist));
}

.toefl-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 34px;
}

.toefl-overview > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toefl-overview > div:first-child {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.78)),
    #fff;
}

.toefl-overview h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  color: var(--green-dark);
  font-size: clamp(42px, 6vw, 66px);
}

.toefl-overview p {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
}

.resource-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-chip-row a {
  padding: 9px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 8px;
  color: var(--green-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 227, 221, 0.88));
  box-shadow: 0 8px 18px rgba(var(--ink-rgb), 0.06);
  font-weight: 900;
}

.resource-chip-row a:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.resource-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.resource-entry-card {
  min-height: 285px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 236, 227, 0.72)),
    #fff;
  box-shadow: 0 12px 26px rgba(var(--ink-rgb), 0.08);
}

.resource-entry-card.dark {
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.98), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.resource-entry-card span {
  width: fit-content;
  margin-bottom: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.resource-entry-card.dark span {
  color: var(--green-dark);
  background: #f3c98f;
}

.resource-entry-card h2 {
  margin-bottom: 12px;
  font-size: 29px;
  line-height: 1.18;
}

.resource-entry-card p {
  color: var(--muted);
}

.resource-entry-card.dark p {
  color: rgba(255, 245, 237, 0.76);
}

.toefl-guide {
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.98), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.toefl-guide strong {
  margin-bottom: 12px;
  color: #f3c98f;
  font-size: 20px;
}

.toefl-guide p {
  color: rgba(255, 245, 237, 0.78);
}

.toefl-guide .button {
  width: fit-content;
  margin-top: auto;
}

.resource-section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.resource-section-top.compact {
  margin-bottom: 18px;
}

.resource-section-top h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.14;
}

.resource-section-top p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.resource-card {
  min-height: 238px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.06);
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  width: 64px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 24px;
  border-radius: 0 0 8px 8px;
  background: var(--green);
}

.resource-card.primary {
  grid-row: span 2;
  min-height: 492px;
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.96), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.resource-card.primary::before {
  background: #f3c98f;
}

.resource-card.mock::before {
  background: var(--gold);
}

.resource-card.sample::before {
  background: var(--leaf);
}

.resource-card.speaking::before {
  background: var(--coral);
}

.resource-card.review::before {
  background: #6d5c56;
}

.resource-card.slim {
  min-height: auto;
}

.resource-card .module-label {
  color: var(--gold);
}

.resource-card.primary .module-label {
  color: #d9aa72;
}

.resource-card h3 {
  margin: 10px 0 12px;
  font-size: 25px;
  line-height: 1.22;
}

.resource-card p {
  color: var(--muted);
}

.resource-card.primary p {
  color: rgba(255, 245, 237, 0.76);
}

.card-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 26px;
}

.card-meta-row span {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 245, 237, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.resource-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.resource-actions .button {
  min-height: 42px;
  padding: 9px 14px;
}

.resource-actions .button.light {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.16);
}

.resource-actions .button.light:hover {
  background: var(--green-dark);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  min-height: 315px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.8)),
    #fff;
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.06);
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--green);
}

.scenario-card span {
  width: fit-content;
  margin-bottom: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.scenario-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.24;
}

.scenario-card p {
  color: var(--muted);
}

.scenario-card.answer::before,
.scenario-card.answer span {
  background: var(--gold);
}

.scenario-card.transcript::before,
.scenario-card.transcript span {
  background: var(--leaf);
}

.scenario-card.speaking-answer::before,
.scenario-card.speaking-answer span {
  background: var(--coral);
}

.scenario-card.full-pack {
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.96), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.scenario-card.full-pack::before,
.scenario-card.full-pack span {
  color: var(--green-dark);
  background: #f3c98f;
}

.scenario-card.full-pack p {
  color: rgba(255, 245, 237, 0.76);
}

.scenario-card.official::before,
.scenario-card.official span {
  background: #6d5c56;
}

.tiny-link {
  width: fit-content;
  margin-top: auto;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.16);
  font-weight: 850;
}

.exam-resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.exam-resource-card {
  min-height: 244px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.86)),
    #fff;
  box-shadow: 0 16px 34px rgba(var(--ink-rgb), 0.08);
  position: relative;
  overflow: hidden;
}

.exam-resource-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--green);
}

.exam-resource-card.toeic::before {
  background: var(--gold);
}

.exam-resource-card.gre::before {
  background: var(--green-dark);
}

.exam-resource-card.duolingo::before {
  background: var(--leaf);
}

.exam-resource-card.ielts::before {
  background: var(--coral);
}

.exam-resource-card.other::before {
  background: #6d5c56;
}

.exam-resource-card span {
  width: fit-content;
  margin-bottom: 24px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.exam-resource-card.toeic span {
  background: var(--gold);
}

.exam-resource-card.gre span {
  background: var(--green-dark);
}

.exam-resource-card.duolingo span {
  background: var(--leaf);
}

.exam-resource-card.ielts span {
  background: var(--coral);
}

.exam-resource-card.other span {
  background: #6d5c56;
}

.exam-resource-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.exam-resource-card p {
  color: var(--muted);
}

.exam-resource-card a {
  width: fit-content;
  margin-top: auto;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.16);
  font-weight: 850;
  white-space: nowrap;
}

.exam-resource-card.toeic a {
  background: var(--gold);
}

.exam-resource-card.gre a {
  background: var(--green-dark);
}

.exam-resource-card.duolingo a {
  background: var(--leaf);
}

.exam-resource-card.ielts a {
  background: var(--coral);
}

.exam-resource-card.other a {
  background: #6d5c56;
}

.exam-resource-card a:hover {
  transform: translateY(-1px);
  filter: saturate(1.12) brightness(1.02);
}

.exam-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.exam-resource-links a {
  width: auto;
  margin-top: 0;
  padding: 8px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.exam-resource-links a:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.ielts-clean-page {
  background:
    radial-gradient(circle at top right, rgba(45, 111, 189, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(233, 242, 251, 0.98), rgba(247, 251, 255, 0.96));
}

.ielts-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 26px;
  align-items: stretch;
}

.ielts-hero-copy,
.ielts-pack-card,
.ielts-download-card,
.ielts-study-plan {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(var(--ink-rgb), 0.08);
}

.ielts-hero-copy {
  padding: clamp(30px, 5vw, 52px);
}

.ielts-hero-copy h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.ielts-hero-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 720;
}

.ielts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ielts-pack-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--deep-a), var(--deep-b));
}

.ielts-pack-card span {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ielts-pack-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.ielts-pack-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ielts-pack-card li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 780;
}

.ielts-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ielts-download-card {
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ielts-download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--green);
}

.ielts-download-card.speaking::before {
  background: var(--green);
}

.ielts-download-card.listening::before {
  background: var(--leaf);
}

.ielts-download-card.reading::before {
  background: var(--gold);
}

.ielts-download-card.pack::before {
  background: var(--coral);
}

.ielts-download-card span {
  width: fit-content;
  margin-bottom: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ielts-download-card.listening span {
  background: var(--leaf);
}

.ielts-download-card.reading span {
  color: var(--green-dark);
  background: var(--gold);
}

.ielts-download-card.pack span {
  background: var(--coral);
}

.ielts-download-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.ielts-download-card p {
  color: var(--muted);
}

.ielts-download-card a {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.16);
  font-weight: 850;
}

.ielts-download-card.listening a {
  background: var(--leaf);
}

.ielts-download-card.reading a {
  color: var(--green-dark);
  background: var(--gold);
}

.ielts-download-card.pack a {
  background: var(--coral);
}

.ielts-study-plan {
  margin-top: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ielts-study-plan h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.ielts-study-plan p {
  color: var(--muted);
  font-weight: 700;
}

.ielts-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ielts-plan-grid article {
  min-height: 188px;
  padding: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.92);
}

.ielts-plan-grid strong {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 24px;
}

.ielts-plan-grid h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.ielts-plan-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.resource-student-guide {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.42)),
    var(--mist);
}

.student-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.student-guide-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    #fff;
  box-shadow: 0 12px 30px rgba(var(--ink-rgb), 0.07);
}

.student-guide-grid strong {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.student-guide-grid h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.student-guide-grid p {
  color: var(--muted);
}

.about-stats {
  margin: 0;
}

.about-pillars .module-label {
  color: var(--gold);
}

.about-offline-first {
  padding-top: 58px;
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--accent-rgb), 0.08), transparent 28%),
    var(--mist);
}

.campus-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.campus-card {
  min-height: 240px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.8)),
    #fff;
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.06);
}

.about-offline-first .campus-card,
.about-offline-first .campus-card.featured {
  color: var(--ink);
  border-color: var(--campus-border, var(--line));
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.82) 0 4px, transparent 4.5px) 0 0 / 24px 24px,
    linear-gradient(145deg, var(--campus-soft, rgba(255, 255, 255, 0.96)), rgba(255, 255, 255, 0.82));
}

.about-offline-first .campus-card:nth-child(1) {
  --campus-soft: #fff0f3;
  --campus-border: #f2c3cb;
  --campus-accent: #c96e7c;
}

.about-offline-first .campus-card:nth-child(2) {
  --campus-soft: #fff6d9;
  --campus-border: #edd99c;
  --campus-accent: #bd8d2b;
}

.about-offline-first .campus-card:nth-child(3) {
  --campus-soft: #edf6ff;
  --campus-border: #bdd8f0;
  --campus-accent: #3279b7;
}

.about-offline-first .campus-card:nth-child(4) {
  --campus-soft: #edf9ef;
  --campus-border: #bde2c3;
  --campus-accent: #32875e;
}

.campus-card.featured {
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.96), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.campus-card span {
  width: fit-content;
  margin-bottom: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.about-offline-first .campus-card span,
.campus-card.featured span {
  color: #fff;
  background: var(--campus-accent, var(--green));
}

.campus-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.campus-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.campus-card.featured p {
  color: rgba(255, 245, 237, 0.92);
}

.about-offline-first .campus-card.featured p {
  color: var(--muted);
}

.campus-card small {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-weight: 700;
}

.campus-card.featured small {
  color: rgba(255, 245, 237, 0.7);
}

.about-offline-first .campus-card.featured small {
  color: var(--muted);
}

.course-system-overview {
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--accent-rgb), 0.08), transparent 28%),
    #fff;
}

.course-suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-suite-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(var(--ink-rgb), 0.07);
}

.course-suite-card:nth-child(1) {
  --course-accent: #c96e7c;
  --course-soft: #fff0f3;
}

.course-suite-card:nth-child(2) {
  --course-accent: #bd8d2b;
  --course-soft: #fff6d9;
}

.course-suite-card:nth-child(3) {
  --course-accent: #3279b7;
  --course-soft: #edf6ff;
}

.course-suite-card:nth-child(4) {
  --course-accent: #32875e;
  --course-soft: #edf9ef;
}

.course-suite-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-suite-card div {
  display: flex;
  min-height: 270px;
  flex: 1;
  flex-direction: column;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.86) 0 4px, transparent 4.5px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--course-soft), rgba(255, 255, 255, 0.92));
}

.course-suite-card span {
  width: fit-content;
  margin-bottom: 20px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--course-accent);
  font-size: 12px;
  font-weight: 900;
}

.course-suite-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.course-suite-card p {
  color: var(--muted);
  font-weight: 720;
}

.course-suite-card small {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--course-accent);
  font-weight: 850;
  line-height: 1.5;
}

.course-stage-section {
  background:
    linear-gradient(135deg, rgba(255, 240, 243, 0.5), rgba(237, 246, 255, 0.62) 52%, rgba(237, 249, 239, 0.56)),
    var(--mist);
}

.course-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.course-stage-grid article {
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.06);
}

.course-stage-grid strong {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 18px;
}

.course-stage-grid article:nth-child(1) strong {
  background: #c96e7c;
}

.course-stage-grid article:nth-child(2) strong {
  background: #bd8d2b;
}

.course-stage-grid article:nth-child(3) strong {
  background: #3279b7;
}

.course-stage-grid article:nth-child(4) strong {
  background: #32875e;
}

.course-stage-grid h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.course-stage-grid p {
  color: var(--muted);
  font-weight: 720;
}

.course-match-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), 0.07);
}

.course-match-panel div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.course-match-panel div:nth-child(even) {
  background: rgba(255, 246, 217, 0.38);
}

.course-match-panel div:last-child {
  border-bottom: 0;
}

.course-match-panel b {
  color: var(--green-dark);
  font-size: 21px;
}

.course-match-panel span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 740;
  line-height: 1.65;
}

.resource-pack {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.resource-pack-main {
  padding: 28px;
  border-radius: 8px;
  color: #fff5ed;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.96), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
  box-shadow: var(--shadow);
}

.resource-pack-main .module-label {
  color: var(--gold);
}

.resource-pack-main h3 {
  margin: 12px 0 12px;
  font-size: 32px;
  line-height: 1.18;
}

.resource-pack-main p {
  margin-bottom: 22px;
  color: rgba(255, 245, 237, 0.74);
}

.pack-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.pack-meta div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pack-meta dt,
.pack-meta dd {
  margin: 0;
}

.pack-meta dt {
  color: rgba(255, 245, 237, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.pack-meta dd {
  color: rgba(255, 245, 237, 0.9);
  font-weight: 750;
}

.resource-pack-main .tag {
  color: #fff5ed;
  background: rgba(255, 255, 255, 0.12);
}

.download-panel {
  display: grid;
  gap: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(var(--ink-rgb), 0.05);
}

.download-item:hover {
  border-color: rgba(var(--accent-rgb), 0.36);
  box-shadow: 0 14px 28px rgba(var(--ink-rgb), 0.09);
}

.download-item.feature {
  padding: 18px;
  border-color: rgba(108, 157, 87, 0.26);
  background:
    linear-gradient(90deg, rgba(108, 157, 87, 0.09), rgba(255, 255, 255, 0.92)),
    #fff;
}

.download-item strong,
.download-item small,
.download-item i {
  display: block;
}

.download-item strong {
  font-size: 17px;
}

.download-item small {
  color: var(--muted);
  font-size: 13px;
}

.download-item i {
  margin-bottom: 4px;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.download-item em {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.download-grid .download-item {
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  min-height: 150px;
  padding: 17px;
}

.download-grid .download-item em {
  width: fit-content;
  min-width: 74px;
  margin-top: 10px;
}

.download-item.highlight em {
  background: var(--leaf);
}

.writing-practice-hero {
  background:
    linear-gradient(135deg, rgba(var(--panel-rgb), 0.94), rgba(var(--accent-rgb), 0.74)),
    var(--deep-a);
}

.writing-practice-shell {
  padding-top: 56px;
}

.toefl-mock-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(237, 246, 255, 0.72), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(237, 249, 239, 0.62), transparent 28%),
    linear-gradient(180deg, #fffaf3, #fff);
}

.toefl-mock-shell {
  padding-top: 54px;
}

.mock-page-head {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  align-items: end;
}

.mock-page-head h1 {
  margin: 8px 0 10px;
  color: var(--green-dark);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
}

.mock-page-head p {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
}

.mock-source-card {
  padding: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(var(--ink-rgb), 0.08);
}

.mock-source-card strong {
  color: var(--green-dark);
  font-size: 18px;
}

.mock-source-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mock-source-card a {
  width: fit-content;
  color: var(--green-dark);
  font-weight: 900;
}

.mock-app {
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) minmax(340px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.mock-control-panel,
.mock-pdf-panel,
.mock-answer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(var(--ink-rgb), 0.08);
}

.mock-control-panel {
  position: sticky;
  top: 116px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mock-timer-card {
  padding: 16px;
  display: grid;
  gap: 7px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(var(--panel-rgb), 0.98), rgba(var(--ink-rgb), 1)),
    var(--green-dark);
}

.mock-timer-card span,
.mock-timer-card small {
  color: rgba(255, 245, 237, 0.74);
  font-weight: 850;
}

.mock-timer-card strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.mock-control-buttons,
.mock-export-actions,
.mock-pdf-actions,
.mock-recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-control-buttons button,
.mock-export-actions button,
.mock-panel-head button,
.mock-recorder-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mock-control-buttons button:nth-child(2),
.mock-export-actions button:nth-child(2),
.mock-panel-head button,
.mock-recorder-actions button:nth-child(2) {
  color: var(--green-dark);
  background: var(--mist);
}

.mock-control-buttons button:disabled,
.mock-recorder-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.mock-section-list {
  display: grid;
  gap: 8px;
}

.mock-section-list button {
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mock-section-list button.active {
  border-color: rgba(var(--accent-rgb), 0.42);
  background:
    linear-gradient(135deg, rgba(237, 249, 239, 0.96), rgba(255, 247, 221, 0.72)),
    #fff;
}

.mock-section-list span {
  font-weight: 950;
}

.mock-section-list b {
  color: var(--muted);
  font-size: 12px;
}

.mock-progress-card {
  display: grid;
  gap: 8px;
}

.mock-progress-card span {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
}

.mock-progress-card i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.mock-progress-card strong {
  color: var(--green-dark);
  font-size: 14px;
}

.mock-panel-head {
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.mock-panel-head div {
  display: grid;
  gap: 3px;
}

.mock-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-panel-head strong {
  color: var(--green-dark);
  font-size: 20px;
}

.mock-pdf-actions a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.mock-pdf-actions a:nth-child(2) {
  color: var(--green-dark);
  background: var(--mist);
}

.mock-page-viewer {
  border-radius: 0 0 8px 8px;
  background: #f8faf9;
}

.mock-page-controls {
  min-height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.mock-page-controls button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mock-page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mock-page-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.mock-page-controls input {
  width: 72px;
  min-height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.mock-page-stage {
  height: 724px;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 245, 0.92)),
    #fff;
}

.mock-page-stage img {
  width: 100%;
  min-width: 620px;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(var(--ink-rgb), 0.1);
}

.mock-answer-panel {
  overflow: hidden;
}

.mock-section-brief {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.mock-answer-sheet {
  height: 718px;
  padding: 14px;
  overflow: auto;
}

.mock-choice-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.07);
}

.mock-choice-row strong {
  color: var(--green-dark);
  font-size: 13px;
}

.mock-choice-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mock-option {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.mock-option input {
  position: absolute;
  opacity: 0;
}

.mock-option.selected {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.mock-writing-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-writing-row span,
.mock-speaking-row span {
  color: var(--green-dark);
  font-weight: 950;
}

.mock-writing-row input,
.mock-writing-row textarea {
  width: 100%;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.mock-writing-row textarea {
  min-height: 180px;
  resize: vertical;
}

.mock-writing-row small {
  color: var(--muted);
  font-weight: 850;
}

.mock-recorder {
  margin-bottom: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 249, 239, 0.92), rgba(255, 247, 221, 0.58)),
    #fff;
}

.mock-recorder > div:first-child {
  display: grid;
  gap: 4px;
}

.mock-recorder strong {
  color: var(--green-dark);
}

.mock-recorder span {
  color: var(--muted);
  font-weight: 850;
}

.mock-recorder audio {
  width: 100%;
}

.mock-speaking-row {
  min-height: 46px;
  margin-bottom: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.mock-speaking-row b {
  color: var(--muted);
  font-size: 12px;
}

.mock-result-panel {
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  background: #fffaf3;
}

.mock-result-panel strong {
  color: var(--green-dark);
  font-size: 18px;
}

.mock-result-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.mock-result-panel li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  color: var(--muted);
}

.duolingo-mock-page {
  background:
    radial-gradient(circle at 10% 12%, rgba(231, 248, 245, 0.76), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(237, 246, 255, 0.74), transparent 28%),
    radial-gradient(circle at 80% 88%, rgba(255, 247, 221, 0.7), transparent 30%),
    linear-gradient(180deg, #fffaf3, #fff);
}

.duolingo-mock-shell {
  padding-top: 54px;
}

.det-page-head h1 {
  color: #173767;
}

.det-page-head p {
  max-width: 880px;
}

.det-app {
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) minmax(350px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.det-control-panel,
.det-task-panel,
.det-answer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(var(--ink-rgb), 0.08);
}

.det-task-panel,
.det-answer-panel {
  overflow: hidden;
}

.det-task-body,
.det-response-body {
  min-height: 690px;
  padding: 18px;
  overflow: auto;
}

.det-progress-card {
  display: grid;
  gap: 8px;
}

.det-progress-card span {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
}

.det-progress-card i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1cb27b, #f4bd4f);
}

.det-progress-card strong {
  color: var(--green-dark);
  font-size: 14px;
}

.det-task-list {
  max-height: 440px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.det-task-list button {
  min-height: 54px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.det-task-list button.active {
  border-color: rgba(28, 178, 123, 0.5);
  background:
    linear-gradient(135deg, rgba(231, 248, 245, 0.94), rgba(237, 246, 255, 0.74)),
    #fff;
}

.det-task-list button.done span {
  color: #fff;
  background: #1cb27b;
}

.det-task-list span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #173767;
  background: var(--mist);
  font-size: 12px;
  font-weight: 950;
}

.det-task-list b {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.det-nav-buttons {
  display: flex;
  gap: 8px;
}

.det-nav-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.det-task-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 18px;
}

.det-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.det-task-meta span,
.det-task-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.det-task-meta b {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #173767;
  background: rgba(237, 246, 255, 0.92);
  font-size: 14px;
}

.det-task-card h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.25;
}

.det-prompt-text {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(23, 55, 103, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 28px;
  font-weight: 780;
  line-height: 1.45;
}

.det-prompt-text mark {
  padding: 0 8px;
  color: #0b8f73;
  background: rgba(231, 248, 245, 0.94);
  border-radius: 6px;
}

.det-listen-button {
  width: fit-content;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: #173767;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.det-photo-prompt {
  min-height: 360px;
  padding: 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(28, 178, 123, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(231, 248, 245, 0.92), rgba(237, 246, 255, 0.86)),
    #fff;
  text-align: center;
}

.det-photo-prompt span {
  width: 124px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 55, 103, 0.14), transparent 52%),
    linear-gradient(45deg, rgba(28, 178, 123, 0.72), rgba(244, 189, 79, 0.78));
  box-shadow: inset 0 -20px 0 rgba(255, 255, 255, 0.24);
}

.det-photo-prompt strong {
  color: #173767;
  font-size: 18px;
}

.det-photo-prompt p {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 820;
  line-height: 1.38;
}

.det-word-preview,
.det-word-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.det-word-preview span,
.det-word-chip {
  min-height: 50px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 55, 103, 0.13);
  border-radius: 8px;
  color: #173767;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.det-word-chip {
  cursor: pointer;
}

.det-word-chip.selected {
  color: #fff;
  border-color: #1cb27b;
  background: #1cb27b;
}

.det-response-label {
  display: grid;
  gap: 8px;
}

.det-response-label span,
.det-select-card p,
.det-complete-row span {
  color: var(--green-dark);
  font-weight: 900;
}

.det-response-label textarea {
  width: 100%;
  min-height: 230px;
  border: 2px solid rgba(15, 143, 140, 0.46);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  font: 20px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  resize: vertical;
  outline: none;
}

.det-response-label textarea:focus {
  border-color: #0f8f8c;
  box-shadow: 0 0 0 4px rgba(15, 143, 140, 0.11);
}

.det-word-counter {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 950;
}

.det-answer-reveal {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.det-answer-reveal summary {
  color: var(--green-dark);
  font-weight: 950;
  cursor: pointer;
}

.det-answer-reveal p {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 760;
}

.det-select-card {
  display: grid;
  gap: 16px;
}

.det-select-card strong {
  color: var(--muted);
}

.det-complete-row {
  min-height: 52px;
  margin: 14px 0;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.det-recorder {
  background:
    linear-gradient(135deg, rgba(231, 248, 245, 0.88), rgba(237, 246, 255, 0.64)),
    #fff;
}

.det-result-panel {
  margin-top: 0;
}

.toeic-mock-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(231, 248, 245, 0.74), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(237, 246, 255, 0.72), transparent 26%),
    radial-gradient(circle at 80% 88%, rgba(255, 247, 221, 0.66), transparent 30%),
    linear-gradient(180deg, #fffaf3, #fff);
}

.toeic-mock-shell {
  padding-top: 26px;
}

.toeic-page-head {
  margin-bottom: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.3fr);
  align-items: center;
}

.toeic-page-head h1 {
  margin: 5px 0 7px;
  color: #173767;
  font-size: clamp(34px, 4vw, 48px);
}

.toeic-page-head p {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
}

.toeic-page-head .mock-source-card {
  padding: 14px;
  gap: 6px;
}

.toeic-simple-guide {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toeic-simple-guide span {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 143, 140, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(var(--ink-rgb), 0.05);
  font-size: 14px;
  font-weight: 820;
}

.toeic-simple-guide b {
  color: #173767;
  font-size: 15px;
}

.toeic-app {
  grid-template-columns: 258px minmax(500px, 1.16fr) minmax(360px, 0.84fr);
  gap: 14px;
}

.toeic-app .mock-panel-head {
  min-height: 66px;
  padding: 12px 14px;
}

.toeic-app .mock-panel-head strong {
  font-size: 19px;
}

.toeic-timer-card {
  padding: 15px;
  background:
    linear-gradient(145deg, #173767, #0f8f8c),
    var(--green-dark);
}

.toeic-timer-card strong {
  font-size: 36px;
}

.toeic-task-body,
.toeic-response-body {
  min-height: 620px;
  padding: 16px;
}

.toeic-task-list button.active {
  border-color: rgba(15, 143, 140, 0.42);
  background:
    linear-gradient(135deg, rgba(231, 248, 245, 0.94), rgba(255, 247, 221, 0.72)),
    #fff;
}

.toeic-task-list button.done span {
  background: #0f8f8c;
}

.toeic-task-list {
  max-height: 390px;
}

.toeic-task-list button {
  min-height: 48px;
  padding: 8px;
}

.toeic-task-list b {
  color: #173767;
  font-size: 12px;
}

.toeic-prep-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toeic-prep-strip span {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #173767;
  background: rgba(255, 247, 221, 0.96);
  font-size: 14px;
  font-weight: 950;
}

.toeic-task-card {
  gap: 14px;
}

.toeic-task-card h2 {
  color: #173767;
  font-size: 22px;
}

.toeic-prompt-text {
  color: #1f2529;
  font-size: 23px;
  line-height: 1.42;
}

.toeic-picture-prompt {
  min-height: 300px;
  padding: 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(15, 143, 140, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(231, 248, 245, 0.88), rgba(255, 247, 221, 0.72)),
    #fff;
  text-align: center;
}

.toeic-picture-prompt span {
  width: 122px;
  height: 86px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 55, 103, 0.14), transparent 52%),
    linear-gradient(45deg, rgba(15, 143, 140, 0.72), rgba(244, 189, 79, 0.72));
  box-shadow: inset 0 -20px 0 rgba(255, 255, 255, 0.25);
}

.toeic-picture-prompt strong,
.toeic-info-card strong,
.toeic-note-list strong {
  color: #173767;
  font-size: 18px;
  font-weight: 950;
}

.toeic-picture-prompt p {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 820;
  line-height: 1.42;
}

.toeic-info-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 143, 140, 0.2);
  border-radius: 8px;
  background: #fff;
}

.toeic-info-card table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.toeic-info-card th,
.toeic-info-card td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  text-align: left;
}

.toeic-info-card th {
  width: 118px;
  color: #173767;
  background: rgba(255, 247, 221, 0.7);
}

.toeic-info-card td {
  color: var(--ink);
  font-weight: 760;
}

.toeic-note-list {
  padding: 14px;
  border: 1px solid rgba(15, 143, 140, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.toeic-note-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 820;
}

.toeic-note-list li {
  margin: 6px 0;
}

.toeic-recorder {
  padding: 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(231, 248, 245, 0.88), rgba(255, 247, 221, 0.58)),
    #fff;
}

.toeic-recorder .mock-recorder-actions {
  justify-content: flex-end;
}

.toeic-recorder audio {
  grid-column: 1 / -1;
}

.toeic-response-body .det-complete-row {
  margin: 12px 0;
}

.toeic-response-body .det-response-label textarea {
  min-height: 190px;
  font-size: 18px;
}

.toeic-response-body .det-answer-reveal {
  margin-top: 12px;
}

.writing-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.writing-toolbar h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.writing-task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.writing-task-tabs button,
.writing-editor-tools button,
.writing-timer button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(var(--ink-rgb), 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.writing-task-tabs button.active,
.writing-editor-tools button:first-child,
.writing-timer button:first-child {
  color: #fff;
  background: var(--green);
}

.writing-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.25fr);
  gap: 22px;
  align-items: start;
}

.writing-prompt-card,
.writing-editor-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.writing-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

#writing-prompt-content {
  padding: 24px;
  font-size: 17px;
}

#writing-prompt-content h3 {
  margin: 20px 0 12px;
  font-size: 19px;
  line-height: 1.35;
}

#writing-prompt-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

#writing-prompt-content li {
  margin: 8px 0;
}

.writing-professor-card,
.writing-classmate-posts {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--mist);
}

.writing-classmate-posts {
  display: grid;
  gap: 12px;
}

.writing-classmate-posts p,
.writing-professor-card p {
  margin: 8px 0 0;
}

.writing-response-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.writing-response-head span,
.writing-response-head strong {
  display: block;
}

.writing-response-head span {
  color: var(--muted);
  font-weight: 800;
}

.writing-response-head strong {
  margin-top: 10px;
  color: var(--green-dark);
}

.writing-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.writing-timer span {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
}

.writing-editor-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.writing-editor-tools span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.writing-editor-tools b {
  color: var(--green-dark);
  font-size: 22px;
}

.writing-input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#writing-answer {
  display: block;
  width: calc(100% - 48px);
  min-height: 420px;
  margin: 24px;
  padding: 18px;
  border: 2px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  font: 18px/1.65 Georgia, "Times New Roman", serif;
  resize: vertical;
  outline: none;
}

#writing-answer:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.writing-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0 24px 24px;
}

.writing-progress > span {
  height: 12px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.writing-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.2s ease;
}

.writing-progress strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.writing-sample-box {
  margin: 0 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}

.writing-sample-box summary {
  padding: 16px 18px;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

#writing-sample-content {
  padding: 0 18px 18px;
}

.writing-sample-answer {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.writing-sample-answer p {
  margin: 0 0 14px;
}

.writing-review-notes {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--mist);
}

.writing-review-notes ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.page-head.writing-practice-hero {
  background:
    linear-gradient(135deg, rgba(16, 38, 77, 0.96), rgba(var(--panel-rgb), 0.9)),
    var(--deep-a);
  color: #fff;
}

.page-head.writing-practice-hero .eyebrow {
  color: #f6c47b;
}

.page-head.writing-practice-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-head.writing-practice-hero p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.writing-exam-practice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.writing-exam-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.writing-exam-controls > div:first-child {
  display: grid;
  gap: 4px;
}

.writing-exam-controls > div:first-child span {
  color: var(--muted);
  font-weight: 800;
}

.writing-exam-controls > div:first-child strong {
  color: var(--green-dark);
  font-size: 20px;
}

.writing-reset-button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.14);
}

.writing-exam-controls .writing-editor-tools {
  padding: 0;
  border-bottom: 0;
  justify-content: flex-end;
}

.writing-exam-controls .writing-editor-tools span {
  margin-left: 0;
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--green-dark);
}

.writing-exam-frame {
  position: relative;
  min-width: 914px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #ccd8d8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body[data-writing-exam="toefl"] .writing-exam-frame:not(.writing-discussion-mode) {
  height: clamp(520px, 52vw, 620px);
}

.writing-exam-frame img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-writing-exam="toefl"] .writing-exam-frame:not(.writing-discussion-mode) img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.writing-left-prompt {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40.95%;
  background: #fff;
  border-right: 0;
  color: #202528;
  font-family: Arial, "Helvetica Neue", sans-serif;
  z-index: 4;
}

.writing-left-header {
  height: 8.2%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 0;
  color: #252525;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.writing-left-header span {
  width: 1px;
  height: 18px;
  background: #cfd6d6;
}

.writing-left-header b {
  font: inherit;
}

.writing-left-body {
  height: 91.8%;
  padding: 20px 36px 24px 28px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.36;
}

.writing-left-body p {
  margin: 0 0 14px;
}

.writing-left-body h3 {
  margin: 18px 0 12px;
  color: #171a1d;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 850;
}

.writing-left-body ul {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding-left: 24px;
}

.writing-left-body li {
  padding-left: 5px;
}

.writing-left-body li::marker {
  font-size: 1.35em;
  color: #000;
}

.writing-left-body .writing-professor-card,
.writing-left-body .writing-classmate-posts {
  margin-top: 12px;
  padding: 0;
  background: transparent;
}

.writing-left-body .writing-professor-avatar {
  width: 104px;
  height: 104px;
  display: block;
  margin: 6px auto 8px;
  border-radius: 50%;
  object-fit: cover;
}

.writing-left-body .writing-professor-card strong {
  display: inline-block;
  margin-bottom: 8px;
}

.writing-left-body .writing-classmate-posts {
  gap: 8px;
  font-size: 13px;
  line-height: 1.32;
}

.writing-center-join {
  position: absolute;
  left: 40.95%;
  top: 8.2%;
  bottom: 0;
  width: 1.05%;
  background:
    linear-gradient(90deg, #fff 0%, #fff 72%, rgba(255, 255, 255, 0.62) 100%);
  border-left: 1px solid #dce7e7;
  box-shadow:
    3px 0 10px rgba(255, 255, 255, 0.86),
    -3px 0 8px rgba(255, 255, 255, 0.86);
  pointer-events: none;
  z-index: 5;
}

.writing-right-clean-panel {
  position: absolute;
  left: 40.95%;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  pointer-events: none;
  z-index: 1;
}

.writing-top-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 8.2%;
  height: 1px;
  background: #8d9395;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 6;
}

.writing-right-meta {
  position: absolute;
  left: 41.15%;
  right: 0;
  top: var(--meta-top, 8.35%);
  height: var(--meta-height, 17.3%);
  padding: 18px 40px 0 46px;
  background: #fff;
  color: #15191c;
  font-family: Arial, "Helvetica Neue", sans-serif;
  overflow: hidden;
  z-index: 3;
}

.writing-right-meta:empty {
  display: none;
}

.writing-right-meta strong,
.writing-right-meta b {
  display: block;
  font-weight: 850;
}

.writing-right-meta strong {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1;
}

.writing-right-meta b {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.05;
}

.writing-right-meta p {
  max-width: 720px;
  margin: 0;
  color: #2b3033;
  font-size: 17px;
  line-height: 1.35;
}

.writing-task-card {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #d9e4e4;
  border-radius: 8px;
  background: #f8fbfb;
}

.writing-task-card p {
  margin: 8px 0 0;
}

.writing-exam-frame.writing-generic-mode .writing-left-body {
  padding: 20px 34px 24px 28px;
  font-size: 18px;
  line-height: 1.24;
}

.writing-exam-frame.writing-generic-mode .writing-left-body p {
  margin-bottom: 13px;
}

.writing-exam-frame.writing-generic-mode .writing-left-body h3 {
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.writing-exam-frame.writing-generic-mode .writing-left-body ul {
  gap: 9px;
}

.writing-exam-frame.writing-generic-mode .writing-right-meta {
  padding: 20px 40px 0 42px;
}

.writing-exam-frame.writing-generic-mode .writing-right-meta strong {
  margin-bottom: 16px;
  font-size: 20px;
}

.writing-exam-frame.writing-generic-mode .writing-right-meta b {
  margin-bottom: 12px;
  font-size: 18px;
}

.writing-exam-frame.writing-discussion-mode {
  min-height: 690px;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body {
  padding: 18px 30px 12px 28px;
  font-size: 18px;
  line-height: 1.14;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body p {
  margin-bottom: 10px;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.12;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body ul {
  gap: 8px;
  margin-bottom: 10px;
}

.writing-exam-frame.writing-discussion-mode .writing-professor-avatar {
  width: 92px;
  height: 92px;
  margin: 4px auto 8px;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body .writing-professor-card {
  margin-top: 0;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body .writing-professor-card strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.writing-exam-frame.writing-discussion-mode .writing-left-body .writing-professor-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.09;
}

.writing-exam-frame.writing-discussion-mode .writing-right-meta {
  top: 8.35%;
  height: calc(var(--toolbar-top) - 8.35%);
  padding: 22px 34px 10px 30px;
}

.writing-discussion-posts {
  display: grid;
  gap: 24px;
}

.writing-discussion-post {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: start;
}

.writing-discussion-post img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.writing-discussion-post p {
  margin: 0;
  color: #1c2428;
  font-size: 18px;
  line-height: 1.2;
}

.writing-overlay-timer {
  position: absolute;
  top: 0.6%;
  right: 1%;
  height: 7.4%;
  width: 18.3%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fff;
  color: #222;
  font: 700 15px/1 Arial, "Helvetica Neue", sans-serif;
  z-index: 7;
}

.writing-overlay-timer span {
  min-width: 76px;
  text-align: right;
}

.writing-overlay-timer button,
.writing-overlay-word-count button {
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #168f8d;
  background: transparent;
  font: 700 12px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.writing-overlay-timer i,
.writing-overlay-word-count i {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.writing-overlay-timer i::after,
.writing-overlay-word-count i::after {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border-radius: 50%;
  background: currentColor;
}

.writing-overlay-timer i::before,
.writing-overlay-word-count i::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 4px;
  height: 3px;
  background: currentColor;
  transform: rotate(-36deg);
}

.writing-toolbar-strip {
  position: absolute;
  left: 41.15%;
  right: 0.7%;
  top: var(--toolbar-top);
  height: var(--toolbar-height);
  background: #fff;
  border-top: 1px solid #eef3f3;
  border-bottom: 1px solid #eef3f3;
  pointer-events: none;
  z-index: 3;
}

.writing-overlay-actions {
  position: absolute;
  left: var(--actions-left);
  top: var(--actions-top);
  width: var(--actions-width);
  height: 7.2%;
  padding: 0 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  background: transparent;
  z-index: 7;
}

.writing-overlay-actions button {
  height: 74%;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #058b8d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font: 700 13px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.writing-overlay-actions button:nth-child(2),
.writing-overlay-actions button:nth-child(4) {
  color: #3f4548;
  background: #e4e5e6;
}

.writing-overlay-word-count {
  position: absolute;
  left: var(--word-left);
  top: var(--word-top);
  width: var(--word-width);
  height: 7.2%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: transparent;
  color: #2b3033;
  z-index: 7;
}

.writing-overlay-word-count strong {
  min-width: 34px;
  color: #2b3033;
  font: 500 18px/1 Arial, "Helvetica Neue", sans-serif;
  text-align: right;
}

.writing-exam-frame.time-hidden .writing-overlay-timer span {
  visibility: hidden;
}

.writing-exam-frame.word-count-hidden .writing-overlay-word-count strong {
  visibility: hidden;
}

.writing-exam-frame #writing-answer {
  position: absolute;
  left: var(--answer-left);
  top: var(--answer-top);
  width: var(--answer-width);
  height: var(--answer-height);
  min-height: 0;
  margin: 0;
  padding: 10px 8px;
  border: 2px solid #168f8d;
  border-radius: 0;
  color: #18262c;
  background: #fff;
  box-shadow: none;
  font: 17px/1.34 Arial, "Helvetica Neue", sans-serif;
  outline: none;
  resize: none;
  z-index: 6;
}

.writing-exam-frame #writing-answer:focus {
  border-color: #0d8f8c;
  box-shadow: inset 0 0 0 1px rgba(13, 143, 140, 0.32);
}

.writing-exam-frame #writing-answer::placeholder {
  color: #5a676b;
}

body[data-writing-exam="toefl"] .site-header,
body[data-writing-exam="toefl"] .site-footer,
body[data-writing-exam="toefl"] .page-head.writing-practice-hero,
body[data-writing-exam="toefl"] .writing-toolbar,
body[data-writing-exam="toefl"] .writing-exam-controls,
body[data-writing-exam="toefl"] .writing-progress,
body[data-writing-exam="toefl"] .writing-sample-box {
  display: none;
}

body[data-writing-exam="toefl"] .writing-practice-page {
  min-height: 100vh;
  background: #b7b7b7;
}

body[data-writing-exam="toefl"] .writing-practice-shell {
  --toefl-answer-panel-width: clamp(200px, 11vw, 240px);
  --toefl-answer-panel-gap: 18px;
  min-height: 100vh;
  padding: 0 24px;
  position: relative;
  background: #b7b7b7;
  overflow-x: auto;
}

body[data-writing-exam="toefl"] .writing-practice-shell .wrap {
  width: 1100px;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0 auto;
}

body[data-writing-exam="toefl"] .writing-exam-practice {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-writing-exam="toefl"] .writing-exam-frame,
body[data-writing-exam="toefl"] .writing-exam-frame:not(.writing-discussion-mode) {
  width: 1100px;
  height: 100vh;
  min-height: 760px;
  min-width: 1100px;
  max-width: 1100px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body[data-writing-exam="toefl"] .writing-exam-frame > img {
  display: none;
}

body[data-writing-exam="toefl"] .toefl-test-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.04)),
    linear-gradient(90deg, #008f7c 0%, #007d73 52%, #006f68 100%);
  z-index: 50;
}

body[data-writing-exam="toefl"] .toefl-test-header::after {
  display: none;
  content: none;
}

body[data-writing-exam="toefl"] .toefl-test-brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 24px;
  color: #fff;
  font: 800 29px/1 Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="toefl"] .toefl-star {
  margin-right: -2px;
  font-size: 20px;
  line-height: 1;
}

body[data-writing-exam="toefl"] .toefl-wordmark {
  letter-spacing: -0.06em;
}

body[data-writing-exam="toefl"] .toefl-test-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  z-index: 52;
}

body[data-writing-exam="toefl"] .toefl-help-button,
body[data-writing-exam="toefl"] .toefl-next-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 1px 5px rgba(0, 0, 0, 0.16);
  font: 800 15px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="toefl"] .toefl-help-button b {
  margin-left: 8px;
  color: #e9fffb;
}

body[data-writing-exam="toefl"] .toefl-next-button {
  color: #006d65;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

body[data-writing-exam="toefl"] .toefl-next-button b {
  margin-left: 8px;
  font-size: 26px;
  line-height: 0;
  vertical-align: -2px;
}

body[data-writing-exam="toefl"] .toefl-help-popover {
  position: absolute;
  top: 60px;
  right: 108px;
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid #0a6960;
  color: #12302d;
  background: #f4fffc;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  font: 800 14px/1.35 Arial, "Helvetica Neue", sans-serif;
  text-align: center;
  z-index: 40;
}

body[data-writing-exam="toefl"] .toefl-section-bar {
  position: absolute;
  inset: 52px 0 auto 0;
  height: 34px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #232323;
  background: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid #777;
  font: 800 15px/1 Arial, "Helvetica Neue", sans-serif;
  z-index: 20;
}

body[data-writing-exam="toefl"] .toefl-section-bar span {
  width: 1px;
  height: 20px;
  background: #c9cfcf;
}

body[data-writing-exam="toefl"] .writing-left-prompt {
  top: 86px;
  bottom: 0;
  width: 40.25%;
  border-right: 1px solid #e2e6e6;
  font-family: Arial, "Helvetica Neue", sans-serif;
  z-index: 4;
}

body[data-writing-exam="toefl"] .writing-left-header {
  display: none;
}

body[data-writing-exam="toefl"] .writing-left-body {
  height: 100%;
  padding: 20px 34px 24px 28px;
  box-sizing: border-box;
  overflow: auto;
  color: #202427;
  font-size: 18px;
  line-height: 1.34;
  letter-spacing: 0;
}

body[data-writing-exam="toefl"] .writing-left-body p {
  margin: 0 0 16px;
}

body[data-writing-exam="toefl"] .writing-left-body h3 {
  margin: 18px 0 14px;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 850;
}

body[data-writing-exam="toefl"] .writing-left-body ul {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
}

body[data-writing-exam="toefl"] .writing-left-body li {
  position: relative;
  padding-left: 34px;
  line-height: 1.34;
}

body[data-writing-exam="toefl"] .writing-left-body li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #000;
}

body[data-writing-exam="toefl"] .toefl-email-prompt > p:last-child,
body[data-writing-exam="toefl"] .toefl-discussion-prompt > p:last-of-type {
  margin-top: 4px;
}

body[data-writing-exam="toefl"] .toefl-response-meta {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

body[data-writing-exam="toefl"] .writing-right-meta .toefl-response-meta strong {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.12;
}

body[data-writing-exam="toefl"] .writing-right-meta .toefl-response-meta b {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

body[data-writing-exam="toefl"] .writing-center-join {
  display: none;
}

body[data-writing-exam="toefl"] .writing-right-clean-panel {
  left: 40.25%;
  top: 86px;
  bottom: 0;
  background: #fff;
}

body[data-writing-exam="toefl"] .writing-top-rule {
  display: none;
}

body[data-writing-exam="toefl"] .writing-right-meta {
  left: 40.25%;
  top: var(--meta-top, 88px);
  height: var(--meta-height, 126px);
  padding: 22px 40px 0 42px;
  background: #fff;
  color: #111;
  z-index: 4;
}

body[data-writing-exam="toefl"] .writing-right-meta strong {
  margin-bottom: 18px;
  font-size: 19px;
}

body[data-writing-exam="toefl"] .writing-right-meta b {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.1;
}

body[data-writing-exam="toefl"] .writing-overlay-timer {
  top: 52px;
  right: 14px;
  width: 214px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 2px solid #777;
  background: #fff;
  z-index: 24;
}

body[data-writing-exam="toefl"] .writing-overlay-timer span {
  min-width: 82px;
  font-size: 14px;
}

body[data-writing-exam="toefl"] .writing-overlay-timer button {
  color: #078478;
  font-size: 13px;
}

body[data-writing-exam="toefl"] .writing-toolbar-strip {
  left: 40.25%;
  right: 1.2%;
  top: var(--toolbar-top, 214px);
  height: var(--toolbar-height, 56px);
  border-radius: 18px 18px 0 0;
  border-top: 0;
  border-bottom: 1px solid #eef1f1;
  background: #fff;
  box-shadow: none;
  z-index: 3;
}

body[data-writing-exam="toefl"] .writing-overlay-actions {
  left: var(--actions-left);
  top: var(--actions-top);
  width: var(--actions-width);
  height: 44px;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  z-index: 8;
}

body[data-writing-exam="toefl"] .writing-overlay-actions button {
  height: 36px;
  border-radius: 7px;
  background: #078f87;
  font-size: 13px;
}

body[data-writing-exam="toefl"] .writing-overlay-actions button:nth-child(2),
body[data-writing-exam="toefl"] .writing-overlay-actions button:nth-child(4) {
  color: #3f4548;
  background: #e2e3e4;
}

body[data-writing-exam="toefl"] .writing-overlay-word-count {
  left: var(--word-left);
  top: var(--word-top);
  width: var(--word-width);
  height: 44px;
  padding-right: 18px;
  z-index: 8;
}

body[data-writing-exam="toefl"] .writing-overlay-word-count button {
  color: #078478;
  font-size: 13px;
}

body[data-writing-exam="toefl"] .writing-overlay-word-count strong {
  font-size: 18px;
}

body[data-writing-exam="toefl"] .writing-exam-frame #writing-answer {
  left: var(--answer-left);
  top: var(--answer-top);
  width: var(--answer-width);
  height: var(--answer-height);
  padding: 10px 12px;
  border: 2px solid #168f8d;
  border-radius: 0;
  font: 17px/1.34 Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="toefl"] .writing-exam-frame #writing-answer:focus {
  border-color: #0d8f8c;
  box-shadow: inset 0 0 0 1px rgba(13, 143, 140, 0.28);
}

body[data-writing-exam="toefl"] .writing-exam-frame #writing-answer::placeholder {
  color: #5a676b;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode {
  min-height: 760px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body {
  font-size: 18px;
  line-height: 1.26;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-right-meta {
  top: var(--meta-top, 110px);
  height: var(--meta-height, 294px);
  box-sizing: border-box;
  padding: 18px 32px 10px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-discussion-posts {
  gap: 18px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-discussion-post {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-discussion-post img {
  width: 60px;
  height: 60px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-discussion-person {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #222;
  font: 800 12px/1 Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-discussion-post p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.28;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body p {
  margin: 0 0 15px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body h3 {
  margin: 18px 0 14px;
  line-height: 1.3;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body ul {
  gap: 14px;
  margin-bottom: 24px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-professor-avatar {
  width: 98px;
  height: 98px;
  margin: 6px auto 12px;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body .writing-professor-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.2;
}

body[data-writing-exam="toefl"] .writing-exam-frame.writing-discussion-mode .writing-left-body .writing-professor-card p {
  margin: 0;
  line-height: 1.24;
}

body[data-writing-exam="toefl"] .toefl-answer-panel {
  position: absolute;
  top: 76px;
  left: min(
    calc(50vw + 550px + var(--toefl-answer-panel-gap)),
    calc(100vw - var(--toefl-answer-panel-width) - 12px)
  );
  right: auto;
  width: var(--toefl-answer-panel-width);
  display: grid;
  gap: 12px;
  justify-items: center;
  z-index: 18;
}

body[data-writing-exam="toefl"] .toefl-answer-panel button {
  min-height: 38px;
  border: 1px solid #117d74;
  border-radius: 4px;
  padding: 0 20px;
  color: #075a54;
  background: #e1f4f1;
  font: 800 14px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="toefl"] .toefl-answer-panel button:hover,
body[data-writing-exam="toefl"] .toefl-answer-panel button:focus-visible {
  background: #d4eeeb;
  outline: none;
}

body[data-writing-exam="toefl"] #toefl-answer-text {
  width: 100%;
  height: calc(100vh - 154px);
  min-height: 440px;
  box-sizing: border-box;
  padding: 12px 11px;
  border: 1px solid rgba(17, 125, 116, 0.48);
  border-radius: 4px;
  color: #0d6d65;
  background: rgba(239, 255, 252, 0.82);
  font: 14px/1.55 Arial, "Helvetica Neue", sans-serif;
  resize: vertical;
  outline: none;
}

body[data-writing-exam="toefl"] #toefl-answer-text::placeholder {
  color: rgba(13, 109, 101, 0.64);
  text-align: center;
}

body[data-writing-exam="gre"] .writing-practice-page {
  min-height: 100vh;
  background: #b8b8b8;
}

body[data-writing-exam="gre"] .site-header,
body[data-writing-exam="gre"] .site-footer {
  display: none;
}

body[data-writing-exam="gre"] .writing-practice-shell {
  min-height: 100vh;
  padding: 0 24px;
  background: #b8b8b8;
  overflow-x: auto;
}

body[data-writing-exam="gre"] .writing-practice-shell .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

body[data-writing-exam="gre"] .writing-toolbar,
body[data-writing-exam="gre"] .writing-exam-controls,
body[data-writing-exam="gre"] .writing-progress,
body[data-writing-exam="gre"] .writing-sample-box,
body[data-writing-exam="gre"] .writing-overlay-word-count,
body[data-writing-exam="gre"] .writing-right-meta,
body[data-writing-exam="gre"] .gre-hidden-tabs {
  display: none;
}

body[data-writing-exam="gre"] .writing-exam-practice {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-writing-exam="gre"] .writing-exam-frame {
  width: 1048px;
  height: 100vh;
  min-height: 680px;
  min-width: 1048px;
  max-width: 1048px;
  border: 1px solid #222;
  border-top-width: 3px;
  border-bottom-width: 3px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body[data-writing-exam="gre"] .gre-test-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0)),
    #252525;
  border-bottom: 2px solid #821a1f;
  color: #fff;
  z-index: 20;
}

body[data-writing-exam="gre"] .gre-test-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 0 28px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1;
}

body[data-writing-exam="gre"] .gre-star {
  margin-right: -18px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

body[data-writing-exam="gre"] .gre-wordmark {
  color: #f4f4f4;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

body[data-writing-exam="gre"] .gre-test-title {
  color: #f1f1f1;
  font-size: 18px;
  font-weight: 800;
}

body[data-writing-exam="gre"] .gre-test-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px 7px 4px 0;
}

body[data-writing-exam="gre"] .gre-help-button,
body[data-writing-exam="gre"] .gre-next-button {
  width: 66px;
  min-height: 48px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font: 700 14px/1.05 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="gre"] .gre-help-button {
  background: linear-gradient(180deg, #666, #343434);
}

body[data-writing-exam="gre"] .gre-next-button {
  background: linear-gradient(180deg, #507caf, #265a93);
}

body[data-writing-exam="gre"] .gre-help-button b,
body[data-writing-exam="gre"] .gre-next-button b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #555;
  font-size: 15px;
}

body[data-writing-exam="gre"] .gre-next-button b {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
}

body[data-writing-exam="gre"] .gre-help-popover {
  position: absolute;
  top: 66px;
  right: 160px;
  min-width: 210px;
  padding: 10px 12px;
  color: #2b2b2b;
  background: #fff8df;
  border: 1px solid #777;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  font: 700 14px/1.35 Arial, "Helvetica Neue", sans-serif;
  text-align: center;
  z-index: 40;
}

body[data-writing-exam="gre"] .gre-section-bar {
  position: absolute;
  inset: 56px 0 auto 0;
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #252525;
  background: #f5edf1;
  border-bottom: 2px solid #7a7a7a;
  font: 700 14px/1 Arial, "Helvetica Neue", sans-serif;
  z-index: 12;
}

body[data-writing-exam="gre"] .writing-exam-frame > img {
  display: none;
}

body[data-writing-exam="gre"] .writing-left-prompt {
  top: 90px;
  bottom: 0;
  width: 40.25%;
  border-right: 2px solid #666;
  font-family: Georgia, "Times New Roman", serif;
}

body[data-writing-exam="gre"] .writing-left-header {
  display: none;
}

body[data-writing-exam="gre"] .writing-left-header strong,
body[data-writing-exam="gre"] .writing-left-header span {
  display: none;
}

body[data-writing-exam="gre"] .writing-left-header b {
  color: #222;
}

body[data-writing-exam="gre"] .writing-left-body {
  height: 100%;
  padding: 0;
  overflow: auto;
  font: 18px/1.28 Georgia, "Times New Roman", serif;
}

body[data-writing-exam="gre"] .writing-left-body p {
  margin: 0;
}

body[data-writing-exam="gre"] .writing-left-body .gre-claim {
  min-height: 88px;
  padding: 10px 14px;
  border-bottom: 1px solid #777;
}

body[data-writing-exam="gre"] .writing-left-body .gre-directions {
  padding: 14px 14px 18px;
}

body[data-writing-exam="gre"] .writing-center-join {
  display: none;
}

body[data-writing-exam="gre"] .writing-right-clean-panel {
  left: 40.25%;
  top: 90px;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

body[data-writing-exam="gre"] .writing-top-rule {
  top: 90px;
  height: 1px;
  background: #666;
  box-shadow: none;
  z-index: 8;
}

body[data-writing-exam="gre"] .writing-overlay-timer {
  top: 56px;
  right: 8px;
  width: 190px;
  height: 32px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  font-size: 14px;
  z-index: 18;
}

body[data-writing-exam="gre"] .writing-overlay-timer button {
  color: #2f2f2f;
  font-size: 13px;
  font-weight: 500;
}

body[data-writing-exam="gre"] .writing-overlay-timer i {
  width: 13px;
  height: 13px;
  border-width: 2px;
  color: #2f2f2f;
}

body[data-writing-exam="gre"] .writing-overlay-timer i::before,
body[data-writing-exam="gre"] .writing-overlay-timer i::after {
  display: none;
}

body[data-writing-exam="gre"] .writing-toolbar-strip {
  left: 40.25%;
  right: 0;
  top: 90px;
  height: 32px;
  border-top: 0;
  border-bottom: 1px solid #8d8d8d;
  background: #d2d7d7;
  z-index: 4;
}

body[data-writing-exam="gre"] .writing-overlay-actions {
  left: 40.25%;
  top: 90px;
  width: 190px;
  height: 32px;
  padding: 0;
  gap: 2px;
  grid-template-columns: 36px 44px 44px 44px;
  background: transparent;
  z-index: 9;
}

body[data-writing-exam="gre"] .writing-overlay-actions button {
  height: 31px;
  border-radius: 0;
  border: 1px solid #969696;
  color: #111;
  background: linear-gradient(180deg, #f6f6f6, #d6d6d6);
  box-shadow: none;
  font: 700 13px/1 Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="gre"] .writing-overlay-actions button:nth-child(2),
body[data-writing-exam="gre"] .writing-overlay-actions button:nth-child(4) {
  color: #777;
  background: #d8d8d8;
}

body[data-writing-exam="gre"] .writing-overlay-actions button.is-active {
  color: #111;
  background: linear-gradient(180deg, #f6f6f6, #d6d6d6);
}

body[data-writing-exam="gre"] .writing-exam-frame #writing-answer {
  left: 40.25%;
  top: 122px;
  width: 59.75%;
  height: calc(100% - 122px);
  padding: 10px 12px;
  border: 0;
  color: #111;
  background: #fff;
  font: 18px/1.28 Georgia, "Times New Roman", serif;
}

body[data-writing-exam="gre"] .writing-exam-frame #writing-answer:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(45, 108, 168, 0.24);
}

body[data-writing-exam="gre"] .writing-exam-frame #writing-answer::placeholder {
  color: transparent;
}

body[data-writing-exam="gre"] .gre-answer-panel {
  position: fixed;
  top: 18px;
  right: 14px;
  bottom: 18px;
  width: clamp(176px, calc((100vw - 1048px) / 2 - 48px), 260px);
  min-width: 176px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  justify-items: center;
  z-index: 30;
}

body[data-writing-exam="gre"] .gre-answer-panel button {
  min-height: 36px;
  border: 1px solid #a75e5e;
  border-radius: 4px;
  padding: 0 18px;
  color: #8f3636;
  background: #f5dada;
  font: 700 14px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="gre"] .gre-answer-panel button:hover,
body[data-writing-exam="gre"] .gre-answer-panel button:focus-visible {
  background: #f1caca;
  outline: none;
}

body[data-writing-exam="gre"] #gre-answer-text {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 12px 10px;
  border: 1px solid rgba(171, 85, 85, 0.48);
  border-radius: 4px;
  color: #b46666;
  background: rgba(255, 235, 235, 0.78);
  font: 14px/1.55 Arial, "Helvetica Neue", sans-serif;
  text-align: center;
  resize: vertical;
  outline: none;
}

body[data-writing-exam="gre"] #gre-answer-text::placeholder {
  color: rgba(180, 102, 102, 0.72);
  text-align: center;
}

@media (max-width: 1420px) {
  body[data-writing-exam="gre"] .gre-answer-panel {
    position: absolute;
    top: 96px;
    bottom: 12px;
    right: 12px;
    width: 180px;
  }
}

body[data-writing-exam="gre"].gre-result-mode .writing-practice-shell .wrap,
body[data-writing-exam="gre"].gre-result-mode .gre-answer-panel {
  display: none;
}

body[data-writing-exam="gre"].gre-result-mode .writing-practice-shell {
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(222, 177, 83, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 244, 215, 0.12), transparent 26%),
    linear-gradient(135deg, #0b1322 0%, #14100b 55%, #1f1710 100%);
  overflow-x: visible;
}

body[data-writing-exam="gre"] .gre-result-screen {
  width: min(1120px, calc(100vw - 68px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

body[data-writing-exam="gre"] .gre-result-screen[hidden] {
  display: none;
}

body[data-writing-exam="gre"] .gre-result-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(223, 180, 92, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 24, 32, 0.98), rgba(12, 15, 19, 0.98)),
    #111;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 235, 188, 0.12);
  color: #f7f0e2;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="gre"] .gre-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(231, 191, 105, 0.42);
  border-radius: 8px;
  color: #fff7e7;
  background:
    linear-gradient(135deg, rgba(5, 14, 29, 0.98), rgba(38, 28, 15, 0.96)),
    #111;
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.14);
}

body[data-writing-exam="gre"] .gre-result-head span {
  color: #dcb45b;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-writing-exam="gre"] .gre-result-head h1 {
  margin: 6px 0 0;
  font-size: 36px;
  line-height: 1.15;
}

body[data-writing-exam="gre"] .gre-result-head p {
  margin: 8px 0 0;
  color: rgba(255, 248, 230, 0.78);
  font-size: 15px;
  font-weight: 700;
}

body[data-writing-exam="gre"] .gre-result-head button,
body[data-writing-exam="gre"] #gre-download-report {
  min-height: 40px;
  border: 1px solid rgba(231, 191, 105, 0.62);
  border-radius: 4px;
  padding: 0 16px;
  color: #1d170c;
  background: linear-gradient(180deg, #f1cf7a, #b9862f);
  font: 800 14px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="gre"] .gre-result-head button {
  color: #f7ecd0;
  border-color: rgba(231, 191, 105, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

body[data-writing-exam="gre"] .gre-result-head button:hover,
body[data-writing-exam="gre"] #gre-download-report:hover {
  filter: brightness(1.06);
}

body[data-writing-exam="gre"] .gre-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

body[data-writing-exam="gre"] .gre-result-metrics article {
  padding: 18px;
  border: 1px solid rgba(231, 191, 105, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.1), rgba(255, 248, 232, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.08);
}

body[data-writing-exam="gre"] .gre-result-metrics span,
body[data-writing-exam="gre"] .gre-result-metrics strong {
  display: block;
}

body[data-writing-exam="gre"] .gre-result-metrics span {
  color: rgba(250, 235, 199, 0.7);
  font-size: 14px;
  font-weight: 800;
}

body[data-writing-exam="gre"] .gre-result-metrics strong {
  margin-top: 8px;
  color: #f3cc74;
  font-size: 30px;
  line-height: 1;
}

body[data-writing-exam="gre"] .gre-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

body[data-writing-exam="gre"] .gre-result-section {
  display: grid;
  align-content: start;
  gap: 14px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(231, 191, 105, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.08), rgba(255, 248, 232, 0.035)),
    rgba(0, 0, 0, 0.12);
}

body[data-writing-exam="gre"] .gre-result-section h2 {
  margin: 0;
  color: #ffe5a3;
  font-size: 21px;
}

body[data-writing-exam="gre"] .gre-result-link-grid {
  display: grid;
  gap: 10px;
}

body[data-writing-exam="gre"] .gre-result-section a {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 191, 105, 0.22);
  border-radius: 8px;
  color: #ffe0a0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  font-weight: 900;
  text-decoration: none;
}

body[data-writing-exam="gre"] .gre-result-section a:hover {
  border-color: rgba(231, 191, 105, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-writing-exam="gre"] .gre-result-section a span {
  color: rgba(250, 235, 199, 0.72);
  font-size: 14px;
  font-weight: 700;
}

body[data-writing-exam="gre"] .gre-result-download {
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(87, 61, 24, 0.46), rgba(16, 22, 30, 0.78)),
    rgba(0, 0, 0, 0.18);
}

body[data-writing-exam="gre"] .gre-result-download p {
  margin: 0;
  color: rgba(255, 248, 230, 0.82);
  font-weight: 700;
}

body[data-writing-exam="gre"] .gre-result-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body[data-writing-exam="gre"] .gre-result-download-row span {
  color: rgba(250, 235, 199, 0.7);
  font-size: 14px;
  font-weight: 800;
}

body[data-writing-exam="gre"] .gre-wechat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body[data-writing-exam="gre"] .gre-wechat-list span {
  padding: 14px 10px;
  border: 1px solid rgba(231, 191, 105, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff1c9;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  body[data-writing-exam="gre"] .gre-result-metrics,
  body[data-writing-exam="gre"] .gre-result-grid,
  body[data-writing-exam="gre"] .gre-wechat-list {
    grid-template-columns: 1fr;
  }

  body[data-writing-exam="gre"] .gre-result-head {
    display: grid;
  }
}

body[data-writing-exam="toefl"].toefl-result-mode .writing-practice-shell .wrap {
  display: none;
}

body[data-writing-exam="toefl"].toefl-result-mode .toefl-answer-panel {
  display: none;
}

body[data-writing-exam="toefl"].toefl-result-mode .writing-practice-shell {
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(222, 177, 83, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 244, 215, 0.12), transparent 26%),
    linear-gradient(135deg, #0b1322 0%, #14100b 55%, #1f1710 100%);
  overflow-x: visible;
}

body[data-writing-exam="toefl"] .gre-result-screen {
  width: min(1120px, calc(100vw - 68px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

body[data-writing-exam="toefl"] .gre-result-screen[hidden] {
  display: none;
}

body[data-writing-exam="toefl"] .gre-result-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(223, 180, 92, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 24, 32, 0.98), rgba(12, 15, 19, 0.98)),
    #111;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 235, 188, 0.12);
  color: #f7f0e2;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

body[data-writing-exam="toefl"] .gre-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(231, 191, 105, 0.42);
  border-radius: 8px;
  color: #fff7e7;
  background:
    linear-gradient(135deg, rgba(5, 14, 29, 0.98), rgba(38, 28, 15, 0.96)),
    #111;
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.14);
}

body[data-writing-exam="toefl"] .gre-result-head span {
  color: #dcb45b;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-writing-exam="toefl"] .gre-result-head h1 {
  margin: 6px 0 0;
  font-size: 36px;
  line-height: 1.15;
}

body[data-writing-exam="toefl"] .gre-result-head p {
  margin: 8px 0 0;
  color: rgba(255, 248, 230, 0.78);
  font-size: 15px;
  font-weight: 700;
}

body[data-writing-exam="toefl"] .gre-result-head button,
body[data-writing-exam="toefl"] #toefl-download-report {
  min-height: 40px;
  border: 1px solid rgba(231, 191, 105, 0.62);
  border-radius: 4px;
  padding: 0 16px;
  color: #1d170c;
  background: linear-gradient(180deg, #f1cf7a, #b9862f);
  font: 800 14px/1 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

body[data-writing-exam="toefl"] .gre-result-head button {
  color: #f7ecd0;
  border-color: rgba(231, 191, 105, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

body[data-writing-exam="toefl"] .gre-result-head button:hover,
body[data-writing-exam="toefl"] #toefl-download-report:hover {
  filter: brightness(1.06);
}

body[data-writing-exam="toefl"] .gre-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

body[data-writing-exam="toefl"] .gre-result-metrics article {
  padding: 18px;
  border: 1px solid rgba(231, 191, 105, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.1), rgba(255, 248, 232, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.08);
}

body[data-writing-exam="toefl"] .gre-result-metrics span,
body[data-writing-exam="toefl"] .gre-result-metrics strong {
  display: block;
}

body[data-writing-exam="toefl"] .gre-result-metrics span {
  color: rgba(250, 235, 199, 0.7);
  font-size: 14px;
  font-weight: 800;
}

body[data-writing-exam="toefl"] .gre-result-metrics strong {
  margin-top: 8px;
  color: #f3cc74;
  font-size: 30px;
  line-height: 1;
}

body[data-writing-exam="toefl"] .gre-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

body[data-writing-exam="toefl"] .gre-result-section {
  display: grid;
  align-content: start;
  gap: 14px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(231, 191, 105, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.08), rgba(255, 248, 232, 0.035)),
    rgba(0, 0, 0, 0.12);
}

body[data-writing-exam="toefl"] .gre-result-section h2 {
  margin: 0;
  color: #ffe5a3;
  font-size: 21px;
}

body[data-writing-exam="toefl"] .gre-result-link-grid,
body[data-writing-exam="toefl"] .toefl-result-breakdown {
  display: grid;
  gap: 10px;
}

body[data-writing-exam="toefl"] .gre-result-section a,
body[data-writing-exam="toefl"] .toefl-result-breakdown article {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 191, 105, 0.22);
  border-radius: 8px;
  color: #ffe0a0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  font-weight: 900;
  text-decoration: none;
}

body[data-writing-exam="toefl"] .gre-result-section a:hover {
  border-color: rgba(231, 191, 105, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-writing-exam="toefl"] .gre-result-section a span,
body[data-writing-exam="toefl"] .toefl-result-breakdown em,
body[data-writing-exam="toefl"] .toefl-result-breakdown small {
  color: rgba(250, 235, 199, 0.72);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

body[data-writing-exam="toefl"] .toefl-result-breakdown strong {
  color: #fff0c8;
  font-size: 18px;
}

body[data-writing-exam="toefl"] .gre-result-download {
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(87, 61, 24, 0.46), rgba(16, 22, 30, 0.78)),
    rgba(0, 0, 0, 0.18);
}

body[data-writing-exam="toefl"] .gre-result-download p {
  margin: 0;
  color: rgba(255, 248, 230, 0.82);
  font-weight: 700;
}

body[data-writing-exam="toefl"] .gre-result-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body[data-writing-exam="toefl"] .gre-result-download-row span {
  color: rgba(250, 235, 199, 0.7);
  font-size: 14px;
  font-weight: 800;
}

body[data-writing-exam="toefl"] .gre-wechat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body[data-writing-exam="toefl"] .gre-wechat-list span {
  padding: 14px 10px;
  border: 1px solid rgba(231, 191, 105, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff1c9;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  body[data-writing-exam="toefl"] .gre-result-metrics,
  body[data-writing-exam="toefl"] .gre-result-grid,
  body[data-writing-exam="toefl"] .gre-wechat-list {
    grid-template-columns: 1fr;
  }

  body[data-writing-exam="toefl"] .gre-result-head {
    display: grid;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
}

.split img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: #37424d;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-item {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 24px;
  color: var(--coral);
  font-weight: 900;
  font-size: 26px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar {
  min-height: 220px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.pillar h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.pillar p {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.mini-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-item strong {
  display: block;
  margin-bottom: 6px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 800;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.notice-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notice {
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: #24443e;
  font-weight: 700;
}

.banner {
  color: #fff;
  background: var(--green-dark);
}

.banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-head {
  padding: 74px 0;
  background:
    linear-gradient(90deg, rgba(14, 28, 35, 0.82), rgba(14, 28, 35, 0.28)),
    var(--page-image) center / cover no-repeat;
  color: #fff;
}

.page-head p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 42, 0.06);
}

.table th,
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--green);
  color: #fff;
}

.table tr:last-child td {
  border-bottom: 0;
}

.exam-page .section {
  padding: 64px 0;
}

.exam-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.exam-table th {
  background: linear-gradient(135deg, var(--table-a), var(--table-b));
}

.exam-table th:first-child,
.exam-table td:first-child {
  width: 13%;
  text-align: center;
}

.exam-table td:first-child {
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.055), rgba(255, 255, 255, 0.82)) !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}

.exam-table tbody tr:nth-child(2n) td {
  background: #fffaf3;
}

.exam-table tbody tr:nth-child(2n + 1) td {
  background: #fff;
}

.stage-card {
  border-radius: 12px;
  position: relative;
}

.stage-card::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--green);
}

.stage-foundation::before {
  background: var(--leaf);
}

.stage-boost::before {
  background: var(--gold);
}

.stage-sprint::before {
  background: var(--green);
}

.stage-card h3 {
  color: var(--green-dark);
}

.mini-item:nth-child(1) {
  border-left: 6px solid var(--leaf);
}

.mini-item:nth-child(2) {
  border-left: 6px solid var(--gold);
}

.mini-item:nth-child(3) {
  border-left: 6px solid var(--green);
}

.timeline-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 28px;
  align-items: stretch;
}

.timeline-hero-grid h1 {
  max-width: 840px;
}

.timeline-hero-grid p {
  max-width: 900px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 760;
}

.timeline-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.timeline-alert-card {
  padding: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 34px rgba(var(--ink-rgb), 0.08);
}

.timeline-alert-card span,
.timeline-exam-card span,
.timeline-cta span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline-alert-card h2 {
  margin-bottom: 16px;
}

.timeline-alert-card ul,
.timeline-exam-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 760;
}

.timeline-alert-card li,
.timeline-exam-card li {
  margin: 8px 0;
}

.timeline-exam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-exam-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.78)),
    #fff;
  box-shadow: 0 10px 24px rgba(var(--ink-rgb), 0.06);
}

.timeline-exam-card.featured {
  border-color: rgba(var(--accent-rgb), 0.24);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.94) 58%),
    #fff;
}

.timeline-exam-card h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 24px;
}

.timeline-exam-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 18px;
}

.timeline-exam-card p {
  color: var(--muted);
  font-weight: 720;
}

.timeline-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-route article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-route strong {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--teal-soft);
  font-size: 18px;
}

.timeline-route h3 {
  color: var(--green-dark);
}

.timeline-route p {
  color: var(--muted);
  font-weight: 740;
}

.timeline-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.94) 64%),
    #fff;
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), 0.08);
}

.timeline-cta h2 {
  margin-bottom: 10px;
}

.timeline-cta p {
  max-width: 760px;
  color: var(--muted);
  font-weight: 760;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 32px;
  align-items: start;
}

.contact-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.consult-note {
  margin: 10px 0 18px;
  padding: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--panel-rgb), 0.08) 58%, rgba(255, 255, 255, 0.88));
}

.consult-note strong,
.consult-note span {
  display: block;
}

.consult-note strong {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 22px;
}

.consult-note span {
  color: #5f504b;
  font-weight: 760;
  line-height: 1.75;
}

.wechat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wechat-list div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(45, 111, 189, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 55, 103, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wechat-card::before,
.wechat-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.wechat-card::before {
  right: -20px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 2px, transparent 2.6px);
  background-size: 14px 14px;
  opacity: 0.74;
}

.wechat-card::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 76% 20%, rgba(255, 255, 255, 0.9) 0 15%, transparent 42%),
    radial-gradient(ellipse at 34% 86%, rgba(255, 255, 255, 0.58) 0 18%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 56%);
}

.wechat-card.primary {
  color: #173767;
  border-color: rgba(196, 154, 71, 0.27);
  background: linear-gradient(135deg, #ffffff 0%, #fff7df 48%, #f7e6b7 100%);
  box-shadow: 0 12px 26px rgba(196, 154, 71, 0.1);
}

.wechat-card.study {
  color: #173767;
  border-color: rgba(63, 154, 122, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #ebf8f3 50%, #d9f1e9 100%);
  box-shadow: 0 12px 26px rgba(63, 154, 122, 0.1);
}

.wechat-card.language {
  color: #173767;
  border-color: rgba(45, 111, 189, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #edf6ff 50%, #dbeeff 100%);
  box-shadow: 0 12px 26px rgba(45, 111, 189, 0.1);
}

.wechat-card.review {
  color: #173767;
  border-color: rgba(202, 113, 136, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #fff0f4 50%, #f8dce6 100%);
  box-shadow: 0 12px 26px rgba(202, 113, 136, 0.09);
}

.wechat-list strong,
.wechat-list span {
  display: block;
  position: relative;
  z-index: 1;
}

.wechat-list strong {
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1.25;
}

.wechat-card.primary strong,
.wechat-card.study strong,
.wechat-card.review strong {
  color: #173767;
}

.wechat-list span {
  margin-top: 4px;
  color: #6d5b54;
  font-weight: 800;
  line-height: 1.35;
}

.wechat-card.primary span,
.wechat-card.study span,
.wechat-card.review span {
  color: #5f504b;
}

.wechat-card.language strong,
.wechat-card.language span {
  color: #173767;
}

.qr-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-frame {
  width: min(100%, 340px);
  max-width: 340px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-frame::before {
  content: "";
  display: block;
  aspect-ratio: 1;
}

.qr-panel img,
.qr-slide {
  width: min(100%, 340px);
  max-width: 340px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.qr-frame .qr-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  opacity: 0;
  object-fit: contain;
  transform: scale(1.006);
  transition: opacity 520ms ease, transform 520ms ease;
}

.qr-frame .qr-slide.active {
  opacity: 1;
  transform: scale(1);
}

.qr-copy {
  width: min(100%, 360px);
  margin-top: 18px;
  padding: 18px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}

.qr-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.qr-panel h2 {
  margin-bottom: 8px;
}

.qr-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.qr-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.qr-dots button {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.22);
  cursor: pointer;
}

.qr-dots button.active {
  background: var(--green);
}

.contact-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contact-service-card {
  min-height: 270px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.8)),
    #fff;
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.06);
}

.contact-service-card span {
  width: fit-content;
  margin-bottom: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.contact-service-card:nth-child(2) span {
  background: var(--leaf);
}

.contact-service-card:nth-child(3) span {
  background: var(--green-dark);
}

.contact-service-card:nth-child(4) span {
  background: var(--gold);
}

.contact-service-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-service-card p {
  color: var(--muted);
}

.contact-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
}

/* Soft color system shared by repeated content blocks. */
.section.alt {
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 240, 244, 0.66), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(237, 246, 255, 0.74), transparent 30%),
    linear-gradient(135deg, rgba(255, 247, 221, 0.48), rgba(237, 249, 239, 0.42)),
    var(--mist);
}

.module:not(.dark) {
  background:
    radial-gradient(circle at 90% 12%, rgba(237, 246, 255, 0.7), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(255, 240, 244, 0.58), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 221, 0.42)),
    rgba(255, 250, 245, 0.92);
}

.grid > .card:nth-child(4n + 1),
.stats > .stat:nth-child(4n + 1),
.pillars > .pillar:nth-child(4n + 1),
.process > .process-item:nth-child(4n + 1),
.notice-strip > .notice:nth-child(4n + 1),
.trust-grid > .trust-card:nth-child(4n + 1),
.competitiveness-grid > article:nth-child(4n + 1),
.result-grid > .result-card:nth-child(4n + 1),
.direction-grid > .direction-card:nth-child(4n + 1),
.resource-nav > a:nth-child(4n + 1),
.download-grid > .download-item:nth-child(4n + 1),
.student-guide-grid > article:nth-child(4n + 1),
.ielts-plan-grid > article:nth-child(4n + 1),
.timeline-route > article:nth-child(4n + 1),
.timeline-exam-grid > .timeline-exam-card:nth-child(4n + 1),
.contact-service-grid > .contact-service-card:nth-child(4n + 1),
.exam-resource-grid > .exam-resource-card:nth-child(4n + 1) {
  --wash-bg: var(--wash-pink);
  --wash-border: var(--wash-pink-border);
  --wash-accent: var(--wash-pink-accent);
}

.grid > .card:nth-child(4n + 2),
.stats > .stat:nth-child(4n + 2),
.pillars > .pillar:nth-child(4n + 2),
.process > .process-item:nth-child(4n + 2),
.notice-strip > .notice:nth-child(4n + 2),
.trust-grid > .trust-card:nth-child(4n + 2),
.competitiveness-grid > article:nth-child(4n + 2),
.result-grid > .result-card:nth-child(4n + 2),
.direction-grid > .direction-card:nth-child(4n + 2),
.resource-nav > a:nth-child(4n + 2),
.download-grid > .download-item:nth-child(4n + 2),
.student-guide-grid > article:nth-child(4n + 2),
.ielts-plan-grid > article:nth-child(4n + 2),
.timeline-route > article:nth-child(4n + 2),
.timeline-exam-grid > .timeline-exam-card:nth-child(4n + 2),
.contact-service-grid > .contact-service-card:nth-child(4n + 2),
.exam-resource-grid > .exam-resource-card:nth-child(4n + 2) {
  --wash-bg: var(--wash-yellow);
  --wash-border: var(--wash-yellow-border);
  --wash-accent: var(--wash-yellow-accent);
}

.grid > .card:nth-child(4n + 3),
.stats > .stat:nth-child(4n + 3),
.pillars > .pillar:nth-child(4n + 3),
.process > .process-item:nth-child(4n + 3),
.notice-strip > .notice:nth-child(4n + 3),
.trust-grid > .trust-card:nth-child(4n + 3),
.competitiveness-grid > article:nth-child(4n + 3),
.result-grid > .result-card:nth-child(4n + 3),
.direction-grid > .direction-card:nth-child(4n + 3),
.resource-nav > a:nth-child(4n + 3),
.download-grid > .download-item:nth-child(4n + 3),
.student-guide-grid > article:nth-child(4n + 3),
.ielts-plan-grid > article:nth-child(4n + 3),
.timeline-route > article:nth-child(4n + 3),
.timeline-exam-grid > .timeline-exam-card:nth-child(4n + 3),
.contact-service-grid > .contact-service-card:nth-child(4n + 3),
.exam-resource-grid > .exam-resource-card:nth-child(4n + 3) {
  --wash-bg: var(--wash-blue);
  --wash-border: var(--wash-blue-border);
  --wash-accent: var(--wash-blue-accent);
}

.grid > .card:nth-child(4n),
.stats > .stat:nth-child(4n),
.pillars > .pillar:nth-child(4n),
.process > .process-item:nth-child(4n),
.notice-strip > .notice:nth-child(4n),
.trust-grid > .trust-card:nth-child(4n),
.competitiveness-grid > article:nth-child(4n),
.result-grid > .result-card:nth-child(4n),
.direction-grid > .direction-card:nth-child(4n),
.resource-nav > a:nth-child(4n),
.download-grid > .download-item:nth-child(4n),
.student-guide-grid > article:nth-child(4n),
.ielts-plan-grid > article:nth-child(4n),
.timeline-route > article:nth-child(4n),
.timeline-exam-grid > .timeline-exam-card:nth-child(4n),
.contact-service-grid > .contact-service-card:nth-child(4n),
.exam-resource-grid > .exam-resource-card:nth-child(4n) {
  --wash-bg: var(--wash-green);
  --wash-border: var(--wash-green-border);
  --wash-accent: var(--wash-green-accent);
}

.grid > .card,
.stats > .stat,
.pillars > .pillar,
.process > .process-item,
.notice-strip > .notice,
.trust-grid > .trust-card,
.competitiveness-grid > article,
.result-grid > .result-card,
.direction-grid > .direction-card,
.resource-nav > a,
.download-grid > .download-item,
.student-guide-grid > article,
.ielts-plan-grid > article,
.timeline-route > article,
.timeline-exam-grid > .timeline-exam-card,
.contact-service-grid > .contact-service-card,
.exam-resource-grid > .exam-resource-card {
  border-color: var(--wash-border, var(--line));
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.78) 0 4px, transparent 4.5px) 0 0 / 24px 24px,
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), var(--wash-bg, #fff) 76%);
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.065);
}

.grid > .card .card-body {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.68), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), var(--wash-bg, #fff));
}

.grid > .card h3,
.stats > .stat strong,
.pillars > .pillar h3,
.process > .process-item::before,
.notice-strip > .notice,
.trust-grid > .trust-card h3,
.competitiveness-grid > article h3,
.result-grid > .result-card h3,
.direction-grid > .direction-card h3,
.timeline-route > article h3,
.timeline-exam-grid > .timeline-exam-card h3,
.contact-service-grid > .contact-service-card h3,
.exam-resource-grid > .exam-resource-card h3 {
  color: var(--green-dark);
}

.stats > .stat strong,
.process > .process-item::before,
.timeline-route > article strong,
.student-guide-grid > article strong,
.ielts-plan-grid > article strong {
  color: var(--wash-accent, var(--green));
}

.timeline-route > article strong,
.student-guide-grid > article strong {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--wash-border, var(--line));
}

.scenario-grid > .scenario-card:not(.full-pack):nth-child(4n + 1),
.resource-entry-grid > .resource-entry-card:not(.dark):nth-child(4n + 1),
.ielts-download-grid > .ielts-download-card:nth-child(4n + 1) {
  --wash-bg: var(--wash-pink);
  --wash-border: var(--wash-pink-border);
  --wash-accent: var(--wash-pink-accent);
}

.scenario-grid > .scenario-card:not(.full-pack):nth-child(4n + 2),
.resource-entry-grid > .resource-entry-card:not(.dark):nth-child(4n + 2),
.ielts-download-grid > .ielts-download-card:nth-child(4n + 2) {
  --wash-bg: var(--wash-yellow);
  --wash-border: var(--wash-yellow-border);
  --wash-accent: var(--wash-yellow-accent);
}

.scenario-grid > .scenario-card:not(.full-pack):nth-child(4n + 3),
.resource-entry-grid > .resource-entry-card:not(.dark):nth-child(4n + 3),
.ielts-download-grid > .ielts-download-card:nth-child(4n + 3) {
  --wash-bg: var(--wash-blue);
  --wash-border: var(--wash-blue-border);
  --wash-accent: var(--wash-blue-accent);
}

.scenario-grid > .scenario-card:not(.full-pack):nth-child(4n),
.resource-entry-grid > .resource-entry-card:not(.dark):nth-child(4n),
.ielts-download-grid > .ielts-download-card:nth-child(4n) {
  --wash-bg: var(--wash-green);
  --wash-border: var(--wash-green-border);
  --wash-accent: var(--wash-green-accent);
}

.scenario-grid > .scenario-card:not(.full-pack),
.resource-entry-grid > .resource-entry-card:not(.dark),
.ielts-download-grid > .ielts-download-card {
  border-color: var(--wash-border, var(--line));
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.78) 0 4px, transparent 4.5px) 0 0 / 24px 24px,
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), var(--wash-bg, #fff) 76%);
}

.scenario-grid > .scenario-card:not(.full-pack)::before,
.scenario-grid > .scenario-card:not(.full-pack) span,
.resource-entry-grid > .resource-entry-card:not(.dark) span,
.ielts-download-grid > .ielts-download-card::before,
.ielts-download-grid > .ielts-download-card span,
.ielts-download-grid > .ielts-download-card a {
  color: #fff;
  background: var(--wash-accent, var(--green));
}

.resource-entry-grid > .resource-entry-card.writing-practice-entry {
  grid-column: 1 / -1;
  min-height: 218px;
  --wash-bg: rgba(231, 248, 245, 0.92);
  --wash-border: rgba(15, 143, 140, 0.24);
  --wash-accent: #0f8f8c;
}

.resource-entry-grid > .resource-entry-card.mock-practice-entry {
  --wash-bg: rgba(255, 247, 221, 0.82);
  --wash-border: rgba(184, 128, 72, 0.28);
  --wash-accent: #b88048;
}

.resource-entry-grid > .resource-entry-card.duolingo-mock-entry {
  grid-column: 1 / -1;
  min-height: 218px;
  --wash-bg: rgba(237, 246, 255, 0.86);
  --wash-border: rgba(23, 55, 103, 0.22);
  --wash-accent: #173767;
}

.resource-entry-grid > .resource-entry-card.toeic-mock-entry {
  grid-column: 1 / -1;
  min-height: 218px;
  --wash-bg: rgba(255, 247, 221, 0.86);
  --wash-border: rgba(184, 128, 72, 0.26);
  --wash-accent: #b88048;
}

.resource-entry-card.writing-practice-entry span {
  margin-bottom: 22px;
}

.resource-entry-card.writing-practice-entry h2,
.resource-entry-card.writing-practice-entry p {
  max-width: 820px;
}

.scenario-grid > .scenario-card.writing-practice-scenario {
  --wash-bg: rgba(231, 248, 245, 0.92);
  --wash-border: rgba(15, 143, 140, 0.24);
  --wash-accent: #0f8f8c;
}

.scenario-grid > .scenario-card.mock-practice-scenario {
  --wash-bg: rgba(255, 247, 221, 0.82);
  --wash-border: rgba(184, 128, 72, 0.28);
  --wash-accent: #b88048;
}

.scenario-grid > .scenario-card.duolingo-mock-scenario {
  --wash-bg: rgba(237, 246, 255, 0.86);
  --wash-border: rgba(23, 55, 103, 0.22);
  --wash-accent: #173767;
}

.scenario-grid > .scenario-card.toeic-mock-scenario {
  --wash-bg: rgba(255, 247, 221, 0.86);
  --wash-border: rgba(184, 128, 72, 0.26);
  --wash-accent: #b88048;
}

.resource-first {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 240, 244, 0.62), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(237, 246, 255, 0.78), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(237, 249, 239, 0.66), transparent 30%),
    linear-gradient(180deg, #fffaf3, var(--mist));
}

.toefl-overview > div:first-child,
.timeline-alert-card,
.timeline-cta,
.qr-panel,
.contact-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(237, 246, 255, 0.74), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(255, 240, 244, 0.56), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 221, 0.42)),
    #fff;
}

.qr-copy,
.consult-note {
  background:
    linear-gradient(135deg, rgba(255, 247, 221, 0.72), rgba(237, 246, 255, 0.64)),
    #fff;
}

.exam-table tbody tr:nth-child(4n + 1) td {
  background: rgba(237, 246, 255, 0.64);
}

.exam-table tbody tr:nth-child(4n + 2) td {
  background: rgba(255, 247, 221, 0.64);
}

.exam-table tbody tr:nth-child(4n + 3) td {
  background: rgba(237, 249, 239, 0.64);
}

.exam-table tbody tr:nth-child(4n) td {
  background: rgba(255, 240, 244, 0.6);
}

.exam-table td:first-child {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(var(--accent-rgb), 0.06)) !important;
}

.module.dark .exam-card:nth-child(5n + 1),
.exam-focus-grid article:nth-child(3n + 1),
.exam-secondary > div:nth-child(4n + 2) {
  background: rgba(255, 240, 244, 0.12);
  border-color: rgba(255, 240, 244, 0.28);
}

.module.dark .exam-card:nth-child(5n + 2),
.exam-focus-grid article:nth-child(3n + 2),
.exam-secondary > div:nth-child(4n + 3) {
  background: rgba(255, 247, 221, 0.12);
  border-color: rgba(255, 247, 221, 0.28);
}

.module.dark .exam-card:nth-child(5n + 3),
.exam-focus-grid article:nth-child(3n),
.exam-secondary > div:nth-child(4n) {
  background: rgba(237, 246, 255, 0.12);
  border-color: rgba(237, 246, 255, 0.28);
}

.module.dark .exam-card:nth-child(5n + 4),
.exam-secondary > div:nth-child(4n + 1) {
  background: rgba(237, 249, 239, 0.12);
  border-color: rgba(237, 249, 239, 0.28);
}

.module.dark .exam-card:nth-child(5n) {
  background: rgba(245, 240, 255, 0.12);
  border-color: rgba(245, 240, 255, 0.28);
}

.auth-head {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.auth-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 42, 0.06);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  color: #33404d;
  font-weight: 800;
}

.form-field input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-field input:focus {
  outline: 3px solid rgba(31, 122, 103, 0.18);
  border-color: var(--green);
}

.form-error {
  display: none;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 800;
}

.auth-button {
  width: 100%;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--green-dark);
  font-weight: 800;
}

.placeholder {
  min-height: 140px;
  display: grid;
  place-items: center;
  border: 1px dashed #aab8bf;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.credits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credit-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(var(--ink-rgb), 0.05);
}

.credit-item strong {
  color: var(--green-dark);
  font-size: 18px;
}

.credit-item span,
.credit-item em {
  color: var(--muted);
  font-style: normal;
}

.credit-item a {
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  padding: 42px 0 32px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer .wrap {
  width: min(1140px, calc(100% - 48px));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(292px, 0.88fr) minmax(305px, 0.74fr) minmax(390px, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.footer-brand,
.footer-nav,
.footer-contact {
  min-height: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  display: block;
}

.footer-addresses {
  width: 100%;
  display: grid;
  gap: 8px;
}

.footer-addresses b,
.footer-nav-group span,
.footer-contact-section b {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 860;
}

.footer-addresses span {
  display: block;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.footer-nav strong {
  margin-bottom: 22px;
  font-size: 18px;
}

.footer-nav-groups {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: flex-start;
  gap: 18px;
}

.footer-nav-group {
  min-width: 0;
  height: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.footer-nav-group span {
  width: 100%;
  margin-bottom: 6px;
  padding-bottom: 9px;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
  white-space: nowrap;
}

.footer-nav a {
  margin: 0;
  width: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.footer-contact-section {
  display: grid;
  gap: 12px;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-email-list {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.footer-phone-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-contact-list a {
  display: flex;
  min-width: 0;
  min-height: 70px;
  margin: 0;
  padding: 12px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
}

.footer-contact-list span {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  word-break: normal;
}

.footer-email-list span {
  font-size: 15px;
  white-space: nowrap;
}

.footer-contact-list em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.copyright {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: center;
}

.copyright a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 760;
  line-height: 1.5;
}

.copyright a:hover {
  color: #fff;
}

.consult-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}

.consult-toggle {
  display: grid;
  width: 168px;
  min-height: 62px;
  margin-left: auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 36px rgba(var(--ink-rgb), 0.24);
  cursor: pointer;
  text-align: left;
}

.consult-toggle span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.82;
}

.consult-toggle strong {
  font-size: 17px;
  line-height: 1.25;
}

.consult-panel {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(var(--ink-rgb), 0.22);
}

.consult-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-a), var(--deep-b));
}

.consult-head span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.consult-head strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.consult-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.consult-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.consult-form label {
  display: grid;
  gap: 6px;
}

.consult-form label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.consult-form textarea {
  min-height: 96px;
  resize: vertical;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(var(--accent-rgb), 0.15);
}

.consult-honey {
  position: absolute;
  left: -9999px;
}

.consult-submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.consult-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.consult-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 24px, 1120px);
    min-height: auto;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    border-radius: 26px;
    overflow: hidden;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-tools {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links a,
  .nav-control {
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
  }

  .grid.three,
  .grid.two,
  .split,
  .photo-row,
  .toefl-overview,
  .resource-entry-grid,
  .resource-layout,
  .resource-pack,
  .scenario-grid,
  .exam-resource-grid,
  .ielts-hero-panel,
  .ielts-download-grid,
  .ielts-study-plan,
  .ielts-plan-grid,
  .student-guide-grid,
  .timeline-hero-grid,
  .timeline-exam-grid,
  .timeline-route,
  .campus-grid,
  .course-suite-grid,
  .course-stage-grid,
  .contact-layout,
  .contact-service-grid,
  .auth-layout,
  .hero-stage,
	  .service-grid,
	  .exam-grid,
	  .exam-focus-grid,
	  .exam-secondary,
	  .flow-grid,
	  .direction-grid,
	  .result-module,
	  .result-grid,
	  .trust-grid,
	  .school-layout,
	  .competitiveness-module,
	  .competitiveness-grid,
	  .process,
	  .stats,
	  .pillars,
  .credits-list,
  .notice-strip,
	  .footer-grid {
		    grid-template-columns: 1fr;
		  }

  .writing-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mock-page-head,
  .mock-app,
  .det-app {
    grid-template-columns: 1fr;
  }

  .toeic-simple-guide {
    grid-template-columns: 1fr;
  }

  .mock-control-panel,
  .det-control-panel {
    position: static;
  }

  .mock-page-stage {
    height: 640px;
  }

  .mock-answer-sheet {
    height: auto;
    max-height: 640px;
  }

  .det-task-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .det-task-body,
  .det-response-body {
    min-height: auto;
  }

  .writing-task-tabs {
    justify-content: flex-start;
  }

  .writing-workspace {
    grid-template-columns: 1fr;
  }

  .writing-response-head {
    flex-direction: column;
  }

  .writing-timer {
    justify-content: flex-start;
  }

  .resource-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-section-top {
	    align-items: flex-start;
	    flex-direction: column;
	  }

  .timeline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .famous-school-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .famous-school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-steps {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .journey-steps article:not(:last-child)::after {
    display: none;
  }

  .footer-brand,
  .footer-nav,
  .footer-contact {
    min-height: auto;
  }

  .footer-brand,
  .footer-nav {
    justify-content: flex-start;
  }

  .footer-nav-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-phone-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-secondary > span {
    grid-row: auto;
  }

  .resource-card.primary {
    min-height: auto;
  }

  .toefl-overview > div:first-child,
  .toefl-guide {
    padding: 24px;
  }

  .banner .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stage {
    min-height: auto;
    padding: 30px 22px;
    overflow: hidden;
  }

  .home-title {
    max-width: 100%;
    font-size: clamp(38px, 9vw, 42px);
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .home-copy {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .page-head {
    overflow: hidden;
  }

  .page-head h1 {
    max-width: 100%;
    font-size: clamp(32px, 8.4vw, 42px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .page-head p {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: auto;
  }

  .course-suite-card div {
    min-height: auto;
  }

  .course-match-panel div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  br.mobile-break {
    display: block;
  }

  .mock-page-head {
    gap: 14px;
  }

  .mock-page-head h1 {
    font-size: 38px;
  }

  .mock-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mock-control-buttons button,
  .mock-export-actions button,
  .mock-panel-head button,
  .mock-recorder-actions button,
  .mock-pdf-actions a {
    width: 100%;
    justify-content: center;
  }

  .mock-page-stage {
    height: 520px;
  }

  .mock-choice-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .det-task-list,
  .det-word-preview,
  .det-word-grid {
    grid-template-columns: 1fr;
  }

  .det-prompt-text,
  .det-photo-prompt p {
    font-size: 22px;
  }

  .mock-speaking-row {
    grid-template-columns: auto 1fr;
  }

  .mock-speaking-row b {
    grid-column: 2;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 8px 10px;
    align-items: center;
  }

  .nav-tools {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    align-items: center;
  }

  .wrap,
  .hero-inner,
  .page-head-inner {
    width: min(calc(100vw - 28px), 1120px);
    max-width: 362px;
  }

  .site-header {
    padding-top: 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .brand span {
    font-size: 17px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .nav-control {
    min-height: 40px;
    padding: 8px 12px;
  }

  .home-hero {
    padding-top: 12px;
  }

  .hero-stage {
    width: min(calc(100vw - 28px), 1120px);
    max-width: 362px;
    padding: 24px 20px;
  }

  .hero-stage > div:first-child,
  .home-title,
  .home-copy,
  .actions,
  .hero-metrics {
    width: 100%;
    max-width: 280px !important;
  }

  .page-head h1,
  .page-head p {
    width: 100%;
    max-width: 320px !important;
  }

  .home-title {
    font-size: 28px;
    line-height: 1.14;
  }

  .home-copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .page-head {
    padding: 58px 0;
  }

  .page-head h1 {
    font-size: 30px;
    line-height: 1.14;
  }

  .page-head p {
    font-size: 15px;
    line-height: 1.7;
  }

  .toefl-overview h1 {
    max-width: 272px;
    font-size: 34px;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .toefl-overview p,
  .resource-entry-card p,
  .scenario-card p {
    max-width: 272px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .resource-entry-card h2,
  .scenario-card h3 {
    max-width: 272px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .timeline-hero-grid h1 {
    max-width: 320px;
    font-size: 34px;
    line-height: 1.14;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .timeline-hero-grid p {
    max-width: 320px;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .actions .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .hero-inner {
    padding-bottom: 58px;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .resource-nav {
    grid-template-columns: 1fr;
  }

  .toefl-overview > div:first-child,
  .toefl-guide,
  .resource-entry-card,
  .scenario-card {
    width: 100%;
    max-width: 320px;
  }

  .card-meta-row {
    grid-template-columns: 1fr;
  }

  .module {
    width: min(calc(100vw - 28px), 362px);
    max-width: 362px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .module h2 {
    font-size: 28px;
  }

  .module h2,
  .section-head h2,
  .resource-section-top h2,
  .split-head h2,
  .country-panel-head h3 {
    max-width: 300px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .module p,
  .section-head p,
  .resource-section-top p,
  .split-head p,
  .lead {
    max-width: 300px;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .country-tabs {
    gap: 8px;
  }

  .country-tabs button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .country-panel-head {
    padding: 16px;
  }

  .famous-school-card {
    grid-template-columns: 1fr;
  }

  .famous-school-grid {
    grid-template-columns: 1fr;
  }

  .famous-school-card img {
    min-height: 160px;
    aspect-ratio: 16 / 9;
  }

  .journey-steps {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .journey-steps article {
    min-height: auto;
    border-radius: 18px;
  }

  .timeline-exam-card,
  .timeline-route article {
    min-height: auto;
  }

  .wechat-list {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .writing-practice-shell {
    padding-top: 36px;
  }

  .writing-task-tabs,
  .writing-editor-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .writing-task-tabs button,
  .writing-editor-tools button {
    width: 100%;
  }

  .writing-editor-tools span {
    margin-left: 0;
  }

  #writing-prompt-content,
  .writing-response-head,
  .writing-editor-tools {
    padding: 18px;
  }

  #writing-answer {
    width: calc(100% - 36px);
    min-height: 360px;
    margin: 18px;
    font-size: 17px;
  }

  .writing-progress {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .writing-progress strong {
    white-space: normal;
  }

  .writing-sample-box {
    margin: 0 18px 18px;
  }

  .download-item em {
    width: fit-content;
  }

  .footer-email-list,
  .footer-phone-list,
  .footer-nav-groups {
    grid-template-columns: 1fr;
  }

  .consult-widget {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .consult-toggle {
    width: 152px;
  }
}
