/* 云柯智控（上海）科技有限公司 · 官网
   工业深蓝 + 银灰 · 移动优先 · 克制动效 */

:root {
  --navy: #0B2A4A;
  --navy-700: #123A5F;
  --navy-900: #071B2E;
  --cyan: #00B8D9;
  --cyan-soft: #E5F6FA;
  --silver: #C9D2DC;
  --silver-2: #E8EDF2;
  --bg: #F6F8FA;
  --white: #FFFFFF;
  --line: #DFE6ED;
  --text: #253444;
  --muted: #6B7C8F;
  --ok: #1E8E6E;
  --warn: #B5761A;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(11, 42, 74, .07);
  --shadow-md: 0 8px 24px rgba(11, 42, 74, .1);
  --maxw: 1180px;
  --header-h: 56px;
  --bottombar-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px));
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, Menlo, monospace; letter-spacing: .01em; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 18px; }
.sec { padding: 44px 0; }
.sec-bg { background: var(--bg); }
.sec-navy { background: var(--navy); color: #D5E1EC; }
.sec-navy h1, .sec-navy h2, .sec-navy h3 { color: #fff; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--navy); }
h1 { font-size: 27px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.sec-navy .kicker { color: var(--cyan); }
.lead { color: var(--muted); font-size: 15px; }
.sec-navy .lead { color: #A9C0D4; }
.sec-head { margin-bottom: 24px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; max-width: 620px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { background: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { background: var(--bg); border-color: var(--silver); }
.btn-cyan { background: var(--cyan); color: #04202E; }
.btn-cyan:hover { background: #22C8E6; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------- 顶栏（常驻联系方式） ---------- */
.topbar { background: var(--navy-900); color: #9FB6CB; font-size: 12px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding-block: 6px; }
.topbar-note { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #D6E4F0;
  font-size: 11.5px; font-weight: 600; background: transparent; cursor: pointer;
}
.tb-btn:hover { border-color: var(--cyan); color: #fff; }
.tb-btn.on-dark { color: #fff; }
.tb-label { display: none; }

/* ---------- 导航 ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand img { height: 30px; width: auto; }
.nav-links { display: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer;
}
.lang-btn:hover { border-color: var(--cyan); }
.nav-cta { display: none; }
.burger { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.burger span { display: block; width: 16px; height: 2px; background: var(--navy); margin: 2px 0; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--silver-2); font-weight: 600; color: var(--navy); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- 首屏 ---------- */
.hero { background: var(--navy); color: #D5E1EC; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(201,210,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(201,210,220,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero .wrap { position: relative; z-index: 1; padding-block: 40px 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(0,184,217,.45); color: #7FE3F5; font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: 29px; line-height: 1.28; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-lead { color: #B6CBDE; font-size: 15px; margin-bottom: 22px; max-width: 620px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); color: #C9DAE8;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats dt { font-size: 11px; color: #8FAAC2; margin-bottom: 2px; }
.hero-stats dd { margin: 0; font-size: 19px; font-weight: 700; color: #fff; font-family: ui-monospace, Consolas, monospace; }

/* ---------- 首屏快速询价卡 ---------- */
.hero-quick {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 18px; margin-top: 22px;
}
.hq-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hq-title { font-size: 13px; font-weight: 700; color: #9FD9E8; letter-spacing: .04em; }
.hq-dot { width: 7px; height: 7px; border-radius: 50%; background: #24D07A; box-shadow: 0 0 0 3px rgba(36,208,122,.18); }
.hq-tel { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 21px; font-weight: 700; }
.hq-note { color: #8FAAC2; font-size: 12px; margin: 4px 0 14px; }
.hq-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.hq-actions .btn { min-height: 40px; padding: 0 10px; font-size: 13.5px; }
.hero-quick > .btn-block { min-height: 40px; font-size: 13.5px; }

/* ---------- 三大优势 ---------- */
.adv-list { display: grid; gap: 12px; }
.adv { display: flex; gap: 13px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.adv-ico { flex: 0 0 38px; height: 38px; border-radius: 8px; background: var(--cyan-soft); color: var(--navy); display: grid; place-items: center; }
.adv h3 { font-size: 15px; margin-bottom: 3px; }
.adv p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card {
  display: block; padding: 16px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s ease;
}
.cat-card:hover { border-color: var(--cyan); }
.cat-card .n { font-size: 11px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.cat-card h3 { font-size: 14.5px; margin: 5px 0 4px; }
.cat-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 产品卡 ---------- */
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fchip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { position: relative; }
.search-box input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; outline: none; font-size: 14px;
}
.search-box input:focus { border-color: var(--cyan); }
.count-line { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.count-line b { color: var(--navy); }

.pgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.pcard-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
/* 产品图位：无实拍时用自绘线稿，有 p.img 时自动换成真实照片 */
.pcard-media {
  position: relative; height: 124px; flex: none;
  background: radial-gradient(125% 105% at 50% 0%, #1C5079 0%, #0E3153 55%, #0B2A4A 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pcard-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 15px 15px;
}
.pcard-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(0,0,0,.18), transparent); pointer-events: none;
}
.pcard-media svg {
  position: relative; z-index: 1; height: 100px; width: auto; display: block;
  stroke: #BCD5E8; stroke-width: 1.9; fill: none; stroke-linejoin: round; stroke-linecap: round;
}
.pcard-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-code {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #7FA8C9;
}
.pcard:hover { border-color: var(--silver); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard-model {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; color: var(--navy);
  background: var(--silver-2); padding: 3px 7px; border-radius: 4px; word-break: break-all;
}
.stock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--ok); background: #E9F5F0; }
.stock-low { color: var(--warn); background: #FBF1E0; }
.stock-q { color: var(--muted); background: var(--silver-2); }
.pcard h3 { font-size: 15.5px; }
.pcard .pdesc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.pcard .pcat { font-size: 11.5px; color: var(--cyan); font-weight: 700; }
.pcard .btn { margin-top: auto; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.field label i { color: #C0392B; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; outline: none; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,184,217,.12); }
.field .err { display: none; color: #C0392B; font-size: 11.5px; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0392B; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); font-size: 13.5px; line-height: 1.6; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E9F5F0; color: #146B52; border: 1px solid #BFE5D8; }
.form-msg.err { background: #FDECEC; color: #A32D2D; border: 1px solid #F3C9C9; }

/* ---------- 联系卡 ---------- */
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-item .ico { flex: 0 0 34px; height: 34px; border-radius: 7px; background: var(--silver-2); display: grid; place-items: center; color: var(--navy); }
.contact-item .t { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 1px; }
.contact-item .v { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy); word-break: break-word; }
.contact-item > span:not(.ico) { flex: 1; min-width: 0; }
.contact-item .arrow { margin-left: auto; flex: none; color: var(--silver); }

/* ---------- 关于页 ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose p { font-size: 14.5px; color: #3C4E60; }
.prose ul { padding-left: 18px; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; font-size: 14.5px; color: #3C4E60; }
.info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 16px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.info-table th { background: var(--bg); color: var(--navy); width: 34%; font-weight: 700; }

/* ---------- CTA 带 ---------- */
.cta { background: var(--navy); color: #D5E1EC; }
.cta .wrap { padding-block: 32px; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { color: #fff; font-size: 21px; }
.cta p { margin: 4px 0 0; color: #A9C0D4; font-size: 14px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); color: #8FA6BB; font-size: 13px; }
.footer .wrap { padding-block: 32px 24px; }
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 6px; line-height: 1.7; }
.footer-cols { display: grid; gap: 22px; margin-top: 24px; }
.footer h5 { color: #fff; font-size: 13px; margin: 0 0 9px; font-weight: 700; }
.footer a:hover { color: var(--cyan); }
.footer-col a { display: block; margin-bottom: 7px; }
.footer-kw { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; line-height: 1.9; color: #6F869B; }
.footer-legal { margin-top: 10px; font-size: 11px; color: #5E7488; line-height: 1.8; }
.footer-bottom { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; color: #5E7488; display: flex; flex-direction: column; gap: 6px; }
.qr-box { width: 132px; padding: 7px; background: #fff; border-radius: 6px; }
.qr-box img { width: 100%; height: auto; }

/* ---------- 固定底栏 ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(11,42,74,.06);
}
.dock a, .dock button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--bottombar-h); border: 0; background: transparent; color: var(--navy);
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  border-right: 1px solid var(--silver-2);
}
.dock > *:last-child { border-right: 0; }
.dock .dock-primary { background: var(--navy); color: #fff; }
.dock svg { width: 20px; height: 20px; }

/* ---------- 微信弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(7,27,46,.55); padding: 20px;
  align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 22px; width: 100%; max-width: 320px; text-align: center; }
.modal-box h3 { margin-bottom: 6px; }
.modal-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal-qr { width: 180px; height: 180px; margin: 0 auto 12px; border: 1px dashed var(--silver); border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-size: 12px; color: var(--muted); line-height: 1.6; padding: 8px; }
.modal-qr img { width: 100%; height: auto; display: block; border-radius: 4px; }
.modal-close { margin-top: 6px; }

/* ---------- 管理后台 ---------- */
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.admin-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lead-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lead-table th, .lead-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.lead-table th { background: var(--bg); color: var(--navy); font-weight: 700; white-space: nowrap; font-size: 11.5px; }
.lead-table td { color: #3C4E60; }
.table-scroll { overflow-x: auto; }
.badge-time { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 桌面端 ---------- */
@media (min-width: 720px) {
  :root { --header-h: 70px; --bottombar-h: 0px; }
  body { padding-bottom: 0; }
  .sec { padding: 64px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .wrap { padding-inline: 28px; }
  .topbar-note { display: inline; }
  .tb-label { display: inline; }
  .tb-btn { padding: 0 11px; font-size: 12px; }
  .brand img { height: 36px; }
  .nav-links { display: flex; align-items: center; gap: 26px; margin-left: 12px; }
  .nav-links a { font-size: 14.5px; font-weight: 600; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav-links a:hover, .nav-links a.active { border-bottom-color: var(--cyan); }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .hero .wrap { padding-block: 68px 60px; }
  .hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 16.5px; }
  .hero-actions { flex-direction: row; }
  .adv-list { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-card { padding: 20px 18px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
  .cta .wrap { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 44px; }
  .cta-actions { flex-direction: row; }
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .admin-bar { flex-direction: row; align-items: center; }
  .admin-bar .field { margin: 0; flex: 1; }
}
@media (min-width: 1024px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 46px; }
  .dock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 邮箱开通状态提示 ---------- */
.mail-note { display: inline-block; font-size: 10.5px; line-height: 1.4; padding: 1px 6px; margin-left: 6px;
  border-radius: 3px; background: rgba(232,185,106,.16); color: #E8B96A; vertical-align: 1px; white-space: nowrap; }
.footer .mail-note { color: #E8B96A; }
.contact-item .note { display: block; font-size: 11.5px; line-height: 1.45; color: #B7791F; margin-top: 3px; overflow-wrap: anywhere; }
