/* ========================================
   克杰科技官网 - 统一样式
   69222669.com
   ======================================== */

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066cc;
  --primary-hover: #0071e3;
  --dark: #1d1d1f;
  --gray: #6e6e73;
  --light: #f5f5f7;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

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

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 0 20px;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--dark);
  opacity: 0.8;
  font-size: 14px;
  font-weight: 500;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--primary); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ===== Hero区域 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light) 0%, #e8e8ed 100%);
  text-align: center;
  padding: 120px 20px 80px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--dark);
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 20px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== 通用Section ===== */
.section {
  padding: 100px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.16,1,0.3,1);
}
.section.visible { opacity: 1; transform: translateY(0); }
.section.bg-light { background: var(--light); }
.section.bg-white { background: var(--white); }
.section.bg-dark { background: var(--dark); color: var(--white); }
.section.bg-dark .section-subtitle { color: rgba(255,255,255,0.6); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--white);
}
.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}
.card .tag {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
}

/* ===== 特性行（左图右文 / 右图左文） ===== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .text { flex: 1; }
.feature-row .text h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}
.feature-row .text p {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.feature-row .visual {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--light);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 数据统计条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 60px 0;
}
.stat-item .num {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
}
.stat-item .label {
  font-size: 16px;
  color: var(--gray);
  margin-top: 8px;
}

/* ===== 对比表格 ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.compare-table th {
  background: var(--light);
  font-weight: 600;
  font-size: 15px;
}
.compare-table td { font-size: 15px; }
.compare-table tr:hover { background: #fafafa; }
.compare-table .highlight { color: var(--primary); font-weight: 600; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.faq-question {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after { content: "−"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; margin-top: 16px; }

/* ===== 联系表单 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
}
.contact-info-list .icon-circle {
  width: 48px; height: 48px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color var(--transition);
  background: var(--light);
  outline: none;
}
.form-input:focus { border-color: var(--primary); background: var(--white); }
textarea.form-input { min-height: 140px; resize: vertical; }

/* ===== 页脚 ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}
.footer p, .footer li { font-size: 14px; line-height: 1.8; }
.footer ul { list-style: none; }
.footer a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 80px 20px 30px;
  background: var(--light);
  font-size: 14px;
  color: var(--gray);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== 页面顶部标题 ===== */
.page-header {
  padding: 120px 20px 60px;
  background: var(--light);
  text-align: center;
}
.page-header h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 28px; }
  .section { padding: 60px 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item .num { font-size: 36px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}
