@charset "UTF-8";

/* ==========================================
   万博全站 / touch-wanbo.com.cn
   共享样式表 /assets/site.css
   创意原型：数字控制台
   ========================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 2. CSS Variables ---------- */
:root {
  --color-primary: #0A1628;
  --color-primary-deep: #070F1E;
  --color-gold: #F5C518;
  --color-purple: #6A5ACD;
  --color-cyan: #00D4FF;
  --color-text: #F8FAFC;
  --color-muted: #94A3B8;
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --font-heading: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --header-h: 72px;
  --container-w: 1200px;
  --ease: cubic-bezier(0.25, 0.4, 0.2, 1);
  --radius: 0;
}

/* ---------- 3. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

/* 精密网格层 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 清透渐变光晕 */
body::after {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(106, 90, 205, 0.13) 0%, transparent 48%),
    radial-gradient(ellipse at 8% 92%, rgba(0, 212, 255, 0.07) 0%, transparent 42%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

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

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

img,
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

::selection {
  background: var(--color-gold);
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---------- 4. Utilities ---------- */
.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;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.85rem 1.6rem;
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-muted);
}

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

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumb__current {
  color: var(--color-text);
}

main[id="main-content"] {
  display: block;
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

main[id="main-content"].main--flush {
  padding-top: 0;
}

/* ---------- 5. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-cyan) 100%);
  pointer-events: none;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.45em 0.6em;
  border-radius: var(--radius);
  text-shadow: none;
}

.site-brand__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-left: 0.5rem;
  text-shadow: 0 0 24px rgba(245, 197, 24, 0.15);
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.site-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: site-pulse 2s var(--ease) infinite;
}

.site-header__statustext {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@keyframes site-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
}

/* ---------- 7. Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--color-gold);
}

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

.site-nav__index {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-gold);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
  line-height: 1;
}

.site-nav__link:hover .site-nav__index,
.site-nav__link[aria-current="page"] .site-nav__index {
  opacity: 1;
}

.site-nav__text {
  color: inherit;
}

/* ---------- 8. Nav Toggle ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

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

.nav-toggle[data-open] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[data-open] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[data-open] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.28);
  color: var(--color-primary);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 197, 24, 0.55);
  color: var(--color-gold);
}

.btn--ghost:hover {
  background: rgba(245, 197, 24, 0.1);
  box-shadow: none;
  color: var(--color-gold);
}

/* ---------- 10. Cards ---------- */
.card {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card__meta {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.65rem;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card__desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.7;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.card__link:hover {
  color: var(--color-gold);
}

/* ---------- 11. Grid & Split ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h));
}

.split__left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 3rem;
  background:
    linear-gradient(160deg, rgba(106, 90, 205, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.08) 0%, transparent 45%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.split__right {
  padding: 5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 40% 60%;
  }
  .split__left {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }
}

/* ---------- 12. Image Frames ---------- */
.img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(106, 90, 205, 0.16) 0%, rgba(0, 212, 255, 0.05) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px),
    var(--color-primary-deep);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-frame::after {
  content: "+";
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

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

.img-frame--portrait {
  aspect-ratio: 4 / 5;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 5rem;
  padding: 4.5rem 0 0;
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.92) 0%, #060C1A 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-purple) 50%, transparent 100%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

@media (min-width: 769px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }
  .site-footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1.4fr;
  }
  .site-footer__col:last-child {
    grid-column: auto;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35em 0.5em;
  border-radius: var(--radius);
}

.site-footer__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-left: 0.6rem;
}

.site-footer__desc {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 34em;
  margin-bottom: 1rem;
}

.site-footer__trust {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 0;
}

.site-footer__trust::before {
  content: "ICP";
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.58rem;
  line-height: 1;
  padding: 0.3em 0.4em;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.15em;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer__coltitle {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.site-footer__link {
  display: inline-block;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.15rem 0;
  position: relative;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer__link:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.site-footer__text {
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

/* ---------- 14. Scroll Top ---------- */
.scroll-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 80;
  width: 48px;
  height: 48px;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.3s var(--ease);
}

.scroll-top:hover {
  border-color: var(--color-gold);
}

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

.scroll-top__icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--color-gold);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    width: min(340px, 85vw);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 0.5rem) 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(7, 15, 30, 0.98), rgba(10, 22, 40, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    overflow-y: auto;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    box-shadow: -32px 0 64px rgba(0, 0, 0, 0.4);
  }

  .site-nav__link {
    padding: 0.95rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(245, 197, 24, 0.08);
  }

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

  .site-header__statustext {
    display: none;
  }
}

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

  .site-header__inner {
    padding: 0 1rem;
  }

  .site-header__status {
    padding-left: 0.85rem;
  }

  .site-brand__name {
    font-size: 1.2rem;
  }

  .site-brand__mark {
    font-size: 1rem;
    padding: 0.4em 0.5em;
  }

  .container {
    padding: 0 1rem;
  }

  .site-footer {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .site-footer__bottom {
    padding: 1rem;
    justify-content: center;
    text-align: center;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .site-header__dot {
    width: 6px;
    height: 6px;
  }

  .site-header__statustext {
    display: none;
  }

  .split__left,
  .split__right {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

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

  .site-nav {
    transition: none;
  }

  .nav-toggle__line {
    transition: none;
  }

  .scroll-top {
    transition: none;
  }

  .site-header__dot {
    animation: none;
  }
}
