/* ====== 成都奥心科技 - 全局样式 ====== */

:root {
  --primary-dark: #1B3A5C;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent-gold: #C8960C;
  --bg-light: #F5F7FA;
  --text-dark: #333333;
  --text-muted: #666666;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  padding-top: 72px;
  overflow-x: hidden;
}

/* ====== 导航栏 ====== */
.navbar-custom {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  padding: 0;
  min-height: 72px;
}

.navbar-custom .navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark) !important;
  letter-spacing: 1px;
}

.navbar-custom .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1.1rem !important;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

/* ====== 通用区块 ====== */
.section-padding {
  padding: 80px 0;
}

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

.bg-light-gray {
  background: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.text-primary-dark {
  color: var(--primary-dark);
}

.text-gold {
  color: var(--accent-gold);
}

/* ====== Hero ====== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0F2A44 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-section::before {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-section .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* ====== 按钮 ====== */
.btn-primary-custom {
  background: var(--primary);
  border: none;
  color: var(--white);
  padding: 0.65rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: #1D4ED8;
  color: var(--white);
}

.btn-outline-light-custom {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  padding: 0.65rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

/* ====== 优势图标区 ====== */
.advantage-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}

.advantage-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.advantage-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
  word-break: break-word;
}

/* ====== 解决方案卡片 ====== */
.solution-card {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--white);
  height: 100%;
}

.solution-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.solution-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.solution-card h5 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  word-break: break-word;
}

.solution-card .card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.solution-card .card-link:hover {
  text-decoration: underline;
}

/* ====== 解决方案详情区块 ====== */
.solution-detail {
  padding: 80px 0;
}

.solution-detail:nth-child(even) {
  background: var(--bg-light);
}

.solution-detail h3 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.solution-detail p {
  color: var(--text-muted);
  line-height: 1.9;
}

.solution-detail .solution-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

/* ====== CTA 底部 ====== */
.cta-section {
  background: var(--primary-dark);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-section h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ====== 页脚 ====== */
.footer-dark {
  background: #0F1E2E;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-dark a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-dark a:hover {
  color: var(--white);
}

.footer-dark .footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

/* ====== 关于页时间线 ====== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #D1D5DB;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-item .event {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ====== 价值观卡片 ====== */
.value-card {
  text-align: center;
  padding: 2rem 1rem;
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.value-card h5 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 240px;
  margin: 0 auto;
  word-break: break-word;
}

/* ====== 联系页 ====== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.contact-info-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ====== 页面标题横幅 ====== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0F2A44 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

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

/* ====== 表单样式 ====== */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* ====== 移动端专项优化 ====== */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 48px 0;
  }

  .hero-section {
    padding: 72px 0 56px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .solution-detail {
    padding: 48px 0;
  }

  .solution-detail svg {
    max-width: 100%;
    height: auto;
  }

  .footer-dark {
    text-align: center;
  }

  .footer-dark .text-md-end {
    text-align: center !important;
  }

  .btn-primary-custom,
  .btn-outline-light-custom {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* 确保所有 SVG 在移动端不溢出 */
svg {
  max-width: 100%;
  height: auto;
}
