/* ============================================================
   妙奇豆 · 登录 / 注册 / 我的 — 共享样式
   ============================================================ */

body.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 63, 0.18), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(124, 92, 255, 0.10), transparent 45%),
    var(--paper);
  display: flex;
  flex-direction: column;
}

.auth-back {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.auth-back:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Two-column shell ============================================ */
.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 32px 80px;
  gap: 56px;
  align-items: center;
}

/* Brand panel (left) ========================================== */
.auth-brand {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 48px 44px;
  overflow: hidden;
}
.auth-brand::before,
.auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}
.auth-brand::before {
  top: -60px; right: -50px;
  width: 220px; height: 220px;
  background: var(--mint-soft);
}
.auth-brand::after {
  bottom: -70px; left: -40px;
  width: 240px; height: 240px;
  background: var(--lavender);
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.auth-logo img { width: 38px; height: 38px; }
.auth-tagline {
  font-family: 'ZCOOL KuaiLe', var(--font-body);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.18;
  color: var(--ink);
  margin: 36px 0 18px;
  position: relative;
  z-index: 1;
}
.auth-tagline .mark {
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--highlight) 65%);
  padding: 0 4px;
}
.auth-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}
.auth-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.auth-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
}
.auth-bullets li b {
  color: var(--brand);
  font-weight: 700;
}

/* Form panel (right) ========================================== */
.auth-form {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 44px 40px;
}
.auth-form-head {
  margin-bottom: 28px;
}
.auth-form-head h2 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 700;
}
.auth-form-head p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}
.auth-form-head a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brand);
}
.auth-form-head a:hover { background: rgba(232, 75, 28, 0.08); }

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.auth-field input,
.auth-field select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.auth-field input::placeholder { color: var(--text-muted); }
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--ink);
  background: var(--surface);
}
.auth-field--code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.auth-field--code > span { grid-column: 1 / -1; }
.code-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--ink);
  color: #FFF6E8;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.code-btn:disabled {
  background: var(--paper-3);
  color: var(--text-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-soft);
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.auth-check input { accent-color: var(--brand); }
.auth-link {
  color: var(--brand);
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  border-top: 1px dashed var(--line);
}
.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-wechat {
  border-color: #07C160 !important;
  color: #07C160;
}
.auth-wechat:hover {
  background: rgba(7, 193, 96, 0.08);
}

.auth-policy {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
.auth-policy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

/* ============================================================
   "我的" page
   ============================================================ */
.me-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Greeting banner */
.me-banner {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.me-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: var(--highlight);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
  pointer-events: none;
}
.me-avatar {
  width: 84px;
  height: 84px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  z-index: 1;
}
.me-greet {
  position: relative;
  z-index: 1;
}
.me-greet h1 {
  font-family: 'ZCOOL KuaiLe', var(--font-body);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 0 0 6px;
  line-height: 1.2;
}
.me-greet p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}
.me-meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.me-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.me-tag--brand { background: var(--brand); color: #FFF6E8; border-color: var(--brand); }
.me-actions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* Stats */
.me-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.me-stat {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.me-stat-icon {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 22px;
  opacity: 0.85;
}
.me-stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
  margin: 4px 0 6px;
}
.me-stat-label {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Section blocks */
.me-section {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 32px 36px;
}
.me-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.me-section-head h2 {
  font-size: 22px;
  margin: 0;
}
.me-section-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.me-section-head a:hover { text-decoration: underline; }

/* Works grid */
.me-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.me-work {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.me-work:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.me-work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}
.me-work-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.04));
}
.me-work--mood .me-work-thumb { background: linear-gradient(160deg, #FFE4D0, #FFB489); }
.me-work--quiz .me-work-thumb { background: linear-gradient(160deg, #DDE9FF, #A5B9F0); }
.me-work--space .me-work-thumb { background: linear-gradient(160deg, #1B1C24, #4A3E8C); color: #fff; }
.me-work-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.me-work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
}
.me-work-meta b { color: var(--ink); }

.me-work--add {
  background: var(--paper-3);
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}
.me-work--add .plus {
  font-size: 38px;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
}
.me-work--add p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 6px 0 0;
}

/* Activity timeline */
.me-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.me-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.me-event-icon {
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.me-event-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.me-event-body span {
  font-size: 12px;
  color: var(--text-soft);
}
.me-event-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Account settings */
.me-account {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.me-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease;
}
.me-link:hover { background: var(--paper-3); }
.me-link span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.me-link em {
  font-style: normal;
  font-size: 16px;
  width: 24px;
  display: inline-flex;
  justify-content: center;
}
.me-link i {
  font-style: normal;
  color: var(--text-muted);
  font-size: 18px;
}
.me-link--danger {
  color: var(--brand);
  border-color: rgba(232, 75, 28, 0.3);
}
.me-link--danger:hover { background: rgba(232, 75, 28, 0.06); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 90px 20px 60px;
    gap: 28px;
  }
  .auth-brand {
    padding: 36px 28px;
    text-align: center;
  }
  .auth-brand::before,
  .auth-brand::after { opacity: 0.35; }
  .auth-bullets li { justify-content: center; }
  .auth-form { padding: 32px 24px; }

  .me-shell { padding: 96px 20px 60px; gap: 24px; }
  .me-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .me-avatar { margin: 0 auto; }
  .me-meta { justify-content: center; }
  .me-actions { justify-content: center; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .me-section { padding: 24px 22px; }
}

@media (max-width: 480px) {
  .auth-back { top: 14px; left: 14px; padding: 6px 14px 6px 10px; }
  .me-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .me-stat { padding: 16px 18px; }
  .me-stat-num { font-size: 24px; }
}

/* ===== Membership plans (me.html) ===== */
.me-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.me-plan {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.me-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.me-plan h3 {
  font-family: 'ZCOOL KuaiLe', system-ui, sans-serif;
  font-size: 22px;
  margin: 0;
}
.me-plan-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}
.me-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.me-plan-price strong {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  color: var(--ink);
}
.me-plan-price s {
  color: var(--text-muted);
  font-size: 14px;
}
.me-plan-price span {
  font-size: 12px;
  color: var(--text-soft);
}
.me-plan-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.me-plan--rec {
  background: var(--paper-3, var(--paper-2));
  border-color: var(--brand);
}
.me-plan-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--brand);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-2);
  letter-spacing: .04em;
}
.buy-btn { margin-top: 6px; }
