/* ==========================================================================
   KONSENT 官网 · 站点级共享样式（base.css）
   全站公共：变量、排版、页头/导航、面包屑、页脚、按钮、卡片、表格、表单、
   通用区块、滚动条、AI 助手保留区适配。页面专属样式放 assets/css/page-*.css。
   ========================================================================== */

:root {
  --brand: #e5511f;
  --brand-dark: #c33f12;
  --brand-soft: #fdeee7;
  --ink: #16202b;
  --ink-2: #38424f;
  --muted: #6b7684;
  --line: #e4e7ec;
  --line-2: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #17202a;
  --bg-dark-2: #1f2b38;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .08), 0 18px 44px rgba(16, 24, 40, .1);
  --max: 1200px;
  --max-narrow: 880px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .3em 0; }
strong { font-weight: 600; }
figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 60; background: #fff; padding: 8px 14px; border-radius: var(--radius); }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--bg-dark); color: #c8d0da; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #e7ecf2; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.topbar-list li { margin: 0; }
.topbar-note { color: #97a3b2; }

/* ---------- 页头与导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; position: relative; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.site-brand-logo { height: 44px; width: auto; flex: none; display: block; }
.site-brand-divider { width: 1px; height: 36px; flex: none; background: var(--line); }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.site-brand-name { font-weight: 700; font-size: 1.34rem; letter-spacing: .04em; }
.site-brand-latin { margin-left: 5px; font-family: var(--font-en); font-size: .7em; font-weight: 600; letter-spacing: .18em; color: var(--ink-2); }
.site-brand-sub { margin-top: 6px; font-size: .72rem; color: var(--muted); letter-spacing: .14em; }
.footer-brand-mark { height: 48px; width: auto; flex: none; display: block; background: #fff; border-radius: 12px; padding: 7px; }
.footer-brand .site-brand-name { font-size: 1.14rem; }
.footer-brand .site-brand-latin { color: #93a0ae; }
.footer-brand .site-brand-sub { letter-spacing: .06em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; color: var(--ink-2); font-size: .95rem; border-radius: var(--radius); background: none; border: 0; font: inherit; cursor: pointer; }
.nav-link:hover { color: var(--brand); background: var(--bg-soft); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; display: none; }
.nav-item.open > .nav-drop, .nav-item:hover > .nav-drop { display: block; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink-2); font-size: .92rem; }
.nav-drop a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-drop-label { font-size: .74rem; color: var(--muted); padding: 6px 12px 2px; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: .86rem; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; list-style: none; font-size: .84rem; color: var(--muted); }
.breadcrumb-list li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li::after { content: "/"; color: #c3c9d2; }
.breadcrumb-list li:last-child::after { content: ""; }
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--brand); }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #d8dfe8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.lead { font-size: 1.04rem; color: var(--ink-2); }
.section-dark .lead { color: #b9c3cf; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: .4em; font-size: 1.08rem; }
.card-body p { color: var(--muted); font-size: .93rem; margin-bottom: .8em; }
.card-link { font-weight: 600; font-size: .9rem; }

.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.tile h3 { font-size: 1.02rem; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }
.tile-num { font-family: var(--font-en); font-size: 1.7rem; font-weight: 700; color: var(--brand); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; background: var(--brand); border-radius: 2px; transform: rotate(45deg); }

/* ---------- 正文（长文本） ---------- */
.prose { max-width: 880px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose ul { padding-left: 1.3em; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(100,116,139,.35) transparent; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 660px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
table.data thead th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }

/* ---------- 表单（询盘） ---------- */
.lead-form { display: grid; gap: 16px; }
.lead-form .field { display: flex; flex-direction: column; gap: 6px; }
.lead-form label { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.lead-form .span-2 { grid-column: 1 / -1; }
.lead-form .form-status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form-note { font-size: .84rem; color: var(--muted); }

/* ---------- CTA 区 ---------- */
.cta-band { background: var(--bg-dark-2); color: #dbe3ec; padding: 46px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #b3bec9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #a9b4c0; font-size: .9rem; padding: 56px 0 0; }
.site-footer a { color: #cbd4de; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .site-brand-name, .footer-brand .site-brand-sub { color: #fff; }
.footer-brand .site-brand-sub { color: #93a0ae; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .42em 0; }
.footer-address { margin-top: 14px; color: #8592a0; font-size: .84rem; }
.footer-bottom { margin-top: 40px; border-top: 1px solid #26313d; padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #8592a0; }

/* ---------- 滚动条（仅作用于站内具体滚动容器，不改整页滚动条） ---------- */
.scroll-y { scrollbar-width: thin; scrollbar-color: rgba(100,116,139,.35) transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 999px; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }

/* ---------- 站内固定元素一律放左下角（右下角为 AI 助手保留区） ---------- */
.floating-left { position: fixed; left: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.floating-left button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.floating-left button:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; display: none; }
  .site-nav.open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--line-2); }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 4px; }
  .nav-drop { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 8px 10px; }
  .nav-item:hover > .nav-drop { display: none; }
  .nav-item.open > .nav-drop { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-brand { gap: 10px; }
  .site-brand-logo { height: 34px; }
  .site-brand-divider { height: 28px; }
  .site-brand-name { font-size: 1.12rem; }
  .site-brand-latin { margin-left: 4px; letter-spacing: .14em; }
  .site-brand-sub { margin-top: 4px; font-size: .66rem; letter-spacing: .08em; }
  .header-actions .btn { display: none; }
}
