/* 卡券货源导航 - 全站样式（浅蓝简约卡片风，移动端优先） */
:root {
  --primary: #2b7fff;
  --primary-light: #e8f2ff;
  --primary-deep: #1a5fd0;
  --bg: #f2f8ff;
  --card: #ffffff;
  --text: #1f2d3d;
  --text-2: #6b7a90;
  --border: #e3edf9;
  --danger: #f56c6c;
  --ok: #10b981;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(43, 127, 255, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 14px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 56px; }
.logo { font-size: 20px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; display: block; box-shadow: 0 2px 6px rgba(43,127,255,.28); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-input { width: 200px; height: 34px; border: 1px solid var(--border); border-radius: 18px; padding: 0 14px; background: var(--bg); transition: width .2s; }
.search-input:focus { width: 240px; border-color: var(--primary); background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-block { width: 100%; height: 40px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 友链自动互访操作区 ---------- */
.flink-visit-box { background: #f6fafe; border: 1px solid #eaf1fb; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.fv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.fv-title { font-size: 15px; font-weight: 700; color: #1b2b3a; }
.fv-sub { font-size: 12.5px; color: #8a99ad; }
.fv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fv-stat { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #4a5b6e; }

/* ---------- 顶部横幅广告 ---------- */
.top-banner { margin: 12px 0 0; }
.top-banner-inner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #eaf4ff, #f6fbff); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 14px;
}
.banner-tag { flex-shrink: 0; background: var(--primary); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.banner-text { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-dots { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; flex-shrink: 0; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9d9ec; cursor: pointer; transition: .15s; }
.banner-dots i.on { width: 16px; border-radius: 3px; background: var(--primary); }
.banner-go { margin-left: auto; flex-shrink: 0; }

/* ---------- Hero 主视觉 + 实时查价 ---------- */
.hero { margin-top: 14px; }
.hero-main {
  background: linear-gradient(125deg, #dbeafe 0%, #eff7ff 45%, #dbeeff 100%);
  border-radius: 18px; padding: 36px 34px 30px; position: relative; overflow: hidden; border: 1px solid #d5e8fb;
  box-shadow: 0 8px 28px rgba(43,127,255,.10);
}
/* 实时时钟卡片（翻牌式 · 渐变描边玻璃卡） */
.clock-card {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 12px 14px 11px; border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255,255,255,.95) 0%, rgba(238,246,255,.82) 100%) padding-box,
    linear-gradient(135deg, #9ec8ff, #c9b8ff 50%, #ffb1d4) border-box;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(43,127,255,.18), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}
/* 卡内顶部极光晕 */
.clock-card::before {
  content: ''; position: absolute; width: 130px; height: 130px; right: -34px; top: -46px;
  background: radial-gradient(circle, rgba(106,92,255,.18), transparent 70%); pointer-events: none;
}
/* 实时运行徽标（绿色脉冲点） */
.clock-live {
  display: flex; align-items: center; gap: 5px; justify-content: flex-end;
  font-size: 11px; font-weight: 700; color: #0e9f6e; letter-spacing: .5px; margin-bottom: 8px;
}
.clock-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.45); animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
/* 翻牌数字 */
.clock-digits { display: flex; align-items: center; gap: 3px; position: relative; }
.clock-digit {
  width: 31px; height: 44px; display: grid; place-items: center;
  border-radius: 9px; font-size: 27px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  color: #1d4ed8;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
  border: 1px solid rgba(43,127,255,.18);
  box-shadow: inset 0 -7px 12px rgba(43,127,255,.10), 0 2px 6px rgba(43,127,255,.12);
}
/* 秒位换紫色调，呼应标题渐变 */
.clock-digit.sec {
  color: #6d3aed;
  background: linear-gradient(180deg, #ffffff 0%, #f2edff 100%);
  border-color: rgba(124,58,237,.20);
  box-shadow: inset 0 -7px 12px rgba(124,58,237,.10), 0 2px 6px rgba(124,58,237,.12);
}
.clock-colon {
  font-size: 21px; font-weight: 800; color: #5b8cff; padding: 0 1px; line-height: 1;
}
/* 日期 + 星期徽章 */
.clock-meta { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.clock-date { font-size: 12.5px; color: #3d4f6e; font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-week {
  font-size: 11px; font-weight: 700; color: #2b7fff; line-height: 1;
  background: rgba(43,127,255,.10); border: 1px solid rgba(43,127,255,.20);
  padding: 4px 9px; border-radius: 999px;
}
/* 装饰光斑 */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-blob.b1 { width: 260px; height: 260px; right: -70px; top: -90px; background: radial-gradient(circle, rgba(43,127,255,.16), transparent 65%); }
.hero-blob.b2 { width: 180px; height: 180px; right: 120px; bottom: -80px; background: radial-gradient(circle, rgba(106,183,255,.20), transparent 65%); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px; position: relative; z-index: 1;
  background: rgba(255,255,255,.85); border: 1px solid #bcd9f7; color: var(--primary-deep);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.hero-title { font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; line-height: 1.3; position: relative; z-index: 1; }
.hero-title .hl {
  color: var(--primary);
  background: linear-gradient(180deg, transparent 62%, rgba(43,127,255,.18) 62%);
  padding: 0 2px;
}
.hero-sub { color: var(--primary-deep); font-size: clamp(13px, 2vw, 16px); font-weight: 600; margin-top: 6px; position: relative; z-index: 1; }
.hero-desc { color: var(--text-2); font-size: 12px; margin-top: 8px; position: relative; z-index: 1; }

/* 大搜索框 */
.hero-search {
  margin-top: 18px; display: flex; gap: 10px; max-width: 640px; position: relative; z-index: 1; align-items: center;
  background: #fff; border: 2px solid var(--primary); border-radius: 28px; padding: 5px 5px 5px 16px;
  box-shadow: 0 8px 24px rgba(43,127,255,.18);
}
.hero-search-icon { font-size: 15px; opacity: .55; flex-shrink: 0; }
.hero-search input { flex: 1; border: none; font-size: 14px; background: transparent; min-width: 0; }
.hero-search .btn { height: 42px; border-radius: 22px; padding: 0 28px; font-size: 14px; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, #3d8bff, #2b7fff); box-shadow: 0 4px 12px rgba(43,127,255,.35); }
.hero-search .btn:hover { background: linear-gradient(135deg, #2b7fff, #1a5fd0); }
.hot-kw { margin-top: 10px; font-size: 12px; color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hot-kw a { color: var(--text-2); background: rgba(255,255,255,.8); border: 1px solid var(--border); padding: 2px 10px; border-radius: 12px; }
.hot-kw a:hover { color: var(--primary); border-color: var(--primary); }

/* 全站实时数据条 */
.stats-row {
  margin-top: 22px; display: flex; gap: 0; position: relative; z-index: 1;
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
  border: 1px solid #cfe3f9; border-radius: 14px; padding: 14px 8px;
  max-width: 640px;
}
.stat-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-right: 1px dashed #c9def5; padding: 2px 6px;
}
.stat-item:last-child { border-right: none; }
.stat-item b { font-size: 20px; font-weight: 800; color: var(--primary-deep); line-height: 1.15; display: block; }
.stat-item small { display: block; font-size: 11px; color: var(--text-2); }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* 实时站点报价表 */
.quote-table td { vertical-align: middle; }
.quote-table .q-title { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-table .price { font-size: 16px; }
.rank {
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 6px; background: #eef4fb; color: var(--text-2); font-size: 12px; font-weight: 700;
}
.rank-1 { background: #ffefd0; color: #d48806; }
.rank-2 { background: #eef1f6; color: #7a8ba6; }
.rank-3 { background: #fdece4; color: #c96a3d; }
.best-row td { background: #f8fcff; }
.btn-go { height: 28px; font-size: 12px; padding: 0 14px; }
.quote-fails { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fail-chip { font-size: 12px; color: var(--text-2); background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 5px 10px; }

/* ---------- 公告栏 ---------- */
.notice-bar {
  margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; overflow: hidden;
}
.notice-label { flex-shrink: 0; color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); font-size: 13px; cursor: pointer; }
.notice-more { flex-shrink: 0; font-size: 12px; }

/* ---------- 推荐站点横向滚动 ---------- */
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }
.section-more { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 2px; }
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: #cfe2f8; border-radius: 3px; }
.scroll-x > * { flex: 0 0 150px; scroll-snap-align: start; }

/* ---------- 站点卡片 ---------- */
.site-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px; position: relative; cursor: pointer;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(43,127,255,.14); }

.site-card-head { display: flex; align-items: center; gap: 10px; }
.site-logo { width: 40px; height: 40px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.site-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; box-sizing: border-box; border-radius: inherit; }
.site-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-system { font-size: 10px; color: var(--primary); background: var(--primary-light); border-radius: 4px; padding: 1px 5px; }
.site-intro { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.site-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #f0f6ff; color: #5a8fd8; }
.tag-rec { background: #fff7e8; color: #d48806; }
.tag-crawl { background: #e9f9f1; color: var(--ok); }
.grid-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }

/* 卡片底部：点击量 + 标签 */
.site-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.site-clicks { font-size: 11px; color: var(--text-2); white-space: nowrap; }

/* 详情页：点击量徽标 + 访问站点按钮 */
.click-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 6px 16px; box-shadow: var(--shadow);
}
.click-pill small { font-size: 12px; color: var(--text-2); }
.click-pill b { font-size: 16px; font-weight: 800; color: var(--primary-deep); }
.btn-visit { height: 38px; padding: 0 22px; font-weight: 700; border-radius: 10px;
  background: linear-gradient(135deg, #3d8bff, #2b7fff); box-shadow: 0 4px 12px rgba(43,127,255,.3); }
.btn-visit:hover { background: linear-gradient(135deg, #2b7fff, #1a5fd0); }

/* ---------- 免责提示条 ---------- */
.disclaimer {
  margin-top: 16px; background: #fffbe8; border: 1px solid #f5e6b8; border-radius: var(--radius);
  padding: 10px 14px; font-size: 12px; color: #8a6d1a; display: flex; gap: 8px; align-items: flex-start;
}
.disclaimer b { flex-shrink: 0; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 30px; background: #fff; border-top: 1px solid var(--border); padding: 22px 0 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 12px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { text-align: center; color: #a8b6c8; font-size: 11px; margin-top: 12px; }

/* ---------- 通用页面头 ---------- */
.page-head { margin: 20px 0 14px; }
.page-title { font-size: 20px; font-weight: 800; }
.page-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.chip { padding: 5px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--text-2); cursor: pointer; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.detail-logo { width: 56px; height: 56px; border-radius: 14px; color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.detail-logo-img { border-radius: 14px; }
.detail-title { font-size: 20px; font-weight: 800; }
.detail-desc { color: var(--text-2); margin-top: 16px; white-space: pre-wrap; }
.detail-warn { margin-top: 16px; }

/* ---------- 比价表格 ---------- */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 11px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
th { background: #f6faff; color: var(--text-2); font-weight: 600; white-space: nowrap; }
td .price { color: var(--danger); font-weight: 700; font-size: 15px; }
.site-badge { display: inline-flex; align-items: center; gap: 6px; }
.fail-row td { color: var(--text-2); background: #fafbfd; }
.compare-notice { margin-bottom: 14px; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 640px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-item label .req { color: var(--danger); }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg);
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); background: #fff; }
.form-item textarea { min-height: 90px; resize: vertical; }
.form-tips { font-size: 11px; color: var(--text-2); margin-top: 4px; }

/* ---------- 弹窗 / 消息 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20,40,70,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 460px; max-height: 80vh; overflow-y: auto; }
.modal h3 { font-size: 16px; margin-bottom: 12px; }
.modal-body { font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.modal-foot { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: rgba(30,45,70,.92); color: #fff; padding: 9px 20px; border-radius: 20px; font-size: 13px;
  animation: fadein .2s;
}
.toast.err { background: rgba(220,80,80,.95); }
@keyframes fadein { from { opacity: 0; transform: translate(-50%, -6px);} to { opacity: 1; } }

.loading { text-align: center; color: var(--text-2); padding: 40px 0; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 移动端适配 ---------- */
@media (max-width: 860px) {
  .hero-main { padding: 24px 16px 20px; }
  .hero-badge { display: none; }
  /* 手机端：时钟卡片脱离悬浮，改为文档流全宽横条，避免盖住标题 */
  .clock-card {
    position: static; width: 100%; margin-bottom: 14px;
    flex-flow: row wrap; justify-content: space-between; align-items: center; row-gap: 8px;
    padding: 10px 14px; border-radius: 14px;
  }
  .clock-digits { width: 100%; justify-content: center; order: 3; gap: 4px; }
  .clock-digit { width: 23px; height: 34px; font-size: 20px; border-radius: 7px; box-shadow: inset 0 -4px 8px rgba(43,127,255,.10), 0 1px 4px rgba(43,127,255,.10); }
  .clock-digit.sec { box-shadow: inset 0 -4px 8px rgba(124,58,237,.10), 0 1px 4px rgba(124,58,237,.10); }
  .clock-colon { font-size: 16px; }
  .clock-live { font-size: 10px; margin-bottom: 0; }
  .clock-meta { margin-top: 0; gap: 6px; }
  .clock-date { font-size: 11px; }
  .clock-week { font-size: 10px; padding: 3px 7px; }
  .hero-search { padding-left: 12px; }
  .hero-search .btn { padding: 0 16px; }
  .stats-row { padding: 10px 2px; margin-top: 16px; }
  .stat-item { flex-direction: column; gap: 2px; text-align: center; }
  .stat-item b { font-size: 17px; }
  .dot-live { display: none; }
  .quote-table .q-title { max-width: 200px; }
  .nav-inner { height: 50px; gap: 8px; flex-wrap: nowrap; }
  .nav-links { display: none; }
  .nav .search-input { display: none; }
  .nav-search .btn span { display: none; }  /* 移动端按钮只留文字缩短 */
  .nav-search .btn { padding: 0 10px; }
  .grid-sites { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scroll-x > * { flex: 0 0 140px; }
  .detail-card { padding: 16px; }
}
/* 友链自助申请 */
.link-apply { margin-bottom: 18px; }
.link-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.link-row label { font-size: 13px; color: #667a99; width: 62px; flex-shrink: 0; text-align: right; }
.link-tip { font-size: 13px; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.tip-ok { background: #f0fbf4; color: #1a7f43; border: 1px solid #bfe8cd; }
.tip-warn { background: #fff9ef; color: #b26a00; border: 1px solid #f0d9a8; }

/* 首页友情链接墙 */
.home-links { background: #f6fafe; border-top: 1px solid #eaf1fb; padding: 22px 0 10px; margin-top: 26px; }
.hl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.hl-title { font-size: 16px; font-weight: 800; color: #18324f; }
.hl-sub { font-size: 12px; color: #8aa0bd; }
.hl-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-item { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e7eefb; border-radius: 10px; padding: 8px 12px; text-decoration: none; color: #244; font-size: 13px; max-width: 47%; transition: .15s; }
.hl-item:hover { border-color: #2b7fff; box-shadow: 0 2px 10px rgba(43,127,255,.12); transform: translateY(-1px); }
.hl-fav { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex-shrink: 0; background: #fff; }
.hl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-more { margin-top: 14px; }
.hl-more a { font-size: 13px; color: #2b7fff; text-decoration: none; font-weight: 600; }
@media (max-width: 480px) { .hl-item { max-width: 100%; } }

/* 首页友链区（仿竞站三段式：公告栏 + 最新点入横幅 + 网格；样式必须放这里，Vue 挂载会删 <style>） */
.flinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; background: #fff; border: 1px solid #e5ecf5; border-radius: 12px; padding: 12px; }
.flink-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #445b78; text-decoration: none; padding: 7px 10px; border-radius: 9px; background: #f8fafd; border: 1px solid #edf2f9; min-width: 0; transition: .15s; }
.flink-item:hover { color: #2b7fff; border-color: #bcd7ff; background: #eef5ff; transform: translateY(-1px); }
.flink-item img { width: 15px; height: 15px; border-radius: 3px; object-fit: contain; flex-shrink: 0; }
.flink-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 顶部公告栏：规则说明 + 申请收录 */
.flink-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #b25b00; background: linear-gradient(90deg, #fff7ec, #fffdfa); border: 1px solid #ffe2bd; border-radius: 10px; padding: 7px 12px; margin-bottom: 8px; }
.flink-notice-text { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flink-apply { flex-shrink: 0; font-size: 12px; color: #fff; background: linear-gradient(135deg, #ff7a45, #ff4d4f); padding: 3px 10px; border-radius: 20px; text-decoration: none; font-weight: 600; box-shadow: 0 1px 4px rgba(255, 90, 60, .35); transition: .15s; }
.flink-apply:hover { filter: brightness(1.07); color: #fff; }
/* 最新点入横幅：橙底 + 长文字滚动 */
.flink-latest { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #fff1e0, #ffe8cf); border: 1px solid #ffd9ad; border-radius: 10px; padding: 7px 12px; margin-bottom: 8px; overflow: hidden; }
.flink-latest-ico { flex-shrink: 0; font-size: 14px; line-height: 1; }
.flink-latest-scroll { flex: 1; overflow: hidden; }
.flink-latest-text { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #e8590c; }
.flink-latest-text.flink-roll { padding-left: 100%; animation: flinkRoll 14s linear infinite; }
@keyframes flinkRoll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* 最新点入的友链项高亮 */
.flink-item.flink-hot { border-color: #ffb3ac; background: #fff0ef; color: #c0392b; font-weight: 600; position: relative; }
.flink-newin { position: absolute; top: -7px; right: -4px; font-size: 9px; line-height: 1; background: #ff4d4f; color: #fff; padding: 2px 4px; border-radius: 6px 6px 6px 0; box-shadow: 0 1px 3px rgba(255, 77, 79, .4); white-space: nowrap; }
.dcard-hot { position: relative; }
.dcard-newin { position: absolute; top: 8px; right: 8px; font-size: 10px; background: #ff4d4f; color: #fff; padding: 2px 6px; border-radius: 8px 8px 8px 0; z-index: 2; box-shadow: 0 1px 3px rgba(255,77,79,.4); }

/* ---------- 右侧悬浮工具条：在线客服 / 商务合作 / 客服QQ / 回到顶部 ---------- */
.float-bar {
  position: fixed; right: 12px; bottom: 90px; z-index: 150;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(31, 45, 61, .14);
  border: 1px solid var(--border);
}
.float-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 64px; padding: 9px 0 8px;
  color: var(--text-2); font-size: 11px; line-height: 1.2;
  background: #fff; transition: background .15s, color .15s;
  user-select: none;
}
.float-btn + .float-btn { border-top: 1px solid var(--border); }
.float-btn:hover { background: var(--primary-light); color: var(--primary); }
.fb-ico { font-size: 19px; line-height: 1; }
.fb-service { background: var(--primary); color: #fff; }
.fb-service:hover { background: var(--primary-deep); color: #fff; }
.fb-top { color: var(--text-2); }
@media (max-width: 640px) {
  .float-bar { right: 8px; bottom: 76px; }
  .float-btn { width: 54px; padding: 7px 0 6px; }
  .fb-ico { font-size: 17px; }
  .float-btn { font-size: 10px; }
}

/* ---------- 夜间模式切换按钮 ---------- */
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--card); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s; user-select: none;
}
.theme-btn:hover { transform: rotate(-20deg) scale(1.08); border-color: var(--primary); }

/* ---------- 夜间模式（html.dark；默认白天不变） ---------- */
html.dark {
  --bg: #0d1420; --card: #16202f; --text: #e7eef9; --text-2: #92a2bb;
  --border: #243349; --primary-light: rgba(43, 127, 255, .18);
  --shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
html.dark body { background: var(--bg); color: var(--text); }
html.dark a { color: #6aa6ff; }
/* 导航 / 通用白底组件 → 深色卡底 */
html.dark .nav { background: rgba(13, 20, 32, .92); }
html.dark .search-input:focus, html.dark .btn-ghost, html.dark .modal, html.dark .footer,
html.dark .chip, html.dark .detail-card, html.dark .table-wrap, html.dark .form-card,
html.dark .site-logo-img, html.dark .fail-chip, html.dark .hl-item, html.dark .hl-fav,
html.dark .flinks, html.dark .float-bar, html.dark .float-btn, html.dark .theme-btn { background: var(--card); }
html.dark .float-btn:hover { background: var(--primary-light); color: #6aa6ff; }
html.dark .fb-service, html.dark .fb-service:hover { background: var(--primary); color: #fff; }
html.dark .btn-ghost { color: #6aa6ff; border-color: var(--primary); }
html.dark .btn-ghost:hover { background: var(--primary-light); }
/* hero 区深色化 */
html.dark .hero-main {
  background: linear-gradient(125deg, #14213a 0%, #101a2e 45%, #131f38 100%);
  border-color: #243349; box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}
html.dark .hero-search { background: var(--card); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
html.dark .hero-search input { color: var(--text); }
html.dark .hero-sub { color: #8ab6ff; }
html.dark .clock-card {
  background:
    linear-gradient(160deg, rgba(22, 32, 47, .96) 0%, rgba(18, 27, 44, .88) 100%) padding-box,
    linear-gradient(135deg, #9ec8ff, #c9b8ff 50%, #ffb1d4) border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
html.dark .clock-digit {
  color: #8ab6ff;
  background: linear-gradient(180deg, #1b2740 0%, #141d31 100%);
  border-color: rgba(43, 127, 255, .3);
  box-shadow: inset 0 -7px 12px rgba(43, 127, 255, .12), 0 2px 6px rgba(0, 0, 0, .4);
}
/* 横幅广告 / 提示条 */
html.dark .top-banner-inner { background: linear-gradient(90deg, #16223a, #131d31); }
html.dark .home-links { background: #10192a; border-top-color: var(--border); }
html.dark .flink-visit-box { background: #10192a; border-color: var(--border); }
html.dark .fv-title { color: var(--text); }
html.dark .notice-warn, html.dark .tip-ok, html.dark .tip-warn { background: #1a2334; }
/* 表格 / 徽章 / 杂项浅底 */
html.dark th { background: #1a2436; }
html.dark td { border-color: var(--border); }
html.dark .best-row td, html.dark .fail-row td { background: #121b2b; }
html.dark .rank { background: #1c2739; }
html.dark .rank-1 { background: #3a2f14; color: #f0b429; }
html.dark .rank-2 { background: #232e40; color: #9fb2cc; }
html.dark .rank-3 { background: #3a2418; color: #e08a5a; }
html.dark .tag { background: rgba(43, 127, 255, .14); color: #8ab6ff; }
html.dark .tag-rec { background: #33290f; color: #f0b429; }
html.dark .tag-crawl { background: #0f2b1f; }
html.dark .flink-item { background: #121b2b; border-color: var(--border); color: #a9b9d2; }
html.dark .flink-item:hover { background: var(--primary-light); border-color: var(--primary); color: #6aa6ff; }
html.dark .banner-dots i { background: #35465f; }
html.dark .scroll-x::-webkit-scrollbar-thumb { background: #2c3c56; }
/* 输入框 / 弹窗遮罩 */
html.dark input, html.dark select, html.dark textarea { background: var(--card); color: var(--text); border-color: var(--border); }
html.dark .form-item input:focus, html.dark .form-item select:focus, html.dark .form-item textarea:focus { background: var(--card); }
html.dark .modal-mask { background: rgba(0, 0, 0, .6); }
html.dark .toast { background: #1f2b40; color: var(--text); box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
/* 首页板块分类切换（全部 / 货源站 / 卡券建站） */
.board-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 16px}
.board-tab{border:1px solid var(--border);background:var(--card);color:var(--text-2);padding:6px 18px;border-radius:20px;font-size:13px;cursor:pointer;transition:.15s}
.board-tab:hover{border-color:var(--primary);color:var(--primary)}
.board-tab.active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}
html.dark .board-tab{border-color:#2c3c56;color:#9fb0c8;background:transparent}
html.dark .board-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
