/* Modern Design System Tokens for Guangzhou Cece Cloud Computing */
:root {
  /* 本地国内原生字体栈：无需下载外部 Google Fonts 字体，零延迟、极速本地加载 */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Color System */
  --color-primary: #0F62FE;
  --color-cyan: #00D2FF;
  --color-emerald: #10B981;
  --color-violet: #6F00FF;
  --color-amber: #F59E0B;
  
  /* Dark Mode Surfaces */
  --bg-dark: #0B0F19;
  --bg-surface-dark: rgba(18, 26, 43, 0.7);
  --bg-surface-hover: rgba(30, 41, 59, 0.85);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 210, 255, 0.35);
  --text-main-dark: #F8FAFC;
  --text-sub-dark: #94A3B8;

  /* Light Mode Surfaces */
  --bg-light: #F8FAFC;
  --bg-surface-light: rgba(255, 255, 255, 0.9);
  --border-light: rgba(0, 0, 0, 0.08);
  --text-main-light: #0F172A;
  --text-sub-light: #475569;

  /* Active Theme Defaults */
  --bg-body: var(--bg-dark);
  --bg-card: var(--bg-surface-dark);
  --border-card: var(--border-dark);
  --text-main: var(--text-main-dark);
  --text-sub: var(--text-sub-dark);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 35px rgba(0, 210, 255, 0.22);
}

/* Light Mode Override Class */
body.light-mode {
  --bg-body: var(--bg-light);
  --bg-card: var(--bg-surface-light);
  --border-card: var(--border-light);
  --text-main: var(--text-main-light);
  --text-sub: var(--text-sub-light);
}

/* Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Ambient Orbs */
.bg-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.25;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: var(--color-primary);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: var(--color-cyan);
  top: 35%;
  right: -150px;
  animation-delay: -6s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: var(--color-emerald);
  bottom: -100px;
  left: 30%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--color-emerald), #059669);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-img {
  height: 84px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.nav-logo-img:hover {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--color-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-slug-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-cyan);
}

.btn-icon {
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: var(--text-main);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--color-cyan);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, #00D2FF 0%, #0F62FE 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

/* Slugs Bar */
.slugs-quick-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.slug-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.slug-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  font-size: 13px;
}

.slug-chip:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--color-cyan);
}

.slug-chip.active {
  border-color: var(--color-cyan);
  background: rgba(0, 210, 255, 0.1);
}

.chip-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-primary);
  color: white;
  text-transform: uppercase;
}

/* Hero Terminal Box */
.terminal-body {
  background: #070A12;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 8px;
  color: #94A3B8;
}

.t-cmd { color: #00D2FF; font-weight: bold; }
.t-target { color: #A855F7; }
.t-info { color: #38BDF8; }
.t-success { color: #10B981; font-weight: bold; }
.t-highlight { color: #F59E0B; }
.t-prompt { color: #F8FAFC; font-weight: bold; }

.terminal-box {
  background: rgba(15, 98, 254, 0.12);
  border-left: 3px solid #00D2FF;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 12px;
}

.t-agent-name {
  color: var(--color-emerald);
  font-weight: bold;
}

/* Section Styling */
.section {
  padding: 60px 0;
}

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

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-sub);
  font-size: 15px;
}

/* AI Agent Matrix Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.agent-card {
  padding: 28px;
  cursor: pointer;
}

.agent-card.active-agent-card {
  border-color: var(--color-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.agent-icon-box {
  font-size: 32px;
}

.agent-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 98, 254, 0.2);
  color: var(--color-cyan);
}

.agent-badge.soul { background: rgba(244, 63, 94, 0.2); color: #FB7185; }
.agent-badge.ops { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.agent-badge.bench { background: rgba(168, 85, 247, 0.2); color: #C084FC; }

.agent-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.agent-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.agent-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  color: var(--text-sub);
}

/* Interactive Live Agent Playground Layout */
.playground-chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 520px;
  overflow: hidden;
}

.chat-agent-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sidebar-agent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sidebar-agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-agent-item:hover, .sidebar-agent-item.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--color-cyan);
}

.sa-icon { font-size: 20px; }
.sa-name { font-size: 13px; font-weight: 700; }
.sa-status { font-size: 11px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-emerald); }

.sidebar-preset-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.preset-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-preset-prompt {
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preset-prompt:hover {
  background: rgba(15, 98, 254, 0.2);
  border-color: var(--color-primary);
}

/* Chat Window */
.chat-main-window {
  display: flex;
  flex-direction: column;
  background: #0B0F19;
}

.chat-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.2);
}

.chat-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-agent-avatar { font-size: 28px; }
.chat-agent-h4 { font-size: 16px; font-weight: 700; }
.chat-agent-sub { font-size: 12px; color: var(--text-sub); }

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

.chat-latency-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.chat-messages-container {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  max-width: 80%;
}

.chat-msg.system .msg-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-sub);
  font-size: 13px;
  border-radius: 8px;
  padding: 12px 16px;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.user .msg-content {
  background: linear-gradient(135deg, var(--color-primary), #0284C7);
  color: white;
  border-radius: 16px 16px 2px 16px;
  padding: 12px 18px;
  font-size: 14px;
}

.chat-msg.agent {
  align-self: flex-start;
}

.chat-msg.agent .msg-content {
  background: rgba(18, 26, 43, 0.9);
  border: 1px solid var(--color-cyan);
  color: #F8FAFC;
  border-radius: 16px 16px 16px 2px;
  padding: 14px 20px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.1);
}

.chat-input-bar {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.3);
}

.chat-input-bar input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--color-cyan);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-sub);
}

/* VI Gallery & Swatches */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-card { overflow: hidden; }

.gallery-img-wrapper {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-info { padding: 18px; }
.gallery-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.gallery-desc { font-size: 12px; color: var(--text-sub); }

.color-section-box { margin-top: 20px; }
.subsection-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.swatch-card { padding: 12px; cursor: pointer; }
.swatch-color { height: 80px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.swatch-name { font-size: 14px; font-weight: 700; }
.swatch-code { font-family: var(--font-mono); font-size: 12px; color: var(--color-cyan); margin-bottom: 2px; }
.swatch-role { font-size: 11px; color: var(--text-sub); }

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pricing-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--color-cyan);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.25);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.4);
}

.plan-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 38px; font-weight: 800; color: var(--color-cyan); margin-bottom: 8px; }
.plan-price span { font-size: 14px; color: var(--text-sub); font-weight: 400; }
.plan-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 12px;
}

/* Footer with ICP */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 0;
  margin-top: 60px;
  background: rgba(7, 10, 18, 0.85);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-title { font-weight: 700; font-size: 15px; }
.footer-sub { font-size: 12px; color: var(--text-sub); }

.footer-center {
  font-size: 13px;
}

.icp-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-sub);
}

.icp-link {
  color: var(--color-cyan);
  text-decoration: none;
  font-weight: 600;
}

.icp-link:hover {
  text-decoration: underline;
}

.footer-right {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-link { color: var(--color-cyan); text-decoration: none; }
.dot-divider { margin: 0 10px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .playground-chat-layout { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}
