:root {
  color-scheme: light;
  --brand-primary: #0b4f93;
  --brand-secondary: #0b8793;
  --brand-accent-red: #a7352a;
  --bg-page: #f5f8fb;
  --bg-card: #ffffff;
  --bg-soft: #edf6f8;
  --text-main: #102033;
  --text-muted: #5b6b7e;
  --border-soft: #dce6ef;
  --radius-card: 8px;
  --shadow-card: 0 16px 42px rgba(18, 59, 101, 0.12);
  --button-height: 46px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text-main);
  background: var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 13px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 230, 239, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0b315f;
  font-weight: 760;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(11, 51, 95, 0.12);
}

.nav-menu {
  display: block;
}

.nav-menu summary {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: var(--radius-card);
  color: #2f4054;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #eef5fb;
  color: var(--brand-primary);
}

.section-band {
  width: 100%;
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--bg-card);
}

.section-band.muted {
  background: var(--bg-soft);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(11, 79, 147, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 147, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbfd 0%, #edf6fb 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 0, transparent 72%, rgba(167, 53, 42, 0.04) 72%, transparent 73%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  min-height: min(650px, calc(100vh - 66px));
}

.hero-grid > *,
.hero-copy {
  min-width: 0;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 53, 42, 0.36);
  border-radius: 6px;
  color: var(--brand-accent-red);
  background: rgba(167, 53, 42, 0.045);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-seal.small {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-secondary);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
a,
span,
small,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #0b315f;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: #0b315f;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-slogan {
  max-width: 720px;
  margin: 16px 0 0;
  color: #173b60;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 720;
}

.hero-subtitle,
.section-heading p,
.section-intro {
  color: var(--text-muted);
}

.hero-subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: clamp(16px, 2.1vw, 19px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 12px 17px;
  border-radius: var(--radius-card);
  font-weight: 730;
  line-height: 1.2;
}

.button-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 79, 147, 0.22);
}

.button-primary:hover {
  background: #09457f;
}

.button-secondary {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--brand-primary);
}

.button-quiet {
  border: 1px solid rgba(11, 135, 147, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
}

.tool-preview {
  width: 100%;
  min-width: 0;
  max-width: 430px;
  justify-self: end;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.preview-header,
.preview-item,
.stroke-actions,
.training-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 14px;
}

.preview-header strong {
  color: var(--brand-secondary);
}

.preview-item {
  min-height: 70px;
  border-bottom: 1px solid #edf2f7;
}

.preview-item b {
  display: block;
  color: #0b315f;
  font-size: 17px;
}

.preview-item small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.preview-item em {
  flex: 0 0 auto;
  min-width: 44px;
  border-radius: 999px;
  background: #edf6f8;
  color: var(--brand-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  text-align: center;
}

.preview-item.featured em {
  background: rgba(167, 53, 42, 0.08);
  color: var(--brand-accent-red);
}

.preview-note {
  margin: 18px 0 0;
  color: #5f7182;
  font-size: 14px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading p,
.section-intro {
  max-width: 720px;
  margin: 0;
}

.section-heading.vertical {
  align-content: start;
  margin-bottom: 0;
}

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

.tool-card {
  display: flex;
  min-height: 208px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.045);
}

.tool-card-priority {
  border-color: rgba(167, 53, 42, 0.24);
  box-shadow: 0 12px 32px rgba(167, 53, 42, 0.07);
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf6f8;
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 760;
}

.tool-tag.accent {
  background: rgba(167, 53, 42, 0.08);
  color: var(--brand-accent-red);
}

.tool-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.tool-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-card);
  background: #eef5fb;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 740;
}

.stroke-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: stretch;
}

.stroke-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    linear-gradient(rgba(11, 79, 147, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 147, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
  box-shadow: var(--shadow-card);
}

.stroke-card p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-muted);
}

.stroke-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.training-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1.24fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}

.training-list {
  display: grid;
  gap: 12px;
}

.training-item {
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.training-item span {
  color: #0b315f;
  font-weight: 760;
}

.training-item small {
  color: var(--text-muted);
}

.mini-program-band {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
}

.mini-program-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.mini-program-copy {
  min-width: 0;
}

.mini-program-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mini-program-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(11, 135, 147, 0.18);
  border-radius: 999px;
  background: #f1f9fa;
  color: #14606b;
  font-size: 13px;
  font-weight: 700;
}

.mini-program-qr {
  justify-self: end;
  width: min(100%, 236px);
  margin: 0;
  padding: 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: #ffffff;
  text-align: center;
}

.mini-program-qr img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.mini-program-qr figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.disclaimer-band {
  padding: clamp(36px, 6vw, 60px) 0;
  background: #ffffff;
}

.disclaimer {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-left: 4px solid var(--brand-secondary);
  background: #f5f9fc;
}

.disclaimer h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.disclaimer p {
  max-width: 900px;
  margin: 0;
  color: var(--text-muted);
}

.legal-main .section-band {
  min-height: calc(100vh - 252px);
  background: #ffffff;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #2f4054;
  font-size: 14px;
  font-weight: 650;
}

.legal-nav a:hover {
  color: var(--brand-primary);
}

.legal-content {
  max-width: 840px;
}

.legal-content h1 {
  font-size: clamp(34px, 6vw, 52px);
}

.legal-content h2 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: clamp(21px, 3vw, 28px);
}

.legal-content p {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.legal-intro {
  max-width: 720px;
  color: #24364a;
  font-size: 18px;
}

.legal-list,
.timeline-list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
}

.legal-list li,
.timeline-list li {
  margin: 10px 0;
}

.timeline-list strong {
  display: block;
  color: #0b315f;
}

.timeline-list span {
  display: block;
  margin-top: 4px;
}

.site-footer {
  background: #0d2238;
  color: #e7eef6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.35fr);
  gap: 24px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  font-size: 20px;
}

.footer-brand span,
.records {
  color: #aab8c8;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: #dce8f3;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.records {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.records a {
  color: inherit;
}

.records a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero-grid,
  .stroke-layout,
  .training-grid,
  .mini-program-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tool-preview,
  .mini-program-qr {
    justify-self: start;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .legal-nav {
    max-width: 58vw;
    gap: 6px 10px;
  }

  .nav-menu {
    position: relative;
  }

  .nav-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: #ffffff;
    cursor: pointer;
    list-style: none;
  }

  .nav-menu summary::-webkit-details-marker {
    display: none;
  }

  .nav-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0b315f;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 52px;
    display: none;
    width: min(280px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

  .nav-menu[open] .nav-links {
    display: flex;
  }

  .hero-actions,
  .stroke-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .records {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .section-band {
    padding: 42px 0;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-grid {
    gap: 24px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(32px, 9.6vw, 38px);
  }

  .hero-slogan {
    font-size: clamp(18px, 5.2vw, 20px);
    line-height: 1.45;
  }

  .hero-subtitle {
    max-width: 19em;
    font-size: 15px;
    word-break: break-all;
  }

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

  .tool-card {
    min-height: 174px;
    padding: 18px;
  }

  .mini-program-panel {
    padding: 18px;
  }

  .preview-item,
  .training-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mini-program-qr {
    width: min(100%, 210px);
  }
}
