
/* GILTOS v0.8.4 标准演示中心 Refactor */
:root {
  --giltos-blue: #1677ff;
  --giltos-blue-dark: #0958d9;
  --giltos-blue-soft: #e6f4ff;
  --giltos-bg: #f7f8fa;
  --giltos-text: #1d2129;
  --giltos-subtext: #4e5969;
  --giltos-muted: #86909c;
  --giltos-border: #e5e6eb;
  --giltos-card-shadow: 0 10px 30px rgba(22, 119, 255, .08);
}

/* Hide legacy full standard demo bars from individual pages. Demo flow is now centralized in /demo/. */
.giltos-stepbar { display: none !important; }

/* Floating demo entry */
.giltos-demo-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(22,119,255,.22);
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(22, 119, 255, .28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.giltos-demo-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22, 119, 255, .36); }
.giltos-demo-fab .dot { width: 8px; height: 8px; border-radius: 99px; background: #fff; opacity: .9; }

.giltos-demo-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(29,33,41,.18);
  backdrop-filter: blur(2px);
  display: none;
}
.giltos-demo-panel-backdrop.open { display: block; }
.giltos-demo-panel {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 9999;
  width: min(390px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--giltos-border);
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
}
.giltos-demo-panel.open { display: block; }
.giltos-demo-panel-header {
  padding: 18px 20px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  border-bottom: 1px solid var(--giltos-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.giltos-demo-panel-title { margin: 0 0 4px; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--giltos-text); }
.giltos-demo-panel-desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--giltos-subtext); }
.giltos-demo-panel-close {
  border: 0; background: transparent; color: var(--giltos-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px;
}
.giltos-demo-panel-body { padding: 14px; display: grid; gap: 10px; }
.giltos-demo-panel-link {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--giltos-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--giltos-text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.giltos-demo-panel-link:hover { border-color: var(--giltos-blue); background: #f7fbff; transform: translateY(-1px); color: var(--giltos-text); }
.giltos-demo-panel-link strong { display: block; font-size: 14px; margin-bottom: 4px; }
.giltos-demo-panel-link span { display: block; color: var(--giltos-subtext); font-size: 12px; line-height: 1.55; }
.giltos-demo-panel-footer { padding: 0 14px 14px; }
.giltos-demo-panel-primary {
  display: flex; justify-content: center; align-items: center;
  height: 42px;
  width: 100%;
  border-radius: 10px;
  background: var(--giltos-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.giltos-demo-panel-primary:hover { background: var(--giltos-blue-dark); }

/* App project flow should stay compact and product-like */
.project-flow-bar {
  background: #fff !important;
  border: 1px solid var(--giltos-border) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04) !important;
  margin: 0 0 18px !important;
}
.project-flow-label { font-size: 12px !important; font-weight: 800 !important; color: var(--giltos-muted) !important; margin-bottom: 9px !important; }
.project-flow-scroll { display: flex !important; overflow-x: auto !important; gap: 8px !important; padding-bottom: 2px !important; scrollbar-width: thin; }
.project-flow-item {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  border: 1px solid #edf0f5 !important;
  background: #fff !important;
  color: var(--giltos-subtext) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}
.project-flow-item.current, .project-flow-item:hover {
  border-color: var(--giltos-blue) !important;
  background: var(--giltos-blue-soft) !important;
  color: var(--giltos-blue-dark) !important;
}
.project-flow-num {
  width: 19px !important;
  height: 19px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  background: #f0f1f3 !important;
  color: var(--giltos-muted) !important;
  font-size: 11px !important;
}
.project-flow-item.current .project-flow-num, .project-flow-item:hover .project-flow-num { background: var(--giltos-blue) !important; color: #fff !important; }

/* 标准演示中心 page */
.demo-center-hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 54%, #f7f8fa 100%);
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--giltos-border);
}
.demo-center-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 34px; align-items: center; }
.demo-center-eyebrow { display: inline-flex; align-items:center; gap:8px; background: var(--giltos-blue-soft); color: var(--giltos-blue-dark); border: 1px solid rgba(22,119,255,.15); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.demo-center-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; color: var(--giltos-text); margin: 0 0 18px; letter-spacing: -.03em; }
.demo-center-title span { color: var(--giltos-blue); }
.demo-center-subtitle { font-size: 17px; line-height: 1.8; color: var(--giltos-subtext); margin: 0 0 26px; max-width: 720px; }
.demo-center-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-center-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--giltos-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--giltos-card-shadow);
}
.demo-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-metric { padding: 16px; border: 1px solid #edf0f5; border-radius: 14px; background: #fff; }
.demo-metric strong { display:block; color: var(--giltos-blue); font-size: 26px; line-height:1; margin-bottom: 6px; }
.demo-metric span { color: var(--giltos-subtext); font-size: 13px; }
.demo-center-section { padding: 62px 0; }
.demo-center-section.alt { background: var(--giltos-bg); }
.demo-center-section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.demo-center-section-head h2 { font-size: 30px; margin: 0 0 10px; color: var(--giltos-text); }
.demo-center-section-head p { margin: 0; color: var(--giltos-subtext); line-height: 1.75; }
.demo-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo-route-card { background:#fff; border:1px solid var(--giltos-border); border-radius: 18px; padding: 22px; box-shadow: 0 4px 16px rgba(0,0,0,.04); display:flex; flex-direction:column; min-height: 100%; }
.demo-route-badge { align-self:flex-start; padding: 5px 10px; border-radius: 999px; background: var(--giltos-blue-soft); color: var(--giltos-blue-dark); font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.demo-route-card h3 { margin:0 0 10px; font-size: 20px; color:var(--giltos-text); }
.demo-route-card p { color: var(--giltos-subtext); line-height:1.7; margin:0 0 16px; }
.demo-route-list { list-style:none; padding:0; margin:0 0 18px; display:grid; gap:9px; color: var(--giltos-subtext); font-size: 13px; }
.demo-route-list li { display:flex; gap:8px; align-items:flex-start; }
.demo-route-list li:before { content:""; width:6px; height:6px; border-radius:99px; background:var(--giltos-blue); margin-top:7px; flex:0 0 auto; }
.demo-route-card .btn { margin-top:auto; align-self:flex-start; }
.demo-step-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.demo-step-card { background:#fff; border:1px solid var(--giltos-border); border-radius:16px; padding:18px; display:flex; gap:14px; align-items:flex-start; transition: all .18s ease; }
.demo-step-card:hover { border-color: var(--giltos-blue); box-shadow: 0 8px 22px rgba(22,119,255,.09); transform: translateY(-1px); }
.demo-step-index { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--giltos-blue); color:#fff; font-weight:800; flex:0 0 auto; }
.demo-step-content h3 { margin:0 0 5px; font-size:16px; color:var(--giltos-text); }
.demo-step-content p { margin:0 0 10px; color:var(--giltos-subtext); line-height:1.65; font-size:13px; }
.demo-step-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.demo-chip { display:inline-flex; padding:3px 8px; border-radius:999px; font-size:12px; background:#f7f8fa; border:1px solid #edf0f5; color:var(--giltos-subtext); }
.demo-step-card a { font-weight:700; font-size:13px; }
.demo-scenario { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.demo-scenario-item { background:#fff; border:1px solid var(--giltos-border); border-radius:14px; padding:16px; }
.demo-scenario-item small { display:block; color:var(--giltos-muted); margin-bottom:6px; }
.demo-scenario-item strong { color:var(--giltos-text); }
@media (max-width: 980px) { .demo-center-grid, .demo-route-grid, .demo-step-grid, .demo-scenario { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .giltos-demo-fab { right: 14px; bottom: 14px; padding: 10px 13px; }
  .giltos-demo-panel { right: 14px; bottom: 66px; }
  .demo-center-hero { padding: 52px 0 38px; }
  .demo-metric-grid { grid-template-columns: 1fr; }
}
