/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #e0e0e0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a2a4a;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

a {
  color: #2a4a7f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff6b35;
}

ul,
ol {
  padding-left: 1.25em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: 'Inter', sans-serif;
  font-size: inherit;
}

::selection {
  background: #ff6b35;
  color: #ffffff;
}

/* ===== Design Tokens ===== */
:root {
  --primary: #1a2a4a;
  --primary-deep: #0f1a2f;
  --primary-light: #2a4a7f;
  --accent: #ff6b35;
  --accent-light: #ff8c42;
  --bg-gray: #e0e0e0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-aux: #6b7280;
  --gradient-blue: linear-gradient(135deg, #1a2a4a 0%, #2a4a7f 100%);
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  --font-heading: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', Consolas, 'Courier New', monospace;
  --container: 1280px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(15, 26, 47, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 26, 47, 0.18);
  --transition: 0.25s ease;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient-orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(26, 42, 74, 0.3);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(26, 42, 74, 0.05);
  color: var(--primary);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* ===== Section & Grid ===== */
.section {
  padding: 72px 0;
}

.section-dark {
  background: var(--primary);
}

.section-light {
  background: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-aux);
  max-width: 600px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.editorial-aside {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-aux);
  border-top: 3px solid var(--accent);
  padding-top: 16px;
}

.editorial-content {
  min-width: 0;
}

/* ===== Card & Data Panel ===== */
.card {
  background: var(--white);
  border: 1px solid rgba(26, 42, 74, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 26, 47, 0.12);
}

.data-panel {
  background: linear-gradient(135deg, rgba(26, 42, 74, 0.04) 0%, rgba(42, 74, 127, 0.09) 100%);
  border: 1px solid rgba(26, 42, 74, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.data-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
}

/* ===== Picture Frame ===== */
.picture-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gradient-blue);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picture-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.picture-frame::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(15, 26, 47, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px;
  text-align: center;
}

.picture-frame.has-image::after {
  display: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(15, 26, 47, 0.28);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-orange);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

/* ===== Navigation Pill ===== */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 5px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(15, 26, 47, 0.2);
}

.nav-pill a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-pill a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.nav-pill a[aria-current="page"] {
  background: var(--gradient-orange);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.32);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 70%);
  color: rgba(255, 255, 255, 0.8);
  border-top: 3px solid var(--accent);
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.footer-brand .brand-name {
  font-size: 24px;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 6px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  display: block;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-contact-item {
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
}

.footer-contact-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  margin-right: auto;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding-left: 0;
  font-size: 13px;
  color: var(--text-aux);
  margin-bottom: 24px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-aux);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: rgba(26, 42, 74, 0.3);
}

/* ===== Reveal ===== */
[data-reveal].is-reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-pill {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: 0 16px 48px rgba(15, 26, 47, 0.3);
  }

  .nav-pill[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }

  .nav-pill a {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
  }

  .nav-pill a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-pill a[aria-current="page"] {
    background: var(--gradient-orange);
  }

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

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial-aside {
    border-top: none;
    border-left: 3px solid var(--accent);
    padding-top: 0;
    padding-left: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card,
  .data-panel {
    padding: 16px;
  }

  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-copyright {
    margin-right: 0;
  }

  .footer-legal {
    margin-left: 0;
    gap: 16px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  [data-reveal].is-reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}
