/* ============================================
   操作说明页 — 白色打印友好主题
   ============================================ */

:root {
  --g-bg: #ffffff;
  --g-bg-alt: #f7f8fc;
  --g-text: #1a1d24;
  --g-text2: #4b5563;
  --g-text3: #9ca3af;
  --g-accent: #2563eb;
  --g-accent2: #3b82f6;
  --g-accent-bg: #eff6ff;
  --g-purple: #7c3aed;
  --g-purple-bg: #f5f3ff;
  --g-green: #16a34a;
  --g-green-bg: #f0fdf4;
  --g-orange: #d97706;
  --g-orange-bg: #fffbeb;
  --g-border: #e5e7eb;
  --g-border2: #d1d5db;
  --g-radius: 16px;
  --g-radius-sm: 10px;
  --g-radius-xs: 6px;
  --g-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --g-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --g-shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --g-font: 'Noto Sans SC', system-ui, sans-serif;
  --g-mono: 'Orbitron', monospace;
  --g-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: var(--g-font);
  background: var(--g-bg);
  color: var(--g-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--g-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navigation ---- */
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--g-border);
  padding: 0 24px;
}

.guide-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.guide-nav-back {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--g-text2);
}

.guide-nav-back:hover {
  color: var(--g-accent);
  text-decoration: none;
}

.guide-nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--g-text);
}

.guide-nav-cta {
  padding: 6px 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff !important;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--g-transition);
}

.guide-nav-cta:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- Container ---- */
.guide-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-main {
  padding-bottom: 0;
}

/* ---- Hero ---- */
.guide-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

.guide-hero-badge {
  display: inline-block;
  font-family: var(--g-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-accent);
  padding: 4px 16px;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  background: #eff6ff;
  margin-bottom: 20px;
}

.guide-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--g-text);
  margin-bottom: 20px;
}

.guide-hero-desc {
  font-size: 1.05rem;
  color: var(--g-text2);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto 40px;
}

.guide-hero-img-wrap {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--g-radius);
  overflow: hidden;
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow-lg);
  background: #fff;
}

.guide-hero-img {
  width: 100%;
  display: block;
}

/* ---- Sections ---- */
.guide-section {
  padding: 72px 0;
}

.guide-section--alt {
  background: var(--g-bg-alt);
}

/* ---- Step Header ---- */
.guide-step-header {
  text-align: center;
  margin-bottom: 48px;
}

.guide-step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--g-accent);
  background: var(--g-accent-bg);
  border: 1px solid #bfdbfe;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.guide-step-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--g-text);
  margin-bottom: 8px;
}

.guide-step-desc {
  font-size: 1rem;
  color: var(--g-text2);
}

/* ---- Table of Contents ---- */
.guide-toc {
  text-align: center;
}

.guide-toc-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-toc-desc {
  color: var(--g-text2);
  margin-bottom: 32px;
}

.guide-toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-toc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  transition: var(--g-transition);
  box-shadow: var(--g-shadow);
  text-decoration: none !important;
}

.guide-toc-card:hover {
  border-color: var(--g-accent);
  transform: translateY(-4px);
  box-shadow: var(--g-shadow-md);
}

.guide-toc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.guide-toc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--g-text);
  margin-bottom: 4px;
}

.guide-toc-sub {
  font-size: 0.8rem;
  color: var(--g-text3);
}

/* ---- Two Column ---- */
.guide-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ---- Info Cards ---- */
.guide-info-card {
  padding: 36px 32px;
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border);
  background: var(--g-bg);
  box-shadow: var(--g-shadow);
  transition: var(--g-transition);
}

.guide-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--g-shadow-md);
}

.guide-info-card--blue {
  border-left: 4px solid var(--g-accent);
}

.guide-info-card--purple {
  border-left: 4px solid var(--g-purple);
}

.guide-info-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.guide-info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.guide-info-card p {
  font-size: 0.95rem;
  color: var(--g-text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-info-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---- Tips ---- */
.guide-tip {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--g-accent-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--g-radius-sm);
  margin-top: 32px;
}

.guide-tip--success {
  background: var(--g-green-bg);
  border-color: #bbf7d0;
}

.guide-tip--warning {
  background: var(--g-orange-bg);
  border-color: #fde68a;
}

.guide-tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.guide-tip-text {
  font-size: 0.92rem;
  color: var(--g-text2);
  line-height: 1.7;
}

.guide-tip-text strong {
  color: var(--g-text);
}

/* ---- Flow Steps ---- */
.guide-flow {
  max-width: 680px;
  margin: 0 auto;
}

.guide-flow-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--g-border);
}

.guide-flow-item:last-child {
  border-bottom: none;
}

.guide-flow-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--g-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.guide-flow-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-flow-content p {
  font-size: 0.92rem;
  color: var(--g-text2);
  line-height: 1.7;
}

/* ---- Layout Diagram ---- */
.guide-layout-diagram {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  border: 2px solid var(--g-border);
  border-radius: var(--g-radius);
  overflow: hidden;
}

.guide-layout-left {
  padding: 32px;
  background: var(--g-bg);
  border-right: 2px dashed var(--g-border);
}

.guide-layout-right {
  padding: 32px;
  background: var(--g-bg-alt);
}

.guide-layout-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--g-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--g-accent-bg);
}

.guide-layout-desc p {
  font-size: 0.9rem;
  color: var(--g-text2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-layout-desc ul {
  list-style: none;
  padding: 0;
}

.guide-layout-desc li {
  font-size: 0.88rem;
  color: var(--g-text2);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.6;
}

.guide-layout-desc li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--g-accent);
  font-weight: 700;
}

.guide-layout-desc li strong {
  color: var(--g-text);
}

/* ---- Visual Steps ---- */
.guide-steps-visual {
  max-width: 620px;
  margin: 0 auto;
}

.guide-vstep {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  box-shadow: var(--g-shadow);
}

.guide-vstep-circle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.guide-vstep-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-vstep-body p {
  font-size: 0.9rem;
  color: var(--g-text2);
  line-height: 1.7;
}

.guide-vstep-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--g-accent);
  padding: 8px 0;
  font-weight: 700;
}

/* ---- Legend (AI result explanation) ---- */
.guide-legend {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.guide-legend-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}

.guide-legend-color {
  flex-shrink: 0;
  width: 16px;
  height: 48px;
  border-radius: 8px;
}

.guide-legend-box {
  flex-shrink: 0;
  width: 100px;
  height: 64px;
  border: 2.5px solid;
  border-radius: 4px;
  position: relative;
  background: rgba(239, 68, 68, 0.08);
}

.guide-legend-label {
  position: absolute;
  top: -12px;
  left: -1px;
  font-size: 0.65rem;
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.guide-legend-sample {
  flex-shrink: 0;
  width: 100px;
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-arm-line {
  width: 60px;
  height: 3px;
  background: #a78bfa;
  border-radius: 2px;
  transform: rotate(-25deg);
}

.guide-arm-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2px solid #fff;
  left: 16px;
  top: 20px;
}

.guide-arm-dot--mid {
  left: 44px;
  top: 28px;
  background: #a78bfa;
}

.guide-arm-dot--end {
  left: 72px;
  top: 36px;
  background: #f59e0b;
  width: 12px;
  height: 12px;
}

.guide-grip-cross {
  width: 32px;
  height: 32px;
  border: 2px dashed #14b8a6;
  border-radius: 50%;
  position: relative;
}

.guide-grip-cross::before,
.guide-grip-cross::after {
  content: '';
  position: absolute;
  background: rgba(20, 184, 166, 0.5);
}

.guide-grip-cross::before {
  width: 40px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.guide-grip-cross::after {
  width: 2px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.guide-legend-text {
  flex: 1;
}

.guide-legend-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-legend-text p {
  font-size: 0.9rem;
  color: var(--g-text2);
  line-height: 1.7;
}

/* ---- Result Explain ---- */
.guide-result-explain {
  margin-top: 48px;
  padding: 32px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}

.guide-result-explain h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-result-explain > p {
  font-size: 0.92rem;
  color: var(--g-text2);
  margin-bottom: 16px;
  line-height: 1.7;
}

.guide-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--g-bg-alt);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-xs);
}

.guide-result-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.guide-result-meta {
  font-size: 0.78rem;
  color: var(--g-text3);
}

/* ---- Arm Explanation ---- */
.guide-arm-explain, .guide-gripper-explain {
  padding: 32px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}

.guide-arm-explain h3, .guide-gripper-explain h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-arm-explain > p, .guide-gripper-explain > p {
  font-size: 0.92rem;
  color: var(--g-text2);
  margin-bottom: 20px;
}

.guide-joint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-joint-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--g-bg-alt);
  border-radius: var(--g-radius-xs);
  border: 1px solid var(--g-border);
}

.guide-joint-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  background: var(--g-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 4px;
  margin-top: 2px;
}

.guide-joint-item strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.guide-joint-item p {
  font-size: 0.82rem;
  color: var(--g-text3);
  line-height: 1.5;
  margin: 0;
}

/* ---- Gripper Demo ---- */
.guide-gripper-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  padding: 24px;
  background: var(--g-bg-alt);
  border-radius: var(--g-radius-sm);
  border: 1px solid var(--g-border);
}

.guide-gripper-state {
  text-align: center;
}

.guide-gripper-state span {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
}

.guide-gripper-state p {
  font-size: 0.78rem;
  color: var(--g-text3);
  margin-top: 4px;
}

.guide-gripper-vis {
  width: 56px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.guide-gj {
  width: 8px;
  height: 30px;
  background: var(--g-text2);
  border-radius: 3px;
  transition: var(--g-transition);
}

.guide-gj-l {
  transform: translateX(-8px) rotate(-8deg);
  transform-origin: top center;
}

.guide-gj-r {
  transform: translateX(8px) rotate(8deg);
  transform-origin: top center;
}

.guide-gripper-vis--closed .guide-gj-l {
  transform: translateX(-2px) rotate(-2deg);
}

.guide-gripper-vis--closed .guide-gj-r {
  transform: translateX(2px) rotate(2deg);
}

.guide-gripper-arrow {
  font-size: 1.5rem;
  color: var(--g-accent);
  font-weight: 700;
}

.guide-use-steps {
  margin-top: 20px;
}

.guide-use-steps h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-use-steps ol {
  padding-left: 20px;
}

.guide-use-steps li {
  font-size: 0.88rem;
  color: var(--g-text2);
  line-height: 1.8;
  padding: 2px 0;
}

.guide-use-steps li strong {
  color: var(--g-text);
}

/* ---- FAQ ---- */
.guide-faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-faq {
  padding: 24px 28px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  box-shadow: var(--g-shadow);
}

.guide-faq h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g-accent);
  margin-bottom: 8px;
}

.guide-faq p {
  font-size: 0.9rem;
  color: var(--g-text2);
  line-height: 1.8;
}

/* ---- Summary ---- */
.guide-summary {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--g-radius);
}

.guide-summary h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.guide-summary > p {
  font-size: 1rem;
  color: var(--g-text2);
  margin-bottom: 32px;
}

.guide-summary-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.guide-summary-step {
  padding: 24px 28px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  box-shadow: var(--g-shadow);
  min-width: 160px;
}

.guide-summary-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.guide-summary-step p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--g-text);
}

.guide-summary-arrow {
  font-size: 1.5rem;
  color: var(--g-accent);
  font-weight: 700;
}

.guide-start-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--g-transition);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.guide-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

/* ---- Footer ---- */
.guide-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--g-border);
  background: var(--g-bg-alt);
}

.guide-footer p {
  font-size: 0.85rem;
  color: var(--g-text3);
  margin-bottom: 4px;
}

/* ---- Print ---- */
@media print {
  .guide-nav {
    position: static;
    background: #fff;
  }

  .guide-nav-cta {
    display: none;
  }

  .guide-hero {
    background: #fff !important;
  }

  .guide-section, .guide-section--alt {
    background: #fff !important;
  }

  .guide-summary {
    background: #fff !important;
    border-color: #ccc;
  }

  .guide-toc-card, .guide-info-card, .guide-vstep,
  .guide-faq, .guide-legend-item, .guide-result-explain,
  .guide-arm-explain, .guide-gripper-explain, .guide-summary-step {
    box-shadow: none !important;
    border-color: #ccc !important;
  }

  .guide-footer {
    background: #fff !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .guide-toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-two-col {
    grid-template-columns: 1fr;
  }

  .guide-layout-diagram {
    grid-template-columns: 1fr;
  }

  .guide-layout-left {
    border-right: none;
    border-bottom: 2px dashed var(--g-border);
  }

  .guide-legend-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-summary-steps {
    flex-direction: column;
    gap: 8px;
  }

  .guide-summary-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  .guide-toc-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    padding: 60px 0 40px;
  }

  .guide-section {
    padding: 48px 0;
  }

  .guide-nav-title {
    display: none;
  }

  .guide-gripper-demo {
    flex-direction: column;
    gap: 12px;
  }

  .guide-gripper-arrow {
    transform: rotate(90deg);
  }
}
