/* ============================================================
   Hong Kong Blockchain Association - hongkongblockchain.org
   ============================================================ */
:root {
  --bg: #070d1a;
  --bg-2: #0b1526;
  --panel: #101d33;
  --panel-2: #14243f;
  --line: rgba(96, 165, 250, 0.18);
  --text: #e8eef8;
  --muted: #9db0cc;
  --blue: #3b82f6;
  --cyan: #38bdf8;
  --gold: #f0b429;
  --grad: linear-gradient(135deg, #38bdf8 0%, #3b82f6 55%, #6366f1 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Inter", "Microsoft JhengHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff; letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
}
.brand-text .brand-zh { font-size: 17px; font-weight: 700; line-height: 1.25; }
.brand-text .brand-en { font-size: 11px; color: var(--muted); letter-spacing: 0.4px; }

nav.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px;
  color: var(--muted); font-weight: 500; transition: all 0.2s;
}
nav.main-nav a:hover { color: #fff; background: rgba(59, 130, 246, 0.12); text-decoration: none; }
nav.main-nav a.active { color: #fff; background: rgba(59, 130, 246, 0.22); }

/* ---------- Hero Poster (top of page) ---------- */
.hero-poster { padding: 28px 0 0; background: var(--bg-2); }
.poster-feature { margin: 0; }
.poster-feature img {
  display: block; width: 100%; max-width: 1180px; margin: 0 auto;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(56, 189, 248, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 15% 110%, rgba(99, 102, 241, 0.14), transparent),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4); color: var(--cyan);
  font-size: 13.5px; letter-spacing: 1px; margin-bottom: 26px;
  background: rgba(56, 189, 248, 0.08);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.25;
  background: linear-gradient(90deg, #fff 30%, #7dd3fc 70%, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: clamp(15.5px, 2vw, 18.5px); color: var(--muted);
  max-width: 760px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 32px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; transition: all 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(59,130,246,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(59,130,246,0.5); text-decoration: none; }
.btn-ghost { border: 1px solid rgba(125, 211, 252, 0.4); color: #7dd3fc; }
.btn-ghost:hover { background: rgba(56,189,248,0.1); text-decoration: none; }

/* ---------- Sections ---------- */
section.block { padding: 78px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker {
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.45); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3 .en { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tag {
  display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: rgba(59,130,246,0.15); color: #93c5fd; margin-bottom: 12px;
  border: 1px solid rgba(59,130,246,0.3);
}

/* feature icons */
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ---------- Book section ---------- */
.book-wrap {
  display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center;
}
.book-gallery { display: flex; flex-direction: column; gap: 18px; }
.book-gallery .book-feature img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  border: 1px solid rgba(125,211,252,0.25);
  transition: transform 0.25s;
}
.book-gallery .book-feature img:hover { transform: translateY(-6px) scale(1.01); }
.book-gallery .book-thumbs { display: flex; gap: 18px; justify-content: center; }
.book-gallery .book-thumbs img {
  width: 158px; border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
  border: 1px solid rgba(125,211,252,0.25);
  transition: transform 0.25s;
}
.book-gallery .book-thumbs img:hover { transform: translateY(-6px); }

.author-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px;
}
.author-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px;
  transition: border-color 0.2s;
}
.author-card:hover { border-color: rgba(56,189,248,0.45); }
.author-card img {
  width: 76px; height: 76px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(125,211,252,0.35); flex-shrink: 0;
}
.author-card img.round { border-radius: 50%; }
.author-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.author-card span { color: var(--muted); font-size: 13.5px; line-height: 1.6; display: block; }
.book-info h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.book-info .book-sub { color: var(--cyan); font-size: 17px; font-weight: 600; margin-bottom: 20px; }
.book-info p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.book-meta { list-style: none; margin: 22px 0 28px; }
.book-meta li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); }
.book-meta li strong { color: var(--text); }

/* ---------- Conference photo ---------- */
.conf-photo { margin: 44px 0 0; text-align: center; }
.conf-photo img {
  display: block; width: 100%; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(125,211,252,0.25);
  transition: transform 0.25s;
}
.conf-photo img:hover { transform: translateY(-5px) scale(1.005); }
.conf-photo figcaption {
  margin-top: 14px; color: var(--muted); font-size: 14px; letter-spacing: 0.3px;
}

/* ---------- People (leadership) ---------- */
.person-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; transition: border-color 0.2s, transform 0.2s;
}
.person-card:hover { border-color: rgba(56,189,248,0.45); transform: translateY(-3px); }
.person-card .role {
  font-size: 12.5px; color: var(--cyan); font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.person-card h3 { font-size: 18px; margin-bottom: 2px; }
.person-card .person-en { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.person-card p { font-size: 13.8px; color: var(--muted); }
.person-card p a { word-break: break-all; }
.person-card .person-photo {
  width: 100%; height: 210px; object-fit: cover; object-position: 50% 26%;
  border-radius: 10px; margin-bottom: 14px;
  border: 1px solid rgba(125,211,252,0.3);
}

.role-group { margin-bottom: 58px; }
.role-group > h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 6px;
  padding-left: 14px; border-left: 4px solid var(--blue);
}
.role-group > .rg-en {
  color: var(--muted); font-size: 14px; margin-bottom: 24px; padding-left: 18px;
}

/* ---------- Prose pages (speech / guide / news) ---------- */
.prose {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(28px, 5vw, 60px);
  max-width: 900px; margin: 0 auto;
}
.prose h2 { font-size: 23px; margin: 40px 0 16px; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 12px; color: #bae6fd; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose .speech-block {
  border-left: 4px solid var(--blue); padding: 14px 20px; margin: 20px 0;
  background: rgba(59,130,246,0.07); border-radius: 0 10px 10px 0;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 44px 0; text-align: center;
}
.stats-strip .num {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-strip .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Timeline (events) ---------- */
.event-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.event-item:last-child { border-bottom: none; }
.event-item .when { color: var(--cyan); font-weight: 700; font-size: 15px; }
.event-item h3 { font-size: 19px; margin-bottom: 8px; }
.event-item p { color: var(--muted); font-size: 14.8px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #050a14; border-top: 1px solid var(--line);
  padding: 64px 0 34px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { font-size: 15px; margin-bottom: 16px; color: #fff; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 13.8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #64748b; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .person-grid { grid-template-columns: repeat(2, 1fr); }
  .book-wrap { grid-template-columns: 1fr; }
  .author-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .person-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; }
  .event-item { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 64px 0 60px; }
}

/* ---------- Book heading above poster ---------- */
.book-head { padding-top: 44px; }

/* ---------- Book cover feature + description ---------- */
.book-desc-sec { padding-top: 56px; }
.book-cover-feature { margin: 0 0 36px; text-align: center; }
.book-cover-feature img {
  display: block; width: 100%; max-width: 920px; margin: 0 auto;
  border-radius: 16px; border: 1px solid rgba(125,211,252,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transition: transform 0.25s;
}
.book-cover-feature img:hover { transform: translateY(-6px) scale(1.005); }
.book-desc { text-align: left; padding: 36px 40px; }
.book-desc .bd-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
.book-desc .bd-title .bd-en { color: var(--cyan); font-size: 0.72em; }
.bd-meta { list-style: none; margin: 0 0 26px; }
.bd-meta li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.bd-meta li strong { color: var(--text); }
.bd-meta a { color: var(--cyan); }
.book-desc h3 {
  font-size: 18px; margin: 30px 0 12px; color: var(--gold, #f0b429);
  border-left: 3px solid var(--cyan); padding-left: 12px;
}
.book-desc p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.book-desc strong { color: var(--text); }
.bd-links { margin: 0 0 8px 20px; color: var(--muted); font-size: 15px; }
.bd-links li { padding: 4px 0; }
.bd-links a { color: var(--cyan); }
.rudao-note {
  margin-top: 32px; padding: 24px 26px; border-radius: 12px;
  background: rgba(240, 180, 41, 0.06); border: 1px solid rgba(240, 180, 41, 0.35);
}
.rudao-note h3 { margin-top: 0; border-left-color: var(--gold, #f0b429); color: var(--gold, #f0b429); }
.rudao-note .rudao-hint { color: var(--cyan); font-size: 13.5px; margin-bottom: 14px; }

/* ---------- Full-width title hero (top of homepage) ---------- */
.title-hero {
  width: 100%;
  background:
    radial-gradient(ellipse 65% 120% at 50% -25%, rgba(56,189,248,0.20), transparent 70%),
    radial-gradient(ellipse 45% 90% at 85% 110%, rgba(240,180,41,0.10), transparent 70%),
    linear-gradient(180deg, #05070d 0%, #0a1424 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 20px 66px;
  text-align: center;
  overflow: hidden;
}
.title-hero-inner { max-width: 1320px; margin: 0 auto; }
.title-hero .th-kicker {
  font-size: clamp(22px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: 0.10em;
  line-height: 1.15;
  text-transform: uppercase;
  background: linear-gradient(92deg, #f6d365 0%, #f0b429 32%, #fff6d0 52%, #f0b429 72%, #e0a01f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 26px rgba(240, 180, 41, 0.35));
}
.title-hero .th-main {
  margin: 18px 0 0;
  font-size: clamp(38px, 8.5vw, 104px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.06em;
  color: #fff;
}
.title-hero .th-main span { position: relative; display: inline-block; z-index: 0; isolation: isolate; }
.title-hero .th-main span::after {
  content: ""; position: absolute; left: -10px; right: -10px; bottom: 8%;
  height: 34%; border-radius: 6px; z-index: -1;
  background: linear-gradient(90deg, rgba(56,189,248,0.50) 0%, rgba(56,189,248,0.28) 45%, rgba(240,180,41,0.55) 100%);
  filter: blur(0.5px);
}
.title-hero .th-sub {
  margin: 26px auto 0; max-width: 900px;
  font-size: clamp(14px, 1.6vw, 19px);
  color: var(--muted); line-height: 1.7;
}
@media (max-width: 640px) {
  .title-hero { padding: 48px 16px 44px; }
  .title-hero .th-kicker { letter-spacing: 0.06em; }
}

/* ---------- Speech video ---------- */
.video-feature { margin: 0 0 40px; text-align: center; }
.video-feature video {
  display: block; width: 100%; max-width: 920px; margin: 0 auto;
  border-radius: 16px; background: #000;
  border: 1px solid rgba(125,211,252,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  height: auto; max-height: 78vh;
}
.video-feature figcaption {
  margin-top: 14px; color: var(--muted); font-size: 14px; letter-spacing: 0.3px;
}

/* ---------- Speech video: mobile sizing ---------- */
@media (max-width: 820px) {
  .video-feature { margin: 0 0 30px; padding: 0 6px; }
  .video-feature video {
    width: 100%; max-width: 100%; height: auto;
    aspect-ratio: 16 / 9; object-fit: contain;
    max-height: 40vh;
    border-radius: 10px;
  }
}
@media (max-width: 480px) {
  .video-feature { padding: 0 10px; }
  .video-feature video { max-height: 34vh; border-radius: 8px; }
}
