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

* {
  margin: 0;
}

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

body {
  margin: 0;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ===== Design Tokens ===== */
:root {
  /* 色彩体系 */
  --c-navy-dark: #071527;
  --c-navy: #0B1E3B;
  --c-navy-light: #1A2F4F;
  --c-orange: #F56C1D;
  --c-orange-dark: #C7520D;
  --c-orange-light: #FFD9C0;
  --c-gold: #E9C46A;
  --c-light: #F4F6FA;
  --c-gray: #6B7280;
  --c-danger: #D62828;
  --c-white: #FFFFFF;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 尺寸与布局 */
  --container-max: 1280px;
  --header-h: 72px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --radius: 0;

  /* 阴影与边框 */
  --shadow-1: 0 2px 8px rgba(7, 21, 39, 0.08);
  --shadow-2: 0 8px 24px rgba(7, 21, 39, 0.12);
  --border-light: 1px solid rgba(11, 30, 59, 0.08);
  --border-orange: 3px solid var(--c-orange);
}

/* ===== Base Typography ===== */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: #1A2436;
  background: var(--c-white);
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  font-weight: 800;
}

h4 {
  font-size: 18px;
  font-weight: 700;
}

a {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: rgba(11, 30, 59, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--c-orange-dark);
  text-decoration-color: var(--c-orange);
}

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

::selection {
  background: var(--c-orange);
  color: var(--c-white);
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 10002;
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.2s ease;
}

.skip-link:hover {
  color: var(--c-white);
  background: var(--c-orange-dark);
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--c-orange-dark);
  color: var(--c-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 108, 29, 0.25);
}

.btn--navy {
  background: var(--c-navy);
}

.btn--navy:hover {
  background: var(--c-navy-light);
  box-shadow: 0 8px 20px rgba(11, 30, 59, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  clip-path: none;
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: var(--c-navy);
  box-shadow: 0 6px 16px rgba(11, 30, 59, 0.18);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn--outline.btn--sm {
  clip-path: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--c-gray);
  text-decoration: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 12px;
  color: #B6BFCC;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-navy);
  font-weight: 700;
}

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

/* ===== Card ===== */
.card {
  background: var(--c-light);
  border: 1px solid rgba(11, 30, 59, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--c-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  background: var(--c-white);
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gray);
  letter-spacing: 0.04em;
}

.card__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #39424F;
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-orange-light);
  color: var(--c-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}

.tag--gold {
  background: var(--c-gold);
}

.tag--outline {
  background: transparent;
  border: 1px solid rgba(11, 30, 59, 0.2);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* ===== Progress Bar ===== */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(245, 108, 29, 0.18);
  z-index: 10001;
  pointer-events: none;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--c-orange);
  transition: width 0.1s linear;
}

/* ===== Navigation ===== */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--c-white);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-white);
  font-weight: 700;
}

/* ===== Header Aside ===== */
.header-aside {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.hotline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.hotline-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.hotline-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===== Nav Toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-orange);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

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

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

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

/* ===== Footer ===== */
.site-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.78);
  border-top: 4px solid var(--c-orange);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 32px 48px;
}

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

.brand--footer .brand-name {
  color: var(--c-white);
}

.footer-trust {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
}

.footer-contact {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact span {
  display: block;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--c-orange);
  padding-left: 4px;
}

.footer-bottom {
  background: var(--c-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .header-inner {
    padding: 0 20px;
  }

  .header-aside {
    gap: 12px;
  }

  .hotline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--c-navy-dark);
    padding: 8px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.25);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

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

  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link::after {
    display: none;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 40px;
  }

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

@media (max-width: 767px) {
  .header-inner {
    padding: 0 16px;
    height: 64px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

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

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

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

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
}

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