:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: #213a2f;
  background: #f5f7f3;
  line-height: 1.5;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  --brand-ink: #315b48;
  --brand-tint: #e3ecdb;
  --hero: #eaf0e5;
  --line: #dce4d8;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
}

.personal {
  --brand-ink: #524567;
  --brand-tint: #ede5f4;
  --hero: #efebf4;
  --line: #e2dbe9;
  background: #f8f6f8;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.header-content { min-height: 70px; padding-block: .65rem; }

.brand, .hub-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 650;
  text-decoration: none;
}
.brand-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  border-radius: .65rem;
  color: var(--brand-ink);
  background: var(--brand-tint);
  font-size: 1.05rem;
}
.hub-link {
  min-height: 44px;
  padding-inline: .75rem;
  border-radius: .65rem;
  color: var(--brand-ink);
  font-size: .86rem;
}
.hub-link:hover { background: var(--brand-tint); }

main { flex: 1; padding-block: 1.4rem 2.7rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 30%);
  align-items: center;
  gap: .75rem;
  overflow: hidden;
  padding: clamp(1.2rem, 3.5vw, 2.9rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--hero);
}
.site-identity {
  margin: 0 0 .35rem;
  color: var(--brand-ink);
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .10em;
}
h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4.2vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.intro {
  margin: .65rem 0 0;
  color: #4b6053;
  font-size: clamp(.95rem, 1.55vw, 1.15rem);
}
.portal-illustration { display: block; width: 100%; max-height: 158px; }

.directory { margin-top: 1.65rem; }
.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .85rem;
  margin-bottom: .65rem;
}
.directory-header h2 { margin: 0; font-size: 1rem; }
.directory-header p { margin: 0; color: #536257; font-size: .84rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.personal .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  --ink: #315b49;
  --tint: #e4ede1;
  display: flex;
  min-height: 166px;
  min-width: 0;
  flex-direction: column;
  gap: .4rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--ink); box-shadow: 0 4px 16px #253c3020; }
.card-personality { --ink: #564975; --tint: #ede8f5; }
.card-studio { --ink: #834b36; --tint: #f7e8df; }
.card-spoken-editor { --ink: #42624a; --tint: #e4ede0; }
.card-ai-cut { --ink: #6845a3; --tint: #f1eaf9; }
.card-live-monitor { --ink: #2e5e72; --tint: #e1eff2; }
.card-yingce { --ink: #765725; --tint: #f4edda; }
.card-material-library { --ink: #486444; --tint: #e5edda; }
.card-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: var(--ink); font-size: .75rem; }
.card-icon { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border-radius: .58rem; background: var(--tint); }
.card-icon svg { width: 1.15rem; height: 1.15rem; }
.card h3 { margin: .05rem 0 0; font-size: clamp(1.03rem, 1.6vw, 1.2rem); line-height: 1.32; }
.card p { margin: 0; color: #4e6053; font-size: .86rem; }
.card-action { display: flex; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .35rem; color: var(--ink); font-size: .86rem; font-weight: 650; }

.site-footer { border-top: 1px solid var(--line); color: #536257; font-size: .82rem; }
.footer-content { min-height: 56px; padding-block: .65rem; }
.footer-content a { text-underline-offset: .19em; }

@media (max-width: 950px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(96px, 24%); }
}
@media (max-width: 505px) {
  .grid, .personal .grid { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 146px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .portal-illustration { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
