:root {
  --emc-cyan: #00F0FF;
  --emc-red: #FF2A2A;
  --emc-night: #0A1428;
  --emc-silver: #C0C0C0;
  --emc-ice: #E0F7FF;
  --emc-emerald: #00C48C;
  --emc-amber: #FFB020;
  --emc-wine: #6B1D2A;
  --emc-indigo: #4B3F72;
  --emc-font-title: 'DIN Condensed', 'Arial Narrow', 'Noto Sans SC', sans-serif;
  --emc-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --emc-font-num: 'Roboto Mono', 'Courier New', monospace;
  --emc-header-h: 72px;
  --emc-radius-lg: 20px;
  --emc-radius-md: 14px;
  --emc-radius-sm: 10px;
  --emc-radius-pill: 999px;
  --emc-transition: 0.25s ease;
  --emc-container-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--emc-header-h) + 12px);
}

body {
  font-family: var(--emc-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--emc-ice);
  background-color: var(--emc-night);
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main[id="main-content"] {
  padding-top: var(--emc-header-h);
}

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

a {
  color: var(--emc-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emc-ice);
}

p {
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--emc-font-title);
  line-height: 1.25;
  color: var(--emc-ice);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.2rem;
}

ul,
ol {
  list-style-position: inside;
}

:focus-visible {
  outline: 2px solid var(--emc-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.emc-container {
  width: 100%;
  max-width: var(--emc-container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.emc-num {
  font-family: var(--emc-font-num);
  font-variant-numeric: tabular-nums;
}

.emc-muted {
  color: var(--emc-silver);
  font-size: 0.85rem;
}

.emc-skip {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--emc-cyan);
  color: var(--emc-night);
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--emc-radius-sm);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.emc-skip:focus {
  left: 8px;
}

.emc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--emc-header-h);
  background: rgba(10, 20, 40, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.emc-header-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emc-cyan), var(--emc-indigo), transparent);
  pointer-events: none;
}

.emc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.emc-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.emc-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}

.emc-logo-mark {
  font-family: var(--emc-font-title);
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--emc-cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}

.emc-logo-text {
  font-family: var(--emc-font-title);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--emc-ice);
}

.emc-tagline {
  font-size: 0.72rem;
  color: var(--emc-silver);
  letter-spacing: 0.2em;
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  padding-left: 0.9rem;
  margin: 0 0 0 0.5rem;
  white-space: nowrap;
  font-family: var(--emc-font-body);
}

.emc-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--emc-radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.emc-nav-toggle:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.emc-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--emc-cyan);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.emc-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.emc-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  color: var(--emc-ice);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--emc-radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.emc-nav a::before {
  content: attr(data-index);
  font-family: var(--emc-font-num);
  font-size: 0.62rem;
  color: var(--emc-cyan);
  opacity: 0.55;
  margin-right: 0.4em;
  transition: opacity 0.2s ease;
}

.emc-nav a:hover {
  color: var(--emc-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.emc-nav a[aria-current="page"] {
  color: var(--emc-cyan);
  font-weight: 700;
}

.emc-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--emc-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

.emc-scrollbar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--emc-cyan), var(--emc-red));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transition: width 0.08s linear;
}

.emc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--emc-radius-pill);
  border: 1px solid transparent;
  font-family: var(--emc-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.emc-btn-primary {
  background: var(--emc-red);
  border-color: var(--emc-red);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.3);
}

.emc-btn-primary:hover {
  background: #ff4d4d;
  border-color: #ff4d4d;
  color: #fff;
  box-shadow: 0 0 38px rgba(255, 42, 42, 0.5);
  transform: translateY(-2px);
}

.emc-btn-ghost {
  background: transparent;
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--emc-cyan);
}

.emc-btn-ghost:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--emc-cyan);
  color: var(--emc-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.emc-grid {
  display: grid;
  gap: 1.5rem;
}

.emc-grid--2,
.emc-grid--3,
.emc-grid--4 {
  display: grid;
  gap: 1.5rem;
}

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

.emc-card {
  background: linear-gradient(145deg, rgba(10, 20, 40, 0.92), rgba(75, 63, 114, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--emc-radius-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.emc-card-glow {
  box-shadow: 0 0 44px rgba(0, 240, 255, 0.08);
}

.emc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--emc-silver);
  padding: 0.5rem 0 1.2rem;
}

.emc-breadcrumb a {
  color: var(--emc-cyan);
  text-decoration: none;
}

.emc-breadcrumb a:hover {
  text-decoration: underline;
}

.emc-breadcrumb-sep {
  color: var(--emc-cyan);
  opacity: 0.45;
  font-family: var(--emc-font-num);
}

.emc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--emc-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.08);
  color: var(--emc-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  line-height: 1.5;
  white-space: nowrap;
}

.emc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.emc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.emc-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  color: var(--emc-cyan);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  white-space: nowrap;
}

.emc-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  color: var(--emc-ice);
}

.emc-table tbody tr {
  transition: background 0.2s ease;
}

.emc-table tbody tr:hover {
  background: rgba(0, 240, 255, 0.05);
}

.emc-databar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.emc-databar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.emc-databar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--emc-cyan), var(--emc-indigo));
  border-radius: 6px;
}

.emc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.emc-dot--online {
  background: var(--emc-emerald);
  box-shadow: 0 0 8px rgba(0, 196, 140, 0.8);
}

.emc-dot--live {
  background: var(--emc-red);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.9);
  animation: emc-pulse 1s ease-in-out infinite;
}

@keyframes emc-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.emc-coordinate {
  font-family: var(--emc-font-num);
  font-size: 0.72rem;
  color: var(--emc-cyan);
  opacity: 0.55;
  letter-spacing: 0.1em;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

.emc-footer {
  position: relative;
  overflow: hidden;
  background: var(--emc-night);
  border-top: 1px solid rgba(0, 240, 255, 0.14);
}

.emc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emc-cyan), transparent);
  opacity: 0.6;
}

.emc-footer-glow {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.emc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr;
  gap: 2.2rem;
  padding-top: 3.2rem;
  padding-bottom: 1.5rem;
}

.emc-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.emc-footer-logo {
  font-family: var(--emc-font-title);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--emc-cyan);
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.3);
  margin: 0;
}

.emc-footer-logo span {
  color: var(--emc-ice);
  font-weight: 700;
  margin-left: 0.15rem;
}

.emc-footer-slogan {
  color: var(--emc-silver);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin: 0.8rem 0 0;
}

.emc-footer-note {
  color: rgba(224, 247, 255, 0.55);
  font-size: 0.78rem;
  margin: 0.9rem 0 0;
  line-height: 1.6;
}

.emc-footer-column h3 {
  font-family: var(--emc-font-title);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--emc-cyan);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.emc-footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--emc-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.emc-footer-column ul {
  list-style: none;
  padding: 0;
}

.emc-footer-column li {
  margin-bottom: 0.55rem;
}

.emc-footer-column a {
  color: var(--emc-silver);
  font-size: 0.88rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.emc-footer-column a:hover {
  color: var(--emc-cyan);
  padding-left: 4px;
}

.emc-footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.7rem;
  color: var(--emc-silver);
  font-size: 0.85rem;
  line-height: 1.5;
}

.emc-footer-label {
  font-size: 0.68rem;
  color: var(--emc-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.emc-footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.3rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.emc-footer-meta p {
  color: var(--emc-silver);
  font-size: 0.8rem;
  margin: 0;
}

.emc-footer-trust {
  padding: 0 0 1.6rem;
  margin: 0;
  text-align: center;
  color: rgba(192, 192, 192, 0.6);
  font-size: 0.75rem;
  line-height: 1.8;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.emc-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 20, 40, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: var(--emc-cyan);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.emc-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.emc-to-top:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 1023px) {
  .emc-nav-toggle {
    display: flex;
  }

  .emc-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 20, 40, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1rem 1rem;
    display: none;
    max-height: calc(100vh - var(--emc-header-h));
    overflow-y: auto;
  }

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

  .emc-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .emc-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--emc-radius-sm);
  }

  .emc-nav a[aria-current="page"] {
    background: rgba(0, 240, 255, 0.08);
  }

  .emc-nav a[aria-current="page"]::after {
    display: none;
  }

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

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

  .emc-header-inner {
    gap: 0.6rem;
  }

  .emc-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.4rem;
  }

  .emc-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .emc-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@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;
  }

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

  .emc-dot--live {
    animation: none;
  }
}
