:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --border: #e5e7eb;
  --radius: 12px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-menu {
  display: flex;
  gap: 24px;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}
.lang-switch {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  margin-left: 14px;
}
.lang-switch:hover { background: rgba(37, 99, 235, 0.08); }

/* 首屏 */
.hero {
  position: relative;
  background-image: url('/uploads/banner/hero.png');
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
  min-height: 72vh;
  padding: 70px 0;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.85); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ghost:hover { background: rgba(37, 99, 235, 0.08); }

/* 区块 */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* 网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 产品卡片 */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.card-icon { font-size: 40px; margin-bottom: 14px; }
.card-title { font-size: 19px; margin-bottom: 8px; }
.card-text { color: var(--text-light); font-size: 14px; }

/* 应用 */
.app-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.app-title { font-size: 18px; margin-bottom: 8px; }
.app-text { color: var(--text-light); font-size: 14px; }
.app-icon { font-size: 38px; margin-bottom: 12px; }

/* 产品卡可点击进入详情页 */
.product-card { display: block; text-decoration: none; color: inherit; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

/* 联系 */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info p { margin-bottom: 12px; font-size: 15px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* 页脚 */
.footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}

/* ===== 内页通用 ===== */
.page-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* 数据成就 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
}
.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}
.stat-label { color: var(--text-light); font-size: 14px; margin-top: 6px; }

/* 时间轴 */
.timeline { position: relative; margin-top: 30px; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 26px 18px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}
.timeline-year { font-weight: 700; color: var(--primary); }
.timeline-text { color: var(--text-light); font-size: 14px; }

/* 双栏图文 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split h3 { font-size: 22px; margin-bottom: 12px; }
.split p { color: var(--text-light); margin-bottom: 12px; }
.split-img {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
}

/* 产品详情 */
.product-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.product-detail .card-icon { font-size: 44px; margin: 0; }
.product-detail h3 { font-size: 19px; margin-bottom: 8px; }
.product-detail p { color: var(--text-light); font-size: 14px; }
.product-tags { margin-top: 10px; }
.product-tags span {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 6px 0 0;
}

/* 首页：大类概览卡 */
.cat-card { text-decoration: none; color: inherit; display: block; }
.cat-card-main { display: block; text-decoration: none; color: inherit; }
.cat-download { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cat-download:hover { text-decoration: underline; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 14px; }
.cat-chip {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}
.cat-chip.muted { opacity: 0.7; }
.cat-more { font-size: 14px; font-weight: 600; color: var(--primary); }

/* 产品页：三级目录 */
.prod-cat { margin-bottom: 48px; }
.prod-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.prod-cat-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  white-space: nowrap;
}
.btn-catalog:hover { background: var(--primary); color: #fff; }
.prod-cat-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--primary);
  display: inline-block;
}
.prod-sub { margin-top: 26px; }
.prod-sub-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

/* 后台：分类管理 */
.cat-mgr { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: #fafafa; }
.cat-mgr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cat-mgr-head .title { font-weight: 700; font-size: 15px; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cat-sub-row { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 12px; }
.cat-sub-row button { padding: 4px 8px; font-size: 12px; }
.cat-add-sub { margin-top: 4px; }
.cat-mgr-head .cat-edit { display: flex; gap: 6px; flex: 1; min-width: 0; }
.cat-mgr-head .cat-edit input { margin: 0; }
.cat-mgr-head .cat-mgr-btns { display: flex; gap: 6px; flex-shrink: 0; }
.cat-sub-row .cat-sub-edit { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-sub-row .cat-sub-edit input { width: auto; flex: 1; min-width: 80px; padding: 4px 8px; font-size: 13px; }
.cat-sub-row .cat-sub-btns { display: flex; gap: 4px; flex-shrink: 0; }
.item-btns { display: flex; gap: 8px; flex-shrink: 0; }
.item-btns button { padding: 6px 14px; font-size: 13px; }

/* 地图占位 */
.map-placeholder {
  background: #e5e7eb;
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 博客 ===== */
.blog-list { display: grid; gap: 22px; }
.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}
.blog-thumb {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.blog-cat {
  background: #eff6ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.blog-date { color: var(--text-light); }
.blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.blog-excerpt { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.blog-more { color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.blog-more:hover { text-decoration: underline; }

/* 文章详情页 */
.post-article { max-width: 760px; margin: 0 auto; }
.post-cover { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; background: #e5e7eb; }
.post-cover-icon { display: flex; align-items: center; justify-content: center; font-size: 88px; height: 200px; background: #f3f4f6; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-meta .blog-cat { background: #eff6ff; color: var(--primary); font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.post-meta .blog-date { color: var(--text-light); font-size: 13px; }
.post-title { font-size: 28px; line-height: 1.35; margin-bottom: 20px; }
.post-body { font-size: 16px; line-height: 1.9; color: #374151; }
.post-body p { margin-bottom: 18px; }

@media (max-width: 768px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-thumb { min-height: 160px; }
  .post-cover { height: 200px; }
  .post-title { font-size: 22px; }
}

/* 认证展示 */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.cert-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.cert-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
}
.cert-label {
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.cert-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cert-strip img {
  height: 90px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  opacity: .92;
  transition: opacity .2s;
}
.cert-strip img:hover { opacity: 1; }

/* 移动端 */
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-img { height: 260px; }
  .cert-strip img { height: 72px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 4px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 10px 0; }

  .hero { min-height: 56vh; padding: 48px 0; }
  .hero-title { font-size: 26px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
}
