/* ============================================
   橙算智能（Orange-AGI）官网样式
   基于 docs/DESIGN.md 设计系统规范
   ============================================ */

/* CSS 变量 - 设计 Token */
:root {
  /* Colors */
  --color-primary: #FF6A00;
  --color-primary-dark: #E55F00;
  --color-primary-light: #FFF0E5;
  --color-accent: #0099FF;
  --color-accent-dark: #007ACC;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-white: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-surface-2: #FAFAFA;
  --color-border: #E5E5E5;
  --color-border-light: #F0F0F0;
  --color-dark-bg: #1A1A1A;
  --color-dark-bg-2: #2A2A2A;
  --color-tech-blue: #0C1E3A;
  --color-tech-blue-light: #0E2444;
  --color-tech-blue-dark: #091628;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 60px rgba(0, 0, 0, 0.2);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 48px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Monaco", monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Reset */
* {
  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);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Homepage: transparent header sits on top of dark hero,
   switches to solid white when scrolled */
.home .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.home .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* On transparent homepage header, nav links & CTA need light colors */
.home .site-header .nav-link {
  color: #FFA44D;
}

.home .site-header .nav-link:hover,
.home .site-header .nav-link.active {
  color: var(--color-white);
}

.home .site-header .nav-link::after {
  background: #FFA44D;
}

.home .site-header.scrolled .nav-link {
  color: #D05800;
}

.home .site-header.scrolled .nav-link:hover,
.home .site-header.scrolled .nav-link.active {
  color: var(--color-primary);
}

.home .site-header.scrolled .nav-link::after {
  background: #D05800;
}

/* Mobile toggle (hamburger) color: white on transparent header */
.home .site-header .mobile-toggle span {
  background: var(--color-white);
}

.home .site-header.scrolled .mobile-toggle span {
  background: var(--color-text-primary);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-banner {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-banner-img {
  height: 60px;
  width: auto;
  display: block;
}

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

.brand-text-cn {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.brand-text-en {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-md);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.3);
}

.btn-primary:active {
  background: #CC5200;
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-blue {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-blue:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 153, 255, 0.3);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-text-primary);
}

.btn-light:hover {
  background: var(--color-surface);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================
   Tags / Badges
   ============================================ */
.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.tag-blue {
  background: #E5F4FF;
  color: var(--color-accent);
}

.tag-dark {
  background: var(--color-dark-bg);
  color: var(--color-white);
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: var(--space-30) 0;
}

.section-tight {
  padding: var(--space-20) 0;
}

.section-gray {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-dark-bg);
  color: var(--color-white);
}

.section-gradient {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-light) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  overflow: hidden;
  color: var(--color-white);
  background: #1a1a1a;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-bg.jpg') no-repeat center center / cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 30%, var(--color-tech-blue) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.50) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-16);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  margin-bottom: var(--space-6);
  white-space: nowrap;
  font-size: 12px;
  padding: 5px 12px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFA44D;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-title em {
  font-style: normal;
  color: var(--color-white);
}

.hero-title-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  vertical-align: middle;
  margin: 0 18px;
  position: relative;
  top: -4px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-meta-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.60);
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-visual-inner {
  text-align: center;
  padding: var(--space-8);
}

.hero-visual-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 48px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.3);
}

.hero-visual-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #FFE0CC 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.card-icon.blue {
  background: linear-gradient(135deg, #E5F4FF 0%, #CCE8FF 100%);
  color: var(--color-accent);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition-base);
}

.card-link:hover {
  gap: var(--space-3);
}

/* Service Card */
.service-card .card-icon {
  margin-bottom: var(--space-4);
}

.service-card .card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   Stats
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.stat-number.blue {
  color: var(--color-accent);
}

.stat-unit {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  margin-left: 2px;
}

.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.stat-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Why Us / Feature List
   ============================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-item {
  display: flex;
  gap: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  transition: all var(--transition-base);
  align-items: flex-start;
}

.feature-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.feature-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
  width: 60px;
}

.feature-num.blue {
  color: var(--color-accent);
}

.feature-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.feature-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   Vision Section
   ============================================ */
.vision {
  text-align: center;
  padding: var(--space-30) 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-light) 100%);
}

.vision-tag {
  margin-bottom: var(--space-6);
}

.vision-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.vision-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #FFE0CC 100%);
}

.final-cta-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.final-cta-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo-en {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

.footer-tagline strong {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-list a:hover {
  color: var(--color-primary);
}

.footer-contact {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-contact-label {
  color: var(--color-primary);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 60px;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ============================================
   Page Hero (sub-pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-light) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-tag {
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFA44D;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* ============================================
   Form
   ============================================ */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}

.contact-info {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact-info-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-value {
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.5;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.form-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================
   Process Timeline
   ============================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all var(--transition-base);
}

.process-step:hover .process-num {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.process-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.process-desc {
  font-size: 14px;
  color: var(--color-white);
  line-height: 1.6;
}

/* ============================================
   Tech Stack Pills
   ============================================ */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.tech-pill {
  padding: 12px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.tech-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Page CTA (sub-page bottom)
   ============================================ */
.page-cta {
  text-align: center;
  padding: var(--space-12) 0;
  background: var(--color-surface);
}

.page-cta-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.page-cta-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   About Page Specific
   ============================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.about-content p {
  margin-bottom: var(--space-4);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.value-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.value-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.project-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.project-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.project-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.project-meta {
  display: inline-block;
  font-size: 12px;
  color: var(--color-accent);
  background: #E5F4FF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

/* ============================================
   Architecture Pyramid
   ============================================ */
.pyramid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pyramid-layer {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-8);
  text-align: center;
  margin: 0 auto;
  transition: all var(--transition-base);
  position: relative;
}

.pyramid-layer:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.pyramid-layer-1 { width: 100%; background: linear-gradient(90deg, #FFF5EB 0%, var(--color-primary-light) 100%); border-color: var(--color-primary); }
.pyramid-layer-2 { width: 90%; }
.pyramid-layer-3 { width: 80%; }
.pyramid-layer-4 { width: 70%; }

.pyramid-layer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.pyramid-layer-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-dark-bg);
  color: var(--color-white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 14px;
  font-weight: 500;
  z-index: 1040;
  opacity: 0;
  transition: all var(--transition-slow);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--color-success);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .grid-4,
  .stats-row,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-inner {
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --space-30: 64px;
    --space-20: 48px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: var(--space-6) var(--space-6) var(--space-8);
    gap: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility 0s var(--transition-slow);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility 0s 0s;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #FFA44D;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-white);
  }

  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--space-12));
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-tag {
    white-space: normal;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .page-hero-title {
    font-size: 32px;
  }

  .page-hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .stats-row,
  .values-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 44px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: column;
    gap: var(--space-3);
  }

  .feature-num {
    width: auto;
  }

  .vision-title,
  .final-cta-title {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .card {
    padding: var(--space-6);
  }

  .stat-card,
  .form-card {
    padding: var(--space-6);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .final-cta,
  .header-cta {
    display: none;
  }
}

/* ============================================
   Homepage Tech Blue Theme
   Hero 以下全部使用科技蓝背景
   ============================================ */
body.home {
  background: var(--color-tech-blue);
}

/* 区块标题/副标题 → 白色系 */
body.home .section-title {
  color: var(--color-white);
}

body.home .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

/* section-gray → 略浅的科技蓝，营造层次 */
body.home .section-gray {
  background: var(--color-tech-blue-light);
}

/* vision / final-cta 去掉橙色渐变，融入科技蓝 */
body.home .vision {
  background: transparent;
}

body.home .vision-title {
  color: var(--color-white);
}

body.home .vision-desc {
  color: rgba(255, 255, 255, 0.72);
}

body.home .final-cta {
  background: transparent;
}

body.home .final-cta-title {
  color: var(--color-white);
}

body.home .final-cta-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* Footer → 更深的科技蓝 */
body.home .site-footer {
  background: var(--color-tech-blue-dark);
}

/* 卡片在蓝底上加微光阴影，增强浮起感 */
body.home .card,
body.home .feature-item,
body.home .stat-card,
body.home .tech-pill {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.home .card:hover,
body.home .feature-item:hover,
body.home .stat-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ============================================
   Inner Pages Tech Blue Theme
   智算/存储/大模型/技术咨询/关于我们 — 统一科技蓝
   Hero 图片 + 上→下渐变(透明→科技蓝) + 以下全部科技蓝
   ============================================ */

/* --- Page Hero: 背景图 + 渐变遮罩 --- */
body.tech-blue .page-hero {
  background: #1a1a1a;
  color: var(--color-white);
}

body.tech-blue .page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

body.tech-blue .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 30%, var(--color-tech-blue) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* 每页的 Hero 背景图 */
body.page-computing .page-hero::before {
  background: url('../assets/images/hero-zhisuan.jpeg') no-repeat center center / cover;
}

body.page-storage .page-hero::before {
  background: url('../assets/images/hero-cunchu.jpeg') no-repeat center center / cover;
}

body.page-llm .page-hero::before {
  background: url('../assets/images/hero-damoxing.jpeg') no-repeat center center / cover;
}

body.page-consulting .page-hero::before {
  background: url('../assets/images/hero-jishuzixun.webp') no-repeat center center / cover;
}

body.page-about .page-hero::before {
  background: url('../assets/images/hero-guanyuwomen.webp') no-repeat center center / cover;
}

/* Hero 文字颜色 */
body.tech-blue .page-hero-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

body.tech-blue .page-hero-title {
  color: #FFA44D;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

body.tech-blue .page-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 2;
}

body.tech-blue .page-hero .container {
  position: relative;
  z-index: 2;
}

/* --- 透明 Header（与首页一致） --- */
body.tech-blue .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.tech-blue .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

body.tech-blue .site-header .nav-link {
  color: #FFA44D;
}

body.tech-blue .site-header .nav-link:hover,
body.tech-blue .site-header .nav-link.active {
  color: var(--color-white);
}

body.tech-blue .site-header .nav-link::after {
  background: #FFA44D;
}

body.tech-blue .site-header.scrolled .nav-link {
  color: #D05800;
}

body.tech-blue .site-header.scrolled .nav-link:hover,
body.tech-blue .site-header.scrolled .nav-link.active {
  color: var(--color-primary);
}

body.tech-blue .site-header.scrolled .nav-link::after {
  background: #D05800;
}

body.tech-blue .site-header .mobile-toggle span {
  background: var(--color-white);
}

body.tech-blue .site-header.scrolled .mobile-toggle span {
  background: var(--color-text-primary);
}

/* --- 科技蓝主题（与首页一致） --- */
body.tech-blue {
  background: var(--color-tech-blue);
}

body.tech-blue .section-title {
  color: var(--color-white);
}

body.tech-blue .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

body.tech-blue .section-gray {
  background: var(--color-tech-blue-light);
}

body.tech-blue .vision {
  background: transparent;
}

body.tech-blue .vision-title {
  color: var(--color-white);
}

body.tech-blue .vision-desc {
  color: rgba(255, 255, 255, 0.72);
}

body.tech-blue .page-cta {
  background: transparent;
}

body.tech-blue .page-cta-title {
  color: var(--color-white);
}

body.tech-blue .page-cta-desc {
  color: rgba(255, 255, 255, 0.72);
}

body.tech-blue .about-content {
  color: rgba(255, 255, 255, 0.72);
}

body.tech-blue .site-footer {
  background: var(--color-tech-blue-dark);
}

/* 卡片在蓝底上加微光阴影 */
body.tech-blue .card,
body.tech-blue .feature-item,
body.tech-blue .stat-card,
body.tech-blue .tech-pill,
body.tech-blue .value-card,
body.tech-blue .project-item,
body.tech-blue .faq-item,
body.tech-blue .pyramid-layer {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.tech-blue .card:hover,
body.tech-blue .feature-item:hover,
body.tech-blue .stat-card:hover,
body.tech-blue .value-card:hover,
body.tech-blue .project-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* --- Contact 页面 Hero 背景图 --- */
body.page-contact .page-hero::before {
  background: url('../assets/images/hero-bg.jpg') no-repeat center center / cover;
}

/* --- Contact 页面：蓝底联系信息卡片适配 --- */
body.tech-blue .contact-info {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.tech-blue .contact-info-icon {
  background: rgba(255, 100, 7, 0.12);
  color: var(--color-primary);
}

body.tech-blue .contact-info-label {
  color: var(--color-text-muted);
}

body.tech-blue .contact-info-value {
  color: var(--color-text-primary);
}

/* 咨询提交卡片 */
body.tech-blue .consult-cta-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
}

body.tech-blue .consult-cta-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

body.tech-blue .consult-cta-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

body.tech-blue .consult-cta-card .btn {
  font-size: 17px;
  padding: 14px 36px;
}
