/* site-001 HK Casino Top — 可信排名儀表板 theme (per DNA spec v1) */
:root {
  --primary: #17324D;      /* 深藍 主色 */
  --secondary: #1F8A8A;    /* 青綠 輔色 */
  --accent: #F2B544;       /* 琥珀 強調色 */
  --bg: #F5F7FA;           /* 背景 淺灰白 */
  --bg-soft: #FFFFFF;      /* 卡片底 */
  --bg-muted: #EDF1F6;     /* 次級底 */
  --text: #1F2933;         /* 主文字 */
  --text-muted: #51606F;   /* 次文字 */
  --border: #D9E0E8;       /* 細邊框 */
  --border-strong: #B9C4D1;
  --shadow-sm: 0 1px 2px rgba(23, 50, 77, 0.04);
  --shadow: 0 4px 16px rgba(23, 50, 77, 0.06), 0 1px 2px rgba(23, 50, 77, 0.04);
  --shadow-lg: 0 12px 32px rgba(23, 50, 77, 0.10);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4 { margin: 0; color: var(--primary); font-weight: 800; line-height: 1.3; }
p { margin: 0; }

/* layout shell */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-shell { background: var(--bg); min-height: 100vh; }

/* header / nav */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; letter-spacing: 0.5px;
}
.brand-name { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand-name strong { color: var(--primary); font-size: 16px; font-weight: 800; }
.brand-name small { color: var(--text-muted); font-size: 12px; }
.main-nav { display: none; gap: 28px; font-size: 14px; font-weight: 600; }
.main-nav a { color: var(--text); }
.main-nav a:hover { color: var(--secondary); }
.nav-cta {
  background: var(--primary); color: white; padding: 10px 18px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: background 0.15s;
}
.nav-cta:hover { background: #0f2338; color: white; }
.hamburger { display: inline-flex; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: white; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--primary); margin: 3px 0; }
.mobile-drawer { display: none; background: white; border-bottom: 1px solid var(--border); padding: 16px 20px; }
.mobile-drawer.open { display: block; }
.mobile-drawer a { display: block; padding: 10px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
@media (min-width: 880px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
  .mobile-drawer { display: none !important; }
}

/* hero — ranking dashboard style */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse at top right, rgba(31, 138, 138, 0.10), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 138, 138, 0.08);
  color: var(--secondary);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.hero h1 {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.25;
}
@media (min-width: 900px) { .hero h1 { font-size: 44px; } }
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: #0f2338; color: white; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--bg-muted); color: var(--primary); }
.btn-text { background: transparent; color: var(--secondary); padding: 6px 0; }
.btn-text::after { content: " →"; }

/* ranking cards (hero right side) */
.top3-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.top3-panel-title {
  font-size: 13px; color: var(--text-muted); font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.top3-panel-title strong { color: var(--primary); font-size: 18px; letter-spacing: 0; text-transform: none; display: block; margin-top: 4px; }
.top3-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ranking-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, border-color 0.15s;
}
.ranking-card:hover { transform: translateY(-1px); border-color: var(--secondary); }
.rank-badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.rank-badge.gold { background: var(--accent); color: var(--primary); }
.rank-body h4 { font-size: 15px; color: var(--primary); font-weight: 800; }
.rank-body p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.rank-score { font-size: 22px; font-weight: 900; color: var(--secondary); }
.rank-score small { font-size: 11px; color: var(--text-muted); font-weight: 600; display: block; }

/* section */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-kicker {
  font-size: 12px; color: var(--secondary); font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.section-title {
  margin-top: 10px;
  font-size: 28px; color: var(--primary); font-weight: 900;
}
@media (min-width: 900px) { .section-title { font-size: 34px; } }
.section-sub {
  margin-top: 14px; color: var(--text-muted);
  font-size: 16px; max-width: 68ch;
}

/* comparison table / ranking list */
.rank-list {
  margin-top: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
@media (min-width: 780px) {
  .rank-row { grid-template-columns: 60px 2fr 1fr 1fr auto; }
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rank-big {
  font-size: 28px; font-weight: 900; color: var(--primary);
  width: 50px; text-align: center;
}
.rank-row .rank-big::before { content: "#"; color: var(--accent); }
.rank-row h4 { font-size: 17px; color: var(--primary); }
.rank-row .rank-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.rank-row .rank-score-big { font-size: 20px; font-weight: 900; color: var(--secondary); }
.rank-row .rank-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(242, 181, 68, 0.14);
  color: #8A5A00;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

/* method cards */
.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 680px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.method-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.method-card:hover { border-color: var(--secondary); }
.method-card .num {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-muted); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.method-card h3 { margin-top: 16px; font-size: 18px; }
.method-card p { margin-top: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* guide cards */
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 780px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.guide-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  color: inherit;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.guide-card img { aspect-ratio: 1200 / 640; object-fit: cover; width: 100%; background: var(--bg-muted); }
.guide-card .body { padding: 22px 24px; }
.guide-card .kicker { font-size: 12px; color: var(--secondary); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.guide-card h3 { margin-top: 8px; font-size: 18px; line-height: 1.45; }
.guide-card p { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.guide-card .more { margin-top: 14px; display: inline-block; color: var(--secondary); font-weight: 700; font-size: 13px; }

/* trust block */
.trust-block {
  margin-top: 32px;
  background: var(--bg-muted);
  border-left: 4px solid var(--secondary);
  padding: 22px 26px;
  border-radius: var(--radius);
}
.trust-block h4 { color: var(--primary); font-size: 17px; }
.trust-block p { margin-top: 10px; font-size: 14px; color: var(--text); }
.trust-block ul { margin-top: 12px; padding-left: 20px; font-size: 14px; color: var(--text); }
.trust-block li { margin-top: 6px; }

/* footer */
.site-footer {
  background: var(--primary);
  color: #E3EAF2;
  padding: 48px 0 28px;
  margin-top: 80px;
}
.site-footer a { color: #CCDAE6; }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand strong { color: white; font-size: 18px; }
.footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-col h5 { color: white; font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; }
.footer-note {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: #A8B6C3; line-height: 1.7;
}

/* article body (guide + review pages) */
.article-main {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding: 48px 0 64px;
}
@media (min-width: 960px) {
  .article-main { grid-template-columns: minmax(0, 1.2fr) 300px; }
}
.article-body {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  box-shadow: var(--shadow-sm);
}
.article-body .eyebrow { font-size: 12px; color: var(--secondary); font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.article-body h1 { margin-top: 10px; font-size: 32px; line-height: 1.3; }
.article-body .lead { margin-top: 16px; font-size: 17px; color: var(--text-muted); }
.article-body h2 { margin-top: 34px; font-size: 22px; color: var(--primary); }
.article-body h3 { margin-top: 22px; font-size: 17px; color: var(--primary); }
.article-body p { margin-top: 14px; line-height: 1.85; color: var(--text); }
.article-body ul, .article-body ol { margin-top: 14px; padding-left: 22px; }
.article-body li { margin-top: 8px; line-height: 1.85; }
.article-body .summary-box {
  margin-top: 22px;
  background: var(--bg-muted);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
}
.article-body .summary-box strong { color: var(--primary); display: block; margin-bottom: 8px; }

.article-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.article-aside h4 { font-size: 14px; color: var(--primary); font-weight: 800; }
.article-aside ul { margin-top: 14px; padding-left: 0; list-style: none; }
.article-aside li { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.article-aside a { color: var(--text); font-weight: 600; }
.article-aside a:hover { color: var(--secondary); }
.article-aside .aside-cta {
  margin-top: 20px;
  display: block; text-align: center;
  background: var(--primary); color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

/* hero image for articles */
.hero-figure {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-figure img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
