/* ============================================
   江西词索科技 — 全站通用样式表
   ============================================ */

/* ---------- 变量 & 重置 ---------- */
:root {
  --navy: #1a3a6b;
  --navy-dark: #0f2344;
  --navy-light: #2a5298;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --white: #ffffff;
  --gray-bg: #f4f6fa;
  --gray-border: #e0e4ee;
  --text-dark: #1a1a2e;
  --text-body: #4a5568;
  --text-light: #718096;
  --shadow-sm: 0 2px 8px rgba(26, 58, 107, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 58, 107, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 58, 107, 0.16);
  --radius: 8px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(26, 58, 107, 0.06);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--navy-dark) !important; }

/* 汉堡菜单 */
.menu-toggle { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px 0;
  border-radius: 2px; transition: var(--transition);
}

/* ---------- 页头通用区块 ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 130px 0 70px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.6rem; font-weight: 700; margin-bottom: 16px;
  letter-spacing: 1px;
}
.page-header p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  max-width: 600px; margin: 0 auto;
}
.page-header .breadcrumb {
  margin-top: 24px; font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb a:hover { color: var(--gold-light); }

/* ---------- 通用标题区块 ---------- */
.section { padding: 90px 0; }
.section-gray { background: var(--gray-bg); }
.section-navy { background: var(--navy); color: var(--white); }

.section-title {
  text-align: center; margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.2rem; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 600px; margin: 0 auto;
}
.section-navy .section-title h2 { color: var(--white); }
.section-navy .section-title p { color: rgba(255,255,255,0.7); }

/* ---------- 卡片 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(26, 58, 107, 0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px;
}
.card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: rgba(26, 58, 107, 0.06);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--navy); color: var(--white);
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy); color: var(--white);
}
.btn-gold {
  background: var(--gold); color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-white {
  background: var(--white); color: var(--navy);
}
.btn-white:hover { background: var(--gray-bg); }

/* ---------- 特色列表（带序号） ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
}
.feature-item h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; font-weight: 700; }
.feature-item p { font-size: 0.92rem; color: var(--text-light); }

/* ---------- 流程步骤 ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.step-card {
  text-align: center; padding: 36px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  position: relative; z-index: 1;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-light); }

/* ---------- 案例卡片 ---------- */
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.case-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold);
  overflow: hidden;
}
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 24px; }
.case-type {
  display: inline-block;
  background: rgba(26, 58, 107, 0.08);
  color: var(--navy);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 10px;
}
.case-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.case-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- 表单 ---------- */
.form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  max-width: 680px; margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.92rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- 联系信息 ---------- */
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 60px;
}
.contact-info-item {
  text-align: center; padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}
.contact-info-item .icon {
  width: 56px; height: 56px;
  background: rgba(26, 58, 107, 0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 16px;
}
.contact-info-item h3 { font-size: 0.88rem; color: var(--text-light); font-weight: 500; margin-bottom: 6px; }
.contact-info-item p { font-size: 1rem; color: var(--navy); font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- 响应式导航 ---------- */
.mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 12px 24px;
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--navy); font-weight: 600; }
.mobile-nav a.active::before { content: '▸ '; color: var(--gold); }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* 成功提示 */
.form-success {
  display: none;
  background: #f0f9f0;
  border: 1px solid #68c87a;
  border-radius: 6px;
  padding: 16px 20px;
  color: #2d8a4e;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* 服务详情页专属 */
.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.service-detail-text p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.8; }
.service-detail-list { margin-bottom: 24px; }
.service-detail-list li {
  padding: 8px 0; font-size: 0.92rem; color: var(--text-body);
  border-bottom: 1px solid var(--gray-border);
  display: flex; align-items: center; gap: 10px;
}
.service-detail-list li::before { content: '✓'; color: var(--gold); font-weight: 800; }
.service-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px; height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--gold);
  box-shadow: var(--shadow-lg);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-grid.reverse { direction: ltr; }
  .service-visual { height: 220px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.9rem; }
  .section { padding: 60px 0; }
  .form-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.7rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
