:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --ink: #16324f;
  --muted: #62758d;
  --line: rgba(22, 50, 79, 0.1);
  --brand: #0f4c97;
  --brand-deep: #09376c;
  --accent: #c89a4b;
  --shadow: 0 18px 48px rgba(11, 42, 83, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: min(1200px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 320px, #f7f9fc 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.88);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell,
.footer-shell,
.nav-actions,
.hero-actions,
.contact-points,
.admin-topbar,
.card-head,
.topbar-actions {
  display: flex;
  align-items: center;
}

.nav-shell,
.footer-shell,
.admin-topbar {
  justify-content: space-between;
}

.nav-shell {
  min-height: 82px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-deep);
}

.main-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav > a,
.main-nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px 0;
  line-height: 1;
}

.main-nav > a.is-active,
.main-nav > a:hover,
.main-nav > .nav-item > a.is-active,
.main-nav > .nav-item > a:hover {
  color: var(--brand);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item.is-active > a {
  color: var(--brand);
}

.main-nav > a.is-active::after,
.main-nav > a:hover::after,
.main-nav > .nav-item > a.is-active::after,
.main-nav > .nav-item > a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--brand);
}

.nav-item.is-active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--brand);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 2px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 180ms ease;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--surface-alt);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-button,
.ghost-button,
.hero-control,
.tab-button {
  border: 0;
  cursor: pointer;
  transition: all 180ms ease;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(180deg, #1460b8 0%, #0b4b95 100%);
  box-shadow: 0 10px 24px rgba(15, 76, 151, 0.18);
}

.ghost-button {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.section-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

.section-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.section-image-band {
  background: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 560px;
}

.section-heading h1,
.section-heading h2,
.page-banner h1,
.hero-content h1,
.hero-content h2,
.contact-grid h2,
.login-card h1,
.admin-topbar h1 {
  margin: 0;
}

.section-heading h2,
.page-banner h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.25;
}

.section-heading p,
.feature-panel p,
.message-copy p,
.service-card p,
.news-card p,
.ecosystem-card p,
.subsidiary-card p,
.platform-card p,
.governance-card p,
.responsibility-card p,
.contact-grid p,
.map-info-card p,
.login-card p,
.admin-list p,
.table-item p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  background: #0b2f5e;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 33, 69, 0.9) 0%, rgba(9, 52, 103, 0.82) 42%, rgba(6, 33, 69, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: grid;
  align-content: center;
  max-width: 680px;
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.2;
}

.hero-content p {
  margin: 22px 0 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
}

.hero-toolbar {
  position: relative;
  z-index: 3;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 38px;
}

.hero-dots,
.hero-controls,
.hero-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 38px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-control {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.quick-section {
  padding: 0 0 34px;
  margin-top: -52px;
  position: relative;
  z-index: 4;
}

.quick-grid,
.feature-panel,
.card-grid,
.news-list,
.ecosystem-grid,
.subsidiary-grid,
.platform-grid,
.governance-grid,
.responsibility-grid,
.visual-grid,
.admin-stats {
  display: grid;
  gap: 20px;
}

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

.quick-card,
.feature-panel article,
.service-card,
.news-card,
.ecosystem-card,
.subsidiary-card,
.platform-card,
.governance-card,
.responsibility-card,
.timeline-item,
.map-card,
.map-info-card,
.message-shell,
.contact-form,
.admin-card,
.login-card,
.list-item,
.table-item {
  background: var(--surface);
  border: 1px solid rgba(22, 50, 79, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quick-card {
  padding: 24px 22px;
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--brand-deep);
}

.quick-card span {
  color: var(--muted);
  line-height: 1.6;
}

.split-layout,
.contact-grid,
.admin-layout,
.message-shell,
.map-grid {
  display: grid;
  gap: 24px;
}

.split-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

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

.feature-panel article,
.service-card,
.news-card,
.ecosystem-card,
.subsidiary-card,
.platform-card,
.governance-card,
.responsibility-card,
.timeline-item {
  padding: 28px;
}

.feature-panel h3,
.service-card h3,
.news-card h3,
.ecosystem-card h3,
.subsidiary-card h3,
.platform-card h3,
.governance-card h3,
.responsibility-card h3,
.timeline-item h3,
.map-info-card h3 {
  margin: 0 0 12px;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.message-shell {
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

.message-portrait img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.message-copy {
  padding: 34px;
}

.message-copy strong {
  display: block;
  margin-top: 20px;
  color: var(--brand-deep);
}

.message-copy h3 {
  margin: 0 0 14px;
}

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

.subsidiary-grid.compact .subsidiary-card {
  min-height: 0;
}

.subsidiary-card.detail {
  min-height: 100%;
}

.detail-list-cover {
  width: calc(100% + 56px);
  height: 180px;
  margin: -28px -28px 18px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.subsidiary-card span,
.news-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
}

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

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

.section-actions {
  margin-top: 28px;
}

.page-banner {
  padding: 92px 0 72px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 41, 82, 0.92) 0%, rgba(7, 55, 110, 0.84) 100%),
    url("https://images.unsplash.com/photo-1751885590657-53d2d24257ff?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.page-banner p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.detail-banner {
  padding-bottom: 56px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, rgba(200, 154, 75, 0.7) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 58px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 32px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px rgba(15, 76, 151, 0.08);
}

.timeline-item strong,
.ecosystem-card span {
  color: var(--brand);
  font-weight: 700;
}

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

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

.map-grid {
  grid-template-columns: 1fr 1fr;
}

.map-card {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.map-card.compact {
  min-height: 220px;
  margin: 20px 0;
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(90deg, rgba(15, 76, 151, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(15, 76, 151, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 50% 42%, rgba(15, 76, 151, 0.1), transparent 180px),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e85d5d 0%, #bb3535 100%);
  box-shadow: 0 0 0 10px rgba(232, 93, 93, 0.12);
}

.map-lines::before,
.map-lines::after {
  content: "";
  position: absolute;
  background: rgba(15, 76, 151, 0.15);
}

.map-lines::before {
  left: 14%;
  right: 10%;
  top: 38%;
  height: 8px;
  border-radius: 999px;
}

.map-lines::after {
  top: 18%;
  bottom: 16%;
  left: 52%;
  width: 8px;
  border-radius: 999px;
}

.map-info-card {
  padding: 30px;
}

.rich-card {
  padding: 28px;
}

.rich-card strong {
  display: block;
  margin-top: 18px;
  color: var(--brand-deep);
}

.rich-text p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-article,
.detail-side-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(22, 50, 79, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-cover {
  width: calc(100% + 56px);
  height: 320px;
  margin: -28px -28px 24px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.detail-side-card h3 {
  margin: 0 0 16px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink);
}

.related-item:hover {
  color: var(--brand);
}

.contact-points.column {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.contact-form,
.login-card,
.admin-card {
  padding: 28px;
}

.contact-form,
.stack-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--brand-deep);
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.admin-page {
  background: linear-gradient(180deg, #11252e 0%, #172f3a 100%);
  color: #e8f0f4;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 23, 0.28);
}

.brand-light {
  color: #f8fafc;
}

.admin-nav {
  display: grid;
  gap: 10px;
  margin: 34px 0;
}

.tab-button {
  min-height: 50px;
  padding: 0 16px;
  text-align: left;
  color: rgba(232, 240, 244, 0.84);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.tab-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.8), rgba(30, 58, 95, 0.85));
}

.admin-tip {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 240, 244, 0.84);
}

.admin-main {
  padding: 30px;
}

.login-panel {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(480px, 100%);
}

.hidden,
.tab-panel {
  display: none;
}

.tab-panel.is-active,
.admin-app {
  display: block;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 36px;
  color: #fff;
}

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

.admin-list,
.table-list {
  display: grid;
  gap: 14px;
}

.list-item,
.table-item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.list-item strong,
.table-item strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.table-item button {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffd7b0;
  cursor: pointer;
}

.admin-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .nav-shell,
  .admin-layout,
  .contact-grid,
  .split-layout,
  .message-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .feature-panel,
  .card-grid,
  .news-list,
  .news-list-wide,
  .ecosystem-grid,
  .subsidiary-grid,
  .platform-grid,
  .governance-grid,
  .responsibility-grid,
  .map-grid,
  .admin-stats,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-toolbar {
    min-height: 640px;
  }

  .message-portrait img {
    min-height: 280px;
  }
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 74px;
  }

  .brand {
    font-size: 18px;
  }

  .mobile-nav-toggle {
    display: inline-block;
  }

  .main-nav,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .nav-actions.is-open {
    display: grid;
  }

  .main-nav {
    grid-column: 1 / -1;
    gap: 0;
    margin-top: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .main-nav > a,
  .main-nav > .nav-item > a {
    min-height: 44px;
    padding: 10px 4px;
  }

  .main-nav > a::after,
  .main-nav > .nav-item > a::after,
  .nav-item.is-active > a::after {
    display: none;
  }

  .nav-item {
    display: block;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 6px 0 0 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 10px 0;
    color: var(--muted);
  }

  .nav-actions {
    grid-column: 1 / -1;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-actions .primary-button,
  .nav-actions .ghost-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-content {
    padding-top: 120px;
    align-content: start;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

  .hero-actions,
  .contact-points,
  .footer-shell,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-toolbar {
    padding-bottom: 24px;
    align-items: flex-end;
    gap: 16px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .quick-section {
    margin-top: -38px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .quick-card strong {
    font-size: 24px;
  }

  .detail-cover,
  .detail-list-cover {
    height: 200px;
  }
}
