:root {
  --ink: #132238;
  --muted: #607086;
  --line: #d9e1ea;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --navy: #163b63;
  --green: #1f6f61;
  --gold: #c28a28;
  --orange: #d76b2b;
  --red: #b92d3a;
  --shadow: 0 18px 48px rgba(19, 34, 56, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(22, 59, 99, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(22, 59, 99, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.corner-mascot {
  position: fixed;
  top: 76px;
  left: max(10px, calc((100vw - 1180px) / 2 - 118px));
  z-index: 4;
  width: clamp(48px, 4.6vw, 72px);
  height: auto;
  border-radius: 8px;
  pointer-events: none;
  filter: drop-shadow(0 14px 26px rgba(19, 34, 56, 0.18));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(19, 34, 56, 0.12);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

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

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--navy);
  background: white;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 44px 0;
}

.hero-copy h1,
.page-title h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text,
.page-title p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--navy);
}

.ghost-button {
  min-height: 36px;
  background: #eef5f2;
  color: var(--green);
}

.desk-panel,
.tool-panel,
.book-card,
.exam-card,
.feature-card,
.path-row div,
.keyword-grid article {
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.desk-panel {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.desk-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--navy));
}

.panel-topline {
  color: var(--gold);
  font-weight: 900;
}

.desk-panel h2 {
  margin: 24px 0 12px;
  font-size: 32px;
}

.desk-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.mini-stat {
  margin-top: 28px;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #f1f7f4;
}

.mini-stat span {
  display: block;
  color: var(--muted);
}

.mini-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 28px;
}

.section,
.page-title {
  padding: 58px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
}

.note {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

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

.exam-helper-layout {
  display: grid;
  gap: 28px;
}

.subsection-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
}

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

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

.feature-card {
  min-height: 184px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-card:hover,
.book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 111, 97, 0.35);
}

.feature-card.featured {
  background: linear-gradient(135deg, #163b63, #1f6f61);
  color: white;
}

.card-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.featured .card-label,
.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.feature-card h3,
.book-card h2,
.exam-card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.feature-card p,
.book-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.exam-card {
  padding: 20px;
}

.exam-card .status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  background: #eef5f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.exam-card.warning .status {
  background: #fff0df;
  color: var(--orange);
}

.exam-card.urgent .status {
  background: #ffe9ec;
  color: var(--red);
}

.countdown-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.clock-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.clock-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.clock-line strong {
  color: var(--navy);
  font-size: 20px;
}

.school-note {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f7f4;
  color: var(--muted);
  line-height: 1.7;
}

.official-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
}

.lookup-card p {
  min-height: 52px;
  color: var(--muted);
  line-height: 1.7;
}

.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.lookup-actions .official-link {
  margin-top: 0;
}

.secondary-link {
  color: var(--navy);
}

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

.path-row div {
  padding: 20px;
}

.path-row strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.path-row span {
  display: block;
  margin-top: 16px;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.path-row p {
  color: var(--muted);
  line-height: 1.7;
}

.page-title {
  max-width: 860px;
}

.translator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.tool-panel {
  padding: 22px;
}

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

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

select {
  height: 42px;
  margin-top: 7px;
  padding: 0 10px;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

.text-area-label {
  display: block;
  margin-bottom: 8px;
}

textarea {
  min-height: 260px;
  resize: vertical;
  padding: 14px;
  line-height: 1.8;
}

.text-meta,
.output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.text-meta span {
  color: var(--muted);
  font-weight: 800;
}

.output-heading {
  margin-top: 0;
  margin-bottom: 14px;
}

.output-heading h2 {
  margin: 0;
}

.translation-output {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
  color: var(--ink);
  line-height: 1.9;
}

.versions {
  margin-top: 20px;
}

.versions h3 {
  margin-bottom: 10px;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-item {
  border-left: 4px solid var(--gold);
  padding: 12px;
  background: #fffaf0;
  line-height: 1.7;
}

.analysis-section {
  padding-top: 36px;
}

.keyword-grid article {
  padding: 18px;
}

.keyword-grid strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.keyword-grid span {
  display: block;
  margin: 7px 0;
  color: var(--green);
  font-weight: 900;
}

.keyword-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.book-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  background: white;
  color: var(--navy);
}

.filter-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #eef5f2;
  color: var(--green);
  font-weight: 900;
}

.filter-btn.is-active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.book-card {
  padding: 22px;
}

.book-card span {
  color: var(--gold);
  font-weight: 900;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.book-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #eef5f2;
  color: var(--green);
  font-weight: 900;
}

.book-actions a:nth-child(2) {
  background: white;
  color: var(--navy);
}

.vocab-dashboard {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.vocab-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.today-word h2 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 32px;
}

.today-word p {
  color: var(--muted);
  line-height: 1.7;
}

.review-source-label {
  display: block;
  margin: 14px 0 6px;
}

#reviewSource {
  margin-bottom: 12px;
}

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

.vocab-stats article {
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.vocab-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vocab-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 28px;
}

.vocab-main {
  min-width: 0;
}

.vocab-search-panel {
  margin-bottom: 16px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 96px;
  gap: 10px;
  margin-top: 8px;
}

.vocab-filters {
  margin: 16px 0 0;
}

.vocab-results-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

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

.vocab-card,
.empty-state {
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 20px;
}

.vocab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vocab-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  background: #eef5f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.save-word {
  min-height: 34px;
  padding: 0 12px;
  background: white;
  color: var(--navy);
}

.save-word.is-saved {
  border-color: var(--gold);
  background: #fff7e6;
  color: var(--gold);
}

.vocab-card h2 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 30px;
}

.vocab-meta,
.vocab-note {
  color: var(--muted);
  line-height: 1.7;
}

.example-box {
  margin: 16px 0;
  padding: 14px;
  border-left: 4px solid var(--green);
  background: #f1f7f4;
}

.example-box strong {
  color: var(--green);
}

.example-box p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.collocation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collocation-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #fbfcfd;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  width: min(1180px, calc(100vw - 32px));
  min-height: 74px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 900px) {
  .corner-mascot {
    top: 82px;
    left: 10px;
    width: 52px;
    opacity: 0.72;
  }

  .hero,
  .translator-layout,
  .vocab-dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .vocab-side {
    position: static;
  }

  .feature-grid,
  .exam-grid,
  .countdown-grid,
  .lookup-grid,
  .book-grid,
  .keyword-grid,
  .vocab-grid,
  .path-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .corner-mascot {
    top: 94px;
    width: 44px;
    opacity: 0.55;
  }

  .site-header,
  .site-footer,
  .section-heading.split,
  .text-meta,
  .output-heading,
  .vocab-results-line {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-copy h1,
  .page-title h1 {
    font-size: 40px;
  }

  .feature-grid,
  .exam-grid,
  .countdown-grid,
  .lookup-grid,
  .book-grid,
  .keyword-grid,
  .vocab-grid,
  .path-row,
  .toolbar,
  .search-row {
    grid-template-columns: 1fr;
  }

  .clock-line {
    grid-template-columns: 1fr;
  }

  .button,
  button {
    width: 100%;
  }
}
