/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a6fd9;
  --primary-dark: #0d4a8a;
  --primary-light: #eaf2fb;
  --accent: #00a8e8;
  --text: #2c3e50;
  --text-light: #6b7c8c;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --card: #ffffff;
  --border: #e3e8ee;
  --shadow: 0 2px 12px rgba(26, 111, 217, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 111, 217, 0.15);
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== 网站头部 ========== */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.header-top { background: #fff; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.header-top .header-inner { display: flex; align-items: center; height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #1a6fd9, #0d4a8a); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.brand-logo { height: 50px; width: auto; border-radius: 6px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 20px; font-weight: 800; color: #1a3a5c; letter-spacing: 1px; }
.brand-en { font-size: 12px; color: #9aa8b6; letter-spacing: 3px; margin-top: 3px; }
.header-nav { background: #1a6fd9; }
.header-nav .header-inner { display: flex; align-items: center; height: 48px; }
.nav-links { display: flex; list-style: none; }
.nav-links a { display: block; padding: 0 26px; line-height: 48px; color: #fff; font-size: 15px; font-weight: 500; transition: background 0.2s; }
.nav-links a:hover { background: rgba(255,255,255,0.15); }
.nav-links a.active { background: #0d4a8a; }
@media (max-width: 600px) {
  .header-top .header-inner { height: 64px; }
  .brand-name { font-size: 19px; letter-spacing: 1px; }
  .brand-en { font-size: 10px; }
  .brand-icon { width: 38px; height: 38px; font-size: 14px; }
  .header-nav .header-inner { overflow-x: auto; }
  .nav-links a { padding: 0 16px; font-size: 13px; white-space: nowrap; }
}

/* ========== Hero 横幅 ========== */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(135deg, #f4f7fa 0%, #eaf2fb 100%),
    radial-gradient(circle, rgba(26,111,217,0.07) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  z-index: -1;
}
.hero-text { padding-left: 10px; }
.hero-en { display: block; color: var(--accent); font-size: 13px; letter-spacing: 3px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.25; margin-bottom: 20px; color: var(--text); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 16px; color: var(--text-light); margin-bottom: 32px; max-width: 480px; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 4px;
  font-weight: 600; font-size: 15px; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(26,111,217,0.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero-img-wrap { display: flex; justify-content: center; align-items: center; }
.hero-img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }

/* ========== 关于简介区 ========== */
.about-section {
  max-width: 1200px; margin: 0 auto; padding: 70px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.sec-line { display: block; width: 40px; height: 3px; background: var(--primary); margin-bottom: 18px; }
.about-left h2 { font-size: 30px; margin-bottom: 18px; color: var(--text); }
.about-left p { color: var(--text-light); margin-bottom: 24px; }
.more-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.more-link:hover { gap: 12px; }
.about-right img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ========== 文章/产品区 ========== */
.section { max-width: 1200px; margin: 0 auto; padding: 20px 24px 70px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; color: var(--text); position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 24px; background: var(--primary); border-radius: 2px; }
.section-head a { color: var(--primary); font-weight: 600; }
.section-head a:hover { text-decoration: underline; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.post-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); padding: 4px 12px; border-radius: 4px;
  margin-bottom: 12px; align-self: flex-start;
}
.post-body h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.5; color: var(--text); }
.post-body p { color: var(--text-light); font-size: 14px; flex: 1; margin-bottom: 16px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 12px; }
.post-meta .read { color: var(--primary); font-weight: 600; }
.post-meta .read:hover { text-decoration: underline; }

/* ========== 文章详情页 ========== */
.article-page { max-width: 800px; margin: 0 auto; padding: 50px 24px 70px; }
.back-btn { display: inline-block; margin-bottom: 24px; color: var(--primary); font-weight: 600; }
.back-btn:hover { text-decoration: underline; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 32px; line-height: 1.4; margin: 12px 0 8px; color: var(--text); }
.article-meta { color: var(--text-light); font-size: 14px; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); }
.article-content { font-size: 16px; }
.article-content h3 { font-size: 22px; margin: 30px 0 14px; color: var(--primary); }
.article-content p { margin-bottom: 16px; color: var(--text-light); }
.article-content img { border-radius: var(--radius); margin: 16px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-nav a { color: var(--primary); font-weight: 600; max-width: 48%; }
.post-nav a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 80px 24px; color: var(--text-light); }
.empty a { color: var(--primary); }

/* ========== 关于页 ========== */
.about-page { max-width: 800px; margin: 0 auto; padding: 60px 24px 70px; }
.about-page h1 { font-size: 32px; margin-bottom: 24px; color: var(--text); }
.about-page h1 em { font-style: normal; color: var(--primary); }
.about-page p { color: var(--text-light); margin-bottom: 16px; }
.about-page h2 { font-size: 22px; margin: 34px 0 14px; color: var(--primary); }
.about-page ul { color: var(--text-light); padding-left: 22px; margin-bottom: 16px; }
.about-page li { margin-bottom: 8px; }
.about-page code { background: var(--primary-light); padding: 2px 8px; border-radius: 4px; color: var(--primary); font-family: monospace; }

/* ========== 表单页 ========== */
.form-page { max-width: 680px; margin: 0 auto; padding: 60px 24px 70px; }
.form-page h1 { font-size: 28px; margin-bottom: 28px; color: var(--text); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.form-group label .hint { font-weight: 400; color: var(--text-light); font-size: 13px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,111,217,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; gap: 14px; margin-top: 28px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 4px; display: none; }
.form-msg.ok { display: block; background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); }
.form-msg.err { display: block; background: #fde8e8; color: #d32f2f; border: 1px solid #d32f2f; }
.img-preview { margin-top: 12px; border-radius: 4px; max-height: 200px; border: 1px solid var(--border); }

/* ========== 分类卡片 ========== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.category-card { background: #fff; border-radius: 8px; padding: 30px 24px; box-shadow: var(--shadow); transition: all 0.25s; display: flex; flex-direction: column; border-top: 3px solid transparent; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--primary); }
.cat-icon { font-size: 40px; margin-bottom: 16px; }
.category-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.category-card p { color: var(--text-light); font-size: 14px; flex: 1; margin-bottom: 14px; }
.cat-count { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.cat-more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ========== 面包屑 ========== */
.crumb { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.crumb a { color: var(--primary); }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 8px; color: #ccc; }

/* ========== 页脚 ========== */
.footer { background: #0d2e5a; color: #b8c5d6; padding: 40px 24px 30px; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.footer-info p { margin-bottom: 8px; line-height: 1.8; }
.footer-info a { color: #fff; }
.footer-contact .tel { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-contact .tel-label { font-size: 13px; color: #8ba3c4; margin-bottom: 4px; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; color: #8ba3c4; }
.footer-bottom a { color: #fff; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 40px 24px 50px; text-align: center; }
  .hero-text { padding-left: 0; }
  .hero h1 { font-size: 30px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-section { grid-template-columns: 1fr; padding: 40px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .section-head h2 { font-size: 22px; }
}