/* ==========================================================================
   Flybit 飞比特 - 奶油色机器人装配工坊样式系统
   Color Palette:
   - Background: #FFF8EC (Warm Cream)
   - Apricot: #F4C7AB
   - Mint: #C6E4D6
   - Light Blue: #D3E5F2
   - Text: #34444A
   - Border & Ink: #485960
   - Signal Active: #28A779
   ========================================================================== */

:root {
  --bg-workshop: #FFF8EC;
  --bg-paper: #FFFDF9;
  --bg-card: #FAF2E4;
  --bg-tray: #F5EAD6;
  --color-apricot: #F4C7AB;
  --color-apricot-dark: #E2A782;
  --color-mint: #C6E4D6;
  --color-mint-dark: #8EC4B0;
  --color-blue: #D3E5F2;
  --color-blue-dark: #97BFDE;
  --color-text: #34444A;
  --color-text-muted: #64747B;
  --color-border: #485960;
  --color-border-light: rgba(72, 89, 96, 0.22);
  --color-active: #23946B;
  --color-active-glow: rgba(35, 148, 107, 0.45);
  --color-screw: #D6BC9C;
  --color-screw-shadow: #A38563;

  --font-serif: Georgia, "Songti SC", "SimSun", "STSong", "Noto Serif CJK SC", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --shadow-soft: 0 4px 18px rgba(52, 68, 74, 0.07);
  --shadow-tray: 0 8px 24px rgba(52, 68, 74, 0.1);
  --shadow-lift: 0 12px 30px rgba(52, 68, 74, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1220px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-workshop);
  color: var(--color-text);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--bg-workshop);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
  /* 工坊图纸精细点阵背景 */
  background-image: 
    radial-gradient(circle, rgba(72, 89, 96, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 链接与按钮默认 */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

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

/* 辅助容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 工坊标签与印章 */
.workshop-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: var(--bg-paper);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(52, 68, 74, 0.05);
}

.workshop-tag.apricot {
  background-color: var(--color-apricot);
  border-color: var(--color-apricot-dark);
}

.workshop-tag.mint {
  background-color: var(--color-mint);
  border-color: var(--color-mint-dark);
}

.workshop-tag.blue {
  background-color: var(--color-blue);
  border-color: var(--color-blue-dark);
}

/* 工坊印章 */
.workshop-stamp {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: bold;
  color: #B44A3F;
  border: 1.5px dashed #B44A3F;
  border-radius: var(--radius-sm);
  transform: rotate(-3deg);
  letter-spacing: 0.1em;
  background: rgba(244, 199, 171, 0.25);
}

/* 螺丝装饰 */
.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBF6EE, var(--color-screw));
  border: 1px solid var(--color-screw-shadow);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  z-index: 2;
}

.screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--color-screw-shadow);
  transform: translateY(-50%) rotate(42deg);
}

.screw-tl { top: 8px; left: 8px; }
.screw-tr { top: 8px; right: 8px; }
.screw-bl { bottom: 8px; left: 8px; }
.screw-br { bottom: 8px; right: 8px; }

/* 标题规范 - 细致工坊说明书感 */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-header .section-prefix {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.section-header .section-prefix::before,
.section-header .section-prefix::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-border-light);
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: 2px 2px 0 var(--color-border);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--color-border);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--color-border);
}

.btn-primary {
  background-color: var(--color-apricot);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: #F8D3BD;
}

.btn-mint {
  background-color: var(--color-mint);
  color: var(--color-text);
}

.btn-mint:hover {
  background-color: #D6ECE2;
}

.btn-outline {
  background-color: var(--bg-paper);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  box-shadow: 2px 2px 0 rgba(72, 89, 96, 0.15);
}

.btn-outline:hover {
  border-color: var(--color-border);
  box-shadow: 2px 2px 0 var(--color-border);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* ==========================================================================
   导航条 (顶部细长导航)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 6px rgba(52, 68, 74, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.brand-logo svg {
  width: 28px;
  height: 28px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  background: var(--color-mint);
  border: 1px solid var(--color-mint-dark);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  margin-left: 0.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover {
  color: #B44A3F;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-apricot);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 移动端菜单开关 */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   首屏 (HERO)
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: #9A4325;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background-color: rgba(244, 199, 171, 0.45);
  z-index: -1;
  border-radius: 3px;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  width: 100%;
  margin-bottom: 2rem;
}

.spec-box {
  background: var(--bg-paper);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(52, 68, 74, 0.04);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0.2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

/* ==========================================================================
   机器人游戏工作台 (首屏右侧)
   ========================================================================== */
.workbench-card {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--color-border);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-border-light);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.workbench-title-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.workbench-title {
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.workbench-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.2rem;
  align-items: center;
}

/* 机器人原创 SVG 绘制容器 */
.robot-display-box {
  background: var(--bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.robot-svg-wrap {
  width: 110px;
  height: 140px;
  position: relative;
}

/* 机器人动画状态 */
.robot-eyes {
  transition: fill 0.3s ease, filter 0.3s ease;
  fill: #6C7A80;
}

.robot-eyes.active {
  fill: #22C55E;
  filter: drop-shadow(0 0 6px #22C55E);
}

.robot-arm-right {
  transform-origin: 75px 65px;
  transition: transform 0.3s ease;
}

.robot-arm-right.waving {
  animation: robotWave 1s ease-in-out infinite alternate;
}

@keyframes robotWave {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-35deg); }
  100% { transform: rotate(15deg); }
}

.robot-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  border: 1px solid var(--color-border-light);
  margin-top: 0.6rem;
  color: var(--color-text-muted);
}

.robot-status-pill.active {
  background: var(--color-mint);
  border-color: var(--color-mint-dark);
  color: #14532D;
  font-weight: bold;
}

/* 5x5 拼图网格 */
.puzzle-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.puzzle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.puzzle-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
}

.puzzle-board-wrap {
  position: relative;
  padding: 8px;
  background: #EFE4D0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.06);
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  grid-template-rows: repeat(5, 46px);
  gap: 4px;
}

/* 单个管道方块 */
.puzzle-tile {
  width: 46px;
  height: 46px;
  background: var(--bg-paper);
  border: 1px solid rgba(72, 89, 96, 0.35);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  outline: none;
}

.puzzle-tile:hover {
  background: #FFFDF5;
  box-shadow: 0 0 0 2px var(--color-apricot);
}

.puzzle-tile:focus-visible {
  box-shadow: 0 0 0 2px var(--color-text);
  z-index: 5;
}

.puzzle-tile.energized {
  background: #F1FBF6;
  border-color: var(--color-active);
}

.tile-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 管道连线样式 */
.pipe-bg {
  stroke: #A8B5B9;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pipe-fg {
  stroke: #D2DCDF;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.puzzle-tile.energized .pipe-bg {
  stroke: var(--color-active);
}

.puzzle-tile.energized .pipe-fg {
  stroke: #A7F3D0;
}

/* 电源与终端指示 */
.power-in-badge {
  position: absolute;
  top: 14px;
  left: -22px;
  font-size: 0.65rem;
  background: #F4C7AB;
  border: 1px solid var(--color-border);
  padding: 1px 3px;
  border-radius: 2px;
  writing-mode: vertical-rl;
  font-weight: bold;
}

.robot-out-badge {
  position: absolute;
  bottom: 14px;
  right: -22px;
  font-size: 0.65rem;
  background: #C6E4D6;
  border: 1px solid var(--color-border);
  padding: 1px 3px;
  border-radius: 2px;
  writing-mode: vertical-rl;
  font-weight: bold;
}

/* 胜利提示浮层 */
.game-win-banner {
  display: none;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  background: #E8F7EE;
  border: 1px solid #34D399;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.88rem;
  color: #065F46;
  font-weight: 600;
  animation: popIn 0.3s ease-out;
}

.game-win-banner.active {
  display: block;
}

@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.game-disclaimer {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   横向装配步骤 (首屏下方)
   ========================================================================== */
.assembly-steps-section {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px dashed var(--color-border-light);
  border-bottom: 1px dashed var(--color-border-light);
  background: rgba(255, 255, 255, 0.35);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-paper);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.2rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(52, 68, 74, 0.05);
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #B44A3F;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   产品优势 (错位说明书版式)
   ========================================================================== */
.advantages-section {
  padding: 5rem 0;
}

.advantages-blueprint {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  position: relative;
}

.manual-sheet {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2.2rem 2rem;
  box-shadow: 4px 4px 0 var(--color-border);
  position: relative;
}

/* 错位排布：偶数卡片下移 */
.manual-sheet:nth-child(even) {
  transform: translateY(2rem);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.sheet-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.sheet-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.sheet-desc {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.sheet-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 1rem;
}

.sheet-specs-table td {
  padding: 0.45rem 0;
  border-top: 1px dashed var(--color-border-light);
}

.sheet-specs-table td:first-child {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  width: 45%;
}

.sheet-specs-table td:last-child {
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

/* ==========================================================================
   节点区域 (电路走线图)
   ========================================================================== */
.nodes-section {
  padding: 5rem 0;
  background: rgba(245, 234, 214, 0.4);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.circuit-board-container {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--color-border);
  padding: 2.2rem 2rem;
  position: relative;
}

.circuit-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.nodes-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.node-chip {
  background: var(--bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  position: relative;
  transition: all 0.2s ease;
}

.node-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
  box-shadow: 0 4px 12px rgba(52, 68, 74, 0.08);
}

.chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.chip-flag {
  font-size: 1.1rem;
}

.chip-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.chip-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.chip-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-border-light);
  padding-top: 0.4rem;
  margin-top: 0.6rem;
}

.latency-val {
  color: var(--color-active);
  font-weight: bold;
}

/* ==========================================================================
   AI 与流媒体 (两组工具抽屉)
   ========================================================================== */
.drawers-section {
  padding: 5rem 0;
}

.drawers-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tool-drawer {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--color-border);
  overflow: hidden;
  position: relative;
}

.drawer-handle {
  background: #EFE4D0;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.handle-grip {
  display: flex;
  gap: 4px;
}

.handle-grip span {
  width: 32px;
  height: 4px;
  background: var(--color-screw-shadow);
  border-radius: 2px;
}

.drawer-content {
  padding: 1.8rem;
}

.drawer-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.drawer-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.app-item {
  background: var(--bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.6rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.app-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   五张高低错落的零件托盘 (套餐区域)
   ========================================================================== */
.pricing-section {
  padding: 5rem 0;
  background: rgba(245, 234, 214, 0.4);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.trays-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.part-tray {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--color-border);
  padding: 1.6rem 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

/* 高低错落托盘层次排布 */
.part-tray:nth-child(1) { transform: translateY(1.2rem); }
.part-tray:nth-child(2) { transform: translateY(0.4rem); }
.part-tray:nth-child(3) { transform: translateY(-0.8rem); z-index: 3; } /* 推荐档 */
.part-tray:nth-child(4) { transform: translateY(0.2rem); }
.part-tray:nth-child(5) { transform: translateY(1rem); }

.part-tray:hover {
  transform: translateY(-1.2rem);
  box-shadow: 6px 6px 0 var(--color-border);
}

.part-tray.recommended {
  border: 2px solid var(--color-border);
  background: #FFFBF2;
  box-shadow: 5px 5px 0 var(--color-border);
}

.tray-badge-wrap {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.tray-header {
  text-align: center;
  border-bottom: 1px dashed var(--color-border-light);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.tray-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.tray-name {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.6rem;
}

.tray-price-box {
  margin: 0.8rem 0 0.2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.tray-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: #B44A3F;
}

.tray-price {
  font-size: 1.9rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
}

.tray-price-period {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.tray-sub-price {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin: 0.2rem 0 0.5rem;
}

.tray-feature-list {
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tray-feature-list li {
  padding: 0.45rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px dotted rgba(72, 89, 96, 0.15);
  color: var(--color-text);
}

.tray-feature-list li::before {
  content: "✓";
  color: var(--color-active);
  font-weight: bold;
}

.tray-action {
  width: 100%;
  margin-top: auto;
}

/* ==========================================================================
   工坊笔记与 SEO 文章列表
   ========================================================================== */
.articles-section {
  padding: 5rem 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.note-card {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--color-border);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.note-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-border);
}

.note-thumbnail {
  width: 100%;
  height: 110px;
  background: var(--bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.note-serial {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #B44A3F;
}

.note-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.note-title {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.note-title a:hover {
  color: #B44A3F;
}

.note-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  border-top: 1px dashed var(--color-border-light);
  padding-top: 0.6rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   评价与客户反馈
   ========================================================================== */
.reviews-section {
  padding: 4.5rem 0;
  background: rgba(245, 234, 214, 0.4);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.review-card {
  background: var(--bg-paper);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.4rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(52, 68, 74, 0.05);
}

.review-stars {
  color: #F59E0B;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px dashed var(--color-border-light);
  padding-top: 0.8rem;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  border: 1px solid var(--color-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.reviewer-role {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ 折叠面板
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--color-border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.4rem;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.2rem;
}

/* ==========================================================================
   简洁 Footer
   ========================================================================== */
.site-footer {
  background: #EFE4D0;
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dashed rgba(72, 89, 96, 0.25);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: #B44A3F;
}

.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-partners a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(72, 89, 96, 0.3);
}

.footer-partners a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

/* ==========================================================================
   独立文章详情页与关于页面公共样式
   ========================================================================== */
.article-page {
  padding: 3.5rem 0 5rem;
}

.article-header {
  max-width: 860px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.article-h1 {
  font-size: 2.35rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.article-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.article-body-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--color-border);
  padding: 3rem 2.8rem;
  position: relative;
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--color-text);
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-border-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.8rem;
}

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

.article-content blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--color-apricot-dark);
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text);
}

.article-content pre {
  background: #2D3748;
  color: #EDF2F7;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin: 1.5rem 0;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--color-border-light);
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
}

.article-content th, .article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
}

.article-content th {
  background: var(--bg-card);
  font-weight: 700;
  font-family: var(--font-serif);
}

.article-content tr:nth-child(even) td {
  background: rgba(250, 242, 228, 0.4);
}

/* ==========================================================================
   响应式断点适配 (375, 390, 430, 768, 1024, 1440px)
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .workbench-card {
    max-width: 580px;
    margin: 0 auto;
  }
  .trays-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .part-tray:nth-child(n) {
    transform: none !important;
  }
  .part-tray:hover {
    transform: translateY(-4px) !important;
  }
  .nodes-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-workshop);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .workbench-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .robot-display-box {
    width: 100%;
    max-width: 260px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .advantages-blueprint {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .manual-sheet:nth-child(even) {
    transform: none;
  }
  .drawers-wrapper {
    grid-template-columns: 1fr;
  }
  .trays-container {
    grid-template-columns: 1fr;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .article-body-container {
    padding: 1.8rem 1.4rem;
  }
  .article-h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-specs {
    grid-template-columns: 1fr;
  }
  .puzzle-grid {
    grid-template-columns: repeat(5, 40px);
    grid-template-rows: repeat(5, 40px);
    gap: 3px;
  }
  .puzzle-tile {
    width: 40px;
    height: 40px;
  }
  .workbench-card {
    padding: 1rem 0.8rem;
  }
}

@media (max-width: 375px) {
  .puzzle-grid {
    grid-template-columns: repeat(5, 36px);
    grid-template-rows: repeat(5, 36px);
    gap: 2px;
  }
  .puzzle-tile {
    width: 36px;
    height: 36px;
  }
}

/* 减弱动画媒体查询偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
