/* New88 – base.css
   设计主题：Nhịp chơi mới（纸感米色 + 深绿 + 青柠）
   结构：变量 → 重置 → 版式 → 通用组件 → 页头/抽屉 → 页脚/移动底栏 */

:root {
  --paper: #f7f2e6;
  --paper-2: #efe8d8;
  --card: #fffdf8;
  --ink: #12261e;
  --ink-2: #46584e;
  --ink-3: #6d7d72;
  --line: #d9e0cd;
  --line-2: #c6d1b8;
  --green: #0f3d2e;
  --green-2: #1b5a43;
  --lime: #c9f07a;
  --lime-2: #e4f7b8;
  --amber: #f4a62a;
  --coral: #e4633a;
  --sky: #2f7fbf;
  --violet: #6b4fa3;
  --mint: #e8f2e2;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 20px 44px -34px rgba(18, 38, 30, .55);
  --shadow-sm: 0 8px 20px -14px rgba(18, 38, 30, .5);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(15, 61, 46, .09) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 800; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--green); }

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 5vw, 3.45rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--green);
  background: linear-gradient(transparent 64%, rgba(201, 240, 122, .8) 64%);
  padding: 0 .06em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-pill); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sec { padding: 64px 0; position: relative; }
.sec--tint { background: rgba(232, 242, 226, .6); border-block: 1px solid var(--line); }
.sec__note { color: var(--ink-2); font-size: .92rem; margin: 14px 0 0; }
.sec__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 标题区 ---------- */
.head { max-width: 820px; margin-bottom: 30px; }
.head--center { margin-inline: auto; text-align: center; }
.head--split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: end; max-width: none; }
.head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.head p { color: var(--ink-2); margin-bottom: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px;
}
.kicker b {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  background: var(--green); color: var(--lime); border-radius: var(--radius-pill);
  font-size: .72rem; letter-spacing: .04em;
}
.kicker span { letter-spacing: .14em; }
.link-arrow { font-weight: 800; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--green); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: var(--lime); color: var(--green); border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  padding: 6px 14px 6px 10px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(228, 99, 58, .16); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 2px solid transparent; border-radius: var(--radius-pill);
  font-weight: 800; font-size: .95rem; letter-spacing: -.01em; line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 12px 24px -18px rgba(15, 61, 46, .9); }
.btn--green:hover { background: var(--green-2); color: #fff; }
.btn--lime { background: var(--lime); color: var(--green); }
.btn--lime:hover { background: var(--lime-2); color: var(--green); }
.btn--ghost { background: transparent; border-color: var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--green); }
.btn--sm { padding: 9px 18px; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- 顶部滚动条 ---------- */
.ribbon {
  background: var(--green); color: var(--lime); overflow: hidden;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ribbon__track { display: flex; gap: 22px; align-items: center; padding: 7px 0; width: max-content; animation: ribbon 32s linear infinite; }
.ribbon__track i { color: rgba(201, 240, 122, .55); font-style: normal; }
.ribbon__track span { white-space: nowrap; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- 页头 ---------- */
.mast {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 242, 230, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast__in { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__tiles { display: inline-flex; gap: 3px; }
.brand__tiles b {
  display: grid; place-items: center; width: 25px; height: 29px;
  background: var(--green); color: var(--lime); font-size: .82rem; font-weight: 800;
  border-radius: 7px; transform: rotate(-2deg);
}
.brand__tiles b:nth-child(2) { background: var(--amber); color: var(--green); transform: rotate(2deg); }
.brand__tiles b:nth-child(3) { background: var(--green-2); color: #fff; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-size: 1.12rem; letter-spacing: -.02em; }
.brand__txt small { font-size: .68rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 700;
  color: var(--ink-2);
}
.nav a:hover { background: var(--mint); color: var(--green); }
.nav a[aria-current="page"] { background: var(--mint); color: var(--green); }
.nav--sub { margin-left: 0; }
.nav--sub a { color: var(--ink-3); font-weight: 600; }
.mast__end { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--card); place-items: center;
}

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(360px, 92vw);
  background: var(--paper); border-left: 1px solid var(--line);
  padding: 18px 20px 28px; transform: translateX(102%);
  transition: transform .28s ease; display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
body.menu-open { overflow: hidden; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; }
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px dashed var(--line-2); font-weight: 700;
}
.drawer__list a span { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.drawer__list a[aria-current="page"] { color: var(--green); }
.drawer__list a[aria-current="page"] span { color: var(--coral); }
.drawer__cta { justify-content: center; }
.drawer__meta { margin: auto 0 0; font-size: .8rem; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.foot { background: var(--green); color: rgba(255, 255, 255, .82); margin-top: 0; padding: 52px 0 26px; }
.foot a { color: rgba(255, 255, 255, .86); }
.foot a:hover { color: var(--lime); }
.foot .brand { color: #fff; }
.foot .brand:hover { color: #fff; }
.foot .brand__tiles b { background: var(--lime); color: var(--green); }
.foot .brand__tiles b:nth-child(2) { background: var(--amber); color: var(--green); }
.foot .brand__tiles b:nth-child(3) { background: #fff; color: var(--green); }
.foot .brand__txt strong { color: #fff; }
.foot .brand__txt small { color: rgba(201, 240, 122, .8); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot__about { margin: 16px 0; font-size: .9rem; color: rgba(255, 255, 255, .72); max-width: 34ch; }
.foot__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__facts span {
  padding: 4px 11px; border: 1px solid rgba(201, 240, 122, .4); border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; color: var(--lime);
}
.foot__col h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.foot__stripe {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem; color: rgba(255, 255, 255, .6);
}
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 14px; font-size: .78rem; color: rgba(255, 255, 255, .6);
}
.foot__bottom nav { display: flex; gap: 16px; }
.foot__legal { margin-top: 16px; font-size: .74rem; line-height: 1.6; color: rgba(255, 255, 255, .45); max-width: 90ch; }

/* ---------- 移动底栏 ---------- */
.dock {
  display: none; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
  background: rgba(255, 253, 248, .97); border: 1px solid var(--line-2);
  border-radius: 18px; box-shadow: var(--shadow); padding: 6px;
  grid-template-columns: repeat(5, 1fr);
}
.dock a {
  display: grid; gap: 2px; place-items: center; padding: 6px 2px; border-radius: 12px;
  font-size: .62rem; font-weight: 700; color: var(--ink-3);
}
.dock a span { font-family: var(--mono); font-size: .58rem; color: var(--line-2); }
.dock a[aria-current="page"] { background: var(--mint); color: var(--green); }
.dock a[aria-current="page"] span { color: var(--coral); }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--card); font-weight: 500;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(201, 240, 122, .7); outline-offset: 1px; border-color: var(--green);
}
.field.has-error input, .field.has-error select, .field.has-error textarea, .check.has-error span {
  border-color: var(--coral); color: var(--coral);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { background: #fff5f1; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); }
.form-msg { min-height: 1.2em; margin: 6px 0 0; font-size: .84rem; font-weight: 700; color: var(--green); }
.form-msg.is-error { color: var(--coral); }
.form-note { font-size: .76rem; color: var(--ink-3); margin: 4px 0 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.table caption { text-align: left; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--mint); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--line-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(232, 242, 226, .45); }
.table td:first-child { font-weight: 700; }
.table--tight th, .table--tight td { padding: 9px 11px; font-size: .84rem; }

/* ---------- 标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips--sticky { position: sticky; top: 84px; z-index: 40; background: rgba(247, 242, 230, .96); backdrop-filter: blur(8px); padding: 10px 0; margin-bottom: 10px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  background: var(--card); font-size: .84rem; font-weight: 700; color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.filter-note { font-size: .84rem; color: var(--ink-3); min-height: 1.4em; margin: 0 0 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; background: none; border: 0; text-align: left; font-weight: 700;
}
.faq__sign { position: relative; width: 16px; height: 16px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--green);
  border-radius: 2px; transform: translateY(-50%);
}
.faq__sign::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translateY(-50%) rotate(0); }
.faq__a { display: none; padding: 0 18px 16px; font-size: .9rem; color: var(--ink-2); }
.faq__item.is-open .faq__a { display: block; }

/* ---------- CTA ---------- */
.cta {
  background: var(--green); color: #fff; border-radius: 26px; padding: 46px 44px;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border: 2px dashed rgba(201, 240, 122, .45); border-radius: 50%;
}
.cta h2 { color: #fff; }
.cta h2 em { color: var(--lime); background: none; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 60ch; }
.cta--soft { background: var(--mint); color: var(--ink); border: 1px solid var(--line); margin-top: 40px; }
.cta--soft h2 { color: var(--ink); }
.cta--soft p { color: var(--ink-2); }
.cta--soft::after { border-color: rgba(15, 61, 46, .18); }

/* ---------- 杂项 ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 88px; z-index: 80; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--green);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); z-index: 150;
  background: var(--green); color: #fff; padding: 11px 20px; border-radius: var(--radius-pill);
  font-size: .86rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 响应式页头/页脚 ---------- */
@media (max-width: 1080px) {
  .nav--sub { display: none; }
  .mast__in { gap: 16px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .mast__cta { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .dock { display: grid; }
  body { padding-bottom: 76px; }
  .to-top { bottom: 96px; }
  .head--split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(1160px, 100% - 28px); }
  .sec { padding: 46px 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__stripe { gap: 10px; }
  .cta { padding: 32px 22px; }
  .chips--sticky { top: 76px; }
  .field-row { grid-template-columns: 1fr; }
  .table { min-width: 480px; }
}
