/* ============================================================
   求学通设计系统 v5.0 — 统一覆盖层
   强制所有页面使用 Teal #0d9488 品牌色系
   解决各模板内联样式中的颜色不一致问题
   ============================================================ */

/* ====== 强制覆盖所有蓝色变体 ====== */
:root {
  --brand: #0d9488 !important;
  --brand-dark: #0f766e !important;
  --brand-darker: #115e59 !important;
  --brand-light: #f0fdfa !important;
  --brand-lighter: #ccfbf1 !important;
  --primary: #0d9488 !important;
  --primary-dark: #0f766e !important;
  --theme-color: #0d9488 !important;
  --theme-color-dark: #0f766e !important;
}

/* ====== 强制覆盖按钮 ====== */
.btn-primary {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(13,148,136,0.25) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e, #115e59) !important;
  box-shadow: 0 4px 16px rgba(13,148,136,0.35) !important;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent !important;
  color: #0d9488 !important;
  border: 1.5px solid #0d9488 !important;
}
.btn-outline:hover {
  background: #0d9488 !important;
  color: #fff !important;
}
.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25) !important;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35) !important;
  transform: translateY(-1px);
}

/* ====== 强制覆盖链接 ====== */
a { color: #0d9488; }
a:hover { color: #0f766e; }

/* ====== 强制覆盖导航栏活跃态 ====== */
.nav-links a.active {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(13,148,136,0.3) !important;
}

/* ====== 强制覆盖表单聚焦 ====== */
input:focus, select:focus, textarea:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
  outline: none !important;
}

/* ====== 强制覆盖卡片 hover ====== */
.school-card-new:hover,
.major-card-new:hover,
.news-featured:hover,
.news-side-item:hover,
.path-card:hover {
  border-color: #99f6e4 !important;
}

/* ====== 强制覆盖分页活跃态 ====== */
.page-btn.active,
.pagination .current {
  background: #0d9488 !important;
  color: #fff !important;
  border-color: #0d9488 !important;
}

/* ====== 强制覆盖 Badge / Tag ====== */
.tag-primary, .badge-primary {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}

/* ====== 强制覆盖 Section Label ====== */
.sec-label {
  color: #0d9488 !important;
  background: #f0fdfa !important;
}

/* ====== 强制覆盖路径卡片 ====== */
.path-card:hover { border-color: #99f6e4; }

/* ====== 统一搜索框 ====== */
.hero-search button {
  color: #0d9488 !important;
}

/* ====== 统一学校卡片按钮 ====== */
.school-body-new .s-btn {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}
.school-card-new:hover .s-btn {
  background: #0d9488 !important;
  color: #fff !important;
}

/* ====== 统一 Featured 卡片标记 ====== */
.school-card-new.featured {
  border-top: 3px solid #0d9488 !important;
}

/* ====== 统一 Major 卡片 hover ====== */
.major-card-new:hover {
  border-color: #99f6e4 !important;
}

/* ====== 统一 Province Chip ====== */
.province-chip:hover {
  border-color: #0d9488 !important;
  color: #0d9488 !important;
  background: #f0fdfa !important;
}
.province-chip .pc-dot { background: #0d9488; }

/* ====== 统一分类 Pill ====== */
.cat-pill:hover { background: #f0fdfa; color: #0d9488; }
.cat-pill.active { background: #0d9488; color: #fff; border-color: #0d9488; }

/* ====== 统一 Major Cat Tab ====== */
.major-cat-tab:hover { color: #0d9488; background: #f0fdfa; }
.major-cat-tab.active { background: #0d9488; color: #fff; }

/* ====== 统一 Region Tab ====== */
.region-tab:hover { color: #0d9488; }
.region-tab.active { background: #0d9488; color: #fff; }

/* ====== 统一 Step Number ====== */
.step-item:nth-child(1) .step-num { border-color: #2dd4bf; color: #14b8a6; }
.step-item:nth-child(2) .step-num { border-color: #34d399; color: #10b981; }
.step-item:nth-child(3) .step-num { border-color: #fbbf24; color: #f59e0b; }
.step-item:nth-child(4) .step-num { border-color: #f472b6; color: #ec4899; }

/* ====== 统一 Stats Banner ====== */
.stats-banner {
  background: linear-gradient(135deg, #0f172a, #134e4a) !important;
}

/* ====== 统一 CTA ====== */
.cta-full {
  background: linear-gradient(135deg, #134e4a, #14b8a6) !important;
}
.cta-full .cta-btn-big {
  color: #0d9488 !important;
}

/* ====== 统一新闻标签 ====== */
.ns-tag {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}
.nf-badge {
  color: #0d9488 !important;
}

/* ====== 统一侧边栏筛选 ====== */
.filter-box h4 {
  color: #0d9488 !important;
}
.filter-option.active,
.filter-option:hover {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}

/* ====== 统一 Tab 切换 ====== */
.tab-btn.active {
  color: #0d9488 !important;
  border-bottom-color: #0d9488 !important;
}

/* ====== 统一面包屑 ====== */
.breadcrumb a:hover {
  color: #0d9488 !important;
}

/* ====== 统一学校类型标签颜色 ====== */
.school-img-tag {
  color: #115e59 !important;
}

/* ====== 统一卡片图片背景 ====== */
.school-img-new {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 40%, #99f6e4 100%) !important;
}

/* ====== 统一学校详情页 ====== */
.school-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%) !important;
}

/* ====== 统一列表页 Hero ====== */
.list-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%) !important;
}

/* ====== 统一用户中心侧边栏 ====== */
.user-sidebar .menu-item.active {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
}
.user-sidebar .menu-item.active a {
  color: #fff !important;
}

/* ====== 统一学校后台侧边栏 ====== */
.dashboard-sidebar .menu-item.active {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
}

/* ====== 统一 Premium 认证徽章 ====== */
.premium-badge {
  background: linear-gradient(135deg, #C8963E, #B8860B) !important;
}

/* ====== 统一加载动画 ====== */
.spinner {
  border-color: #0d9488 !important;
  border-top-color: transparent !important;
}

/* ====== 统一 Progress Bar ====== */
.progress-bar-fill {
  background: linear-gradient(90deg, #0d9488, #14b8a6) !important;
}

/* ====== 统一输入框前缀图标 ====== */
.input-group .input-icon {
  color: #0d9488 !important;
}

/* ====== 统一 Switch 开关 ====== */
.switch-input:checked + .switch-slider {
  background: #0d9488 !important;
}

/* ====== 统一 Select 下拉 ====== */
select option:checked {
  background: #0d9488 !important;
  color: #fff !important;
}

/* ====== 统一文件上传区 ====== */
.upload-zone:hover,
.upload-zone.dragover {
  border-color: #0d9488 !important;
  background: #f0fdfa !important;
}

/* ====== 统一手风琴/FAQ ====== */
details summary {
  color: #0d9488 !important;
}
details[open] summary {
  color: #0d9488 !important;
}

/* ====== 统一粘性底部操作栏 ====== */
.sticky-action-bar {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid #e2ddd5 !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
}

/* ====== 统一 Modal 遮罩 ====== */
.modal-overlay {
  background: rgba(15,23,42,0.6) !important;
  backdrop-filter: blur(4px) !important;
}

/* ====== 统一 Toast 通知 ====== */
.toast-success {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
}

/* ====== 统一表单验证 ====== */
.form-success {
  color: #0d9488 !important;
}
.form-error {
  color: #dc2626 !important;
}

/* ====== 统一 checkbox/radio ====== */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: #0d9488 !important;
}

/* ====== 统一滚动条 ====== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* ====== 统一选中文本 ====== */
::selection {
  background: rgba(13,148,136,0.15);
  color: #0d9488;
}
