/* 海南迈汉思 — 夸张极简 / Exaggerated Minimalism */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Syne:wght@500;700;800&display=swap');

:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #0b0d10;
  --muted: #5c6570;
  --line: #d8dcd6;
  --accent: #0f6e56;
  --accent-soft: #e4f3ee;
  --danger: #b42318;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Syne", "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: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef1ec 0%, var(--bg) 28%, #eceee9 100%);
}

@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.news-row, a.plan-chip, .clickable { cursor: pointer; }

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

/* ---------- Floating nav ---------- */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px auto 0;
  width: min(var(--max), calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand-mini {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-mini span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-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-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 6px 8px;
}
.btn-ghost:hover { color: var(--ink); background: transparent; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

.vip-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- Hero mega type ---------- */
.hero {
  padding: 56px 0 28px;
  animation: rise 0.7s var(--ease) both;
}

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

.hero-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-desc {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
}

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

/* ---------- News numbered list ---------- */
.section {
  padding: 36px 0 64px;
  flex: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.news-stack { border-top: 1px solid var(--ink); }

.news-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
  animation: rise 0.55s var(--ease) both;
}

.news-row:hover { background: rgba(255, 255, 255, 0.55); }
.news-row:hover .news-title { color: var(--accent); }

.news-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color 0.2s var(--ease);
}

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

.news-side {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

/* ---------- Page banner ---------- */
.page-banner {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 32px;
  animation: rise 0.6s var(--ease) both;
}

.page-banner h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-banner p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 520px;
}

/* ---------- Article ---------- */
.article-box { max-width: 720px; animation: rise 0.6s var(--ease) both; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 28px;
}

.article-content { font-size: 16px; line-height: 1.95; }
.article-content p { margin-bottom: 1.2em; }
.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: 32px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.lock-panel h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lock-panel p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Recharge chips ---------- */
.plan-board {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.plan-list { display: grid; gap: 12px; }

.plan-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.plan-chip:hover,
.plan-chip.is-selected {
  border-color: var(--ink);
}

.plan-chip.is-selected {
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

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

.plan-desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.plan-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.plan-price span { font-size: 13px; font-weight: 500; color: var(--muted); }

.plan-confirm {
  padding: 28px 24px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 88px;
}

.plan-confirm h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.plan-confirm p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 20px; }
.plan-confirm .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan-confirm .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan-confirm a { color: #9fe0c8; }

/* ---------- Auth ---------- */
.auth-panel {
  max-width: 440px;
  margin: 8px auto 0;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--ink);
  animation: rise 0.6s var(--ease) both;
}

.auth-panel h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

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

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

.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: 14px; padding: 10px 12px; font-size: 13px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--accent-soft); color: var(--accent); }
.form-msg.err { background: #fdecea; color: var(--danger); }

/* ---------- Contact ---------- */
.contact-mega {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-bottom: 40px;
}

.contact-line {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-line dd {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.contact-line a:hover { color: var(--accent); }

.contact-form { max-width: 560px; }
.contact-form h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-contact { font-size: 13px; line-height: 1.85; max-width: 560px; }
.footer-contact a:hover { color: #fff; }

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

.footer-links a:hover { color: #fff; }

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

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

.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(11, 13, 16, 0.5);
  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(--surface);
  border: 1px solid var(--ink);
}
.pay-dialog h3 { font-family: var(--display); font-size: 1.4rem; 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(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .plan-board,
  .footer-grid,
  .news-row { grid-template-columns: 56px 1fr; }
  .news-side { grid-column: 2; text-align: left; }
  .plan-confirm { position: static; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    padding: 8px;
  }
  .nav.open { display: flex; }
  .topbar { position: relative; flex-wrap: wrap; }
  .user-chip { width: 100%; order: 3; padding-top: 8px; border-top: 1px solid var(--line); }
  .hero-name {
    white-space: normal;
    font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  }
  .contact-line { grid-template-columns: 1fr; gap: 6px; }
}
