/* ============================================================
   OOOP 企业官网 - 前台样式（深色工业科技风）
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-2: #0e1319;
  --card: #12161d;
  --card-2: #171d26;
  --line: #1f2933;
  --line-2: #2a3644;
  --accent: #22d3ee;
  --accent-2: #0e7490;
  --warm: #f59e0b;
  --text: #f5f7fa;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 24px rgba(34, 211, 238, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* 背景纹理层 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(245, 158, 11, 0.06), transparent 55%);
  pointer-events: none;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.nav-inner .logo { margin-right: 0; }
.logo {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}
.logo small { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; margin: 0 0 0 auto; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 84px;
  overflow: hidden;
}
.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent);
  animation: scanline 5s linear infinite;
}
@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hero-inner { display: grid; gap: 40px; }
/* 导航栏标签（AI · 机器视觉 · 扫码自动化） */
.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: .4px;
  white-space: nowrap;
}
.nav-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 18px 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), #67e8f9, var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 640px;
}

/* Hero 品牌说明（为什么选择 OOOP） */
.hero-why {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, .07), rgba(255, 255, 255, .015) 42%, transparent 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .28);
  overflow: hidden;
  margin-bottom: 0;
}
/* 右侧品牌水印：填充右侧空白，强化品牌记忆 */
.hero-why::after {
  content: 'OOOP';
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 88px;
  font-weight: 800;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}
.hero-why::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, .25));
}
/* 左侧键帽组：O O O P，直观呈现 “OP 相连 + 三个 O” */
.hero-why-keys {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}
.hero-why-keys kbd {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 9px;
  background: linear-gradient(180deg, #1b232d, #121820);
  color: #fff;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .38);
}
.hero-why-keys kbd.is-accent {
  background: linear-gradient(180deg, #22d3ee, #0e7490);
  border-color: rgba(34, 211, 238, .45);
  color: #04222b;
  box-shadow: 0 6px 18px rgba(34, 211, 238, .28);
}
.hero-why-body { min-width: 0; }
.hero-why-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.hero-why-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 2px;
}
.hero-why-text {
  margin-top: 7px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.hero-why-text b {
  color: #fff;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .3px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #04222b; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- 统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.stat {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat .num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat .label { margin-top: 8px; color: var(--text-3); font-size: 13.5px; letter-spacing: .5px; }

/* ---------- 区块通用 ---------- */
.section { padding: 84px 0; }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-top: 10px;
}
.section-head p { color: var(--text-2); margin-top: 10px; max-width: 560px; }

/* 能力卡片 */
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  position: relative;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cap:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--glow); }
.cap .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(34, 211, 238, .1);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.cap h3 { font-size: 19px; margin-bottom: 10px; }
.cap p { color: var(--text-2); font-size: 14.5px; }
.cap .idx {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 作品卡片 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.work-media video,
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.work-media .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0e2930, #12161d);
  color: var(--accent);
  font-size: 40px;
}
.work-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s;
}
.work-card:hover .work-play { opacity: 1; }
.work-play .play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .9);
  display: grid; place-items: center;
  font-size: 22px; color: #04222b;
  transform: scale(.8);
  transition: transform .25s;
}
.work-card:hover .play-btn { transform: scale(1); }
.work-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(11, 15, 20, .75);
  border: 1px solid rgba(34, 211, 238, .4);
  color: var(--accent);
  font-size: 12px;
  font-family: var(--mono);
  backdrop-filter: blur(4px);
}
.work-body { padding: 18px 20px; }
.work-body h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.work-body p {
  color: var(--text-3);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 分类筛选 ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover { color: var(--text); border-color: var(--text-3); }
.filter-chip.active { background: var(--accent); color: #04222b; border-color: var(--accent); font-weight: 600; }

/* ---------- 关于/联系 ---------- */
.prose { color: var(--text-2); font-size: 16px; max-width: 760px; }
.prose p { margin-bottom: 16px; }
.feature-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.feature-list li {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.feature-list li .ico { color: var(--accent); font-size: 18px; }

/* ---------- 留言表单 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* 左侧表单面板 */
.contact-main { min-width: 0; }
.panel {
  padding: 34px 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: flex-start; gap: 14px; }
.panel-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .28);
  display: grid; place-items: center;
  font-size: 20px;
}
.panel-title h3 { font-size: 19px; font-weight: 700; margin-bottom: 5px; }
.panel-title p { font-size: 13.5px; color: var(--text-3); }

.msg-form { display: grid; gap: 22px; }
.msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.msg-field { display: grid; gap: 9px; position: relative; }
.msg-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); letter-spacing: .3px; }
.msg-label i { color: var(--warm); font-style: normal; margin-left: 2px; }
.msg-field input,
.msg-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.msg-field textarea { resize: vertical; min-height: 150px; }
.msg-field input::placeholder,
.msg-field textarea::placeholder { color: var(--text-3); opacity: .75; }
.msg-field input:focus,
.msg-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}
.msg-count {
  justify-self: end;
  font-size: 12px;
  color: var(--text-3);
}
.msg-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.msg-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12.5px;
}
.msg-tip svg { opacity: .7; flex-shrink: 0; }

/* 蜜罐字段：视觉隐藏但保留在 DOM 中 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 22px;
}
.form-alert .alert-ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.form-alert.success {
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .4);
  color: var(--accent);
}
.form-alert.success .alert-ico { background: var(--accent); color: #04222b; }
.form-alert.error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #fca5a5;
}
.form-alert.error .alert-ico { background: #ef4444; color: #fff; }

/* 右侧信息栏 */
.contact-side { display: grid; gap: 18px; min-width: 0; }
.side-card {
  padding: 24px 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-card-accent { background: linear-gradient(160deg, rgba(34, 211, 238, .07), transparent 62%); }
.side-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.side-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.side-list { list-style: none; display: grid; gap: 18px; }
.side-list li { display: flex; align-items: flex-start; gap: 12px; }
.side-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
}
.side-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.side-value {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-all;
}
a.side-value { transition: color .2s; }
a.side-value:hover { color: var(--accent); }

.line-list { list-style: none; display: grid; gap: 11px; margin-bottom: 16px; }
.line-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.line-list .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, .6);
  flex-shrink: 0;
}
.side-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
  transition: transform .2s;
}
.side-link:hover { transform: translateX(3px); }
.side-card-note { background: var(--bg-2); }
.side-note { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  margin-top: 40px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .brand { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.footer .copyright { color: var(--text-3); font-size: 13.5px; }
.footer .links { display: flex; gap: 20px; }
.footer .links a { color: var(--text-2); font-size: 14px; }
.footer .links a:hover { color: var(--accent); }

/* ---------- 弹层（视频播放） ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 12, .85);
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-box {
  width: min(960px, 100%);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-video { position: relative; background: #000; }
.modal-video video { width: 100%; aspect-ratio: 16/9; }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}
.modal-info { padding: 22px 26px; }
.modal-info h3 { font-size: 20px; margin-bottom: 8px; }
.modal-info p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .capabilities, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-side { grid-template-columns: repeat(2, 1fr); }
  .side-card-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 15, 20, .98);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-tag { display: none; }
  .hero-why {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  .hero-why::after { display: none; }
  .hero-why-keys {
    width: 100%;
    padding-right: 0;
    padding-bottom: 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero-why-keys kbd { width: 38px; height: 38px; font-size: 18px; }
  .capabilities, .works-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .msg-row { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px 22px; }
  .panel-head { padding-bottom: 18px; margin-bottom: 20px; }
  .panel-ico { width: 38px; height: 38px; font-size: 17px; }
  .panel-title h3 { font-size: 17px; }
}
