/* 海南柏京网络科技 — 资讯站 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@500;700&display=swap');

:root {
  --ink: #0c1e2e;
  --ink-soft: #1a3348;
  --sea: #0d8a82;
  --sea-bright: #12a89e;
  --sea-mist: #e6f4f3;
  --sand: #f3f6f8;
  --paper: #fafbfc;
  --line: #d5dee6;
  --muted: #5a6b7a;
  --text: #1c2b38;
  --danger: #c45c4a;
  --gold: #c9a227;
  --radius: 2px;
  --max: 1080px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 138, 130, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(12, 30, 46, 0.06), transparent 45%),
    linear-gradient(180deg, #eef3f6 0%, var(--sand) 40%, #e8eef2 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  animation: fadeUp 0.7s var(--ease) both;
}

.brand-name {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

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

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

.site-nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  position: relative;
}

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

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--sea);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.user-chip .balance {
  color: var(--sea);
  font-weight: 500;
}

.user-chip .vip-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #f0e6c8;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sea);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sea {
  background: var(--sea);
  color: #fff;
}

.btn-sea:hover {
  background: var(--sea-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: 64px 0 56px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(12, 30, 46, 0.92) 0%, rgba(12, 30, 46, 0.75) 45%, rgba(13, 138, 130, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2' d='M0 420 Q150 360 300 400 T600 380 T900 410 T1200 370'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1' d='M0 460 Q200 400 400 440 T800 420 T1200 450'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1' d='M0 300 Q250 260 500 290 T1000 270 T1200 300'/%3E%3C/svg%3E") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 30, 46, 0.35), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.hero-brand {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 480px;
}

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

.hero .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--sea-mist);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---------- Sections ---------- */
.page-main {
  flex: 1;
  padding: 48px 0 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease) 0.15s both;
}

.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

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

.page-title-wrap {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.6s var(--ease) both;
}

.page-title {
  font-family: "Noto Serif SC", serif;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

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

/* ---------- News list ---------- */
.news-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

.news-item:nth-child(1) { animation-delay: 0.18s; }
.news-item:nth-child(2) { animation-delay: 0.26s; }
.news-item:nth-child(3) { animation-delay: 0.34s; }
.news-item:nth-child(4) { animation-delay: 0.42s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.58s; }

.news-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.news-date {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.news-date strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.news-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.news-item:hover .news-body h3 {
  color: var(--sea);
}

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

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--sea-mist);
  color: var(--sea);
}

.tag-vip {
  background: var(--ink);
  color: #f0e6c8;
}

.lock-hint {
  font-size: 12px;
  color: var(--gold);
}

/* ---------- Article ---------- */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.7s var(--ease) both;
}

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

.article-title {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-preview {
  position: relative;
}

.article-preview .fade-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--sand));
  pointer-events: none;
}

.lock-panel {
  margin-top: 8px;
  padding: 36px 28px;
  text-align: center;
  background: linear-gradient(160deg, #fff 0%, var(--sea-mist) 100%);
  border: 1px solid var(--line);
  animation: fadeUp 0.5s var(--ease) both;
}

.lock-panel h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.lock-panel p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Auth forms ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}

.auth-aside {
  padding: 48px 40px;
  background:
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, #0a5c57 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='600' viewBox='0 0 400 600'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.1' d='M0 200 Q100 160 200 200 T400 180'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.07' d='M0 280 Q120 240 240 280 T400 260'/%3E%3C/svg%3E") bottom/cover;
}

.auth-aside h2 {
  position: relative;
  font-family: "Noto Serif SC", serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.auth-aside p {
  position: relative;
  font-size: 14px;
  opacity: 0.75;
  font-weight: 300;
}

.auth-form-wrap {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-wrap h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 8px;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sea);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-footer {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form-footer a {
  color: var(--sea);
}

.form-footer a:hover {
  text-decoration: underline;
}

.form-msg {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  background: var(--sea-mist);
  color: var(--sea);
}

.form-msg.err {
  background: #fdecea;
  color: var(--danger);
}

/* ---------- Membership / Recharge ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.plan-card {
  position: relative;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  animation: fadeUp 0.6s var(--ease) both;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

.plan-card:hover {
  border-color: var(--sea);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 30, 46, 0.08);
}

.plan-card.featured {
  border-color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #f0f7f7 100%);
}

.plan-card.is-selected {
  border-color: var(--sea);
  box-shadow: 0 0 0 1px var(--sea), 0 12px 32px rgba(13, 138, 130, 0.12);
}

.plan-card.featured::before {
  content: "推荐";
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: #f0e6c8;
}

.plan-name {
  font-family: "Noto Serif SC", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sea);
  line-height: 1.2;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.plan-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan-feats {
  text-align: left;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.plan-feats li {
  padding: 6px 0 6px 18px;
  position: relative;
}

.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--sea);
}

.wallet-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  animation: fadeUp 0.7s var(--ease) both;
}

.wallet-card {
  padding: 36px 32px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 60%, #0a5c57 100%);
  color: #fff;
}

.wallet-card .label {
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.wallet-card .amount {
  font-family: "Noto Serif SC", serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.wallet-card .amount span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

.wallet-meta {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recharge-box {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-opt {
  padding: 14px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.amount-opt:hover,
.amount-opt.active {
  border-color: var(--sea);
  background: var(--sea-mist);
  color: var(--sea);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  animation: fadeUp 0.7s var(--ease) both;
}

.contact-info {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-info h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row dt {
  color: var(--muted);
}

.info-row dd {
  color: var(--ink);
}

.contact-form {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-form h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 20px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  z-index: 10000;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

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

.footer-contact {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  max-width: 520px;
}

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

.footer-copy {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  text-align: center;
  opacity: 0.65;
}

/* ---------- Layout shell ---------- */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .wallet-panel,
  .contact-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: 160px;
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .user-chip {
    margin: 12px 0 0;
    padding: 12px 8px 0;
    border-left: none;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }

  .header-inner {
    position: relative;
  }

  .news-item {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .news-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .hero {
    min-height: 360px;
    padding: 48px 0 40px;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
