/* ============================================
   淇妙AI - 全链路AI获客引擎 官网样式
   配色：深空蓝灰 #1A2332 / 渐变蓝紫 #4F6EF7→#8B5CF6
   ============================================ */

/* ============================================
   一、重置样式 (Reset)
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A2332;
  background-color: #F0F4FF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #1A2332;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: #3D4A5C;
}

a {
  color: #4F6EF7;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8B5CF6;
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================
   二、布局 (Layout)
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1A2332, #4F6EF7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.0625rem;
  color: #5A6B80;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   三、组件 (Components)
   ============================================ */

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1A2332;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo span {
  background: linear-gradient(135deg, #4F6EF7, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 10px 20px;
  color: #3D4A5C;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #4F6EF7;
  background: rgba(79, 110, 247, 0.08);
}

.nav-cta {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4F6EF7, #8B5CF6);
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 110, 247, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1A2332;
  cursor: pointer;
}

/* 首屏 Hero */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #1A2332 0%, #2D3B55 50%, #4F6EF7 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(79, 110, 247, 0.3), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.25rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #4F6EF7, #8B5CF6);
  color: #fff;
  box-shadow: 0 6px 24px rgba(79, 110, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79, 110, 247, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 功能网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F6EF7, #8B5CF6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 35, 50, 0.12);
  border-color: transparent;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(139, 92, 246, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: #1A2332;
}

.feature-card p {
  color: #5A6B80;
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79, 110, 247, 0.08);
  color: #4F6EF7;
  font-size: 0.8125rem;
  border-radius: 6px;
  font-weight: 500;
}

/* 场景展示 */
.scenes {
  background: #fff;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.scene-card {
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F0F4FF, #E8EEFF);
  border: 1px solid rgba(79, 110, 247, 0.08);
}

.scene-card h4 {
  color: #1A2332;
  margin-bottom: 8px;
}

.scene-card p {
  color: #5A6B80;
  font-size: 0.9375rem;
  margin: 0;
}

/* 常见问题 */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E8EEFF;
  border-radius: 12px;
  padding: 24px 28px;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.08);
}

.faq-item h4 {
  color: #1A2332;
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: #5A6B80;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

/* 联系方式 */
.contact-section {
  background: linear-gradient(135deg, #1A2332, #2D3B55);
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.contact-info {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-phone {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.contact-person {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.contact-address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-top: 6px;
}

/* 底部 */
.site-footer {
  background: #0F1623;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #8B5CF6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 文章列表 */
.article-list {
  list-style: none;
  padding: 0;
}

.article-item {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  transition: all 0.3s ease;
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.1);
}

.article-item h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.article-item h3 a {
  color: #1A2332;
}

.article-item h3 a:hover {
  color: #4F6EF7;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: #5A6B80;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.article-excerpt {
  color: #5A6B80;
  line-height: 1.8;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #4F6EF7;
  font-weight: 600;
  font-size: 0.9375rem;
}

.read-more:hover {
  color: #8B5CF6;
}

/* 文章详情页 */
.article-detail {
  padding: 80px 0;
}

.article-header {
  text-align: center;
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: #1A2332;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  line-height: 1.9;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: #1A2332;
  padding-left: 16px;
  border-left: 4px solid #4F6EF7;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: #2D3B55;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: #3D4A5C;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #3D4A5C;
}

.article-content strong {
  color: #1A2332;
}

/* 关于我们 */
.about-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #1A2332, #2D3B55);
  color: #fff;
}

.about-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 720px;
  line-height: 1.8;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content .content-block {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(26, 35, 50, 0.06);
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1A2332;
}

.about-content p {
  color: #3D4A5C;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: #5A6B80;
}

.breadcrumb a {
  color: #4F6EF7;
}

.breadcrumb span {
  margin: 0 8px;
  color: #9AA5B5;
}

/* ============================================
   四、响应式 (Responsive)
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

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

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    padding: 12px 16px;
  }

  .nav-cta {
    display: none;
  }

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

  .article-content {
    padding: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-info {
    flex-direction: column;
    gap: 8px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .feature-card {
    padding: 28px 20px;
  }
}
/* ============ 子页面通用样式 ============ */

/* 页面标题区 */
.page-header {
  background: linear-gradient(135deg, #F0F4FF 0%, #E6EDFF 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid #E8EEFF;
}

.page-header h1 {
  font-size: 2rem;
  color: #1A2332;
  margin-bottom: 12px;
}

.page-header p {
  color: #5A6B80;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============ 功能详情页 (features.html) ============ */

.feature-detail {
  padding: 60px 0;
}

.feature-detail.alt-bg {
  background-color: #F5F8FF;
}

.feature-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.feature-detail-header .feature-icon.large {
  font-size: 3rem;
  flex-shrink: 0;
}

.feature-detail-header h2 {
  font-size: 1.75rem;
  color: #1A2332;
  margin-bottom: 8px;
}

.feature-detail-header p {
  color: #5A6B80;
  font-size: 1rem;
  margin: 0;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.detail-card {
  background: #FFFFFF;
  border: 1px solid #E8EEFF;
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.10);
}

.detail-card h4 {
  color: #1A2332;
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.detail-card p {
  color: #5A6B80;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

/* 响应式: 功能网格 */
@media (max-width: 992px) {
  .feature-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-detail-grid {
    grid-template-columns: 1fr;
  }
  .feature-detail-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ 关于我们页 ============ */

/* 数据统计 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  background: #F5F8FF;
  border: 1px solid #E8EEFF;
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.stat-item:hover {
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.08);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #4F6EF7;
  margin-bottom: 8px;
}

.stat-label {
  color: #5A6B80;
  font-size: 0.9375rem;
}

/* 关于页联系方式卡片(深色区) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.contact-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ============ 资讯列表页 (news.html) ============ */

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background: #FFFFFF;
  border: 1px solid rgba(26, 35, 50, 0.06);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.08);
}

.news-date {
  color: #4F6EF7;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.news-item h3 {
  color: #1A2332;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: #4F6EF7;
}

.news-item p {
  color: #5A6B80;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ============ 文章详情页 (article-N.html) ============ */

.article-page {
  padding: 60px 0;
}

.article-lead {
  color: #5A6B80;
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 32px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin: 32px auto 0;
}

.article-tags span {
  background: #F0F4FF;
  color: #4F6EF7;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.875rem;
}

.article-cta {
  background: #F0F4FF;
  border-radius: 16px;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
  margin: 40px auto 0;
}

.article-cta h3 {
  color: #1A2332;
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.article-cta p {
  color: #5A6B80;
  margin-bottom: 20px;
}

.contact-block {
  text-align: center;
  max-width: 800px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px dashed #4F6EF7;
  border-radius: 12px;
  color: #1A2332;
}

.contact-block strong {
  color: #4F6EF7;
}

/* 响应式 */
@media (max-width: 992px) {
  .about-stats,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
