/* ==========================================================================
   易同科技 Yitong Tech — 设计系统样式
   1. 字体  2. 设计令牌  3. 基础  4. 布局工具  5. 排版工具
   6. 页头  7. 页脚  8. 首屏  9. 组件  10. 区块覆盖  11. 响应式
   ========================================================================== */

/* 1. 字体（自托管拉丁字形，中文回落到系统字体，避免阻塞） ---------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* 2. 设计令牌 ------------------------------------------------------------ */
:root {
  --yt-bg: #0b0f17;
  --yt-bg-deep: #080b12;
  --yt-panel: #111827;
  --yt-panel-2: #1a2230;
  --yt-panel-3: #232c3b;
  --yt-line: rgba(229, 231, 235, 0.1);
  --yt-line-soft: rgba(229, 231, 235, 0.06);
  --yt-line-strong: rgba(229, 231, 235, 0.2);
  --yt-ink: #dfe2ee;
  --yt-muted: #a7afc2;
  --yt-faint: #6c7688;
  --yt-white: #fff;
  --yt-accent: #b1c5ff;
  --yt-accent-strong: #60a5fa;
  --yt-blue: #0d6efd;
  --yt-blue-dark: #0052cc;
  --yt-blue-deep: #0a2540;
  --yt-success: #10b981;
  --yt-r: 6px;
  --yt-r-lg: 10px;
  --yt-shadow: 0 28px 64px -36px rgba(0, 0, 0, 0.95);
  --yt-glow: 0 0 0 1px rgba(13, 110, 253, 0.35), 0 20px 48px -28px rgba(13, 110, 253, 0.55);
  --yt-max: 1280px;
  --yt-pad: clamp(1.25rem, 4vw, 3rem);
}

/* 3. 基础 ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--yt-bg);
  color: var(--yt-ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(13, 110, 253, 0.4);
  color: #fff;
}

a {
  color: var(--yt-accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.16s ease;
}
a:hover,
a:focus {
  color: #fff;
}
/* 正文内的行内链接保留下划线，便于识别 */
.yt-rich a,
.entry-content a,
.wp-block-post-content a {
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.45);
}
.yt-rich a:hover,
.entry-content a:hover,
.wp-block-post-content a:hover {
  text-decoration-color: currentColor;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #080b12;
}
::-webkit-scrollbar-thumb {
  background: #2a3342;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4657;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--yt-blue);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
}

.yt-i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.18em;
}

.yt-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--yt-r);
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.28);
  color: var(--yt-accent);
  flex: none;
}
.yt-icon-box .yt-i {
  width: 1.25rem;
  height: 1.25rem;
}

/* 4. 布局工具 ------------------------------------------------------------ */
.yt-container {
  width: 100%;
  max-width: var(--yt-max);
  margin-inline: auto;
  padding-inline: var(--yt-pad);
}

.yt-container--tight {
  max-width: 960px;
}

.yt-section {
  position: relative;
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}
.yt-section--tight {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.yt-section--alt {
  background-color: var(--yt-bg-deep);
}
.yt-section--panel {
  background-color: var(--yt-panel);
}
.yt-section--bordered {
  border-block: 1px solid var(--yt-line-soft);
}
.yt-section--grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(229, 231, 235, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229, 231, 235, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.yt-grid {
  display: grid;
  gap: 1.25rem;
}
.yt-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.yt-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.yt-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.yt-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.yt-grid--loose {
  gap: 1.75rem;
}

.yt-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
}
.yt-split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.yt-split--reverse > :first-child {
  order: 2;
}
.yt-split--top {
  align-items: start;
}

.yt-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.yt-stack--sm {
  gap: 0.5rem;
}
.yt-stack--lg {
  gap: 1.75rem;
}

.yt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.yt-row--between {
  justify-content: space-between;
}
.yt-row--end {
  justify-content: flex-end;
}

.yt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.yt-divider {
  height: 1px;
  background: var(--yt-line-soft);
  border: 0;
  margin: 0;
}

/* 5. 排版工具 ------------------------------------------------------------ */
.yt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yt-accent-strong, #60a5fa);
  margin: 0;
  line-height: 1.4;
}
.yt-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yt-blue);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.9);
  flex: none;
}
.yt-eyebrow--plain::before {
  display: none;
}

.yt-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yt-faint);
  margin: 0;
  line-height: 1.5;
}

.yt-mono {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.yt-lead {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.78;
  color: var(--yt-muted);
  max-width: 62ch;
  margin: 0;
}

.yt-display {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.yt-h2 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.yt-h3 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.yt-accent {
  color: var(--yt-accent);
}
.yt-dim {
  color: var(--yt-muted);
}
.yt-faint {
  color: var(--yt-faint);
}
.yt-white {
  color: #fff;
}
.yt-nowrap {
  white-space: nowrap;
}

.yt-note {
  font-size: 0.8125rem;
  color: var(--yt-faint);
  margin: 0;
  line-height: 1.6;
}

/* 6. 页头 ---------------------------------------------------------------- */
/* 吸顶由模板部件外层 .yt-header-part 承担；这里只负责外观。
   背景保持接近不透明：滚动经过浅色照片时内容不会「透」到导航条上。 */
.yt-header {
  position: relative;
  top: auto;
  z-index: 1;
  background: rgba(8, 11, 18, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yt-line-soft);
}

.yt-topbar {
  border-bottom: 1px solid var(--yt-line-soft);
  background: rgba(6, 9, 14, 0.6);
}
.yt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.25rem;
  font-size: 0.75rem;
  color: var(--yt-muted);
}
.yt-topbar p {
  margin: 0;
}
.yt-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--yt-muted);
  white-space: nowrap;
}
.yt-topbar__item .yt-i {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--yt-accent);
}
.yt-topbar strong {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}
.yt-topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.yt-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--yt-accent);
}
.yt-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yt-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: yt-pulse 2.4s ease-in-out infinite;
}
@keyframes yt-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.yt-lang {
  display: inline-flex;
  gap: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--yt-faint);
}
.yt-lang a,
.yt-lang span {
  color: var(--yt-faint);
}
.yt-lang .is-current {
  color: var(--yt-accent);
}

.yt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}

.yt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.yt-brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}
.yt-brand__name {
  display: block;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.2;
}
.yt-brand__sub {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--yt-faint);
  text-transform: uppercase;
  line-height: 1.6;
}

/* 导航基线（不依赖区块默认样式） */
.wp-block-navigation {
  display: flex;
  align-items: center;
}
.wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wp-block-navigation-item {
  position: relative;
  margin: 0;
  list-style: none;
}
.wp-block-navigation-item__content {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.wp-block-navigation__submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--yt-panel);
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r);
}
.wp-block-navigation-item:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-container {
  display: flex;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  padding: 0.35rem;
  color: var(--yt-ink);
  background: transparent;
  border: 1px solid var(--yt-line-strong);
  border-radius: 4px;
  cursor: pointer;
}

.yt-nav {
  flex: 1;
  justify-content: center;
}
.yt-nav .wp-block-navigation__container {
  gap: clamp(1rem, 2.4vw, 2.25rem);
}
.yt-nav .wp-block-navigation-item__content {
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--yt-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.yt-nav .wp-block-navigation-item__content:hover,
.yt-nav .wp-block-navigation-item__content:focus {
  color: #fff;
}
.yt-nav .current-menu-item > .wp-block-navigation-item__content,
.yt-nav .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--yt-accent);
  border-bottom-color: var(--yt-blue);
}
.yt-nav .wp-block-navigation__submenu-container {
  background: var(--yt-panel);
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r);
  padding: 0.5rem;
  min-width: 12rem;
}
.yt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.yt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
.yt-header__actions .wp-block-button__link {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

/* 移动端导航面板 */
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  background: var(--yt-bg-deep);
  color: var(--yt-ink);
}
.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  color: var(--yt-ink);
}
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0.25rem;
  align-items: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  padding: 0.85rem 0.25rem;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--yt-line-soft);
  width: 100%;
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  color: var(--yt-ink);
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* 7. 页脚 ---------------------------------------------------------------- */
.yt-footer {
  background: var(--yt-bg-deep);
  border-top: 1px solid var(--yt-line-soft);
  font-size: 0.875rem;
  color: var(--yt-muted);
}
.yt-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 4vw, 3.75rem);
}
.yt-footer p {
  margin: 0;
  color: var(--yt-muted);
  line-height: 1.75;
}
.yt-footer h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yt-faint);
  margin: 0 0 1rem;
}
.yt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.yt-footer li {
  margin: 0;
}
.yt-footer a {
  color: var(--yt-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.yt-footer a:hover {
  color: #fff;
}
.yt-footer__contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--yt-muted);
  line-height: 1.6;
}
.yt-footer__contact .yt-i {
  color: var(--yt-accent);
  margin-top: 0.2rem;
}
.yt-footer__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.yt-footer__bottom {
  border-top: 1px solid var(--yt-line-soft);
  padding-block: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--yt-faint);
}
.yt-footer__bottom p {
  margin: 0;
  color: var(--yt-faint);
  font-size: 0.6875rem;
}
.yt-footer__legal {
  display: flex;
  gap: 1rem;
}
.yt-footer__legal a {
  color: var(--yt-faint);
}

/* 8. 首屏 ---------------------------------------------------------------- */
.yt-hero {
  position: relative;
  overflow: hidden;
  background: var(--yt-bg-deep);
  border-bottom: 1px solid var(--yt-line-soft);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.yt-hero::before {
  content: "";
  position: absolute;
  top: -18rem;
  left: -12rem;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.2), transparent 62%);
  pointer-events: none;
}
.yt-hero::after {
  content: "";
  position: absolute;
  right: -14rem;
  bottom: -20rem;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 83, 205, 0.22), transparent 65%);
  pointer-events: none;
}
.yt-hero > * {
  position: relative;
  z-index: 1;
}
.yt-hero__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--yt-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-accent);
}
.yt-hero__badge .yt-live__dot {
  width: 5px;
  height: 5px;
}

.yt-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--yt-r-lg);
  border: 1px solid var(--yt-line);
  background: var(--yt-panel);
}
.yt-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-media--ratio {
  aspect-ratio: 4 / 3;
}
.yt-media--portrait {
  aspect-ratio: 4 / 4.6;
}
.yt-media--tall {
  aspect-ratio: 3 / 4;
}
.yt-media--wide {
  aspect-ratio: 16 / 9;
}
.yt-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0) 40%, rgba(8, 11, 18, 0.72) 100%);
  pointer-events: none;
}
.yt-media--flat::after {
  display: none;
}
.yt-media__tag {
  position: absolute;
  z-index: 2;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  background: rgba(8, 11, 18, 0.82);
  border: 1px solid var(--yt-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--yt-accent);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.yt-media__corner {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
}

/* 9. 组件 ---------------------------------------------------------------- */
/* 卡片 */
.yt-card {
  position: relative;
  background: var(--yt-panel);
  border: 1px solid var(--yt-line-soft);
  border-radius: var(--yt-r);
  padding: 1.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.yt-card::before,
.yt-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(177, 197, 255, 0.45);
  border-style: solid;
  pointer-events: none;
  opacity: 0.7;
}
.yt-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.yt-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}
.yt-card:hover {
  border-color: rgba(13, 110, 253, 0.4);
  background: #131b29;
}
.yt-card--flat::before,
.yt-card--flat::after {
  display: none;
}
.yt-card--quiet {
  background: rgba(17, 24, 39, 0.55);
}
.yt-card--flush {
  padding: 0;
  overflow: hidden;
}
.yt-card--accent {
  background: linear-gradient(160deg, rgba(13, 110, 253, 0.16), rgba(10, 37, 64, 0.35));
  border-color: rgba(13, 110, 253, 0.32);
}
.yt-card--tight {
  padding: 1.15rem;
}
.yt-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.yt-card__body p:last-child {
  margin-bottom: 0;
}
.yt-card__foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yt-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--yt-faint);
}
.yt-card__index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--yt-faint);
  text-transform: uppercase;
}
.yt-card h3,
.yt-card h4 {
  margin: 0 0 0.6rem;
}
.yt-card p {
  margin: 0;
  color: var(--yt-muted);
  line-height: 1.72;
}

/* 徽标 / 标签 */
.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(13, 110, 253, 0.32);
  background: rgba(10, 37, 64, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93b4ff;
  white-space: nowrap;
  line-height: 1.6;
}
.yt-badge--green {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(6, 46, 36, 0.75);
  color: #6ee7b7;
}
.yt-badge--muted {
  border-color: var(--yt-line);
  background: rgba(35, 44, 59, 0.6);
  color: var(--yt-muted);
}
.yt-badge--solid {
  background: var(--yt-blue);
  border-color: transparent;
  color: #fff;
}

.yt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.yt-chips p {
  margin: 0;
  display: contents;
}
.yt-chips .tag-cloud-link,
.yt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--yt-line);
  background: rgba(17, 24, 39, 0.7);
  font-size: 0.8125rem !important;
  color: var(--yt-muted) !important;
  text-decoration: none;
  line-height: 1.6;
  transition: all 0.16s ease;
}
.yt-chips .tag-cloud-link:hover,
.yt-chip:hover {
  border-color: rgba(13, 110, 253, 0.5);
  color: #fff !important;
  background: rgba(13, 110, 253, 0.12);
}
.yt-chip--active,
.yt-chips .tag-cloud-link.is-active {
  border-color: rgba(13, 110, 253, 0.55);
  background: rgba(13, 110, 253, 0.16);
  color: var(--yt-accent) !important;
}

/* 指标 */
.yt-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.yt-stat {
  padding: 0.85rem 0.95rem;
  border-radius: var(--yt-r);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--yt-line-soft);
}
.yt-stat__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-faint);
  display: block;
  margin-bottom: 0.15rem;
}
.yt-stat__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.yt-stat__unit {
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--yt-accent);
  margin-left: 0.25rem;
  letter-spacing: 0;
}

.yt-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--yt-line-soft);
  border-radius: var(--yt-r);
  overflow: hidden;
  background: rgba(8, 11, 18, 0.5);
}
.yt-metric {
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--yt-line-soft);
}
.yt-metric:last-child {
  border-right: 0;
}
.yt-metric__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-faint);
  margin: 0 0 0.35rem;
}
.yt-metric__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

/* 列表 */
.yt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.yt-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--yt-muted);
  line-height: 1.65;
  margin: 0;
}
.yt-list .yt-i {
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  color: var(--yt-accent);
  opacity: 0.85;
}
.yt-list--tight li {
  font-size: 0.8125rem;
}

/* 规格表 */
.yt-spec {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}
.yt-spec tr {
  border-bottom: 1px solid var(--yt-line-soft);
}
.yt-spec tr:last-child {
  border-bottom: 0;
}
.yt-spec th,
.yt-spec td {
  padding: 0.5rem 0;
  text-align: left;
  vertical-align: top;
  border: 0;
}
.yt-spec th {
  font-weight: 400;
  color: var(--yt-faint);
  white-space: nowrap;
  padding-right: 1rem;
  width: 42%;
}
.yt-spec td {
  color: #e6e9f4;
  text-align: right;
}

/* 数据表 */
.yt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.yt-table caption {
  caption-side: top;
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-faint);
  padding-bottom: 0.75rem;
}
.yt-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yt-faint);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--yt-line);
  background: rgba(8, 11, 18, 0.4);
  white-space: nowrap;
}
.yt-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--yt-line-soft);
  color: var(--yt-muted);
  vertical-align: top;
}
.yt-table td:first-child {
  color: #e6e9f4;
}
.yt-table tr:last-child td {
  border-bottom: 0;
}
.yt-table--mono td {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}
.yt-table--mono td:first-child {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
}

/* 流程 */
.yt-step {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 1.15rem;
  border: 1px solid var(--yt-line-soft);
  border-radius: var(--yt-r);
  background: rgba(17, 24, 39, 0.6);
}
.yt-step__index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--yt-accent-strong, #60a5fa);
  display: block;
  margin-bottom: 0.75rem;
}
.yt-step h4 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.yt-step p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--yt-muted);
  line-height: 1.65;
}

/* 时间轴 */
.yt-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--yt-line);
}
.yt-timeline__item {
  position: relative;
  padding: 1.5rem 1.25rem 0 0;
  border-right: 1px solid var(--yt-line-soft);
}
.yt-timeline__item:last-child {
  border-right: 0;
  padding-right: 0;
}
.yt-timeline__item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--yt-blue);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.9);
}
.yt-timeline__year {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.85rem;
}
.yt-timeline h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}
.yt-timeline p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--yt-muted);
  line-height: 1.7;
}
.yt-timeline__meta {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yt-faint);
  border-top: 1px dashed var(--yt-line);
  padding-top: 0.6rem;
}

/* 引用 */
.yt-quote-block {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r);
  background: linear-gradient(140deg, rgba(13, 110, 253, 0.12), rgba(8, 11, 18, 0.2) 55%);
}
.yt-quote-block blockquote {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: #fff;
}
.yt-quote-block cite {
  display: block;
  margin-top: 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--yt-faint);
}

.yt-testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.yt-testimonial p {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--yt-ink);
}
.yt-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yt-line-soft);
}
.yt-testimonial__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.35);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8125rem;
  color: var(--yt-accent);
  flex: none;
}
.yt-testimonial__meta strong {
  display: block;
  font-size: 0.8125rem;
  color: #fff;
  font-weight: 500;
}
.yt-testimonial__meta span {
  display: block;
  font-size: 0.6875rem;
  color: var(--yt-faint);
}
.yt-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #f5b544;
}
.yt-stars .yt-i {
  width: 0.8rem;
  height: 0.8rem;
}

/* 品牌条 */
.yt-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--yt-line-soft);
}
.yt-logos span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-faint);
  opacity: 0.85;
  white-space: nowrap;
}

/* CTA 带 */
.yt-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.32);
  border-radius: var(--yt-r-lg);
  background: linear-gradient(115deg, rgba(13, 110, 253, 0.2), rgba(8, 11, 18, 0.9) 58%);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.yt-cta::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.28), transparent 65%);
  pointer-events: none;
}
.yt-cta > * {
  position: relative;
  z-index: 1;
}
.yt-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.yt-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
}
.yt-cta p {
  margin: 0;
  color: #c9d2e6;
}
.yt-cta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--yt-faint);
}
.yt-cta__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.yt-cta__meta .yt-i {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--yt-accent);
}

/* 面包屑 / 标签条 */
.yt-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--yt-faint);
  padding-block: 1rem;
}
.yt-crumb a {
  color: var(--yt-muted);
}
.yt-crumb a:hover {
  color: #fff;
}
.yt-crumb__sep {
  color: #39414f;
}

.yt-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--yt-line-soft);
}
.yt-tabbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--yt-muted);
  border: 1px solid transparent;
  text-decoration: none;
}
.yt-tabbar a:hover {
  color: #fff;
  border-color: var(--yt-line);
  background: rgba(17, 24, 39, 0.7);
}
.yt-tabbar a.is-active {
  color: #fff;
  background: var(--yt-panel-2);
  border-color: var(--yt-line);
  box-shadow: inset 0 -2px 0 var(--yt-blue);
}

/* 表单 */
.yt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.yt-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.yt-form__field--full {
  grid-column: 1 / -1;
}
.yt-form label,
.yt-form__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yt-faint);
}
.yt-form input[type="text"],
.yt-form input[type="tel"],
.yt-form input[type="email"],
.yt-form input[type="date"],
.yt-form input[type="number"],
.yt-form select,
.yt-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--yt-bg);
  border: 1px solid rgba(229, 231, 235, 0.15);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
}
.yt-form select {
  background-image: linear-gradient(45deg, transparent 49%, var(--yt-faint) 50%),
    linear-gradient(135deg, var(--yt-faint) 50%, transparent 51%);
  background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.75rem) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.yt-form textarea {
  min-height: 7rem;
  resize: vertical;
}
.yt-form input::placeholder,
.yt-form textarea::placeholder {
  color: #596174;
}
.yt-form input:focus,
.yt-form select:focus,
.yt-form textarea:focus {
  outline: 0;
  border-color: var(--yt-blue);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}
.yt-form__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--yt-muted);
  line-height: 1.6;
}
.yt-form__check input {
  margin-top: 0.18rem;
  accent-color: var(--yt-blue);
}
.yt-form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.yt-form__hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  color: var(--yt-faint);
  margin: 0;
}
.yt-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #0d6efd, #0052cc);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}
.yt-form button[type="submit"]:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.yt-form__notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(6, 46, 36, 0.55);
  color: #6ee7b7;
}
.yt-form__notice--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(69, 10, 10, 0.5);
  color: #fca5a5;
}
.yt-form__notice .yt-i {
  width: 1rem;
  height: 1rem;
}

/* 上传框 */
.yt-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.75rem 1rem;
  border: 1px dashed rgba(229, 231, 235, 0.22);
  border-radius: var(--yt-r);
  background: rgba(8, 11, 18, 0.5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.yt-dropzone:hover {
  border-color: rgba(13, 110, 253, 0.5);
  background: rgba(13, 110, 253, 0.06);
}
.yt-dropzone .yt-i {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--yt-accent);
}
.yt-dropzone strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}
.yt-dropzone span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--yt-faint);
}
.yt-dropzone input[type="file"] {
  display: none;
}

/* 地图 */
.yt-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r-lg);
  background: #0a1420;
  min-height: 20rem;
}
.yt-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.yt-map__pin {
  position: absolute;
  left: 46%;
  top: 42%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  background: rgba(8, 11, 18, 0.9);
  border: 1px solid rgba(13, 110, 253, 0.5);
  font-size: 0.75rem;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.12);
}
.yt-map__pin .yt-i {
  color: var(--yt-blue);
}

/* 产品卡片 */
.yt-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.yt-product-card .yt-media {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--yt-line-soft);
  aspect-ratio: 16 / 10;
}
.yt-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  flex: 1;
}
.yt-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.yt-product-card__model {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--yt-faint);
}
.yt-product-card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 0;
}
.yt-product-card h3 a {
  color: #fff;
  text-decoration: none;
}
.yt-product-card h3 a:hover {
  color: var(--yt-accent);
}
.yt-product-card__desc {
  font-size: 0.8125rem;
  color: var(--yt-muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-product-card__specs {
  border-top: 1px solid var(--yt-line-soft);
  padding-top: 0.65rem;
}
.yt-product-card__specs .yt-spec th,
.yt-product-card__specs .yt-spec td {
  padding: 0.28rem 0;
  font-size: 0.6875rem;
}
.yt-product-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--yt-line-soft);
}
.yt-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.yt-price small {
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--yt-faint);
  margin-left: 0.2rem;
}
.yt-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--yt-accent);
  text-decoration: none;
  white-space: nowrap;
}
.yt-link-arrow:hover {
  color: #fff;
}
.yt-link-arrow .yt-i {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.16s ease;
}
.yt-link-arrow:hover .yt-i {
  transform: translateX(2px);
}

/* 产品详情 */
.yt-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.yt-gallery__main {
  position: relative;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r-lg);
  overflow: hidden;
  background: var(--yt-panel);
  aspect-ratio: 4 / 3.2;
}
.yt-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.yt-gallery__thumb {
  padding: 0;
  border: 1px solid var(--yt-line-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--yt-panel);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color 0.16s ease;
}
.yt-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-gallery__thumb:hover,
.yt-gallery__thumb.is-active {
  border-color: rgba(13, 110, 253, 0.6);
}

.yt-buybox {
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-r);
  background: rgba(17, 24, 39, 0.8);
  padding: 1.15rem;
}
.yt-buybox__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--yt-line-soft);
  font-size: 0.8125rem;
}
.yt-buybox__row:last-of-type {
  border-bottom: 0;
}
.yt-buybox__row span:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yt-faint);
}
.yt-buybox__row span:last-child {
  color: #fff;
  text-align: right;
}

/* 10. 区块覆盖 ----------------------------------------------------------- */
/* 按钮基线：不依赖区块默认样式（避免前台/编辑器/离线预览不一致） */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.wp-block-button {
  margin: 0;
}
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.wp-block-button__link {
  background-image: linear-gradient(135deg, #0d6efd, #0052cc);
  border: 1px solid rgba(13, 110, 253, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px -14px rgba(13, 110, 253, 0.8);
  transition: filter 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.wp-block-button__link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.yt-btn--ghost .wp-block-button__link {
  background: transparent;
  background-image: none;
  border-color: rgba(229, 231, 235, 0.2);
  color: #e5e7eb;
  box-shadow: none;
}
.yt-btn--ghost .wp-block-button__link:hover {
  border-color: var(--yt-blue);
  color: #fff;
  filter: none;
}
.yt-btn--quiet .wp-block-button__link {
  background: var(--yt-panel-2);
  background-image: none;
  border-color: transparent;
  color: var(--yt-ink);
  box-shadow: none;
}
.yt-btn--quiet .wp-block-button__link:hover {
  background: var(--yt-panel-3);
  color: #fff;
}
.yt-btn--sm .wp-block-button__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}
.yt-btn--lg .wp-block-button__link {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}
/* 左文右图分栏时，让左侧卡片行等高填满，避免长列右侧留白 */
.yt-split--top > .yt-grid--2 {
  height: 100%;
  grid-auto-rows: 1fr;
}
.wp-block-buttons {
  gap: 0.75rem;
}
.wp-block-button.is-style-link .wp-block-button__link {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: var(--yt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-block-table {
  margin: 0;
}
.wp-block-table table {
  border-collapse: collapse;
}
.wp-block-table td,
.wp-block-table th {
  border: 0;
  border-bottom: 1px solid var(--yt-line-soft);
  padding: 0.7rem 0.75rem;
}
.wp-block-table thead th {
  border-bottom: 1px solid var(--yt-line);
  color: var(--yt-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wp-block-table figcaption {
  font-size: 0.6875rem;
  color: var(--yt-faint);
  margin-top: 0.5rem;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--yt-line-soft);
  opacity: 1;
}

.wp-block-search__inside-wrapper {
  border: 1px solid rgba(229, 231, 235, 0.15);
  border-radius: 4px;
  background: var(--yt-bg);
  overflow: hidden;
}
.wp-block-search__input {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
}
.wp-block-search__button {
  background: var(--yt-blue);
  border: 0;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  margin: 0;
}

.wp-block-post-title {
  margin: 0;
}
.wp-block-post-title a {
  color: #fff;
  text-decoration: none;
}
.wp-block-post-excerpt__excerpt {
  color: var(--yt-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.wp-block-post-featured-image img {
  border-radius: var(--yt-r);
  border: 1px solid var(--yt-line-soft);
}

.wp-block-query-pagination {
  margin-top: 2rem;
  justify-content: center;
  gap: 0.35rem;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border: 1px solid var(--yt-line);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--yt-muted);
  text-decoration: none;
}
.wp-block-query-pagination a:hover {
  border-color: var(--yt-blue);
  color: #fff;
}
.wp-block-query-pagination .current {
  background: rgba(13, 110, 253, 0.16);
  border-color: rgba(13, 110, 253, 0.5);
  color: #fff;
}

.wp-block-tag-cloud {
  margin: 0;
}
.wp-block-tag-cloud a {
  font-size: 0.8125rem !important;
  display: inline-flex;
}
.wp-block-tag-cloud a::after {
  content: "";
}

.wp-block-details {
  border: 1px solid var(--yt-line-soft);
  border-radius: var(--yt-r);
  padding: 0.9rem 1.1rem;
  background: rgba(17, 24, 39, 0.5);
}
.wp-block-details summary {
  cursor: pointer;
  font-weight: 500;
  color: #fff;
}

.wp-block-post-content > * + * {
  margin-top: 1rem;
}
.yt-rich h2 {
  margin-top: 2.5rem;
}
.yt-rich h3 {
  margin-top: 2rem;
}
.yt-rich p,
.yt-rich li {
  color: var(--yt-muted);
}
.yt-rich ul {
  padding-left: 1.1rem;
}
.yt-rich li {
  margin-bottom: 0.4rem;
}

.yt-main {
  min-height: 50vh;
}

/* 11. 响应式 ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .yt-grid--4,
  .yt-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-metric:nth-child(2n) {
    border-right: 0;
  }
  .yt-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--yt-line-soft);
  }
}

@media (max-width: 1024px) {
  .yt-head {
    min-height: 4rem;
  }
  .yt-nav .wp-block-navigation__container {
    gap: 1.25rem;
  }
  .yt-nav .wp-block-navigation-item__content {
    font-size: 0.875rem;
  }
  .yt-header__actions .yt-btn--ghost {
    display: none;
  }
  .yt-grid--3,
  .yt-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-timeline__item:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .yt-timeline__item:nth-child(-n + 2) {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 900px) {
  .yt-split,
  .yt-split--even,
  .yt-cta__grid {
    grid-template-columns: 1fr;
  }
  .yt-split--reverse > :first-child {
    order: 0;
  }
  .yt-hero {
    padding-block: 2rem;
  }
  .yt-topbar__inner {
    justify-content: space-between;
  }
  .yt-topbar__item--desktop {
    display: none;
  }
  .yt-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --yt-pad: 1.15rem;
  }
  .yt-grid--2,
  .yt-grid--3,
  .yt-grid--4,
  .yt-grid--5 {
    grid-template-columns: 1fr;
  }
  .yt-timeline {
    grid-template-columns: 1fr;
  }
  .yt-timeline__item {
    border-right: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--yt-line-soft);
  }
  .yt-timeline__item:last-child {
    border-bottom: 0;
  }
  .yt-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .yt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .yt-form {
    grid-template-columns: 1fr;
  }
  .yt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-metric-grid {
    grid-template-columns: 1fr;
  }
  .yt-metric {
    border-right: 0;
    border-bottom: 1px solid var(--yt-line-soft);
  }
  .yt-metric:last-child {
    border-bottom: 0;
  }
  .yt-banner-top {
    display: none;
  }
  .yt-lang,
  .yt-live {
    font-size: 0.625rem;
  }
  .yt-brand__name {
    font-size: 1rem;
  }
  .yt-brand__sub {
    letter-spacing: 0.14em;
  }
  .yt-header__actions .yt-btn--ghost {
    display: none;
  }
  .wp-block-table {
    overflow-x: auto;
  }
  .yt-quote-block blockquote {
    font-size: 1.125rem;
  }
  .yt-cta__meta {
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   12. 组件补全与区块兼容（覆盖核心区块默认样式）
   ========================================================================== */

/* 页头模板部件吸顶
   top 必须严格贴住视口上沿，否则滚动时页头上方会留出缝隙、页面内容从缝里穿出来。
   只有 WordPress 管理栏「固定在视口顶部」时（桌面端）才需要让位。 */
.yt-header-part {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
  /* 独立层叠上下文：避免内部毛玻璃层与页面内容互相穿透（Safari 上尤其明显） */
  isolation: isolate;
  background: var(--yt-bg-deep);
}
.admin-bar .yt-header-part {
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 782px) {
  /* 窄屏下 #wpadminbar 是 absolute，会随页面一起滚走，页头必须回到 0，否则上方露内容 */
  .admin-bar .yt-header-part {
    top: 0;
  }
}

/* 图片区块基础 */
.wp-block-image.yt-media,
.wp-block-image.yt-map {
  margin: 0;
  overflow: hidden;
}
.wp-block-image.yt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-media--flat img {
  border-radius: inherit;
}
.yt-gallery__thumb img,
.yt-media img {
  background: #0d1420;
}

/* core/table 承载规格表 */
.wp-block-table.yt-spec > table,
.wp-block-table.yt-table > table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
.wp-block-table.yt-spec > table td,
.wp-block-table.yt-spec > table th {
  border: 0;
  border-bottom: 1px solid var(--yt-line-soft);
}
.wp-block-table.yt-spec > table tr:last-child td {
  border-bottom: 0;
}
.wp-block-table.yt-spec > table {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}
.wp-block-table.yt-spec > table td:first-child {
  color: var(--yt-faint);
  text-align: left;
  width: 42%;
}
.wp-block-table.yt-spec > table td:last-child {
  color: #e6e9f4;
  text-align: right;
}
.wp-block-table.yt-table > table td,
.wp-block-table.yt-table > table th {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--yt-line-soft);
  border-left: 0;
  border-right: 0;
}
.wp-block-table.yt-table > table thead th {
  background: rgba(8, 11, 18, 0.5);
  border-bottom: 1px solid var(--yt-line);
}
.wp-block-table.yt-table > table tr:last-child td {
  border-bottom: 0;
}

/* 区块样式快捷类（编辑器可选） */
.is-style-card {
  position: relative;
  background: var(--yt-panel);
  border: 1px solid var(--yt-line-soft);
  border-radius: var(--yt-r);
  padding: 1.5rem;
}
.is-style-card::before,
.is-style-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(177, 197, 255, 0.45);
  border-style: solid;
  pointer-events: none;
}
.is-style-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.is-style-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}
.wp-block-button.is-style-ghost .wp-block-button__link,
.yt-btn--ghost .wp-block-button__link {
  background: transparent;
  background-image: none;
  border-color: rgba(229, 231, 235, 0.22);
  color: #e5e7eb;
  box-shadow: none;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.yt-btn--ghost .wp-block-button__link:hover {
  border-color: var(--yt-blue);
  color: #fff;
  filter: none;
}
.wp-block-button.is-style-quiet .wp-block-button__link,
.yt-btn--quiet .wp-block-button__link {
  background: var(--yt-panel-2);
  background-image: none;
  border-color: transparent;
  color: var(--yt-ink);
  box-shadow: none;
}
.wp-block-button.is-style-quiet .wp-block-button__link:hover,
.yt-btn--quiet .wp-block-button__link:hover {
  background: var(--yt-panel-3);
  color: #fff;
}

/* 指标网格三列 */
.yt-metric-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.yt-metric-grid--3 .yt-metric {
  border-right: 1px solid var(--yt-line-soft);
}
.yt-metric-grid--3 .yt-metric:last-child {
  border-right: 0;
}

/* 卡片内区块间距修正 */
.yt-card > .wp-block-group,
.yt-card > p,
.yt-card > h3,
.yt-card > h4 {
  margin-block-start: 0;
}
.yt-card > * + * {
  margin-block-start: 0.85rem;
}
.yt-card__head + * {
  margin-block-start: 0;
}
.yt-card .wp-block-buttons {
  margin-block-start: 1.1rem;
}
.yt-stat p,
.yt-metric p,
.yt-step p,
.yt-buybox p {
  margin: 0;
}
.yt-stat > * + *,
.yt-metric > * + * {
  margin-block-start: 0.2rem;
}
.yt-stat__value {
  margin-block-start: 0 !important;
}
.yt-timeline__meta + p {
  margin-block-start: 0.5rem;
}
.yt-footer p {
  margin: 0;
}
.yt-footer__brand .yt-brand {
  margin-bottom: 1.1rem;
  display: inline-flex;
}
.yt-footer__desc {
  font-size: 0.8125rem;
  line-height: 1.8;
  max-width: 34ch;
}
.yt-footer__certs p {
  margin: 0;
}

/* 首屏图片列 */
.yt-hero__media {
  position: relative;
}
.yt-hero__media .wp-block-image {
  height: 100%;
}
.yt-hero--page {
  padding-block: clamp(2rem, 4vw, 3rem);
}

/* 行业 / 厂房 / 文章卡片主体 */
.yt-industry__body,
.yt-facility__body,
.yt-post-card__body {
  padding: 1.25rem;
}
.yt-industry h3,
.yt-facility h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
}
.yt-industry p,
.yt-facility p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.yt-industry .wp-block-table,
.yt-facility .wp-block-table {
  margin-top: 0.75rem;
}
.yt-industry .yt-spec td,
.yt-facility .yt-spec td {
  padding: 0.35rem 0;
  font-size: 0.6875rem;
}
.yt-facility__body .yt-chips {
  margin-top: 0.35rem;
}
.yt-post-card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
}
.yt-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
}
.yt-post-card .wp-block-post-excerpt__excerpt {
  margin: 0;
}
.yt-post-card .wp-block-post-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--yt-faint);
  margin: 0;
}

/* 认证条 */
.yt-cert-strip {
  margin-top: 2rem;
  padding: 1.5rem;
}
.yt-cert-strip__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.yt-cert-strip h3 {
  font-size: 1.125rem;
}
.yt-cert-strip p {
  font-size: 0.8125rem;
}

/* 筛选条 */
.yt-filterbar {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--yt-line-soft);
  gap: 1rem;
}
.yt-filterbar--sub {
  border-bottom: 0;
  padding-block: 0.75rem 1.5rem;
  gap: 0.5rem;
}
.yt-filterbar .yt-chips {
  gap: 0.45rem;
  align-items: center;
}
.yt-filterbar .yt-label {
  margin: 0 0.35rem 0 0;
  white-space: nowrap;
}
.yt-filterbar .wp-block-tag-cloud {
  display: contents;
}
.yt-filterbar .yt-note {
  max-width: 30ch;
}
.yt-chips .yt-label {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.6875rem !important;
  color: var(--yt-faint) !important;
}
.yt-chips .yt-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem !important;
  letter-spacing: 0.02em;
}

/* 搜索框尺寸 */
.yt-search {
  max-width: 26rem;
  flex: 1 1 18rem;
}
.wp-block-search.yt-search .wp-block-search__inside-wrapper {
  border-radius: 4px;
}

/* 面包屑 */
.yt-crumb p {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--yt-faint);
}
.yt-crumb .wp-block-post-terms {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--yt-muted);
}
.yt-crumb .wp-block-post-terms a {
  color: var(--yt-muted);
}
.yt-crumb .wp-block-post-terms .wp-block-post-terms__separator {
  color: #39414f;
}

/* 产品详情锚点标签条 */
.yt-tabbar {
  margin-top: 2rem;
}
.yt-tabbar p {
  margin: 0;
}
.yt-tabbar a {
  font-family: "Inter", sans-serif;
}

/* 产品详情信息栏 */
.yt-product-hero {
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.yt-product-hero .wp-block-post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.yt-product-hero .wp-block-post-excerpt {
  margin: 0;
}
.yt-product-hero .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--yt-muted);
  font-size: 0.9375rem;
  line-height: 1.78;
}
.yt-buybox {
  padding: 1.15rem;
}
.yt-buybox__row p {
  margin: 0;
}
.yt-buybox .yt-price {
  font-size: 1.25rem;
}
.yt-buybox .wp-block-buttons {
  margin: 0.25rem 0 0;
}

/* 引用块覆盖 */
.yt-quote-block .wp-block-quote {
  margin: 1rem 0 1.25rem;
  padding: 0;
  border: 0;
}
.yt-quote-block .wp-block-quote p {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.yt-quote-block .wp-block-quote cite {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--yt-faint);
}

/* 星标 */
.yt-stars {
  margin: 0;
  color: #f5b544;
}

/* 地图 */
.yt-map .wp-block-image,
.yt-map figure {
  margin: 0;
  height: 100%;
}
.yt-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1000 / 680;
}

/* 文章正文与表格横向滚动 */
.yt-rich .wp-block-table {
  overflow-x: auto;
}
.yt-rich .wp-block-table table {
  min-width: 34rem;
}
.yt-rich > .wp-block-group,
.yt-rich > .wp-block-table,
.yt-rich > .wp-block-buttons {
  margin-block: 1.5rem;
}

/* 分页与搜索细节 */
.wp-block-query-pagination > * {
  margin: 0;
}
.wp-block-query-pagination-numbers {
  display: inline-flex;
  gap: 0.35rem;
}
.wp-block-query-pagination .page-numbers {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--yt-line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--yt-muted);
  text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current {
  background: rgba(13, 110, 253, 0.16);
  border-color: rgba(13, 110, 253, 0.5);
  color: #fff;
}

/* 移动端局部修正 */
@media (max-width: 960px) {
  .yt-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .yt-product-hero {
    grid-template-columns: 1fr;
  }
  .yt-header__actions .wp-block-buttons:first-child {
    display: none;
  }
  .yt-metric-grid--3 {
    grid-template-columns: 1fr;
  }
  .yt-metric-grid--3 .yt-metric {
    border-right: 0;
    border-bottom: 1px solid var(--yt-line-soft);
  }
  .yt-map img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .yt-topbar__right .yt-lang {
    display: none;
  }
  .yt-cert-strip__metrics {
    grid-template-columns: 1fr;
  }
  .yt-filterbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .yt-buybox .yt-price {
    font-size: 1.125rem;
  }
}

/* 13. 交互状态补全 ------------------------------------------------------- */
.yt-header.is-scrolled {
  background: rgba(8, 11, 18, 0.99);
  border-bottom-color: var(--yt-line);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.95);
}
.yt-header.is-scrolled .yt-topbar {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease;
}
.yt-topbar {
  max-height: 4rem;
  transition: max-height 0.22s ease, opacity 0.18s ease;
}

.yt-gallery__thumb.is-active {
  border-color: var(--yt-blue);
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.55);
}

.wp-block-button__link.is-busy,
.wp-block-button__link[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* 键盘可达性：统一焦点环 */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--yt-accent-strong);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 14. 移动端页头微调 ----------------------------------------------------- */
@media (max-width: 782px) {
  .yt-head {
    gap: 0.75rem;
    min-height: 3.75rem;
  }
  .yt-nav {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
  .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 6px;
  }
  .wp-block-navigation__responsive-container-open svg {
    width: 22px;
    height: 22px;
  }
  .yt-header__actions .wp-block-button__link {
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
  }
}

/* 15. 卡片脚注行（.yt-card__foot）间距与分隔线 ---------------------------- */
.yt-card > .yt-card__foot,
.wp-block-group.yt-card__foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yt-line-soft);
}
