/* ===========================================
   Change Website Styles
   银行保险企业内训专家 - 辰旨顾问
   AI时代AIEO标准设计系统
   =========================================== */

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

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

/* ===== 颜色系统 ===== */
:root {
  --primary-color: #1E40AF;      /* 深蓝色 - 主色调 */
  --secondary-color: #F59E0B;    /* 橙色 - 辅助色 */
  --neutral-color: #6B7280;      /* 灰色 - 中性色 */
  --background-color: #F9FAFB;   /* 浅灰背景 */
  --text-primary: #111827;       /* 深黑文字 */
  --text-secondary: #6B7280;     /* 灰色文字 */
  --border-color: #E5E7EB;       /* 边框色 */
  --success-color: #10B981;      /* 成功绿 */
  --warning-color: #F59E0B;      /* 警告橙 */
  --error-color: #EF4444;        /* 错误红 */
}

/* ===== 布局系统 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 80px;
  }
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.25rem; /* 减小一号字号，与60px高度的logo视觉协调 */
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand img {
  height: 60px !important; /* 强制设置高度60px，确保生效 */
  width: auto !important; /* 保持logo宽高比，避免拉伸变形 */
  vertical-align: middle; /* 与后方文字垂直居中对齐，优化视觉 */
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--primary-color);
}

/* 移动端汉堡菜单 */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== 按钮系统 ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px -2px rgba(30, 64, 175, 0.3);
}

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

.btn-secondary:hover {
  background-color: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px -2px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ===== 卡片系统 ===== */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 网格系统 ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== 间距系统 ===== */
.section {
  padding: 60px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* ===== 文字系统 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: #9CA3AF; }

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* ===== 首页专用样式 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1E3A8A 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.stats {
  background-color: var(--background-color);
  padding: 40px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== 产品卡片 ===== */
.product-card {
  height: 100%;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
}

.product-card .features {
  list-style: none;
  margin: 16px 0;
  flex-grow: 1;
}

.product-card .features li {
  padding: 4px 0;
  position: relative;
  padding-left: 20px;
}

.product-card .features li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== 表单样式 ===== */
.form-group {
  margin-bottom: 20px;
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* ===== 页脚 ===== */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 60px 0 30px;
}

.footer .container {
  display: grid;
  grid-template-columns: 35% 15% 15% 35%; /* 严格按35%、15%、15%、35%比例分配 */
  gap: 40px; /* 列间距 */
  width: 100%; /* 占满父容器宽度 */
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
  width: 100%;
  display: block;
  /* 确保整行显示，不分列 */
}

.footer-bottom p {
  margin: 8px 0;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* ===== Flexbox 工具类 ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 > * + * { margin-left: 1rem; }

@media (min-width: 640px) {
  .sm\\:flex-row { flex-direction: row; }
}

/* ===== 间距工具类 ===== */
.space-y-2 > * + * { margin-top: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }

/* ===== 响应式设计 ===== */
@media (max-width: 767px) {
  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (min-width: 768px) {
  .md\\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\\:text-5xl { font-size: 3rem; }
  .md\\:text-xl { font-size: 1.25rem; }
}

/* ===== AIEO转化点样式 ===== */
.cta-section {
  background-color: var(--background-color);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 加载动画 ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* ===== 无障碍访问 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 打印样式 ===== */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}