/* 
 * 逐月 AI 网站 - 顶级设计系统 v3.0
 * 设计理念：现代简约 + 品牌色 + 微交互 + 高转化
 * 配色方案：深蓝 (#0a2342) + 品牌金 (#C8A45C) + 渐变
 */

:root {
  /* 品牌色 */
  --brand-dark: #0a2342;
  --brand-dark-light: #1a3a5c;
  --brand-gold: #C8A45C;
  --brand-gold-light: #E8B94A;
  --brand-gold-glow: rgba(200, 164, 92, 0.15);
  
  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  
  /* 功能色 */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-light) 100%);
  --gradient-gold: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(200, 164, 92, 0.1) 0%, rgba(200, 164, 92, 0.3) 100%);
  
  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(200, 164, 92, 0.3);
  
  /* 动画 */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--brand-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--brand-gold);
}

/* 按钮 */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--brand-dark);
}

/* 导航栏 */
.site-header {
  background: var(--gradient-primary);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.nav-brand img {
  height: 32px;
  margin-right: var(--space-2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--brand-gold-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: var(--space-2) 0;
  transition: all var(--transition-fast);
}

/* Hero 区域 */
.hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200, 164, 92, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.hero .btn-primary {
  margin-right: var(--space-4);
}

/* 区域通用 */
.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title h2 {
  margin-bottom: var(--space-3);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

/* 卡片 */
.card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-gold {
  background: var(--gradient-glow);
  border: 1px solid var(--brand-gold);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.card h3 {
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.step {
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  color: var(--brand-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto var(--space-4);
}

.step h4 {
  margin-bottom: var(--space-2);
}

.step p {
  font-size: 0.9375rem;
}

/* CTA 区域 */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-12) 0;
  text-align: center;
}

.footer-brand {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding: var(--space-12) 0 var(--space-10);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}

/* 微交互 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 金标 */
.gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 技术标签 */
.tech-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--brand-gold-glow);
  color: var(--brand-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin: var(--space-1);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

/* 架构图 */
.arch-diagram {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin: var(--space-8) 0;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.arch-node {
  padding: var(--space-4) var(--space-6);
  background: var(--brand-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 120px;
  transition: all var(--transition-base);
}

.arch-node.highlight {
  background: var(--gradient-gold);
  color: var(--brand-dark);
  font-weight: 700;
}

.arch-arrow {
  color: var(--brand-gold);
  font-size: 1.5rem;
}


/* ===== 数据统计区域 ===== */
/* ===== 数据统计区域 ===== */
.stats-section {
  background: var(--gradient-primary);
  padding: var(--space-12) 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-6);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ===== Phase 3 功能增强 ===== */
/* ===== 在线咨询组件 - 顶级美工标准 ===== */
.consult-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'Microsoft YaHei', sans-serif;
}

.consult-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8A45C 0%, #E8B94A 50%, #D4AF37 100%);
  color: #0a2342;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 20px rgba(200, 164, 92, 0.4),
    0 8px 40px rgba(200, 164, 92, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.consult-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.consult-toggle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(200, 164, 92, 0.3);
  animation: consult-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes consult-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.consult-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 6px 30px rgba(200, 164, 92, 0.5),
    0 12px 60px rgba(200, 164, 92, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.consult-toggle:active {
  transform: scale(0.95);
}

.consult-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  box-shadow: 
    0 10px 40px rgba(10, 35, 66, 0.15),
    0 20px 80px rgba(10, 35, 66, 0.1),
    0 0 0 1px rgba(200, 164, 92, 0.1);
  min-width: 260px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.consult-menu::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 1px solid rgba(200, 164, 92, 0.1);
  border-bottom: 1px solid rgba(200, 164, 92, 0.1);
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(10, 35, 66, 0.05);
}

.consult-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: #374151;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.consult-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.consult-item:hover {
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.08) 0%, rgba(200, 164, 92, 0.02) 100%);
  color: #0a2342;
  transform: translateX(4px);
}

.consult-item:hover::before {
  opacity: 1;
}

.consult-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.consult-item-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.consult-item-icon.wechat {
  background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.consult-item-icon.phone {
  background: linear-gradient(135deg, #C8A45C 0%, #E8B94A 100%);
  color: #0a2342;
  box-shadow: 0 4px 12px rgba(200, 164, 92, 0.3);
}

.consult-item-text {
  flex: 1;
  min-width: 0;
}

.consult-item-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
  color: #0a2342;
}

.consult-item-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .consult-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .consult-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  
  .consult-menu {
    bottom: 70px;
    right: -10px;
    min-width: 240px;
    padding: 10px;
  }
  
  .consult-item {
    padding: 12px 14px;
    gap: 12px;
  }
  
  .consult-item-icon {
    width: 44px;
    height: 44px;
    font-size: 1.375rem;
  }
}
/* ===== 搜索功能 ===== */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-12);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.search-btn {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gradient-gold);
  color: var(--brand-dark);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.05);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin-top: var(--space-2);
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-result-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: var(--space-1);
}

.search-result-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.search-no-results {
  padding: var(--space-6);
  text-align: center;
  color: var(--gray-600);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
  }
  
  .search-input {
    font-size: 0.9375rem;
  }
}
/* ===== 移动端导航强化 ===== */
@media (max-width: 768px) {
  .site-header {
    position: relative;
  }
  
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #0a2342 !important;
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
    z-index: 1001 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
  }
  
  .nav-links.open {
    display: flex !important;
  }
  
  .nav-links a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: rgba(255,255,255,0.9) !important;
    text-align: left !important;
    border-radius: 0.5rem !important;
  }
  
  .nav-links a:hover {
    background: rgba(200,164,92,0.15) !important;
    color: #fff !important;
  }
  
  .nav-toggle {
    display: block !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
  }
  
  .nav-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #fff !important;
    margin: 6px 0 !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
}
