/* 港娛廊 · 香港網上賭場平台對照 — 正式樣式入口（/css/style.css）
   Palette: warm ink neutrals + dark bronze accent
   Layout: "left ledger / right column" — asymmetric, no card triplets */

:root {
  --ink: #1b1a17;
  --ink-soft: #3a3730;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --line: #d9d1bd;
  --bronze: #8a6a2f;
  --bronze-deep: #6b4f1e;
  --muted: #7c7566;
  --radius: 2px;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  --sans: "PingFang HK", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bronze-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; border-radius: var(--radius); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.brand__sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--ink-soft); font-size: 14px; padding: 7px 11px; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; color: var(--bronze-deep); border-bottom-color: var(--bronze); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- hero: offset 60/40 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: 40px;
  align-items: end;
  padding: 52px 0 30px;
  border-bottom: 1px solid var(--line);
}
.hero__copy { max-width: 40em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--bronze); display: inline-block; }
h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.22; letter-spacing: .01em; margin: 0 0 18px; font-weight: 800; }
.hero__lede { font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; }
.hero__figure { position: relative; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.92); }
.hero__caption { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 8px; }

/* ---------- data strip (ledger dots) ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.strip__cell { padding: 20px 18px 22px 20px; border-left: 1px solid var(--line); }
.strip__cell:first-child { border-left: 0; padding-left: 0; }
.strip__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.strip__k::before { content: "▪"; color: var(--bronze); font-size: 9px; }
.strip__v { font-family: var(--mono); font-size: 19px; font-weight: 600; margin-top: 6px; }
.strip__n { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- sections ---------- */
.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(20px, 2.4vw, 27px); margin: 0; letter-spacing: .02em; }
.section__head .rule { flex: 1 1 40px; height: 1px; background: var(--line); }
.section__head .more { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }

/* asymmetric 2-col category grid */
.catgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 26px 34px; }
.catcard { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.catcard img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius); }
.catcard h3 { margin: 0 0 6px; font-size: 17px; }
.catcard p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.catcard .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

/* latest list — single column with mono index */
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.latest li:first-child { padding-top: 0; }
.latest .idx { font-family: var(--mono); font-size: 12px; color: var(--bronze); letter-spacing: .1em; }
.latest .ttl { font-size: 16px; }
.latest .cat { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }

/* pull quote block */
.pull { border-left: 3px solid var(--bronze); padding: 6px 0 6px 22px; margin: 0; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.pull cite { display: block; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; letter-spacing: .08em; }

/* ---------- inner pages ---------- */
.pagehead { padding: 44px 0 26px; border-bottom: 1px solid var(--line); }
.pagehead p { margin: 10px 0 0; color: var(--ink-soft); max-width: 60em; }
.crumbs { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 14px; display: block; }
.crumbs a { color: var(--muted); }

/* article layout: left ledger column + right body */
.artwrap { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 44px; padding: 40px 0 56px; align-items: start; }
.artsides { position: sticky; top: 86px; }
.artsides__block { border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 26px; }
.artsides__k { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.artsides__v { font-size: 13.5px; line-height: 1.7; }
.artsides ul { list-style: none; margin: 0; padding: 0; }
.artsides li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; }
.artsides li:last-child { border-bottom: 0; }

.article h1 { font-size: clamp(25px, 3.4vw, 36px); margin-bottom: 14px; }
.article .byline {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: .08em; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
}
.article h2 { font-size: clamp(19px, 2.2vw, 24px); margin: 38px 0 12px; padding-left: 12px; border-left: 3px solid var(--bronze); line-height: 1.45; }
.article h3 { font-size: 17.5px; margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--radius); }
.article figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.article blockquote { margin: 24px 0; padding: 14px 20px; background: var(--paper-2); border-left: 3px solid var(--bronze); font-size: 15.5px; color: var(--ink-soft); }
.article blockquote p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--paper-2); font-weight: 600; }
td.num { font-family: var(--mono); }

.faq { margin: 32px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }

.backcat { margin-top: 34px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; }

/* related list in article footer */
.related { margin-top: 40px; border-top: 1px solid var(--ink); padding-top: 18px; }
.related h2 { border: 0; padding: 0; font-size: 17px; margin: 0 0 12px; }
.related ol { list-style: none; margin: 0; padding: 0; }
.related li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.related li:last-child { border-bottom: 0; }
.related .tag { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 8px; letter-spacing: .06em; }

/* category listing */
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; }
.catlist img { width: 148px; height: 104px; object-fit: cover; border-radius: var(--radius); }
.catlist h2 { font-size: 18px; margin: 0 0 6px; border: 0; padding: 0; }
.catlist p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.catlist .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfc7b6; padding: 44px 0 28px; font-size: 13.5px; line-height: 1.8; }
.footer a { color: #e2dbcb; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr); gap: 30px; padding-bottom: 26px; border-bottom: 1px solid #3a3730; }
.footer h3 { font-size: 13px; letter-spacing: .05em; color: #a99d84; margin: 0 0 10px; font-family: var(--mono); font-weight: 500; }
.footer p { margin: 0 0 8px; }
.footer .legal { padding-top: 18px; font-family: var(--mono); font-size: 11.5px; color: #9a9384; letter-spacing: .04em; }
.footer .disc { margin-top: 10px; color: #9a9384; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 34px; }
  .hero__figure { order: -1; }
  .catgrid { grid-template-columns: minmax(0, 1fr); }
  .artwrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .artsides { position: static; order: 2; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__cell { border-top: 1px solid var(--line); }
  .strip__cell:nth-child(1), .strip__cell:nth-child(2) { border-top: 0; }
  .strip__cell:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav { display: none; flex-direction: column; width: 100%; margin: 0; padding: 8px 0 14px; border-top: 1px solid var(--line); }
  .topbar__inner { flex-wrap: wrap; }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .catlist li { grid-template-columns: minmax(0, 1fr); }
  .catlist img { width: 100%; height: 160px; }
  .latest li { grid-template-columns: 44px minmax(0, 1fr); }
  .latest .cat { grid-column: 2; }
  .catcard { grid-template-columns: 76px minmax(0, 1fr); }
  .catcard img { width: 76px; height: 76px; }
  .section { padding: 34px 0; }
  .pagehead { padding: 30px 0 20px; }
}
