/* =========================================================
   正合智企 · 企业官网设计系统
   配色：深藏青 #0B1830 + 暖金 #C9A24B
   字体：Noto Serif SC（标题衬线）/ Noto Sans SC（正文）
   本文件同时用于静态站与 WordPress 主题（style.css）
   ========================================================= */

:root {
  /* 品牌色 */
  --navy-900: #0B1830;   /* 暗部 / 页脚 / Hero */
  --navy-800: #0E1F3D;   /* 深蓝字 */
  --navy-700: #12294d;
  --gold-500: #C9A24B;   /* 暖金主色 */
  --gold-300: #E4C886;   /* 亮金点缀 */
  /* 中性 */
  --bg-soft: #F4F6FA;    /* 浅底 */
  --ink: #0E1F3D;        /* 标题 */
  --body: #5C6B85;       /* 正文灰 */
  --body-soft: #9AA7C0;  /* 次要灰 */
  --line: #E2E7F0;       /* 描边 */
  --white: #FFFFFF;
  /* 排版 */
  --serif: "Noto Serif SC", "Source Han Serif CN", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  /* 尺寸 */
  --container: 1344px;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 18px 48px rgba(11, 24, 48, 0.10);
  --shadow-sm: 0 8px 24px rgba(11, 24, 48, 0.08);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 96px;
  padding-right: 96px;
}

/* 区段 */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: 2px;
  color: var(--gold-500); margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--gold-300); }
.h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 32px; line-height: 1.3; color: var(--ink);
}
.section--navy .h2 { color: var(--white); }
.lead { margin-top: 16px; font-size: 16px; color: var(--body); }
.section--navy .lead { color: var(--body-soft); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold-500); color: var(--white); }
.btn--gold:hover { background: #b8923f; }
.btn--ghost { background: transparent; color: var(--gold-300); border-color: rgba(196,162,75,.5); }
.btn--ghost:hover { background: rgba(196,162,75,.12); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: #eef2f8; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; }
.logo__name { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy-800); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; color: var(--body); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--gold-500); }
.nav__cta { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B1830 0%, #0E1F3D 100%);
  color: var(--white);
}
.hero__inner {
  display: flex; align-items: center; gap: 64px;
  padding: 100px 0; min-height: 480px;
}
.hero__copy { flex: 1; }
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 44px; line-height: 1.25; margin: 14px 0 18px;
}
.hero__sub { font-size: 16px; color: var(--body-soft); max-width: 560px; }
.hero__actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero__visual {
  width: 480px; height: 360px; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__stats { display: flex; gap: 48px; margin-top: 36px; }
.hero__stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-300); }
.hero__stat span { font-size: 13px; color: var(--body-soft); }

/* 居中 Hero（内页） */
.hero--center { text-align: center; }
.hero--center .hero__inner { flex-direction: column; align-items: center; text-align: center; }
.hero--center .hero__sub { margin-left: auto; margin-right: auto; }

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

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.section--soft .card { background: var(--white); }
.section--navy .card { background: rgba(255,255,255,.04); box-shadow: none; border: 1px solid rgba(255,255,255,.08); }
.card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
.card__title { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.section--navy .card__title { color: var(--white); }
.card__text { font-size: 14px; color: var(--body); }
.section--navy .card__text { color: var(--body-soft); }

/* 两栏 */
.two-col { display: flex; gap: 48px; align-items: flex-start; }
.two-col__main { flex: 1; }
.two-col__side { width: 420px; flex: none; }
.panel {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 32px;
}
.panel h3 { font-family: var(--serif); font-size: 18px; color: var(--gold-300); margin-bottom: 16px; }
.panel li { list-style: none; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--body-soft); }
.panel li:first-of-type { border-top: 0; }
.panel li b { color: var(--white); font-weight: 500; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.step__num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold-500); }
.step__title { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 12px 0 8px; }
.step__text { font-size: 14px; }

/* 数据带 */
.stats-band { display: flex; gap: 64px; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: 40px; color: var(--gold-300); display: block; }
.stat span { font-size: 14px; color: var(--body-soft); }

/* 价格 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.price--featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow); position: relative; }
.price__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--white); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px; white-space: nowrap;
}
.price__name { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.price__desc { font-size: 13px; color: var(--body); margin: 6px 0 18px; min-height: 38px; }
.price__amount { font-family: var(--serif); font-size: 40px; color: var(--navy-800); }
.price__amount small { font-size: 15px; color: var(--body); font-family: var(--sans); }
.price__list { list-style: none; margin: 22px 0 28px; flex: 1; }
.price__list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); display: flex; gap: 10px; }
.price__list li::before { content: "✓"; color: var(--gold-500); font-weight: 700; }
.price .btn { width: 100%; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 700;
}
.faq__q .ico { color: var(--gold-500); font-size: 22px; transition: transform .2s; flex: none; }
.faq__item.is-open .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--body); }
.faq__a p { padding: 0 0 22px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); }
.contact-wrap { display: flex; gap: 48px; align-items: flex-start; }
.contact-info { width: 360px; flex: none; }
.contact-info p { margin-bottom: 14px; }
.contact-form { flex: 1; }

/* CTA 条 */
.cta-band {
  background: var(--navy-900); color: var(--white); text-align: center;
  padding: 80px 0;
}
.cta-band h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: var(--body-soft); margin-bottom: 26px; }

/* 页脚 */
.site-footer { background: var(--navy-900); color: var(--body-soft); padding: 64px 0 32px; }
.footer-top { display: flex; gap: 48px; padding-bottom: 40px; flex-wrap: wrap; }
.footer-brand { width: 360px; }
.footer-brand .logo__name { color: var(--white); }
.footer-brand p { font-size: 13px; margin: 14px 0; }
.footer-col { width: 160px; }
.footer-col h4 { color: var(--gold-300); font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: var(--body-soft); }
.footer-col a:hover { color: var(--white); }
.footer-divider { height: 1px; background: rgba(255,255,255,.12); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-size: 12px; color: var(--body-soft); flex-wrap: wrap; gap: 8px;
}

/* 响应式 */
@media (max-width: 1100px) {
  .container { padding-left: 48px; padding-right: 48px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
  .hero__visual { width: 380px; height: 300px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero__inner { flex-direction: column; padding: 64px 0; }
  .hero__visual { width: 100%; height: 240px; }
  .hero__title { font-size: 34px; }
  .two-col, .contact-wrap { flex-direction: column; }
  .two-col__side, .contact-info { width: 100%; }
  .grid--3, .grid--2, .steps, .price-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding-left: 24px; padding-right: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}

/* 文章列表 / 详情（博客） */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb { display: block; width: 100%; height: 180px; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12px; color: var(--body-soft); margin-bottom: 10px; display: flex; gap: 6px; }
.post-card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink); margin-bottom: 10px; }
.post-card__title a:hover { color: var(--gold-500); }
.post-card__excerpt { font-size: 14px; color: var(--body); flex: 1; margin-bottom: 16px; }
.post-card__more { font-size: 14px; font-weight: 500; color: var(--gold-500); }

.article { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--body-soft); }
.article p { margin-bottom: 20px; font-size: 16px; line-height: 1.9; color: var(--ink); }
.article h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); margin: 36px 0 16px; }
.article h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); margin: 28px 0 12px; }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article li { margin-bottom: 8px; font-size: 16px; }
.article blockquote { border-left: 3px solid var(--gold-500); padding: 6px 0 6px 20px; margin: 0 0 20px; color: var(--body); font-style: italic; }
.article img { border-radius: var(--radius-sm); margin: 8px 0 24px; }
.article a { color: var(--gold-500); text-decoration: underline; }
.article-nav { margin-top: 40px; }

.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--body); }
.pagination .page-numbers.current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold-500); color: var(--gold-500); }
.empty { color: var(--body-soft); text-align: center; padding: 40px 0; }
