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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #33415c;
  background: var(--color-light-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-deep-blue);
}

p {
  overflow-wrap: break-word;
}

a {
  color: var(--color-mid-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* ===== CSS Variables ===== */
:root {
  --color-deep-blue: #0a1e3f;
  --color-orange: #ff6b1a;
  --color-gold: #e8a33d;
  --color-light-bg: #f4f6fb;
  --color-white: #ffffff;
  --color-dark: #050b1a;
  --color-mid-blue: #2a5b8e;
  --color-danger: #e03d3d;
  --color-light-blue: #e8edf5;
  --gradient-orange: linear-gradient(135deg, #ff6b1a, #ff8a50);

  --font-headline: "Oswald", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --container-max: 1280px;
  --container-pad: 48px;
  --header-h: 88px;
  --transition-base: 0.3s ease;
}

@media (max-width: 959px) {
  :root {
    --container-pad: 28px;
    --header-h: 66px;
  }
}

@media (max-width: 575px) {
  :root {
    --container-pad: 20px;
  }
}

/* ===== Utilities ===== */
.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;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.main-content {
  min-height: 62vh;
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--gradient-orange);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(5, 11, 26, 0.3);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: none;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-orange);
  z-index: 1600;
  pointer-events: none;
  transition: width 0.08s linear;
}

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

.site-header.is-scrolled {
  background: rgba(10, 30, 63, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 28px rgba(5, 11, 26, 0.35);
}

.header-signal {
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 55%, transparent 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* ===== Brand ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-w: 0;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--color-orange);
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  transition: transform 0.3s ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--color-deep-blue);
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  background: var(--color-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand:hover .brand-mark {
  transform: rotate(12deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(215, 225, 245, 0.68);
  font-family: var(--font-sans);
}

/* ===== Desktop Navigation ===== */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 12px;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bfcbe2;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-index {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0;
  line-height: 1;
}

.nav-label {
  line-height: 1.2;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
  border-bottom-color: var(--color-orange);
  outline: none;
}

.nav-link[aria-current="page"] {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
  background: linear-gradient(180deg, transparent 60%, rgba(255, 107, 26, 0.12) 60%);
}

/* ===== Nav Toggle (Mobile) ===== */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1300;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  margin: 4px auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

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

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

/* ===== Mobile Navigation ===== */
.primary-nav {
  overflow-y: auto;
}

@media (max-width: 959px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(360px, 88vw);
    z-index: 1100;
    padding: 88px 30px 42px;
    background: rgba(10, 30, 63, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 60px rgba(5, 11, 26, 0.55);
    transform: translateX(105%);
    transition: transform 0.35s ease;
  }

  .primary-nav[data-open="true"] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    font-size: 1.05rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    background: transparent;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-bottom: none;
    border-left-color: var(--color-orange);
    background: rgba(255, 107, 26, 0.06);
  }

  .nav-link[aria-current="page"] {
    border-bottom: none;
    border-left-color: var(--color-orange);
    background: rgba(255, 107, 26, 0.1);
  }

  .nav-index {
    font-size: 0.75rem;
    min-width: 22px;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--color-deep-blue);
  color: #9eabc6;
  overflow: hidden;
}

.footer-top-bar {
  position: relative;
  height: 6px;
  background: var(--gradient-orange);
  clip-path: polygon(0 0, 100% 0, 98.5% 100%, 1.5% 100%);
}

.footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.9fr 0.9fr 0.9fr 1.3fr;
  gap: 48px 44px;
  padding-block: 64px 48px;
}

.footer-brand-col {
  min-width: 0;
}

.brand-footer {
  margin-bottom: 20px;
}

.footer-desc,
.footer-trust {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #9eabc6;
  margin-bottom: 14px;
}

.footer-trust {
  padding-left: 14px;
  border-left: 2px solid var(--color-gold);
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: #9eabc6;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-orange);
  transform: translateX(5px);
  outline: none;
}

.footer-contact-list li {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--color-orange);
}

.footer-contact-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.footer-contact-value {
  display: block;
  font-size: 0.875rem;
  color: #c5d0e8;
  font-family: var(--font-sans);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px;
  font-size: 0.8125rem;
  color: #7f8ca8;
}

.footer-copyright,
.footer-icp,
.footer-note {
  font-family: var(--font-sans);
}

.footer-copyright {
  color: #9eabc6;
}

.footer-icp {
  letter-spacing: 0.04em;
}

.footer-note {
  color: rgba(232, 163, 61, 0.75);
}

@media (max-width: 991px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 575px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px 40px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Sections ===== */
.section {
  padding-block: 72px;
}

.section-dark {
  background: var(--color-deep-blue);
  color: #c5d0e8;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  color: var(--color-deep-blue);
  margin-bottom: 14px;
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #5a6b85;
  max-width: 720px;
}

.section-dark .section-subtitle {
  color: #c5d0e8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 30px;
  font-family: var(--font-headline);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--color-gold);
}

.btn-primary {
  background: var(--gradient-orange);
  color: var(--color-white);
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-deep-blue);
  border-color: transparent;
}

.btn-light:hover {
  background: var(--color-light-blue);
}

@media (max-width: 575px) {
  .btn {
    width: 100%;
    clip-path: none;
  }
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 991px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== Card ===== */
.card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-light-blue);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--color-mid-blue);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  transition: background 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 30, 63, 0.09);
}

.card:hover::before {
  background: var(--color-orange);
}

.card-dark {
  background: var(--color-deep-blue);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-dark h3,
.card-dark h4 {
  color: var(--color-white);
}

.card-dark p {
  color: #c5d0e8;
}

/* ===== Tag & Badge ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-deep-blue);
  background: var(--color-light-blue);
  border-left: 3px solid var(--color-orange);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-deep-blue);
  border-left: 3px solid var(--color-gold);
}

.badge-orange {
  background: var(--color-orange);
  border-left-color: var(--color-white);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 18px 0;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-list li + li::before {
  content: "/";
  color: var(--color-mid-blue);
  margin-right: 6px;
  opacity: 0.5;
}

.breadcrumbs-list a {
  color: var(--color-mid-blue);
  text-decoration: none;
}

.breadcrumbs-list a:hover {
  color: var(--color-orange);
}

.breadcrumbs-list [aria-current="page"] {
  color: var(--color-deep-blue);
  font-weight: 600;
}

/* ===== Content Wrap ===== */
.content-wrap {
  max-width: 860px;
  margin-inline: auto;
  padding-block: 32px 72px;
}

.content-wrap p {
  margin-bottom: 1.2em;
  color: #33415c;
  line-height: 1.9;
}

.content-wrap h2 {
  font-size: 1.8rem;
  color: var(--color-deep-blue);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-blue);
  position: relative;
}

.content-wrap h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--color-orange);
}

.content-wrap h3 {
  font-size: 1.3rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.content-wrap ul,
.content-wrap ol {
  margin: 0 0 1.4em 1.4em;
  list-style: disc;
}

.content-wrap ol {
  list-style: decimal;
}

.content-wrap li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

/* ===== Accordion ===== */
.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-light-blue);
  border-left: 4px solid var(--color-mid-blue);
  margin-bottom: 12px;
  transition: border-color 0.25s ease;
}

.accordion-item[data-open="true"] {
  border-left-color: var(--color-orange);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-deep-blue);
  cursor: pointer;
}

.accordion-trigger:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: -3px;
}

.accordion-icon {
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 22px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-orange);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  top: 10px;
  left: 0;
  width: 22px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 10px;
  width: 2px;
  height: 22px;
}

.accordion-item[data-open="true"] .accordion-icon::after {
  transform: scaleY(0);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item[data-open="true"] .accordion-panel {
  max-height: 1200px;
}

.accordion-content {
  padding: 0 22px 20px 26px;
  color: #45556f;
  line-height: 1.8;
  font-size: 0.95rem;
}

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

.js-enabled [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* ===== Body nav lock ===== */
.nav-lock {
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .nav-link {
    padding: 14px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 479px) {
  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-progress {
    display: none;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header.is-scrolled {
    background: var(--color-deep-blue);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
