/* =========================================================
   椰林海南麻将 · 官网 共用样式
   用途：官网 + 苹果 App Store 审核合规页（隐私政策/用户协议/客服/关于）
   主题：海岛深青绿 + 金沙金，适配移动端与桌面端
   ========================================================= */

:root {
  --ink: #0b2a33;          /* 主深青 */
  --ink-2: #0d3c48;        /* 次深青 */
  --ink-3: #0a2730;        /* 最深 */
  --sea: #14664a;          /* 深绿 */
  --sea-2: #1e8a5f;        /* 亮绿 */
  --gold: #f2c14e;         /* 金沙金 */
  --gold-2: #e8a53a;
  --gold-soft: #ffe6a8;
  --paper: #ffffff;
  --paper-2: #f4f7f6;      /* 浅灰绿，法律页正文背景 */
  --text: #183038;
  --text-soft: #4c6268;
  --text-faint: #7d9298;
  --line: #e2e9e7;
  --danger: #e8433a;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 14px 40px rgba(11, 42, 51, .12);
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper-2);
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--sea-2); text-decoration: none; }
a:hover { color: var(--sea); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 42, 51, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(242, 193, 78, .18);
  color: #eaf4f2;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .5px; white-space: nowrap; }
.brand .logo-dot {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #fff2c8, #e8a72e);
  color: #5f3a00; font-size: 17px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand small { font-size: 11px; font-weight: 800; color: var(--gold-soft); background: rgba(242,193,78,.16); border: 1px solid rgba(242,193,78,.5); border-radius: 20px; padding: 2px 9px; letter-spacing: 1px; }
.brand .brand-logo { height: 56px; width: auto; display: block; align-self: center; }
.qr-img { width: 132px; height: 132px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; flex: 1; }
.nav a {
  color: #cfe0dd; font-size: 14.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: #fff; background: rgba(242,193,78,.18); }
.header-cta {
  background: linear-gradient(135deg, #f0b545, #d98f1f); color: #5f3a00;
  font-weight: 900; font-size: 14px; padding: 9px 18px; border-radius: 22px;
  white-space: nowrap; box-shadow: 0 6px 16px rgba(217,143,31,.35);
}
.header-cta:hover { color: #5f3a00; filter: brightness(1.06); }
.menu-btn { display: none; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--ink-3); color: #aec4c0; font-size: 13px; margin-top: 56px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand { color: #fff; font-weight: 900; font-size: 16px; }
.foot-brand p { color: #8fa9a3; font-size: 12.5px; font-weight: 400; margin-top: 10px; line-height: 1.9; }
.foot-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 12px; }
.foot-col a { display: block; color: #aec4c0; font-size: 13px; padding: 4px 0; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-legal {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11.5px; color: #7f9a95; line-height: 2;
}
.foot-legal .lbl { color: #cfe0dd; font-weight: 700; }
.foot-legal .warn { color: var(--gold-soft); }
.foot-legal .rate {
  display: inline-block; margin-right: 8px; background: #fff; color: #1d78b8;
  font-weight: 900; border-radius: 6px; padding: 0 8px; line-height: 1.6; font-size: 12px;
}
.todo { border-bottom: 1px dashed #e8a72e; cursor: help; }
.todo::after { content: "〔待补〕"; color: #e8a72e; font-size: 11px; margin-left: 3px; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 26px; font-weight: 900; letter-spacing: .5px; cursor: pointer; }
.btn-gold { background: linear-gradient(135deg, #f0b545, #d98f1f); color: #5f3a00; padding: 14px 32px; font-size: 16px; box-shadow: 0 10px 26px rgba(217,143,31,.35); }
.btn-gold:hover { color: #5f3a00; filter: brightness(1.06); }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; padding: 12px 28px; font-size: 15px; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------------- 首页 hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 18% -10%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(ellipse at 82% 6%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(165deg, #0d3c48 0%, #0a2730 60%, #0b2a33 100%);
}
.hero .wrap { padding-top: 78px; padding-bottom: 88px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--gold-soft); letter-spacing: 2px; }
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 900; margin-top: 14px; letter-spacing: 1px; }
.hero h1 .accent { color: var(--gold-soft); }
.hero .lead { font-size: 17px; color: #cfe0dd; margin-top: 18px; line-height: 1.9; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; font-size: 12.5px; color: #9fb8b3; }
.hero-meta b { display: block; font-size: 15px; color: #fff; }
.hero-meta span { display: block; }
.hero-art {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #12466b, #0b2138);
  border: 1px solid rgba(242,193,78,.35);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.hero-art .tile { font-size: 46px; }
.hero-art .art-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: #cfe3fb; }

/* ---------------- 通用 section ---------------- */
.section { padding: 64px 0; }
.section.light { background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .kick { font-size: 12px; letter-spacing: 4px; color: var(--gold-2); font-weight: 800; }
.section-title h2 { font-size: 28px; font-weight: 900; color: var(--ink); margin-top: 8px; }
.section-title p { color: var(--text-soft); margin-top: 10px; font-size: 14.5px; }

/* 特色网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 6px 18px rgba(11,42,51,.05);
}
.card .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #fff3d1, #ffe6a8); margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 900; color: var(--ink); }
.card p { color: var(--text-soft); font-size: 13.5px; margin-top: 8px; }

/* 合规声明条 */
.compliance { background: linear-gradient(150deg, #0d3c48, #0a2730); color: #eaf4f2; }
.compliance .note-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(242,193,78,.35);
  border-radius: var(--radius); padding: 22px 24px; font-size: 13.5px; line-height: 2;
}
.compliance .note-card b { color: var(--gold-soft); }
.compliance .rate-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1d78b8; font-weight: 900; border-radius: 10px; padding: 4px 12px; margin-right: 10px; }

/* 下载区 */
.download-zone { text-align: center; }
.download-zone .stores { display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; border-radius: 14px;
  background: #111; color: #fff; padding: 12px 26px; font-weight: 800; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.12);
}
.store-btn:hover { color: #fff; background: #222; }
.store-btn small { display: block; font-size: 11px; font-weight: 400; color: #aaa; }
.store-btn .big { font-size: 18px; }

/* ---------------- 法律/协议页（隐私、协议、客服、关于） ---------------- */
.legal-hero {
  background: linear-gradient(165deg, #0d3c48, #0a2730); color: #fff; padding: 56px 0 48px;
}
.legal-hero h1 { font-size: 32px; font-weight: 900; }
.legal-hero .meta { color: #9fb8b3; font-size: 13px; margin-top: 10px; }
.legal-body { padding: 48px 0 64px; }
.legal-body .paper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 46px 50px; max-width: 860px; margin: 0 auto;
}
.legal-body .paper h2 { font-size: 20px; font-weight: 900; color: var(--ink); margin: 30px 0 12px; }
.legal-body .paper h2:first-child { margin-top: 0; }
.legal-body .paper p { color: var(--text); margin: 10px 0; font-size: 14.5px; }
.legal-body .paper ul, .legal-body .paper ol { padding-left: 22px; margin: 10px 0; color: var(--text); font-size: 14.5px; }
.legal-body .paper li { margin: 7px 0; }
.legal-body .paper .lead { font-size: 15px; color: var(--text); background: var(--paper-2); border-left: 4px solid var(--gold-2); padding: 14px 18px; border-radius: 8px; }
.legal-body .paper .table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.legal-body .paper .table th, .legal-body .paper .table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body .paper .table th { background: var(--paper-2); font-weight: 800; color: var(--ink); }
.legal-body .paper .toc { background: var(--paper-2); border-radius: 10px; padding: 16px 20px; font-size: 13.5px; }
.legal-body .paper .toc a { display: inline-block; margin: 3px 10px 3px 0; }
.legal-body .paper .stamp { color: var(--text-faint); font-size: 12.5px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 客服页 */
.qr-box { display: flex; gap: 26px; align-items: center; background: var(--paper-2); border: 1px dashed var(--gold-2); border-radius: var(--radius); padding: 22px; }
.qr-fake { width: 130px; height: 130px; flex: none; border-radius: 10px; background: repeating-conic-gradient(#e8ecf0 0 90deg, #fff 90deg 180deg) 0 0/16px 16px; border: 1px solid var(--line); position: relative; }
.qr-fake::after { content: "二维码"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa; font-size: 12px; font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 900; color: var(--ink); padding: 18px 0 6px; font-size: 15px; }
.faq-a { color: var(--text-soft); font-size: 14px; padding-bottom: 18px; }

/* 关于页 资质表 */
.lic-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lic-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.lic-table td:first-child { color: var(--text-faint); width: 180px; }
.lic-table td:last-child { font-weight: 700; color: var(--ink); }

/* 健康游戏忠告 */
.health-warn {
  background: #fff8ec; border: 1px solid #f0d9a8; border-left: 5px solid var(--gold-2);
  border-radius: 10px; padding: 18px 20px; color: #6b4a08; font-size: 14px; line-height: 2; margin: 20px 0;
}
.health-warn b { color: #a45300; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .legal-body .paper { padding: 30px 26px; }
}
@media (max-width: 680px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink-3); padding: 10px 18px 16px; border-bottom: 1px solid rgba(242,193,78,.2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .menu-btn { display: inline-flex; margin-left: auto; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 12px; font-size: 16px; cursor: pointer; }
  .header-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 60px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 44px 0; }
}
