.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand small {
  display: block;
  margin-top: -2px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}

.nav-search,
.hero-search {
  position: relative;
  display: block;
}

.nav-search {
  width: min(42vw, 440px);
  margin-left: auto;
}

.nav-search input,
.hero-search input {
  width: 100%;
  outline: none;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.15s;
}

.nav-search input {
  height: 42px;
  padding: 0 18px 0 42px;
  border-radius: var(--radius-pill);
}

.nav-search input:focus,
.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-weak);
}

.search-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 50%;
  transform: translateY(-53%);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--primary);
}

.hero {
  overflow: hidden;
  padding: 62px 0 54px;
  background:
    radial-gradient(900px 340px at 10% -80px, rgba(15, 154, 134, 0.16), transparent 62%),
    radial-gradient(760px 320px at 95% -50px, rgba(245, 158, 11, 0.15), transparent 62%),
    linear-gradient(180deg, #fbfaf6, var(--bg));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 48px);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--primary);
  background: linear-gradient(transparent 64%, rgba(245, 158, 11, 0.34) 64%);
}

.hero-copy > p {
  max-width: 670px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.hero-search {
  max-width: 650px;
}

.hero-search input {
  height: 56px;
  padding: 0 22px 0 46px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 16px;
}

.progress-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.progress-kicker {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-card strong {
  display: block;
  margin: 3px 0;
  font-family: var(--serif);
  color: var(--primary);
  font-size: 52px;
  line-height: 1.15;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  margin: 10px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-weak);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  transition: width 0.35s ease;
}

.progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-card p b {
  color: var(--ink);
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats article {
  position: relative;
  padding: 22px 26px;
}

.stats article + article::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 0;
  width: 1px;
  background: var(--line);
}

.stats span,
.stats small {
  color: var(--muted);
  font-size: 12px;
}

.stats strong {
  margin: 0 7px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.section-note {
  margin: 0 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.view-actions {
  display: flex;
  gap: 8px;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--primary);
  background: var(--primary-weak);
  color: var(--primary);
}

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

.expression-card {
  position: relative;
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 0.18s;
}

.expression-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--primary), var(--primary-2), var(--accent));
}

.expression-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-head {
  padding: 21px 22px 17px 25px;
}

.card-topline,
.card-actions,
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-topline {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.unit-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.topic-name {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.expression-card h3 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", var(--serif);
  font-size: 23px;
}

.intent {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
}

.scene {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.alternative {
  margin: 15px 0 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.alternative b {
  color: var(--text);
}

.card-tags {
  gap: 6px;
  margin-top: 14px;
}

.card-actions {
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 12px 25px;
  border-top: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.55);
}

.copy-button,
.examples-toggle {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.examples-toggle::after {
  content: "＋";
  display: inline-block;
  margin-left: 5px;
}

.expression-card.open .examples-toggle::after {
  content: "－";
}

.examples-panel {
  display: none;
  padding: 0 22px 20px 25px;
  border-top: 1px dashed var(--line);
}

.expression-card.open .examples-panel {
  display: block;
}

.usage-note {
  margin: 16px 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 12.5px;
}

.example-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: example;
}

.example-list li {
  position: relative;
  padding-left: 29px;
  counter-increment: example;
}

.example-list li::before {
  content: counter(example);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.example-en {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.example-zh {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state span {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.empty-state p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.fbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  transform: translateY(16px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 13px;
  font-weight: 700;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .nav-link {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .progress-card {
    max-width: 340px;
  }

  .expression-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--maxw));
  }

  .site-nav {
    padding: 10px 0;
  }

  .nav-inner {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    width: 100%;
  }

  .nav-search {
    width: 100%;
    margin-left: 0;
  }

  .hero {
    padding: 42px 0 42px;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: -10px;
  }

  .stats article {
    padding: 15px 20px;
  }

  .stats article + article::before {
    inset: 0 20px auto;
    width: auto;
    height: 1px;
  }

  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
