/* 知见光伙伴 · 深圳恒知益智能科技有限公司 · 公司官网（纯静态，无后端）
 * 视觉沿用知见光伙伴现行产品：水彩底图 + 液态玻璃 + 近黑文字 + 药丸按钮，主色 #6D28D9 */
:root {
  --ink: #1a1a1a;
  --ink-2: rgba(0, 0, 0, 0.62);
  --ink-3: rgba(0, 0, 0, 0.48);
  --line: rgba(0, 0, 0, 0.08);
  --accent: #6d28d9;
  --accent-ink: #4c1d95;
  --accent-soft: rgba(109, 40, 217, 0.08);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --shadow: 0 10px 40px rgba(30, 20, 60, 0.08), 0 2px 8px rgba(30, 20, 60, 0.04);
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 9999px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  background: #f4f2f8;
  overflow-x: hidden;
}
/* 水彩底图（与产品同一张），固定在最底层 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(img/watercolor-bg.jpg) center top / cover no-repeat;
  opacity: 0.9;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 玻璃 ── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.glass-strong { background: var(--glass-strong); }

/* ── 顶栏：贴顶，避让刘海 ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--pill); min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 500; }
@media (max-width: 720px) {
  .topbar .wrap { height: 58px; gap: 8px; }
  .brand-sub { display: none; }
  .nav .hide-sm { display: none; }
  .nav a { padding: 6px 10px; font-size: 13px; }
}

/* ── 按钮（药丸） ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: var(--pill);
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: opacity .2s, background .2s, transform .2s;
  border: 1px solid transparent;
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.btn-dark:hover { opacity: 0.88; }
.btn-light { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: rgba(0, 0, 0, 0.08); }
.btn-light:hover { background: #fff; }
.btn .icon { width: 16px; height: 16px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── 版式 ── */
.section { padding: 96px 0; }
.kicker { font-size: 12px; letter-spacing: 0.24em; color: var(--ink-3); margin-bottom: 14px; }
.h-display { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 300; line-height: 1.2; letter-spacing: 0.01em; }
.h-display b, .h-section b { font-weight: 600; }
.h-section { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 300; line-height: 1.3; }
.lede { font-size: 17px; color: var(--ink-2); line-height: 1.85; }
.muted { color: var(--ink-3); font-size: 13px; }
@media (max-width: 720px) { .section { padding: 64px 0; } .lede { font-size: 16px; } }

.tag-demo {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; line-height: 1.5; color: #8a4b12;
  background: rgba(255, 237, 213, 0.9); border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--pill); padding: 1px 10px; white-space: nowrap;
}

/* ── 公司信息条 ── */
.company { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr 1fr; }
.company > div { padding: 22px 24px; border-left: 1px solid var(--line); min-width: 0; }
.company > div:first-child { border-left: 0; }
.company .k { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.company .k .icon { width: 14px; height: 14px; color: var(--accent); }
.company .v { font-size: 15px; font-weight: 600; line-height: 1.55; word-break: break-all; }
.company .v a { text-decoration: none; }
.company .v a:hover { color: var(--accent-ink); }
@media (max-width: 960px) {
  .company { grid-template-columns: 1fr 1fr; }
  .company > div { border-left: 0; border-top: 1px solid var(--line); }
  .company > div:nth-child(-n+2) { border-top: 0; }
  .company > div:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .company { grid-template-columns: minmax(0, 1fr); }
  .company > div, .company > div:nth-child(even) { border-left: 0; border-top: 1px solid var(--line); padding: 16px 20px; }
  .company > div:first-child { border-top: 0; }
}

/* ── 声明 ── */
.disclaimer { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ── 页脚：避让 home indicator ── */
.footer {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 14px; color: var(--ink-2);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.footer-note { margin-top: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); }
.footer-brand img { width: 30px; height: auto; }
.footer-brand b { font-size: 16px; font-weight: 600; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: 0.06em; }
.footer dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.footer dt { color: var(--ink-3); white-space: nowrap; }
.footer dd { margin: 0; color: var(--ink); word-break: break-all; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
