/* ==========================================================================
   《我在海上有小岛》官方充值中心
   与官网 StudioWeb 共用品牌配色：墨蓝底 / 鎏金主色 / 玉青点缀
   移动端优先，兼容 iOS Safari、Android Chrome、微信内置浏览器
   ========================================================================== */

:root {
  --ink: #070c14;
  --ink-2: #0c1524;
  --ink-3: #111d30;
  --paper: #eef3fb;
  --muted: #9db0c9;
  --muted-2: #6c8199;

  --gold-200: #fff3d4;
  --gold-300: #ffe6a8;
  --gold-400: #f5c96a;
  --gold-500: #d9a441;

  --jade-300: #9fe6d8;
  --jade-500: #4fb8a5;

  --danger: #e6705f;

  --line: rgba(160, 200, 255, 0.14);
  --line-strong: rgba(160, 200, 255, 0.26);

  --font-title: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-num: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--gold-200);
  flex-shrink: 0;
}

.nav__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-500));
  color: #201503;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
}

.nav__tag {
  font-size: 11px;
  color: var(--muted-2);
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  letter-spacing: 0.08em;
}

.nav__links { margin-left: auto; display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.nav__links a { transition: color 0.2s var(--ease); white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-300); }

@media (max-width: 640px) {
  .nav__tag { display: none; }
  .nav__links { gap: 14px; font-size: 13px; }
}

/* ==========================================================================
   首屏 Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 40px;
  background:
    radial-gradient(120% 90% at 50% 10%, #16283f 0%, #0b1421 55%, var(--ink) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/kv.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.26;
  filter: saturate(0.85);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.5) 0%, rgba(7, 12, 20, 0.75) 45%, var(--ink) 100%);
}

.hero__inner { position: relative; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  border: 1px solid rgba(245, 201, 106, 0.32);
  background: rgba(245, 201, 106, 0.07);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero__badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--jade-300);
  box-shadow: 0 0 8px var(--jade-300);
  display: inline-block;
}

.hero__title {
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--jade-300); flex-shrink: 0; }

/* ==========================================================================
   区块标题
   ========================================================================== */
.section { padding: 36px 0; }
.section--tight { padding: 24px 0; }

.sec-head { margin-bottom: 20px; }

.sec-head h2 {
  font-size: 19px;
  color: var(--gold-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-head h2::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-400), rgba(245, 201, 106, 0.15));
}

.sec-head p {
  margin-top: 6px;
  margin-left: 13px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ==========================================================================
   充值档位卡片
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 780px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(17, 29, 48, 0.9), rgba(12, 21, 36, 0.9));
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
  text-align: center;
  overflow: hidden;
}

.plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90% 60% at 50% 0%, rgba(245, 201, 106, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

.plan:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8); }
.plan:hover::after { opacity: 1; }

.plan--hot { border-color: rgba(245, 201, 106, 0.42); }
.plan--hot::after { opacity: 1; }

.plan__tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #2a1b04;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  padding: 3px 9px;
  border-bottom-left-radius: 10px;
  font-weight: 700;
}

.plan__gem {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  color: var(--gold-400);
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(245, 201, 106, 0.28));
}

.plan__name {
  font-size: 17px;
  color: #fff;
  font-family: var(--font-title);
  letter-spacing: 0.03em;
}

.plan__bonus {
  font-size: 11.5px;
  color: var(--jade-300);
  margin-top: 3px;
  min-height: 17px;
}

.plan__price {
  margin-top: 10px;
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.01em;
}

.plan__price small { font-size: 13px; font-weight: 400; }

.plan__unit {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}

.plan__btn {
  margin-top: 14px;
  width: 100%;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--gold-200);
  border: 1px solid rgba(245, 201, 106, 0.34);
  background: rgba(245, 201, 106, 0.08);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.plan--hot .plan__btn,
.plan:hover .plan__btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241803;
  border-color: transparent;
  font-weight: 600;
}

/* ==========================================================================
   充值须知 / 通用列表
   ========================================================================== */
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 29, 48, 0.55);
  padding: 20px 20px 16px;
}

.notice ol, .notice ul { margin: 0; padding-left: 18px; }
.notice li { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.notice li + li { margin-top: 6px; }
.notice li b { color: var(--gold-200); font-weight: 600; }
.notice li::marker { color: var(--gold-500); }

/* ==========================================================================
   作品介绍（首页）
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-grid__img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.about-grid__img img { width: 100%; height: 100%; object-fit: cover; }

.about-text p { color: var(--muted); font-size: 14px; line-height: 2; }
.about-text p + p { margin-top: 12px; }
.about-text strong { color: var(--gold-200); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12px;
  color: var(--jade-300);
  border: 1px solid rgba(159, 230, 216, 0.24);
  background: rgba(159, 230, 216, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.6), var(--ink));
  padding: 32px 0 30px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

@media (max-width: 780px) {
  .footer__cols { grid-template-columns: 1fr; gap: 18px; }
}

.footer__cols h4 {
  font-size: 13px;
  color: var(--gold-200);
  margin-bottom: 9px;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
}

.footer__cols p, .footer__cols a { display: block; line-height: 1.95; }
.footer__cols a:hover { color: var(--gold-300); }

.footer__legal {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  text-align: center;
  line-height: 2;
}

.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--gold-300); }

.advice {
  margin: 12px auto 0;
  max-width: 640px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   内页通用
   ========================================================================== */
.page-head {
  padding: 26px 0 8px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.crumb a:hover { color: var(--gold-300); }
.crumb i { font-style: normal; margin: 0 7px; opacity: 0.5; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(17, 29, 48, 0.8), rgba(12, 21, 36, 0.8));
  overflow: hidden;
}

/* ---------- 商品详情 ---------- */
.detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

@media (max-width: 780px) {
  .detail { grid-template-columns: 1fr; }
}

.detail__media {
  position: relative;
  min-height: 300px;
  background: radial-gradient(80% 70% at 50% 40%, #1b3050, #0b1421 70%);
  display: grid;
  place-items: center;
  padding: 30px;
  border-right: 1px solid var(--line);
}

@media (max-width: 780px) {
  .detail__media { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.detail__gem {
  width: 120px;
  height: 120px;
  color: var(--gold-400);
  filter: drop-shadow(0 6px 26px rgba(245, 201, 106, 0.35));
}

.detail__body { padding: 26px 24px 24px; }

.detail__badge {
  display: inline-block;
  font-size: 11px;
  color: var(--jade-300);
  border: 1px solid rgba(159, 230, 216, 0.26);
  background: rgba(159, 230, 216, 0.07);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.detail__title { font-size: 24px; color: #fff; }

.detail__desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.95;
}

.price-row {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 11px;
  background: rgba(7, 12, 20, 0.55);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-row__now {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
}

.price-row__now small { font-size: 16px; font-weight: 400; }

.price-row__meta { font-size: 12.5px; color: var(--muted-2); line-height: 1.8; text-align: right; }
.price-row__meta b { color: var(--jade-300); font-weight: 600; }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 15px 0;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #241803;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 26px -10px rgba(245, 201, 106, 0.5);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.2s;
}

.btn-primary:active { transform: scale(0.986); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--gold-200);
  border: 1px solid rgba(245, 201, 106, 0.34);
  background: rgba(245, 201, 106, 0.06);
  transition: background 0.2s var(--ease);
}

.btn-ghost:hover { background: rgba(245, 201, 106, 0.13); }

/* ---------- 表单 ---------- */
.field { margin-top: 20px; }

.field__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--paper);
  margin-bottom: 8px;
}

.field__label em { font-style: normal; color: var(--danger); font-size: 12px; }

.field__tip { font-size: 12px; color: var(--muted-2); line-height: 1.8; margin-top: 8px; }

.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 12, 20, 0.6);
  color: var(--paper);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}

.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: rgba(245, 201, 106, 0.55); box-shadow: 0 0 0 3px rgba(245, 201, 106, 0.1); }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}

.checkline input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--gold-500); flex-shrink: 0; }
.checkline a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }

.alert {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  color: #ffd9d2;
  background: rgba(230, 112, 95, 0.13);
  border: 1px solid rgba(230, 112, 95, 0.32);
  display: none;
}

.alert.show { display: block; }

/* ---------- 订单摘要 ---------- */
.summary {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 12, 20, 0.5);
  padding: 4px 16px;
}

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.summary__row + .summary__row { border-top: 1px dashed var(--line); }
.summary__row b { color: var(--paper); font-weight: 500; }
.summary__row--total b { font-family: var(--font-num); font-size: 22px; color: var(--gold-300); font-weight: 700; }

.pay-method {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid rgba(22, 119, 255, 0.4);
  background: rgba(22, 119, 255, 0.07);
}

.pay-method__logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: #1677ff;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}

.pay-method__txt { font-size: 13.5px; color: var(--paper); }
.pay-method__txt small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }

/* ---------- 结果页 ---------- */
.result {
  max-width: 460px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
}

.result__icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(159, 230, 216, 0.4);
  background: rgba(159, 230, 216, 0.08);
  color: var(--jade-300);
}

.result h1 { font-size: 22px; color: #fff; }
.result__sub { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

.result__card { margin-top: 24px; text-align: left; }

.result__actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- 文档页（协议/隐私/退款/关于） ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 0 20px; }

.doc__title { font-size: 26px; color: #fff; padding: 8px 0 4px; }
.doc__meta { font-size: 12.5px; color: var(--muted-2); margin-bottom: 22px; }

.doc h2 {
  font-size: 16.5px;
  color: var(--gold-200);
  margin: 30px 0 10px;
  padding-left: 12px;
  position: relative;
}

.doc h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 3px; height: 0.95em;
  border-radius: 2px;
  background: var(--gold-500);
}

.doc h3 { font-size: 14.5px; color: var(--paper); margin: 18px 0 6px; }

.doc p, .doc li { font-size: 14px; color: var(--muted); line-height: 2; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 8px 0; padding-left: 22px; }
.doc li + li { margin-top: 5px; }
.doc li::marker { color: var(--gold-500); }
.doc strong { color: var(--paper); font-weight: 600; }

.doc__box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(17, 29, 48, 0.6);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 2;
}

.doc__box b { color: var(--gold-200); }

/* 表格 */
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--gold-200); font-weight: 600; background: rgba(17, 29, 48, 0.6); }

/* ==========================================================================
   小工具
   ========================================================================== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.hide { display: none !important; }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(17, 29, 48, 0.7) 25%, rgba(26, 42, 66, 0.7) 37%, rgba(17, 29, 48, 0.7) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  min-height: 170px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
