/* 宇时光 YSG — Design tokens & base */
:root {
  --bg: #0e1114;
  --bg-elevated: #161b20;
  --bg-soft: #1c2329;
  --text: #e8ecef;
  --text-muted: #9aa5ad;
  --accent: #e85d04;
  --accent-hover: #f48c06;
  --line: rgba(232, 236, 239, 0.12);
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(14, 17, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  z-index: 101;
}

.logo .mark {
  color: var(--accent);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.lang-switch button {
  padding: 0.2rem 0.35rem;
  transition: color 0.2s;
}

.lang-switch button.is-active {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch .sep {
  opacity: 0.4;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0e1114;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      rgba(14, 17, 20, 0.55) 0%,
      rgba(14, 17, 20, 0.75) 45%,
      rgba(14, 17, 20, 0.95) 100%
    ),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(232, 93, 4, 0.18), transparent 55%),
    url("../assets/hero.svg") center / cover no-repeat,
    linear-gradient(135deg, #1a2228 0%, #0e1114 50%, #1c1814 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.015) 40px,
    rgba(255, 255, 255, 0.015) 41px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.brand-hero .accent {
  color: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 3rem;
}

/* Platforms / markets strip */
.strip {
  padding: 2.5rem 0;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.strip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.strip-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.strip-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.strip-item.platform {
  color: var(--text);
}

.strip-item.market {
  color: var(--text-muted);
  font-weight: 500;
}

/* Category preview grid — not cards: open layout */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.category-item {
  padding: 2rem 1.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.category-item:nth-child(4n) {
  border-right: none;
  padding-right: 0;
}

.category-item:hover {
  background: rgba(232, 93, 4, 0.04);
}

.category-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.category-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.category-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: block;
}

/* CTA band */
.cta-band {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(232, 93, 4, 0.12), transparent 50%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.cta-band .section-title {
  margin-bottom: 0.75rem;
}

.cta-band .section-desc {
  margin-bottom: 1.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 90% 20%, rgba(232, 93, 4, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-bottom: 1px solid var(--line);
}

.page-hero .brand-line {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.1rem;
}

/* About */
.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-list .idx {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Products detail */
.product-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.product-block:nth-child(even) .product-visual {
  order: 2;
}

.product-visual {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(232, 93, 4, 0.15), transparent 60%),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.03) 24px,
    rgba(255, 255, 255, 0.03) 25px
  );
}

.product-visual .visual-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.2;
  letter-spacing: -0.02em;
}

.product-copy h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.product-copy p {
  color: var(--text-muted);
}

.markets-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 1rem;
}

.mp-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mp-tags span {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-detail dd {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
}

.contact-detail a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-map {
  aspect-ratio: 1 / 1;
  max-height: 380px;
  background:
    radial-gradient(circle at 40% 45%, rgba(232, 93, 4, 0.2), transparent 45%),
    linear-gradient(160deg, var(--bg-soft), var(--bg-elevated));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.contact-map::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 42%;
  left: 38%;
  box-shadow: 0 0 0 12px rgba(232, 93, 4, 0.2);
}

.contact-map .map-city {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.contact-map .map-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  position: relative;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom .beian {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom .beian:hover {
  color: var(--text);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-item:nth-child(4n) {
    border-right: 1px solid var(--line);
    padding-right: 1.5rem;
  }

  .category-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .product-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-block:nth-child(even) .product-visual {
    order: 0;
  }

  .markets-platforms,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 17, 20, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .lang-switch {
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-item,
  .category-item:nth-child(4n),
  .category-item:nth-child(2n) {
    border-right: none;
    padding: 1.75rem 0;
  }

  .hero {
    align-items: center;
    padding-bottom: 3rem;
  }

  .feature-list li {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }
}
