/* 棋友联盟官网 · 暖色 + 大字 + 圆润大圆角 + 崂山石主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #e3a052; --gold-d: #c97f2a; --ink: #3a2a14; --ink-2: #6b4f2a;
  --cream: #fbf6ec; --cream-2: #f3e8d4; --stone: #2c2620; --line: #ecd9b8;
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251,246,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 24px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #ffb052, var(--gold-d)); color: #fff; font-size: 22px; box-shadow: 0 4px 12px rgba(201,127,42,.35); }
.nav-links a { font-size: 18px; color: var(--ink-2); margin-left: 26px; font-weight: 600; }
.nav-links a:hover { color: var(--gold-d); }

/* 主视觉 */
.hero { background: radial-gradient(1200px 400px at 70% -10%, #fff3df 0%, var(--cream) 60%); padding: 56px 0 64px; }
.hero-in { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-kicker { display: inline-block; font-size: 16px; color: var(--gold-d); font-weight: 700; background: #fff3df; border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 64px; font-weight: 900; letter-spacing: 2px; color: var(--ink); margin-bottom: 14px; }
.hero-sub { font-size: 22px; color: var(--ink-2); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 32px; border-radius: 16px; font-size: 19px; font-weight: 700; transition: transform .12s, box-shadow .12s; }
.btn-primary { background: linear-gradient(135deg, #ffb052, var(--gold-d)); color: #fff; box-shadow: 0 8px 20px rgba(201,127,42,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,127,42,.45); }
.btn-ghost { background: #fff; color: var(--ink-2); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }

/* 小程序码卡片 */
.hero-card { flex: 0 0 280px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px; text-align: center; box-shadow: 0 16px 40px rgba(120,90,40,.14); }
.qr-box { width: 210px; height: 210px; margin: 0 auto 14px; border-radius: 20px; overflow: hidden; background: var(--cream-2); }
.qr-img { width: 100%; height: 100%; object-fit: contain; }
.qr-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--ink-2); font-size: 18px; font-weight: 700; }
.qr-tip { font-size: 17px; color: var(--ink-2); font-weight: 600; }

/* 区块 */
.sec { padding: 60px 0; }
.sec-alt { background: var(--cream-2); }
.sec-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 36px; color: var(--ink); }
.muted { color: var(--ink-2); font-size: 19px; margin-bottom: 24px; }

/* 功能卡 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; text-align: center; box-shadow: 0 8px 22px rgba(120,90,40,.08); transition: transform .12s; }
.card:hover { transform: translateY(-4px); }
.card-ico { font-size: 44px; margin-bottom: 12px; }
.card-h { font-size: 23px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.card-p { font-size: 17px; color: var(--ink-2); }

/* 联盟 */
.league-in { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; }
.league-text { flex: 1 1 420px; }
.league-text p { font-size: 20px; color: var(--ink-2); margin: 10px 0 18px; }
.league-list { list-style: none; }
.league-list li { font-size: 19px; color: var(--ink); padding: 10px 0 10px 34px; position: relative; }
.league-list li::before { content: "♟"; position: absolute; left: 0; color: var(--gold-d); font-size: 22px; }
.league-stat { flex: 0 0 280px; display: grid; gap: 16px; }
.league-stat .stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center; }
.league-stat .stat b { display: block; font-size: 28px; color: var(--gold-d); font-weight: 900; }
.league-stat .stat span { font-size: 17px; color: var(--ink-2); }

/* 底部引导 */
.foot-cta { background: radial-gradient(900px 300px at 50% 120%, #fff3df, var(--cream)); }

/* 页脚 */
.foot { background: var(--stone); color: #d8cdbb; padding: 28px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 16px; }
.foot-links { display: flex; gap: 20px; align-items: center; }
.foot-links a:hover { color: var(--gold); }

/* 手机适配 */
@media (max-width: 760px) {
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 19px; }
  .nav-links a { margin-left: 16px; font-size: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sec-title { font-size: 28px; }
  .hero-in { gap: 32px; }
  .hero-card { flex: 1 1 100%; }
}
