/* 基础：重置、排版、页头、页脚、按钮、通用章节标题。只使用 theme.css 的 token。 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font-heading);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--ink); line-height: 1.35; }
/* 正文：宋体。界面文字（导航、按钮、标签、表单）沿用 body 的黑体。 */
p, li, dd, blockquote, figcaption { font-family: var(--font-body); }
/* 成段正文两端对齐（客户 2026-09-20 G1/A2），居中短句与卡片小字不受影响。 */
.prose p, .rich-body p, .rich-body li, .service-list p, .info-grid p, .info-grid li, .job-reqs li, .party-intro p, .contact-info .lead {
  text-align: justify; text-justify: inter-ideograph;
}
.prose p { font-size: var(--text-size); line-height: var(--text-leading); max-width: var(--measure); margin-bottom: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 20px; background: var(--bg); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 8px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 1em; height: 1em; flex: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; }
/* 英文副标：放在中文标题下方（A1），Georgia 斜体、首字母大写。 */
.eyebrow { font: italic 400 15px/1.4 var(--font-latin); letter-spacing: 0.04em; color: var(--champagne-deep); }
.muted { color: var(--muted); }
.rule { width: 48px; height: 2px; background: var(--gold); }

/* 页头 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.brand .brand-text { display: none; }
.site-nav { display: flex; align-items: center; gap: 40px; height: 100%; }
.site-nav a {
  position: relative; display: flex; align-items: center; height: var(--header-height);
  font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; white-space: nowrap;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
.site-nav a[aria-current='page'] { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header-actions .button { white-space: nowrap; flex: none; }
.search-toggle { display: inline-flex; padding: 8px; color: var(--ink); font-size: 22px; }
.menu-toggle { display: none; padding: 8px; font-size: 26px; color: var(--ink); }

/* 按钮 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 10px 26px; font-size: 15px; letter-spacing: 0.06em;
  border: 1px solid transparent; border-radius: var(--radius); white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button .ui-icon { transition: transform 0.2s; }
.button:hover .ui-icon { transform: translateX(3px); }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: var(--navy-deep); }
.button-gold { background: var(--gold); color: #fff; }
.button-gold:hover { background: var(--gold-deep); }
.button-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.button-outline:hover { background: var(--navy); color: #fff; }
.button-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--navy); }
.button-small { min-height: 38px; padding: 6px 18px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; }
.text-link:hover { color: var(--gold-deep); }
.text-link .ui-icon { transition: transform 0.2s; }
.text-link:hover .ui-icon { transform: translateX(3px); }

/* 章节标题 */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
/* 章节标题（A3）：不用序号，中文标题 + 下方英文副标 + 香槟金短线。 */
.section-heading .heading-group { display: grid; gap: 6px; }
.section-heading .heading-group::after { content: ''; width: 32px; height: 2px; background: var(--champagne); margin-top: 10px; }
.section-heading h2 { font-size: 30px; letter-spacing: 0.06em; color: var(--navy); }
.section-heading .heading-aside { color: var(--muted); font-size: 14px; }

/* 预览横幅 / 提示 / 图片对话框 */
.preview-banner { background: var(--gold-soft); color: var(--gold-deep); text-align: center; padding: 10px; font-size: 14px; }
.preview-banner a { text-decoration: underline; margin-left: 12px; }
#toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--navy-deep); color: #fff; padding: 12px 20px; border-radius: var(--radius); opacity: 0; transition: 0.3s; z-index: 60; pointer-events: none; font-size: 14px; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#photo-dialog { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); }
#photo-dialog::backdrop { background: rgba(31, 43, 69, 0.85); }
#photo-dialog img { max-height: 78vh; width: auto; max-width: 92vw; margin: 0 auto; border-radius: var(--radius); }
#photo-dialog p { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }
#photo-dialog [data-close-photo] { position: fixed; top: 20px; right: 28px; color: #fff; font-size: 36px; line-height: 1; }

/* 页脚：深蓝单块 */
.site-footer { background: var(--navy-deep); color: var(--on-dark); margin-top: 72px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 56px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand img { height: 54px; width: auto; margin-bottom: 22px; }
.footer-column h3 { font-size: 14px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.footer-column nav { display: grid; gap: 10px; }
.footer-column a, .footer-column p { color: var(--on-dark-muted); font-size: 14px; }
.footer-column a:hover { color: #fff; }
.footer-contact p { display: flex; gap: 12px; line-height: 1.8; }
.footer-contact p span:first-child { color: var(--gold); flex: none; min-width: 3em; }
.footer-motto { font-size: 15px; letter-spacing: 0.16em; color: var(--on-dark-muted); line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 20px 0 26px; font-size: 13px; color: var(--on-dark-muted); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1320px) {
  .site-nav { gap: 26px; }
  .site-nav a { font-size: 16px; }
}
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
/* 导航放不下时整体切为菜单，避免「联系立彰」按钮被挤成竖条（G2）。 */
@media (max-width: 1180px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-height);
    flex-direction: column; align-items: stretch; gap: 0; height: auto;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { height: 56px; padding: 0 var(--gutter); border-top: 1px solid var(--border); font-size: 17px; }
  .site-nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 850px) {
  :root { --header-height: 68px; }
  .brand img { height: 40px; }
  .header-actions .button { display: none; }
  .section { padding: 52px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 25px; }
  .prose p { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
