/* ==========================================================================
   IT-Asset Enterprise Official Portal Stylesheet
   Design System: Institutional B2B Light & Slate (TDesign / Arco Enterprise Style)
   ========================================================================== */

:root {
  --brand-primary: #0052d9;
  --brand-hover: #003cab;
  --brand-light: #e8f3ff;
  --slate-950: #0a0f1d;
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --border-subtle: #e5e7eb;
  --border-strong: #cbd5e1;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 顶部导航固定栏 */
.enterprise-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

/* 首屏浅灰微网格底纹（真实B2B官网风格） */
.hero-surface {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 主按钮：沉稳企业蓝 */
.btn-corp-primary {
  background-color: #0052d9;
  color: #ffffff;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-corp-primary:hover {
  background-color: #003cab;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.22);
}

.btn-corp-secondary {
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  transition: all 0.18s ease;
}

.btn-corp-secondary:hover {
  border-color: #0052d9;
  color: #0052d9;
  background-color: #f8fafc;
}

/* 企业卡片 */
.corp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 旗舰深色企业卡片（如私有化买断版） */
.corp-card.bg-slate-900,
.corp-card-dark {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
}

.corp-card.bg-slate-900:hover,
.corp-card-dark:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.45);
}

.corp-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
}

/* 核心产品工作台左侧菜单激活态 */
.workbench-tab {
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
}

.workbench-tab:hover {
  background-color: #f8fafc;
}

.workbench-tab-active {
  background-color: #f0f6ff !important;
  border-left: 3px solid #0052d9;
}

.workbench-tab-active .tab-title {
  color: #0052d9;
  font-weight: 600;
}

/* 文档中心目录激活态 */
.doc-menu-item {
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.doc-menu-active {
  border-left-color: #0052d9;
  background-color: #f0f6ff;
  color: #0052d9 !important;
  font-weight: 600;
}

/* 真实后台系统仿真窗口阴影 */
.ui-window-frame {
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  overflow: hidden;
  background: #f0f2f5;
}

/* 代码块与终端样式 */
.code-pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.65;
}

/* 表格斑马纹与细边框 */
.enterprise-table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.enterprise-table td {
  border-bottom: 1px solid #f1f5f9;
}

.enterprise-table tr:hover td {
  background-color: #f8fafc;
}


/* ==========================================================================
   转化优化组件
   ========================================================================== */

/* FAQ 折叠 */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.faq-open .faq-answer {
  max-height: 320px;
}
.faq-item .faq-icon {
  transition: transform 0.2s ease;
}
.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
}
.faq-item.faq-open {
  border-color: #93c5fd;
}

/* ROI 滑块 */
input[type="range"].roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
}
input[type="range"].roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0052d9;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #0052d9;
  cursor: pointer;
}
input[type="range"].roi-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0052d9;
  border: 3px solid #ffffff;
  cursor: pointer;
}

/* 右侧悬浮咨询栏 */
.float-contact a,
.float-contact button {
  transition: background-color 0.15s ease, color 0.15s ease;
}
.float-contact .float-tip {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.18s ease;
}
.float-contact .float-item:hover .float-tip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* 前后对比表 */
.compare-row:nth-child(even) {
  background-color: #f8fafc;
}
