:root {
  --container: 1200px;
  --gap: 1.5rem;
  --header-stack: 48px;

  --cream: #FDF8F0;
  --blue-900: #0B1E2D;
  --blue-800: #102A43;
  --blue-700: #1B3A5C;
  --orange: #FF6B35;
  --orange-light: #FFB092;
  --teal: #3DBE9D;
  --teal-light: #E0F4F0;
  --gray: #6B7A8F;
  --white: #FFFFFF;
  --red: #D64545;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Roboto Mono", "DIN Alternate", monospace;
  --shadow: 0 8px 24px rgba(11, 30, 45, 0.1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--blue-800);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 900;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-800);
  transition: color 0.2s ease;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
}

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

::selection {
  background: var(--orange);
  color: var(--blue-900);
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.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: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--blue-800);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  transition: box-shadow 0.2s ease;
}

.site-header[data-scrolled] {
  box-shadow: 0 4px 14px rgba(11, 30, 45, 0.14);
}

.header-top {
  background: var(--blue-800);
  color: var(--cream);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--orange);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.header-tagline {
  letter-spacing: 0.12em;
  opacity: 0.85;
  color: var(--cream);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 2px;
  background: var(--teal);
  color: var(--blue-900);
}

.tag-new {
  background: var(--teal);
  color: var(--blue-900);
}

.tag-hot {
  background: var(--orange);
  color: var(--white);
}

.header-nav {
  background: var(--cream);
  border-bottom: 2px solid var(--blue-800);
  position: relative;
  overflow: hidden;
}

.header-nav::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 52px;
  height: 4px;
  background: var(--orange);
  transform: skewX(-45deg);
  transform-origin: right bottom;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-stack);
}

.nav-main {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.75rem 0.8rem;
  text-decoration: none;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  bottom: 0.3rem;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: skewX(-45deg);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 1.15rem;
}

.nav-link[aria-current="page"] {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: none;
  border: 1px solid var(--blue-800);
  border-radius: 2px;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--teal-light);
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -0.4rem;
}

.nav-toggle-icon::after {
  top: 0.4rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-close {
  display: none;
  align-self: flex-end;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  background: none;
  border: 1px solid var(--teal);
  border-radius: 2px;
  color: var(--blue-800);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.nav-close:hover {
  background: var(--teal-light);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.1s linear;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(11, 30, 45, 0.65);
}

.nav-backdrop[data-open] {
  display: block;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.section-title::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: var(--orange);
  transform: skewX(-30deg);
  flex: 0 0 auto;
}

.section-title small {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--gray);
  font-family: var(--font-mono);
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.btn-outline:hover {
  background: var(--blue-800);
  color: var(--cream);
}

.card {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.12);
}

.card[data-cut] {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.panel {
  position: relative;
  padding: 2rem;
  background: var(--blue-800);
  color: var(--cream);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 32px solid var(--orange);
  border-left: 32px solid transparent;
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 2px;
  background: var(--teal-light);
  color: var(--blue-800);
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(16, 42, 67, 0.2);
}

.data-row .label {
  color: var(--gray);
  font-size: 0.9rem;
}

.data-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-800);
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-mono);
  font-weight: 900;
  background: var(--blue-800);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.trend-up::before {
  content: "↑";
  color: var(--teal);
  font-weight: 900;
}

.trend-down::before {
  content: "↓";
  color: var(--red);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--gray);
}

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

.img-placeholder {
  position: relative;
  display: block;
  width: 100%;
  background: var(--teal-light);
  overflow: hidden;
}

.img-placeholder::before {
  content: "IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.08) 25%, transparent 25%, transparent 75%, rgba(16, 42, 67, 0.08) 75%);
  background-size: 16px 16px;
}

.img-placeholder.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.img-placeholder.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.img-placeholder.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.img-placeholder.ratio-1-1 {
  aspect-ratio: 1;
}

.site-footer {
  background: var(--blue-900);
  color: var(--cream);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

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

.footer-brand-title {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand-title:hover {
  color: var(--orange-light);
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(253, 248, 240, 0.8);
  line-height: 1.7;
}

.footer-trust {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--teal);
  background: rgba(16, 42, 67, 0.7);
  font-size: 0.85rem;
  color: rgba(253, 248, 240, 0.8);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--orange-light);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(253, 248, 240, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.footer-contact {
  margin-bottom: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: rgba(253, 248, 240, 0.85);
}

.footer-contact .label {
  flex: 0 0 auto;
  min-width: 3rem;
  color: var(--orange-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.6);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 248, 240, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.6);
}

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .header-top-inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

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

  .header-meta {
    gap: 0.5rem;
  }

  .header-tagline {
    display: none;
  }

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

  .nav-inner {
    min-height: 44px;
  }

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

  .nav-main {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    max-width: 22rem;
    height: 100vh;
    background: var(--cream);
    z-index: 1100;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    box-shadow: -2px 0 20px rgba(11, 30, 45, 0.2);
    visibility: hidden;
    transition: right 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-main[data-open] {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease, visibility 0s linear;
  }

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

  .nav-link {
    display: block;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--teal-light);
  }

  .nav-close {
    display: inline-block;
  }

  .nav-backdrop[data-open] {
    display: block;
  }

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .container {
    width: min(100% - 1.25rem, var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .progress {
    transition: none;
  }
}
