/* ===== 核心功能展示（参考小工单 Tab + Mockup） ===== */
.fs-section {
  padding: 4.5rem 0 5rem;
  background: #fff;
}

.fs-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.fs-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e8eaed;
}

.fs-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.fs-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  min-width: max-content;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fs-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.fs-tab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-tab-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fs-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.5rem);
  height: 3px;
  background: #10b981;
  border-radius: 2px 2px 0 0;
  transition: transform 0.25s ease;
}

.fs-tab:hover {
  color: #6b7280;
}

.fs-tab.active {
  color: #10b981;
}

.fs-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.fs-panels {
  max-width: none;
  margin: 0;
  padding: 0;
}

.fs-viewport {
  position: relative;
  margin-top: 0.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  transition: min-height 0.25s ease;
}

.fs-section .fs-viewport .fs-panel[hidden] {
  display: none !important;
}

.fs-section .fs-viewport .fs-panel {
  display: none !important;
}

.fs-section .fs-viewport .fs-panel.active {
  display: block !important;
  animation: fsFadeIn 0.35s ease;
}

.fs-panel {
  display: none;
}

.fs-panel.active {
  display: block;
  animation: fsFadeIn 0.35s ease;
}

.fs-panel-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.fs-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fs-pane {
  display: none;
}

.fs-pane.active {
  display: block;
  animation: fsFadeIn 0.35s ease;
}

@keyframes fsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fs-content h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.75rem;
}

.fs-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fs-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4b5563;
}

.fs-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: #10b981;
}

.fs-check svg {
  width: 18px;
  height: 18px;
}

/* Mockup 容器 */
.fs-visual {
  position: relative;
  min-height: 340px;
}

.fs-mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

.fs-desktop {
  background: #eef0f3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.fs-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #e2e5ea;
}

.fs-dots {
  display: flex;
  gap: 4px;
}

.fs-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4c9d2;
}

.fs-dots span:nth-child(1) { background: #ff5f57; }
.fs-dots span:nth-child(2) { background: #febc2e; }
.fs-dots span:nth-child(3) { background: #28c840; }

.fs-url {
  flex: 1;
  height: 22px;
  background: #fff;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.fs-app {
  display: flex;
  min-height: 260px;
  background: #fff;
}

.fs-sidebar {
  width: 52px;
  background: #1e293b;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.fs-sidebar-item {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.fs-sidebar-item.active {
  background: #10b981;
}

.fs-main {
  flex: 1;
  padding: 0.75rem;
  overflow: hidden;
  font-size: 9px;
}

.fs-table-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1.4fr 0.6fr;
  gap: 4px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.fs-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1.4fr 0.6fr;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  color: #334155;
}

.fs-progress {
  display: flex;
  gap: 3px;
  align-items: center;
}

.fs-progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
}

.fs-progress-dot.done {
  background: #10b981;
  border-color: #10b981;
}

.fs-progress-dot.half {
  background: linear-gradient(90deg, #10b981 50%, #fff 50%);
  border-color: #10b981;
}

.fs-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 600;
}

.fs-tag.green { background: #d1fae5; color: #059669; }
.fs-tag.blue { background: #dbeafe; color: #2563eb; }
.fs-tag.orange { background: #ffedd5; color: #ea580c; }
.fs-tag.red { background: #fee2e2; color: #dc2626; }

.fs-cols-5 .fs-table-head,
.fs-cols-5 .fs-table-row {
  grid-template-columns: 1fr 1.1fr 0.7fr 0.8fr 0.7fr;
}

.fs-cols-salary .fs-table-head,
.fs-cols-salary .fs-table-row {
  grid-template-columns: 0.9fr 1fr 0.7fr 0.6fr 0.8fr;
}

.fs-cols-reconcile .fs-table-head,
.fs-cols-reconcile .fs-table-row {
  grid-template-columns: 1fr 0.8fr 0.8fr 0.7fr 0.7fr;
}

/* 每日核算仪表盘 */
.fs-main-dash {
  padding: 10px !important;
}

.fs-dash-title {
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.fs-dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.fs-dash-card {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}

.fs-dash-label {
  display: block;
  font-size: 7px;
  color: #64748b;
  margin-bottom: 2px;
}

.fs-dash-val {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.fs-dash-val.green { color: #059669; }

.fs-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 8px 4px 0;
  background: #f8fafc;
  border-radius: 6px;
}

.fs-bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 3px 3px 0 0;
  min-height: 8px;
}

.fs-bar.active {
  background: #10b981;
}

/* AI 问数对话 */
.fs-main-chat {
  padding: 10px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-chat-q {
  align-self: flex-end;
  max-width: 85%;
  background: #ecfdf5;
  color: #065f46;
  padding: 8px 10px;
  border-radius: 10px 10px 2px 10px;
  font-size: 8px;
  line-height: 1.5;
}

.fs-chat-a {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  font-size: 8px;
  line-height: 1.5;
  color: #475569;
}

.fs-chat-a strong {
  display: block;
  color: #1e293b;
  margin-bottom: 4px;
  font-size: 9px;
}

.fs-chat-a em {
  font-style: normal;
  color: #059669;
  font-weight: 600;
}

.fs-chat-a p { margin: 0 0 3px; }

.fs-chat-input {
  margin-top: auto;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 7px;
  color: #94a3b8;
}

/* AI 录单表单 */
.fs-main-form {
  padding: 10px !important;
}

.fs-form-title {
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 10px;
}

.fs-form-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 8px;
}

.fs-form-row label {
  color: #64748b;
  flex-shrink: 0;
  margin-right: 8px;
}

.fs-form-row span { color: #1e293b; text-align: right; }
.fs-form-row .muted { color: #94a3b8; }

.fs-form-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.fs-btn-outline,
.fs-btn-primary {
  flex: 1;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 600;
}

.fs-btn-outline {
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.fs-btn-primary {
  background: #10b981;
  color: #fff;
}

.fs-phone-stat {
  text-align: center;
  padding: 10px 8px;
  background: #f0fdf4;
  border-bottom: 1px solid #f1f5f9;
}

.fs-phone-stat-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}

.fs-phone-stat span:last-child {
  font-size: 7px;
  color: #64748b;
}

.fs-phone-card.warn {
  background: #fff7ed;
}

.fs-phone-bubble {
  margin: 6px 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 7px;
  line-height: 1.4;
  max-width: 90%;
}

.fs-phone-bubble.user {
  background: #ecfdf5;
  color: #065f46;
  margin-left: auto;
}

.fs-phone-bubble.ai {
  background: #f1f5f9;
  color: #334155;
}

.fs-phone-mic {
  text-align: center;
  font-size: 24px;
  padding: 12px 0 4px;
}

.fs-phone .fs-phone-fab {
  position: absolute;
  bottom: 28px;
  right: 14px;
}

.fs-phone {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 130px;
  background: #1a1a1a;
  border-radius: 22px;
  padding: 8px 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.fs-phone-notch {
  width: 40px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 0 auto 6px;
}

.fs-phone-screen {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  font-size: 8px;
}

.fs-phone-header {
  padding: 8px;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.fs-phone-card {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.fs-phone-card strong {
  display: block;
  color: #1e293b;
  margin-bottom: 2px;
}

.fs-phone-card span {
  color: #64748b;
  font-size: 7px;
}

.fs-phone-fab {
  position: absolute;
  bottom: 28px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.fs-phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 7px;
}

.fs-phone-nav .active {
  color: #10b981;
}

@media (max-width: 960px) {
  .fs-panel-body,
  .fs-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fs-panel-body .fs-visual,
  .fs-visual {
    order: 2;
    min-height: 300px;
  }

  .fs-panel-body .fs-content,
  .fs-content {
    order: 1;
  }

  .fs-mockup {
    margin: 0 auto;
    max-width: 100%;
  }

  .fs-phone {
    width: 110px;
    right: 0;
  }
}

@media (max-width: 640px) {
  .fs-section {
    padding: 3rem 0;
  }

  .fs-viewport {
    padding: 1.5rem 1rem;
    min-height: 360px;
  }

  .fs-tabs {
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .fs-tab {
    padding: 0.625rem 1.25rem 0.875rem;
    font-size: 0.875rem;
  }

  .fs-panels,
  .fs-body {
    padding: 0 1rem;
  }

  .fs-phone {
    width: 100px;
    bottom: -8px;
  }

  .fs-main {
    font-size: 7px;
  }
}
