/* 海南臻胜互动 — Nature Distilled 暖陶 / 居中圆角资讯流 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --cream: #f5f0e1;
  --sand: #e8dcc8;
  --paper: #fffaf3;
  --ink: #3a2a22;
  --muted: #6d5c50;
  --terra: #c67b5c;
  --clay: #9a5538;
  --olive: #5f6d3e;
  --danger: #a33a2e;
  --max: 720px;
  --wide: 960px;
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Playfair Display", "Songti SC", 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", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(198, 123, 92, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 10%, rgba(95, 109, 62, 0.1), transparent 45%),
    var(--cream);
}

@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.story { cursor: pointer; }

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

/* ---------- Pill header ---------- */
.top {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(var(--wide), calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid rgba(58, 42, 34, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.brand-zh {
  font-family: var(--display);
  font-size: clamp(0.88rem, 1.6vw, 1.08rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 2px;
}

.nav a {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(58, 42, 34, 0.18);
  background: var(--paper);
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--clay);
  color: #fffaf3;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease);
}

.btn:hover { background: var(--terra); }
.btn-outline {
  background: transparent;
  color: var(--clay);
  box-shadow: inset 0 0 0 1.5px var(--clay);
}
.btn-outline:hover { background: var(--clay); color: #fffaf3; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
}
.btn-ghost:hover { background: transparent; color: var(--ink); }
.btn-olive { background: var(--olive); }
.btn-olive:hover { background: #4c5832; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.vip-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--sand);
  color: var(--clay);
  font-size: 11px;
  border-radius: 999px;
}

/* ---------- Hero blob ---------- */
.hero {
  padding: 48px 0 12px;
  text-align: center;
  animation: rise 0.6s var(--ease) both;
}

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

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 22px;
}

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

/* ---------- Story stream ---------- */
.main { flex: 1; padding: 28px 0 64px; }

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.stream-head h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

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

.story {
  display: block;
  padding: 22px 22px 20px;
  margin-bottom: 14px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(58, 42, 34, 0.06);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  animation: rise 0.5s var(--ease) both;
}

.story:hover { box-shadow: 0 10px 32px rgba(198, 123, 92, 0.16); }
.story:hover h3 { color: var(--clay); }

.story .meta {
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

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

.story .excerpt { font-size: 14px; color: var(--muted); }
.lock-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--olive); }

/* ---------- Inner ---------- */
.page-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

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

.article-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 22px;
}

.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: 100px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  border-radius: 0 0 var(--r) var(--r);
}

.lock-panel {
  margin-top: 8px;
  padding: 28px 22px;
  text-align: center;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(58, 42, 34, 0.06);
}

.lock-panel h3 { font-family: var(--display); font-size: 1.25rem; 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; }

/* ---------- Plans as soft tiles ---------- */
.plan-stack { display: grid; gap: 12px; }

.plan-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(58, 42, 34, 0.05);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.plan-tile:hover,
.plan-tile.is-selected {
  border-color: var(--terra);
  background: #fff4ea;
}

.plan-tile .name { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.plan-tile .desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.plan-tile .price {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--clay);
}
.plan-tile .price span { font-size: 13px; color: var(--muted); }

.confirm {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm p { font-size: 14px; color: rgba(245, 240, 225, 0.75); }
.confirm .btn { background: var(--terra); }
.confirm a { color: #efc4b0; }

/* ---------- Auth / contact ---------- */
.card {
  padding: 32px 28px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(58, 42, 34, 0.06);
}

.card h1, .card h3 {
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 8px;
}

.card h1 { font-size: 1.7rem; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--sand);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--terra); }
.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(--clay); }

.form-msg { margin-top: 12px; padding: 10px 12px; font-size: 13px; display: none; border-radius: 10px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e8edd8; color: var(--olive); }
.form-msg.err { background: #f8e4de; color: var(--danger); }

.info-list { margin-bottom: 28px; }
.info-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
}
.info-item dt { font-size: 12px; color: var(--terra); margin-bottom: 4px; }
.info-item dd { font-family: var(--display); font-size: 1.08rem; line-height: 1.5; }
.info-item a:hover { color: var(--clay); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 32px 0 24px;
  background: var(--ink);
  color: rgba(245, 240, 225, 0.72);
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0;
  font-size: 13px;
}

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

.footer-copy {
  padding-top: 14px;
  border-top: 1px solid rgba(245, 240, 225, 0.12);
  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(--cream);
  font-size: 14px;
  border-radius: 999px;
  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(58, 42, 34, 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-radius: var(--r);
  box-shadow: 0 16px 40px rgba(58, 42, 34, 0.18);
}
.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: 768px) {
  .top {
    border-radius: 20px;
    flex-wrap: wrap;
  }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    width: 100%;
    margin: 0;
    flex-direction: column;
  }
  .nav.open { display: flex; }
  .user-chip { width: 100%; }
  .brand-zh { white-space: normal; }
  .plan-tile { grid-template-columns: 1fr; }
}
