/* =========================================================================
   工具页组件层 huaxu-tool-ui.css（2026-10-27）
   把子页各自的工具界面（面板 / 输入 / 拖拽区 / 文件行 / 指标 / 弹窗 / FAQ）
   映射到主页的液态玻璃 + 水墨语言。只覆盖视觉，不动结构与逻辑。
   加载顺序：app.css → align-home → huaxu.css → bridge → 本文件 → fix-2026-10
   ========================================================================= */

/* ---------------- 1. 通用面板 / 卡片 ---------------- */
.card, .cv-panel, .bw-panel {
  background: var(--glass-fill, rgba(22, 30, 44, .10)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .08)) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 1px var(--glass-edge-top, rgba(255, 255, 255, .2)),
    inset 0 -1px 1.5px var(--glass-edge-bottom, rgba(0, 0, 0, .25)),
    0 10px 34px rgba(0, 0, 0, .28) !important;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease !important;
}
.card:hover, .cv-panel:hover {
  border-color: var(--border-accent, rgba(90, 158, 143, .3)) !important;
}
.card-head, .cv-panel-head {
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, .08)) !important;
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  color: var(--text-primary) !important;
}
.card-body, .cv-panel-body { padding: 20px 22px !important; }

/* ---------------- 2. 按钮（子页自有的 cv-btn / 普通 btn 变体） ---------------- */
.cv-btn, .btn {
  border-radius: 100px !important;
  font-size: 15px !important;
  letter-spacing: .5px !important;
  min-height: 40px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background .3s ease, border-color .3s ease !important;
}
.cv-btn-primary, .btn.primary, .btn-primary {
  background: var(--glass-sheen, none), linear-gradient(180deg, rgba(61, 139, 110, .34), rgba(61, 139, 110, .16)) !important;
  border: 1px solid rgba(61, 139, 110, .5) !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 1px 1px var(--glass-edge-top, rgba(255,255,255,.2)), 0 4px 18px rgba(61, 139, 110, .18) !important;
}
.cv-btn-primary:hover, .btn.primary:hover, .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(61, 139, 110, .72) !important;
}
.cv-btn-ghost, .btn.outline, .btn-ghost {
  background: var(--glass-sheen, none), linear-gradient(180deg, var(--glass-fill-strong, rgba(24,32,48,.14)), var(--glass-fill, rgba(22,30,44,.10))) !important;
  border: 1px solid var(--nav-border, rgba(255, 255, 255, .18)) !important;
  color: var(--text-primary) !important;
}
.cv-btn-ghost:hover, .btn.outline:hover, .btn-ghost:hover {
  border-color: rgba(90, 158, 143, .6) !important;
  color: var(--accent-bronze-light) !important;
  transform: translateY(-2px);
}
.cv-btn:disabled, .btn:disabled, .btn[disabled] { opacity: .42 !important; cursor: not-allowed !important; }

/* ---------------- 3. 表单控件 ---------------- */
input[type="text"], input[type="url"], input[type="number"], input[type="search"],
input[type="password"], input[type="email"], textarea, select {
  background: rgba(10, 14, 22, .55) !important;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .1)) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-family: inherit;
  font-size: 14px !important;
  padding: 11px 14px !important;
  transition: border-color .25s ease, box-shadow .25s ease !important;
  outline: none !important;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(90, 158, 143, .65) !important;
  box-shadow: 0 0 0 3px rgba(90, 158, 143, .14) !important;
}
::placeholder { color: var(--text-muted) !important; opacity: .85; }
.p-field-label, label {
  font-size: 13px !important;
  letter-spacing: .5px;
  color: var(--text-secondary) !important;
  margin-bottom: 8px;
}

/* ---------------- 4. 拖拽区 ---------------- */
.cv-dz, .dz, [class*="dropzone"] {
  border: 1.5px dashed rgba(90, 158, 143, .45) !important;
  border-radius: 20px !important;
  background: rgba(10, 16, 24, .45) !important;
  transition: border-color .3s ease, background .3s ease, transform .3s ease !important;
}
.cv-dz:hover, .dz:hover, .cv-dz.drag, .dz.drag {
  border-color: var(--accent-bronze) !important;
  background: rgba(61, 139, 110, .10) !important;
}
.cv-dz-ico, .dz-ico { color: var(--accent-bronze) !important; }

/* ---------------- 5. 文件行 / 列表 ---------------- */
.cv-item, .inp-row {
  background: rgba(14, 20, 30, .55) !important;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .07)) !important;
  border-radius: 14px !important;
  transition: border-color .25s ease, background .25s ease !important;
}
.cv-item:hover, .inp-row:hover { border-color: rgba(90, 158, 143, .35) !important; }

/* ---------------- 6. 指标 / 统计 ---------------- */
.metric { border-radius: 14px !important; }
.metric .v, .metric b {
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif !important;
  color: var(--accent-bronze) !important;
  letter-spacing: .5px;
}
.metric .k, .metric span { color: var(--text-muted) !important; font-size: 12.5px !important; }

/* ---------------- 7. 胶囊 / 标签 / 步骤 ---------------- */
.chip, .p-tag, .p-step, .p-mode, .pill, .cv-bubble {
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .1)) !important;
  border-radius: 999px !important;
  background: rgba(20, 28, 40, .5) !important;
  color: var(--text-secondary) !important;
  transition: all .25s ease !important;
}
.chip:hover, .p-tag:hover, .p-mode:hover, .cv-bubble:hover {
  border-color: rgba(90, 158, 143, .55) !important;
  color: var(--text-primary) !important;
  background: rgba(90, 158, 143, .12) !important;
}
.chip.on, .p-tag.on, .p-mode.on, .cv-bubble.on, .active > .chip {
  border-color: rgba(90, 158, 143, .7) !important;
  color: var(--accent-bronze-light) !important;
  background: rgba(90, 158, 143, .16) !important;
}

/* ---------------- 8. 弹窗（三页各自的实现统一观感） ---------------- */
.cv-modal, .match-overlay, .bw-modal {
  -webkit-backdrop-filter: blur(10px) saturate(1.4) !important;
  backdrop-filter: blur(10px) saturate(1.4) !important;
  background: rgba(4, 7, 12, .62) !important;
}
.cv-modal-inner, .cv-modal-content, .match-panel, .bw-modal-inner, .bw-modal-card {
  background:
    linear-gradient(180deg, rgba(18, 26, 38, .96), rgba(10, 15, 22, .97)) !important;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .1)) !important;
  border-radius: 22px !important;
  box-shadow:
    inset 0 1px 1px var(--glass-edge-top, rgba(255, 255, 255, .18)),
    0 30px 80px rgba(0, 0, 0, .55) !important;
}
.cv-modal-title, .bw-modal-title, .match-panel h3 {
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif !important;
  font-size: 20px !important;
  letter-spacing: 1px;
}

/* ---------------- 9. FAQ / 说明块 ---------------- */
.cv-faq-item {
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .07)) !important;
  border-radius: 14px !important;
  background: rgba(14, 20, 30, .45) !important;
  transition: border-color .25s ease !important;
}
.cv-faq-item:hover { border-color: rgba(90, 158, 143, .3) !important; }

/* ---------------- 10. 骨架屏 / 空状态 ---------------- */
.p-skel {
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)) !important;
  border-radius: 10px !important;
  animation: toolShimmer 1.6s linear infinite;
  background-size: 200% 100% !important;
}
@keyframes toolShimmer { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }

/* ---------------- 11. 细分隔线 / 滚动条 ---------------- */
hr, .divider { border-color: var(--border-subtle, rgba(255, 255, 255, .08)) !important; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(90, 158, 143, .3); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(90, 158, 143, .5); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 12. 工具页内容与主页一致的节奏 ---------------- */
main, .main { padding-bottom: 40px; }
.cv-section, section.section {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 72px 48px !important;
}
@media (max-width: 768px) {
  .cv-section, section.section { padding: 48px 20px !important; }
  .card-head, .cv-panel-head { padding: 14px 16px !important; font-size: 15px !important; }
  .card-body, .cv-panel-body { padding: 16px !important; }
  .cv-modal-inner, .match-panel, .bw-modal-card { border-radius: 18px !important; }
}

/* =========================================================================
   13. 斗转星移 · 转换工作台排布
   ========================================================================= */
.cv-dz-wrap {
  background: var(--glass-fill, rgba(22, 30, 44, .10));
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, .08));
  border-radius: 22px;
  box-shadow:
    inset 0 1px 1px var(--glass-edge-top, rgba(255, 255, 255, .2)),
    0 16px 50px rgba(0, 0, 0, .3);
  padding: 22px clamp(18px, 3vw, 32px) 26px;
  max-width: 1040px;
  margin: 0 auto;
}
.cv-wb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, .08));
  flex-wrap: wrap;
}
.cv-wb-title {
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.cv-wb-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .3px;
  margin: 0;
}
/* 拖拽区：收紧高度，聚焦"投递"动作 */
.cv-dropzone, .cv-dz {
  min-height: 0 !important;
  padding: 44px 24px !important;
  margin: 0 0 18px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.cv-dropzone h3 { font-size: 18px !important; font-weight: 700 !important; margin: 8px 0 4px !important; }
.cv-dropzone p { font-size: 13px !important; color: var(--text-muted) !important; margin: 0 !important; }
.cv-dz-ico { width: 40px !important; height: 40px !important; opacity: .9; }
/* 操作条：开关在左、按钮在右 */
.cv-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, .08)) !important;
  flex-wrap: wrap !important;
}
.cv-controls .cv-toggle { margin-right: auto !important; }
/* 队列：空则隐藏，有内容时卡片化 */
.cv-queue { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cv-queue:empty { display: none !important; }
/* 底部两张说明卡：收紧间距并加小节标题 */
.cv-section + .cv-section { padding-top: 12px !important; }


/* =========================================================================
   14. 哈希卫士 · 工作台排布与控件统一
   ========================================================================= */
#workbench, .grid { width: 100%; }
.grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 72px;
}
.col { display: flex !important; flex-direction: column !important; gap: 20px !important; min-width: 0 !important; }
@media (max-width: 1024px) {
  .grid { grid-template-columns: minmax(0, 1fr) !important; padding: 0 20px 48px; }
}

/* 卡头：图标 + 标题 + 右侧控件，统一高度 */
.card-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 56px;
  box-sizing: border-box;
}
.card-head .ico { width: 18px; height: 18px; color: var(--accent-bronze); flex: none; opacity: .9; }
.card-head h2 {
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  margin: 0 !important;
  color: var(--text-primary);
}
.card-head .spacer { flex: 1 1 auto; }

/* 按钮：统一为主页青绿体系（原来的紫色 accent 收敛掉） */
.btn.accent, .btn.accent.hl {
  background: var(--glass-sheen, none), linear-gradient(180deg, rgba(61,139,110,.38), rgba(61,139,110,.18)) !important;
  border: 1px solid rgba(61,139,110,.55) !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), 0 6px 20px rgba(61,139,110,.22) !important;
}
.btn.icon { padding: 8px !important; min-width: 36px; }
.btn.sm { min-height: 32px !important; font-size: 13px !important; padding: 6px 14px !important; }

/* 芯片 */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px !important;
  font-size: 12px !important;
  letter-spacing: .3px;
  border-radius: 999px !important;
}
.chip.info { border-color: rgba(90,158,143,.45) !important; color: var(--accent-bronze-light) !important; background: rgba(90,158,143,.12) !important; }
.chip.dim { border-color: rgba(255,255,255,.10) !important; color: var(--text-muted) !important; background: rgba(255,255,255,.03) !important; }

/* 开关：轨道 + 旋钮 + 文字（结构：label.switch > input + i.track + 文本） */
.switch {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  letter-spacing: .2px;
  color: var(--text-secondary) !important;
  cursor: pointer;
  white-space: nowrap;
}
.switch input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}
.switch .track,
.switch > i {
  position: relative !important;
  flex: none;
  display: block !important;
  width: 34px !important;
  height: 20px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  transition: background .25s ease, border-color .25s ease !important;
}
.switch .track::after,
.switch > i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cfd8e0;
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background .25s ease;
}
.switch input:checked + .track,
.switch input:checked + i {
  background: rgba(90, 158, 143, .30) !important;
  border-color: rgba(90, 158, 143, .60) !important;
}
.switch input:checked + .track::after,
.switch input:checked + i::after {
  transform: translateX(14px);
  background: var(--accent-bronze-light, #7ab8a8);
}
.switch-row { display: flex !important; flex-wrap: wrap !important; gap: 10px 18px !important; }

/* 指标条 */
.metrics {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
  gap: 10px !important;
}
.metric {
  background: rgba(12,18,26,.55) !important;
  border: 1px solid var(--border-subtle, rgba(255,255,255,.07)) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  text-align: center;
}
.metric b, .metric .v {
  display: block;
  font-family: 'Smiley Sans Oblique','Noto Serif SC',serif !important;
  font-size: 20px !important;
  color: var(--accent-bronze) !important;
  line-height: 1.2;
}
.metric span, .metric .k { display: block; font-size: 12px !important; color: var(--text-muted) !important; margin-top: 4px; }

/* 空状态：图标与文案提亮一档 */
[class*="empty"], .empty, .hint, .dim {
  color: var(--text-muted) !important;
}
[class*="empty"] svg, .empty svg { opacity: .55 !important; }


/* =========================================================================
   15. 斗转星移 · 弹窗与信息卡排布
   ========================================================================= */
/* 弹窗容器 */
.cv-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 24px; }
.cv-modal.open { display: flex; }
.cv-modal > .cv-panel {
  position: relative;
  width: min(1080px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cvModalIn .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes cvModalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* 弹窗头：粘顶，标题/说明/关闭三段对齐 */
.cv-panel-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18,26,38,.96), rgba(16,23,33,.92)) !important;
  backdrop-filter: blur(12px);
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.08)) !important;
}
.cv-panel-head h2 {
  font-family: 'Smiley Sans Oblique','Noto Serif SC',serif !important;
  font-size: 20px !important; letter-spacing: 1.5px; margin: 0 !important;
}
.cv-panel-head .cv-sub-title { font-size: 12.5px !important; color: var(--text-muted) !important; }
.cv-panel-head .cv-close {
  margin-left: auto;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border-subtle, rgba(255,255,255,.12));
  background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: all .25s ease;
}
.cv-panel-head .cv-close:hover { color: var(--text-primary); border-color: var(--accent-bronze); background: rgba(90,158,143,.12); }
.cv-panel-body { padding: 20px 22px 24px !important; overflow-y: auto; }

/* 格式矩阵：分组卡片栅格 */
.cv-matrix { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 14px !important; }
.cv-matrix > * {
  background: rgba(12,18,26,.55) !important;
  border: 1px solid var(--border-subtle, rgba(255,255,255,.07)) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
}
.cv-matrix h4, .cv-matrix .cv-matrix-title {
  font-family: 'Smiley Sans Oblique','Noto Serif SC',serif !important;
  font-size: 15px !important; margin: 0 0 10px !important; color: var(--text-primary);
}
.cv-matrix .chip, .cv-matrix span { font-size: 12px !important; }

/* FAQ：分隔式条目 */
.cv-faq { display: flex; flex-direction: column; gap: 2px; }
.cv-faq-item { padding: 16px 4px !important; border: 0 !important; border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.07)) !important; background: none !important; border-radius: 0 !important; }
.cv-faq-item:last-child { border-bottom: 0 !important; }
.cv-faq-item h3 {
  font-size: 15.5px !important; font-weight: 700 !important; margin: 0 0 8px !important;
  color: var(--text-primary); letter-spacing: .3px;
}
.cv-faq-item p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.9 !important; color: var(--text-secondary) !important; }

/* 底部双卡：等高 + 内容上下分布 */
.cv-duo, .cv-duo-grid, [class*="cv-duo-wrap"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  max-width: 1040px; margin: 0 auto;
}
.cv-duo .card, .cv-duo-grid .card { height: 100%; }
.cv-duo .card-body { display: flex; flex-direction: column; height: 100%; }
.cv-duo-ico {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(90,158,143,.14); border: 1px solid rgba(90,158,143,.28);
  font-size: 18px; margin-bottom: 14px;
}
.cv-duo .card-body h3 { font-family: 'Smiley Sans Oblique','Noto Serif SC',serif; font-size: 19px !important; margin: 0 0 10px !important; letter-spacing: .5px; }
.cv-duo .card-body p { font-size: 13.5px !important; line-height: 1.85 !important; color: var(--text-secondary) !important; margin: 0 0 18px !important; }
.cv-duo .card-body .btn, .cv-duo .card-body .cv-btn { margin-top: auto; align-self: flex-start; }

/* 转换队列：空状态提示 */
.cv-queue:empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px dashed var(--border-subtle, rgba(255,255,255,.12));
  border-radius: 14px;
  margin-top: 16px;
}
.cv-queue:empty::before {
  content: '还没有文件 —— 拖入或点击上方区域开始，转换队列会显示在这里';
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .2px;
}

@media (max-width: 900px) {
  .cv-duo, .cv-duo-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cv-matrix { grid-template-columns: minmax(0, 1fr) !important; }
}


/* =========================================================================
   16. 织豆（Tailwind + React 应用）→ 主页视觉覆盖
   它不使用本项目的类名体系，只能按它的工具类/自有类做覆盖。
   ========================================================================= */
/* 背景：去掉 stone 渐变，换成主页墨夜 */
#root > div,
[class*="from-stone-950"] {
  background-image: none !important;
  background-color: var(--bg-deep, #07070c) !important;
}
/* 头部：浮起玻璃条 */
#root header {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 14px 24px !important;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.08)) !important;
  background: rgba(10, 14, 22, .55) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  position: sticky; top: 0; z-index: 50;
}
/* 主容器：与主页同宽 */
#root main { max-width: 1200px !important; padding: 0 48px !important; }
@media (max-width: 768px) { #root main { padding: 0 20px !important; } }

/* 标题层级 */
#root h1 {
  font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif !important;
  font-size: clamp(32px, 4.4vw, 56px) !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  line-height: 1.25 !important;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
#root h1 { color: var(--text-primary) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
#root h1 .text-amber-400 { color: var(--accent-bronze) !important; -webkit-text-fill-color: currentColor !important; }
#root h2, #root h3 { font-family: 'Smiley Sans Oblique', 'Noto Serif SC', serif !important; letter-spacing: .8px; }

/* 文本层级 */
#root .text-stone-400, #root .text-stone-500 { color: var(--text-secondary) !important; }
#root .text-stone-300 { color: var(--text-primary) !important; }

/* 卡片：主页玻璃 */
#root .card {
  background: var(--glass-fill, rgba(22,30,44,.10)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.9));
  border: 1px solid var(--border-subtle, rgba(255,255,255,.08)) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 1px var(--glass-edge-top, rgba(255,255,255,.2)),
    0 12px 40px rgba(0,0,0,.28) !important;
  transition: border-color .3s ease, transform .3s ease !important;
}
#root .card:hover { border-color: var(--border-accent, rgba(90,158,143,.3)) !important; }
#root .card.ring-1 { border-color: rgba(90,158,143,.35) !important; }

/* 按钮：主页胶囊 */
#root .btn-primary {
  border-radius: 100px !important;
  background: var(--glass-sheen, none), linear-gradient(180deg, rgba(61,139,110,.38), rgba(61,139,110,.18)) !important;
  border: 1px solid rgba(61,139,110,.55) !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), 0 6px 20px rgba(61,139,110,.22) !important;
  font-size: 15px !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease !important;
}
#root .btn-primary:hover { transform: translateY(-2px) scale(1.02); }
#root .btn-ghost {
  border-radius: 100px !important;
  background: var(--glass-sheen, none), linear-gradient(180deg, var(--glass-fill-strong, rgba(24,32,48,.14)), var(--glass-fill, rgba(22,30,44,.10))) !important;
  border: 1px solid var(--nav-border, rgba(255,255,255,.18)) !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  transition: all .3s ease !important;
}
#root .btn-ghost:hover { border-color: rgba(90,158,143,.6) !important; color: var(--accent-bronze-light) !important; }

/* 弹窗（织豆的引导/导出） */
.bw-modal { background: rgba(4,7,12,.66) !important; -webkit-backdrop-filter: blur(12px) saturate(1.4) !important; backdrop-filter: blur(12px) saturate(1.4) !important; }
.bw-modal > div {
  background: linear-gradient(180deg, rgba(18,26,38,.97), rgba(10,15,22,.98)) !important;
  border: 1px solid var(--border-subtle, rgba(255,255,255,.1)) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 30px 80px rgba(0,0,0,.6) !important;
  color: var(--text-primary) !important;
}
/* 页脚 */
.bw-footer {
  border-top: 1px solid var(--border-subtle, rgba(255,255,255,.08)) !important;
  background: transparent !important;
}
.bw-footer-links a { color: var(--text-secondary) !important; }
.bw-footer-links a:hover { color: var(--accent-bronze-light) !important; }


/* 织豆：Tailwind 色板 → 主页令牌（按类名前缀兜底映射） */
#root [class*="bg-stone-"]:not([class*="bg-stone-950"]),
#root [class*="bg-neutral-"],
#root [class*="bg-zinc-"] {
  background-color: rgba(18, 26, 38, .55) !important;
}
#root [class*="from-stone-"], #root [class*="via-stone-"], #root [class*="to-amber-"] {
  background-image: none !important;
}
#root [class*="bg-amber-"] { background-color: rgba(90, 158, 143, .14) !important; }
#root [class*="border-stone-"], #root [class*="border-white/"] {
  border-color: var(--border-subtle, rgba(255,255,255,.10)) !important;
}
#root [class*="text-stone-1"], #root [class*="text-stone-2"] { color: var(--text-primary) !important; }
#root [class*="text-stone-3"], #root [class*="text-stone-4"] { color: var(--text-secondary) !important; }
#root [class*="text-stone-5"], #root [class*="text-stone-6"] { color: var(--text-muted) !important; }
#root [class*="text-amber-"] { color: var(--accent-bronze) !important; }
#root input, #root textarea, #root select {
  background: rgba(10, 14, 22, .55) !important;
  border: 1px solid var(--border-subtle, rgba(255,255,255,.10)) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
}


/* =========================================================================
   17. 易课 · 组件映射
   ========================================================================= */
.yk-eyebrow {
  display: inline-block;
  font-size: 13px !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-bronze) !important;
  border: 1px solid rgba(90,158,143,.32);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(90,158,143,.08);
  margin-bottom: 18px;
}
.yk-stat { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 clamp(14px,3vw,34px); }
.yk-stat b {
  font-family: 'Smiley Sans Oblique','Noto Serif SC',serif !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 800; color: var(--accent-bronze) !important; line-height: 1.1;
}
.yk-stat span { font-size: 12.5px !important; color: var(--text-secondary) !important; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.yk-emoji {
  display: inline-grid !important; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(90,158,143,.14) !important;
  border: 1px solid rgba(90,158,143,.28) !important;
  font-size: 20px !important;
  margin-bottom: 14px;
}
.yk-intro-sec .card { height: 100%; }
.yk-bubble {
  border-radius: 999px !important;
  border: 1px solid var(--border-subtle, rgba(255,255,255,.10)) !important;
  background: rgba(20,28,40,.5) !important;
  color: var(--text-secondary) !important;
  padding: 5px 14px !important;
  font-size: 12.5px !important;
}
