/* ==========================================================================
   Shared base — 两站点共用：重置、排版、按钮、表单、通用组件
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 10px 16px; background: #fff; color: #111;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap, 1200px); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted, #6b7a90); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: var(--btn-radius, 8px);
  background: var(--brand, #1e4fa3); color: #fff; font-weight: 600; line-height: 1.2;
  text-align: center; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-outline, .btn-ghost {
  background: transparent; border-color: var(--line-strong, currentColor); color: var(--ink, inherit);
}
.btn-outline:hover, .btn-ghost:hover { background: var(--brand, #1e4fa3); color: #fff; }
.btn-gold { background: var(--gold, #c9a24b); color: #1b1408; }
.btn-primary { background: var(--brand, #1e4fa3); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 4px;
  background: var(--tag-bg, #eef2f9); color: var(--tag-ink, #43536b);
  font-size: 11.5px; line-height: 1.8; white-space: nowrap;
}
.tag-blue { background: var(--tag-blue-bg, #e8effc); color: var(--tag-blue-ink, #1e4fa3); }
.tag-red { background: var(--tag-red-bg, #fbeae8); color: var(--tag-red-ink, #a8231a); }
.tag-gold { background: rgba(201,162,75,.16); color: var(--gold-deep, #8a6a1f); }
.tag-ok { background: #e9f3ec; color: #2e7d4f; }
.tag-warn { background: #fbf3e2; color: #9a6a10; }

.prose { line-height: 1.9; font-size: 15.5px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; line-height: 1.45; }
.prose h2 { font-size: 1.35em; }
.prose h3 { font-size: 1.12em; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.35em; list-style: revert; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--brand, #1e4fa3); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 700; }
.prose table { margin: 1.2em 0; font-size: .92em; }
.prose th, .prose td { border: 1px solid var(--line, #e2e7f0); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2, #f5f7fb); font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--gold, #c9a24b); padding-left: 16px; color: var(--muted, #6b7a90); }
.prose .notice { margin-top: 1.4em; }
.prose img { border-radius: 8px; }
.prose.dropcap > p:first-of-type::first-letter {
  float: left; font-size: 3.1em; line-height: .9; padding: .08em .14em 0 0; color: var(--brand, #1e4fa3);
}

.notice { border: 1px solid var(--line, #e2e7f0); border-left-width: 4px; border-radius: 7px; padding: 14px 18px; font-size: 13.5px; line-height: 1.8; }
.notice b { margin-right: 4px; }
.notice-red { background: #fdf3f1; border-color: #eccdc7; border-left-color: #c0392b; color: #7d2b22; }
.notice-yellow, .notice-warn { background: #fdf8e9; border-color: #ecdfb9; border-left-color: #b07a1e; color: #74551b; }
.notice-info, .notice-blue { background: #eef4fd; border-color: #cfdff4; border-left-color: #1e4fa3; color: #26456f; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label, .lead-form .consent { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.lead-form label span { color: #c0392b; }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line-strong, #cdd6e4); border-radius: 7px;
  background: var(--input-bg, #fff); font-size: 14px; font-weight: 400;
}
.lead-form textarea { resize: vertical; min-height: 84px; }
.lead-form .consent { display: flex; align-items: flex-start; gap: 7px; font-weight: 400; color: var(--muted, #6b7a90); }
.lead-form .consent input { width: auto; margin: 3px 0 0; }
.lead-form .consent a { color: var(--brand, #1e4fa3); text-decoration: underline; }
.form-note { font-size: 11.5px; color: var(--muted, #6b7a90); line-height: 1.6; }
.form-msg { font-size: 12.5px; margin-top: 8px; min-height: 1.2em; }
.form-msg.ok { color: #1e8e5a; }
.form-msg.err { color: #c0392b; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted, #6b7a90); }

.cms-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  z-index: 9999; max-width: 90vw; padding: 10px 18px; border-radius: 8px;
  background: rgba(17,24,39,.94); color: #fff; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .2s ease;
}
.cms-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cms-block-error { margin: 20px auto; max-width: 900px; padding: 16px; border: 1px dashed #c0392b; background: #fdf3f1; color: #7d2b22; font-size: 13px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 30px 0 10px; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line-strong, #cdd6e4);
  border-radius: 6px; background: var(--card-bg, #fff); font-size: 13px;
}
.page-btn:hover { border-color: var(--brand, #1e4fa3); color: var(--brand, #1e4fa3); }
.page-btn.current { background: var(--brand, #1e4fa3); border-color: var(--brand, #1e4fa3); color: #fff; }
.page-btn.disabled { opacity: .45; pointer-events: none; }
.page-total { margin-left: auto; font-size: 12px; color: var(--muted, #6b7a90); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 4px;
  border: 1px solid var(--line, #e2e7f0); background: var(--card-bg, #fff);
  font-size: 12.5px; color: var(--ink-2, #43536b); line-height: 1.6;
}
.chip:hover, .chip.on { border-color: var(--brand, #1e4fa3); color: var(--brand, #1e4fa3); background: var(--brand-tint, #eef4fd); }
.filter-count { margin-top: 14px; font-size: 12px; color: var(--muted, #6b7a90); }

.faq-section { padding: 46px 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.faq-item { border: 1px solid var(--line, #e2e7f0); border-radius: 8px; background: var(--card-bg, #fff); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px;
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--brand, #1e4fa3); }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 16px; color: var(--ink-2, #43536b); font-size: 14px; line-height: 1.85; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.stats-grid > div { padding: 22px 18px; border: 1px solid var(--line, #e2e7f0); border-radius: 10px; background: var(--card-bg, #fff); text-align: center; }
.stats-grid dt { font-size: 30px; font-weight: 800; color: var(--brand, #1e4fa3); line-height: 1.15; }
.stats-grid dd { margin-top: 6px; font-size: 13px; color: var(--ink-2, #43536b); }
.stats-grid span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted, #6b7a90); }

.steps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; counter-reset: step; }
.steps-list li { position: relative; padding: 20px 18px; background: var(--card-bg, #fff); border: 1px solid var(--line, #e2e7f0); border-radius: 9px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint, #eef4fd); color: var(--brand, #1e4fa3); font-weight: 800; font-size: 12px; margin-bottom: 10px; }
.steps-list b { display: block; font-size: 15px; margin-bottom: 5px; }
.steps-list p { font-size: 12.5px; color: var(--muted, #6b7a90); line-height: 1.75; }

.cta-banner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 36px 38px; border-radius: 12px; background: var(--brand, #1e4fa3); color: #fff; }
.cta-banner h2 { font-size: 24px; margin-bottom: 6px; }
.cta-banner p { opacity: .85; font-size: 14px; }
.cta-banner small { display: block; margin-top: 8px; opacity: .65; font-size: 11.5px; }
.cta-banner .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-banner.gold { background: linear-gradient(135deg, #c9a24b, #a8802f); color: #211808; }
.cta-banner.dark { background: #131b2b; }
.cta-banner.light { background: var(--surface-2, #f5f7fb); color: var(--ink, #1c2b3a); border: 1px solid var(--line, #e2e7f0); }

.lead-section { padding: 46px 0; }
.lead-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; padding: 38px; border-radius: 14px; background: var(--card-bg, #fff); border: 1px solid var(--line, #e2e7f0); box-shadow: var(--shadow, 0 12px 36px rgba(20,30,50,.07)); }
.lead-copy h2 { font-size: 27px; margin-bottom: 12px; }
.lead-copy p { color: var(--ink-2, #43536b); line-height: 1.8; margin-bottom: 18px; }
.lead-copy ul { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2, #43536b); }
.lead-copy li::before { content: "✓"; color: #1e8e5a; font-weight: 800; margin-right: 7px; }

.detail-sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 20px; border: 1px solid var(--line, #e2e7f0); border-radius: 10px; background: var(--card-bg, #fff); }
.side-card h3 { font-size: 15px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line, #e2e7f0); }
.side-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.side-links a { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2, #43536b); }
.side-links a:hover { color: var(--brand, #1e4fa3); }
.side-links span { color: var(--muted, #6b7a90); font-size: 11px; }

.download-section { padding: 40px 0; }
.download-section > h2 { font-size: 23px; margin-bottom: 16px; }
.download-list { display: flex; flex-direction: column; gap: 8px; }
.download-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line, #e2e7f0); border-radius: 8px; background: var(--card-bg, #fff); }
.dl-ico { flex: none; padding: 2px 7px; border-radius: 4px; background: #fbeae8; color: #a8231a; font-size: 10.5px; font-weight: 800; }
.dl-name { flex: 1; font-size: 13.5px; }
.dl-meta { font-size: 11.5px; color: var(--muted, #6b7a90); }

.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.client-card { padding: 16px; border: 1px solid var(--line, #e2e7f0); border-radius: 8px; background: var(--card-bg, #fff); }
.client-card b { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.client-card span { display: inline-block; font-size: 10.5px; color: var(--brand, #1e4fa3); background: var(--brand-tint, #eef4fd); padding: 1px 7px; border-radius: 3px; }
.client-card p { margin-top: 7px; font-size: 11.5px; color: var(--muted, #6b7a90); line-height: 1.6; }

.contact-section { padding: 44px 0; }
.contact-section h2 { font-size: 25px; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid > div { padding: 20px; border: 1px solid var(--line, #e2e7f0); border-radius: 9px; background: var(--card-bg, #fff); }
.contact-grid dt { font-size: 12px; color: var(--muted, #6b7a90); margin-bottom: 6px; }
.contact-grid dd { font-size: 14.5px; font-weight: 600; word-break: break-all; }

.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px 0; }
.image-text.right figure { order: 2; }
.image-text figure img { border-radius: 12px; width: 100%; object-fit: cover; }
.image-text .prose h2 { margin-top: 0; }

.friend-links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 20px 20px 30px; font-size: 12px; color: var(--muted, #6b7a90); }
.friend-links a { color: var(--ink-2, #43536b); }
.friend-links a:hover { color: var(--brand, #1e4fa3); }

.search-box-wrap { padding: 30px 0; }
.search-box { display: flex; width: 100%; max-width: 720px; margin: 0 auto; gap: 10px; }
.search-box input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong, #cdd6e4); border-radius: 8px; font-size: 15px; background: var(--card-bg, #fff); }
.search-box .btn { flex: none; }
.search-page { max-width: 900px; margin: 0 auto; }
.search-page > h1 { margin-bottom: 18px; }
.search-results { max-width: 900px; margin: 0 auto 60px; }
.search-result a { text-decoration: none; }
.search-result h2 a:hover { text-decoration: underline; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line, #e2e7f0); }
.search-result h2 { font-size: 18px; margin-bottom: 5px; }
.search-result p { font-size: 13px; color: var(--muted, #6b7a90); line-height: 1.75; }
.search-result .tag { margin-bottom: 6px; }

.article-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e2e7f0); font-size: 12px; color: var(--muted, #6b7a90); }
.list-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.list-title { font-size: 25px; }
.list-count { font-size: 12px; color: var(--muted, #6b7a90); margin-left: 8px; }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted, #6b7a90); }
.sort-select select { padding: 7px 10px; border: 1px solid var(--line-strong, #cdd6e4); border-radius: 6px; background: var(--card-bg, #fff); font-size: 12.5px; }
.detail-lead { font-size: 16px; color: var(--ink-2, #43536b); line-height: 1.8; margin: 12px 0 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line, #e2e7f0); font-size: 12px; }
.related-block { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line, #e2e7f0); }
.related-block > h2 { font-size: 20px; margin-bottom: 16px; }
.prev-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line, #e2e7f0); font-size: 12.5px; }
.prev-next a { max-width: 46%; color: var(--ink-2, #43536b); }
.prev-next a span { display: block; font-size: 11px; color: var(--muted, #6b7a90); margin-bottom: 2px; }
.prev-next a:hover { color: var(--brand, #1e4fa3); }
.prev-next .next { text-align: right; margin-left: auto; }

.tabbed { margin-top: 8px; }
.tab-btns { display: flex; gap: 6px; border-bottom: 1px solid var(--line, #e2e7f0); margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted, #6b7a90); font-weight: 600; font-size: 14px; }
.tab-btn.on { color: var(--brand, #1e4fa3); border-bottom-color: var(--brand, #1e4fa3); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-card { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-grid > div { padding: 16px 10px; }
  .stats-grid dt { font-size: 24px; }
  .steps-list { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .image-text { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
  .image-text.right figure { order: 0; }
  .list-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .list-title { font-size: 21px; }
  .pagination { justify-content: center; }
  .page-total { width: 100%; text-align: center; margin: 6px 0 0; }
  .prev-next { flex-direction: column; }
  .prev-next a { max-width: 100%; }
  .prev-next .next { text-align: left; margin-left: 0; }
  .lead-section { padding: 30px 0; }
  .contact-section { padding: 30px 0; }
  .faq-section { padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
