/* 天工开物门户与产品页样式（配合 geo.css 使用）
   设计语言：深墨底 + 极光光晕 + 细网格 + 等高线 + 渐变标题（body.tech 前缀，不影响旧内容页） */

:root {
  --ink-0: #050a16;
  --ink-1: #0a1224;
  --ink-2: #0b1630;
  --line-on-dark: rgba(148, 184, 255, 0.16);
  --cyan: #7dd3fc;
  --blue: #3b82f6;
  --violet: #a78bfa;
}

/* ============ 玻璃导航（body.tech） ============ */

.tech .site-header {
  background: rgba(5, 10, 22, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
}

.tech .site-header .logo { color: #f8fafc; }
.tech .site-nav a { color: rgba(203, 213, 225, 0.82); transition: color 0.2s; }
.tech .site-nav a:hover { color: var(--cyan); text-decoration: none; }

/* ============ 沉浸式 Hero（body.tech） ============ */

.tech .page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-0);
  background-image:
    radial-gradient(1100px 520px at 78% -12%, rgba(37, 99, 235, 0.20), transparent 62%),
    radial-gradient(900px 480px at 8% 0%, rgba(8, 145, 178, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 58%, var(--ink-2) 100%);
}

/* 细网格：中心可见、边缘淡出 */
.tech .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 18%, #000 25%, transparent 100%);
  mask-image: radial-gradient(80% 90% at 50% 18%, #000 25%, transparent 100%);
}

/* 噪点：给渐变加质感 */
.tech .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* 极光光晕（ HTML 结构：<i class="hero-orb orb-a"></i> … ） */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.tech .orb-a {
  width: 620px; height: 620px; left: 6%; top: -260px;
  background: radial-gradient(circle at 35% 40%, rgba(59, 130, 246, 0.42), transparent 65%);
  animation: orb-a 26s ease-in-out infinite alternate;
}
.tech .orb-b {
  width: 520px; height: 520px; right: 2%; top: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.30), transparent 65%);
  animation: orb-b 32s ease-in-out infinite alternate;
}
.tech .orb-c {
  width: 460px; height: 460px; left: 42%; bottom: -280px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.26), transparent 65%);
  animation: orb-c 22s ease-in-out infinite alternate;
}

@keyframes orb-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 40px) scale(1.12); }
}
@keyframes orb-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.08); }
}
@keyframes orb-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, -30px) scale(1.15); }
}

/* 等高线：呼应「天工开物 / 墨脱 · 太白」的山川意象 */
.tech .hero-topo {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%; height: 46%;
  pointer-events: none;
}

/* Hero 内容列 */
.tech .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 92px 24px 130px;
}

/* 底部与内容区的衔接光缝 */
.tech .page-hero .hero-inner::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -130px;
  transform: translateX(-50%);
  width: min(760px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.55), rgba(167, 139, 250, 0.4), transparent);
}

/* kicker 徽章 */
.tech .page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.tech .page-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.9);
}

.tech .page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

/* 流动渐变字（h1 内 <span class="grad">…</span>） */
.tech .page-hero h1 .grad {
  background: linear-gradient(92deg, var(--cyan) 0%, #818cf8 34%, var(--violet) 60%, var(--cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-flow 7s linear infinite;
}

@keyframes grad-flow {
  from { background-position: 0% 0; }
  to { background-position: -220% 0; }
}

.tech .page-hero .lead {
  max-width: 780px;
  color: rgba(226, 232, 240, 0.86);
  font-size: 16.5px;
  line-height: 1.85;
}
.tech .hero-slogan {
  margin: 0 0 16px;
  color: #93c5fd;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.tech .page-hero .lead strong { color: #fff; }

/* 标题锁定：logo 放标题行首（大尺寸），标题限宽换行，避免一行排太满 */
.tech .page-hero h1.has-mark {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 860px;
}
.tech .h1-mark {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
}
.tech .h1-text { text-wrap: balance; }

/* 标题排版：图标后是名字（Motuo：/Taibai：/Studio：），中文部分整体另起一行换行 */
.tech .page-hero h1.has-mark .grad { display: block; }

@media (max-width: 640px) {
  .tech .h1-mark { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
  .tech .page-hero h1.has-mark { gap: 16px; }
}

.tech .meta-line { color: rgba(148, 163, 184, 0.9); }

/* 按钮：胶囊形 */
.tech .btn {
  border-radius: 999px;
  padding: 12px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.tech .btn:active { transform: translateY(1px); }

.tech .btn-primary {
  background: linear-gradient(92deg, #2563eb 0%, #3b82f6 55%, #06b6d4 120%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.tech .btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tech .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(226, 232, 240, 0.32);
  color: #e2e8f0;
}
.tech .btn-secondary:hover {
  text-decoration: none;
  border-color: rgba(226, 232, 240, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* 入场动效：自上而下错落浮现 */
.tech .page-kicker { animation: hero-rise 0.7s 0.02s ease both; }
.tech .page-hero h1 { animation: hero-rise 0.7s 0.1s ease both; }
.tech .page-hero .lead { animation: hero-rise 0.7s 0.18s ease both; }
.tech .page-hero .btn-row,
.tech .page-hero .meta-line { animation: hero-rise 0.7s 0.26s ease both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tech .orb-a, .tech .orb-b, .tech .orb-c,
  .tech .page-hero h1 .grad,
  .tech .page-kicker, .tech .page-hero h1,
  .tech .page-hero .lead, .tech .page-hero .btn-row,
  .tech .page-hero .meta-line { animation: none; }
  .tech .page-hero h1 .grad {
    background: linear-gradient(92deg, var(--cyan), #818cf8 50%, var(--cyan));
    -webkit-background-clip: text; background-clip: text;
  }
}

/* ============ 内容区（body.tech） ============ */

.tech main.page {
  background: #fdfdfb;
  padding-top: 40px;
}

/* 表格：圆角卡片 + 发丝线 + 悬停行高亮 */
.tech main.page table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  overflow: hidden;
  font-size: 14.5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.tech main.page th {
  background: #f4f6fb;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tech main.page th, .tech main.page td {
  border: none;
  border-bottom: 1px solid #eef0f4;
  padding: 12px 16px;
}
.tech main.page tr:last-child td { border-bottom: none; }
.tech main.page td { color: #475569; }
.tech main.page tr:hover td { background: #f8faff; }

.tech .faq-item {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tech .faq-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.07);
}

.tech .toc { background: #f7f8fb; border-color: #e7e9ee; border-radius: 14px; }

.tech main.page code {
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
  color: #1d4ed8;
}

.tech .callout {
  border-left: 3px solid #3b82f6;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.015));
}

/* ============ 深色 Footer（body.tech） ============ */

.tech .site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 100%);
  border-top: none;
}
.tech .site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.5), rgba(167, 139, 250, 0.35), transparent);
}

.tech .footer-nav a { color: rgba(203, 213, 225, 0.85); transition: color 0.2s; }
.tech .footer-nav a:hover { color: var(--cyan); }

.tech .disclaimer {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.30);
}
.tech .disclaimer,
.tech .disclaimer strong { color: rgba(203, 213, 225, 0.85); }

.tech .copyright { color: rgba(148, 163, 184, 0.75); }
.tech .copyright a { color: rgba(148, 163, 184, 0.75); text-decoration: underline; }

/* ============ 通用补充 ============ */

.callout {
  border-left: 3px solid #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.8;
  margin: 18px 0;
}

.hero-portal {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 100%);
  padding: 64px 24px 56px;
  text-align: center;
}

.hero-portal .kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-portal h1 {
  font-size: 40px;
  line-height: 1.18;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 14px auto 18px;
  max-width: 760px;
}

.hero-portal .lead {
  max-width: 680px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 16.5px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-card h3 {
  color: #111827;
  font-size: 19px;
  margin-bottom: 4px;
}

.product-card .product-tag {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}

.product-card ul {
  margin: 14px 0 16px;
  padding-left: 18px;
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.8;
}

.product-card .card-cta {
  font-weight: 600;
  font-size: 14px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.fact-strip .fact {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}

.fact-strip .fact strong {
  display: block;
  color: #111827;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.fact-strip .fact span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .product-grid,
  .fact-strip {
    grid-template-columns: 1fr;
  }

  .hero-portal h1 {
    font-size: 30px;
  }

  .tech .hero-inner {
    padding: 64px 24px 96px;
  }

  .tech .orb-a { width: 420px; height: 420px; left: -120px; }
  .tech .orb-b { width: 380px; height: 380px; right: -140px; }
}
