/* 海南臻酷互动 — 瑞士网格 + 编辑色块 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,650;1,6..72,500&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #14120f;
  --muted: #5a564c;
  --line: #1a1814;
  --accent: #2f3dff;
  --lime: #c4ef4a;
  --danger: #b42318;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Newsreader", "Noto Sans SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }
button, .btn, a.tile, a.news-card { cursor: pointer; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Header: swiss boxed bar ---------- */
.frame-head {
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.head-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  margin-right: auto;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-zh {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--lime);
}

.user-chip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--lime);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-lime:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 6px 8px;
}
.btn-ghost:hover { color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.vip-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
}

/* ---------- Billboard ---------- */
.billboard {
  display: block;
  border: 2px solid var(--line);
  border-top: none;
  background: var(--paper);
  animation: rise 0.6s var(--ease) both;
}

.bill-main {
  padding: 36px 32px 32px;
}

.bill-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.bill-title {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.bill-desc {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 22px;
}

.bill-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bill-aside {
  background: var(--ink);
  color: #f6f1e8;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.bill-aside p { font-size: 14px; color: rgba(246, 241, 232, 0.75); }
.bill-aside strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--lime);
}

/* ---------- News tiles ---------- */
.page-main { flex: 1; padding: 36px 0 64px; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.block-head h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 650;
}

.block-head p { font-size: 13px; color: var(--muted); }

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--line);
}

.news-card {
  display: block;
  padding: 24px 22px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
  animation: rise 0.5s var(--ease) both;
}

.news-card:nth-child(2n) { border-right: none; }
.news-card:hover { background: #fff7d6; }
.news-card:hover h3 { color: var(--accent); }

.news-card .cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s var(--ease);
}

.news-card .excerpt {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lock-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--accent); }

/* ---------- Inner ---------- */
.page-banner {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.page-banner h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
}

.page-banner p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.article-box { max-width: 720px; }
.article-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 24px;
}
.article-content { font-size: 16px; line-height: 1.95; }
.article-content p { margin-bottom: 1.15em; }
.article-preview { position: relative; }
.article-preview .fade-mask {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.lock-panel {
  margin-top: 8px;
  padding: 28px 22px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--line);
}
.lock-panel h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px; }
.lock-panel p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Recharge bars ---------- */
.bar-list { display: grid; gap: 12px; margin-bottom: 20px; }

.plan-bar {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  transition: background 0.2s var(--ease);
}

.plan-bar:hover,
.plan-bar.is-selected { background: var(--lime); }

.plan-bar .name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
}

.plan-bar .desc { font-size: 13px; color: var(--muted); }
.plan-bar.is-selected .desc { color: var(--ink); }

.plan-bar .price {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
}
.plan-bar .price span { font-size: 13px; font-weight: 400; }

.confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
}

.confirm-row p { font-size: 14px; color: rgba(255,255,255,0.75); }
.confirm-row .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.confirm-row .btn:hover { background: #fff; border-color: #fff; }
.confirm-row a { color: var(--lime); }

/* ---------- Auth / contact ---------- */
.auth-box {
  max-width: 440px;
  margin: 8px auto 0;
  padding: 36px 32px;
  background: var(--paper);
  border: 2px solid var(--line);
}

.auth-box h1 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.auth-box .hint { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }

.form-footer { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.form-footer a { color: var(--accent); border-bottom: 1px solid var(--accent); }

.form-msg { margin-top: 12px; padding: 10px 12px; font-size: 13px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--lime); color: var(--ink); }
.form-msg.err { background: #fdecea; color: var(--danger); }

.contact-rows { border: 2px solid var(--line); background: var(--paper); margin-bottom: 32px; }
.contact-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row dt { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.contact-row dd { font-family: var(--display); font-size: 1.1rem; font-weight: 650; line-height: 1.45; }
.contact-row a:hover { color: var(--accent); }

.contact-form { max-width: 560px; }
.contact-form h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 28px 0 22px;
  background: var(--ink);
  color: rgba(246, 241, 232, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.16);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-contact { font-size: 13px; line-height: 1.85; max-width: 560px; }
.footer-contact a:hover { color: var(--lime); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 13px;
}

.footer-links a:hover { color: var(--lime); }

.footer-copy {
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.65;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--lime);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
  z-index: 10000;
  border: 2px solid var(--lime);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(20, 18, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pay-mask[hidden] { display: none !important; }
.pay-dialog {
  width: min(400px, 100%);
  padding: 28px 24px;
  background: var(--paper);
  border: 2px solid var(--line);
}
.pay-dialog h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 10px; }
.pay-summary { font-size: 16px; margin-bottom: 8px; }
.pay-hint { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.pay-actions { display: flex; gap: 10px; justify-content: flex-end; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .billboard,
  .tile-grid,
  .plan-bar,
  .footer-grid,
  .contact-row { grid-template-columns: 1fr; }
  .news-card:nth-child(2n) { border-right: none; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .head-grid { flex-wrap: wrap; }
  .brand { margin-right: 0; flex: 1; }
  .brand-zh { white-space: normal; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  .nav.open { display: flex; }
  .user-chip {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 10px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
}
