/* ============================================================
   base.css —— 变量、重置、通用组件
   配色规则：中性暖白/暖墨打底，正红（--brand）是唯一主强调色。
   深色块一律用暖墨 --deep，不用工业蓝。
   ============================================================ */

:root {
  /* 文字与中性 */
  --ink: #1e1a17;              /* 正文/标题主色（暖黑） */
  --ink-2: #4f4741;            /* 次级正文 */
  --muted: #6f6862;            /* 说明文字 */
  --deep: #1b1715;             /* 深色区块底色（页脚、宗旨区） */
  --deep-soft: #262120;
  --navy: var(--deep);         /* 历史变量名，保留兼容：现为暖墨色 */

  /* 品牌红 */
  --brand: #c22a2f;
  --brand-dark: #9b1f24;
  --brand-soft: #fcf1f0;       /* 极浅红底（hover / 标签） */
  --brand-line: #f0d7d4;       /* 红色系描边 */
  --accent: #a52026;           /* 次要强调（hover 加深），历史变量名 */
  --accent-dark: #7d171c;
  --gold: #a9803f;             /* 极少量暖金点缀（时间、编号） */

  /* 背景与线条 */
  --bg: #ffffff;
  --paper: #fbf9f6;            /* 暖白纸感底 */
  --tint: #f8f4f0;
  --line: #e7e0d9;
  --line-soft: #f2ece6;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(30, 26, 23, .05);
  --shadow: 0 10px 30px rgba(30, 26, 23, .08);
  --shadow-lg: 0 18px 48px rgba(30, 26, 23, .10);
  --wrap: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--deep); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.muted { color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(194, 42, 47, .18); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 8px 22px rgba(194, 42, 47, .26); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--outline-light:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------------- 头部 ---------------- */
.header { position: relative; z-index: 30; background: #fff; }
.header__top {
  background: var(--paper); color: var(--muted); font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft);
}
.header__top-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 38px; gap: 16px;
}
.header__top-right { display: flex; align-items: center; gap: 20px; }
.header__hours { color: #918a83; }
.header__phone {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; letter-spacing: .02em;
}
.header__phone:hover { color: var(--brand-dark); }

.header__main {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px; gap: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { max-height: 46px; width: auto; }
.logo__mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 8px; flex: 0 0 auto; overflow: hidden;
}
.logo__mark svg { display: block; }
/* 后台传了自定义图标：去掉红底，图标自己带背景时不会叠成两层 */
.logo__mark--img { background: transparent; border-radius: 0; }
.logo__mark--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 19px; letter-spacing: -.02em; }
.logo__text small { font-size: 9.5px; letter-spacing: .16em; color: #9a928b; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 10px 15px; font-size: 15px; font-weight: 500;
  color: #2c2724; border-radius: var(--radius);
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.is-active { color: var(--brand); font-weight: 600; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav__cta {
  margin-left: 14px; background: var(--brand) !important; color: #fff !important;
  padding: 11px 20px !important; box-shadow: 0 6px 16px rgba(194, 42, 47, .18);
}
.nav__cta:hover { background: var(--brand-dark) !important; }
.nav__cta::after { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------- 页脚 ---------------- */
.footer { margin-top: 0; background: var(--deep); color: #a89e96; font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
  padding: 60px 24px 42px;
}
.footer__logo { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer__brand p { color: #9c928a; margin: 0 0 10px; max-width: 32ch; line-height: 1.8; }
.footer__note { font-size: 12.5px; color: #7d746d; }
.footer__col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.footer__col li { margin-bottom: 8px; }
.footer__col a:hover { color: #fff; }
.footer__contact strong { color: #ef9b95; font-size: 17px; letter-spacing: .01em; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09); font-size: 12.5px; color: #7d746d;
}
.footer__bottom .wrap {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.footer__bottom a:hover { color: #fff; }

/* ---------------- 表单 ---------------- */
.form .field { margin-bottom: 14px; }
.form .field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form .field label i { color: var(--brand); font-style: normal; }
.form input[type="text"], .form input[type="tel"], .form input[type="search"],
.form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194, 42, 47, .10);
}
.form textarea { resize: vertical; min-height: 96px; }
.form__tip { margin: 10px 0 0; font-size: 13px; min-height: 20px; }
.form__tip.is-error { color: #b3231f; }
.form__tip.is-ok { color: #1e7a46; }
.form__hp {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- 通用小件 ---------------- */
.tag {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--brand-line);
  border-radius: 999px; font-size: 12.5px; color: var(--brand);
  background: var(--brand-soft); margin: 0 6px 6px 0;
}
.tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.crumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; color: #bdb4ac; }
.crumb em { font-style: normal; color: var(--ink); }
.crumb--light { padding-bottom: 0; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  background: var(--tint); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty-state h3 { margin-bottom: 8px; }

.rich { font-size: 15.5px; line-height: 1.9; color: #2f2a26; }
.rich h2 { font-size: 20px; margin: 30px 0 10px; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { font-size: 17px; margin: 24px 0 8px; }
.rich p { margin: 0 0 14px; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 14px; list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 6px; }
.rich img { margin: 18px 0; border-radius: var(--radius); }
.rich table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich th, .rich td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.rich th { background: var(--tint); }
.rich blockquote {
  margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--brand);
  background: var(--tint); color: #3a332e;
}
.rich a { color: var(--brand); text-decoration: underline; }
.rich--page { padding: 8px 0 64px; max-width: 860px; }
.layout-narrow { padding-top: 8px; }
