/* 天津市林海智能科技有限公司 · 官网主题
   所有业务样式消费 --site-* 变量（外观 / 圆角 / 间距 / 字号 / 动效） */

:root {
  --site-bg: #09182a;
  --site-fg: #e9f1f8;
  --site-accent: #1f7a8c;
  --site-on-accent: #ffffff;
  --site-surface: #0e2a47;
  --site-muted: #93a9c0;
  --site-border: #1d3a5c;
  --site-font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --site-radius: 10px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --lh-gold: #f0b429;
  --lh-line: rgba(143, 211, 224, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: calc(16px * var(--site-type));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--site-accent); text-decoration: none; }
a:hover { color: var(--site-fg); }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 48px);
  margin-inline: auto;
  padding-inline: calc(24px * var(--site-space));
}

/* ---------- 站点头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--site-surface) 92%, transparent);
  border-bottom: 1px solid var(--lh-line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: calc(24px * var(--site-space));
  min-height: calc(64px + 4px);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--site-space));
  color: var(--site-fg);
  font-weight: 700;
  font-size: calc(18px * var(--site-type));
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* 白墨脱底 LOGO 只配深色头部；按高度取值、宽度自适应，避免拉伸 */
.brand-logo { display: block; height: 34px; width: auto; }
@media (max-width: 700px) { .brand-logo { height: 28px; } }
.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space));
}
.nav a {
  color: var(--site-muted);
  padding: calc(8px * var(--site-space)) calc(12px * var(--site-space));
  border-radius: var(--site-radius);
  font-size: calc(14px * var(--site-type));
  transition: color calc(180ms * var(--site-motion)), background calc(180ms * var(--site-motion));
}
.nav a:hover { color: var(--site-fg); background: rgba(143, 211, 224, 0.10); }
.nav a[aria-current="page"] {
  color: var(--site-on-accent);
  background: var(--site-accent);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--site-border);
  color: var(--site-fg);
  border-radius: var(--site-radius);
  padding: calc(8px * var(--site-space)) calc(14px * var(--site-space));
  font: inherit;
  font-size: calc(14px * var(--site-type));
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: calc(12px * var(--site-space));
    background: var(--site-surface);
    border-bottom: 1px solid var(--lh-line);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: calc(12px * var(--site-space)); border-radius: 0; }
}

/* ---------- 通用区块 ---------- */
section { padding-block: calc(64px * var(--site-space)); }
section + section { border-top: 1px solid var(--lh-line); }

.eyebrow {
  margin: 0 0 calc(12px * var(--site-space));
  color: var(--site-accent);
  font-size: calc(12px * var(--site-type));
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: calc(44px * var(--site-type)); }
h2 { font-size: calc(30px * var(--site-type)); margin-bottom: calc(16px * var(--site-space)); }
h3 { font-size: calc(20px * var(--site-type)); }
h4 { font-size: calc(16px * var(--site-type)); }
p { margin: 0 0 calc(14px * var(--site-space)); }
.lead {
  font-size: calc(19px * var(--site-type));
  color: color-mix(in srgb, var(--site-fg) 82%, var(--site-muted));
  max-width: 62ch;
}
.muted { color: var(--site-muted); }
.note {
  font-size: calc(14px * var(--site-type));
  color: var(--site-muted);
  border-left: 2px solid var(--site-accent);
  padding-left: calc(14px * var(--site-space));
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(72px * var(--site-space));
  background:
    linear-gradient(180deg, rgba(9, 24, 42, 0.35), var(--site-bg)),
    var(--site-surface);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lh-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lh-line) 1px, transparent 1px);
  background-size: calc(48px * var(--site-space)) calc(48px * var(--site-space));
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(120% 80% at 20% 0%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: calc(40px * var(--site-space));
  align-items: center;
}
.hero-media {
  border-radius: var(--site-radius);
  overflow: hidden;
  border: 1px solid var(--site-border);
  box-shadow: 0 calc(24px * var(--site-space)) calc(48px * var(--site-space)) rgba(0, 0, 0, 0.45);
}
.hero-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-caption {
  padding: calc(12px * var(--site-space)) calc(16px * var(--site-space));
  background: var(--site-surface);
  border-top: 1px solid var(--lh-line);
  font-size: calc(13px * var(--site-type));
  color: var(--site-muted);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- 按钮 ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12px * var(--site-space));
  margin-top: calc(28px * var(--site-space));
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--site-space));
  padding: calc(13px * var(--site-space)) calc(22px * var(--site-space));
  border-radius: var(--site-radius);
  border: 1px solid var(--site-accent);
  background: var(--site-accent);
  color: var(--site-on-accent);
  font: inherit;
  font-size: calc(15px * var(--site-type));
  font-weight: 600;
  cursor: pointer;
  transition: transform calc(180ms * var(--site-motion)), filter calc(180ms * var(--site-motion));
}
.btn:hover { filter: brightness(1.12); color: var(--site-on-accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--site-fg); border-color: var(--site-border); }
.btn.ghost:hover { border-color: var(--site-accent); color: var(--site-fg); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(16px * var(--site-space));
}
.stats div {
  padding: calc(20px * var(--site-space));
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
.stats b {
  display: block;
  font-size: calc(30px * var(--site-type));
  color: var(--site-fg);
  letter-spacing: -0.01em;
}
.stats span { font-size: calc(13px * var(--site-type)); color: var(--site-muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: calc(20px * var(--site-space)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(22px * var(--site-space));
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--site-space));
  transition: border-color calc(180ms * var(--site-motion)), transform calc(180ms * var(--site-motion));
}
.card:hover { border-color: var(--site-accent); transform: translateY(-2px); }
.card > :last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: calc(18px * var(--site-space)); color: var(--site-muted); font-size: calc(14px * var(--site-type)); }
.card li { margin-bottom: calc(4px * var(--site-space)); }
.tag {
  align-self: flex-start;
  font-size: calc(11px * var(--site-type));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-gold);
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 999px;
  padding: calc(3px * var(--site-space)) calc(10px * var(--site-space));
}
.tag.blue { color: var(--site-accent); border-color: rgba(31, 122, 140, 0.5); }

/* ---------- 媒体卡 ---------- */
.figure {
  margin: 0;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
}
.figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #061220; }
.figure figcaption {
  padding: calc(10px * var(--site-space)) calc(14px * var(--site-space));
  font-size: calc(13px * var(--site-type));
  color: var(--site-muted);
  border-top: 1px solid var(--lh-line);
}

/* 示意图容器：SVG 参数文字需要可读，保留白底 */
.schematic {
  background: #0e2a47;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space));
}

/* ---------- 筛选器 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--site-space));
  margin-bottom: calc(24px * var(--site-space));
}
.chip {
  font: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-muted);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(7px * var(--site-space)) calc(15px * var(--site-space));
  cursor: pointer;
  transition: color calc(180ms * var(--site-motion)), border-color calc(180ms * var(--site-motion));
}
.chip:hover { color: var(--site-fg); border-color: var(--site-accent); }
.chip[aria-pressed="true"] {
  color: var(--site-on-accent);
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.search {
  flex: 1 1 220px;
  font: inherit;
  font-size: calc(14px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(9px * var(--site-space)) calc(14px * var(--site-space));
}
.search::placeholder { color: var(--site-muted); }

.brand-card {
  position: relative;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: border-color calc(180ms * var(--site-motion)), transform calc(180ms * var(--site-motion));
}
.brand-card:hover { border-color: var(--site-accent); transform: translateY(-2px); }
.brand-card img { width: 100%; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--site-type)); }
th, td { text-align: left; padding: calc(10px * var(--site-space)) calc(12px * var(--site-space)); border-bottom: 1px solid var(--lh-line); }
th { color: var(--site-muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: calc(12px * var(--site-type)); }
td b { color: var(--site-fg); }

/* ---------- 时间线 / 清单 ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(10px * var(--site-space)); }
.checklist li { padding-left: calc(26px * var(--site-space)); position: relative; color: var(--site-muted); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 10px; height: 2px;
  background: var(--site-accent);
}

/* ---------- 展厅画廊 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(14px * var(--site-space));
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery button {
  display: block;
  padding: 0;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: #061220;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color calc(180ms * var(--site-motion));
}
.gallery button:hover { border-color: var(--site-accent); }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: calc(24px * var(--site-space));
  background: rgba(4, 12, 22, 0.88);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-height: 82vh; border-radius: var(--site-radius); }
.lightbox .close {
  position: absolute;
  top: calc(18px * var(--site-space));
  right: calc(18px * var(--site-space));
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  color: var(--site-fg);
  border-radius: var(--site-radius);
  font: inherit;
  padding: calc(6px * var(--site-space)) calc(14px * var(--site-space));
  cursor: pointer;
}

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(18px * var(--site-space)); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: calc(8px * var(--site-space)); }
.field.full { grid-column: 1 / -1; }
label { font-size: calc(14px * var(--site-type)); color: var(--site-muted); }
label .req { color: var(--lh-gold); }
input, select, textarea {
  font: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(11px * var(--site-space)) calc(14px * var(--site-space));
  transition: border-color calc(180ms * var(--site-motion));
}
input:focus, select:focus, textarea:focus { border-color: var(--site-accent); outline: none; }
textarea { resize: vertical; min-height: calc(120px * var(--site-space)); }
.field .err { min-height: 1.2em; font-size: calc(13px * var(--site-type)); color: var(--lh-gold); }

.form-status {
  margin-top: calc(18px * var(--site-space));
  padding: calc(14px * var(--site-space)) calc(18px * var(--site-space));
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  font-size: calc(14px * var(--site-type));
  display: none;
}
.form-status[data-show="true"] { display: block; }
.form-status.ok { border-color: var(--site-accent); }
.form-status.bad { border-color: var(--lh-gold); }

/* 蜜罐字段：真实用户看不见，也不参与键盘顺序。 */
.hp {
  position: absolute;
  left: calc(-10000px * var(--site-space));
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--lh-line);
  padding-block: calc(40px * var(--site-space));
  background: var(--site-surface);
  font-size: calc(14px * var(--site-type));
  color: var(--site-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: calc(24px * var(--site-space)); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--site-fg); margin-bottom: calc(10px * var(--site-space)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(6px * var(--site-space)); }
.footer-bar {
  margin-top: calc(20px * var(--site-space));
  padding-top: calc(16px * var(--site-space));
  border-top: 1px solid var(--lh-line);
  font-size: calc(13px * var(--site-type));
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space)) calc(14px * var(--site-space));
  align-items: baseline;
}
.footer-bar a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--lh-line); }
.footer-bar a:hover { color: var(--site-accent); border-bottom-color: var(--site-accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
