/* 麓山工匠官网 · 基础样式
   约束：低饱和配色、1px 细边框、8-14px 圆角、无渐变、正文 14px */

:root {
  --ink: #1a1d21;
  --ink2: #3f464d;
  --muted: #767d85;
  --line: #e2e7e5;
  --line-soft: #eef2f0;
  --bg: #ffffff;
  --bg2: #f8faf9;
  --brand: #2c2e6b;
  --brand-dark: #212352;
  --brand-mid: #3a3d8f;
  --brand-tint: #f3f4f9;
  --brand-line: #d5d8e8;
  --warm: #8a6a3f;
  --warm-bg: #f8f3ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- 顶部 ---------- */
header.site {
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.1) blur(6px);
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { height: 26px; width: 26px; display: block; }
.brand .txt { display: flex; align-items: baseline; gap: 9px; }
.brand strong { font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--brand); }
.brand .txt span { font-size: 11.5px; color: var(--muted); letter-spacing: .4px; }

nav.main { display: flex; flex-wrap: wrap; gap: 15px; }
nav.main a {
  font-size: 13px; color: var(--ink2); text-decoration: none;
  padding: 3px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
nav.main a:hover { color: var(--brand); border-bottom-color: var(--brand-line); }
nav.main a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }

/* ---------- 排版 ---------- */
main { padding: 40px 0 72px; }

h1 { font-size: 23px; line-height: 1.5; font-weight: 600; margin: 0 0 14px; letter-spacing: -.2px; }
h2 {
  font-size: 17px; line-height: 1.6; font-weight: 600;
  margin: 40px 0 14px; padding-left: 12px;
  border-left: 3px solid var(--brand); color: var(--brand);
}
h3 { font-size: 14.5px; font-weight: 600; margin: 24px 0 8px; }

p { margin: 0 0 14px; color: var(--ink2); }
p.lead { font-size: 15px; line-height: 1.85; color: var(--ink2); margin-bottom: 22px; }

a { color: var(--brand-mid); }
ul, ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink2); }
li { margin-bottom: 6px; }

.crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid; grid-template-columns: 1.02fr 1fr;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin: 4px 0 32px; background: var(--bg2);
  box-shadow: 0 1px 3px rgba(28, 30, 70, .05);
}
.hero-txt { background: var(--brand); color: #fff; padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.hero-txt h1 { color: #fff; font-size: 24px; line-height: 1.45; margin: 0 0 14px; padding: 0; border: 0; }
.hero-txt p { color: rgba(255, 255, 255, .82); margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; }
.hero-txt .kicker {
  font-size: 11.5px; letter-spacing: 1.6px; color: rgba(255, 255, 255, .55);
  margin-bottom: 14px; text-transform: uppercase;
}
.hero-txt .btns { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-img { position: relative; min-height: 400px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.hero-img .cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(30, 32, 72, .88); color: rgba(255, 255, 255, .93);
  font-size: 11.5px; line-height: 1.65; padding: 6px 12px; border-radius: 6px;
  letter-spacing: .2px; max-width: calc(100% - 28px);
}

.btn { display: inline-block; font-size: 13.5px; padding: 9px 18px; border-radius: 8px; text-decoration: none; border: 1px solid var(--brand); color: var(--brand); }
.btn:hover { background: var(--brand-tint); }
.btn.solid { background: var(--brand); color: #fff; }
.btn.solid:hover { background: var(--brand-dark); color: #fff; }
.btn.light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, .12); }
.btn.light.solid { background: #fff; color: var(--brand); border-color: #fff; }
.btn.light.solid:hover { background: rgba(255, 255, 255, .88); }

/* ---------- 组件 ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--brand-line); border: 1px solid var(--brand-line);
  border-radius: 10px; overflow: hidden; margin: 22px 0 10px;
}
.facts > div { background: var(--brand-tint); padding: 16px 18px; }
.facts .n { font-size: 21px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; color: var(--brand); }
.facts .l { font-size: 11.5px; color: #61637a; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 13px; }
th, td { border: 1px solid var(--line-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: #f0f1f8; font-weight: 600; color: var(--brand); white-space: nowrap; }
td { color: var(--ink2); }
td.k { color: var(--ink); font-weight: 500; background: #f8f8fc; white-space: nowrap; width: 152px; }

.card {
  border: 1px solid var(--line); border-left: 3px solid var(--brand-line);
  border-radius: 8px; padding: 18px 20px; background: #fff;
  box-shadow: 0 1px 2px rgba(28, 30, 70, .04);
}
.card h3 { margin-top: 0; color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 8px; }

.tag { display: inline-block; font-size: 11.5px; line-height: 1.7; padding: 1px 8px; border-radius: 4px; background: var(--brand-tint); color: var(--brand); margin-right: 6px; }
.tag.warm { background: var(--warm-bg); color: var(--warm); }

.note { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.note p:last-child { margin-bottom: 0; }
.note .h { font-size: 12px; color: var(--brand); letter-spacing: .3px; margin-bottom: 4px; font-weight: 600; }

.figure { margin: 22px 0 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg2); }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: 12px; color: var(--muted); line-height: 1.75; padding: 9px 14px; border-top: 1px solid var(--line-soft); background: #fbfcfb; }
.figure.wide img { max-height: 420px; object-fit: cover; }

.step { counter-reset: s; }
.step > div { position: relative; padding: 18px 0 18px 54px; border-bottom: 1px solid var(--line-soft); }
.step > div:last-child { border-bottom: 0; }
.step > div::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; left: 0; top: 18px;
  font-size: 12px; color: var(--brand); letter-spacing: .5px; font-weight: 600;
  border: 1px solid var(--brand-line); background: var(--brand-tint);
  border-radius: 6px; padding: 1px 7px;
}
.step h3 { margin: 0 0 6px; color: var(--brand); }
.step p:last-child { margin-bottom: 0; }

.qa { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.qa:last-child { border-bottom: 0; }
.qa h3 { margin: 0 0 6px; font-size: 15px; }
.qa p:last-child { margin-bottom: 0; }

.photo { border: 1px dashed var(--brand-line); border-radius: 10px; background: var(--brand-tint); padding: 26px 20px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.photo b { display: block; color: var(--ink2); font-weight: 500; margin-bottom: 4px; font-size: 13px; }

.more { font-size: 13px; margin-top: 4px; }

/* 导航分组分隔 */
.nav-sep { width: 1px; height: 13px; background: var(--line); align-self: center; margin: 0 1px; }

/* 首页双入口 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 8px; }
.split-item {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; background: #fff;
  box-shadow: 0 1px 2px rgba(28, 30, 70, .04);
  transition: border-color .15s, background .15s;
}
.split-item:hover { border-color: var(--brand-line); background: var(--brand-tint); }
.split-item .sl {
  font-size: 11.5px; letter-spacing: 1.2px; color: var(--brand);
  margin-bottom: 9px; font-weight: 500;
}
.split-item h3 { font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.split-item p { font-size: 13px; line-height: 1.8; margin: 0 0 10px; color: var(--ink2); }
.split-item .go { font-size: 12.5px; color: var(--brand); }

/* ---------- 联系方式 ---------- */
.contact {
  display: grid; grid-template-columns: 1fr auto; gap: 26px;
  align-items: center; border: 1px solid var(--brand-line);
  background: var(--brand-tint); border-radius: 10px;
  padding: 24px 26px; margin: 14px 0 22px;
}
.contact .clabel { font-size: 11.5px; letter-spacing: .8px; color: #61637a; margin-bottom: 4px; }
.contact .tel { font-size: 26px; font-weight: 600; letter-spacing: .5px; line-height: 1.35; }
.contact .tel a { color: var(--brand); text-decoration: none; }
.contact .chint { font-size: 12.5px; color: #5c5f73; margin: 8px 0 0; line-height: 1.8; }
.contact .cq { text-align: center; }
.contact .cq img { width: 150px; height: 150px; display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contact .cq span { display: block; font-size: 11.5px; color: #61637a; margin-top: 6px; }
footer.site .qr { width: 86px; height: 86px; display: block; margin-top: 10px; border-radius: 4px; background: #fff; padding: 0; }

/* ---------- 页脚 ---------- */
footer.site { background: var(--brand-dark); color: rgba(255, 255, 255, .72); padding: 36px 0 30px; }
footer.site .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer.site h4 { font-size: 11.5px; color: rgba(255, 255, 255, .42); font-weight: 500; letter-spacing: .8px; margin: 0 0 10px; }
footer.site p, footer.site li { font-size: 12.5px; color: rgba(255, 255, 255, .72); line-height: 1.95; margin: 0; }
footer.site ul { list-style: none; padding: 0; }
footer.site a { color: rgba(255, 255, 255, .72); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site strong { color: #fff; font-weight: 500; }
footer.site .fine {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px;
  font-size: 11.5px; color: rgba(255, 255, 255, .45); line-height: 1.95;
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  table { font-size: 12.5px; table-layout: fixed; }
  td, th { word-break: break-word; overflow-wrap: break-word; }
  td.k { width: auto; min-width: 88px; white-space: normal; }
  .brand .txt span { display: none; }
  header.site .inner { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px 20px 11px; }
  .nav-sep { display: none; }
  nav.main { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px 8px; width: 100%; }
  nav.main a { font-size: 12.5px; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 240px; order: -1; }
  .hero-txt { padding: 28px 24px; }
  .hero-txt h1 { font-size: 20px; }
  .contact { grid-template-columns: 1fr; gap: 18px; }
  .contact .cq { display: flex; align-items: center; gap: 12px; text-align: left; }
  .contact .cq span { margin-top: 0; }
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  footer.site .fgrid { grid-template-columns: 1fr; gap: 20px; }
  nav.main { gap: 13px; }
  nav.main a { font-size: 13px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; }
}
