/* 福诗云镜 主题 — 深紫 #7c3aed + 金黄 #facc15 — override sub2api Tailwind primary palette */

:root {
  --fy-primary-50:  #faf5ff;
  --fy-primary-100: #f3e8ff;
  --fy-primary-200: #e9d5ff;
  --fy-primary-300: #d8b4fe;
  --fy-primary-400: #c084fc;
  --fy-primary-500: #a855f7;
  --fy-primary-600: #7c3aed;   /* 主色 */
  --fy-primary-700: #6d28d9;
  --fy-primary-800: #5b21b6;
  --fy-primary-900: #4c1d95;
  --fy-accent: #facc15;         /* 金黄 accent */
  --fy-accent-deep: #ca8a04;
}

/* 全站字体 — 用宋体衬线显诗意 */
html, body, button, input, select, textarea {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC',
               'Microsoft YaHei', 'Songti SC', serif !important;
}

/* 标题用更重的衬线 */
h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', serif !important;
  letter-spacing: 0.02em !important;
}

/* === Override Tailwind primary-* 全部 11 阶 === */
.bg-primary-50 { background-color: var(--fy-primary-50)  !important; }
.bg-primary-100{ background-color: var(--fy-primary-100) !important; }
.bg-primary-200{ background-color: var(--fy-primary-200) !important; }
.bg-primary-300{ background-color: var(--fy-primary-300) !important; }
.bg-primary-400{ background-color: var(--fy-primary-400) !important; }
.bg-primary-500{ background-color: var(--fy-primary-500) !important; }
.bg-primary-600{ background-color: var(--fy-primary-600) !important; }
.bg-primary-700{ background-color: var(--fy-primary-700) !important; }
.bg-primary-800{ background-color: var(--fy-primary-800) !important; }
.bg-primary-900{ background-color: var(--fy-primary-900) !important; }

.text-primary-400{ color: var(--fy-primary-400) !important; }
.text-primary-500{ color: var(--fy-primary-500) !important; }
.text-primary-600{ color: var(--fy-primary-600) !important; }
.text-primary-700{ color: var(--fy-primary-700) !important; }
.text-primary-800{ color: var(--fy-primary-800) !important; }

.border-primary-300{ border-color: var(--fy-primary-300) !important; }
.border-primary-400{ border-color: var(--fy-primary-400) !important; }
.border-primary-500{ border-color: var(--fy-primary-500) !important; }
.border-primary-600{ border-color: var(--fy-primary-600) !important; }

.ring-primary-500{ --tw-ring-color: var(--fy-primary-500) !important; }
.ring-primary-600{ --tw-ring-color: var(--fy-primary-600) !important; }

.from-primary-500{ --tw-gradient-from: var(--fy-primary-500) !important; }
.from-primary-600{ --tw-gradient-from: var(--fy-primary-600) !important; }
.to-primary-500  { --tw-gradient-to:   var(--fy-primary-500) !important; }
.to-primary-600  { --tw-gradient-to:   var(--fy-primary-600) !important; }

/* hover 态 */
.hover\:bg-primary-500:hover { background-color: var(--fy-primary-500) !important; }
.hover\:bg-primary-600:hover { background-color: var(--fy-primary-600) !important; }
.hover\:bg-primary-700:hover { background-color: var(--fy-primary-700) !important; }
.hover\:text-primary-600:hover { color: var(--fy-primary-600) !important; }

/* === 金黄 accent 用在"重点强调"位置 — 进度条 / 徽章 / 高亮文字 === */
.bg-yellow-400, .bg-amber-400 { background-color: var(--fy-accent) !important; }
.text-yellow-500, .text-amber-500 { color: var(--fy-accent-deep) !important; }

/* === 减弱 SaaS 模板的"圆角焦虑" === */
.rounded-lg  { border-radius: 0.625rem !important; }
.rounded-xl  { border-radius: 0.875rem !important; }
.rounded-2xl { border-radius: 1.125rem !important; }
button, .btn { border-radius: 0.5rem !important; }

/* === 顶栏品牌字与 logo 给微妙渐变 === */
.brand-title, [class*="site-name"], header h1 {
  background: linear-gradient(120deg, var(--fy-primary-600), var(--fy-accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 700;
}

/* === 隐藏可能残留的 sub2api 链接 === */
a[href*="github.com/Wei-Shaw"],
a[href*="sub2api"],
a[href*="weishaw"] {
  display: none !important;
}

/* === 链接默认色 === */
a:not(.btn):not([class*="bg-"]) {
  color: var(--fy-primary-600);
}
a:not(.btn):not([class*="bg-"]):hover {
  color: var(--fy-primary-700);
  text-decoration: underline;
  text-decoration-color: var(--fy-accent);
}
