:root {
  --c-primary: #185fa5;
  --c-primary-dark: #0c447c;
  --c-primary-soft: #e6f1fb;
  --c-accent: #534ab7;
  --c-accent-soft: #eeedfe;
  --c-text: #1f2328;
  --c-text-2: #57606a;
  --c-text-3: #8c959f;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f8fa;
  --c-border: #dfe3e8;
  --radius: 10px;
  --wrap: 1080px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  /* 内容不足一屏时把页脚压到底部，否则短页面（关于我们等）页脚会悬在中间、下方留白 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
.site-footer { flex: 0 0 auto; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--c-text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  letter-spacing: .5px;
}
.brand-name { font-size: 17px; letter-spacing: .3px; }
.brand-logo { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--c-text-2);
  font-size: 15px;
}
.site-nav a:hover { background: var(--c-bg-alt); color: var(--c-text); text-decoration: none; }
.site-nav a.is-active { color: var(--c-primary); background: var(--c-primary-soft); font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  padding: 0 9px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--c-text-2); border-radius: 2px; }

/* ---------- 通用区块 ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title { font-size: 26px; margin-bottom: .4em; }
.section-lead { max-width: 720px; color: var(--c-text-2); margin-bottom: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head .section-title { margin: 0; }
.more { font-size: 14px; white-space: nowrap; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-ghost { background: #fff; border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- 首页首屏 ---------- */

.hero {
  background: linear-gradient(180deg, #f2f7fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 78px 0 72px;
  text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 18px; letter-spacing: .5px; }
.hero-sub { font-size: 16px; color: var(--c-text-2); max-width: 720px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 能力卡片 ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--c-text-2); margin: 0 0 4px; }
.feature-card.is-highlight { border-color: #ef9f27; background: #fffdf7; }
.feature-card.is-highlight h3 { color: #854f0b; }
.feature-card.is-highlight p { color: #7a5a22; }

/* ---------- 案例 ---------- */

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.case-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .09); }
.case-cover { aspect-ratio: 16 / 9; background: var(--c-bg-alt); overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover-empty { background: linear-gradient(135deg, var(--c-primary-soft), var(--c-accent-soft)); }
.case-body { padding: 16px 18px 20px; }
.case-body h3 { font-size: 16px; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--c-text-2); margin: 8px 0 0; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 12px;
}

/* ---------- 新闻列表 ---------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-border); }
.news-list li { border-bottom: 1px solid var(--c-border); }
.news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  color: var(--c-text);
}
.news-list a:hover { text-decoration: none; color: var(--c-primary); }
.news-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { color: var(--c-text-3); font-size: 13px; white-space: nowrap; }

/* ---------- 内页 ---------- */

.page-head {
  padding: 54px 0 34px;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}
.page-head h1 { font-size: 28px; margin-bottom: 8px; }
.page-head p { color: var(--c-text-2); margin: 0; max-width: 720px; }

.content-narrow { max-width: 800px; }

.article-body { font-size: 15.5px; }
.article-body h1 { font-size: 24px; }
.article-body h2 { font-size: 20px; margin-top: 1.6em; }
.article-body h3 { font-size: 17px; margin-top: 1.4em; }
.article-body img { border-radius: 8px; margin: 1.2em 0; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote {
  margin: 1.2em 0;
  padding: 10px 18px;
  border-left: 3px solid var(--c-primary);
  background: var(--c-bg-alt);
  color: var(--c-text-2);
}
.article-meta { color: var(--c-text-3); font-size: 13px; margin-bottom: 22px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 14px;
}

/* ---------- 分页 ---------- */

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px;
  padding: 7px 11px;
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-text-2);
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.pagination .is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination .is-disabled { opacity: .5; }

/* ---------- 联系 / 留言表单 ---------- */

.contact-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--c-bg-alt);
}
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 13px; color: var(--c-text-3); margin-top: 14px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; font-size: 15px; word-break: break-all; }

.form-grid { display: grid; gap: 18px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--c-text-2); }
.form-row .req { color: #d1242f; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24, 95, 165, .12); }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-box {
  flex: none;
  min-width: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px dashed var(--c-border);
  border-radius: 8px;
  background: var(--c-bg-alt);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--c-primary-dark);
  cursor: pointer;
  user-select: none;
}
.captcha-box:hover { border-color: var(--c-primary); }
.captcha-hint { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { font-size: 14px; margin: 0; }
.form-status.is-error { color: #d1242f; }
.form-status.is-success { color: #1a7f37; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 页脚 ---------- */

.site-footer { background: #14304d; color: #c6d3e0; margin-top: 72px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.footer-name { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-note { font-size: 13px; max-width: 480px; margin: 0; }
.footer-contact { font-size: 14px; line-height: 2; }
.footer-contact a { color: #c6d3e0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 22px;
  font-size: 13px;
  color: #93a6ba;
  flex-wrap: wrap;
}
.footer-bottom-inner a { color: #93a6ba; }

/* ---------- 错误页 ---------- */

.error-page { padding: 110px 0; text-align: center; }
.error-code { font-size: 64px; font-weight: 600; color: var(--c-primary); line-height: 1; margin-bottom: 14px; }
.error-page p { color: var(--c-text-2); }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .feature-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 8px; }

  .feature-grid, .case-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 21px; }
  .hero h1 { font-size: 24px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .page-head { padding: 36px 0 24px; }
  .page-head h1 { font-size: 22px; }
  .news-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .news-title { white-space: normal; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .captcha-row { flex-direction: column; }
  .captcha-box { min-height: 46px; }
  .form-actions .btn { width: 100%; text-align: center; }
  .article-nav { flex-direction: column; gap: 8px; }
}
