:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --ink: #172033;
  --muted: #657084;
  --line: #d9ded4;
  --blue: #2457d6;
  --teal: #087f7a;
  --green: #167044;
  --amber: #a35d05;
  --rose: #b4233a;
  --chip: #eef6f2;
  --shadow: 0 16px 50px rgb(23 32 51 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  animation: page-in 520ms ease-out both;
}

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

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  border-radius: 7px;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-content: space-between;
  padding: 20px clamp(18px, 4vw, 56px) 42px;
  background:
    linear-gradient(120deg, rgb(255 254 250 / 0.94), rgb(247 245 239 / 0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='720' viewBox='0 0 1200 720'%3E%3Cg fill='none' stroke='%23c9d1c3' stroke-width='1'%3E%3Cpath d='M0 122h1200M0 262h1200M0 402h1200M0 542h1200M120 0v720M320 0v720M520 0v720M720 0v720M920 0v720M1120 0v720'/%3E%3C/g%3E%3Cg fill='%23087f7a' opacity='.12'%3E%3Ccircle cx='210' cy='180' r='74'/%3E%3Ccircle cx='940' cy='140' r='38'/%3E%3Ccircle cx='845' cy='510' r='96'/%3E%3C/g%3E%3Cg fill='%232457d6' opacity='.10'%3E%3Crect x='650' y='180' width='260' height='72' rx='10'/%3E%3Crect x='720' y='282' width='360' height='72' rx='10'/%3E%3Crect x='610' y='384' width='300' height='72' rx='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% 48%;
  height: 260px;
  background: linear-gradient(90deg, rgb(8 127 122 / 0.18), rgb(36 87 214 / 0.10));
  filter: blur(18px);
  transform: rotate(-6deg);
  animation: soft-sweep 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.nav,
.hero-grid,
main,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 900;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding-top: 110px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  animation: rise-in 700ms cubic-bezier(.2, .7, .2, 1) both;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #3e485a;
  font-size: 19px;
  line-height: 1.75;
  animation: rise-in 760ms cubic-bezier(.2, .7, .2, 1) 90ms both;
}

.promise {
  max-width: 680px;
  margin: 14px 0 0;
  color: #12645f;
  font-weight: 900;
  line-height: 1.6;
  animation: rise-in 760ms cubic-bezier(.2, .7, .2, 1) 140ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.icon-button,
.samples button,
.actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.icon-button:hover,
.samples button:hover,
.actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(23 32 51 / 0.10);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button.primary,
.actions .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.hero-panel {
  border: 1px solid rgb(23 32 51 / 0.14);
  border-radius: 8px;
  background: rgb(255 254 250 / 0.88);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
  animation: rise-in 700ms cubic-bezier(.2, .7, .2, 1) 120ms both;
}

.workflow-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
}

.workflow-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 900;
}

.workflow-list strong {
  font-size: 15px;
}

.metric-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-panel div {
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgb(23 32 51 / 0.14);
  border-radius: 8px;
  background: #fbfcf8;
  animation: rise-in 640ms cubic-bezier(.2, .7, .2, 1) both;
}

.metric-panel div:nth-child(2) { animation-delay: 80ms; }
.metric-panel div:nth-child(3) { animation-delay: 160ms; }
.metric-panel div:nth-child(4) { animation-delay: 240ms; }

.metric-panel strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

main {
  display: grid;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 0px) 40px;
}

.intro,
.browser,
.seo-list,
.azure-link,
.scenario-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: rise-in 620ms cubic-bezier(.2, .7, .2, 1) both;
}

.scenario-panel {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) 1fr;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.scenario-copy p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.preset-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.preset-card:hover {
  transform: translateY(-2px);
  border-color: #9bb9ff;
  box-shadow: 0 12px 28px rgb(23 32 51 / 0.09);
}

.preset-card strong {
  font-size: 16px;
}

.preset-card span {
  color: var(--muted);
  line-height: 1.55;
}

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 44%);
  gap: 24px;
  padding: clamp(18px, 3vw, 30px);
}

.azure-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.azure-link h2 {
  margin: 0;
  font-size: 24px;
}

.intro h2,
.browser h2,
.seo-list h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.intro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.browser {
  overflow: hidden;
}

.browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.browser-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr) minmax(110px, 0.6fr) auto;
  gap: 10px;
  padding: 14px 22px;
  background: #f3f7f1;
  border-bottom: 1px solid #d6e2ce;
}

.decision-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.decision-strip strong {
  color: var(--ink);
}

.decision-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-strip li {
  padding: 5px 8px;
  border: 1px solid #d8e4d2;
  border-radius: 999px;
  color: #41513f;
  font-size: 12px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field span {
  color: #41513f;
  font-size: 12px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(36 87 214 / 0.22);
  outline-offset: 2px;
}

.icon-button {
  width: 42px;
  align-self: end;
  padding: 0;
  font-size: 20px;
}

.browser-grid {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
}

.voice-list-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
}

.list-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.voice-list {
  max-height: 720px;
  overflow: auto;
  padding: 8px;
}

.voice-row {
  width: 100%;
  margin: 0 0 6px;
  padding: 11px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.voice-row:hover {
  background: #f7f9f4;
  border-color: var(--line);
  transform: translateX(2px);
}

.voice-row.active {
  background: #eaf2ff;
  border-color: #9bb9ff;
  animation: pulse-row 900ms ease-out;
}

.voice-row[hidden] {
  display: none;
}

.voice-name {
  font-weight: 900;
}

.voice-meta {
  color: var(--muted);
  font-size: 13px;
}

.detail {
  min-width: 0;
  padding: 24px;
  overflow: auto;
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.detail-title h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.detail-title span {
  color: var(--teal);
  font-weight: 900;
}

.detail > p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.facts div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 10px;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.compact {
  margin: 0;
}

.chips,
.voice-cards article div,
.samples,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span,
.voice-cards article div span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: #12645f;
  font-size: 12px;
  font-weight: 900;
  animation: chip-in 300ms ease-out both;
}

.detail-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-section h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.sentence {
  margin: 0;
  border: 1px solid #c8d9ff;
  border-radius: 7px;
  background: #f7faff;
  padding: 13px;
  line-height: 1.7;
}

.actions {
  margin-top: 12px;
}

.samples {
  margin-top: 10px;
}

.samples button.cached {
  border-color: #86d9ad;
  background: #effaf4;
  color: var(--green);
  font-weight: 800;
}

audio {
  width: 100%;
  margin-top: 14px;
}

.seo-list {
  padding: clamp(18px, 3vw, 30px);
}

.voice-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.voice-cards article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf8;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.voice-cards article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(23 32 51 / 0.09);
}

.voice-cards h3 {
  margin: 0;
  font-size: 18px;
}

.voice-cards p {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 8px clamp(18px, 4vw, 0px) 30px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro,
  .browser-grid,
  .scenario-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 70px;
  }

  .voice-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .voice-list {
    max-height: 420px;
  }

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

  .filters .field:first-child {
    grid-column: 1 / -1;
  }

  .facts,
  .preset-grid,
  .voice-cards {
    grid-template-columns: 1fr 1fr;
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav,
  .browser-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .metric-panel,
  .preset-grid,
  .filters,
  .facts,
  .voice-cards,
  .azure-link {
    grid-template-columns: 1fr;
  }

  .azure-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-panel div {
    min-height: 92px;
  }

  .icon-button {
    width: 100%;
  }
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-sweep {
  from { transform: translate3d(-18px, 0, 0) rotate(-6deg); }
  to { transform: translate3d(24px, -12px, 0) rotate(-3deg); }
}

@keyframes pulse-row {
  from { box-shadow: 0 0 0 0 rgb(36 87 214 / 0.25); }
  to { box-shadow: 0 0 0 12px rgb(36 87 214 / 0); }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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