/* ================= TokenHub 全局样式 ================= */
:root {
  --th-primary: #4f46e5;
  --th-primary-dark: #4338ca;
  --th-bg: #f4f6fb;
  --th-sidebar-w: 236px;
}

body {
  background-color: var(--th-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { text-decoration: none; }

/* ---- 顶部导航 ---- */
.th-navbar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
}
.th-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.th-navbar .brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  margin-right: 6px;
  vertical-align: baseline;
}
.th-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.925rem;
}
.th-navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.th-navbar .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.18); font-weight: 600; }
.th-navbar .dropdown-menu { min-width: 220px; }
.th-navbar .btn-user {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.th-navbar .btn-user:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- 面包屑条（菜单栏下方第一行） ---- */
.th-crumbs {
  background: #f7f9fd;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
}
.th-crumbs .breadcrumb-item a { color: #6b7280; }
.th-crumbs .breadcrumb-item a:hover { color: var(--th-primary); }
.th-crumbs .breadcrumb-item.active { color: #111827; font-weight: 600; }

/* ---- 卡片 ---- */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid #eef0f5;
  font-weight: 600;
}

/* ---- 统计卡 ---- */
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
}
.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-label { color: #6b7280; font-size: 0.85rem; }

/* ---- 表格 ---- */
.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  font-weight: 600;
  border-bottom-width: 1px;
  white-space: nowrap;
}
.table td { vertical-align: middle; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---- 按钮主色微调 ---- */
.btn-primary { background-color: var(--th-primary); border-color: var(--th-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--th-primary-dark); border-color: var(--th-primary-dark); }
.btn-outline-primary { color: var(--th-primary); border-color: var(--th-primary); }
.btn-outline-primary:hover { background-color: var(--th-primary); border-color: var(--th-primary); }
.text-primary { color: var(--th-primary) !important; }
.form-check-input:checked { background-color: var(--th-primary); border-color: var(--th-primary); }
.pagination .page-link.active, .page-item.active .page-link {
  background-color: var(--th-primary);
  border-color: var(--th-primary);
}
a.page-link { color: var(--th-primary); }

/* ---- 管理端侧边栏 ---- */
.th-admin-body { display: flex; min-height: 100vh; }
.th-sidebar {
  width: var(--th-sidebar-w);
  flex: 0 0 var(--th-sidebar-w);
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
}
.th-sidebar .brand { padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.th-sidebar .brand a { color: #fff; font-weight: 700; font-size: 1.05rem; }
.th-sidebar .nav-link {
  color: #94a3b8;
  border-radius: 8px;
  margin: 2px 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
.th-sidebar .nav-link i { width: 20px; text-align: center; margin-right: 6px; }
.th-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.th-sidebar .nav-link.active {
  color: #fff;
  background: rgba(79, 70, 229, 0.65);
  font-weight: 600;
}
.th-admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.th-admin-topbar {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.th-admin-content { padding: 1.5rem; }

/* ---- 认证页 ---- */
.th-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%);
  padding: 24px;
}
.th-auth-card { width: 100%; max-width: 430px; border-radius: 18px; }

/* ---- 模型卡片 ---- */
.model-card .model-name { font-weight: 700; }
.model-card .badge-vendor { background: #eef2ff; color: #4338ca; }
.price-chip { background: #f3f4f6; border-radius: 10px; padding: 6px 10px; }

/* ---- 其它 ---- */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
.trend-height { height: 260px; }
.fs-sm { font-size: 0.85rem; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= 公开落地页 ================= */
.th-landing { background: #fff; }
.th-landing-brand { font-weight: 800; letter-spacing: .5px; color: #1e1b4b !important; }
.th-landing-brand .brand-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #4f46e5);
  margin-right: 6px; vertical-align: baseline;
}

/* Hero */
.th-landing-hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(99, 102, 241, .45), transparent 60%),
    radial-gradient(700px 380px at 90% 10%, rgba(34, 211, 238, .25), transparent 55%),
    linear-gradient(135deg, #111827 0%, #1e1b4b 55%, #312e81 100%);
  color: #fff;
  overflow: hidden;
}
.th-hero-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: .5px; line-height: 1.15; }
.th-hero-gradient {
  background: linear-gradient(90deg, #a5b4fc 0%, #22d3ee 60%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.th-hero-desc { color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 560px; }
.th-badge-soft {
  background: rgba(255, 255, 255, .1); color: #c7d2fe;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .45rem .9rem; border-radius: 999px; font-weight: 600;
}
.th-chip {
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: .35rem .8rem; font-size: .85rem;
}
.th-btn-hero { border-radius: 999px; padding: .65rem 1.6rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.th-hero-code {
  background: rgba(15, 23, 42, .65);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.th-hero-code pre { color: #e2e8f0; font-size: .82rem; overflow-x: auto; line-height: 1.7; }
.th-hero-code code { color: #e2e8f0; }

/* 数据指标带 */
.th-stats { background: #fff; }
.th-stat-num { font-size: 2rem; font-weight: 800; color: #1e1b4b; letter-spacing: .5px; }
.th-stat-label { color: #6b7280; font-size: .9rem; }

/* 通用 section */
.th-section { padding: 4.5rem 0; background: #fff; }
.th-section-alt { background: #f7f8fc; }
.th-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: #111827; }
.th-sub { font-size: 1rem; }

/* 卖点卡片 */
.th-feature { border: 1px solid #eef0f5; border-radius: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.th-feature:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(17, 24, 39, .08); }
.th-feature .card-body { padding: 1.4rem; }
.th-feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; margin-bottom: .9rem;
}

/* 要点列表 */
.th-list { list-style: none; padding-left: 0; }
.th-list li { padding: .35rem 0; color: #374151; }

/* 底部 CTA */
.th-cta {
  padding: 3.2rem 1.5rem;
  background:
    radial-gradient(600px 300px at 15% 120%, rgba(99, 102, 241, .5), transparent 60%),
    radial-gradient(500px 260px at 90% -20%, rgba(34, 211, 238, .3), transparent 55%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  color: #fff;
}
