/* ========================================
   车南一网络科技工作室 — 深空科技设计系统
   ======================================== */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --bg-primary: #070d18;
  --bg-secondary: #0c1626;
  --bg-card: rgba(13, 25, 45, 0.5);
  --bg-card-hover: rgba(17, 32, 56, 0.7);

  --accent: #38bdf8;
  --accent-light: #8fd8ff;
  --accent-bright: #00d4ff;
  --accent-dark: #1d7fb8;
  --accent-gradient: linear-gradient(135deg, #8fd8ff 0%, #38bdf8 50%, #1d6fa5 100%);

  --text-primary: #edf3fb;
  --text-secondary: #94a7c0;
  --text-muted: #5d6e86;

  --border: rgba(56, 189, 248, 0.16);
  --border-hover: rgba(56, 189, 248, 0.45);

  /* Typography */
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: var(--accent-light);
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Loading Screen ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  letter-spacing: 0.15em;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 1px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  animation: loadBar 1.5s var(--ease-out) forwards;
}
.loader-text {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
}
@keyframes loadBar {
  to { width: 100%; }
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nav-logo-cn {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
}
.nav-logo-en {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s var(--ease);
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--accent-light);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s var(--ease);
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.hero-tag {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 32px;
}
.hero-title-line {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) forwards;
}
.hero-title-line:nth-child(1) {
  animation-delay: 0.5s;
}
.hero-title-line:nth-child(2) {
  animation-delay: 0.7s;
}
.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.9s forwards;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.2s forwards;
}
.scroll-text {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line span {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--accent);
  animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { top: -60px; }
  100% { top: 60px; }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Common ===== */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-divider span {
  width: 60px;
  height: 1px;
  background: var(--accent-gradient);
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ===== About ===== */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.9;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.4s var(--ease);
}
.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== Works ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.work-card {
  position: relative;
}
.work-card-inner {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.work-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.work-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card:hover .work-card-inner {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px -20px rgba(56, 189, 248, 0.15);
}
.work-card:hover .work-card-inner::before {
  transform: scaleX(1);
}
.work-card:hover .work-card-inner::after {
  opacity: 1;
}
.work-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.work-icon svg {
  width: 100%;
  height: 100%;
}
.work-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.work-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.work-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.work-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.work-feature {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.05);
  border-radius: 2px;
}
.work-qr {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.work-qr .qr-image,
.work-qr .qr-placeholder {
  margin: 0 auto;
  flex-shrink: 0;
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-dark);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  background: rgba(10, 10, 15, 0.4);
}
.qr-placeholder svg {
  width: 32px;
  height: 32px;
}
.qr-placeholder span {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.qr-placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}
/* When QR image is added, replace .qr-placeholder with img */
.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* ===== QR Image (with click-to-zoom) ===== */
.qr-image {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  transition: all 0.4s var(--ease);
}
.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
  transition: transform 0.4s var(--ease);
}
.qr-image:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px -12px rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
}
.qr-image:hover img {
  transform: scale(1.05);
}
.qr-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: var(--accent-light);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.qr-image:hover .qr-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact QR Image ===== */
.contact-qr-image {
  position: relative;
  width: 140px;
  height: 140px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  margin-bottom: 16px;
  transition: all 0.4s var(--ease);
}
.contact-qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
  transition: transform 0.4s var(--ease);
}
.contact-qr-image:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px -12px rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
}
.contact-qr-image:hover img {
  transform: scale(1.05);
}
.contact-qr-image .qr-zoom-hint {
  font-size: 11px;
  padding: 8px 0;
}
.contact-qr-placeholder {
  cursor: default;
}
.contact-qr-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* ===== Domain ===== */
.domain {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.domain-content {
  max-width: 600px;
  margin: 0 auto;
}
.domain-card {
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}
.domain-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(56, 189, 248, 0.15);
}
.domain-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin: 0 auto 32px;
}
.domain-icon svg {
  width: 100%;
  height: 100%;
}
.domain-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.domain-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}
.domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.domain-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.domain-btn span,
.domain-btn svg {
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease);
}
.domain-btn svg {
  width: 18px;
  height: 18px;
}
.domain-btn:hover::before {
  transform: scaleX(1);
}
.domain-btn:hover span,
.domain-btn:hover svg {
  color: var(--bg-primary);
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}
.contact-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.contact-qr-group {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-qr-item {
  text-align: center;
}
.contact-qr-item.contact-qr-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-qr-item.contact-qr-main .contact-qr-image {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
}
.contact-qr-item.contact-qr-main .qr-zoom-hint {
  font-size: 13px;
}
.contact-qr-box {
  width: 140px;
  height: 140px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-bottom: 16px;
  transition: all 0.4s var(--ease);
  background: rgba(10, 10, 15, 0.4);
  cursor: pointer;
}
.contact-qr-box svg {
  width: 40px;
  height: 40px;
}
.contact-qr-box:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(56, 189, 248, 0.2);
}
.contact-qr-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.contact-qr-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 28px;
}
.contact-wechat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.04);
  transition: all 0.3s var(--ease);
}
.contact-wechat:hover {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.08);
}
.contact-wechat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}
.contact-wechat-id {
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
  user-select: all;
  -webkit-user-select: all;
}
.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.contact-copy-btn svg {
  width: 14px;
  height: 14px;
}
.contact-copy-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.contact-copy-btn.copied {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.contact-copy-tip {
  font-size: 12px;
  color: var(--accent);
  margin-top: 12px;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s var(--ease), height 0.3s var(--ease);
  letter-spacing: 0.05em;
}
.contact-copy-tip.show {
  opacity: 1;
  height: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-brand-cn {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
}
.footer-brand-en {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}
.footer-icp {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-icp:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-beian-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--text-muted);
  opacity: 0.3;
}
.beian-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-4px);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
  max-width: 90vw;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.lightbox-close svg {
  width: 22px;
  height: 22px;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  transform: rotate(90deg);
}
.lightbox-image-wrap {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(56, 189, 248, 0.2),
              0 0 60px -10px rgba(56, 189, 248, 0.25);
  max-width: 80vmin;
  max-height: 80vmin;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  display: block;
  max-width: min(70vmin, 480px);
  max-height: 70vmin;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 2px;
  pointer-events: none;
}
.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lightbox-hint {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  opacity: 0.7;
}
body.lightbox-open {
  overflow: hidden;
}

/* Lightbox responsive */
@media (max-width: 768px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .lightbox-close svg {
    width: 18px;
    height: 18px;
  }
  .lightbox-image-wrap {
    padding: 16px;
  }
  .lightbox-image {
    max-width: min(85vw, 360px);
    max-height: 70vh;
  }
  .lightbox-caption {
    font-size: 15px;
  }
  .lightbox-hint {
    font-size: 11px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: right 0.4s var(--ease);
    z-index: 99;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.3s; }
  .nav-link {
    font-size: 20px;
    font-family: var(--font-serif);
  }
  .nav-toggle {
    display: flex;
    z-index: 100;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-stats {
    gap: 16px;
  }
  .stat-item {
    padding: 24px 12px;
  }
  .stat-number {
    font-size: 36px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .domain-card {
    padding: 48px 24px;
  }

  .contact-qr-group {
    gap: 24px;
  }
  .contact-qr-box {
    width: 120px;
    height: 120px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  .contact-qr-group {
    gap: 16px;
  }
  .contact-qr-box {
    width: 100px;
    height: 100px;
  }
  .contact-qr-box svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ====== 导航产品 H5 入口 ====== */
.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--border-hover);
  align-self: center;
}

.nav-link-product {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link-product:hover {
  color: var(--accent-light);
}

.nav-h5-tag {
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  color: var(--accent-light);
  transform: translateY(-1px);
}

.nav-link-soon {
  opacity: 0.5;
}

@media (min-width: 769px) and (max-width: 1280px) {
  .nav-links {
    gap: 20px;
  }
}

/* ====== 作品卡 H5 入口 ====== */
.work-h5-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  color: var(--accent-light);
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s var(--ease);
}

.work-h5-link svg {
  width: 16px;
  height: 16px;
}

.work-h5-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
}

/* ====== H5 占位链接 toast 提示 ====== */
.nav-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 28, 0.95);
  border: 1px solid var(--border-hover);
  color: var(--accent-light);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 4px;
  z-index: 9999;
  animation: toastIn 0.25s ease;
  pointer-events: none;
}

.nav-toast.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
