/* ==========================================================================
   components.css — 按钮 / 卡片 / Hero / 表单 / 文章 / 分页 / 骨架屏
   ========================================================================== */

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(37, 99, 235, 0.68);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-800);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-600);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.24s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  padding-block: calc(var(--header-h) + clamp(52px, 8vw, 92px))
    clamp(60px, 8vw, 104px);
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  color: var(--on-dark-dim);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow.g1 {
  top: -18%;
  right: -8%;
  width: 58vw;
  height: 58vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.55) 0%,
    rgba(37, 99, 235, 0) 66%
  );
  animation: float-a 16s ease-in-out infinite;
}

.hero-glow.g2 {
  bottom: -26%;
  left: -12%;
  width: 50vw;
  height: 50vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.36) 0%,
    rgba(6, 182, 212, 0) 66%
  );
  animation: float-b 20s ease-in-out infinite;
}

.hero-glow.g3 {
  top: 34%;
  left: 42%;
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.26) 0%,
    transparent 68%
  );
  animation: float-a 24s ease-in-out infinite reverse;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, 4%, 0) scale(1.07);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -3%, 0) scale(1.09);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: var(--fs-display);
  color: #fff;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: var(--on-dark-dim);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero .btn-row {
  margin-bottom: 40px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.85rem;
  color: var(--on-dark-dim);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--accent-400);
  flex-shrink: 0;
}

/* Hero 视觉：悬浮技术卡 */
.hero-visual {
  position: relative;
  margin-top: 46px;
  display: none;
}

@media (min-width: 1024px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1.06fr 0.84fr;
    gap: clamp(36px, 4.5vw, 64px);
    align-items: center;
  }
  .hero-inner {
    max-width: none;
  }
  .hero-visual {
    display: block;
    margin-top: 0;
    padding-inline: 6px;
  }
}

.tech-panel {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(14px);
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.tech-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.tech-panel-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.tech-panel-head i:first-child {
  background: #f87171;
}
.tech-panel-head i:nth-child(2) {
  background: #fbbf24;
}
.tech-panel-head i:nth-child(3) {
  background: #34d399;
}

.tech-panel-title {
  margin-left: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px 15px;
}

.metric span {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.metric b {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric b em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent-400);
  margin-left: 3px;
  font-weight: 700;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 62px;
  margin-top: 16px;
  padding: 0 2px;
}

.spark i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.95) 0%,
    rgba(37, 99, 235, 0.4) 100%
  );
  animation: bar-rise 3.4s ease-in-out infinite;
  transform-origin: bottom;
}

@keyframes bar-rise {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.75;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-800);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--sh-lg);
  white-space: nowrap;
}

.float-chip svg {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
}

.float-chip.c1 {
  top: -16px;
  right: 8%;
  animation: bob 5s ease-in-out infinite;
}

.float-chip.c2 {
  bottom: -14px;
  left: -10px;
  animation: bob 6.5s ease-in-out infinite 0.6s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.6vw, 30px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--sh-md);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.8;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  color: var(--brand-600);
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card:hover .card-icon {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

.card-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.card-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
}

.card-list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--accent-500);
}

.card-dark {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 100%
  );
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.card-dark:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.6);
}

.card-dark h3 {
  color: #fff;
}

.card-dark p,
.card-dark .card-list li {
  color: var(--on-dark-dim);
}

.card-dark .card-icon {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--accent-400);
}

.card-dark:hover .card-icon {
  background: var(--grad-brand);
  color: #fff;
}

/* 编号卡 */
.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   统计条
   -------------------------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 26px);
  backdrop-filter: blur(8px);
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-bottom: 8px;
}

.stat b em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--accent-400);
  margin-left: 2px;
}

/* 只作用于说明文字，避免影响 b 内的计数 span */
.stat > span {
  font-size: 0.86rem;
  color: var(--on-dark-dim);
  line-height: 1.6;
  display: block;
}

@media (min-width: 768px) {
  .stats-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   标签 / 筛选
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.chip {
  padding: 8px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-600);
  font-size: 0.87rem;
  font-weight: 600;
  transition: all 0.22s var(--ease);
}

.chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-dark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* --------------------------------------------------------------------------
   横幅 / 面板
   -------------------------------------------------------------------------- */
.panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(22px, 3.4vw, 40px);
}

.panel-dark {
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background: linear-gradient(150deg, #0f172a 0%, #16233f 100%);
  color: var(--on-dark-dim);
  padding: clamp(22px, 3.4vw, 40px);
}

.panel-dark h2,
.panel-dark h3,
.panel-dark h4 {
  color: #fff;
}

.panel-dark p {
  color: var(--on-dark-dim);
}

.panel-dark .card-list li {
  color: var(--on-dark-dim);
}

.panel-dark .card-list svg {
  color: var(--accent-400);
}

.panel-accent {
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  overflow: hidden;
}

.panel-accent::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.panel-accent h2,
.panel-accent h3 {
  color: #fff;
}

/* 双列特性列表 */
.feature-rows {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(3px);
}

.feature-row .card-icon {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.feature-row .card-icon svg {
  width: 21px;
  height: 21px;
}

.feature-row h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
}

.feature-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   时间轴
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  display: grid;
  gap: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-600), var(--accent-400), transparent);
  border-radius: 2px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.timeline b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--brand-600);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.timeline h4 {
  margin: 0 0 5px;
  font-size: 1.03rem;
}

.timeline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   文章卡片 / 新闻列表
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--sh-md);
}

.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
}

.post-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-thumb-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(7, 12, 24, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 11px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta svg {
  width: 14px;
  height: 14px;
}

.post-card h3 {
  font-size: 1.06rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-card h3 a {
  color: inherit;
}

.post-card h3 a:hover {
  color: var(--brand-600);
}

.post-card .post-excerpt {
  font-size: 0.885rem;
  color: var(--muted);
  line-height: 1.78;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-body .link-arrow {
  margin-top: auto;
}

/* 骨架屏 */
.skeleton {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.sk-line,
.sk-box {
  background: linear-gradient(90deg, #eef2f8 25%, #e3e9f3 37%, #eef2f8 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 6px;
}

.sk-box {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.sk-body {
  padding: 20px;
  display: grid;
  gap: 11px;
}

.sk-line {
  height: 12px;
}

.sk-line.w40 {
  width: 40%;
}
.sk-line.w90 {
  width: 90%;
}
.sk-line.w70 {
  width: 70%;
}

@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: clamp(28px, 4vw, 46px);
}

.pager button,
.pager a {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.pager button:hover:not(:disabled),
.pager a:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.pager .is-current {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.pager button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* 空态 / 错误态 */
.state-box {
  text-align: center;
  padding: clamp(34px, 6vw, 62px) 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}

.state-box svg {
  width: 38px;
  height: 38px;
  color: var(--muted-2);
  margin: 0 auto 14px;
}

.state-box h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.state-box p {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */
.article {
  max-width: 780px;
  margin-inline: auto;
}

.article-head {
  margin-bottom: clamp(24px, 3.5vw, 38px);
}

.article-head h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.28;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.83rem;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta svg {
  width: 15px;
  height: 15px;
}

.article-cover {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: clamp(24px, 3.5vw, 38px);
  background: var(--bg-soft);
}

.article-cover img {
  width: 100%;
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink-600);
  overflow-wrap: break-word;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.7em;
  padding-left: 14px;
  border-left: 4px solid var(--brand-600);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.16rem;
  margin: 1.7em 0 0.6em;
}

.article-content p {
  margin: 0 0 1.25em;
}

.article-content img {
  border-radius: var(--r-sm);
  margin: 1.6em auto;
}

.article-content figure {
  margin: 1.8em 0;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 9px;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.3em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent-500);
  background: var(--brand-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-700);
}

.article-content blockquote p:last-child {
  margin: 0;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef2f8;
  color: #b91c1c;
}

.article-content pre {
  background: var(--ink-900);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 1.6em 0;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}

.article-content th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink-800);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-nav {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.article-nav a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-700);
  transition: all 0.24s var(--ease);
}

.article-nav a:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.article-nav small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.article-nav strong {
  font-size: 0.94rem;
  line-height: 1.5;
  display: block;
}

@media (min-width: 640px) {
  .article-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid-2 .field-full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink-800);
}

.field label em {
  color: #dc2626;
  font-style: normal;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field .error-msg {
  font-size: 0.79rem;
  color: #dc2626;
  min-height: 0;
  display: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.field.has-error .error-msg {
  display: block;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--brand-600);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 17px;
  border-radius: var(--r-sm);
  font-size: 0.89rem;
  line-height: 1.7;
}

.form-status.is-visible {
  display: flex;
}

.form-status.is-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.form-status.is-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* 联系信息块 */
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-item + .contact-item {
  margin-top: 24px;
}

.contact-item .card-icon {
  margin-bottom: 0;
}

.contact-item h4 {
  margin: 0 0 5px;
  font-size: 0.96rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.75;
}

/* 地图占位 */
.map-embed {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.map-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-embed-inner {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
}

.map-embed-inner svg {
  width: 30px;
  height: 30px;
  color: var(--brand-600);
  margin: 0 auto 10px;
}

.map-embed-inner strong {
  display: block;
  color: var(--ink-800);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   手风琴（FAQ）
   -------------------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}

.acc-item + .acc-item {
  border-top: 1px solid var(--line);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-800);
  transition: background 0.2s var(--ease);
}

.acc-trigger:hover {
  background: var(--bg-soft);
}

.acc-trigger svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--brand-600);
  transition: transform 0.3s var(--ease);
}

.acc-trigger[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.34s var(--ease);
}

.acc-panel-inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   合作 / 客户标识墙
   -------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.logo-wall > div {
  background: #fff;
  padding: clamp(18px, 3vw, 28px) 16px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.6vw, 1.06rem);
  color: #9aa7bd;
  letter-spacing: -0.01em;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
  min-height: 92px;
}

.logo-wall > div:hover {
  color: var(--ink-800);
  background: var(--bg-soft);
}

@media (min-width: 640px) {
  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .logo-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* CTA 区块 */
.cta-band {
  border-radius: var(--r-xl);
  background: var(--grad-dark);
  color: var(--on-dark-dim);
  padding: clamp(32px, 5vw, 62px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: -60% -20% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.32) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 54ch;
  margin: 0 auto 28px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* 图文并排的媒体框 */
.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-md);
}

.code-card {
  border-radius: var(--r-lg);
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.code-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.code-card-head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.code-card pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-card pre .k {
  color: #93c5fd;
}
.code-card pre .s {
  color: #6ee7b7;
}
.code-card pre .c {
  color: #64748b;
}
.code-card pre .n {
  color: #fca5a5;
}
