/* 欣樾康官网前台样式。主色在 :root 里改一处即可。 */
:root {
  --accent: #c9420c;
  --accent-dark: #a83608;
  --accent-on-dark: #ff8a4c;
  --ink: #1d2126;
  --text: #3e444b;
  --muted: #5a6068;
  --line: #dadde1;
  --bg-alt: #f4f5f6;
  --ph: #dde0e4;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 0; }
.en { font-family: "Oswald", "DIN Alternate", "Arial Narrow", Arial, sans-serif; font-size: 13px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

/* 按钮 */
.btn { display: inline-block; padding: 13px 34px; font-size: 16px; font-weight: 700; line-height: 1.5; border: 1px solid transparent; cursor: pointer; text-align: center; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.more { font-size: 14px; font-weight: 700; color: var(--accent); }

/* 顶部条 */
.topbar { background: var(--ink); color: #c4c9cf; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding-top: 7px; padding-bottom: 7px; }
.topbar a, .topbar strong { color: #fff; }

/* 页头与导航 */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 12px 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 46px; width: auto; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--accent); color: #fff; font-weight: 900; font-size: 24px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text b { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.brand-text small { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 700; }
.site-nav a { padding: 25px 0 22px; border-bottom: 3px solid transparent; }
.site-nav a.on { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }

/* 首页横幅 */
.hero { position: relative; background: #23282e; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 23, 27, .62); }
.hero.no-img::after { display: none; }
.hero .ph-note { position: absolute; right: 24px; bottom: 16px; font-size: 13px; color: #c4c9cf; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero .tag { background: var(--accent); padding: 4px 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.2; }
.hero p { max-width: 34em; font-size: 18px; color: #e3e6ea; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* 内页标题条 */
.page-banner { background: var(--ink); color: #fff; }
.page-banner .wrap { padding-top: 54px; padding-bottom: 50px; }
.page-banner .en { color: #c4c9cf; }
.page-banner h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 4px 0 12px; }
.crumb { font-size: 14px; color: #c4c9cf; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: #c4c9cf; }
.crumb a:hover { color: #fff; }

/* 区块 */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #fff; }
.section.tight { padding: 56px 0; }
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; }
.sec-head i { display: block; width: 48px; height: 4px; background: var(--accent); margin-top: 4px; }
.sec-head .lead { max-width: 42em; color: var(--muted); margin-top: 10px; }
.section.dark .sec-head .en, .section.dark .sec-head .lead { color: #c4c9cf; }
.sec-foot { text-align: center; margin-top: 40px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split.top { align-items: flex-start; }
.split.rev > :first-child { order: 2; }
.prose { display: flex; flex-direction: column; gap: 16px; color: var(--text); }
.prose h3 { color: var(--ink); font-size: 20px; margin-top: 8px; }

/* 图片位 */
.media { position: relative; background: var(--ph); overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.r43 { aspect-ratio: 4 / 3; }
.media.r32 { aspect-ratio: 3 / 2; }
.media.r169 { aspect-ratio: 16 / 9; }
.media.r34 { aspect-ratio: 3 / 4; }
.media.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--text); font-size: 13px; }

/* 优势条 */
.adv { border-bottom: 1px solid var(--line); }
.adv .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.adv-item { display: flex; gap: 16px; align-items: center; padding: 26px 8px; }
.adv-item svg { flex: none; width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adv-item b { display: block; font-size: 18px; }
.adv-item span { font-size: 14px; color: var(--muted); }

/* 数据 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.stats div { background: #fff; padding: 16px 12px; text-align: center; }
.stats b { display: block; font-family: "Oswald", "DIN Alternate", Arial, sans-serif; font-size: 28px; line-height: 1.3; color: var(--accent); }
.stats span { font-size: 13px; color: var(--muted); }

/* 卡片 */
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; }
.card p { font-size: 14px; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 6px; }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.box { background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.box h3 { font-size: 19px; }
.box p { font-size: 15px; color: var(--muted); }
.section.alt .box { border-color: var(--line); }

.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 3px 12px; border: 1px solid var(--line); color: var(--text); background: #fff; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 1px; background: #474d55; border: 1px solid #474d55; }
.steps li { background: var(--ink); padding: 26px 20px 30px; display: flex; flex-direction: column; gap: 8px; }
.steps .no { font-family: "Oswald", "DIN Alternate", Arial, sans-serif; font-size: 38px; line-height: 1; color: var(--accent-on-dark); }
.steps h3 { font-size: 18px; margin-top: 6px; }
.steps p { font-size: 14px; color: #c4c9cf; }

.flow { display: flex; flex-direction: column; gap: 20px; }
.flow > li { display: flex; flex-wrap: wrap; gap: 16px 32px; border: 1px solid var(--line); background: #fff; padding: 28px; }
.flow .no { flex: none; width: 64px; font-family: "Oswald", "DIN Alternate", Arial, sans-serif; font-size: 44px; line-height: 1; color: var(--accent); }
.flow .main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.flow h3 { font-size: 21px; }
.flow p { color: var(--text); }
.flow dl { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; align-content: start; }
.flow dt { color: var(--muted); white-space: nowrap; }
.flow dd { color: var(--ink); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--ink); color: #fff; font-weight: 700; }
.tbl tbody th { width: 9em; color: var(--muted); font-weight: 400; background: var(--bg-alt); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

.kv { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.kv div { display: flex; flex-wrap: wrap; gap: 2px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { flex: 0 0 140px; color: var(--muted); font-size: 14px; }
.kv dd { flex: 1 1 220px; font-weight: 700; overflow-wrap: anywhere; }

/* 常见问题 */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1.2; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--text); }

/* 咨询条 */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 40px; padding-bottom: 40px; }
.cta .t { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; line-height: 1.4; }
.cta a:not(.btn) { color: #fff; text-decoration: underline; }

/* 新闻 */
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.news-tabs a { padding: 8px 20px; border: 1px solid var(--line); font-size: 15px; background: #fff; }
.news-tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; flex-wrap: wrap; gap: 20px 28px; border: 1px solid var(--line); background: #fff; padding: 20px; color: var(--ink); }
.news-item:hover { border-color: var(--accent); color: var(--ink); }
.news-item .media { flex: 0 0 260px; max-width: 100%; }
.news-item .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.news-item h2, .news-item h3 { font-size: 20px; }
.news-item p { color: var(--muted); font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.meta .cat { color: var(--accent); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line); background: #fff; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a, .pager span { min-width: 44px; padding: 9px 14px; border: 1px solid var(--line); text-align: center; font-size: 15px; background: #fff; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

.article { max-width: 820px; margin: 0 auto; }
.article > h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; }
.article .meta { margin: 14px 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article .content { display: flex; flex-direction: column; gap: 18px; color: var(--text); font-size: 17px; line-height: 1.9; }
.article .content h2 { font-size: 24px; color: var(--ink); margin-top: 14px; }
.article .content h3 { font-size: 20px; color: var(--ink); margin-top: 8px; }
.article .content ul { list-style: disc; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.article .content a { color: var(--accent); text-decoration: underline; }
.article .content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.article .draft-note { background: #fff4e5; border: 1px solid #f0c98a; padding: 10px 16px; margin-bottom: 20px; font-size: 14px; }
.adj { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.adj span { color: var(--muted); }

/* 表单 */
.form { background: var(--bg-alt); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form h2 { font-size: 22px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #8a9099; border-radius: 2px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--muted); }
.alert { padding: 14px 18px; border: 1px solid; font-size: 15px; }
.alert.ok { background: #eaf6ec; border-color: #9ccfa5; color: #1f5a2a; }
.alert.err { background: #fdecea; border-color: #f0a8a0; color: #8a1c12; }

/* 页脚 */
.site-footer { background: var(--ink); color: #c4c9cf; font-size: 14px; }
.site-footer a { color: #c4c9cf; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 52px; padding-bottom: 36px; }
.site-footer .cols > * { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .col-wide { flex: 1.5 1 320px; }
.f-name { color: #fff; font-weight: 900; font-size: 18px; }
.f-title { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.f-bottom { border-top: 1px solid #474d55; font-size: 13px; }
.f-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; padding-top: 16px; padding-bottom: 16px; }
.f-bottom a { text-decoration: underline; margin-left: 8px; }

/* 手机底部固定条 */
.mbar { display: none; }

/* 平板与手机 */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-header .wrap { min-height: 64px; }
  .site-nav { flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin: 0 -24px; padding: 0 24px; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.on { border-bottom-color: var(--line); }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 56px; }
  .wrap { padding: 0 16px; }
  .site-nav { margin: 0 -16px; padding: 0 16px; }
  .topbar .wrap span:first-child { display: none; }
  .brand-text b { font-size: 19px; }
  .brand-text small { font-size: 11px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero p { font-size: 16px; }
  .hero .ph-note { display: none; }
  .btn { padding: 12px 26px; }
  .section { padding: 52px 0; }
  .section.tight { padding: 40px 0; }
  .sec-head { margin-bottom: 28px; }
  .page-banner .wrap { padding-top: 36px; padding-bottom: 34px; }
  .adv-item { padding: 16px 4px; }
  .split.rev > :first-child { order: 0; }
  .box, .flow > li, .form { padding: 20px; }
  .flow .no { width: auto; font-size: 34px; }
  .news-item { padding: 14px; }
  .news-item .media { flex-basis: 100%; }
  .kv dt { flex-basis: 100%; }
  .article .content { font-size: 16px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); }
  .mbar a { flex: 1; text-align: center; padding: 15px 8px; color: #fff; font-weight: 700; font-size: 15px; }
  .mbar a.primary { background: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
