/* ================================================================
   0317AI · 全站共享样式表
   适用页面：index.html（page-home）/ list.html（page-list）/ content.html（page-content）
   - 公共部分：变量、基础、导航、按钮、页脚、入场动画等
   - 差异部分：通过 body 上的页面类进行隔离，保证各页视觉一致且互不干扰
   ================================================================ */

/* ================= 变量 ================= */
:root {
  --bg-deep: #03060f;
  --bg-card: rgba(23, 41, 76, 0.72);
  --line: rgba(64, 148, 255, 0.18);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --glow: #38bdf8;
  --text: #dbeafe;
  --text-body: #a9c2e0;
  --text-dim: #7f9ac2;
  --text-faint: #4d6488;
  --radius: 16px;
  --maxw: 1200px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
/* 首页沿用更深的卡片与面板底色 */
body.page-home {
  --bg-card: rgba(12, 22, 44, 0.55);
  --bg-panel: #070c1a;
}

/* ================= 基础 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ================= 全局网格与氛围光背景 ================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}
body.page-home::before {
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* 3D 背景画布（原生 Canvas 2D，仅首页使用） */
#glcanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.ambient {
  position: fixed;
  top: -32vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 62vh;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.07) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
body.page-home .ambient {
  top: -30vh;
  height: 70vh;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08) 40%, transparent 70%);
}

/* ================= 导航 ================= */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}
.logo .mark {
  width: 34px; height: 34px;
  position: relative;
  display: grid;
  place-items: center;
}
.logo .mark::before,
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .7), inset 0 0 12px rgba(34, 211, 238, .35);
}
.logo .mark::after {
  transform: rotate(45deg);
  border-color: var(--blue-soft);
  box-shadow: 0 0 18px rgba(96, 165, 250, .6);
}
.logo .mark span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #fff;
  z-index: 1;
}
.logo b {
  font-size: 30px;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #22d3ee 0%, #67e8f9 30%, #a5f3fc 50%, #67e8f9 70%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, .40));
  transition: filter .3s;
}
.logo:hover b {
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, .70)) brightness(1.15);
}

nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
nav ul li { display: flex; align-items: center; }
nav ul a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 1px;
  position: relative;
  padding: 6px 0;
  text-shadow: 0 1px 10px rgba(56, 189, 248, .18);
  transition: color .25s, text-shadow .25s;
}
nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px var(--glow);
  transition: width .3s ease;
}
nav ul a:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(56, 189, 248, .55);
}
nav ul a:hover::after { width: 100%; }
nav ul a.active {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(34, 211, 238, .55);
}
nav ul a.active::after { width: 100%; }

/* 导航下拉菜单（核心服务等分类的子项列表） */
nav ul li.has-drop { position: relative; }
nav ul li.has-drop > a { gap: 7px; }
nav ul .caret {
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s;
}
nav ul li.has-drop:hover > a .caret { transform: rotate(225deg) translate(-2px, -2px); }
nav ul .dropdown {
  position: absolute;
  top: 100%; left: -24px;
  transform: translateY(10px);
  min-width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(160deg, rgba(32, 62, 116, 0.42), rgba(8, 16, 34, 0.26));
  border: 1px solid rgba(96, 165, 250, .30);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(130, 185, 255, .10);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
nav ul li.has-drop:hover .dropdown,
nav ul li.has-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
nav ul .dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  text-shadow: none;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
nav ul .dropdown a::after { display: none; }
nav ul .dropdown a:hover { color: #fff; background: rgba(56, 189, 248, .18); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #02121f;
  box-shadow: 0 0 24px rgba(56, 189, 248, .45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(56, 189, 248, .8);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(56, 130, 246, 0.06);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 24px rgba(56, 189, 248, .3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--cyan);
  box-shadow: 0 0 8px var(--glow);
  transition: .3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 26px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #7dd3fc 0%, var(--cyan) 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, .45));
}
.hero p.lead {
  max-width: 620px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  margin-bottom: 42px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: flex; gap: 54px; flex-wrap: wrap; }
.hero-stats .stat b {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, var(--blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 2px;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 3px;
}
.scroll-hint .mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ================= 通用区块（首页） ================= */
section.block {
  position: relative;
  padding: 110px 0;
  z-index: 1;
}
.section-head { margin-bottom: 60px; max-width: 720px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ================= 产品介绍（首页） ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.p-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s;
  transform-style: preserve-3d;
}
.p-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .16), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.p-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.p-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, .5);
  box-shadow: 0 22px 60px -20px rgba(15, 90, 200, .8), inset 0 0 40px rgba(56, 189, 248, .06);
}
.p-card:hover::before { opacity: 1; }
.p-card:hover::after { transform: scaleX(1); }

.p-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(34, 211, 238, .18), rgba(59, 130, 246, .12));
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 26px;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, .15);
  transition: transform .4s, box-shadow .4s;
}
.p-card:hover .p-icon {
  transform: translateZ(30px) scale(1.08);
  box-shadow: 0 0 26px rgba(56, 189, 248, .5), inset 0 0 22px rgba(56, 189, 248, .3);
}
.p-card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: .5px; }
.p-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags span {
  font-size: 12px;
  color: var(--blue-soft);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(56, 130, 246, .06);
}
.p-num {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 42px;
  font-weight: 800;
  color: rgba(56, 130, 246, .1);
  letter-spacing: 1px;
  transition: color .4s;
}
.p-card:hover .p-num { color: rgba(56, 189, 248, .25); }

/* ================= 公司简介（首页） ================= */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.about-copy p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 20px; }
.about-copy p strong { color: var(--cyan); font-weight: 600; }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.about-points .pt {
  padding: 18px 20px;
  border-left: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(34, 211, 238, .08), transparent);
  border-radius: 0 10px 10px 0;
}
.about-points .pt b { display: block; font-size: 15px; margin-bottom: 4px; }
.about-points .pt span { font-size: 13px; color: var(--text-faint); }

/* 3D 视觉卡（首页） */
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.about-visual .core {
  width: 70%;
  aspect-ratio: 1;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCore 22s linear infinite;
}
@keyframes spinCore {
  from { transform: rotateX(-18deg) rotateY(0); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
.about-visual .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 189, 248, .45);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(56, 189, 248, .25), inset 0 0 30px rgba(56, 189, 248, .15);
}
.about-visual .ring.r1 { transform: rotateY(0deg); }
.about-visual .ring.r2 { transform: rotateY(60deg); }
.about-visual .ring.r3 { transform: rotateY(120deg); }
.about-visual .ring.r4 {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(96, 165, 250, .5);
  animation: spinCore 14s linear infinite reverse;
}
.about-visual .sphere {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #bff4ff, var(--cyan) 34%, var(--blue) 72%, #0b2a55 100%);
  box-shadow: 0 0 60px rgba(34, 211, 238, .7), inset -10px -14px 40px rgba(0, 0, 0, .6);
}
.about-visual .halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 62%);
  filter: blur(10px);
}

/* ================= 公司动态（首页） ================= */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s, background .35s;
  cursor: pointer;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}
.news-item:hover {
  transform: translateX(8px);
  border-color: rgba(56, 189, 248, .45);
  box-shadow: -12px 0 40px -18px rgba(56, 189, 248, .7);
  background: rgba(12, 24, 48, 0.75);
}
.news-item:hover::before { transform: scaleY(1); }

.news-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.news-date .d { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.news-date .m { font-size: 12px; color: var(--cyan); letter-spacing: 2px; }
.news-body h3 { font-size: 17.5px; margin-bottom: 8px; transition: color .3s; }
.news-item:hover .news-body h3 { color: var(--cyan); }
.news-body p {
  font-size: 14px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 13px;
  white-space: nowrap;
  transition: color .3s, transform .3s;
}
.news-item:hover .news-meta { color: var(--cyan); transform: translateX(4px); }

/* ================= 面包屑（列表页 / 详情页） ================= */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 22px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb .cur { color: var(--cyan); }

/* ================= 列表页 Banner ================= */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .6;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.page-hero h1 .grad {
  background: linear-gradient(120deg, #7dd3fc 0%, var(--cyan) 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, .45));
}
.page-hero p.sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.5vw, 17px);
  position: relative;
  z-index: 2;
}
.page-hero .hero-inner { position: relative; z-index: 2; }

/* ================= 详情页文章头 ================= */
.post-hero {
  position: relative;
  padding: 168px 0 58px;
  overflow: hidden;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.post-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .6;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--cyan);
  padding: 6px 15px;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  position: relative;
  z-index: 2;
}
.chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.post-hero h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  margin: 20px 0 26px;
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  position: relative;
  z-index: 2;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
.post-meta .tag-cyan { color: var(--cyan); }

/* ================= Banner 内的 CSS 3D 光球（列表页 / 详情页共用） ================= */
.orb-wrap {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  perspective: 1000px;
  pointer-events: none;
  z-index: 1;
}
body.page-content .orb-wrap { right: 2%; width: 320px; height: 320px; opacity: .75; }
.orb-wrap .halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 62%);
  filter: blur(16px);
}
.orb {
  position: absolute;
  inset: 12%;
  transform-style: preserve-3d;
  animation: orbSpin 20s linear infinite;
}
@keyframes orbSpin {
  from { transform: rotateX(-20deg) rotateY(0); }
  to { transform: rotateX(-20deg) rotateY(360deg); }
}
.orb .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 189, 248, .4);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(56, 189, 248, .22), inset 0 0 26px rgba(56, 189, 248, .12);
}
.orb .ring:nth-child(2) { transform: rotateY(60deg); }
.orb .ring:nth-child(3) { transform: rotateY(120deg); }
.orb .ring:nth-child(4) {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(96, 165, 250, .5);
  animation: orbSpin 12s linear infinite reverse;
}
.orb .ball {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #bff4ff, var(--cyan) 34%, var(--blue) 72%, #0b2a55 100%);
  box-shadow: 0 0 50px rgba(34, 211, 238, .65), inset -8px -12px 34px rgba(0, 0, 0, .6);
}

/* ================= 主体布局 ================= */
.main { position: relative; z-index: 1; padding: 70px 0 100px; }
body.page-content .main { padding: 56px 0 100px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}
/* 网格子项默认为 min-width:auto，会被宽内容撑破轨道，强制允许收缩 */
.layout > * { min-width: 0; }

/* ================= 工具条（列表页） ================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(56, 130, 246, .04);
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.tab:hover { color: #fff; border-color: rgba(56, 189, 248, .5); }
.tab.active {
  color: #02121f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(56, 189, 248, .45);
  font-weight: 600;
}
.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 220px;
  padding: 10px 40px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 44, .6);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { border-color: var(--cyan); box-shadow: 0 0 18px rgba(56, 189, 248, .3); }
.search .ico {
  position: absolute;
  right: 14px;
  color: var(--cyan);
  font-size: 14px;
  pointer-events: none;
}

/* ================= 文章列表（列表页） ================= */
.articles { display: flex; flex-direction: column; gap: 22px; }
.article {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  padding: 18px;
  border: 1px solid rgba(84, 152, 240, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(34, 66, 122, 0.26), rgba(10, 20, 42, 0.12));
  box-shadow: 0 18px 44px -26px rgba(2, 8, 22, 0.95), inset 0 1px 0 rgba(130, 185, 255, 0.10);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s, background .35s;
}
.article::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}
.article:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, .55);
  box-shadow: 0 26px 64px -26px rgba(15, 90, 200, .85), inset 0 1px 0 rgba(130, 185, 255, 0.16);
  background: linear-gradient(158deg, rgba(46, 86, 152, 0.40), rgba(14, 28, 56, 0.22));
}
.article:hover::before { transform: scaleY(1); }

/* 无缩略图文章卡片（技术列表页）：单列满宽，序号作标签 */
.article.no-thumb { grid-template-columns: 1fr; gap: 0; }
.article.no-thumb .art-body { padding: 4px 10px 4px 4px; }
.article.no-thumb .art-index {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.6;
  color: var(--cyan);
}

.thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #0a1730, #06101f);
  border: 1px solid var(--line);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.thumb img.loaded { opacity: .9; }
.article:hover .thumb img { transform: scale(1.06); }
.thumb .cat {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(3, 10, 22, .8);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.art-body { display: flex; flex-direction: column; padding: 6px 8px 6px 0; }
.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.art-meta .d { color: var(--cyan); }
.art-body h3 {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 12px;
  transition: color .3s;
}
.article:hover .art-body h3 { color: var(--cyan); }
.art-body p {
  color: var(--text-dim);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.art-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cyan);
  letter-spacing: 1px;
  transition: gap .3s;
}
.article:hover .art-more { gap: 14px; }

.empty {
  display: none;
  padding: 70px 20px;
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(56, 130, 246, .05);
  color: var(--text-dim);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
}
.pager button:hover:not(:disabled) { color: #fff; border-color: rgba(56, 189, 248, .5); }
.pager button.active {
  color: #02121f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(56, 189, 248, .45);
}
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* 分页（yzncms 标准分页器 ul.pagination） */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}
.pagination li { display: inline-flex; }
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(56, 130, 246, .05);
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: all .25s;
}
.pagination li a:hover { color: #fff; border-color: rgba(56, 189, 248, .5); }
.pagination li.active span {
  color: #02121f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(56, 189, 248, .45);
}
.pagination li.disabled span { opacity: .35; cursor: not-allowed; }

/* ========== 侧边栏 ========== */
.side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.side-card {
  padding: 26px 24px;
  border: 1px solid rgba(84, 152, 240, 0.26);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 14px 36px -24px rgba(2, 8, 22, 0.95), inset 0 1px 0 rgba(130, 185, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.side-card h4 {
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-left: 12px;
  position: relative;
  color: #fff;
}
.side-card h4::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px var(--glow);
}
.cats { list-style: none; }
.cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(64, 148, 255, .12);
  cursor: pointer;
  transition: color .25s, padding-left .25s;
}
.cats li:last-child { border-bottom: none; }
.cats li:hover { color: var(--cyan); padding-left: 6px; }
.cats li .n { font-size: 12px; color: var(--text-faint); }

.hot { list-style: none; counter-reset: hot; }
.hot li {
  counter-increment: hot;
  display: flex;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
  transition: color .25s;
}
.hot li::before {
  content: counter(hot);
  flex: none;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid var(--line);
}
.hot li:nth-child(1)::before { color: #02121f; background: linear-gradient(120deg, var(--cyan), var(--blue)); border-color: transparent; }
.hot li:nth-child(2)::before { color: #fff; background: rgba(59, 130, 246, .35); }
.hot li:hover { color: var(--cyan); }

.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span {
  font-size: 12.5px;
  color: var(--blue-soft);
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(56, 130, 246, .06);
  cursor: pointer;
  transition: all .25s;
}
.tags span:hover {
  color: #02121f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent;
}

/* ================= 详情页 ================= */
/* 阅读进度条 */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px var(--glow);
  transition: width .1s linear;
}

/* 封面 */
.cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid rgba(84, 152, 240, .28);
  box-shadow: 0 30px 70px -30px rgba(2, 8, 22, .95);
  background: linear-gradient(140deg, #0a1730, #06101f);
  margin-bottom: 48px;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.cover img.loaded { opacity: .95; }

/* 正文 */
.post { position: relative; }
.post-body { font-size: 16px; line-height: 1.95; color: var(--text-body); overflow-wrap: break-word; }
/* 兼容编辑器写入的 nowrap，避免正文不换行撑破右侧布局 */
.post-body [style*="nowrap"] { white-space: normal !important; text-wrap-mode: wrap !important; }
.post-body > * + * { margin-top: 24px; }
.post-body h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  margin-top: 50px;
  padding-left: 18px;
  position: relative;
  scroll-margin-top: 104px;
}
.post-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px var(--glow);
}
.post-body h3 { font-size: 18px; font-weight: 700; color: #fff; margin-top: 32px; }
.post-body .lead { font-size: 18px; line-height: 1.9; color: var(--text); }
.post-body strong { color: #fff; }
.post-body a { color: var(--cyan); border-bottom: 1px dashed rgba(34, 211, 238, .5); }
.post-body a:hover { border-bottom-style: solid; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 9px 0; }
.post-body li::marker { color: var(--cyan); }

.post-body blockquote {
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, .06);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  color: var(--text);
  font-style: italic;
  box-shadow: inset 0 0 30px -18px rgba(34, 211, 238, .6);
}
.post-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-style: normal;
  color: var(--text-faint);
}

.callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(84, 152, 240, .32);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(130, 185, 255, .09);
}
.callout .ic {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  color: #02121f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(56, 189, 248, .5);
}
.callout .txt { font-size: 14.5px; color: var(--text-body); }
.callout .txt b { color: #fff; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.post-body th, .post-body td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.post-body th { color: #fff; background: rgba(56, 130, 246, .12); font-weight: 600; letter-spacing: .5px; }
.post-body td { color: var(--text-body); }
.post-body tr:last-child td { border-bottom: none; }
.post-body td .up { color: var(--cyan); font-weight: 600; }

.post-body figure { margin-top: 30px; }
.post-body figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.post-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}

/* 标签 */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-tags .lbl { font-size: 13px; color: var(--text-faint); letter-spacing: 1px; margin-right: 4px; }

/* 上一篇 / 下一篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.post-nav a {
  padding: 18px 20px;
  border: 1px solid rgba(84, 152, 240, .28);
  border-radius: 14px;
  background: var(--bg-card);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.post-nav a:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, .55);
  box-shadow: 0 18px 44px -26px rgba(15, 90, 200, .9);
}
.post-nav .lbl { font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }
.post-nav .ttl { color: var(--text); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
.post-nav a:hover .ttl { color: var(--cyan); }
.post-nav .next { text-align: right; }

/* 目录 */
.toc { list-style: none; }
.toc li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 9px 0 9px 14px;
  border-left: 2px solid rgba(64, 148, 255, .16);
  cursor: pointer;
  line-height: 1.5;
  transition: color .25s, border-color .25s, background .25s;
}
.toc li:hover { color: var(--cyan); }
.toc li.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(34, 211, 238, .12), transparent);
}

/* ================= CTA 条 ================= */
.cta {
  position: relative;
  padding: 70px 50px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(120deg, rgba(34, 211, 238, .12), rgba(59, 130, 246, .08));
  border: 1px solid var(--line);
  overflow: hidden;
}
body.page-home .cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 50% 120%, rgba(56, 189, 248, .25), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta p {
  color: var(--text-dim);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.cta .hero-actions { justify-content: center; margin-bottom: 0; position: relative; z-index: 1; }
body.page-list .cta,
body.page-content .cta {
  margin: 0 auto 100px;
  padding: 60px 40px;
  max-width: var(--maxw);
}
body.page-list .cta h2,
body.page-content .cta h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 14px; }
body.page-list .cta p,
body.page-content .cta p { margin-bottom: 26px; }
body.page-list .cta .hero-actions,
body.page-content .cta .hero-actions { gap: 16px; }

/* ================= 在线留言表单（首页 / 联系我们页共用） ================= */
.contact-cta {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: center;
  text-align: left;
}
/* 联系我们页：与上方联系方式卡片保持间距，底部间距由 .main 提供 */
body.page-content .cta.contact-cta {
  margin: 40px auto 0;
}
.contact-intro { position: relative; z-index: 1; }
.contact-cta h2 { margin-bottom: 14px; }
.contact-intro p { margin-bottom: 24px; }
.contact-points { list-style: none; display: grid; gap: 12px; }
.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
}
.contact-points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(158deg, rgba(34, 66, 122, .26), rgba(10, 20, 42, .12));
  border: 1px solid rgba(84, 152, 240, .22);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(130, 185, 255, .10);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  color-scheme: dark;
}
.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 13.5px;
  letter-spacing: .5px;
  color: var(--text-body);
}
.form-row label em { font-style: normal; color: var(--cyan); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(6, 14, 30, .55);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-row textarea {
  min-height: 96px;
  line-height: 1.7;
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(34, 211, 238, .6);
  background: rgba(8, 20, 40, .72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .10);
}
.form-row select option { background: #0a1428; color: var(--text); }
.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.contact-form .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* 字段校验状态 */
.field-error {
  display: none;
  font-size: 12.5px;
  line-height: 1.4;
  color: #f87171;
}
.form-row.invalid .field-error { display: block; }
.form-row.invalid input,
.form-row.invalid textarea,
.form-row.invalid select {
  border-color: rgba(248, 113, 113, .65);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .10);
}

/* 提交结果提示 */
.form-tip { display: none; font-size: 13.5px; line-height: 1.6; }
.form-tip.ok,
.form-tip.err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
}
.form-tip::before { font-weight: 700; }
.form-tip.ok {
  color: #67e8f9;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .28);
}
.form-tip.ok::before { content: "✓"; }
.form-tip.err {
  color: #fca5a5;
  background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .28);
}
.form-tip.err::before { content: "!"; }

/* ================= 联系我们页 ================= */
.contact-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.contact-head h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 18px 0 14px;
}
.contact-head p { color: var(--text-dim); font-size: 15px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 36px 24px;
  border: 1px solid rgba(84, 152, 240, .26);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 14px 36px -24px rgba(2, 8, 22, .95), inset 0 1px 0 rgba(130, 185, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.info-card:hover {
  border-color: rgba(34, 211, 238, .5);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -30px rgba(2, 8, 22, 1), 0 0 30px -12px rgba(56, 189, 248, .4), inset 0 1px 0 rgba(130, 185, 255, .12);
}
.info-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .3);
  box-shadow: 0 0 22px rgba(56, 189, 248, .25);
}
.info-icon svg { width: 26px; height: 26px; }
.info-body h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.info-body p,
.info-body a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
  overflow-wrap: break-word;
}
.info-body a:hover { color: var(--cyan); }
.info-body .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }

/* ================= 页脚 ================= */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  background: rgba(3, 7, 16, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid h4 { font-size: 15px; margin-bottom: 18px; color: #fff; letter-spacing: 1px; }
.foot-grid p, .foot-grid li { font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; list-style: none; }
.foot-grid .logo + p { margin-top: 16px; }
.foot-grid a:hover { color: var(--cyan); }
.foot-bottom {
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 1px;
}

/* ================= 滚动入场动画 ================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.show { opacity: 1; transform: translateY(0); }
body.page-list .reveal,
body.page-content .reveal {
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
body.page-list .reveal.show,
body.page-content .reveal.show { transform: translateY(0); }

/* ================= 响应式 ================= */
/* 列表页 / 详情页：侧栏下沉 */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
  body.page-list .orb-wrap { width: 300px; height: 300px; right: -40px; opacity: .7; }
  body.page-content .orb-wrap { width: 280px; height: 280px; right: -60px; opacity: .45; }
}

/* 平板 / 小屏 */
@media (max-width: 900px) {
  .ambient { filter: blur(18px); }

  nav ul {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    padding: 110px 34px;
    gap: 24px;
    background: rgba(4, 9, 20, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .8);
  }
  nav ul.open { transform: translateX(0); }
  nav ul a { font-size: 16px; }
  .menu-toggle { display: flex; z-index: 60; }
  .nav-cta { display: none; }

  /* 下拉菜单：同样悬停 / 聚焦展开，仅在窄屏下缩窄并允许换行 */
  nav ul .dropdown { min-width: 160px; max-width: calc(100vw - 90px); }
  nav ul .dropdown a { white-space: normal; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* 首页 */
  section.block { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 118px 0 70px; min-height: auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .news-item { grid-template-columns: 84px 1fr; gap: 16px; }
  .news-meta { grid-column: 2; }
  .news-date .d { font-size: 26px; }

  .contact-cta { grid-template-columns: 1fr; gap: 34px; }
}

/* 手机：列表页 / 详情页 */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; }
  .logo { font-size: 17px; letter-spacing: 1px; }
  .logo .mark { width: 30px; height: 30px; }

  .page-hero { padding: 128px 0 60px; }
  .page-hero h1 { letter-spacing: 1px; }
  .post-hero { padding: 128px 0 44px; }
  .post-hero h1 { letter-spacing: 0; }
  body.page-list .orb-wrap { width: 200px; height: 200px; right: -50px; top: 34%; opacity: .5; }
  body.page-content .orb-wrap { width: 200px; height: 200px; right: -70px; top: 40%; opacity: .35; }

  body.page-list .main { padding: 46px 0 70px; }
  body.page-content .main { padding: 40px 0 72px; }

  .toolbar { gap: 14px; }
  .tabs { gap: 8px; }
  .tab { padding: 7px 14px; font-size: 13px; }
  .search { width: 100%; }
  .search input { width: 100%; }

  .article { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .thumb { aspect-ratio: 16 / 9; }
  .art-body { padding: 0 4px 4px; }
  .art-body h3 { font-size: 16.5px; }
  .art-body p { -webkit-line-clamp: 3; }

  .cover { aspect-ratio: 16 / 9; margin-bottom: 34px; border-radius: 16px; }
  .post-body { font-size: 15.5px; line-height: 1.9; }
  .post-body .lead { font-size: 16.5px; }
  .post-body h2 { margin-top: 40px; }
  .post-body th, .post-body td { padding: 11px 12px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }

  body.page-list .cta,
  body.page-content .cta { padding: 40px 20px; border-radius: 18px; margin-bottom: 70px; }

  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { font-size: 12px; line-height: 1.6; }
}

/* 手机：首页 */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; }
  .logo { font-size: 17px; letter-spacing: 1px; }
  .logo .mark { width: 30px; height: 30px; }

  section.block { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 14.5px; }

  .hero { padding: 104px 0 56px; }
  .hero h1 { font-size: 34px; letter-spacing: 1px; }
  .hero-badge { font-size: 11px; letter-spacing: 1px; padding: 7px 14px; }
  .hero p.lead { font-size: 14.5px; margin-bottom: 32px; }
  body.page-home .hero-actions { gap: 12px; margin-bottom: 46px; }
  body.page-home .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-stats { gap: 22px 14px; }
  .hero-stats .stat b { font-size: 26px; }
  .hero-stats .stat span { font-size: 12px; letter-spacing: 1px; }
  .scroll-hint { display: none; }

  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .p-card { padding: 28px 24px; }
  .p-num { font-size: 34px; }

  .about-points { grid-template-columns: 1fr; }
  .about-visual { max-width: 280px; }

  .news-item { padding: 18px; grid-template-columns: 64px 1fr; }
  .news-date .d { font-size: 22px; }
  .news-date .m { font-size: 11px; letter-spacing: 1px; }
  .news-body h3 { font-size: 15.5px; }
  .news-body p { font-size: 13.5px; }

  body.page-home .cta { padding: 44px 20px; border-radius: 18px; }
  .contact-form { padding: 22px; border-radius: 14px; }

  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { font-size: 12px; line-height: 1.6; }
}

/* 手机横屏（高度很矮）：首页 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 0 50px; }
  .scroll-hint { display: none; }
}

/* 联系我们页：窄屏自适应 */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-head { margin-bottom: 34px; }
  .contact-content { padding: 30px 22px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}
