/* =========================================================
   金壬智能装备 · 设计系统（明亮 · 橙色系 + 白色系）
   白色基底 + 暖色渐变光晕 + 橙色强调 + 清爽留白
   ========================================================= */

:root {
  --bg: #faf8f5;
  --bg-2: #f3efe9;
  --brand: #f97316;          /* 主橙 */
  --brand-2: #f5a623;        /* 琥珀金 */
  --brand-3: #fb923c;        /* 浅橙 */
  --brand-dark: #ea580c;     /* 深橙 */
  --text: #1f2937;           /* 正文近黑 */
  --muted: #6b7280;          /* 次要灰 */
  --line: rgba(17, 24, 39, 0.08);
  --grad: linear-gradient(120deg, #fb923c 0%, #f97316 48%, #f5a623 100%);
  --glow: 0 8px 24px rgba(249, 115, 22, 0.28);
  --glass: rgba(255, 255, 255, 0.78);
  --font-display: "Orbitron", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 全局背景：暖色光晕 + 极淡网格 ---------- */
.tech-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 10% -6%, rgba(249, 115, 22, 0.10), transparent 60%),
    radial-gradient(800px 620px at 96% 6%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 118%, rgba(251, 146, 60, 0.10), transparent 60%),
    var(--bg);
}
.tech-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 78%);
}

/* ---------- 文字 ---------- */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.font-display { font-family: var(--font-display); letter-spacing: .04em; }
.mono { font-family: var(--font-display); }

/* 小标签：分段标题 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-label::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

/* ---------- 卡片 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
}
.tech-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.tech-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.16), 0 2px 6px rgba(17,24,39,.06);
  border-color: transparent;
}
.tech-card:hover::before { opacity: 1; }

/* 顶部饰条 */
.bar-top { position: relative; }
.bar-top::after {
  content: "";
  position: absolute; top: 0; left: 18px; right: 18px; height: 2.5px;
  background: var(--grad);
  border-radius: 2px;
  pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; font-weight: 600;
  font-family: var(--font-sans); cursor: pointer; border: none;
  transition: transform .2s, box-shadow .3s, filter .3s, background .2s; text-decoration: none;
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45); filter: brightness(1.04); }
.btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 4px 14px rgba(249,115,22,.12); }

/* 输入框 */
.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.field::placeholder { color: rgba(107, 114, 128, .65); }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.14); }
label .req { color: var(--brand); }

/* 标签 chip */
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: #fff;
  transition: all .25s;
}
.chip:hover, .chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgba(249,115,22,.25); }

.badge-cyan { color: var(--brand); border: 1px solid rgba(249,115,22,.35); background: rgba(249,115,22,.08); }
.badge-violet { color: var(--brand-dark); border: 1px solid rgba(234,88,12,.35); background: rgba(245,166,35,.10); }

/* 分隔线 */
.hr-grad { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* 光点 */
.dot-pulse { position: relative; }
.dot-pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px rgba(249,115,22,.5);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- 导航 ---------- */
.nav-link { position: relative; color: var(--muted); transition: color .25s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

/* ---------- 后台 ---------- */
.side-link { position: relative; color: var(--muted); transition: all .25s; }
.side-link:hover { color: var(--text); background: rgba(249,115,22,.06); }
.side-link.active { color: var(--brand); background: rgba(249,115,22,.10); font-weight: 600; }
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); border-radius: 0 2px 2px 0;
}

/* 表格（后台） */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px; border-bottom: 1px solid rgba(17,24,39,.06); color: var(--text); }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(249,115,22,.05); }
.tbl .unread { background: rgba(249,115,22,.05); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(17,24,39,.15); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,.5); }

/* 行数限制 */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 富文本排版 */
.prose p { margin-bottom: 1rem; }
.prose h2, .prose h3 { font-weight: 700; margin: 1.2rem 0 .6rem; color: var(--brand); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose img { border-radius: .5rem; margin: .5rem 0; max-width: 100%; }
.prose a { color: var(--brand); text-decoration: underline; }
