/*
Theme Name: propfirm-intel
Theme URI: https://propfirmintel.cn
Description: propfirm情报局 — 自营交易公司评测对比站（6语种 · 明暗主题）
Version: 1.16.2
Author: propfirm情报局
Text Domain: propfirm-intel
Requires at least: 6.0
*/

/* ========== 变量 ========== */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #edf2ef;
  --surface-3: #e6ede9;
  --text: #12211b;
  --text-2: #5c6b64;
  --text-3: #84938c;
  --border: #dde6e1;
  --primary: #0d7a54;
  --primary-strong: #0a5f41;
  --primary-soft: rgba(13, 122, 84, .09);
  --accent: #e8a020;
  --accent-soft: rgba(232, 160, 32, .12);
  --danger: #c93b3b;
  --ok: #0d7a54;
  --header-bg: rgba(255, 255, 255, .9);
  --hero-glow1: rgba(13, 122, 84, .14);
  --hero-glow2: rgba(232, 160, 32, .10);
  --shadow: 0 10px 30px rgba(16, 44, 34, .08);
  --shadow-sm: 0 4px 14px rgba(16, 44, 34, .07);
  --brand-mark-fg: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans KR", "Malgun Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0a0f14;
  --surface: #10181f;
  --surface-2: #16212b;
  --surface-3: #1c2934;
  --text: #e7edf1;
  --text-2: #93a4ad;
  --text-3: #6f7f88;
  --border: #20303c;
  --primary: #2fd6a0;
  --primary-strong: #3ee6b0;
  --primary-soft: rgba(47, 214, 160, .12);
  --accent: #f0b54a;
  --accent-soft: rgba(240, 181, 74, .14);
  --danger: #f27474;
  --ok: #2fd6a0;
  --header-bg: rgba(10, 15, 20, .86);
  --hero-glow1: rgba(47, 214, 160, .10);
  --hero-glow2: rgba(240, 181, 74, .08);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --brand-mark-fg: #0a5f41;
  color-scheme: dark;
}

/* ========== 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 860px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--text-2); margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

/* ========== 按钮 / 标签 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--primary-soft); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
}
.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
html[data-theme="dark"] .chip.is-active { color: #0a5f41; }

/* ========== 顶部条 ========== */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar-note { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-btn::after { content: "▾"; font-size: 10px; color: var(--text-3); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 150px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  list-style: none; padding: 6px; display: none;
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  background: none; border: 0; border-radius: 7px; color: var(--text);
  font-size: 14px; cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.is-active { color: var(--primary); font-weight: 700; }

/* ========== 主导航 ========== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; color: var(--primary); display: inline-flex;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.brand-text em { font-style: normal; color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); color: var(--text-2);
  font-weight: 600; font-size: 15px; transition: all .18s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all .2s ease; }

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 0%, var(--hero-glow1), transparent 70%),
    radial-gradient(500px 260px at 85% 10%, var(--hero-glow2), transparent 70%);
}
.hero-inner { position: relative; text-align: center; max-width: 780px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13.5px; font-weight: 700; margin-bottom: 18px;
}
.hero-title { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.5px; margin-bottom: 16px; }
.hero-sub { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--primary); }
.stat span { font-size: 13.5px; color: var(--text-2); }

/* ========== 公司卡片 ========== */
.firm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.firm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.firm-card-head { display: flex; align-items: center; gap: 12px; }
.firm-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; font-weight: 800; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
html[data-theme="dark"] .firm-logo { color: #06120c; }
.firm-id { min-width: 0; }
.firm-name { font-size: 17px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.firm-rating { display: flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.rating-num { font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.firm-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.firm-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  margin: 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.metric dt { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.metric dd { margin: 0; font-weight: 700; font-size: 14px; font-family: var(--mono); line-height: 1.35; }
.firm-card-actions { display: flex; gap: 10px; }
.firm-card-actions .btn { flex: 1; }
.firm-card-actions .js-compare-toggle.is-added { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.firm-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3); }
.ext { color: var(--text-3); }
.ext:hover { color: var(--primary); }

/* ========== 筛选 ========== */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.firm-card.is-hidden { display: none; }

/* ========== 对比工具 ========== */
.compare-tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.compare-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.compare-select {
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  min-width: 200px;
}
.compare-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.compare-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); font-size: 13.5px; font-weight: 700;
}
.compare-chip button {
  border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1;
  padding: 0; opacity: .7;
}
.compare-chip button:hover { opacity: 1; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top;
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child, .compare-table th:first-child {
  position: sticky; left: 0; background: var(--surface-2); font-weight: 700; color: var(--text-2);
  z-index: 2; min-width: 150px;
}
.compare-table .firm-cell { font-weight: 800; font-size: 15px; }
.compare-table .cell-name { display: block; margin-bottom: 4px; }
.compare-table .stars { display: inline-flex; vertical-align: middle; margin-right: 4px; }
.compare-hint, .compare-max { font-size: 13.5px; color: var(--text-3); margin: 12px 0 0; }
.compare-empty { text-align: center; color: var(--text-3); padding: 30px 0; }

/* ========== 步骤 ========== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: 44px; font-weight: 800;
  color: var(--primary-soft); line-height: 1;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: none; border: 0; cursor: pointer;
  color: var(--text); font-weight: 700; font-size: 15.5px; text-align: left;
}
.faq-q .chev { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 20px 16px; margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ========== 资讯 ========== */
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.news-date { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 700; }
.news-card h3 { font-size: 16.5px; margin: 8px 0 8px; }
.news-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ========== 订阅 ========== */
.newsletter { padding: 60px 0; background: linear-gradient(120deg, var(--primary), var(--primary-strong)); }
.newsletter-inner { text-align: center; max-width: 620px; }
.newsletter-inner h2 { color: #fff; }
.newsletter-inner p { color: rgba(255, 255, 255, .85); }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.newsletter-form input {
  flex: 1; min-width: 240px; max-width: 360px;
  padding: 13px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .2); }
.newsletter-inner .btn { background: #fff; color: var(--primary-strong); }
.newsletter-ok { font-weight: 700; color: #fff !important; margin-top: 14px; }

/* ========== 页脚 ========== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 14px; }
.footer-col p { color: var(--text-2); font-size: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: var(--text-2); font-size: 14px; }
.footer-col ul a:hover { color: var(--primary); }
.footer-langtip { font-size: 12.5px; color: var(--text-3); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding: 18px 22px;
  font-size: 13px; color: var(--text-3);
}

/* ========== 公司详情 ========== */
.detail-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 30px 0 34px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.detail-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.firm-logo-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }
.detail-id { flex: 1; min-width: 220px; }
.detail-name { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-rating .stars svg { width: 18px; height: 18px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-cta { display: flex; flex-direction: column; gap: 10px; }
.detail-body { padding: 40px 22px 70px; }
.detail-desc { font-size: 16.5px; color: var(--text-2); max-width: 860px; }
.detail-section { margin-top: 40px; }
.detail-h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.detail-h2::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--primary); display: inline-block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.stat-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-card dt { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.stat-card dd { margin: 0; font-weight: 700; font-size: 15px; font-family: var(--mono); line-height: 1.4; }
.check-list { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.check-list li {
  position: relative; padding: 13px 16px 13px 42px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pros-list, .cons-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pros-list li, .cons-list li {
  position: relative; padding: 11px 16px 11px 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px;
}
.pros-list li::before, .cons-list li::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 9px; height: 9px; border-radius: 50%;
}
.pros-list li::before { background: var(--ok); }
.cons-list li::before { background: var(--danger); }
.related-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); transition: all .18s ease;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card .firm-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.related-name { font-weight: 700; flex: 1; }
.detail-note { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13.5px; }

/* ========== 通用页面 ========== */
.generic-page { padding: 60px 0 80px; }
.generic-title { font-size: 2rem; }
.generic-content { color: var(--text-2); }

/* ========== 返回顶部 ========== */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary); color: #fff; border: 0; font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .2s ease;
}
.back-top.is-visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-strong); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: 272px;
    background: var(--surface); border-left: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 6px; padding: 78px 18px 24px;
    transform: translateX(100%); transition: transform .25s ease;
    box-shadow: var(--shadow); z-index: 60; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 13px 14px; font-size: 15.5px; border-radius: var(--radius-sm); }
  .search-panel { max-height: 70vh; overflow-y: auto; }
}
/* 平板横屏 / 桌面小窗：压缩导航间距 */
@media (min-width: 1025px) and (max-width: 1320px) {
  .navbar-inner { gap: 10px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 7px 9px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .hero { padding: 60px 0 54px; }
  .hero-stats { gap: 28px; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-cta { flex-direction: row; }
}

/* ========== v1.2 知识库 / 工具箱 / 规则速查 ========== */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 34px 0 38px; }
.page-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.page-sub { color: var(--text-2); font-size: 16px; margin: 0; max-width: 680px; }

.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--text);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--text); }
.guide-card h3 { font-size: 16.5px; margin: 0; }
.guide-card p { color: var(--text-2); font-size: 14.5px; margin: 0; flex: 1; }
.guide-card-link { color: var(--primary); font-weight: 700; font-size: 13.5px; }
.section-cta { text-align: center; margin-top: 34px; }

.guide-section { margin-bottom: 34px; }
.guide-section h2 { font-size: 1.35rem; margin-bottom: 14px; position: relative; padding-left: 16px; }
.guide-section h2::before { content: ""; position: absolute; left: 0; top: .28em; width: 6px; height: 1.05em; border-radius: 3px; background: var(--primary); }
.guide-body { color: var(--text-2); font-size: 15.5px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.guide-body ul li { position: relative; padding-left: 26px; }
.guide-body ul li::before { content: "›"; position: absolute; left: 8px; color: var(--primary); font-weight: 800; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.tool-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.tool-desc { color: var(--text-3); font-size: 13.5px; margin-bottom: 18px; }
.tool-form { display: flex; flex-direction: column; gap: 12px; }
.tool-field label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.tool-field input, .tool-field select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 14.5px; font-family: var(--mono);
}
.tool-field input:focus, .tool-field select:focus { outline: none; border-color: var(--primary); }
.tool-actions { display: flex; gap: 10px; }
.tool-actions .btn { flex: 1; }
.tool-result {
  margin-top: 4px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--text);
  font-size: 14.5px; font-weight: 600;
}
.tool-result b { font-family: var(--mono); }
.tools-note { margin-top: 26px; color: var(--text-3); font-size: 13px; text-align: center; }

.rules-table thead th {
  position: sticky; top: 66px; z-index: 3; background: var(--surface-2);
  font-size: 13px; white-space: nowrap;
}
.rules-table td { font-size: 13px; }
.rules-table td:first-child { min-width: 190px; }

@media (max-width: 560px) {
  .tool-grid { grid-template-columns: 1fr; }
  .marquee { padding: 8px 0; }
  .marquee-card { padding: 6px 9px 6px 6px; gap: 8px; border-radius: 10px; }
  .mq-logo { width: 30px; height: 30px; border-radius: 6px; }
  .mq-name { font-size: 12px; }
  .mq-off { font-size: 10px; }
  .mq-code { font-size: 11px; padding: 3px 6px; }
  .marquee-group { gap: 8px; padding-right: 8px; }
  .clk-clocks { grid-template-columns: 1fr; }
  .coin { width: clamp(140px, 60vw, 170px); height: clamp(140px, 60vw, 170px); }
  .ct-head { flex-wrap: wrap; }
  .cal-toolbar { flex-direction: column; align-items: flex-start; }
  .cal-filters { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .fees-toolbar { flex-direction: column; }
  .fees-toolbar input { width: 100%; }
}

/* ========== v1.3 优惠码 ========== */
.tag-coupon {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px dashed var(--accent); white-space: nowrap;
}
.tag-coupon b { font-family: var(--mono); letter-spacing: .5px; }

.deals { padding: 56px 0; }
.deals-row {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.deal-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 16px; color: var(--text); transition: all .18s ease;
}
.deal-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); color: var(--text); transform: translateY(-2px); }
.deal-chip .firm-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.deal-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.deal-code { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.deal-code b { color: var(--accent); font-family: var(--mono); font-size: 14px; margin-left: 2px; }
.deals-note { text-align: center; color: var(--text-3); font-size: 12.5px; margin: 12px 0 0; }

.coupon-box {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 13.5px; font-weight: 600;
}
.coupon-box b { font-family: var(--mono); font-size: 16px; letter-spacing: 1px; }

/* ========== v1.4 复制保护 / 跑马灯 / 搜索 / 复制按钮 / 新工具 ========== */
body { user-select: none; -webkit-user-select: none; }
input, textarea, select, .search-panel, .tool-field input, .tool-field select, .newsletter-form input { user-select: text; -webkit-user-select: text; }

/* 优惠码跑马灯（参考 MondoTraders 卡片式） */
.marquee {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap; position: relative;
  padding: 10px 0;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--surface-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--surface-2), transparent); }
.marquee-track { display: inline-flex; animation: marquee 120s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: inline-flex; align-items: center; gap: 12px; padding-right: 12px; }
.marquee-card {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px 8px 8px;
  color: var(--text); transition: border-color .18s ease, transform .18s ease;
  flex-shrink: 0;
}
.marquee-card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.mq-logo { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.mq-logo img { width: 100%; height: 100%; object-fit: contain; }
.mq-logo .firm-logo { width: 100%; height: 100%; border-radius: 0; font-size: 15px; }
.mq-info { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mq-name { font-weight: 700; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.mq-off {
  display: inline-block; background: rgba(34, 197, 94, .15); color: var(--ok);
  font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; white-space: nowrap;
}
.mq-code {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.mq-code b { font-family: var(--mono); font-size: 13px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 复制按钮 */
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 22px; height: 22px; padding: 0 4px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .15s ease; vertical-align: middle; flex-shrink: 0;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn .icon-copy { width: 12px; height: 12px; }
.copy-btn .copy-ok { font-size: 12px; font-weight: 700; color: var(--ok); white-space: nowrap; padding: 0 2px; display: none; }
.copy-btn.is-copied { border-color: var(--ok); color: var(--ok); background: var(--primary-soft); }
.copy-btn.is-copied .copy-ok { display: inline-block; }
.tag-coupon .copy-btn { min-width: 20px; height: 20px; }
.tag-coupon .copy-btn .icon-copy { width: 11px; height: 11px; }
.coupon-box .copy-btn { min-width: 26px; height: 26px; }
.coupon-box .copy-btn .icon-copy { width: 14px; height: 14px; }

/* 搜索 */
.search-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s ease; flex-shrink: 0;
}
.search-toggle:hover { color: var(--primary); border-color: var(--primary); }
.search-toggle svg { width: 17px; height: 17px; }
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 16px 0 18px;
}
.search-panel input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 15px;
}
.search-panel input:focus { outline: none; border-color: var(--primary); }
.search-results { margin-top: 12px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.search-group { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin: 6px 2px 2px; }
.search-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text);
  transition: background .15s ease;
}
.search-item:hover { background: var(--primary-soft); color: var(--text); }
.si-name { font-weight: 600; font-size: 14.5px; }
.si-sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.search-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 14px; }

/* 新工具 */
.tool-wide { grid-column: 1 / -1; }
.pt-form .pt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.pt-add-row { grid-column: 1 / -1; }
.pt-list-title { font-size: 14px; color: var(--text-2); margin: 14px 0 8px; }
.pt-list { display: flex; flex-direction: column; gap: 10px; }
.pt-empty { padding: 18px; text-align: center; color: var(--text-3); border: 1px dashed var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.pt-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.pt-item.is-blown { border-color: var(--danger); background: rgba(220, 38, 38, .05); }
.pt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pt-name { font-weight: 700; flex: 1; }
.pt-pct { font-family: var(--mono); font-weight: 700; color: var(--primary); }
.pt-del { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.pt-del:hover { color: var(--danger); }
.pt-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.pt-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); }
.pt-item.is-blown .pt-bar i { background: var(--danger); }
.pt-meta { font-size: 12.5px; color: var(--text-3); }
.ev-hint { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }
.ev-hint.is-pos { background: var(--primary-soft); color: var(--primary); }
.ev-hint.is-neg { background: rgba(220, 38, 38, .08); color: var(--danger); }
.spec-table td { font-family: var(--mono); font-size: 13.5px; }
.spec-table td:first-child { min-width: 60px; }

/* ========== v1.7 教程中心 / 新闻频道 ========== */
.tutorial-cat { margin-bottom: 40px; }
.detail-h2 { font-size: 1.4rem; margin-bottom: 16px; position: relative; padding-left: 16px; }
.detail-h2::before { content: ""; position: absolute; left: 0; top: .25em; width: 6px; height: 1.05em; border-radius: 3px; background: var(--accent); }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { padding: 22px 24px; }
.news-item h3 { font-size: 1.05rem; margin: 6px 0; }
.news-item p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.news-date { display: inline-block; font-size: 12px; color: var(--text-3); font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }

/* ========== v1.8 logo ========== */
.firm-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; overflow: hidden; }
.firm-logo img { width: 100%; height: 100%; object-fit: contain; }
.firm-logo-lg { background: #fff; }
.firm-logo-lg img { padding: 6px; }
.cell-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; margin-right: 6px; vertical-align: middle; background: #fff; }
.cell-logo-sm { width: 16px; height: 16px; }

/* ========== v1.8 日历 / Copy工具 ========== */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cal-legend { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--text-2); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.imp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.imp-dot.imp-high { background: var(--danger); }
.imp-dot.imp-med { background: #f59e0b; }
.imp-dot.imp-low { background: #eab308; }
.cal-updated { font-size: 12.5px; color: var(--text-3); }
.cal-table td, .cal-table th { font-size: 13.5px; }
.cal-day-row td { background: var(--surface-2); font-weight: 800; font-size: 13px; color: var(--text-2); }
.cal-time { font-family: var(--mono); white-space: nowrap; }
.cal-imp { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.cal-imp.imp-high { background: rgba(220, 38, 38, .15); color: var(--danger); }
.cal-imp.imp-med { background: rgba(245, 158, 11, .15); color: #b45309; }
.cal-imp.imp-low { background: rgba(234, 179, 8, .12); color: #854d0e; }
.cal-event { font-weight: 600; min-width: 200px; }
.cal-wrap { overflow-x: auto; }

.ct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ct-logo { width: 42px; height: 42px; font-size: 18px; }
.ct-title h3 { font-size: 16px; margin: 0; }
.ct-rating { font-size: 12.5px; color: var(--text-2); }
.ct-rating small { color: var(--text-3); }
.ct-desc { color: var(--text-2); font-size: 14px; flex: 1; }
.ct-meta { margin: 10px 0; }
.ct-meta .tag { font-size: 11.5px; }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ct-price { font-size: 12.5px; color: var(--text-3); }
.ct-faq { margin-top: 44px; }

/* ========== v1.8.1 日历筛选与重点事件 ========== */
.cal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-filter {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
}
.cal-filter:hover { border-color: var(--primary); color: var(--primary); }
.cal-filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cal-filter-star.is-active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.cal-event-star {
  font-weight: 800; font-size: 15px; color: var(--text);
  background: linear-gradient(90deg, rgba(245, 158, 11, .22), rgba(245, 158, 11, .05));
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  padding: 2px 8px;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .22);
  white-space: normal;
}
.cal-day-row td { white-space: nowrap; }

/* ========== v1.9 时钟/硬币/手续费/性格测试 ========== */
.clk-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.clk-box {
  position: relative;
  background: linear-gradient(165deg, #0b1220 0%, #17203a 55%, #1e2a4a 100%);
  border-radius: 20px; padding: 24px 18px 20px; text-align: center;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}
.clk-box::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .9), rgba(56, 189, 248, .9), transparent);
}
.clk-label {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: #94a3b8;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.clk-label i { font-style: normal; font-size: 17px; }
.clk-time {
  display: flex; align-items: baseline; justify-content: center;
  font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 2px;
}
.clk-h, .clk-m {
  font-size: clamp(48px, 8vw, 96px); font-weight: 800; line-height: 1.05;
  background: linear-gradient(180deg, #fef3c7 0%, #f59e0b 55%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, .35));
}
.clk-sec {
  font-size: clamp(26px, 4.5vw, 48px); font-weight: 800;
  color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, .55);
  margin-left: 4px;
}
.clk-colon {
  font-size: clamp(30px, 5.5vw, 62px); font-weight: 800; line-height: 1;
  color: #f59e0b; margin: 0 3px;
  animation: clkBlink 1s steps(1) infinite;
}
@keyframes clkBlink { 50% { opacity: .12; } }
.clk-date { display: block; margin-top: 12px; font-size: 16px; font-weight: 700; color: #cbd5e1; }
.clk-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.clk-add { display: flex; align-items: center; gap: 6px; }
.clk-add input { width: 64px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-family: var(--mono); }
.clk-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-3); }
.clk-q { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.clk-q:hover { border-color: var(--primary); color: var(--primary); }
.clk-every5 { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.clk-list { display: flex; flex-wrap: wrap; gap: 8px; }
.clk-item { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; font-family: var(--mono); font-size: 14px; background: var(--surface); }
.clk-on { font-size: 11px; color: var(--ok); background: rgba(34, 197, 94, .12); padding: 1px 6px; border-radius: 999px; font-family: var(--font); }

.coin-mode { display: flex; gap: 8px; margin-bottom: 14px; }
.coin-m { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; cursor: pointer; }
.coin-m.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.coin-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0; }
.coin {
  width: clamp(150px, 22vw, 190px); height: clamp(150px, 22vw, 190px);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .35));
  transform-style: preserve-3d;
}
.coin-svg { width: 100%; height: 100%; display: block; }
.coin-edge { fill: url(#edgeGold); }
.coin-face { fill: url(#faceGold); }
.coin-ring { fill: none; stroke: rgba(120, 53, 15, .5); stroke-width: 1.6; }
.coin-ring2 { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 5; }
.coin.silver .coin-edge { fill: url(#edgeSilver); }
.coin.silver .coin-face { fill: url(#faceSilver); }
.coin.silver .coin-ring { stroke: rgba(71, 85, 105, .5); }
.coin.diamond .coin-edge { fill: url(#edgeDiamond); }
.coin.diamond .coin-face { fill: url(#faceDiamond); }
.coin.diamond .coin-ring { stroke: rgba(21, 94, 117, .5); }
.coin-letter {
  font-size: 68px; font-weight: 900; text-anchor: middle;
  fill: #ffffff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.coin-side {
  font-size: 17px; font-weight: 800; letter-spacing: 2px; text-anchor: middle;
  fill: rgba(255, 255, 255, .95); text-transform: uppercase;
}
.coin-shine { fill: rgba(255, 255, 255, .3); }
.coin.flipping { animation: coinToss 0.75s cubic-bezier(.2, .75, .25, 1); }
@keyframes coinToss {
  0%   { transform: rotateY(0deg) translateY(0) scale(1); }
  22%  { transform: rotateY(180deg) translateY(-42px) scale(1.08); }
  45%  { transform: rotateY(360deg) translateY(-16px) scale(1.02); }
  68%  { transform: rotateY(540deg) translateY(14px) scale(.97); }
  100% { transform: rotateY(720deg) translateY(0) scale(1); }
}
.coin.land { animation: coinLand 0.32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes coinLand {
  0%   { transform: scale(1, 1); }
  35%  { transform: scale(1.14, .82); }
  70%  { transform: scale(.94, 1.08); }
  100% { transform: scale(1, 1); }
}
.coin.heads { transform: rotateY(0); }
.coin.tails { transform: rotateY(360deg); }
.coin-result {
  font-size: 18px; font-weight: 800; color: var(--primary);
  min-height: 26px; opacity: 0; transform: scale(.5);
  transition: none;
}
.coin-result.show { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.coin-result.is-big { font-size: 24px; color: #f59e0b; }
@keyframes popIn {
  0% { opacity: 0; transform: scale(.4) translateY(8px); }
  60% { opacity: 1; transform: scale(1.12) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
.coin-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.coin-stats b { font-family: var(--mono); color: var(--text); }

.fees-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fees-toolbar input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.fees-src { display: flex; gap: 6px; }
.fees-s { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; cursor: pointer; }
.fees-s.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.fees-tbl th, .fees-tbl td { font-size: 13px; }
.fees-src-h { text-align: center; }
.fees-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.fees-cell span { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); }
.fees-low { background: rgba(34, 197, 94, .18) !important; color: var(--ok); font-weight: 800; }
.fees-range { background: rgba(245, 158, 11, .15) !important; color: #b45309; }
.fees-na { color: var(--text-3); opacity: .5; }
.fees-firm { font-weight: 600; white-space: nowrap; }

.mbti-box { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.mbti-progress { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.mbti-q { font-size: 1.1rem; max-width: 560px; }
.mbti-opts { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }
.mbti-opt { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px; cursor: pointer; text-align: left; transition: all .15s ease; }
.mbti-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.mbti-result-title { font-size: 1.2rem; }
.mbti-type { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.mbti-desc { max-width: 560px; color: var(--text-2); font-size: 14.5px; }
.mbti-dims { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mbti-dim { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; color: var(--text-2); }
.mbti-dim b { color: var(--text); }
.mbti-advice { max-width: 560px; font-size: 13px; color: var(--text-3); }

/* ========== v1.10 工具独立页 / 硬币升级 / 性格升级 / 时钟时段 ========== */
.tool-single .tool-card { box-shadow: var(--shadow-sm); }
.clk-sessions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--text-3); }
.clk-sess { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; background: var(--surface); }
.clk-sess i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.clk-sess.is-open i { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.clk-sess em { font-style: normal; color: var(--text-3); }
.clk-sess.is-open em { color: var(--ok); font-weight: 700; }

.coin-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.coin-opt { display: flex; align-items: center; gap: 8px; }
.coin-opt-label { font-size: 12.5px; color: var(--text-3); }
.coin-opt-btns { display: flex; gap: 6px; }
.coin-mat { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.coin-mat.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.coin.gold { background: linear-gradient(145deg, #f59e0b, #b45309); border-color: #fbbf24; }
.coin.silver { background: linear-gradient(145deg, #d1d5db, #6b7280); border-color: #e5e7eb; }
.coin.diamond { background: linear-gradient(145deg, #67e8f9, #0891b2); border-color: #a5f3fc; }
.coin-btn-hold { width: 100%; max-width: 320px; }
.coin-charge { display: none; height: 6px; border-radius: 3px; background: var(--surface-3); width: 200px; overflow: hidden; position: relative; }
.coin-charge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f59e0b, #ef4444); transform-origin: left; }
.coin-hold { font-size: 12px; color: var(--text-3); margin: 8px 0 0; text-align: center; }
.coin-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; max-width: 320px; margin: 12px auto 0; }
.coin-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); width: 0; transition: width .3s ease; }
.coin-hist { margin-top: 16px; }
.coin-hist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--text-2); font-weight: 700; }
.coin-hist-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 96px; overflow-y: auto; }
.coin-h { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--text-3); }
.coin-h.is-h { color: var(--ok); border-color: rgba(34, 197, 94, .4); }

.mbti-progress { width: 100%; max-width: 460px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mbti-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #f59e0b); transition: width .3s ease; }
.mbti-progress-num { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.mbti-radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.radar-title { font-size: 12.5px; color: var(--text-3); }
.radar { width: 220px; height: 220px; }
.radar-label { font-size: 12px; fill: var(--text-2); font-weight: 700; }
.mbti-actions { display: flex; gap: 10px; }

/* ========== v1.12 日历当天高亮 ========== */
.cal-day-row.is-today td {
  background: linear-gradient(90deg, rgba(245, 158, 11, .32), rgba(245, 158, 11, .10)) !important;
  color: #7c2d12 !important;
  border-left: 5px solid #f59e0b;
  font-size: 15.5px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(245, 158, 11, .25);
}
.cal-today-badge {
  font-style: normal; font-size: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 999px; padding: 2px 14px; margin-left: 10px;
  letter-spacing: 1px; box-shadow: 0 2px 10px rgba(245, 158, 11, .45);
  animation: todayPulse 2s ease-in-out infinite;
  display: inline-block; vertical-align: middle;
}
@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55), 0 2px 10px rgba(245, 158, 11, .4); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0), 0 2px 10px rgba(245, 158, 11, .4); }
}

/* ========== v1.12 出金对比 ========== */
.pay-methods { display: flex; flex-wrap: wrap; gap: 4px; min-width: 140px; }
.pay-m { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.pay-tbl td { font-size: 13px; vertical-align: middle; }
.pay-tbl .fees-firm a { font-weight: 600; }

/* ========== v1.12 公司比较库 ========== */
.cmp-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.cmp-firm { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 150px; }
.cmp-firm b { font-size: 17px; }
.cmp-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--border); padding: 4px; }
.cmp-vs { font-size: 22px; font-weight: 900; color: var(--accent); }
.cmp-table td { font-size: 13.5px; }
.cmp-label { font-weight: 700; color: var(--text-2); white-space: nowrap; width: 130px; }
.cmp-a, .cmp-b { min-width: 180px; }
.cmp-concl { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cmp-concl p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.cmp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 30px; }
.cmp-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.cmp-picker select { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 14px; min-width: 170px; }
.cmp-hot, .cmp-related { margin-top: 30px; }

/* ========== v1.13 公司详情增强 ========== */
.dist-bar { display: flex; flex-direction: column; gap: 7px; max-width: 520px; }
.dist-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dist-label { width: 30px; font-weight: 700; color: var(--text-2); }
.dist-track { flex: 1; height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.dist-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dist-cnt { width: 40px; text-align: right; color: var(--text-3); font-family: var(--mono); }
.ch-table td { font-size: 13px; }
.ch-size { font-weight: 800; white-space: nowrap; }
.ch-price { font-weight: 800; color: var(--ok); white-space: nowrap; }
.ch-orig { color: var(--text-3); text-decoration: line-through; white-space: nowrap; }
.stat-card dd small { color: var(--text-3); font-size: 12px; }
.stat-card .mq-off { font-size: 12px; }

/* ========== v1.14 风险徽章/结论/策略标记 ========== */
.detail-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid; letter-spacing: .5px; }
.badge-risk { }
.badge-verdict { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.policy-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.policy-label { color: var(--text-2); font-weight: 600; }
.policy-val { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.policy-ok .policy-val { background: rgba(34, 197, 94, .15); color: var(--ok); }
.policy-no .policy-val { background: rgba(220, 38, 38, .12); color: var(--danger); }
.policy-part .policy-val { background: rgba(245, 158, 11, .15); color: #b45309; }
.policy-unk .policy-val { background: var(--surface-2); color: var(--text-3); }

/* ========== v1.16 出金动态看板 ========== */
.paylive-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.paylive-stats .stat-card { text-align: center; }
.paylive-big { font-size: 26px; font-weight: 900; color: var(--primary); font-family: var(--mono); }
.paylive-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.paylive-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.paylive-tabs { display: flex; gap: 6px; background: var(--surface-3); border-radius: 12px; padding: 4px; }
.paylive-tab { border: 0; background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 9px; cursor: pointer; }
.paylive-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.paylive-toolbar input { flex: 1; min-width: 180px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.paylive-table td { font-size: 13.5px; }
.paylive-table th { white-space: nowrap; }
.paylive-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 6px; box-shadow: 0 0 0 3px rgba(18, 185, 129, .18); animation: paylivePulse 2s infinite; vertical-align: middle; }
@keyframes paylivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.paylive-tier { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-left: 6px; text-transform: uppercase; }
.tier-hot { background: rgba(245, 158, 11, .18); color: #b45309; }
.tier-warm { background: rgba(59, 111, 224, .12); color: var(--primary); }
.tier-cold { background: var(--surface-2); color: var(--text-3); }
.paylive-am { font-weight: 800; font-family: var(--mono); }
.paylive-last { color: var(--text-2); white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.paylive-note { margin-top: 26px; padding: 16px 20px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-2); }
.paylive-note h3 { margin: 0 0 8px; font-size: 14.5px; }
.paylive-note p { margin: 0 0 6px; line-height: 1.6; }

/* ========== v1.16.1 链上徽章 ========== */
.paylive-chain { font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-left: 6px; background: rgba(59, 111, 224, .14); color: #3b6fe0; border: 1px solid rgba(59, 111, 224, .3); }

/* ========== v1.16.2 出金动态入口 ========== */
.paylive-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.paylive-entry-stats { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; min-width: 280px; }
.paylive-entry-stats .stat-card { flex: 1; min-width: 160px; text-align: center; }
.paylive-entry-cta { flex-shrink: 0; }
