/* ============================================
   仓拓科技 AI 官网样式
   ============================================ */

/* === 基础重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #e2e8f0;
  background: #0f172a;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: #818cf8; text-decoration: none; transition: color 0.3s; }
a:hover { color: #a5b4fc; }
ul, ol { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; }

/* === 通用 === */
.container { max-width: 1140px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-size: 36px; font-weight: 700; color: #f1f5f9;
  margin-bottom: 16px; letter-spacing: 1px;
}
.section-title p { font-size: 18px; color: #94a3b8; max-width: 600px; margin: 0 auto; }
.section-light { background: #1e293b; }
.section-dark { background: #0f172a; }
.section-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

/* === 导航 === */
#menu {
  padding: 12px 0; transition: all 0.3s;
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}
#menu.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
#menu .navbar-brand {
  display: flex; align-items: center; padding: 0; height: auto;
}
#menu .navbar-brand .brand-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
}
#menu .navbar-brand .brand-text { margin-left: 12px; }
#menu .navbar-brand .brand-text span {
  font-size: 20px; font-weight: 700; color: #f1f5f9;
  font-family: 'Montserrat', sans-serif;
}
#menu .navbar-brand .brand-text small {
  font-size: 12px; color: #64748b; display: block; margin-top: -2px;
}
#menu .navbar-nav > li > a {
  color: #cbd5e1 !important; font-size: 15px; font-weight: 500;
  padding: 8px 18px !important; margin: 4px 0; border-radius: 6px;
  transition: all 0.3s;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.active > a {
  color: #fff !important; background: rgba(99, 102, 241, 0.2) !important;
}
/* 产品下拉菜单 */
#menu .product_active { position: relative; padding-bottom: 24px; margin-bottom: -24px; }
.product_up {
  position: absolute; left: -200px; top: 46px; width: 520px;
  background: #1e293b; border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px; padding: 20px; display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); z-index: 1000;
}
.product_up .product_item a {
  display: block; padding: 16px 20px; border-radius: 8px;
  background: rgba(99, 102, 241, 0.05); border: 1px solid transparent;
  transition: all 0.3s;
}
.product_up .product_item a:hover {
  background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3);
}
.product_up .product_item + .product_item { margin-top: 10px; }
.product_up .product_text { display: flex; align-items: center; }
.product_up .product_icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.product_up .product_right { margin-left: 14px; }
.product_up .product_right span { font-size: 16px; color: #f1f5f9; font-weight: 600; }
.product_up .product_right p { font-size: 13px; color: #94a3b8; margin: 0; }

/* === 英雄区 === */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 30%, #0f172a 60%, #172554 100%);
}
#hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 3%) rotate(5deg); }
}
/* 网格背景 */
#hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 20px; }
.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 20px;
  background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc; font-size: 14px; margin-bottom: 30px;
}
.hero-content h1 {
  font-size: 56px; font-weight: 800; color: #f1f5f9;
  margin-bottom: 24px; line-height: 1.2; letter-spacing: -1px;
}
.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 20px; color: #94a3b8; margin-bottom: 40px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary-custom {
  padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary-custom:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}
.btn-outline-custom {
  padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 600;
  background: transparent; color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3); cursor: pointer; transition: all 0.3s;
}
.btn-outline-custom:hover {
  border-color: #6366f1; color: #fff; transform: translateY(-2px);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center;
}
.scroll-hint span { display: block; color: #64748b; font-size: 13px; margin-bottom: 8px; }
.scroll-arrow {
  width: 24px; height: 24px; margin: 0 auto;
  border-right: 2px solid #6366f1; border-bottom: 2px solid #6366f1;
  transform: rotate(45deg); animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* === 关于我们 === */
#about { padding: 100px 0; }
.about-intro { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.about-intro p { font-size: 17px; color: #94a3b8; line-height: 1.8; }

/* === 核心产品卡片 === */
#products { padding: 100px 0; }
.product-card {
  background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px; padding: 40px 30px; text-align: center;
  transition: all 0.4s; height: 100%;
  backdrop-filter: blur(10px);
}
.product-card:hover {
  transform: translateY(-8px); border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  background: rgba(30, 41, 59, 0.8);
}
.product-card .card-icon {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
}
.card-icon.icon-kb { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.card-icon.icon-cs { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.card-icon.icon-mp { background: linear-gradient(135deg, #10b981, #34d399); }
.product-card h3 { font-size: 22px; color: #f1f5f9; margin-bottom: 14px; font-weight: 700; }
.product-card p { font-size: 15px; color: #94a3b8; line-height: 1.7; }
.product-card .card-link {
  display: inline-block; margin-top: 20px; color: #818cf8;
  font-size: 14px; font-weight: 600; transition: all 0.3s;
}
.product-card .card-link:hover { color: #a5b4fc; }
.product-card .card-link::after { content: ' →'; }

/* === 优势 === */
#advantages { padding: 100px 0; }
.advantage-item {
  text-align: center; padding: 30px 20px;
  transition: all 0.3s;
}
.advantage-item .adv-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #818cf8; transition: all 0.3s;
}
.advantage-item:hover .adv-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.advantage-item h4 { font-size: 18px; color: #f1f5f9; margin-bottom: 10px; font-weight: 600; }
.advantage-item p { font-size: 14px; color: #64748b; }

/* === 技术能力 === */
#tech { padding: 100px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-card {
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px; padding: 30px; transition: all 0.3s;
}
.tech-card:hover { border-color: rgba(99, 102, 241, 0.3); }
.tech-card h4 { font-size: 18px; color: #f1f5f9; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tech-card h4 i { color: #818cf8; }
.tech-card p { font-size: 14px; color: #94a3b8; line-height: 1.7; }
.tech-bar { margin-top: 16px; }
.tech-bar .bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.tech-bar .bar-label span { font-size: 13px; color: #94a3b8; }
.tech-bar .bar-track {
  height: 6px; background: rgba(99, 102, 241, 0.1); border-radius: 3px; overflow: hidden;
}
.tech-bar .bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 1.5s ease;
}

/* === 数据统计 === */
#stats { padding: 80px 0; }
.stat-item { text-align: center; padding: 20px; }
.stat-item .stat-number {
  font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.stat-item .stat-label { font-size: 16px; color: #94a3b8; }

/* === 服务流程 === */
#process { padding: 100px 0; }
.process-item { text-align: center; position: relative; padding: 30px 20px; }
.process-item .process-step {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.process-item h4 { font-size: 18px; color: #f1f5f9; margin-bottom: 10px; }
.process-item p { font-size: 14px; color: #64748b; }
.process-line {
  position: absolute; top: 58px; right: -15%; width: 30%;
  height: 2px; background: linear-gradient(90deg, #6366f1, transparent);
}

/* === 合作伙伴 === */
#partners { padding: 80px 0; }
.partner-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.partner-logo {
  padding: 16px 28px; border-radius: 10px;
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(99, 102, 241, 0.1);
  color: #64748b; font-size: 14px; font-weight: 600;
  transition: all 0.3s;
}
.partner-logo:hover { border-color: rgba(99, 102, 241, 0.3); color: #a5b4fc; }

/* === 联系我们 === */
#contact { padding: 100px 0; }
.contact-main { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.contact-main h3 { font-size: 28px; color: #f1f5f9; margin-bottom: 12px; }
.contact-main > p { color: #94a3b8; font-size: 16px; }
.contact-phone {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 30px 0 40px;
}
.contact-phone a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 22px; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.contact-phone a:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5); }
.contact-phone a i { font-size: 28px; }
.contact-methods { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.contact-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 10px;
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all 0.3s;
}
.contact-method:hover { border-color: rgba(99, 102, 241, 0.4); }
.contact-method i { font-size: 20px; color: #818cf8; }
.contact-method span { color: #e2e8f0; font-size: 15px; }
.contact-method small { color: #64748b; font-size: 13px; }
.contact-details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 30px 0; border-top: 1px solid rgba(99, 102, 241, 0.1);
}
.contact-detail { text-align: center; }
.contact-detail i { font-size: 24px; color: #818cf8; margin-bottom: 10px; }
.contact-detail h5 { color: #f1f5f9; font-size: 15px; margin-bottom: 6px; }
.contact-detail p { color: #94a3b8; font-size: 14px; margin: 0; }

/* === Footer === */
#footer {
  padding: 40px 0; background: #0c1220;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}
#footer p { color: #64748b; font-size: 14px; margin: 0; }
#footer a { color: #818cf8; }

/* === 产品页通用 === */
.page-hero {
  padding: 160px 0 80px; text-align: center; position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 { font-size: 42px; font-weight: 800; color: #f1f5f9; margin-bottom: 16px; position: relative; }
.page-hero p { font-size: 18px; color: #94a3b8; position: relative; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px; padding: 30px; text-align: center; transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3); transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.feature-card .f-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.feature-card h4 { font-size: 17px; color: #f1f5f9; margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 14px; color: #94a3b8; line-height: 1.6; }

/* === 日志页 === */
.journal-timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 40px; }
.journal-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: rgba(99, 102, 241, 0.2);
}
.journal-item { position: relative; margin-bottom: 40px; }
.journal-item:last-child { margin-bottom: 0; }
.journal-item::before {
  content: ''; position: absolute; left: -30px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.journal-item .version {
  display: inline-block; padding: 3px 12px; border-radius: 6px;
  background: rgba(99, 102, 241, 0.15); color: #a5b4fc;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.journal-item .date { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.journal-item h4 { font-size: 18px; color: #f1f5f9; margin-bottom: 8px; }
.journal-item p { font-size: 14px; color: #94a3b8; line-height: 1.7; }

/* === 响应式 === */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 40px; }
  .hero-content p { font-size: 17px; }
  .tech-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-details { grid-template-columns: 1fr; }
  .process-line { display: none; }
}
@media (max-width: 768px) {
  #hero { min-height: 80vh; }
  .hero-content h1 { font-size: 32px; }
  .section-title h2 { font-size: 28px; }
  .stat-item .stat-number { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: 30px; }
  .product_up { left: 0; width: 100%; }
}
