:root {
  color-scheme: light;
  --bg-page: #f3ecdf;
  --bg-surface: rgba(255, 250, 242, 0.78);
  --bg-surface-strong: rgba(255, 253, 249, 0.92);
  --bg-surface-soft: rgba(19, 93, 102, 0.06);
  --color-text-primary: #1f2c35;
  --color-text-secondary: #53626b;
  --color-text-muted: #70828b;
  --color-border: rgba(31, 44, 53, 0.11);
  --color-accent: #135d66;
  --color-accent-strong: #0d4c5b;
  --color-accent-soft: rgba(19, 93, 102, 0.1);
  --shadow-soft: 0 16px 40px rgba(16, 34, 44, 0.08);
  --shadow-card: 0 18px 44px rgba(20, 40, 52, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-width: 1120px;
  --space-section: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text-primary);
  background:
    radial-gradient(circle at top, rgba(19, 93, 102, 0.2), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(143, 93, 35, 0.1), transparent 18%),
    linear-gradient(180deg, #f8f2e8 0%, #f1eadc 52%, var(--bg-page) 100%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--site-width));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 18px;
}

.site-header .site-shell {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(19, 93, 102, 0.95), rgba(13, 65, 82, 0.95)),
    #135d66;
  color: #f7fbfc;
  box-shadow: var(--shadow-soft);
}

.site-header .site-shell::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.76;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.site-intro {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.92;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 0 14px;
  backdrop-filter: blur(10px);
}

.site-nav .site-shell {
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(247, 241, 231, 0.9);
  color: var(--color-text-primary);
  font: inherit;
}

.nav-toggle-label {
  font-weight: 700;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.84);
  box-shadow: var(--shadow-soft);
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a.is-active {
  background: rgba(19, 93, 102, 0.12);
  color: var(--color-accent-strong);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(19, 93, 102, 0.1);
  color: var(--color-accent);
  outline: none;
}

.page-sections {
  display: grid;
  gap: 22px;
  padding: 8px 0 56px;
}

.page-section {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  padding: var(--space-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.page-section h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.section-meta {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-section p {
  margin: 0;
  max-width: 720px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.page-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(19, 93, 102, 0.18), transparent 32%);
}

.page-section-hero {
  padding-bottom: 190px;
  background:
    radial-gradient(circle at top left, rgba(19, 93, 102, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 242, 234, 0.9));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-summary {
  font-size: 17px;
}

.hero-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(19, 93, 102, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-accent-strong);
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.hero-metric {
  padding: 16px;
  border: 1px solid rgba(19, 93, 102, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.hero-metric span,
.hero-metric strong {
  display: block;
}

.hero-metric span {
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metric strong {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-scene {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  inset: auto 0 0;
  border-radius: 48% 52% 0 0 / 20% 20% 0 0;
}

.hero-wave-back {
  height: 82px;
  background: rgba(19, 93, 102, 0.12);
}

.hero-wave-mid {
  height: 64px;
  background: rgba(19, 93, 102, 0.2);
}

.hero-wave-front {
  height: 42px;
  background: rgba(13, 76, 91, 0.9);
}

.hero-boat {
  position: absolute;
  right: 12%;
  bottom: 44px;
  width: 180px;
  height: 80px;
}

.hero-boat-body {
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  border-radius: 0 0 60px 60px;
  background: linear-gradient(180deg, #6d3b28, #4e2618);
}

.hero-boat-cabin {
  position: absolute;
  right: 28px;
  bottom: 30px;
  width: 42px;
  height: 22px;
  border-radius: 8px 8px 4px 4px;
  background: #f6f1e5;
  box-shadow: 0 0 0 2px rgba(78, 38, 24, 0.12);
}

.hero-boat-flag {
  position: absolute;
  left: 48px;
  bottom: 28px;
  width: 2px;
  height: 42px;
  background: rgba(78, 38, 24, 0.8);
}

.hero-boat-flag::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 16px solid #a33d1e;
}

.section-placeholder {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(19, 93, 102, 0.28);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-strong);
  color: var(--color-text-secondary);
}

.content-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.content-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.content-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.content-card p {
  max-width: none;
}

.content-card-full {
  grid-column: 1 / -1;
}

.fact-list {
  display: grid;
  gap: 10px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.fact-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.fact-row strong {
  max-width: 60%;
  text-align: right;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.mini-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-soft);
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  margin-top: 4px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}

.mini-card p {
  margin-top: 8px;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.ordered-list,
.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.seat-track {
  display: grid;
  gap: 8px;
}

.seat-stop {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-soft);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.seat-stop strong,
.seat-stop span {
  display: block;
}

.seat-stop span {
  margin-top: 4px;
  color: var(--color-text-secondary);
}

.seat-stop.is-active {
  background: rgba(19, 93, 102, 0.14);
}

.seat-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.inline-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
}

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

.phase-card {
  padding: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(19, 93, 102, 0.1), rgba(19, 93, 102, 0.04));
  border: 1px solid rgba(19, 93, 102, 0.12);
}

.phase-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.phase-toggle span:first-child {
  font-size: 18px;
  font-weight: 700;
}

.phase-toggle-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.phase-card.is-open .phase-toggle-icon {
  transform: rotate(-135deg);
}

.phase-panel {
  padding: 0 18px 18px;
}

.phase-panel p {
  max-width: none;
}

.strategy-widget {
  margin-top: 20px;
}

.strategy-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.strategy-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text-secondary);
  font: inherit;
  cursor: pointer;
}

.strategy-tab.is-active {
  background: rgba(19, 93, 102, 0.12);
  color: var(--color-accent-strong);
  border-color: rgba(19, 93, 102, 0.18);
}

.strategy-panel {
  display: none;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.strategy-panel.is-active {
  display: block;
}

.strategy-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.faq-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.faq-toolbar-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text-secondary);
  font: inherit;
  cursor: pointer;
}

.faq-card h3 {
  font-size: 17px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.faq-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-card.is-open .faq-icon {
  transform: rotate(-135deg);
}

.faq-answer {
  margin-top: 12px;
}

.character-widget {
  margin-top: 24px;
}

.character-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.character-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--character-color, var(--color-text-primary));
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.character-tab:hover,
.character-tab:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.character-tab.is-active {
  background: var(--character-tab-bg, rgba(19, 93, 102, 0.1));
  border-color: var(--character-color, var(--color-accent));
}

.character-tab-icon {
  font-size: 18px;
}

.character-card {
  display: none;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.character-card.is-active {
  display: block;
}

.character-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 18px;
  background: var(--character-header-bg, rgba(19, 93, 102, 0.08));
}

.character-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--character-color, #135d66) 28%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--character-color, #135d66) 14%, white);
  font-size: 30px;
}

.character-meta {
  min-width: 0;
}

.character-meta h3 {
  margin: 0;
  color: var(--character-color, var(--color-accent));
  font-size: 24px;
}

.character-meta p {
  margin: 6px 0 0;
}

.character-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.character-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--character-color, #135d66) 14%, white);
  color: var(--character-color, var(--color-accent));
  font-size: 12px;
  font-weight: 600;
}

.character-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 24px 24px;
}

.character-panel {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.character-panel h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.character-panel-full {
  grid-column: 1 / -1;
}

.character-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 14px;
}

.character-row strong {
  text-align: right;
}

.character-stat + .character-stat {
  margin-top: 12px;
}

.character-stat-bar {
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 44, 53, 0.08);
}

.character-stat-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--character-color, var(--color-accent));
}

.character-note + .character-note {
  margin-top: 14px;
}

.character-note-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.character-note p {
  max-width: none;
}

.character-tips {
  display: grid;
  gap: 8px;
}

.character-tips p {
  max-width: none;
  margin: 0;
  padding-left: 14px;
  position: relative;
}

.character-tips p::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.character-verdict {
  grid-column: 1 / -1;
  padding: 18px;
  border-left: 4px solid var(--character-color, var(--color-accent));
  border-radius: var(--radius-sm);
  background: var(--character-verdict-bg, rgba(19, 93, 102, 0.08));
}

.character-verdict strong {
  display: block;
  margin-bottom: 8px;
  color: var(--character-color, var(--color-accent));
}

.character-verdict p {
  max-width: none;
}

.site-footer {
  padding: 8px 28px 28px;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 18px;
  }

  .site-header .site-shell,
  .page-section {
    padding: 22px;
  }

  .page-section-hero {
    padding-bottom: 150px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-boat {
    right: 24px;
    width: 132px;
    height: 64px;
  }

  .content-grid-two,
  .phase-strip {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    margin-top: 10px;
    border-radius: 22px;
    padding: 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .fact-row {
    flex-direction: column;
  }

  .fact-row strong {
    max-width: none;
    text-align: left;
  }

  .character-card-header,
  .character-card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .character-card-body {
    grid-template-columns: 1fr;
  }

  .character-panel-full,
  .character-verdict {
    grid-column: auto;
  }

  .faq-toolbar {
    flex-direction: column;
  }
}
