/* 会员中心 / 六档套餐 —— PC / H5 共用，原生 CSS，无第三方框架 */
:root {
  --bg: #f4f8f5;
  --ink: #10251c;
  --muted: #64756d;
  --line: #dce7e0;
  --green: #0f6b4f;
  --green-2: #16a36b;
  --soft: #eaf4ee;
  --shadow: 0 18px 48px rgba(13, 62, 44, .09);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 50% -10%, #e3f2e9 0%, rgba(227, 242, 233, 0) 62%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 253, 251, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 37, 28, .08);
}
.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(145deg, #0e6b4e, #19a36c);
  box-shadow: 0 8px 18px rgba(15, 107, 79, .22);
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.brand-sub {
  font-size: 11px; color: var(--green);
  border: 1px solid #b8dfcb; background: #effaf4;
  border-radius: 999px; padding: 3px 9px;
}
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { font-size: 13px; color: #52665c; padding: 8px 0; border-bottom: 2px solid transparent; }
.topnav a.on { color: var(--green); font-weight: 700; border-color: var(--green); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.who { font-size: 12px; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page { max-width: 1360px; margin: 0 auto; padding: 44px 28px 56px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: 2px; color: var(--green-2); font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -1.4px; }
.hero-sub { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.cycle-box { text-align: right; }
.cycle-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: #e8f1eb; border: 1px solid #d7e5dc;
}
.cycle {
  border: 0; background: transparent; color: #60756a;
  padding: 10px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.cycle.on { background: #fff; color: var(--green); box-shadow: 0 4px 12px rgba(10, 50, 35, .09); }
.cycle-tip { margin: 8px 0 0; font-size: 11px; color: #7b8d84; }

.account-card {
  display: flex; align-items: center; gap: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 38px;
  box-shadow: 0 10px 28px rgba(15, 60, 42, .05);
}
.account-main { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.account-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 6px #e5f6ed; }
.account-label { margin: 0; font-size: 11px; color: #7c8d84; }
.account-plan { margin: 3px 0 0; font-size: 18px; font-weight: 800; color: var(--green); }
.account-meta { display: flex; gap: 36px; margin-left: auto; }
.account-meta div { display: flex; flex-direction: column; gap: 3px; }
.account-meta span { font-size: 11px; color: #7c8d84; }
.account-meta b { font-size: 13px; font-weight: 700; color: #233a2f; }

.grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.grid-head h2 { margin: 0; font-size: 20px; }
.grid-head p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.guarantee { display: flex; gap: 8px; flex-wrap: wrap; }
.guarantee span { font-size: 11px; color: #557164; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.loading { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }

.plan-card {
  --accent: #16a36b;
  --accent-soft: #e8f7ef;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2ebe5;
  border-radius: var(--radius);
  padding: 26px 16px 18px;
  box-shadow: 0 12px 28px rgba(12, 54, 38, .06);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.plan-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: var(--accent);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(12, 54, 38, .12); }
.plan-card.hot { border-color: #9dd9bc; box-shadow: 0 18px 42px rgba(22, 163, 107, .16); }
.plan-card.current { outline: 2px solid #9ad9bc; outline-offset: -2px; }
.plan-card.theme-custom {
  --accent: #d8b56a;
  --accent-soft: #0c4a35;
  color: #f4fff9;
  background:
    radial-gradient(160% 100% at 100% 0%, rgba(42, 130, 95, .55), rgba(7, 45, 32, 0) 60%),
    linear-gradient(155deg, #052e22, #0a4a35 62%, #05271d);
  border-color: #0e513b;
}
.ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  padding: 5px 12px 5px 14px;
  border-bottom-left-radius: 12px;
}
.plan-badge { width: 54px; height: 54px; object-fit: contain; display: block; margin: 4px auto 6px; }
.plan-name { margin: 0; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.plan-sub { text-align: center; font-size: 11px; color: var(--muted); margin-top: 4px; min-height: 16px; }
.theme-custom .plan-sub { color: #a8d9c4; }

.price-line { text-align: center; margin-top: 14px; min-height: 52px; }
.price-main { color: var(--accent); font-weight: 900; line-height: 1; letter-spacing: -1.2px; white-space: nowrap; }
.price-main i { font-style: normal; font-size: 14px; font-weight: 700; margin-right: 1px; vertical-align: 7px; }
.price-main b { font-size: 34px; }
.price-main em { font-style: normal; font-size: 12px; color: #7c8d84; font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.theme-custom .price-main { color: #ffd98b; }
.theme-custom .price-main em { color: #a8d9c4; }
.price-year { margin: 8px 0 0; text-align: center; font-size: 11px; color: #7c8d84; min-height: 16px; }
.price-year b { color: #e18b2b; font-weight: 700; }
.theme-custom .price-year { color: #a8d9c4; }
.theme-custom .price-year b { color: #ffd98b; }

.quota-box {
  margin: 16px 0 8px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  border-radius: 12px;
  padding: 10px 11px;
}
.theme-custom .quota-box { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.quota-main { font-size: 18px; font-weight: 800; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.theme-custom .quota-main { color: #fff; }
.quota-main span { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.theme-custom .quota-main span { color: #a8d9c4; }
.quota-sub { margin-top: 4px; font-size: 10px; color: #6c7f75; line-height: 1.4; }
.theme-custom .quota-sub { color: #a8d9c4; }

.plan-features { list-style: none; margin: 10px 0 18px; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  font-size: 11px;
  line-height: 1.55;
  color: #52665c;
  padding: 5px 0 5px 13px;
}
.plan-features li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.theme-custom .plan-features li { color: #c6ead9; }
.theme-custom .plan-features li::before { background: #ffd98b; }

.plan-btn {
  width: 100%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  height: 42px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .12s ease;
}
.plan-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.plan-btn.free { background: #eefaf3; color: var(--green); border-color: #b8e6ce; }
.plan-btn.contact { background: #20b877; border-color: #20b877; color: #fff; }
.plan-btn:disabled { opacity: .55; cursor: default; transform: none; }
.plan-card.current .plan-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

.footnote { margin: 24px 0 0; text-align: center; font-size: 11px; color: #7d8f86; line-height: 1.7; }

.mask {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 24, 17, .55);
  padding: 18px;
}
.mask.show { display: flex; }
.dialog {
  width: min(440px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.dialog-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f0f5f2; color: #5e7468;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.dialog h3 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.dialog-sub { margin: 8px 0 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.field-label { display: block; margin: 12px 0 6px; font-size: 11px; color: #5b6f64; font-weight: 700; }
.field {
  width: 100%; height: 42px; border: 1px solid #dbe7df;
  border-radius: 10px; padding: 0 12px; font-size: 14px;
  color: var(--ink); outline: none; background: #fbfdfc;
}
.field:focus { border-color: #8dd0ac; box-shadow: 0 0 0 3px rgba(22, 163, 107, .11); }
.code-row { display: flex; gap: 8px; }
.code-btn { white-space: nowrap; height: 42px; padding: 0 14px; font-size: 12px; }
.form-tip { min-height: 18px; margin: 9px 0 3px; font-size: 11px; color: #b45309; line-height: 1.5; }
.dialog-note { margin: 14px 0 0; font-size: 11px; color: #7d8f86; text-align: center; line-height: 1.6; }
.dialog-note a { color: var(--green); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid transparent; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.btn.primary { background: linear-gradient(135deg, #0f6b4f, #16a36b); color: #fff; border-color: #0f6b4f; }
.btn.ghost { background: #fff; color: #355448; border-color: #d9e6de; }
.btn.small { height: 34px; padding: 0 13px; font-size: 11px; }
.btn.block { width: 100%; height: 44px; margin-top: 18px; }

.qr-wrap {
  width: 236px; height: 236px; margin: 8px auto 0;
  border-radius: 14px; border: 1px solid #e0ebe4;
  background: #f8fbf9; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: none; }
.qr-loading { font-size: 12px; color: #7b8d84; }
.qr-tip { margin: 12px 0 0; text-align: center; font-size: 11px; color: #6b7f74; line-height: 1.6; }
.pay-state { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--green); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #16a36b; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,107,.5);} 50% { box-shadow: 0 0 0 7px rgba(22,163,107,0);} }
.pay-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e0ebe4; font-size: 10px; color: #87988f; }
.pay-meta span { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-done { text-align: center; padding: 10px 0 2px; }
.done-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #e9f9f1; color: #16a36b; font-size: 30px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(22,163,107,.2);
}
.pay-done h3 { font-size: 24px; }
.pay-done p { margin: 10px 0 18px; font-size: 12px; color: #62766b; line-height: 1.7; }
.done-actions { display: flex; gap: 10px; justify-content: center; }
.done-actions .btn { min-width: 120px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  z-index: 80; max-width: min(560px, 92vw);
  background: rgba(12, 43, 31, .92); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 12px; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1500px) and (min-width: 1181px) {
  .plan-card { padding: 22px 10px 16px; }
  .quota-main { font-size: 15px; }
  .quota-main span { display: none; }
  .quota-sub { font-size: 9.5px; }
  .plan-features li { font-size: 10.5px; }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .plan-card { padding: 20px 8px 14px; }
  .plan-badge { width: 38px; height: 38px; }
  .plan-name { font-size: 13.5px; }
  .price-main b { font-size: 24px; }
  .price-main i { font-size: 11px; vertical-align: 5px; }
  .price-main em { font-size: 10px; }
  .price-year { font-size: 9.5px; }
  .quota-main { font-size: 13px; }
  .quota-main span { display: none; }
  .quota-sub { font-size: 9px; }
  .plan-features li { font-size: 9.5px; padding-left: 10px; }
}
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .plan-card { padding: 28px 18px 20px; }
  .plan-name { font-size: 18px; }
  .price-main b { font-size: 38px; }
  .plan-features li { font-size: 12px; }
  .account-card { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 0 16px; height: 60px; gap: 14px; }
  .brand-sub { display: none; }
  .topnav { display: none; }
  .who { display: none; }
  .page { padding: 28px 14px 40px; }
  .hero { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 22px; }
  .cycle-box { text-align: left; }
  .account-card { padding: 15px 16px; gap: 14px; margin-bottom: 28px; }
  .account-meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .grid-head { flex-direction: column; align-items: flex-start; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .plan-card { padding: 20px 9px 12px; border-radius: 14px; }
  .plan-badge { width: 40px; height: 40px; }
  .plan-name { font-size: 14px; }
  .plan-sub { font-size: 10px; min-height: 14px; }
  .price-line { margin-top: 10px; min-height: 42px; }
  .price-main b { font-size: 27px; }
  .price-main i { font-size: 11px; vertical-align: 5px; }
  .price-main em { font-size: 10px; }
  .price-year { font-size: 9px; }
  .quota-box { padding: 7px; margin: 12px 0 4px; }
  .quota-main { font-size: 15px; }
  .quota-main span { display: none; }
  .quota-main span { font-size: 9px; }
  .quota-sub { font-size: 9px; }
  .plan-features { margin: 6px 0 10px; }
  .plan-features li { font-size: 10px; line-height: 1.45; padding: 4px 0 4px 10px; }
  .plan-features li::before { top: 8px; width: 4px; height: 4px; }
  .plan-btn { height: 34px; font-size: 11px; border-radius: 8px; }
  .ribbon { font-size: 9px; padding: 4px 8px; }
  .footnote { font-size: 10px; }
  .dialog { padding: 22px 18px 18px; }
}
@media (max-width: 520px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .plan-card { padding: 17px 7px 10px; }
  .plan-badge { width: 34px; height: 34px; }
  .plan-name { font-size: 12px; }
  .price-main b { font-size: 23px; }
  .quota-main { font-size: 13px; }
  .plan-features li { font-size: 9px; }
  .plan-btn { font-size: 10px; padding: 0 4px; }
}
