:root {
  --bg: #f5f7fb;
  --ink: #17202a;
  --muted: #617084;
  --line: #dfe5ee;
  --panel: #ffffff;
  --accent: #0f7c80;
  --accent-dark: #09595c;
  --warm: #d86c3d;
  --blue: #2f68b1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 850;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 2.6vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

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

.intro {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(42px, 8vh, 86px) 0;
}

.eyebrow,
.cardLabel {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primaryAction,
.secondaryAction,
.cardButton,
.disabledButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
}

.primaryAction,
.cardButton {
  background: var(--accent);
  color: #ffffff;
}

.primaryAction:hover,
.cardButton:hover {
  background: var(--accent-dark);
}

.secondaryAction {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.portraitPanel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.10);
  overflow: hidden;
}

.portraitPanel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.portraitPanel figcaption {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.sectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.sectionHead h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.sectionHead p {
  margin-bottom: 5px;
  color: var(--muted);
}

.aboutPanel {
  max-width: 920px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel);
}

.aboutPanel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.aboutPanel p:last-of-type {
  margin-bottom: 18px;
}

.aboutPanel strong {
  color: var(--ink);
  font-weight: 850;
}

.textLink {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.textLink:hover {
  text-decoration: underline;
}

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

.toolCard,
.linkList a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.toolCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px;
}

.featuredTool {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.simulatorBanner {
  display: block;
  position: relative;
  background: #030812;
  text-decoration: none;
}

.simulatorBanner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(47, 104, 177, 0.26);
  opacity: 0;
  transition: opacity .18s ease;
}

.simulatorBanner:hover::after {
  opacity: 1;
}

.simulatorBanner img {
  display: block;
  width: 100%;
  aspect-ratio: 3.37 / 1;
  object-fit: cover;
}

.featuredToolText {
  padding: 22px 24px 24px;
}

.toolCard h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

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

.mutedCard {
  opacity: 0.72;
}

.disabledButton {
  width: fit-content;
  border: 1px solid var(--line);
  color: var(--muted);
}

.comicList {
  display: grid;
  gap: 20px;
}

.comicItem {
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(14px, 2.5vw, 22px);
  background: var(--panel);
}

.comicItem img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #eef2f6;
  object-fit: contain;
}

.comicItem h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.comicItem p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.74;
}

.researchSummary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.researchSummary span,
.researchSummary a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.researchSummary a {
  color: var(--accent-dark);
}

.publicationList {
  display: grid;
  gap: 12px;
}

.publicationItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--panel);
}

.publicationItem h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.publicationItem p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.publicationItem p:last-child {
  margin-bottom: 0;
}

.linkList {
  display: grid;
  gap: 12px;
}

.linkList a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 20px;
  text-decoration: none;
}

.reservedLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.linkList a:hover {
  border-color: rgba(15, 124, 128, 0.45);
}

.linkList span,
.reservedLink span {
  color: var(--muted);
  font-weight: 750;
}

.linkList strong,
.reservedLink strong {
  text-align: right;
}

code {
  border-radius: 4px;
  padding: 2px 5px;
  background: rgba(23, 32, 42, 0.08);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.beian {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  text-align: center;
}

.beian img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.beian a {
  color: var(--muted);
  text-decoration: none;
}

.beian a:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    min-height: 58px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    gap: 8px 12px;
    font-size: 13px;
  }

  .intro,
  .toolGrid,
  .comicItem {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    padding-top: 34px;
  }

  .portraitPanel {
    order: -1;
  }

  .portraitPanel img {
    aspect-ratio: 16 / 10;
  }

  .sectionHead,
  .linkList a,
  .reservedLink {
    align-items: flex-start;
    flex-direction: column;
  }

  .beian {
    justify-content: center;
  }

  .linkList strong,
  .reservedLink strong {
    text-align: left;
  }
}
