/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #1f2937;
  line-height: 1.7;
  background: #fff;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部与导航 ===== */
.site-header {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { color: #fff; font-size: 20px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { color: #cbd5e1; font-size: 15px; }
.main-nav a:hover { color: #fff; text-decoration: none; }

/* ===== 主横幅 ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { font-size: 38px; margin-bottom: 16px; }
.hero-sub { font-size: 18px; opacity: 0.92; margin-bottom: 28px; }
.btn {
  display: inline-block;
  background: #facc15;
  color: #1f2937;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { background: #fde047; text-decoration: none; }

/* ===== 区块 ===== */
.section { padding: 64px 0; }
.section-alt { background: #f8fafc; }
.section h2 { font-size: 28px; text-align: center; margin-bottom: 36px; }

/* ===== 服务卡片 ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card h3 { font-size: 19px; margin-bottom: 12px; color: #1e3a8a; }

/* ===== 文章预览 ===== */
.article-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
}
.article-preview h3 { font-size: 22px; margin-bottom: 8px; }
.article-preview h3 a { color: #1e3a8a; }
.meta { color: #6b7280; font-size: 14px; margin-bottom: 14px; }
.read-more { font-weight: 600; }

/* ===== 联系方式 ===== */
.contact-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 32px;
}
.contact-box p { margin-bottom: 10px; font-size: 16px; }

/* ===== 文章页 ===== */
.article-main { padding: 40px 20px 64px; max-width: 820px; }
.breadcrumb { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.article-main h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.35; }
.article-main article section { margin-top: 32px; }
.article-main h2 { font-size: 23px; color: #1e3a8a; margin-bottom: 14px; }
.article-main p { margin-bottom: 14px; }
.article-main ul { margin: 0 0 16px 22px; }
.article-main li { margin-bottom: 8px; }
.article-main code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 14px;
}
.cta-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 24px;
  border-radius: 6px;
  margin-top: 40px;
}
.cta-box h2 { color: #1e3a8a; font-size: 20px; margin-bottom: 8px; }

/* ===== 页脚 ===== */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 32px 0; text-align: center; }
.site-footer p { font-size: 14px; margin-bottom: 6px; }
.site-footer a { color: #93c5fd; }

/* ===== 通用图片 ===== */
img { max-width: 100%; height: auto; display: block; }

/* ===== 首页公司简介（含图） ===== */
.intro { display: flex; gap: 40px; align-items: center; }
.intro-img { flex: 0 0 42%; }
.intro-img img { border-radius: 12px; }
.intro-text { flex: 1; }
.intro-text h2 { font-size: 26px; color: #1e3a8a; margin-bottom: 16px; }
.intro-text p { margin-bottom: 12px; }
.article-cover { width: 100%; border-radius: 12px; margin: 18px 0 30px; }

/* ===== 产品图标 ===== */
.prod-icon { width: 56px; height: 56px; margin-bottom: 14px; }

/* ===== 新闻列表 ===== */
.news-list { margin-top: 24px; }
.news-item { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid #e5e7eb; }
.news-thumb { flex: 0 0 280px; width: 280px; border-radius: 10px; }
.news-body { flex: 1; }
.news-body h2 { font-size: 21px; color: #1e3a8a; margin-bottom: 6px; }

/* ===== 案例网格 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.case-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.case-card img { width: 100%; }
.case-body { padding: 20px; }
.case-body h2 { font-size: 19px; color: #1e3a8a; margin-bottom: 6px; }

/* ===== 响应式补充 ===== */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .intro { flex-direction: column; }
  .intro-img { flex: none; width: 100%; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-thumb { flex: none; width: 100%; }
  .hero h1 { font-size: 28px; }
  .main-nav ul { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .main-nav a { font-size: 14px; }
  .nav-bar { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
}
