/* ===== 站点视觉优化 v1（四度阁 44dg.cn） ===== */
:root{
  --dg-primary:#7C73E6;
  --dg-primary-2:#8b5cf6;
  --dg-radius:14px;
  --dg-shadow:0 6px 24px rgba(90,81,198,.08);
  --dg-shadow-hover:0 12px 32px rgba(90,81,198,.14);
}
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:"HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  letter-spacing:.1px;
}
/* 卡片统一 */
.glass-card,.card,.bg-white.rounded-xl.shadow-sm{
  border-radius:var(--dg-radius) !important;
  box-shadow:var(--dg-shadow) !important;
  transition:box-shadow .22s ease, transform .22s ease;
}
.glass-card:hover,.bg-white.rounded-xl.shadow-sm:hover{ box-shadow:var(--dg-shadow-hover) !important; }
/* 按钮统一 */
.btn,button.btn,button[type="submit"],.glass-btn{
  border-radius:12px !important;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active,button[type="submit"]:active{ transform:translateY(1px); }
/* 输入框统一 */
input[type="text"],input[type="password"],input[type="number"],input[type="email"],select,textarea{
  border-radius:12px !important;
  transition:border-color .18s ease, box-shadow .18s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--dg-primary) !important;
  box-shadow:0 0 0 3px rgba(124,115,230,.12) !important;
}
/* 表格更清爽 */
table tbody tr{ transition:background .15s ease; }
table tbody tr:hover{ background:rgba(124,115,230,.04); }
/* 滚动条 */
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:rgba(124,115,230,.28); border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(124,115,230,.45); }
::-webkit-scrollbar-track{ background:transparent; }
/* 徽章/标签 */
.badge,.tag{ border-radius:999px !important; font-weight:600; }
/* 图片圆角统一，避免头像糊 */
img.avatar,img.rounded-full{ border-radius:999px; }
/* 移动端间距微调 */
@media (max-width:640px){
  .glass-card{ border-radius:12px !important; }
  h1{ font-size:20px; }
  h2{ font-size:17px; }
}
/* 表格横向滚动优雅些 */
.overflow-x-auto{ -webkit-overflow-scrolling:touch; }
/* 代码块 */
pre,code{ font-family:Consolas,Monaco,"Courier New",monospace; }

/* ===== 后台操作提示 Toast（修复顶部被导航遮挡） ===== */
#toastWrap{
  position:fixed !important;
  top:84px !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translateX(-50%) !important;
  z-index:100000 !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  pointer-events:none;
  width:max-content;
  max-width:min(92vw, 560px);
  margin:0 !important;
  padding:0 !important;
}
#toastWrap .toast-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 20px 12px 14px;
  border-radius:14px;
  font-size:14px;
  line-height:1.5;
  font-weight:500;
  color:#fff !important;
  background:linear-gradient(135deg,#1f2937,#111827);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 14px 34px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.10);
  max-width:100%;
  word-break:break-word;
  pointer-events:auto;
  cursor:pointer;
  opacity:0;
  transform:translateY(-10px) scale(.97);
  transition:opacity .26s ease, transform .28s cubic-bezier(.2,.9,.3,1.15);
}
#toastWrap .toast-item.is-show{ opacity:1; transform:translateY(0) scale(1); }
#toastWrap .toast-item .toast-ic{
  width:22px; height:22px; flex:0 0 22px;
  display:flex; align-items:center; justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:11px;
}
#toastWrap .toast-item.toast-success{ background:linear-gradient(135deg,#059669,#6259CE); }
#toastWrap .toast-item.toast-error{ background:linear-gradient(135deg,#dc2626,#e11d48); }
#toastWrap .toast-item.toast-warning{ background:linear-gradient(135deg,#d97706,#ea580c); }
#toastWrap .toast-item.toast-info{ background:linear-gradient(135deg,#1f2937,#111827); }
@media (max-width:768px){
  #toastWrap{ top:76px !important; max-width:calc(100vw - 28px); }
  #toastWrap .toast-item{ font-size:13.5px; padding:11px 16px 11px 12px; border-radius:12px; }
}

/* ==========================================================================
   前台 · 时尚高端紫色换肤覆盖层  (2026-11-24)
   设计语言：紫色主色 #6259CE + 渐变 + 圆角卡片 + 精致阴影（中文界面）
   原理：本层追加到 assets/css/polish.css 末尾，用高优先级变量 + !important
        覆盖 xr2 / modern 等主题的青绿色(teal)主色，全站前台立即统一换肤。
   ========================================================================== */

/* ---------- 1. 主题主色变量：青绿 → 高端紫 ----------
   用 html:root 提高优先级，压过 xr2 模板内联的 :root{--accent:#6259CE} */
html:root{
  --accent:#6259CE !important;
  --accent2:#8B7BF0 !important;
  --dg-primary:#6259CE !important;
  --dg-primary-2:#8B7BF0 !important;
  --dg-radius:16px !important;
  --dg-shadow:0 8px 30px rgba(98,89,206,.10) !important;
  --dg-shadow-hover:0 16px 42px rgba(98,89,206,.18) !important;
}

/* ---------- 2. Hero 标题渐变：青绿→蓝 改为 深紫→亮紫 ---------- */
.xr2-gradient,
[class*="gradient-text"],
.gradient-text{
  background:linear-gradient(115deg,#4B43B8 0%,#6259CE 32%,#8677EC 68%,#A89BF7 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}

/* ---------- 3. Hero 背景光晕：青色 → 紫色 ---------- */
.xr2-bg{
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%,rgba(98,89,206,.12),transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 30%,rgba(139,123,240,.09),transparent 45%) !important;
}

/* ---------- 4. 主按钮：紫色渐变 ---------- */
.xr2-btn--primary,
.btn-primary,
.glass-btn--primary{
  background:linear-gradient(135deg,#6259CE,#8B7BF0) !important;
  color:#fff !important;
  box-shadow:0 8px 24px rgba(98,89,206,.30) !important;
}
.xr2-btn--primary:hover,
.btn-primary:hover{ box-shadow:0 12px 30px rgba(98,89,206,.40) !important; }
.xr2-btn--ghost:hover{ border-color:rgba(98,89,206,.4) !important; color:#6259CE !important; }

/* ---------- 5. 数字/图标/徽章：青色文字 → 紫色 ---------- */
.xr2-num,
.xr2-quick-ico,
.xr2-feature-ico,
.xr2-quick-badge,
[class*="xr2-"] i[class*="fa-"]{
  color:#6259CE !important;
}
/* 图标底纹渐变 */
.xr2-quick-ico,
.xr2-feature-ico{
  background:linear-gradient(135deg,rgba(98,89,206,.14),rgba(139,123,240,.12)) !important;
}
.xr2-quick-badge{
  background:rgba(98,89,206,.10) !important;
}
.xr2-quick-item:hover{
  border-color:rgba(98,89,206,.25) !important;
}

/* ---------- 6. 全局输入焦点/表格：靛青 → 紫 ---------- */
input:focus,select:focus,textarea:focus{
  border-color:#6259CE !important;
  box-shadow:0 0 0 3px rgba(98,89,206,.14) !important;
}
table tbody tr:hover{ background:rgba(98,89,206,.05) !important; }
::-webkit-scrollbar-thumb{ background:rgba(98,89,206,.32) !important; }
::-webkit-scrollbar-thumb:hover{ background:rgba(98,89,206,.5) !important; }

/* ---------- 7. 卡片更圆润、阴影更精致 ---------- */
.glass-card,.card,
.bg-white.rounded-xl.shadow-sm,
[class*="xr2-"][class*="card"]{
  border-radius:16px !important;
  box-shadow:var(--dg-shadow) !important;
  border-color:rgba(98,89,206,.07) !important;
}
.glass-card:hover,
.bg-white.rounded-xl.shadow-sm:hover{ box-shadow:var(--dg-shadow-hover) !important; }

/* 内联青绿文字兜底（BRAND_INLINE_20261125） */
[style*="color:#0ea5e9"], [style*="color: #0ea5e9"]{ color:#8B7BF0 !important }
[style*="color:#0d9488"], [style*="color: #0d9488"]{ color:#6259CE !important }
[style*="color:#0f766e"], [style*="color: #0f766e"]{ color:#4B43B8 !important }
[style*="color:#2563eb"], [style*="color: #2563eb"]{ color:#6259CE !important }


/* ============================================================
   前台首页 · 参考「社交平台后台仪表盘」风格收敛
   标记: REF_SKIN_FRONT_20261125
   只调圆角/按钮/阴影，不改布局
   ============================================================ */
/* 卡片圆角与阴影收敛 */
.xr2-quick-item, .xr2-feature, .xr2-stat {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(52,69,99,.05) !important;
  border: 1px solid #EBEFF5 !important;
}
.xr2-quick-item:hover, .xr2-feature:hover {
  box-shadow: 0 8px 24px rgba(52,69,99,.09) !important;
  border-color: #DCD7F5 !important;
}
/* 图标容器 */
.xr2-quick-ico, .xr2-feature-ico {
  border-radius: 8px !important;
  box-shadow: none !important;
}
/* 按钮：扁平主色 + 8px 圆角 */
.xr2-btn, .xr2-btn--primary, .xr2-btn--ghost {
  border-radius: 8px !important;
}
.xr2-btn--primary {
  background: #6259CE !important;
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(98,89,206,.22) !important;
  font-weight: 600 !important;
}
.xr2-btn--primary:hover {
  background: #5344A8 !important;
  box-shadow: 0 6px 16px rgba(98,89,206,.28) !important;
  transform: none !important;
}
.xr2-btn--ghost {
  background: #FFFFFF !important;
  border: 1px solid #E1E6EF !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
.xr2-btn--ghost:hover {
  background: #F1EFFB !important;
  border-color: #DCD7F5 !important;
  color: #5344A8 !important;
  transform: none !important;
}
/* 标题字阶 */
.xr2-title {
  font-weight: 800 !important;
  letter-spacing: -.5px !important;
}
/* 快捷入口名字 */
.xr2-quick-name { font-weight: 700 !important; }
.xr2-quick-sub { color: #7D8DA1 !important; }
