/* ==========================================================================
   Hyico · Components
   按钮 / 标签 / 卡片 / 导航 / 规格表 / 选项卡 / 折叠面板 / 表单 / 图形件
   命名遵循 BEM-lite：.block__element--modifier
   ========================================================================== */

/* ==========================================================================
   1. Brand 标志
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
  transition: transform var(--dur-3) var(--ease-out);
}

.brand:hover .brand__mark { transform: rotate(-90deg); }

.brand__text { display: grid; line-height: 1.1; }

.brand__word {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
}

.brand__sub {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-3);
}

/* ==========================================================================
   2. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn { background: var(--accent-strong); }
.btn:hover { background: var(--text); }

[data-theme="dark"] .btn { background: var(--accent); color: var(--accent-contrast); }
[data-theme="dark"] .btn:hover { background: var(--accent-strong); }

.btn--lg { padding: 0.9rem 1.5rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--fs-xs); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-3);
}

.btn--quiet {
  background: transparent;
  color: var(--accent-strong);
  padding-inline: var(--s-1);
  border-radius: var(--r-xs);
}

.btn--quiet:hover { box-shadow: none; transform: none; color: var(--text); }

.btn__icon { width: 16px; height: 16px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  color: var(--text-2);
  transition: background-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.icon-btn svg { width: 18px; height: 18px; }

/* 文本链接箭头 */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--accent-strong);
  text-decoration: none;
}

.arrow-link svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
.arrow-link:hover { color: var(--text); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   3. 标签 / 眉标 / 徽章
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
}

.chip--accent { border-color: var(--accent); color: var(--accent-strong); }

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
  flex: none;
}

.chip__dot--live { animation: pulse 2.4s var(--ease) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }

/* 占位数据标记：诚实标注尚未确认的参数 */
.draft-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  margin-inline-start: var(--s-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  vertical-align: middle;
  white-space: nowrap;
}

/* ==========================================================================
   4. 卡片
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease);
}

.card h3 { color: var(--text); }

.card p { color: var(--text-2); }

.card--pad-lg { padding: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); }

.card--plain {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

/* 可点击卡片：整块热区 */
.card--link { text-decoration: none; color: inherit; }

.card--link:hover,
.card--link:focus-visible {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.card--link .card__more {
  margin-top: auto;
  transition: transform var(--dur-2) var(--ease-out);
}

.card--link:hover .card__more { transform: translateX(4px); }

/* 顶部装饰线：悬停时长出品牌色细线 */
.card--accent::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-start-start-radius: var(--r-lg);
  border-start-end-radius: var(--r-lg);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}

.card--accent:hover::before { opacity: 1; }

.card--dark {
  background: var(--mint-800);
  border-color: var(--mint-600);
  color: var(--mint-50);
}

.card--dark h3 { color: var(--mint-50); }
.card--dark p { color: var(--mint-200); }

/* 卡片内的编号 */
.card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--text-3);
}

/* 图标容器 */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex: none;
}

.icon-tile svg { width: 20px; height: 20px; }
.icon-tile--lg { width: 52px; height: 52px; border-radius: var(--r-lg); }
.icon-tile--lg svg { width: 24px; height: 24px; }

/* ==========================================================================
   5. 主导航
   ========================================================================== */
.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.nav__link:hover { color: var(--text); background: var(--surface); }

.nav__link[aria-current="page"] { color: var(--text); font-weight: var(--fw-semi); }

/* 当前页：底部细线，比圆点更像"当前"，也不会被误读为分隔符 */
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__caret { width: 12px; height: 12px; transition: transform var(--dur-2) var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 232px;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out);
}

.nav__item.is-open .nav__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.nav__menu a:hover { background: var(--bg-sub); color: var(--text); }

.nav__menu-label {
  padding: 0.5rem 0.65rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-3);
}

.nav__menu-desc { display: block; font-size: var(--fs-xs); color: var(--text-3); }

@media (min-width: 1000px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

@media (max-width: 999px) {
  .site-header__cta { display: none; }
}

/* ==========================================================================
   6. 主题开关
   ========================================================================== */
.theme-toggle { position: relative; }

.theme-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 17px;
  height: 17px;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out);
}

.theme-toggle__icon--sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-70deg) scale(0.6); }

[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(70deg) scale(0.6); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0) scale(1); }

/* ==========================================================================
   7. 规格表
   ========================================================================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.spec-table caption {
  text-align: start;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: var(--s-3);
}

.spec-table th,
.spec-table td {
  padding: var(--s-3) var(--s-4);
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}

.spec-table th {
  width: 42%;
  font-weight: var(--fw-normal);
  color: var(--text-2);
}

.spec-table td {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-medium);
  color: var(--text);
  letter-spacing: -0.01em;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.spec-table tbody tr { transition: background-color var(--dur-1) var(--ease); }
.spec-table tbody tr:hover { background: var(--bg-sub); }

/* 键值对规格卡（移动端友好） */
.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.spec-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}

.spec-list__row dt { color: var(--text-2); font-size: var(--fs-sm); }

.spec-list__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: end;
}

/* ==========================================================================
   8. 选项卡
   ========================================================================== */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: 4px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar { display: none; }

.tabs__tab {
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.tabs__tab:hover { color: var(--text); }

.tabs__tab[aria-selected="true"],
.tabs__tab[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.tabs__panel { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.tabs__panel:focus-visible { outline-offset: 6px; }

/* ==========================================================================
   9. 折叠面板（基于原生 details，无 JS 也可用）
   ========================================================================== */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: color var(--dur-2) var(--ease);
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary:hover { color: var(--accent-strong); }

.faq-item__sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.4em;
}

.faq-item__sign::before,
.faq-item__sign::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  border-radius: 1px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease);
}

.faq-item__sign::before { width: 100%; height: 1.5px; }
.faq-item__sign::after { width: 1.5px; height: 100%; }

.faq-item[open] > summary { color: var(--text); }
.faq-item[open] .faq-item__sign::after { transform: scaleY(0); opacity: 0; }

.faq-item__body {
  padding-bottom: var(--s-6);
  max-width: 74ch;
  color: var(--text-2);
  line-height: 1.85;
}

/* ==========================================================================
   10. 统计数字
   ========================================================================== */
.stat { display: grid; gap: var(--s-2); }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat__unit { font-size: 0.45em; margin-inline-start: 4px; color: var(--text-3); font-weight: var(--fw-normal); }

.stat__label { font-size: var(--fs-sm); color: var(--text-2); }

/* ==========================================================================
   11. 时间线
   ========================================================================== */
.timeline {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  border-inline-start: 1px solid var(--border);
}

.timeline__item {
  position: relative;
  padding: 0 0 var(--s-8) var(--s-6);
}

.timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1.5px solid var(--accent);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.timeline__title { margin: 0.35rem 0 0.4rem; font-size: var(--fs-lg); font-weight: var(--fw-semi); }
.timeline__desc { color: var(--text-2); font-size: var(--fs-sm); }

/* ==========================================================================
   12. 表单
   ========================================================================== */
.form { display: grid; gap: var(--s-5); }

.field { display: grid; gap: var(--s-2); }

.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.field__req { color: var(--accent-strong); margin-inline-start: 2px; }

.field__hint { font-size: var(--fs-xs); color: var(--text-3); }

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.field__textarea { min-height: 8.5rem; }

.field__input:hover,
.field__select:hover,
.field__textarea:hover { border-color: var(--border-strong); }

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"] { border-color: #B4553F; }

.field__error {
  font-size: var(--fs-xs);
  color: #B4553F;
}

[data-theme="dark"] .field__error,
[data-theme="dark"] .field__input[aria-invalid="true"],
[data-theme="dark"] .field__textarea[aria-invalid="true"] { color: #E7A08C; border-color: #E7A08C; }

.form__notice {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-sub);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.form__notice--ok { border-color: var(--accent); color: var(--text); }

/* 带复制按钮的邮箱行 */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
}

.copy-row__value {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   13. 跑马灯 / 标识条
   ========================================================================== */
.marquee {
  display: flex;
  gap: var(--s-10);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  flex: none;
  min-width: 100%;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--s-10))); }
}

.marquee__item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

/* ==========================================================================
   14. 图形件：工程图纸与界面示意
   ========================================================================== */
/* 图纸容器：细网格底 + 四角标记 */
.blueprint {
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface);
}

.blueprint svg { width: 100%; height: auto; }

.blueprint__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  fill: var(--text-3);
}

.blueprint__line { stroke: var(--border-strong); stroke-width: 1; }

/* ---------- 内联 SVG 图元（图纸） ---------- */
.bp-frame   { stroke: var(--text); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.bp-plate   { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.bp-solid   { fill: var(--text); stroke: none; }
.bp-thin    { stroke: var(--border-strong); stroke-width: 1; fill: none; }
.bp-dash    { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.bp-accent  { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.bp-accent-thin { stroke: var(--accent); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.bp-motor   { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.bp-fill    { fill: var(--accent); stroke: none; }
.bp-dim     { stroke: var(--text-3); stroke-width: 1; fill: none; }
.bp-dim-line { stroke: var(--border-strong); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.bp-label   { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--text-3); }
.bp-label--strong { fill: var(--text); }
.bp-label--accent { fill: var(--accent-strong); }
.bp-callout { stroke: var(--border-strong); stroke-width: 1; fill: none; }

.bp-prop    { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 5 6; fill: none; opacity: 0.85; }

/* 旋翼扫掠面：极淡的填充，让"四个桨盘"成为主要视觉，而不是让桨叶看起来像机翼 */
.bp-disc { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: none; }

/* ---------- 结构图元：碳管 / 三通 / 中心板 / 电池 / PCB / 线束 ---------- */
/* 单位与图纸一致（1 用户单位 = 2 mm），因此线宽可直接按管径换算 */
.bp-tube-mid { stroke: var(--text); stroke-width: 12.5; fill: none; stroke-linecap: round; }  /* 25mm 中梁 */
.bp-tube-arm { stroke: var(--text); stroke-width: 10;   fill: none; stroke-linecap: round; }  /* 20mm 机臂 */
.bp-tube-hl  { stroke: var(--accent); stroke-width: 1.2; fill: none; }

.bp-fitting  { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.bp-plate-fill { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.3; }
.bp-cut      { fill: none; stroke: var(--border-strong); stroke-width: 1; }

.bp-batt     { fill: none; stroke: var(--accent); stroke-width: 1.1; stroke-dasharray: 5 4; }
.bp-batt-cell { stroke: var(--border-strong); stroke-width: 0.8; fill: none; opacity: 0.65; }

.bp-pcb      { fill: var(--surface); stroke: var(--text); stroke-width: 1.3; }
.bp-pcb-dark { fill: var(--mint-800); stroke: var(--mint-600); stroke-width: 1.3; }
/* 叠装在上层的关键板卡：用强调色描边从底板上"跳"出来 */
.bp-pcb-hi   { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.6; }
.bp-pad      { fill: var(--accent); stroke: none; }
.bp-pin      { fill: var(--border-strong); stroke: none; }

.bp-silk     { font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.03em; fill: var(--text-3); }
.bp-silk--md { font-size: 7.5px; }
.bp-silk--lg { font-size: 9px; letter-spacing: 0.06em; }
.bp-silk--strong { fill: var(--text); }

/* 接插件外壳：JST 一类的白色塑壳，在深浅两色主题下都用浅色更接近实物 */
.bp-conn { fill: var(--mint-100); stroke: var(--border-strong); stroke-width: 0.8; }
/* 尼龙扎带 */
.bp-ty   { stroke: var(--mint-500); stroke-width: 5; stroke-linecap: round; fill: none; }

/* 编号标记：图形里只放数字，文字说明放在旁边（可被 JSON 覆盖），避免图面拥挤 */
.bp-num      { fill: var(--accent); stroke: none; }
.bp-num-text { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; fill: var(--accent-contrast); }

.bp-wire     { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.bp-wire--red   { stroke: #C4614F; }
.bp-wire--amber { stroke: #C29A4E; }
.bp-wire--blue  { stroke: #5A87A8; }
.bp-wire--green { stroke: var(--accent); }
.bp-wire--cream { stroke: var(--border-strong); }
.bp-wire--dark  { stroke: var(--mint-500); }

/* 桨叶：不设 stroke-width，交由每个 path 的 stroke-width 属性做收窄渐变 */
.bp-blade { stroke: var(--accent); fill: none; stroke-linecap: round; }

/* 图纸上的参数标签：小圆角底衬，避免压在虚线扫掠面上看不清 */
.bp-tag {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  fill: var(--text-2);
}

/* 描边生长动画（配合元素上的 pathLength="1000" 使用） */
.draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s var(--ease-out) forwards;
}

.draw--2 { animation-delay: 0.18s; }
.draw--3 { animation-delay: 0.36s; }
.draw--4 { animation-delay: 0.54s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* 旋翼：极缓慢旋转。fill-box 让旋转中心落在图元自身包围盒中心 */
.rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 3.6s linear infinite;
}

.rotor--b { animation-direction: reverse; animation-duration: 4.6s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 界面示意窗口 */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.mock__dots { display: flex; gap: 5px; }
.mock__dots i {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  display: block;
}

.mock__body { padding: var(--s-4); display: grid; gap: var(--s-3); }

/* 模拟数据条 */
.mock__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 46px; gap: var(--s-3); align-items: center; }
.mock__row span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.mock__bar-track { height: 5px; border-radius: var(--r-full); background: var(--bg-sub); overflow: hidden; }

.mock__bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), var(--mint-200));
  transform-origin: left;
  animation: grow 1.6s var(--ease-out) both;
}

@keyframes grow { from { transform: scaleX(0); } }

/* ==========================================================================
   15. 页面头（内页统一）
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) clamp(2rem, 1.4rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 100% at 15% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 15% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}

.page-hero__inner { position: relative; display: grid; gap: var(--s-5); max-width: 68ch; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.page-hero p { font-size: var(--fs-lede); color: var(--text-2); line-height: 1.7; }

/* 面包屑 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--text-3); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs li { list-style: none; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--s-2); color: var(--border-strong); }

/* ==========================================================================
   16. 滚动进场
   注意 .has-js 前缀：只有 JS 可用时才把元素预先隐藏。
   否则禁用 JS 的用户会看到一片空白——内容其实在，只是透明。
   .has-js 由每个页面 <head> 里的内联脚本添加，早于首次绘制，因此不会闪。
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   17. 列表卡片（新闻 / 招聘）
   ========================================================================== */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--border); }

.post-item {
  display: grid;
  gap: var(--s-3) var(--s-8);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur-2) var(--ease);
}

.post-item:hover { background: var(--bg-sub); }

.post-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.post-item__title {
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  transition: color var(--dur-2) var(--ease);
}

.post-item:hover .post-item__title { color: var(--accent-strong); }

.post-item__excerpt { display: block; margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-sm); max-width: 68ch; }

.post-item__arrow {
  align-self: center;
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease);
}

.post-item:hover .post-item__arrow { transform: translateX(5px); color: var(--accent); }

@media (min-width: 800px) {
  .post-item { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .post-item__arrow { align-self: start; margin-top: 0.4rem; }
  .post-item--with-date { grid-template-columns: 150px minmax(0, 1fr) auto; }
}

/* 空状态 */
.empty-state {
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) var(--s-6);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-2);
  display: grid;
  gap: var(--s-3);
  justify-items: center;
}

/* ==========================================================================
   18. 提示条
   ========================================================================== */
.notice {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-inline-start: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--bg-sub);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.notice svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }

/* ==========================================================================
   19. 分隔符（H 形品牌符号）
   ========================================================================== */
.h-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--border-strong);
}

.h-divider::before,
.h-divider::after { content: ""; height: 1px; background: currentColor; flex: 1; opacity: 0.7; }

.h-gradient { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
