:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #6b7687;
  --line: #e7eaef;
  --brand: #c0392b;      /* 中国红,华人社区亲切感 */
  --brand-dark: #9c2a1f;
  --gold: #d9a441;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20,30,50,.06);
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 15px; }
a { color: inherit; text-decoration: none; }

.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 19px; color: var(--brand); display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand-dom { color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-links { display: flex; gap: 18px; font-size: 14px; overflow-x: auto; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
.nav-portal { color: var(--brand) !important; font-weight: 600; }

.hero { background: linear-gradient(160deg, #fbeae8, #f6f7f9 70%); padding: 60px 22px 50px; }
.hero-in { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.hero-sub { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 560px; }

.country-pick { margin-top: 40px; }
.pick-label { font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.country-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: all .18s; display: block; }
.country-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 8px 24px rgba(192,57,43,.12); }
.flag { font-size: 30px; }
.c-name { font-weight: 700; font-size: 16px; margin-top: 10px; }
.c-sub { color: var(--muted); font-size: 12px; }
.c-hot { color: var(--brand); font-size: 12px; margin-top: 8px; }

/* 区块 */
.section { max-width: var(--maxw); margin: 0 auto; padding: 50px 22px; }
.sec-t { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.sec-t::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; margin-right: 10px; vertical-align: -2px; }

/* 话题板块 */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.topic { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .18s; }
.topic:hover { border-color: var(--brand); }
.topic h3 { font-size: 16px; font-weight: 700; }
.topic p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* 热门讨论 */
.hot { padding-top: 0; }
.hot-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hot-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.hot-row:last-child { border-bottom: none; }
.hot-row:hover { background: #fafbfc; }
.hot-c { font-size: 12px; color: var(--brand); background: #fbeae8; padding: 2px 10px; border-radius: 20px; flex-shrink: 0; width: 64px; text-align: center; }
.hot-t { flex: 1; font-size: 14.5px; }
.hot-r { color: var(--muted); font-size: 12.5px; flex-shrink: 0; }
.hot-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 20px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px; text-align: center; }
.foot-brand { font-weight: 700; color: var(--brand); }
.foot-note { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.foot-note a { color: var(--brand); }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; } .hero-sub { font-size: 15px; }
  .hot-c { width: 52px; font-size: 11px; }
  .hot-t { font-size: 13.5px; }
}
