/* 
  ExcelAI万能助手 - Official Website Stylesheet
  Design System: Premium Bright Mode with Excel Green Accent
  Layout: "Infinite Sheet Grid" Slanted & Overlapping Layout
  Supported Pages: index, product, features, gateway, admin, enterprise, pricing, download
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --excel-green-dark: #0E6836;
  --excel-green: #107C41;
  --excel-green-light: #189852;
  --excel-green-mint: #22C55E;
  --excel-green-neon: #10B981;
  --excel-green-soft: #E2F0D9;
  --excel-green-glow: rgba(16, 124, 65, 0.15);
  
  --bg-primary: #FAFAF9;
  --bg-secondary: #FFFFFF;
  --bg-grid-line: rgba(16, 124, 65, 0.05);
  
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(16, 124, 65, 0.12);
  --glass-glow: 0 8px 32px 0 rgba(16, 124, 65, 0.06);
  
  --shadow-premium: 0 20px 40px -15px rgba(16, 124, 65, 0.08), 0 10px 20px -10px rgba(16, 124, 65, 0.04);
  --shadow-hover: 0 35px 70px -15px rgba(16, 124, 65, 0.18), 0 15px 30px -10px rgba(16, 124, 65, 0.08);
  --shadow-neon: 0 0 20px rgba(16, 124, 65, 0.2);
  
  /* Fonts */
  --font-en: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-zh: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

:root.dark-theme {
  --bg-primary: #0A0E17;
  --bg-secondary: #111827;
  --bg-grid-line: rgba(16, 124, 65, 0.08);
  
  --text-dark: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(16, 124, 65, 0.25);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 4px 15px rgba(16, 124, 65, 0.08);
  
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 124, 65, 0.05);
  --shadow-hover: 0 35px 70px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 124, 65, 0.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-en);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:lang(zh) {
  font-family: var(--font-zh);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- GLOBAL BACKGROUND --- */
.excel-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -10;
  pointer-events: none;
}

.excel-grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 40%, var(--bg-primary) 90%);
}

/* --- FLOATING EXCEL FORMULA PARTICLES --- */
.formula-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.formula-particle {
  position: absolute;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(16, 124, 65, 0.08);
  user-select: none;
  white-space: nowrap;
  animation: float-formula 25s infinite linear;
}

@keyframes float-formula {
  0% {
    transform: translateY(105vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* --- GLASSMORPHISM PANEL --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-glow), var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(16, 124, 65, 0.25);
  box-shadow: var(--glass-glow), var(--shadow-hover);
}

/* --- SLANTED CONTAINER SEPARATORS --- */
.slanted-container {
  position: relative;
  width: 100%;
  padding: 8rem 0;
  margin: 4rem 0;
}

.slanted-bg-left {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background: var(--bg-secondary);
  transform: skewY(-3deg);
  z-index: -1;
  border-top: 1px solid var(--bg-grid-line);
  border-bottom: 1px solid var(--bg-grid-line);
}

.slanted-bg-right {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(226, 240, 217, 0.3) 100%);
  transform: skewY(3deg);
  z-index: -1;
  border-top: 1px solid var(--bg-grid-line);
  border-bottom: 1px solid var(--bg-grid-line);
}

/* --- CONTAINER / LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.asymmetric-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.asymmetric-layout.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 968px) {
  .asymmetric-layout, .asymmetric-layout.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --- HEADER / STICKY NAVBAR --- */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  top: 0.8rem;
  width: 95%;
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--excel-green);
  letter-spacing: -0.5px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--excel-green);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--excel-green);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a.active {
  color: var(--excel-green);
  font-weight: 700;
}

.nav-links a.active::after {
  width: 80%;
}

.nav-links a:hover {
  color: var(--excel-green);
}

.nav-links a:hover::after {
  width: 80%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- LANGUAGE TOGGLER (Direct Redirection) --- */
.lang-switcher-redirect {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 124, 65, 0.05);
  border: 1px solid rgba(16, 124, 65, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--excel-green);
  transition: var(--transition-fast);
}

.lang-switcher-redirect:hover {
  background: var(--excel-green-soft);
  transform: translateY(-1px);
}

/* --- GENERAL BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--excel-green-light) 0%, var(--excel-green) 100%);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(16, 124, 65, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-30deg);
  transition: 0.75s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 124, 65, 0.3);
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--excel-green);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(16, 124, 65, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--excel-green-soft);
  transform: translateY(-3px);
}

/* --- HERO OR PAGE HEADER --- */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  position: relative;
}

.page-hero-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--excel-green);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.page-hero-title h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.page-hero-title h1 span {
  background: linear-gradient(135deg, var(--excel-green) 0%, var(--excel-green-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-title p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 650px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* --- HERO SHIELD PREVIEW (INDEX) --- */
#top-hero {
  padding-top: 12rem;
  padding-bottom: 6rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.excel-shell-container {
  position: relative;
  width: 90%;
  height: 100%;
}

.excel-shell {
  width: 100%;
  height: 380px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.excel-topbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-grid-line);
  padding: 0.6rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.excel-topbar .traffic {
  display: flex;
  gap: 0.35rem;
}

.excel-topbar .traffic::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
}

.excel-topbar .status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--excel-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--excel-green-mint);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.excel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 220px;
  height: calc(100% - 32px);
}

.sheet-preview {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr);
  grid-template-rows: 28px repeat(4, 1fr);
  font-family: monospace;
  font-size: 0.72rem;
  background: #fff;
}

.sheet-preview > div {
  border: 1px solid var(--bg-grid-line);
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
}

.sheet-header {
  background: var(--bg-primary);
  color: var(--text-muted);
  font-weight: 600;
  justify-content: center;
}

.cell-ok {
  color: var(--excel-green-light);
  font-weight: 700;
}

.cell-warn {
  color: #f59e0b;
}

.cell-target {
  background: rgba(16, 124, 65, 0.04);
  transition: var(--transition-smooth);
}

.task-pane {
  background: var(--bg-primary);
  border-left: 1px solid var(--bg-grid-line);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.75rem;
}

.pane-status {
  font-weight: 800;
  color: var(--excel-green);
  border-bottom: 1px solid var(--bg-grid-line);
  padding-bottom: 0.4rem;
}

.pane-user-prompt {
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.6rem;
}

.prompt-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-light);
  display: block;
}

.pane-controls {
  display: flex;
  gap: 0.4rem;
}

.pane-controls button {
  flex: 1;
  padding: 0.3rem;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--glass-border);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pane-controls button.active {
  background: var(--excel-green-soft);
  color: var(--excel-green);
  border-color: rgba(16, 124, 65, 0.2);
}

.run-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.run-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
}

.run-list li.done {
  color: var(--excel-green);
  font-weight: 700;
}

.run-list li.active {
  color: var(--text-dark);
  font-weight: 700;
}

/* Floating Code Editor Overlay */
.floating-code-editor {
  position: absolute;
  top: -20px;
  left: -40px;
  width: 260px;
  background: #0f172a;
  color: #38bdf8;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  z-index: 10;
  font-family: monospace;
  font-size: 0.68rem;
  transform: rotate(-3deg);
}

.editor-header {
  background: #1e293b;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.editor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.editor-title {
  color: #94a3b8;
  margin-left: 0.4rem;
  flex: 1;
}

.editor-lang {
  color: #475569;
}

.editor-body {
  padding: 0.8rem;
  min-height: 90px;
  max-height: 120px;
  overflow: hidden;
}

.editor-status {
  background: #1e293b;
  padding: 0.3rem 0.8rem;
  color: #64748b;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Floating Audit Terminal Overlay */
.floating-audit-terminal {
  position: absolute;
  bottom: -15px;
  right: -30px;
  width: 240px;
  background: #090d16;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(16, 124, 65, 0.15);
  overflow: hidden;
  z-index: 10;
  font-family: monospace;
  font-size: 0.65rem;
  transform: rotate(2deg);
}

.terminal-header {
  background: #111827;
  padding: 0.4rem 0.8rem;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}

.terminal-body {
  padding: 0.8rem;
  height: 100px;
  overflow: hidden;
  color: #a7f3d0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.terminal-line {
  margin-top: 0.3rem;
  word-break: break-all;
}

/* --- WORKFLOW TRACK BAND (INDEX) --- */
.workflow-band-custom {
  padding: 6rem 0;
}

.section-header-centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header-centered h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.workflow-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .workflow-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .workflow-cards-container {
    grid-template-columns: 1fr;
  }
}

.workflow-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.workflow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 124, 65, 0.2);
  box-shadow: var(--shadow-hover);
}

.workflow-card .card-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(16, 124, 65, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.workflow-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.workflow-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- BENTO GRID STYLE (INDEX / FEATURES) --- */
.bento-grid-custom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 868px) {
  .bento-grid-custom {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 3rem;
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card-lg {
  grid-column: span 1;
}

.bento-card-md {
  grid-column: span 1;
}

.bento-card-sm {
  grid-column: span 2;
}

@media (max-width: 868px) {
  .bento-card-sm {
    grid-column: span 1;
  }
}

.bento-overflow-tag {
  position: absolute;
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--bg-grid-line);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: white;
  pointer-events: none;
}

.card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--excel-green);
  border: 1px solid rgba(16, 124, 65, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.mini-pane-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--bg-grid-line);
  border-radius: 12px;
  padding: 0.8rem;
  font-family: monospace;
  font-size: 0.7rem;
}

.mini-pane {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mini-toolbar {
  display: flex;
  gap: 0.2rem;
}

.mini-toolbar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-light);
}

.mini-chat {
  background: white;
  border-radius: 6px;
  padding: 0.4rem;
  border: 1px solid var(--glass-border);
}

.mini-chat.user {
  background: var(--excel-green-soft);
  color: var(--excel-green);
  align-self: flex-end;
}

.gateway-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.2rem;
}

.gateway-node {
  background: white;
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gateway-node.center-node {
  border-color: var(--excel-green);
  color: var(--excel-green);
}

.gateway-line-pulse {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #ccc, var(--excel-green), #ccc);
  position: relative;
}

.table-mini-custom {
  font-family: monospace;
  font-size: 0.72rem;
  width: 100%;
}

.table-header-row, .table-body-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.5rem;
  border-bottom: 1px solid var(--bg-grid-line);
}

.table-header-row {
  background: var(--bg-primary);
  font-weight: 700;
}

.pill {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
}

.pill.ok {
  background: var(--excel-green-soft);
  color: var(--excel-green);
}

.pill.warn {
  background: #fef3c7;
  color: #d97706;
}

/* --- PRODUCT PAGE STACK --- */
.product-workbench {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .product-workbench {
    grid-template-columns: 1fr;
  }
}

.product-nav {
  position: sticky;
  top: 8rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .product-nav {
    position: relative;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.product-nav a {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-nav a:hover {
  background: rgba(16, 124, 65, 0.05);
}

.product-nav a.active {
  background: var(--excel-green-soft);
  color: var(--excel-green);
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.screen-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 3.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 968px) {
  .screen-card {
    grid-template-columns: 1fr;
    padding: 2.2rem;
  }
}

.screen-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 968px) {
  .screen-card.reverse {
    grid-template-columns: 1fr;
  }
}

.screen-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-list li::before {
  content: '✓';
  color: var(--excel-green-mint);
  font-weight: 900;
}

/* --- FEATURES PAGE BENTO GRIDS --- */
.capability-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .capability-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .capability-board {
    grid-template-columns: 1fr;
  }
}

.capability-board article {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 2.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.capability-board article:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 124, 65, 0.2);
  box-shadow: var(--shadow-hover);
}

.capability-board article span {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(16, 124, 65, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.capability-board article h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.capability-board article p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- GATEWAY LAYOUT --- */
.gateway-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
}

@media (max-width: 768px) {
  .gateway-flow {
    flex-direction: column;
    gap: 2rem;
  }
}

.gateway-flow article {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-premium);
}

.gateway-flow i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-flow i::before {
  content: '➔';
  color: var(--excel-green);
  font-weight: 900;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .gateway-flow i {
    transform: rotate(90deg);
  }
}

/* --- ADMIN SURFACE LOGS --- */
.admin-surface {
  background: #0f172a;
  color: #94a3b8;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-hover);
  padding: 2rem;
  font-family: monospace;
  font-size: 0.8rem;
}

.surface-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.surface-tabs span {
  cursor: pointer;
}

.surface-tabs span.active {
  color: var(--excel-green-neon);
  font-weight: 700;
}

.surface-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr 1fr;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.surface-row.head {
  font-weight: 700;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.surface-row span.ok { color: var(--excel-green-neon); }
.surface-row span.warn { color: #f59e0b; }

.log-preview {
  margin-top: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.log-preview strong {
  display: block;
  color: white;
  margin-bottom: 0.4rem;
}

.log-preview p {
  color: #38bdf8;
  font-size: 0.72rem;
}

/* --- ENTERPRISE SYSTEMS MAP --- */
.integration-map {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 3rem;
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.integration-map span {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.integration-map strong {
  background: linear-gradient(135deg, var(--excel-green-light) 0%, var(--excel-green) 100%);
  color: white;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(16, 124, 65, 0.2);
}

.delivery-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .delivery-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .delivery-timeline {
    grid-template-columns: 1fr;
  }
}

.delivery-timeline article {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
}

.delivery-timeline article span {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--excel-green);
  margin-bottom: 0.6rem;
}

.delivery-timeline article strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.delivery-timeline article p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- PRICING GRID --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.price-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border: 2px solid var(--excel-green-light);
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 968px) {
  .price-card.featured {
    transform: none;
  }
}

.price-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.price-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price-card strong {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  display: block;
}

.price-card strong small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.price-card ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.price-card ul li::before {
  content: '✓';
  color: var(--excel-green-mint);
  font-weight: 900;
}

/* --- DOWNLOAD / INSTALLATION GUIDE --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-grid-line);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
}

.info-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  border-bottom: 1.5px solid var(--excel-green-soft);
  padding-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-grid-line);
  padding: 5rem 0 2rem 0;
  position: relative;
  z-index: 5;
  margin-top: auto; /* Push to bottom on short content pages */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 868px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-brand strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--excel-green);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: center;
}

footer nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer nav a:hover {
  color: var(--excel-green);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.03);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.copyright p {
  margin: 0;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.icp-link {
  color: var(--text-light);
}

.icp-link:hover {
  color: var(--excel-green);
}

.footer-company {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-company img {
  display: block;
  width: 270px;
  height: auto;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-phone img {
  display: block;
  width: 230px;
  height: auto;
}

@media (max-width: 640px) {
  .copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- MOBILE TILT/NAV ADJUSTMENTS --- */
.card-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-tilt > * {
  transform: translateZ(15px);
}

/* --- HERO VISUAL TAB SYSTEM --- */
.hero-switcher-bar {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(16, 124, 65, 0.12);
  border-radius: 100px;
  padding: 0.3rem;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: max-content;
  box-shadow: var(--glass-glow), 0 10px 25px -5px rgba(16, 124, 65, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-switcher-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  border: none;
  background: none;
}

.hero-switcher-tab:hover {
  color: var(--excel-green);
  background: rgba(16, 124, 65, 0.05);
}

.hero-switcher-tab.active {
  background: var(--excel-green);
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 124, 65, 0.25);
}

.hero-tab-content {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-tab-content.active {
  display: block;
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab 2: Interactive Sandbox Command Capsule */
.interactive-pills-container {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  z-index: 20;
  position: relative;
}

.interactive-pills-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.interactive-pills-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: rgba(16, 124, 65, 0.03);
  border: 1px solid var(--bg-grid-line);
  border-radius: 100px;
  width: max-content;
  margin: 0 auto;
}

.interactive-pill-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--glass-border);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.interactive-pill-btn:hover {
  border-color: var(--excel-green-light);
  color: var(--excel-green);
}

.interactive-pill-btn.active {
  background: var(--excel-green-soft);
  border-color: rgba(16, 124, 65, 0.3);
  color: var(--excel-green);
  box-shadow: 0 2px 8px rgba(16,124,65,0.06);
}

/* Tab 3: Holographic Words & Wave Particle Canvas */
.holographic-card-container {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #f4faf6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.canvas-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* Let canvas receive mouse movements */
}

.holographic-content {
  position: relative;
  z-index: 5;
  pointer-events: none; /* Make content transparent to mouse clicks so canvas receives moves */
}

.holographic-eyebrow {
  font-family: var(--font-en);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--excel-green);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.holographic-title {
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--excel-green-dark) 0%, var(--excel-green-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.holographic-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  margin-left: auto;
  margin-right: auto;
}

.glow-badge-bar {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.glow-badge-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(16, 124, 65, 0.06);
  border: 1px dashed rgba(16, 124, 65, 0.2);
  color: var(--excel-green-dark);
}

/* --- COMMERCIAL CONVERSION ENGINE STYLES --- */
/* Hero pulse discount tag */
.hero-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ef4444;
  margin-top: 1rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
  animation: badge-pulse 2s infinite ease-in-out;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.hero-promo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.hero-promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: dot-pulse 1.2s infinite ease-in-out;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating checkout lock bar inside Tab 2 Console */
.terminal-unlock-banner {
  margin-top: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 124, 65, 0.12) 0%, rgba(0, 210, 255, 0.12) 100%);
  border: 1px solid rgba(16, 124, 65, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.terminal-unlock-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.unlock-btn-mini {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--excel-green);
  color: white !important;
  border: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.3);
  text-decoration: none;
  font-size: 0.6rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.unlock-btn-mini:hover {
  background: var(--excel-green-light);
  transform: scale(1.05);
}

/* Home mini comparison grid */
.home-pricing-band {
  margin-top: 5rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.mini-pricing-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 390px;
  transition: all 0.3s ease;
}

.mini-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mini-pricing-card.featured {
  background: linear-gradient(180deg, rgba(16, 124, 65, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(16, 124, 65, 0.3);
  box-shadow: 0 10px 30px rgba(16, 124, 65, 0.08);
}

/* --- THEME TOGGLE SWITCHER --- */
.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 124, 65, 0.05); /* 淡淡的安全绿底色，质感一流 */
  border: 1.5px solid rgba(16, 124, 65, 0.25); /* 明显且精致的绿色微边框 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: #107C41; /* 亮色下为高对比度的 Excel 品牌安全绿色，极其瞩目 */
  padding: 0;
  outline: none;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--excel-green);
  box-shadow: 0 0 10px rgba(16, 124, 65, 0.2);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn .sun-icon {
  display: none;
}
.theme-toggle-btn .moon-icon {
  display: block;
}

:root.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
  color: #fbbf24;
}
:root.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

/* Local overrides in dark theme for cells grid contrast */
:root.dark-theme .sheet-preview {
  background: rgba(17, 24, 39, 0.5);
  border-color: rgba(255, 255, 255, 0.05);
}

:root.dark-theme .sheet-preview div {
  border-color: rgba(255, 255, 255, 0.05);
  color: #D1D5DB;
}

:root.dark-theme .sheet-header {
  background: rgba(31, 41, 55, 0.6) !important;
  color: #9CA3AF !important;
}

:root.dark-theme .floating-code-editor,
:root.dark-theme .floating-audit-terminal {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(16, 124, 65, 0.35);
}

:root.dark-theme .excel-shell {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

:root.dark-theme .excel-topbar {
  background: rgba(31, 41, 55, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #E5E7EB;
}

:root.dark-theme .task-pane {
  background: rgba(17, 24, 39, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
