/* ============================================================
   高德利清洁科技 · 设计系统
   混合科技感：深色科技蓝首屏 + 浅色洁净内页，蓝/青绿双色
   ============================================================ */

:root {
  --blue-deep: #0C447C;
  --blue: #185FA5;
  --blue-light: #B5D4F4;
  --teal: #0F6E56;
  --teal-light: #9FE1CB;
  --ink: #1A1A1A;
  --bg: #FFFFFF;
  --bg-soft: #F1F3F6;
  --muted: #5F5E5A;
  --line: #E2E8F0;
  --radius: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- 顶部导航（深色科技蓝，常驻） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--blue-deep), #0E3A73 60%, var(--blue-deep));
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; }
.brand-logo {
  height: 40px; width: auto; display: block;
  background: #fff; border-radius: 8px; padding: 4px 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border: 2px solid #fff; border-radius: 4px; opacity: .9;
}
.brand-name { font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: 14px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch, .btn-admin {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px;
  border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.lang-switch:hover, .btn-admin:hover { background: rgba(255,255,255,.14); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- 首屏 Hero（深色科技蓝） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,115,170,.45), transparent 60%),
    linear-gradient(135deg, #0A1F3F, #0C447C 60%, #0A1F3F);
  color: #fff; padding: 84px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px; pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow { color: var(--blue-light); letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 14px 0; max-width: 18em; }
.hero-sub { max-width: 660px; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn-primary {
  background: var(--teal); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: transform .15s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-outline {
  color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 10px; font-size: 15px;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* 监测指标卡 */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px; backdrop-filter: blur(4px);
}
.stat-num { font-size: 32px; font-weight: 700; color: #fff; }
.stat-num .unit { font-size: 16px; font-weight: 500; color: var(--blue-light); margin-left: 2px; }
.stat-label { color: rgba(255,255,255,.72); font-size: 13px; margin-top: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); }
.section-head p { color: var(--muted); font-size: 16px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(12,68,124,.10); }

/* 产品分类卡 */
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light)); color: var(--blue-deep);
  font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.cat-card h3 { font-size: 18px; }
.cat-card a { color: var(--blue); text-decoration: none; font-size: 14px; }

/* 优势卡 */
.adv-card .adv-no { color: var(--blue-light); font-weight: 700; font-size: 14px; }
.adv-card h3 { font-size: 18px; margin: 8px 0; }
.adv-card p { color: var(--muted); font-size: 14px; }

/* 产品卡 */
.product-card { display: flex; flex-direction: column; }
.product-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.product-card h3 { font-size: 17px; margin: 0 0 6px; }
.product-card .excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.product-card .more { color: var(--blue); text-decoration: none; font-size: 14px; margin-top: 12px; display: inline-block; }

/* 监测面板示意（CSS 柱状） */
.monitor {
  background: linear-gradient(135deg, #0A1F3F, #0C447C);
  border-radius: 16px; padding: 28px; color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
}
.monitor h3 { color: #fff; }
.monitor .cap { color: rgba(255,255,255,.7); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 16px; }
.bars > div { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 6px 6px 0 0; }
.monitor-stats { display: grid; gap: 12px; }
.monitor-stats .ms {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 14px;
}
.monitor-stats .ms .n { font-size: 24px; font-weight: 700; }
.monitor-stats .ms .l { font-size: 12px; color: rgba(255,255,255,.7); }

/* CTA 深蓝带 */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), #0E3A73);
  color: #fff; text-align: center; padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #d7dee8; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,95,165,.15); }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 15px; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.notice.ok { background: #E1F5EE; color: var(--teal); border: 1px solid var(--teal-light); }
.notice.err { background: #FCEBEB; color: #A32D2D; border: 1px solid #F09595; }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--blue-deep), #0A2A55); color: #fff; padding: 20px; }
.admin-side .a-brand { font-weight: 600; margin-bottom: 24px; display: block; }
.admin-side a { display: block; color: rgba(255,255,255,.8); text-decoration: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.14); color: #fff; }
.admin-main { padding: 28px; background: var(--bg-soft); }
.admin-main .card { background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.thumbs { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }

/* ---------- 页脚（深色） ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.82); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid p { margin: 4px 0; font-size: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .monitor { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links, .nav-right { display: none; }
  .site-header.nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--blue-deep); padding: 12px 20px; gap: 4px;
  }
  .site-header.nav-open .nav-right { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue-deep); padding: 0 20px 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .grid-2, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 8px; }
  .admin-side .a-brand { width: 100%; }
}
