/* =========================================================
   默认企业站主题 —— 科技感版本
   ---------------------------------------------------------
   视觉语言：深海军蓝 + 细网格线 + 主题色光晕、双色渐变、
   等宽字体做标签 / 数字 / 元信息、HUD 式角标、玻璃态深色卡片。

   后台「外观设置」注入到 :root 的变量（不要改名）：
   --primary --primary-rgb --bg-dark --bg-soft --ink-2
   --radius --radius-sm --btn-radius --container --section-pad

   页面设计器（preview.js）依赖的类 / 属性契约见文件末尾
   「设计器画布」一节，重写时必须保持语义一致。
   ========================================================= */

:root {
  --primary: #0f5ec4;
  --primary-rgb: 15, 94, 196;
  /* 主题色派生：支持 color-mix 的浏览器会在下方 @supports 中覆盖 */
  --primary-2: rgba(var(--primary-rgb), 0.55);
  --primary-deep: rgba(var(--primary-rgb), 0.9);
  --glow: rgba(var(--primary-rgb), 0.45);
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);

  --ink: #0b1220;
  --ink-2: #3b4a63;
  --muted: #6b7a90;
  --line: #e2e8f1;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark: #0c1626;

  --radius: 12px;
  --radius-sm: 8px;
  --btn-radius: 999px;
  --container: 1200px;
  --section-pad: 88px;
  --header-h: 76px;
  --topbar-h: 0px;

  --shadow: 0 10px 30px -12px rgba(11, 18, 32, 0.12);
  --shadow-lg: 0 30px 70px -24px rgba(11, 18, 32, 0.28);
  --shadow-glow: 0 18px 44px -18px rgba(var(--primary-rgb), 0.55);

  /* 表单控件（深色区块内会被覆盖） */
  --field-bg: #ffffff;
  --field-border: #d5dde8;
  --field-fg: var(--ink);
  --field-placeholder: #94a3b8;

  /* 卡片（深色区块内切换为玻璃态） */
  --card-bg: #ffffff;
  --card-border: var(--line);

  /* 网格纹理 */
  --grid-line: rgba(255, 255, 255, 0.045);
  --grid-size: 56px;

  --font-heading: inherit;
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", "Fira Code", Consolas, "Roboto Mono", ui-monospace, Menlo,
    monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (color: color-mix(in oklab, red 50%, blue)) {
  :root {
    --primary-2: color-mix(in oklab, var(--primary) 52%, #67e8f9);
    --primary-deep: color-mix(in oklab, var(--primary) 72%, #060b18);
  }
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px);
}

/* 顶部信息条随头部一起吸顶，吸顶元素需要额外让出它的高度 */
body:has(.topbar) {
  --topbar-h: 34px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: currentColor;
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  min-height: 40vh;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s;
}

/* 悬停时的光带（用 ::after，::before 留给设计器占位文字） */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(var(--primary-rgb), 0.7);
}

.btn-outline {
  border-color: rgba(var(--primary-rgb), 0.45);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.09);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
}

.btn-light:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  height: 54px;
  padding: 0 34px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
}

/* ---------- 顶部信息条 + 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(11, 18, 32, 0.25);
}

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 16px;
}

/* 左侧“运行中”指示灯 */
.topbar-inner::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 10px var(--primary-2);
  animation: blink 2.4s ease-in-out infinite;
}

.topbar-slogan {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: -8px;
}

.topbar-contact {
  display: flex;
  gap: 22px;
  flex: none;
  align-items: center;
}

.topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-contact svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.topbar-lang-only {
  min-height: 36px;
}

.topbar-inner-end {
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch-item {
  color: inherit;
  opacity: 0.72;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lang-switch-item:hover,
.lang-switch-item.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.lang-switch-sep {
  opacity: 0.35;
  user-select: none;
}

/* 桌面：语言在 topbar；移动端：左下角悬浮，不占头部空间 */
.lang-switch-mobile,
.lang-switch-float {
  display: none;
}

.header-tools {
  display: contents;
}

.header-main {
  position: relative;
}

/* 头部底部渐变发光线 */
.header-main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.12) 45%, var(--line) 100%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-slogan {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-h);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .nav-item > a {
    padding: 0 10px;
    font-size: 14px;
  }

  .header-inner {
    gap: 16px;
  }
}

.nav-item > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-item:hover > a,
.nav-item.active > a {
  color: var(--primary);
}

.nav-item:hover > a::after,
.nav-item.active > a::after {
  transform: scaleX(1);
}

.caret {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  transition: transform 0.25s;
}

.nav-item:hover .caret {
  transform: rotate(180deg);
}

.nav-sub {
  position: absolute;
  top: calc(100% - 10px);
  left: 8px;
  min-width: 196px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-item:hover .nav-sub,
.nav-item.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.nav-sub a:hover,
.nav-sub .active a {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  padding-left: 18px;
}

.nav-search {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-search:focus-within {
  border-color: rgba(var(--primary-rgb), 0.6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.nav-search input {
  width: 110px;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 14px;
}

.nav-search input::placeholder {
  color: var(--muted);
}

.nav-search button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav-search button:hover {
  color: var(--primary);
}

.nav-search button svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 提示消息 ---------- */
.flash-wrap {
  position: fixed;
  top: calc(var(--header-h) + var(--topbar-h) + 14px);
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash {
  padding: 12px 18px 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: flash-in 0.4s var(--ease);
}

.flash-error {
  border-left-color: #f87171;
}

.flash-success {
  border-left-color: #34d399;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- 轮播图 / 首屏 ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero-track {
  position: relative;
  aspect-ratio: 3 / 1;
  min-height: 340px;
  max-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s linear;
}

/* 遮罩 + 网格线：两层叠加 */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.72) 0%, rgba(6, 12, 24, 0.38) 50%, rgba(6, 12, 24, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.1), transparent 30%, transparent 70%, rgba(6, 12, 24, 0.45)),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.hero-caption {
  position: relative;
  z-index: 2;
  max-width: var(--container);
}

.hero-title {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 680px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(28px);
}

.hero-subtitle {
  margin-top: 16px;
  max-width: 580px;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(28px);
}

.hero-caption .btn {
  margin-top: 32px;
  opacity: 0;
  transform: translateY(28px);
}

.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-subtitle,
.hero-slide.is-active .btn {
  animation: rise 0.9s var(--ease-out) forwards;
}

.hero-slide.is-active .hero-subtitle {
  animation-delay: 0.15s;
}

.hero-slide.is-active .btn {
  animation-delay: 0.3s;
}

/* 左对齐时文字左侧的竖向光条 */
/* 左侧光条对齐容器的内容边缘（24px 内边距），窄屏时不会贴着视口边 */
.hero.align-left .hero-caption::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 18px var(--glow);
}

.hero.align-left .hero-caption {
  padding-left: 50px;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 24, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s, background 0.2s, border-color 0.2s;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(var(--primary-rgb), 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s, width 0.3s, box-shadow 0.3s;
}

.hero-dots button.is-active {
  width: 48px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* 无轮播图时的科技感首屏 */
.hero-fallback {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(60% 90% at 15% 20%, rgba(var(--primary-rgb), 0.55), transparent 60%),
    radial-gradient(50% 80% at 85% 75%, rgba(var(--primary-rgb), 0.3), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-dark);
  background-size: auto, auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
  overflow: hidden;
}

.hero-fallback::before,
.hero-fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-fallback::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -160px;
  background: radial-gradient(circle, var(--primary-2), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-fallback::after {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -260px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero-fallback .hero-caption {
  z-index: 2;
}

.hero-fallback .hero-title,
.hero-fallback .hero-subtitle {
  animation: rise 0.9s var(--ease-out) forwards;
}

.hero-fallback .hero-subtitle {
  animation-delay: 0.15s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

/* 首屏变体 */
.hero-tall .hero-track {
  aspect-ratio: 2.4 / 1;
}

.hero-screen .hero-track {
  aspect-ratio: auto;
  height: calc(100vh - var(--header-h) - var(--topbar-h));
  max-height: none;
}

.hero.align-center .hero-caption {
  text-align: center;
}

.hero.align-center .hero-title,
.hero.align-center .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero.align-center .hero-slide::before {
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.4), rgba(6, 12, 24, 0.62)),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

.hero.overlay-none .hero-slide::before {
  display: none;
}

.hero.overlay-light .hero-slide::before {
  opacity: 0.55;
}

.hero.overlay-strong .hero-slide::before {
  background:
    linear-gradient(rgba(6, 12, 24, 0.66), rgba(6, 12, 24, 0.66)),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- 通用区块 / 标题 ---------- */
.section {
  padding: var(--section-pad) 0;
}

.section-inner {
  padding: calc(var(--section-pad) * 0.65) 0 var(--section-pad);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head-left {
  margin: 0 0 32px;
  text-align: left;
}

.section-label {
  position: relative;
  display: inline-block;
  padding-left: 30px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

/* 标签左侧的短线（用 ::after，::before 留给设计器占位文字） */
.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow);
}

.section-head:not(.section-head-left) .section-label {
  padding-left: 30px;
  padding-right: 30px;
}

.section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px var(--glow);
}

.section-head-left .section-title::after {
  margin-left: 0;
}

.section-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.section-more {
  margin-top: 44px;
  text-align: center;
}

.empty-hint {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty-hint:empty {
  display: none;
}

.empty-state {
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty-state p {
  margin-bottom: 18px;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* 滚动渐显 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =========================================================
   区块系统（页面设计器）
   .blk 的 ::before / ::after 被拖拽指示占用，背景纹理一律写在 background 上
   ========================================================= */
.blk {
  position: relative;
  padding: var(--section-pad) 0;
}

.blk-compact {
  padding: calc(var(--section-pad) * 0.55) 0;
}

.blk-large {
  padding: calc(var(--section-pad) * 1.35) 0;
}

.blk-flush,
.blk-hero,
.blk-spacer {
  padding: 0;
}

.bg-white {
  background: var(--bg);
}

.bg-soft {
  background:
    radial-gradient(rgba(var(--primary-rgb), 0.09) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--bg-soft);
}

/* 深色 / 主题色背景：覆盖变量让内部组件自动适配为玻璃态 */
.bg-dark,
.bg-primary {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --field-bg: rgba(255, 255, 255, 0.06);
  --field-border: rgba(255, 255, 255, 0.18);
  --field-fg: #fff;
  --field-placeholder: rgba(255, 255, 255, 0.45);
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  color: var(--ink-2);
}

.bg-dark {
  background:
    radial-gradient(70% 90% at 8% 0%, rgba(var(--primary-rgb), 0.42), transparent 60%),
    radial-gradient(60% 80% at 95% 100%, rgba(var(--primary-rgb), 0.24), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-dark);
  background-size: auto, auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
}

.bg-primary {
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(120deg, var(--primary-deep), var(--primary) 55%, var(--primary-2));
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
}

.bg-dark .section-label,
.bg-primary .section-label {
  color: var(--primary-2);
}

.bg-primary .section-label {
  color: #fff;
}

.bg-primary .section-label::after {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.bg-primary .section-title::after {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

.bg-dark .section-desc,
.bg-primary .section-desc {
  color: var(--muted);
}

.bg-primary .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
}

.bg-dark .btn-outline,
.bg-primary .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.bg-dark .btn-outline:hover,
.bg-primary .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* 深色区块内富文本保持白底，保证编辑器内联颜色可读 */
.bg-dark .prose,
.bg-primary .prose {
  --ink: #0b1220;
  --ink-2: #3b4a63;
  --muted: #6b7a90;
  --line: #e2e8f1;
  color: var(--ink-2);
  padding: 36px 44px;
  border-radius: var(--radius);
  background: #fff;
}

/* 列数 */
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ---------- 关于我们 / 图文 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.about-grid.media-right .about-media {
  order: 2;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
}

/* 偏移的科技边框 */
.about-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px;
  --grid-line: rgba(var(--primary-rgb), 0.08);
  pointer-events: none;
  z-index: 0;
}

.about-grid.media-right .about-media::before {
  inset: 18px 18px -18px -18px;
}

.about-media img,
.about-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, var(--primary-2));
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.about-body .section-head {
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}

.about-text p {
  margin-bottom: 1em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-body .btn {
  margin-top: 30px;
}

/* ---------- 特色 / 优势 ---------- */
.feature-grid {
  display: grid;
  gap: 22px;
}

.feature {
  position: relative;
  display: block;
  padding: 32px 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

/* HUD 角标：悬停时出现 */
.feature::before,
.feature::after,
.card::before,
.card::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--primary);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}

.feature::before,
.card::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
  transform: translate(6px, 6px);
}

.feature::after,
.card::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
  transform: translate(-6px, -6px);
}

.feature:hover::before,
.feature:hover::after,
.card:hover::before,
.card:hover::after {
  opacity: 1;
  transform: none;
}

a.feature:hover,
.style-card .feature:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

.style-plain .feature {
  padding: 8px 4px;
  border: 0;
  background: transparent;
}

.style-plain .feature::before,
.style-plain .feature::after {
  display: none;
}

.style-outline .feature {
  background: transparent;
  border-color: var(--line-strong);
}

.style-outline .feature:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.16), rgba(var(--primary-rgb), 0.04));
  color: var(--primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
}

.feature:hover .feature-icon {
  background: var(--grad);
  color: #fff;
  transform: rotate(-4deg) scale(1.04);
}

.bg-dark .feature-icon,
.bg-primary .feature-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 卡片网格（文章 / 产品 / 案例） ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid:not([class*="cols-"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px 4px 9px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), 0.7);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 20px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.card:hover .card-title {
  color: var(--primary);
}

.card-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.card-summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta time {
  flex: none;
}

/* 无封面时的占位图：主题色 + 网格 */
.cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, var(--primary-2));
  --grid-line: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.cover-placeholder span {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(4px);
}

.cover-placeholder.tone-1 {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #0e4f63, #0891b2 60%, #67e8f9);
}

.cover-placeholder.tone-2 {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #2e1065, #4f46e5 60%, #a5b4fc);
}

.cover-placeholder.tone-3 {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #1e293b, #475569 60%, #94a3b8);
}

.cover-placeholder.tone-4 {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #7c2d12, #ea580c 60%, #fdba74);
}

/* ---------- 新闻布局（头条 + 列表） ---------- */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.news-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.news-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.news-featured-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-featured:hover .news-featured-media img {
  transform: scale(1.05);
}

.news-featured-body {
  padding: 26px 28px 28px;
}

.news-featured-body time {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.news-featured-body h3 {
  font-size: 22px;
  line-height: 1.4;
  transition: color 0.2s;
}

.news-featured:hover h3 {
  color: var(--primary);
}

.news-featured-body p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list li:first-child {
  border-top: 1px solid var(--line);
}

.news-list a,
.row-item a {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, padding-left 0.25s;
}

.news-list a:hover,
.row-item a:hover {
  background: rgba(var(--primary-rgb), 0.05);
  padding-left: 14px;
}

.news-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  line-height: 1.1;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.news-date b {
  font-size: 24px;
  font-weight: 700;
}

.news-date small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.news-list a:hover .news-date,
.row-item a:hover .news-date {
  border-color: var(--primary);
  background: var(--grad);
  color: #fff;
}

.news-list a:hover .news-date small,
.row-item a:hover .news-date small {
  color: rgba(255, 255, 255, 0.8);
}

.news-body {
  min-width: 0;
  flex: 1 1 auto;
}

.news-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.news-list a:hover .news-title,
.row-item a:hover .news-title {
  color: var(--primary);
}

.news-summary {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-plain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.news-list-plain li:first-child,
.news-list-plain li:nth-child(2) {
  border-top: 1px solid var(--line);
}

/* ---------- 内页列表（行） ---------- */
.row-list li {
  border-bottom: 1px solid var(--line);
}

.row-list li:first-child {
  border-top: 1px solid var(--line);
}

.row-item a {
  align-items: center;
  padding: 22px 8px;
}

.row-thumb {
  flex: none;
  width: 180px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.row-item a:hover .row-thumb img {
  transform: scale(1.06);
}

.row-item .news-title {
  white-space: normal;
  font-size: 17px;
}

.row-meta {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.tag-top {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 2px;
}

.list-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 18px 22px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 数据展示 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat {
  position: relative;
  padding: 26px 24px 24px 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.stat::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px var(--glow);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.5);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  caret-color: var(--primary);
}

/* 渐变数字；设计器中编辑时（.is-editing）退回实色，避免文字不可见 */
.stat-number:not(.is-editing) {
  background: linear-gradient(90deg, var(--ink) 20%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-dark .stat-number:not(.is-editing),
.bg-primary .stat-number:not(.is-editing) {
  background: linear-gradient(90deg, #fff 30%, var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.bg-primary .stat-number:not(.is-editing) {
  background: linear-gradient(90deg, #fff 40%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-suffix {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--primary);
}

.bg-dark .stat-suffix,
.bg-primary .stat-suffix {
  color: var(--primary-2);
}

.bg-primary .stat-suffix {
  color: rgba(255, 255, 255, 0.85);
}

.stat-label {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 行动号召 ---------- */
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.bg-dark .cta-desc,
.bg-primary .cta-desc {
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: none;
}

/* ---------- 联系我们（首页区块） ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.contact-info .section-head {
  margin-bottom: 28px;
}

.contact-list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.contact-list li:first-child {
  border-top: 1px solid var(--line);
}

.contact-list li > span {
  flex: none;
  width: 56px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 24px;
  color: var(--primary);
}

.bg-dark .contact-list li > span {
  color: var(--primary-2);
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.contact-qr img {
  width: 120px;
  padding: 5px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form-wrap {
  padding: 36px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.bg-dark .contact-form-wrap,
.bg-primary .contact-form-wrap {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-map {
  margin-top: 40px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- 表单 ---------- */
.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row label {
  display: block;
}

.message-form input,
.message-form textarea,
.search-page-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--field-fg);
  font-size: 15px;
  line-height: 1.5;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.message-form textarea {
  min-height: 132px;
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder,
.search-page-form input::placeholder {
  color: var(--field-placeholder);
}

.message-form input:focus,
.message-form textarea:focus,
.search-page-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  min-height: 1.3em;
  font-size: 14px;
}

.form-feedback:empty {
  display: none;
}

.form-feedback.is-error {
  color: #dc2626;
}

.form-feedback.is-success {
  color: #059669;
}

/* 深色 / 主题色区块内的表单卡片是玻璃态深底，反馈文字换成浅色 */
.bg-dark .form-feedback.is-error,
.bg-primary .form-feedback.is-error {
  color: #fca5a5;
}

.bg-dark .form-feedback.is-success,
.bg-primary .form-feedback.is-success {
  color: #6ee7b7;
}

.message-form .btn {
  margin-top: 4px;
}

/* ---------- 合作伙伴 ---------- */
.partner-grid {
  display: grid;
  gap: 16px;
}

.partner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.partner:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.is-gray .partner img {
  filter: grayscale(1);
  opacity: 0.65;
}

.is-gray .partner:hover img {
  filter: none;
  opacity: 1;
}

.bg-dark .partner img,
.bg-primary .partner img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.bg-dark .partner:hover img,
.bg-primary .partner:hover img {
  opacity: 1;
}

.partner-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- 客户评价 ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 34px 30px 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: var(--shadow);
}

/* 大引号（写在 figure 上，blockquote 本身可编辑） */
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  right: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 84px;
  line-height: 1;
  color: rgba(var(--primary-rgb), 0.16);
  pointer-events: none;
}

.testimonial blockquote {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial-avatar-wrap {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad);
}

.testimonial-avatar-wrap img,
.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.bg-dark .testimonial-avatar,
.bg-primary .testimonial-avatar {
  background: var(--bg-dark);
  color: #fff;
}

.testimonial figcaption strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.testimonial figcaption small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 团队成员 ---------- */
.team-grid {
  display: grid;
  gap: 28px;
}

.member {
  position: relative;
  text-align: center;
}

.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
}

.member-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(var(--primary-rgb), 0);
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(var(--primary-rgb), 0.35);
  transition: box-shadow 0.35s, border-color 0.35s;
  pointer-events: none;
}

.member:hover .member-photo::before {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: inset 0 0 0 6px rgba(var(--primary-rgb), 0.16);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.member:hover .member-photo img {
  transform: scale(1.05);
}

.member-name {
  font-size: 18px;
  font-weight: 700;
}

.member-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.bg-dark .member-role,
.bg-primary .member-role {
  color: var(--primary-2);
}

.member-bio {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 图片展示 ---------- */
.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-grid.ratio-11 .gallery-item {
  aspect-ratio: 1;
}

.gallery-grid.ratio-169 .gallery-item {
  aspect-ratio: 16 / 9;
}

.gallery-grid.ratio-34 .gallery-item {
  aspect-ratio: 3 / 4;
}

.gallery-item img,
.gallery-item .cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 24, 0.82));
  color: #fff;
  font-size: 14px;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.gallery-item:hover figcaption {
  transform: none;
  opacity: 1;
}

/* ---------- 常见问题 ---------- */
.faq-wrap {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 视频 ---------- */
.video-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.video-wrap video,
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--primary-rgb), 0.3);
}

/* ---------- 富文本 ---------- */
.prose {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}

.prose-wide {
  max-width: none;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.8em 0 0.7em;
  line-height: 1.35;
}

.prose h2 {
  position: relative;
  padding-left: 16px;
  font-size: 24px;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.prose h3 {
  font-size: 20px;
}

.prose h4 {
  font-size: 17px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose img {
  margin: 1.4em auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--primary);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--primary-rgb), 0.35);
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(var(--primary-rgb), 0.07);
  font-weight: 600;
  color: var(--ink);
}

.prose tr:nth-child(even) td {
  background: rgba(var(--primary-rgb), 0.025);
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.08);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}

.prose pre {
  margin: 1.4em 0;
  padding: 18px 22px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  margin: 2.2em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--line) 60%, transparent);
}

.prose iframe,
.prose video {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.page-subtitle {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 16px;
  font-size: 24px;
}

.page-subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

/* ---------- 自由排版区块 ---------- */
.col-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.col-layout.gap-compact {
  gap: 20px;
}

.col-layout.gap-large {
  gap: 64px;
}

.col-layout.valign-center {
  align-items: center;
}

.col-layout.layout-1 {
  grid-template-columns: minmax(0, 1fr);
}

.col-layout.layout-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.col-layout.layout-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-layout.layout-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.col-layout.layout-1-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.col-layout.layout-2-1 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.comp {
  position: relative;
}

.comp.align-center {
  text-align: center;
}

.comp.align-right {
  text-align: right;
}

.comp-heading {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}

h3.comp-heading {
  font-size: clamp(19px, 1.9vw, 24px);
}

h4.comp-heading {
  font-size: 18px;
}

.comp-text {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.comp-text p {
  margin-bottom: 0.9em;
}

.comp-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comp-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(var(--primary-rgb), 0.04);
  color: var(--muted);
  font-size: 13px;
}

.comp-iconbox {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.comp-iconbox .feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.comp.align-center .comp-iconbox {
  flex-direction: column;
  align-items: center;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-2);
}

.comp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  background: rgba(var(--primary-rgb), 0.08);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.comp-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.comp-list .comp-empty {
  color: var(--muted);
}

.comp-list .comp-empty::before,
.comp-list .comp-empty::after {
  display: none;
}

.comp-number {
  text-align: inherit;
}

.comp.align-left .comp-number {
  text-align: left;
}

.comp-quote {
  position: relative;
  margin: 0;
  padding: 20px 26px 18px 28px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--primary-rgb), 0.05);
}

.comp-quote p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.comp-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.comp-video video,
.comp-video .video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.comp-divider {
  margin: 4px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--line) 50%, transparent);
}

.comp-html img {
  max-width: 100%;
}

/* ---------- 间距 / 分隔线 ---------- */
.spacer {
  display: flex;
  align-items: center;
}

.spacer .container {
  width: 100%;
}

.spacer-line {
  margin: 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

/* ---------- 内页头部 ---------- */
.page-header {
  position: relative;
  padding: 72px 0 60px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(var(--primary-rgb), 0.5), transparent 60%),
    radial-gradient(50% 80% at 90% 100%, rgba(var(--primary-rgb), 0.28), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-dark);
  background-size: auto, auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
  overflow: hidden;
}

.page-header.has-banner {
  background-size: cover;
  background-position: center;
}

.page-header.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.82), rgba(6, 12, 24, 0.45)),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size);
}

/* 右下角装饰光斑 */
.page-header::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-header-label {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-2);
}

.page-header-title {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header-desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li:last-child span {
  color: #fff;
}

.sub-nav-wrap {
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h));
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.sub-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
  display: none;
}

.sub-nav li a {
  position: relative;
  display: block;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.sub-nav li a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 10px var(--glow);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.sub-nav li a:hover,
.sub-nav li.active a {
  color: var(--primary);
}

.sub-nav li.active a::after {
  transform: scaleX(1);
}

/* ---------- 文章详情 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.article-layout.no-sidebar {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.article-head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-subtitle {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.article-meta a {
  color: var(--primary);
}

.article-summary {
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--ink-2);
  line-height: 1.8;
}

.article-main .prose {
  max-width: none;
  margin: 0;
}

.article-cover img {
  width: 100%;
  margin: 0 0 1.6em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.article-nav-item {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.article-nav-item:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  transform: translateY(-2px);
}

.article-nav-item:last-child {
  text-align: right;
}

.article-nav-item span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-nav-item a {
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-item a:hover {
  color: var(--primary);
}

.article-nav-item em {
  font-style: normal;
  color: var(--muted);
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 24px);
}

.side-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.side-title {
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
  font-size: 17px;
}

.side-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.side-list li + li {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.side-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}

.side-list img {
  flex: none;
  width: 84px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.side-item-body {
  min-width: 0;
}

.side-item-title {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.side-list a:hover .side-item-title {
  color: var(--primary);
}

.side-list time {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.side-contact {
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.82);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
  border-color: transparent;
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(var(--primary-rgb), 0.5), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-dark);
}

.side-contact .side-title::before {
  background: var(--primary-2);
}

.side-contact p {
  margin-bottom: 8px;
  font-size: 14px;
}

.side-phone {
  font-family: var(--font-mono);
  font-size: 22px !important;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.side-contact .btn {
  margin-top: 16px;
}

/* ---------- 联系页面 ---------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-page-name {
  margin-bottom: 26px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-cards li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 15px;
  color: var(--ink);
  word-break: break-all;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.contact-cards li:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  transform: translateY(-2px);
}

.contact-card-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.contact-cards a:hover {
  color: var(--primary);
}

.contact-extra {
  margin-top: 32px;
}

.contact-page-form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-page-form h3 {
  font-size: 22px;
}

.contact-page-lead {
  margin: 8px 0 24px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 搜索 ---------- */
.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 36px;
}

.search-page-form input {
  height: 50px;
}

.search-page-form .btn {
  flex: none;
  height: 50px;
}

.search-count {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--font-mono);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

a.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.page-link.is-current {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.page-link.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

.page-total {
  margin-left: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0 20px;
  text-align: center;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: clamp(88px, 14vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(120deg, var(--primary), var(--primary-2) 50%, var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.not-found h1 {
  margin-top: 8px;
  font-size: 26px;
}

.not-found p {
  margin-top: 12px;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(var(--primary-rgb), 0.28), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-dark);
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
}

/* 顶部渐变亮线用 border-image 画在栅格容器上，不占用 .site-footer 的伪元素 */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr auto;
  gap: 48px;
  padding: 72px 24px 48px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.2) 40%, transparent) 1;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-name {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-intro {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 12px;
}

.footer-links a:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--primary-2);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-qr {
  text-align: center;
  font-size: 12px;
}

.footer-qr img,
.footer-qr-placeholder {
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  padding: 5px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.footer-qr-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

.footer-friends {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0 24px 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-friends a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-records a {
  margin-left: 16px;
}

.footer-records a:hover {
  color: #fff;
}

/* ---------- 悬浮工具 ---------- */
.float-tools {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.9);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(11, 18, 32, 0.6);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, opacity 0.3s, visibility 0.3s;
}

.float-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.float-btn svg {
  width: 20px;
  height: 20px;
}

.float-phone {
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.float-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}

.float-phone:hover .float-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.float-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.float-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.float-top.is-visible:hover {
  transform: translateY(-3px);
}

/* =========================================================
   外观设置变体（body 类）
   ========================================================= */

/* 标题字体：衬线 */
.font-serif {
  --font-heading: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}

.font-serif .hero-title,
.font-serif .section-title,
.font-serif .brand-name,
.font-serif .page-header-title,
.font-serif .article-title,
.font-serif .cta-title {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

/* 取消卡片阴影 */
.no-card-shadow .card:hover,
.no-card-shadow .news-featured:hover,
.no-card-shadow .feature:hover,
.no-card-shadow .partner:hover,
.no-card-shadow .testimonial:hover,
.no-card-shadow .stat:hover {
  box-shadow: none;
}

/* 头部：居中 */
.header-centered .header-inner {
  flex-direction: column;
  gap: 0;
  padding-top: 18px;
}

.header-centered .brand {
  justify-content: center;
}

.header-centered .nav {
  margin: 0 auto;
}

.header-centered .nav-item > a {
  height: 56px;
}

.header-centered .nav-item > a::after {
  bottom: 8px;
}

.header-centered .sub-nav-wrap {
  position: static;
}

/* 头部：透明悬浮 */
.header-transparent .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-transparent .site-header .header-main::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08) 50%, transparent);
}

.header-transparent .site-header .brand,
.header-transparent .site-header .nav-item > a {
  color: #fff;
}

.header-transparent .site-header .brand-slogan {
  color: rgba(255, 255, 255, 0.7);
}

.header-transparent .site-header .topbar {
  background: rgba(0, 0, 0, 0.28);
}

.header-transparent .site-header .nav-search {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.header-transparent .site-header .nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-transparent .site-header .nav-search button {
  color: rgba(255, 255, 255, 0.75);
}

.header-transparent .site-header .nav-toggle span {
  background: #fff;
}

.header-transparent .site-header.is-scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  animation: header-drop 0.35s var(--ease);
}

.header-transparent .site-header.is-scrolled .header-main::after {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.12) 45%, var(--line) 100%);
}

.header-transparent .site-header.is-scrolled .brand,
.header-transparent .site-header.is-scrolled .nav-item > a {
  color: var(--ink);
}

.header-transparent .site-header.is-scrolled .brand-slogan {
  color: var(--muted);
}

.header-transparent .site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.header-transparent .site-header.is-scrolled .nav-item:hover > a,
.header-transparent .site-header.is-scrolled .nav-item.active > a {
  color: var(--primary);
}

.header-transparent .site-header.is-scrolled .nav-search {
  background: var(--bg-soft);
  border-color: var(--line);
  color: inherit;
}

.header-transparent .site-header.is-scrolled .nav-search input::placeholder {
  color: var(--muted);
}

.header-transparent .site-header.is-scrolled .nav-search button {
  color: var(--muted);
}

.header-transparent .site-header.is-scrolled .topbar {
  display: none;
}

.header-transparent .page-header {
  padding-top: calc(72px + var(--header-h) + var(--topbar-h));
}

.header-transparent .blk-hero .hero-slide,
.header-transparent .blk-hero .hero-fallback {
  padding-top: calc(var(--header-h) * 0.6);
}

.header-transparent .sub-nav-wrap {
  position: static;
}

@keyframes header-drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: none;
  }
}

/* 页脚风格：浅色 */
.footer-light .site-footer {
  color: var(--ink-2);
  background:
    radial-gradient(rgba(var(--primary-rgb), 0.08) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-light .footer-name,
.footer-light .footer-col h4 {
  color: var(--ink);
}

.footer-light .footer-intro,
.footer-light .footer-friends,
.footer-light .footer-bottom {
  color: var(--muted);
}

.footer-light .footer-links a:hover,
.footer-light .footer-contact a:hover,
.footer-light .footer-friends a:hover,
.footer-light .footer-records a:hover {
  color: var(--primary);
}

.footer-light .footer-links a:hover::before {
  background: var(--primary);
}

.footer-light .footer-logo {
  filter: none;
}

.footer-light .footer-bottom {
  border-top-color: var(--line);
}

.footer-light .footer-qr-placeholder {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--muted);
}

/* 页脚风格：主题色 */
.footer-primary .site-footer {
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(160deg, var(--primary-deep), var(--primary) 60%, var(--primary-2));
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
}

.footer-primary .footer-grid {
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.15) 40%, transparent) 1;
}

.footer-primary .footer-col h4::after {
  background: #fff;
}

.footer-primary .footer-intro,
.footer-primary .footer-friends,
.footer-primary .footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-primary .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.18);
}

/* =========================================================
   设计器画布（预览模式）—— 与 static/themes/default/js/preview.js 的契约
   保留：body.is-preview、.blk[data-block-id]、[data-part]、[data-item]、
   [data-item-list]、[data-edit*]、注入元素 .blk-label / .blk-toolbar /
   .blk-insert / .item-toolbar / .item-add，状态类 is-selected / is-editing /
   is-drag-source / is-drop-before / is-drop-after
   ========================================================= */
.is-preview .blk[data-block-id] {
  outline: 2px dashed transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s;
  cursor: pointer;
}

.is-preview .blk[data-block-id]:hover {
  outline-color: rgba(var(--primary-rgb), 0.55);
}

.is-preview .blk[data-block-id].is-selected {
  outline: 2px solid var(--primary);
}

.blk-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.is-preview .blk:hover .blk-label,
.is-preview .blk.is-selected .blk-label {
  opacity: 1;
  transform: none;
}

.is-preview .blk-label {
  display: none;
}

.is-preview .blk:hover:not(.is-selected) .blk-label {
  display: block;
  opacity: 1;
  transform: none;
}

.is-preview .float-tools,
.is-preview .lang-switch-float {
  display: none;
}

.blk-empty .empty-state {
  margin: 0;
}

.is-preview [data-part] {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s;
}

.is-preview [data-part]:hover {
  outline-color: rgba(var(--primary-rgb), 0.45);
}

.is-preview [data-part].is-selected {
  outline: 2px solid var(--primary);
}

.is-preview .site-header[data-part] {
  z-index: 100;
}

.is-preview [data-edit],
.is-preview [data-edit-site],
.is-preview [data-edit-html] {
  min-width: 1em;
  border-radius: 3px;
  cursor: text;
  transition: box-shadow 0.15s;
}

.is-preview [data-edit]:hover,
.is-preview [data-edit-site]:hover,
.is-preview [data-edit-html]:hover {
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.6);
}

.is-preview [data-edit]:empty::before,
.is-preview [data-edit-site]:empty::before,
.is-preview [data-edit-html]:empty::before {
  content: attr(data-placeholder);
  opacity: 0.45;
  pointer-events: none;
}

.is-preview .is-editing {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px rgba(var(--primary-rgb), 0.15) !important;
  background: rgba(255, 255, 255, 0.06);
  min-height: 1.4em;
}

.is-preview .is-editing:empty::before {
  content: "";
}

.is-preview [data-edit-image],
.is-preview [data-edit-site-image] {
  position: relative;
  cursor: pointer;
}

.is-preview [data-edit-image]::after,
.is-preview [data-edit-site-image]::after {
  content: attr(data-edit-image-hint);
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: inherit;
  background: rgba(11, 18, 32, 0.6);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.is-preview [data-edit-image]:hover::after,
.is-preview [data-edit-site-image]:hover::after {
  opacity: 1;
}

.is-preview .brand-logo-wrap::after {
  font-size: 11px;
  border-radius: 8px;
}

/* 区块悬浮工具条 */
.blk-toolbar {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: var(--font);
}

.is-preview .blk.is-selected .blk-toolbar,
.is-preview [data-part].is-selected .blk-toolbar {
  display: flex;
}

.blk-toolbar button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.blk-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.blk-toolbar button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blk-toolbar .blk-toolbar-name {
  padding: 0 8px 0 6px;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.blk-toolbar .blk-drag {
  cursor: grab;
}

/* 页头的工具条挂在头部下方，避免遮住导航 */
.site-header[data-part] .blk-toolbar {
  top: auto;
  bottom: -36px;
  right: 16px;
}

/* “+” 插入按钮 */
.blk-insert {
  position: absolute;
  left: 50%;
  bottom: -14px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.blk-insert-top {
  bottom: auto;
  top: -14px;
}

.is-preview .blk:hover .blk-insert,
.is-preview .blk.is-selected .blk-insert {
  opacity: 1;
}

.blk-insert:hover {
  transform: translateX(-50%) scale(1.15);
}

.blk-insert::after {
  content: "在此处插入区块";
  position: absolute;
  left: 36px;
  top: 50%;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.blk-insert:hover::after {
  opacity: 1;
}

/* 画布内拖拽排序指示 */
.is-preview .blk.is-drag-source {
  opacity: 0.4;
}

.is-preview .blk.is-drop-before::before,
.is-preview .blk.is-drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4px;
  background: var(--primary);
  box-shadow: 0 0 14px var(--glow);
}

.is-preview .blk.is-drop-before::before {
  top: -2px;
}

.is-preview .blk.is-drop-after::after {
  bottom: -2px;
}

/* 画布内组件 / 条目的增删控制 */
.is-preview [data-item] {
  position: relative;
  outline: 1px dashed transparent;
  outline-offset: 4px;
  transition: outline-color 0.15s;
}

.is-preview [data-item]:hover {
  outline-color: rgba(var(--primary-rgb), 0.5);
}

.item-toolbar {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 35;
  display: none;
  gap: 1px;
  padding: 2px;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  font-family: var(--font);
}

.bg-dark .item-toolbar,
.bg-primary .item-toolbar {
  background: #0b1220;
}

.is-preview [data-item]:hover > .item-toolbar {
  display: flex;
}

.item-toolbar button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.item-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.item-toolbar button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-toolbar .item-toolbar-name {
  display: flex;
  align-items: center;
  padding: 0 6px 0 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  white-space: nowrap;
}

.item-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 56px;
  border: 1px dashed rgba(var(--primary-rgb), 0.6);
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.bg-dark .item-add,
.bg-primary .item-add {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.item-add:hover {
  background: rgba(var(--primary-rgb), 0.12);
}

.item-add svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.faq-list .item-add,
.col .item-add {
  min-height: 44px;
}

.is-preview .col {
  min-height: 60px;
  outline: 1px dashed rgba(var(--primary-rgb), 0.25);
  outline-offset: 8px;
  border-radius: 4px;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .feature-grid.cols-4,
  .team-grid.cols-4,
  .gallery-grid.cols-4,
  .gallery-grid.cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid.cols-3,
  .team-grid.cols-3,
  .gallery-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-grid.cols-5,
  .partner-grid.cols-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid,
  .news-layout,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .about-grid.media-right .about-media {
    order: 0;
  }

  .about-media::before,
  .about-grid.media-right .about-media::before {
    inset: 14px -14px -14px 14px;
  }

  .news-list-plain {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-list-plain li:nth-child(2) {
    border-top: 0;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .article-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .nav-search {
    display: none;
  }

  .col-layout.layout-3,
  .col-layout.layout-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 62px;
    --grid-size: 40px;
  }

  .topbar {
    display: none;
  }

  body:has(.topbar) {
    --topbar-h: 0px;
  }

  .lang-switch-float {
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink, #1a1a1a);
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 10px 28px -14px rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .lang-switch-float .lang-switch-item {
    padding: 2px 0;
  }

  .lang-switch-mobile {
    display: none;
  }

  .header-tools {
    display: contents;
  }

  .section {
    padding: 60px 0;
  }

  .section-inner {
    padding: 40px 0 64px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-logo,
  .brand-mark {
    height: 36px;
  }

  .brand-mark {
    width: 36px;
    font-size: 17px;
  }

  .nav-toggle {
    display: flex;
  }

  /* backdrop-filter 会让 fixed 子元素以头部为包含块，移动端关闭以便菜单全屏 */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 12px 20px 40px;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  /* 设计器画布里 [data-part] 被强制为 relative，抽屉无法脱离文档流：
     改为收起时隐藏、展开时作为整行列表排在品牌下方，避免平移后露在画布右侧 */
  .is-preview .header-inner {
    flex-wrap: wrap;
  }

  .is-preview .nav {
    inset: auto;
    display: none;
    order: 10;
    flex-basis: 100%;
    padding: 4px 0 16px;
    transform: none;
    transition: none;
  }

  .is-preview .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item > a {
    height: auto;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    font-size: 16px;
  }

  .nav-item > a::after {
    display: none;
  }

  .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.is-open .nav-sub {
    display: block;
  }

  .nav-search {
    display: flex;
    width: 100%;
    margin-top: 16px;
  }

  .nav-search input {
    width: 100%;
  }

  .header-transparent .site-header {
    position: sticky;
    background: #fff;
  }

  .header-transparent .site-header .brand,
  .header-transparent .site-header .nav-item > a {
    color: var(--ink);
  }

  .header-transparent .site-header .nav-toggle span {
    background: var(--ink);
  }

  .header-transparent .site-header .header-main::after {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.12) 45%, var(--line) 100%);
  }

  .header-transparent .page-header {
    padding-top: 56px;
  }

  .header-transparent .blk-hero .hero-slide,
  .header-transparent .blk-hero .hero-fallback {
    padding-top: 0;
  }

  .hero-track {
    aspect-ratio: 16 / 10;
    min-height: 260px;
  }

  .hero-arrow {
    display: none;
  }

  .hero.align-left .hero-caption {
    padding-left: 44px;
  }

  .hero-fallback {
    padding: 80px 0;
  }

  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-summary {
    display: none;
  }

  .card-meta {
    font-size: 11px;
  }

  .feature-grid,
  .feature-grid.cols-2,
  .feature-grid.cols-3,
  .feature-grid.cols-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature {
    padding: 24px 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .stat {
    padding: 20px 18px 18px 22px;
  }

  .team-grid,
  .team-grid.cols-3,
  .team-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .gallery-grid,
  .gallery-grid.cols-2,
  .gallery-grid.cols-3,
  .gallery-grid.cols-4,
  .gallery-grid.cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .partner-grid,
  .partner-grid.cols-4,
  .partner-grid.cols-5,
  .partner-grid.cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-date {
    width: 54px;
  }

  .news-date b {
    font-size: 20px;
  }

  .news-list a,
  .row-item a {
    gap: 14px;
    padding: 16px 4px;
  }

  .news-list a:hover,
  .row-item a:hover {
    padding-left: 4px;
  }

  .row-thumb {
    width: 110px;
  }

  .row-item .news-title {
    font-size: 15px;
  }

  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-wrap,
  .contact-page-form {
    padding: 22px;
  }

  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-header {
    padding: 44px 0 36px;
  }

  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-nav-wrap {
    top: calc(var(--header-h) + var(--topbar-h));
  }

  .sub-nav li a {
    padding: 14px 14px;
    font-size: 14px;
  }

  .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-nav-item:last-child {
    text-align: left;
  }

  .bg-dark .prose,
  .bg-primary .prose {
    padding: 22px 20px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .col-layout.layout-2,
  .col-layout.layout-3,
  .col-layout.layout-4,
  .col-layout.layout-1-2,
  .col-layout.layout-2-1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 44px 24px 32px;
  }

  .footer-qr {
    text-align: left;
  }

  .footer-qr img,
  .footer-qr-placeholder {
    margin: 0 0 8px;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }

  .footer-records a {
    margin-left: 0;
    margin-right: 16px;
  }

  .flash-wrap {
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 12px);
  }

  .float-tools {
    right: 12px;
    bottom: 16px;
  }

  .lang-switch-float {
    left: 12px;
    bottom: 16px;
  }

  .float-btn {
    width: 42px;
    height: 42px;
  }

  .not-found-actions {
    flex-direction: column;
  }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-title,
  .hero-subtitle,
  .hero-caption .btn {
    opacity: 1;
    transform: none;
  }
}
