/* ══════════════════════════════════════════════
   云弈科技 · Yunyi Technology
   style.css — Dark (default) + Light theme
   Auto-switches by time: 07:00–19:00 = light
   ══════════════════════════════════════════════ */

/* ── DARK THEME (default) ── */
:root {
  --neon-blue:   #00d4ff;
  --neon-purple: #b44fff;
  --neon-orange: #ff6b1a;
  --neon-green:  #00ff88;

  --bg:          #04060f;
  --bg-card:     #080d1a;
  --bg-card2:    #0b1228;
  --bg-nav:      rgba(4,6,15,0.72);
  --bg-stats:    rgba(8,13,26,0.8);
  --bg-ticker:   rgba(0,212,255,0.04);
  --bg-about:    linear-gradient(180deg,#04060f 0%,#080d1a 50%,#04060f 100%);

  --border-subtle:  rgba(0,212,255,0.12);
  --border-medium:  rgba(0,212,255,0.2);
  --border-strong:  rgba(0,212,255,0.4);

  --text-primary: #e8f4ff;
  --text-muted:   #6b8aac;
  --text-on-btn:  #ffffff;

  --card-hover-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.1), inset 0 1px 0 rgba(0,212,255,0.1);
  --service-name-color: #ffffff;

  --canvas-opacity: 1;
  --noise-opacity: 0.4;

  --scrollbar-track: #04060f;
  --theme-transition: background .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

/* ── LIGHT THEME ── */
html.light {
  --bg:          transparent;
  --bg-card:     rgba(255,255,255,0.72);
  --bg-card2:    rgba(230,240,255,0.65);
  --bg-nav:      rgba(220,235,255,0.75);
  --bg-stats:    rgba(255,255,255,0.75);
  --bg-ticker:   rgba(200,220,255,0.3);
  --bg-about:    transparent;

  --border-subtle: rgba(0,100,200,0.14);
  --border-medium: rgba(0,100,200,0.24);
  --border-strong: rgba(0,100,200,0.48);

  /* 亮色主题专用文字色 */
  --text-primary:       #0d1a2e;
  --text-muted:         #4a6280;
  --text-on-btn:        #ffffff;
  --section-title-color: #0d1a2e;

  --card-hover-shadow: 0 20px 60px rgba(0,80,200,0.1), 0 0 30px rgba(0,130,220,0.12), inset 0 1px 0 rgba(0,130,220,0.15);
  --service-name-color: #0d1a2e;

  --canvas-opacity: 1;
  --noise-opacity:  0.08;

  --scrollbar-track: #f4f7ff;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

/* CANVAS */
#cityCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--canvas-opacity);
  transition: opacity .6s ease;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: var(--noise-opacity);
  transition: opacity .6s ease;
}

.wrapper { position: relative; z-index: 2; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
}

/* ══════════════════════ THEME TOGGLE BUTTON ══════════════════════ */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  transition: all .3s;
  backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
  border-color: var(--border-strong);
}

/* time badge shown inside toggle tooltip */
.theme-toggle[title]::after {
  display: none;
}

/* ══════════════════════ NAV ══════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon { width: 40px; height: 40px; position: relative; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo-en {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

.nav-links a {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--neon-blue);
  transition: width .3s;
  box-shadow: 0 0 6px var(--neon-blue);
}

.nav-links a:hover { color: var(--neon-blue); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--neon-blue);
  border-radius: 4px;
  background: transparent;
  color: var(--neon-blue) !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  transition: all .3s !important;
  box-shadow: 0 0 12px rgba(0,212,255,0.2), inset 0 0 12px rgba(0,212,255,0.05);
}

.nav-cta:hover {
  background: var(--neon-blue) !important;
  color: var(--bg) !important;
  box-shadow: 0 0 24px rgba(0,212,255,0.6) !important;
}

.nav-cta::after { display: none !important; }

/* ══════════════════════ HERO ══════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon-blue);
  background: rgba(0,212,255,0.06);
  margin-bottom: 32px;
  animation: fadeInDown .8s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 4px;
  margin-bottom: 8px;
  animation: fadeInUp .9s .1s ease both;
}

.title-line1 {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.4));
}

html.light .title-line1 {
  background: linear-gradient(135deg, #0a1628 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(180,79,255,0.4));
}

.hero-en {
  font-family: 'Orbitron', monospace;
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeInUp .9s .2s ease both;
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-primary);
  opacity: 0.75;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 52px;
  font-weight: 300;
  animation: fadeInUp .9s .3s ease both;
}

.hero-tagline span {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp .9s .4s ease both;
}

.btn-primary {
  padding: 14px 36px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 0 30px rgba(0,212,255,0.4), 0 0 60px rgba(180,79,255,0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,255,0.6), 0 0 100px rgba(180,79,255,0.3); }
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  padding: 14px 36px;
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 6px;
  background: rgba(0,212,255,0.06);
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.08);
  transform: translateY(-2px);
}

/* grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

html.light .hero-grid {
  background-image:
    linear-gradient(rgba(0,100,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,200,0.06) 1px, transparent 1px);
}

/* glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 { width: 500px; height: 500px; background: rgba(0,212,255,0.08); top: 10%; left: 5%; }
.orb-2 { width: 400px; height: 400px; background: rgba(180,79,255,0.1);  top: 20%; right: 5%; }
.orb-3 { width: 300px; height: 300px; background: rgba(255,107,26,0.07); bottom: 10%; left: 30%; }

html.light .orb-1 { background: rgba(0,150,255,0.1); }
html.light .orb-2 { background: rgba(120,40,200,0.08); }
html.light .orb-3 { background: rgba(255,107,26,0.06); }

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1s ease both;
}

.scroll-hint span {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--neon-blue), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ══════════════════════ STATS BAR ══════════════════════ */
.stats-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-stats);
  backdrop-filter: blur(20px);
  padding: 32px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  transition: var(--theme-transition);
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

/* ══════════════════════ SECTION COMMON ══════════════════════ */
section { padding: 100px 48px; transition: var(--theme-transition); }

.section-header { text-align: center; margin-bottom: 72px; }

.section-tag {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--neon-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color .5s ease;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  margin: 20px auto 0;
  box-shadow: 0 0 10px var(--neon-blue);
}

/* ══════════════════════ SERVICES ══════════════════════ */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .5s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(180,79,255,0.03));
  pointer-events: none;
}

html.light .service-card::before {
  background: linear-gradient(135deg, rgba(0,100,200,0.02), rgba(120,40,200,0.02));
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--card-hover-shadow);
}

.service-card .corner-glow {
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(0,212,255,0.12), transparent 70%);
  pointer-events: none;
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 26px;
  position: relative;
}

.icon-blue   { background: rgba(0,212,255,0.1);  box-shadow: 0 0 20px rgba(0,212,255,0.15); }
.icon-purple { background: rgba(180,79,255,0.1); box-shadow: 0 0 20px rgba(180,79,255,0.15); }
.icon-orange { background: rgba(255,107,26,0.1); box-shadow: 0 0 20px rgba(255,107,26,0.15); }
.icon-green  { background: rgba(0,255,136,0.1);  box-shadow: 0 0 20px rgba(0,255,136,0.15); }

html.light .icon-blue   { background: rgba(0,150,255,0.12); }
html.light .icon-purple { background: rgba(120,40,200,0.1); }
html.light .icon-orange { background: rgba(220,80,0,0.1); }
html.light .icon-green  { background: rgba(0,160,80,0.1); }

.service-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; color: var(--service-name-color); }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag { padding: 4px 10px; border-radius: 4px; font-size: 11px; letter-spacing: 1px; border: 1px solid; }

.tag-blue   { border-color: rgba(0,212,255,0.3);  color: var(--neon-blue);   background: rgba(0,212,255,0.06); }
.tag-purple { border-color: rgba(180,79,255,0.3); color: var(--neon-purple); background: rgba(180,79,255,0.06); }
.tag-orange { border-color: rgba(255,107,26,0.3); color: var(--neon-orange); background: rgba(255,107,26,0.06); }
.tag-green  { border-color: rgba(0,255,136,0.3);  color: var(--neon-green);  background: rgba(0,255,136,0.06); }

html.light .tag-blue   { color: #0070cc; border-color: rgba(0,120,200,0.35); background: rgba(0,120,200,0.07); }
html.light .tag-purple { color: #7a28cc; border-color: rgba(120,40,200,0.3); background: rgba(120,40,200,0.06); }
html.light .tag-orange { color: #c04800; border-color: rgba(200,70,0,0.3);   background: rgba(200,70,0,0.06); }
html.light .tag-green  { color: #008844; border-color: rgba(0,140,70,0.3);   background: rgba(0,140,70,0.06); }

/* ══════════════════════ ABOUT ══════════════════════ */
#about { background: var(--bg-about); }

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.hexagon-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.hex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.15);
  animation: spin 20s linear infinite;
}

.hex-ring:nth-child(2) {
  inset: 30px;
  border-color: rgba(180,79,255,0.15);
  animation: spin 30s linear infinite reverse;
}

.hex-ring:nth-child(3) {
  inset: 60px;
  border-color: rgba(0,255,136,0.12);
  animation: spin 15s linear infinite;
}

html.light .hex-ring      { border-color: rgba(0,120,200,0.2); }
html.light .hex-ring:nth-child(2) { border-color: rgba(120,40,200,0.18); }
html.light .hex-ring:nth-child(3) { border-color: rgba(0,140,80,0.15); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hex-center {
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, rgba(180,79,255,0.08) 50%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

html.light .hex-center {
  background: radial-gradient(circle, rgba(0,150,255,0.1) 0%, rgba(120,40,200,0.06) 50%, transparent 70%);
}

.hex-center-icon { font-size: 48px; margin-bottom: 12px; }

.hex-center-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.hex-orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -5px 0 0 -5px;
}

.orbit-blue   { background: var(--neon-blue);   box-shadow: 0 0 12px var(--neon-blue);   animation: orbitBlue   8s linear infinite; }
.orbit-purple { background: var(--neon-purple); box-shadow: 0 0 12px var(--neon-purple); animation: orbitPurple 12s linear infinite; }
.orbit-orange { background: var(--neon-orange); box-shadow: 0 0 12px var(--neon-orange); animation: orbitOrange  6s linear infinite; }

@keyframes orbitBlue   { from { transform: rotate(0deg)   translateX(150px) rotate(0deg);    } to { transform: rotate(360deg)  translateX(150px) rotate(-360deg);  } }
@keyframes orbitPurple { from { transform: rotate(120deg) translateX(120px) rotate(-120deg); } to { transform: rotate(480deg)  translateX(120px) rotate(-480deg);  } }
@keyframes orbitOrange { from { transform: rotate(240deg) translateX(90px)  rotate(-240deg); } to { transform: rotate(600deg)  translateX(90px)  rotate(-600deg);  } }

.about-content { padding: 0; }

.about-lead {
  font-size: 14px;
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.about-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 36px;
}

.about-info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.about-info-item { display: flex; gap: 10px; font-size: 14px; min-width: 0; overflow: hidden; }

.info-label { color: var(--text-muted); white-space: nowrap; min-width: 90px; flex-shrink: 0; }
.info-val   { color: var(--text-primary); font-weight: 600; word-break: break-all; }
.info-dot   { color: var(--neon-blue); font-size: 18px; line-height: 1.2; }

/* ══════════════════════ TECH STACK ══════════════════════ */
#tech { background: var(--bg); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all .3s;
  cursor: default;
}

.tech-chip:hover {
  border-color: var(--border-strong);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  transform: translateY(-4px);
}

html.light .tech-chip:hover {
  background: rgba(0,120,200,0.05);
  box-shadow: 0 0 20px rgba(0,120,200,0.12);
}

.tech-emoji { font-size: 28px; }
.tech-name  { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--text-primary); }
.tech-cat   { font-size: 10px; color: var(--text-muted); font-family: 'Orbitron', monospace; letter-spacing: 1px; }

/* ══════════════════════ CTA / CONTACT ══════════════════════ */
#contact { background: var(--bg); position: relative; overflow: hidden; }

.cta-wrap { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.cta-card {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 72px 48px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: var(--theme-transition);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(180,79,255,0.3), rgba(255,107,26,0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

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

.cta-glow-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
}

.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-primary);
}

.cta-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 48px; line-height: 1.8; }

.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 48px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: rgba(0,212,255,0.04);
  font-size: 14px;
  color: var(--text-primary);
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
}

html.light .contact-item { background: rgba(0,120,200,0.05); }

.contact-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
  transform: translateY(-2px);
  color: var(--neon-blue);
}

html.light .contact-item:hover { box-shadow: 0 0 20px rgba(0,120,200,0.2); }

.contact-icon { font-size: 18px; }

.cta-orb-1 {
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(0,212,255,0.06);
  border-radius: 50%;
  filter: blur(60px);
  top: -50px; left: -80px;
  pointer-events: none;
}

.cta-orb-2 {
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(180,79,255,0.08);
  border-radius: 50%;
  filter: blur(50px);
  bottom: -30px; right: -40px;
  pointer-events: none;
}

/* ══════════════════════ TICKER ══════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-ticker);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: var(--theme-transition);
}

.ticker-inner {
  display: flex;
  gap: 64px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-sep { color: var(--neon-blue); opacity: 0.5; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════ FOOTER ══════════════════════ */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  transition: var(--theme-transition);
}

.footer-company {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-code { font-family: 'Orbitron', monospace; font-size: 10px; color: var(--text-muted); letter-spacing: 2px; }

.footer-right { text-align: right; }

.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.8; }

.footer-icp { font-family: 'Orbitron', monospace; font-size: 10px; color: var(--text-muted); opacity: .6; letter-spacing: 1px; margin-top: 4px; }

/* ══════════════════════ ANIMATIONS ══════════════════════ */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; }                               to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); gap: 20px; padding: 24px 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 0 8px 16px; }
  .stat-item:nth-child(2n) { border-bottom: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .hexagon-wrap { width: 260px; height: 260px; }
  footer { grid-template-columns: 1fr; padding: 32px 20px; gap: 20px; }
  .footer-right { text-align: left; }
  .cta-card { padding: 48px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  section { padding: 56px 16px; }

  /* Hero */
  .hero-title { letter-spacing: 1px; }
  .hero-en    { letter-spacing: 3px; font-size: 10px; }
  .hero-badge { font-size: 9px; letter-spacing: 1px; padding: 5px 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .btn-primary, .btn-secondary { justify-content: center; }

  /* Stats */
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 20px 16px; gap: 16px; }
  .stat-num  { font-size: 24px; }

  /* Cards */
  .service-card { padding: 28px 20px; }
  .tech-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .tech-chip { padding: 18px 10px; }

  /* About */
  .hexagon-wrap { width: 220px; height: 220px; }
  .about-title  { font-size: 24px; }

  /* CTA */
  .cta-card { padding: 40px 16px; }
  .contact-methods { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-item { justify-content: center; }

  /* Footer */
  footer { padding: 28px 16px; }
  .footer-company { font-size: 14px; }

  /* Theme toggle */
  .theme-toggle { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 18px; }
}

@media (max-width: 380px) {
  section { padding: 48px 12px; }
  nav { padding: 0 12px; }
  .service-card { padding: 22px 14px; }
  .cta-card { padding: 32px 12px; }
  footer { padding: 24px 12px; }
  .tech-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
}

/* ── particles canvas (unused placeholder) ── */
.particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ══════════════════════ LIGHT THEME LAYOUT FIXES ══════════════════════ */

/* body 背景透明让 Canvas 透出来 */
html.light body { background: transparent; }

/* section 背景透明 */
html.light section,
html.light #services,
html.light #tech,
html.light #contact,
html.light #about { background: transparent; }

/* 卡片毛玻璃 */
html.light .service-card,
html.light .tech-chip,
html.light .cta-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.68);
  border-color: rgba(180,210,255,0.5);
}

html.light .service-card:hover,
html.light .tech-chip:hover {
  background: rgba(255,255,255,0.85);
}

/* stats bar 半透明 */
html.light .stats-bar {
  background: rgba(220,235,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* footer 半透明 */
html.light footer {
  background: rgba(220,235,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* contact-item */
html.light .contact-item {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ══════════════════════ LIGHT THEME FONT FIXES ══════════════════════ */

/* 开始合作按钮 — 亮色下加深字色和边框，确保可读 */
html.light .btn-secondary {
  color: #0055aa;
  border-color: rgba(0,80,180,0.55);
  background: rgba(0,80,180,0.08);
}
html.light .btn-secondary:hover {
  color: #003888;
  border-color: rgba(0,60,160,0.8);
  box-shadow: 0 0 20px rgba(0,80,180,0.2), inset 0 0 16px rgba(0,80,180,0.06);
}

/* 人工智能四字 — neon-green/neon-blue 在亮色背景上太淡，改为深蓝紫渐变 */
html.light .hero-tagline span {
  background: linear-gradient(90deg, #006bcc, #7c28e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero tagline — 暗色下 opacity:0.75 导致亮色偏淡 */
html.light .hero-tagline { opacity: 1; color: #2a3f60; }

/* About body text */
html.light .about-body { color: #3a5070; }

/* about-title 内嵌渐变 span 在亮色下保留渐变即可；其余文字色 */
html.light .about-title { color: #0d1a2e; }

/* stat numbers — neon 在亮色够亮，不用改；stat-label 用 text-muted 已 OK */

/* footer copy */
html.light .footer-copy { color: #4a6280; }
html.light .footer-icp  { color: #7a9aba; opacity: 1; }

/* CTA 区域副标题 */
html.light .cta-sub { color: #3a5070; }

/* divider glow 在亮色下减弱 */
html.light .divider-line { box-shadow: 0 0 6px rgba(0,150,220,0.3); }

/* hero-en (副标题英文) */
html.light .hero-en { color: #5a78a0; }

/* scroll hint */
html.light .scroll-hint span { color: #7a9aba; }

/* section-tag */
html.light .section-tag { color: #0077cc; }

/* about-lead */
html.light .about-lead { color: #0077cc; }

/* info-dot */
html.light .info-dot { color: #0077cc; }

/* ticker items 亮色下稍深 */
html.light .ticker-item { color: #5a78a0; }

/* service desc 亮色下加深 */
html.light .service-desc { color: #4a6280; }

/* tech-cat */
html.light .tech-cat { color: #7a9aba; }

/* hero badge 亮色 */
html.light .hero-badge { background: rgba(0,80,180,0.08); border-color: rgba(0,80,180,0.35); color: #0055aa; }

/* stat-label */
html.light .stat-label { color: #5a78a0; }

/* contact item text in light */
html.light .contact-item { color: #0d1a2e; }
html.light .contact-item:hover { color: #0077cc; }
