/* AI足球策信數據 — 深色專業主題 */
:root {
  --bg: #0b0e14;
  --bg2: #11151f;
  --card: #161b28;
  --border: #232a3d;
  --text: #e8ecf4;
  --muted: #8b93a7;
  --accent: #f0b429;
  --accent2: #22c55e;
  --red: #ef4444;
  --link: #6ea8fe;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 頂欄 */
header.top {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--text); text-decoration: none; cursor: pointer; }
.brand:hover { text-decoration: none; opacity: .88; }
.brand .ai { color: var(--accent); }
nav a { margin-left: 22px; color: var(--muted); font-size: 15px; }
nav a:hover, nav a.active { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 64px 20px 48px; }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.hero h1 .ai { color: var(--accent); }
.hero .tagline { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.hero .stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 32px; }
.hero .stat { text-align: center; }
.hero .stat .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.hero .stat .lbl { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-block; background: var(--accent); color: #111;
  font-weight: 700; padding: 12px 32px; border-radius: 8px; font-size: 16px;
  border: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 卡 */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}
.card h2 { font-size: 20px; margin-bottom: 14px; }
.card h2 .star { color: var(--accent); }

/* 表 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.hl td { color: var(--accent); font-weight: 700; }

/* 價錢 */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; }
.price-card.featured { border-color: var(--accent); }
.price-card .p-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-card .p-price { font-size: 40px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.price-card .p-per { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 20px; }
.price-card li { padding: 6px 0; color: var(--muted); font-size: 14px; }
.price-card li::before { content: "✓ "; color: var(--accent2); }
.badge {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: #2a2410; color: var(--accent); border: 1px solid var(--accent); margin-bottom: 12px;
}

/* 貼士卡 */
.pick { border-left: 4px solid var(--accent); }
.pick .match { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pick .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pick .strat { display: inline-block; background: #1a2338; padding: 4px 12px; border-radius: 6px; font-size: 14px; margin-bottom: 8px; }
.pick .stars { color: var(--accent); letter-spacing: 2px; }
.pick .odds { font-size: 14px; color: var(--muted); }

/* 表單 */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.field input {
  width: 100%; padding: 12px; border-radius: 8px; font-size: 16px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
}
.msg { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; display: none; }
.msg.err { display: block; background: #2a1215; border: 1px solid var(--red); color: #fca5a5; }
.msg.ok { display: block; background: #0f2a1a; border: 1px solid var(--accent2); color: #86efac; }

/* 文章 */
.article-body h1 { font-size: 28px; margin: 32px 0 16px; }
.article-body h2 { font-size: 21px; margin: 28px 0 12px; color: var(--accent); }
.article-body p { margin-bottom: 16px; color: #c9d1e0; }
.article-body table { margin: 20px 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 8px 16px; margin: 20px 0;
  color: var(--muted); background: var(--bg2); border-radius: 0 8px 8px 0;
}
.article-body ul { margin: 12px 0 16px 24px; color: #c9d1e0; }
.article-body li { margin-bottom: 6px; }
.article-body em { color: var(--muted); }
.article-list .card a.title { font-size: 19px; font-weight: 700; color: var(--text); }
.article-list .card a.title:hover { color: var(--accent); text-decoration: none; }
.article-list .desc { color: var(--muted); font-size: 14px; margin-top: 6px; }

footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; }
footer .disc { max-width: 700px; margin: 12px auto 0; line-height: 1.6; }

.section { padding: 36px 0; }
.section h2.sec-title { font-size: 24px; margin-bottom: 20px; text-align: center; }
.sec-sub { text-align: center; color: var(--muted); margin-bottom: 28px; }

.lock { text-align: center; padding: 48px 20px; }
.lock .big { font-size: 48px; margin-bottom: 16px; }

/* ---- 視覺效果（亮眼） ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card { animation: rise .45s ease both; }
.card.pick {
  border: 1px solid #33405a;
  box-shadow: 0 0 0 1px rgba(212,175,55,.07), 0 10px 28px rgba(0,0,0,.38);
}
.pick .stars { text-shadow: 0 0 9px rgba(212,175,55,.55); animation: starPulse 2.6s ease-in-out infinite; }
@keyframes starPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
#preview-cycle::before, #cycle-label::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; margin-right: 8px; vertical-align: 1px;
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: sheen 3.4s ease-in-out infinite; pointer-events: none;
}
@keyframes sheen { 0%, 55% { left: -70%; } 100% { left: 135%; } }
#chart { filter: drop-shadow(0 0 7px rgba(46,204,113,.22)); }
footer .rg { max-width: 700px; margin: 10px auto 0; line-height: 1.7; }
footer .foot-links { margin-top: 10px; }
footer .foot-links a { color: var(--muted); text-decoration: underline; }
.fb-chat { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #00c6ff, #0078ff 55%, #7b2ff7); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); z-index: 999; transition: transform .15s ease; }
.fb-chat:hover { transform: scale(1.08); }
.fb-chat svg { width: 30px; height: 30px; fill: #fff; }
