/* ===== 云开全站 共享样式 /assets/site.css ===== */

:root {
  --c-bg: #0B1B3A;
  --c-bg-2: #1A1F36;
  --c-green: #39FF14;
  --c-orange: #FF6B00;
  --c-cyan: #00E5FF;
  --c-purple: #A78BFA;
  --c-red: #FF3B3B;
  --c-text: #E6ECF5;
  --c-text-2: #B0BED0;
  --c-line: rgba(230, 236, 245, 0.12);
  --c-line-green: rgba(57, 255, 20, 0.38);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 72px;
  --container-w: 1200px;
}

/* ===== Reset & Base ===== */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70vh;
  z-index: -1;
  background: radial-gradient(ellipse at 50% -10%, rgba(57, 255, 20, 0.06) 0%, rgba(0, 229, 255, 0.03) 40%, transparent 68%);
  pointer-events: none;
}

main {
  display: block;
}

#main-content {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--c-green);
  color: var(--c-bg);
}

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

/* ===== Layout Primitives ===== */

.container {
  width: min(100% - 48px, var(--container-w));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
}

.section-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--c-green);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--c-text);
  margin: 16px 0 0;
}

.section-title em {
  font-style: normal;
  color: var(--c-green);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ===== Accessibility Helpers ===== */

.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: -60px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--c-green);
  color: var(--c-bg);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--c-green);
  color: var(--c-bg);
  border-color: var(--c-green);
}

.btn-primary:hover {
  background: #D6FFB0;
  border-color: #D6FFB0;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(57, 255, 20, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--c-green);
  border-color: rgba(57, 255, 20, 0.45);
}

.btn-outline:hover {
  background: rgba(57, 255, 20, 0.08);
  border-color: var(--c-green);
}

.btn-orange {
  background: var(--c-orange);
  color: var(--c-bg);
  border-color: var(--c-orange);
}

.btn-orange:hover {
  background: #FF8A33;
  border-color: #FF8A33;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255, 107, 0, 0.22);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-arrow {
  font-size: 1em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* ===== Brand ===== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--c-green);
  color: var(--c-bg);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--c-text);
}

.brand-sub {
  font-weight: 600;
  color: var(--c-text-2);
  margin-left: 2px;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(11, 27, 58, 0.96);
  border-bottom-color: var(--c-line-green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--c-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-list a:hover {
  color: var(--c-green);
}

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

.nav-list a[aria-current="page"] {
  color: var(--c-green);
}

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

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ===== Page Progress ===== */

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-cyan));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1100;
  pointer-events: none;
}

/* ===== Footer ===== */

.site-footer {
  position: relative;
  margin-top: 80px;
  background: #070F24;
  border-top: 1px solid var(--c-line);
}

.footer-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-green) 280px, var(--c-orange) 280px, var(--c-orange) 300px, transparent 300px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
}

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

.footer-slogan {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--c-green);
  margin: 20px 0 12px;
}

.footer-desc {
  max-width: 34em;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text-2);
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--c-text-2);
}

.trust-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--c-green);
  animation: trust-pulse 2s ease-in-out infinite;
}

@keyframes trust-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.footer-title {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--c-green);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-list a {
  position: relative;
  padding-left: 14px;
  font-size: 0.92rem;
  color: var(--c-text-2);
  transition: color 0.25s ease;
}

.footer-list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--c-green);
  transition: transform 0.25s ease;
}

.footer-list a:hover {
  color: var(--c-green);
}

.footer-list a:hover::before {
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.footer-contact-list li {
  margin-bottom: 14px;
  line-height: 1.5;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-2);
  margin-bottom: 2px;
}

.footer-contact-list a {
  font-size: 0.95rem;
  color: var(--c-text);
  border-bottom: 1px dotted var(--c-line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-contact-list a:hover {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--c-text);
  font-style: normal;
}

.footer-hours {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--c-text-2);
  border-top: 1px dashed var(--c-line);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text-2);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--c-text-2);
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: var(--c-green);
}

.legal-sep {
  color: var(--c-line);
}

/* ===== Breadcrumbs ===== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-size: 0.85rem;
  color: var(--c-text-2);
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--c-line);
}

.breadcrumbs a {
  color: var(--c-text-2);
  transition: color 0.25s ease;
}

.breadcrumbs a:hover {
  color: var(--c-green);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-green);
}

/* ===== Cards & Components ===== */

.card {
  position: relative;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-green), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--c-line-green);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.data-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--c-bg-2), #12172B);
  border: 1px solid var(--c-line);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.data-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(57, 255, 20, 0.08) 6px 7px);
  pointer-events: none;
}

.data-card:hover {
  border-color: var(--c-line-green);
  transform: translateY(-4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  background: transparent;
}

.tag-green {
  color: var(--c-green);
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.06);
}

.tag-orange {
  color: var(--c-orange);
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.06);
}

.tag-cyan {
  color: var(--c-cyan);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.data-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.stat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--c-green);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--c-text-2);
  margin-left: 4px;
}

.section-number {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 20, 0.35);
  user-select: none;
}

.divider {
  position: relative;
  height: 1px;
  border: none;
  background: var(--c-line);
  margin: 32px 0;
}

.divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 48px;
  height: 3px;
  background: var(--c-green);
}

/* ===== Image Frame ===== */

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}

.image-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  border: 1px solid rgba(57, 255, 20, 0.3);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.image-frame::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  width: 28px;
  height: 3px;
  background: var(--c-green);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-frame:hover::before {
  border-color: rgba(57, 255, 20, 0.6);
}

/* ===== Utility Clip ===== */

.clip-angle {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.clip-angle-left {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

/* ===== Responsive ===== */

@media (max-width: 1023px) {
  .site-header {
    background: rgba(11, 27, 58, 0.82);
  }

  .site-header[data-scrolled="true"] {
    background: rgba(11, 27, 58, 0.97);
  }

  body.nav-open .site-header {
    background: rgba(7, 15, 36, 0.98);
    border-bottom-color: var(--c-line-green);
  }

  body.nav-open {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 24px;
    background: rgba(7, 15, 36, 0.98);
    border-top: 1px solid var(--c-line-green);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: auto;
  }

  .nav-list a {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
  }

  .nav-toggle {
    display: flex;
  }
}

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

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

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 32px, var(--container-w));
  }
}

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

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===== 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;
    transition-delay: 0ms !important;
  }
}
