/* 芯易驻 · 工作台/下载页皮肤（学 UI 稿布局，不贴整页图） */
:root {
  --skin-radius: 14px;
  --skin-radius-sm: 10px;
  --skin-border: #e8edf2;
  --skin-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  --skin-bg: #f5f7fa;
}

/* ----- 侧栏 ----- */
.sidebar {
  width: 220px !important;
  background: #fff;
  border-right: 1px solid var(--skin-border) !important;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sidebar-brand img {
  width: 72px;
  height: 72px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.sidebar-brand-text strong {
  display: block;
  font-size: 15px;
  color: #14532d;
  font-weight: 700;
}
.sidebar-brand-text span {
  font-size: 11px;
  color: #94a3b8;
}
.sidebar-menu { padding: 12px 10px !important; }
.menu-item {
  border-radius: 10px !important;
  margin-bottom: 4px;
  padding: 11px 14px !important;
  border-left: none !important;
}
.menu-item.active {
  background: #ecfdf5 !important;
  color: #166534 !important;
  font-weight: 600;
  padding-left: 14px !important;
  box-shadow: inset 3px 0 0 #16a34a;
}
.menu-item.active:hover { background: #dcfce7 !important; color: #14532d !important; }
.menu-item:hover { background: #ecfdf5; color: #16a34a; }
.sidebar-tip {
  margin: 10px 10px 14px;
  padding: 16px 12px 14px;
  background: linear-gradient(165deg, #f0fdf4 0%, #ffffff 55%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
}
.sidebar-tip img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
}
.sidebar-tip p {
  font-size: 13px;
  color: #166534;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 12px;
}
.sidebar-tip .btn-sm {
  width: 100%;
  justify-content: center;
  background: #16a34a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-weight: 600;
}
.sidebar-tip .btn-sm:hover { background: #15803d !important; }
.main { margin-left: 220px !important; }
.sidebar-bottom {
  border-top: 1px solid #f1f5f9 !important;
  color: #94a3b8 !important;
  text-align: center;
  font-size: 11px !important;
}

/* ----- 主区 ----- */
body .content { background: transparent; }
.stat-card {
  border-radius: var(--skin-radius) !important;
  border: 1px solid var(--skin-border) !important;
  box-shadow: var(--skin-card-shadow);
  padding: 18px 16px !important;
}
.stat-card .label { color: #94a3b8 !important; font-size: 12px; }
.stat-card .value { color: #14532d !important; }
.quick-guide,
.group-selector-bar,
.group-workspace,
.group-card,
.chart-card,
.kb-upload-guide,
.upload-box {
  border-radius: var(--skin-radius) !important;
  box-shadow: var(--skin-card-shadow);
}

/* 工作台欢迎条 */
.wb-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px 22px;
  background: linear-gradient(120deg, #ecfdf5 0%, #fff 55%);
  border: 1px solid #bbf7d0;
  border-radius: var(--skin-radius);
  box-shadow: var(--skin-card-shadow);
}
.wb-welcome-copy h2 {
  font-size: 20px;
  color: #14532d;
  margin: 0 0 6px;
  font-weight: 700;
}
.wb-welcome-copy p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}
.wb-welcome-mascot {
  width: 110px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.wb-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--skin-border);
  border-radius: 12px;
}
.wb-tip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.wb-tip p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}
.wb-tip a { color: #16a34a; font-weight: 600; text-decoration: none; }

/* 工作台首页增强 */
.wb-welcome {
  display: grid !important;
  grid-template-columns: 1fr auto minmax(200px, 240px);
  align-items: center;
  gap: 16px 18px;
}
.wb-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.wb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
}
.wb-pill.ok { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.wb-pill.ok i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; display: inline-block;
}
.wb-site {
  font-size: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-welcome-mascot {
  width: 200px !important;
  max-width: 28vw;
  height: auto !important;
  object-fit: contain;
}
.wb-welcome-tip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.wb-welcome-tip-title {
  font-size: 13px;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 6px;
}
.wb-welcome-tip p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 8px;
}
.wb-welcome-tip a {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}
.wb-stats .stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.stat-ico.green { background: #ecfdf5; color: #16a34a; }
.stat-ico.blue { background: #eff6ff; color: #2563eb; }
.stat-ico.purple { background: #f5f3ff; color: #7c3aed; }
.stat-ico.amber { background: #fffbeb; color: #d97706; }
.stat-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}
.qg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qg-title { font-size: 15px; font-weight: 700; color: #14532d; }
.qg-desc { font-size: 13px; color: #94a3b8; margin-top: 4px; }
.qg-progress {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.guide-steps .gs {
  flex: 1;
  text-align: center;
  position: relative;
}
.guide-steps .gs:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #dcfce7;
  z-index: 0;
}
.gs-state {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
}
.gs.done .gs-num {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}
.gs.done .gs-state { color: #16a34a; font-weight: 600; }
.gs.current .gs-num {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.gs.current .gs-state { color: #d97706; font-weight: 600; }
.qg-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.wb-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin: 8px 0 10px;
}
@media (max-width: 980px) {
  .wb-welcome {
    grid-template-columns: 1fr auto !important;
  }
  .wb-welcome-tip { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wb-welcome-mascot { display: none; }
}

/* ----- 下载页 ----- */
.dl-page { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.dl-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #ecfdf5 0%, #f0fdf4 40%, #fff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  box-shadow: var(--skin-card-shadow);
}
.dl-banner h1 {
  font-size: 26px;
  color: #14532d;
  margin: 0 0 10px;
}
.dl-banner .lead {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 480px;
}
.dl-banner-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dl-banner-feats span {
  font-size: 12px;
  background: #fff;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.dl-banner img {
  width: min(320px, 38vw);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}
.dl-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.dl-tabs .tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.dl-tabs .tab.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  font-weight: 600;
}
.dl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--skin-border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--skin-card-shadow);
  display: flex;
  flex-direction: column;
}
.dl-card h3 {
  font-size: 16px;
  color: #14532d;
  margin: 0 0 8px;
}
.dl-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}
.dl-card .btn-dl {
  display: inline-block;
  text-align: center;
  padding: 11px 16px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.dl-card .btn-dl:hover { background: #15803d; }
.dl-card .btn-dl.outline {
  background: #fff;
  color: #16a34a;
  border: 1.5px solid #16a34a;
}
.dl-card .btn-dl.outline:hover { background: #ecfdf5; }
.dl-card .btn-dl.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  pointer-events: none;
  border: none;
}
.dl-card .meta { font-size: 12px; color: #94a3b8; margin-top: 10px; }
.dl-card.is-blue { border-color: #bfdbfe; }
.dl-card.is-blue h3 { color: #1e40af; }
.dl-card.is-purple { border-color: #ddd6fe; }
.dl-card.is-purple h3 { color: #5b21b6; }
.dl-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dl-step {
  flex: 1 1 180px;
  background: #fff;
  border: 1px solid var(--skin-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.dl-step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.dl-step strong { display: block; font-size: 14px; color: #14532d; margin-bottom: 4px; }
.dl-step span { font-size: 12px; color: #64748b; line-height: 1.5; }
.dl-faq {
  background: #fff;
  border: 1px solid var(--skin-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--skin-card-shadow);
}
.dl-faq h2 { font-size: 16px; color: #14532d; margin: 0 0 12px; }
.dl-faq details {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}
.dl-faq details:last-child { border-bottom: none; }
.dl-faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.dl-faq details p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.dl-warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #78350f;
}

@media (max-width: 900px) {
  .dl-cards { grid-template-columns: 1fr; }
  .dl-banner { flex-direction: column; text-align: center; }
  .dl-banner .lead { margin-left: auto; margin-right: auto; }
  .dl-banner-feats { justify-content: center; }
  .wb-welcome { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .sidebar-brand, .sidebar-tip { display: none; }
}
