/* LuuNote web design draft extras — WeChat login + /login page
   Reuses homepage tokens/classes from _site-style.css */

:root {
  --wx: #05843F; /* deepened WeChat green, white text AA */
  --wx-hover: #046C34;
  --qr-bg: #EEF0F4;
  --ok: #1B8A4A;
  --err: #C62828;
}

.btn.wx {
  background: var(--wx);
  color: #fff;
  box-shadow: 0 8px 24px rgba(5, 132, 63, .28);
}
.btn.wx:hover {
  background: var(--wx-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(5, 132, 63, .38);
}
.btn.wx svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.btn.wx.sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* Nav: keep WeChat entry visible on the right */
.nav .btn.wx.sm { margin-left: 2px; }
.nav-r .btn.lime.sm { /* existing join test */ }

/* Product intro account band */
.account-band {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  max-width: 520px;
}
.account-band h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}
.account-band p {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 16px;
  line-height: 1.65;
}
.account-band .legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.account-band .legal a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature strip under hero (compact product intro) */
.intro-strip {
  padding: 80px 0 40px;
}
.intro-strip .feat {
  grid-template-columns: repeat(6, 1fr);
}

/* Footer ICP row */
.fb .icp a {
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fb .icp a:hover { color: var(--ink); }
.fb .co { color: var(--dim); }

/* ========== /login page ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-page .login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
}
.login-page .aurora { height: 80%; opacity: calc(var(--aur) * .85); }

.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 40px 36px 32px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20,22,60,.04), 0 18px 48px rgba(40,30,120,.08);
  text-align: center;
}
:root[data-theme="dark"] .login-card,
:root:not([data-theme="light"]) .login-card {
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .login-card {
    box-shadow: 0 1px 2px rgba(20,22,60,.04), 0 18px 48px rgba(40,30,120,.08);
  }
}

.login-card .brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-card .brand-block img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.login-card .brand-block .name {
  font-weight: 700;
  font-size: 18px;
}
.login-card .brand-block .name small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .06em;
  margin-left: 6px;
}
.login-card .brand-block .sub {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
  max-width: 300px;
}

.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--qr-bg);
  display: grid;
  place-items: center;
  color: rgba(20,22,60,.45);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(20,22,60,.06);
  position: relative;
}
:root[data-theme="dark"] .qr-box {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  color: rgba(245,244,239,.45);
}
.qr-box .mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.qr-box.expired::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(20,22,60,.45);
}
:root[data-theme="dark"] .qr-box.expired::after {
  background: rgba(0,0,0,.55);
}
.qr-box.expired .expired-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.login-hint {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 8px;
}
.login-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.login-refresh:hover { text-decoration: underline; }

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  color: var(--mute);
  background: rgba(var(--fg), .04);
  /* single-line capsule; never inherit .ok/.chip sizing from site-style */
  white-space: nowrap;
  width: auto;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
  word-break: keep-all;
}
.status-pill.pending i {
  width: 7px; height: 7px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--wx);
  box-shadow: 0 0 8px var(--wx);
  animation: pl 1.6s infinite;
}
/* was .ok — renamed to is-ok so site-style .ok{width:18px} cannot crush the pill */
.status-pill.is-ok {
  color: var(--ok);
  border-color: rgba(27,138,74,.25);
  background: rgba(27,138,74,.08);
  width: auto;
  height: auto;
  border-radius: 999px;
  display: inline-flex;
  place-items: unset;
  font-size: 12px;
}
.status-pill.err {
  color: var(--err);
  border-color: rgba(198,40,40,.25);
  background: rgba(198,40,40,.08);
  width: auto;
  height: auto;
  white-space: nowrap;
}

.success-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 8px auto 14px;
  background: linear-gradient(135deg, #7A5CFF, #5B3FD9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}
.success-name {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 4px;
}
.success-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.success-msg {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 22px;
  line-height: 1.6;
}
.fail-msg {
  font-size: 14px;
  color: var(--mute);
  margin: 8px 0 22px;
  line-height: 1.65;
}
.fail-reason {
  font-size: 13px;
  color: var(--err);
  background: rgba(198,40,40,.08);
  border: 1px solid rgba(198,40,40,.18);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  text-align: left;
}

.login-foot-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.login-foot-links a {
  color: var(--mute);
}
.login-foot-links a:hover { color: var(--ink); }

.login-page footer {
  margin-top: 0;
  padding: 28px 0 32px;
}
.login-page .fb {
  margin-top: 0;
  justify-content: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Compact nav for login */
.nav.login-nav {
  gap: 16px;
}
.nav.login-nav .links { display: none; }

@media (max-width: 640px) {
  .account-band { max-width: none; }
  .login-main { padding: 96px 16px 40px; }
  .login-card { padding: 32px 22px 28px; border-radius: 24px; }
  .qr-box { width: 200px; height: 200px; }
  .nav .btn.wx.sm { display: inline-flex; }
  /* On product page mobile: show WeChat in sheet row */
  .sheet-row .btn.wx {
    flex: 1;
    justify-content: center;
    height: 40px;
  }
}

/* Ensure solid text contrast on green */
.btn.wx, .btn.wx:visited { color: #ffffff; }

/* Keep WeChat login visible on mobile nav (site CSS hides .nav-r) */
@media (max-width: 640px) {
  .nav .nav-r {
    display: flex !important;
    gap: 6px;
  }
  .nav .nav-r .btn.lime.sm,
  .nav .nav-r .lang,
  .nav .nav-r .tt {
    display: none;
  }
  .nav .nav-r .btn.wx.sm {
    display: inline-flex;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .nav .burger { display: block; }
  /* login page: keep 返回官网 */
  .nav.login-nav .nav-r .btn.ghost.sm { display: inline-flex; }
}

/* Login: keep ICP footer in 844 viewport */
@media (max-width: 640px) {
  .login-page .login-main {
    padding: 84px 14px 16px;
    align-items: flex-start;
  }
  .login-card {
    padding: 24px 18px 18px;
    margin: 0 auto;
  }
  .login-card .brand-block { margin-bottom: 16px; gap: 6px; }
  .login-card .brand-block img { width: 44px; height: 44px; border-radius: 12px; }
  .qr-box { width: 168px; height: 168px; margin-bottom: 12px; }
  .login-foot-links { margin-top: 14px; padding-top: 12px; }
  .login-page footer { padding: 12px 0 18px; }
  .login-page .fb { gap: 6px 14px; font-size: 11px; }
  .status-pill { margin-bottom: 12px; }
  .success-avatar { width: 56px; height: 56px; font-size: 22px; margin: 4px auto 10px; }
  .success-msg { margin-bottom: 14px; }
  .fail-reason { margin-bottom: 12px; padding: 8px 12px; }
}

/* Desktop login: ensure footer visible at 900px height */
@media (min-width: 641px) {
  .login-page .login-main { padding: 100px 24px 28px; }
  .login-card { padding: 32px 32px 24px; }
  .qr-box { width: 200px; height: 200px; margin-bottom: 14px; }
  .login-card .brand-block { margin-bottom: 20px; }
  .login-page footer { padding: 16px 0 24px; }
}

/* ===== v2: logged-in nav user ===== */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.nav-user:hover { background: rgba(var(--fg), .05); }
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7A5CFF, #5B3FD9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.nav-user-name .ex,
.success-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  margin-left: 4px;
}

/* ===== v2: QR expired — solid overlay, no translucent text ===== */
.qr-box.expired-solid {
  position: relative;
  overflow: hidden;
}
.qr-box.expired-solid .mark {
  opacity: .35;
}
.qr-box.expired-solid .expired-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  /* solid panel — not translucent */
  background: #EEF0F4;
  border-radius: inherit;
}
:root[data-theme="dark"] .qr-box.expired-solid .expired-panel {
  background: #1A2348;
}
.qr-box.expired-solid .expired-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== v2: LuuNote Pro page ===== */
.pro-hero {
  min-height: 0;
  padding: 140px 0 60px;
}
.pro-account-bar {
  margin-top: 36px;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
.pro-account-bar.active {
  border-color: rgba(91, 63, 217, .28);
}
.pro-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-account-left .nav-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.pro-account-name {
  font-weight: 650;
  font-size: 16px;
}
.pro-account-status {
  font-size: 13px;
  color: var(--mute);
  margin-top: 2px;
}
.pro-account-status.ok-text {
  color: var(--ok, #1B8A4A);
}
.pro-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pro-price .price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pro-price .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}
.pro-badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7A5CFF, #5B3FD9);
  color: #fff;
  font-weight: 700;
}
.pro-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pro-point {
  border-radius: 24px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
.pro-point .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .12em;
}
.pro-point h3 {
  font-size: 20px;
  font-weight: 650;
  margin: 16px 0 8px;
}
.pro-point p {
  color: var(--mute);
  font-size: 15px;
}

@media (max-width: 640px) {
  .nav .nav-r .nav-user .nav-user-name { display: none; }
  .nav .nav-r .btn.lime.sm { display: none; }
  .nav .nav-r .nav-user { display: inline-flex !important; padding: 0 4px; border: none; }
  .pro-hero { padding: 100px 0 36px; }
  .pro-points { grid-template-columns: 1fr; }
  .pro-account-bar { padding: 14px 16px; }
  .pro-price .price { font-size: 22px; }
  h1 { font-size: 36px; }
}

/* W05a hero two-column visual */
.pro-hero .hg { align-items: center; }
.pro-hero .pro-account-bar { max-width: 100%; }
.pro-hero .pro-vis { height: auto; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pro-hero .pro-vis .orb { position: relative; inset: auto; height: 340px; width: 100%; display: grid; place-items: center; }
@media (max-width: 640px) {
  .pro-hero .pro-vis { min-height: 0; margin-top: 20px; }
  .pro-hero .pro-vis .orb { height: auto; }
}


/* ===== v2.1 pay modal W05c ===== */
.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 22, 60, .48);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
:root[data-theme="dark"] .pay-mask {
  background: rgba(0, 0, 0, .62);
}
.pay-dialog {
  position: relative;
  width: min(400px, 100%);
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(40, 30, 120, .22);
  padding: 28px 28px 24px;
  text-align: center;
}
.pay-dialog h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 6px;
}
.pay-dialog .pay-price {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 4px;
}
.pay-dialog .pay-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}
.pay-qr {
  width: 200px;
  height: 200px;
  margin: 16px auto;
  border-radius: 16px;
  background: #EEF0F4;
  border: 1px solid rgba(20,22,60,.06);
  display: grid;
  place-items: center;
  color: rgba(20,22,60,.45);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .pay-qr {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  color: rgba(245,244,239,.45);
}
.pay-qr .mark { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.pay-qr.expired-solid .mark { opacity: .35; }
.pay-qr.expired-solid .expired-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #EEF0F4;
  border-radius: inherit;
}
:root[data-theme="dark"] .pay-qr.expired-solid .expired-panel {
  background: #1A2348;
}
.pay-qr.expired-solid .expired-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.pay-waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mute);
  margin: 4px 0 18px;
}
.pay-waiting i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pl 1.6s infinite;
}
.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pay-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 8px auto 14px;
  background: rgba(27,138,74,.12);
  color: #1B8A4A;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}
.countdown {
  font-size: 14px;
  color: var(--mute);
  margin: 8px 0 18px;
}
.countdown b {
  color: var(--lime);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.login-context {
  font-size: 13px;
  color: var(--lime);
  background: rgba(91,63,217,.08);
  border: 1px solid rgba(91,63,217,.18);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 auto 16px;
  max-width: 280px;
  line-height: 1.5;
}
.url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .pay-dialog { padding: 22px 18px 18px; border-radius: 20px; }
  .pay-qr { width: 176px; height: 176px; }
}


/* reveal (homepage) */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
.reveal.in,.reveal.d1.in,.reveal.d2.in,.reveal.d3.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}
body.sheet-open{overflow:hidden}
.sheet[aria-hidden="false"]{pointer-events:auto;opacity:1;transform:none}

/* hide designer url-chip in production pages if any slipped in */
.prod-hide-chip .url-chip{display:none}

/* loading state for pro */
#pro-root[data-pro-state="loading"] #view-off,
#pro-root[data-pro-state="loading"] #view-on{display:none}

/* ===== v3 按次开通：套餐 / 付款方式选择 ===== */
.plan-picker { margin: 18px 0 4px; max-width: 560px; }
.picker-label { font-size: 13px; color: var(--mute); margin: 14px 0 8px; font-weight: 550; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-opt, .channel-opt {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--card-bg); border-radius: 16px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.plan-opt:hover, .channel-opt:hover { border-color: rgba(91,63,217,.4); }
.plan-opt[aria-checked="true"], .channel-opt[aria-checked="true"] {
  border-color: var(--lime); box-shadow: 0 0 0 3px rgba(91,63,217,.14);
}
.plan-opt .pn { display: block; font-size: 14px; font-weight: 600; }
.plan-opt .pp { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.plan-opt .pd { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.channel-list { display: flex; gap: 10px; flex-wrap: wrap; }
.channel-opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 550; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; }
.ch-dot.wx { background: #07C160; }
.ch-dot.ali { background: #1677FF; }
.pay-terms a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.pay-soon { color: var(--lime); font-weight: 600; }
.pay-qr canvas, .pay-qr img, .pay-qr svg { width: 86%; height: 86%; image-rendering: pixelated; }
.pay-qr.real { background: #fff; }
.pay-meta { font-size: 13px; color: var(--mute); margin: 0 0 6px; }
.pay-meta a { color: var(--lime); }
.pay-hint { font-size: 12px; color: var(--dim); margin: 0 0 14px; }
