:root {
  --bg: #f4f5fb;
  --text: #2f3348;
  --muted: #7a8099;
  --line: #e6e8f2;
  --accent: #6366f1;
  --accent-soft: #eef0ff;
  --accent-mid: #c7c9fc;
  --btn: #e8eafc;
  --btn-text: #4338ca;
  --btn-hover: #d9dcf9;
  --brand: #4f46e5;
  --ok: #059669;
  --danger: #dc5a6c;
  --shadow: 0 12px 36px rgba(79, 70, 229, 0.09);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(180, 190, 255, 0.45) 0%, transparent 58%),
    radial-gradient(780px 480px at 88% 18%, rgba(200, 210, 255, 0.38) 0%, transparent 55%),
    radial-gradient(700px 420px at 70% 92%, rgba(230, 232, 255, 0.55) 0%, transparent 50%),
    linear-gradient(165deg, #f7f8fd 0%, #eef1f9 48%, #e8ecf8 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
body::before {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 28%;
  background: rgba(155, 168, 255, 0.35);
}
body::after {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: 8%;
  background: rgba(190, 200, 255, 0.3);
}
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 6vw 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  gap: 12px;
}
body.is-auth-landing .top {
  grid-template-columns: 1fr auto;
  padding: 36px 40px 0 40px;
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(238, 240, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: badge-dot-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes badge-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.top-right {
  justify-self: end;
  min-width: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feedback-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.feedback-link:hover {
  color: var(--btn-text);
  background: rgba(238, 240, 255, 0.9);
}
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}
.main-nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav-btn:hover { color: var(--btn-text); background: rgba(238, 240, 255, 0.8); }
.main-nav-btn.on {
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.logo--lockup {
  width: auto;
  height: 48px;
  max-width: min(220px, 48vw);
}
body.is-auth-landing .logo--lockup {
  height: 54px;
  max-width: min(252px, 52vw);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--text); }

.user-menu {
  position: relative;
}
.avatar-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(90, 100, 180, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(90, 100, 180, 0.28);
}
.avatar-btn span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 40;
}
.user-email {
  padding: 10px 12px 8px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--btn-text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill {
  border: 0;
  background: var(--btn);
  color: var(--btn-text);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill:hover { background: var(--btn-hover); }
.pill:disabled { opacity: 0.55; cursor: not-allowed; }
.pill.is-copied {
  background: #ecfdf5;
  color: #047857;
  opacity: 1;
}
.pill-danger {
  background: #fdecee;
  color: #b4233a;
}
.pill-danger:hover { background: #f8d5db; }
.pill-danger-solid {
  background: var(--danger);
  color: #fff;
}
.pill-danger-solid:hover { background: #c44a5c; }

/* —— Auth landing (1:1 brand + CTA) —— */
.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  justify-content: center;
}
.hero-brand {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: start;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  z-index: 1;
  overflow: visible;
}
.hero-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  top: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(67, 56, 202, 0.1) 42%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
}
.hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 100%;
}
.hero-brand h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-width: 100%;
  background: linear-gradient(135deg, #0F172A 0%, #4338CA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-brand h2.lead,
.lead {
  margin: 0 0 32px;
  color: #4B5563;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  max-width: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.hero-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  max-width: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #374151;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hero-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 210, 254, 0.95);
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.12);
}
.hero-tag-icon {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
}

.auth-card {
  width: min(400px, 100%);
  text-align: left;
  border-radius: 16px;
  padding: 28px 26px 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tabs button.on {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
label { display: block; margin-bottom: 12px; color: #64748b; font-size: 13px; font-weight: 550; }
.auth-card input:not([type="checkbox"]) {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input:not([type="checkbox"]):hover {
  border-color: var(--brand);
}
.auth-card input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}
.code-row { display: flex; gap: 8px; margin-top: 6px; }
.code-row input { flex: 1; margin: 0 !important; }
.ghost-btn {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--brand);
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ghost-btn:hover { background: #eef2ff; border-color: #c7d2fe; }
.ghost-btn:disabled { color: var(--muted); background: #f1f5f9; border-color: #e2e8f0; cursor: not-allowed; }
.auth-links { margin: -4px 0 10px; text-align: right; }
.text-link {
  border: 0; background: none; padding: 0;
  color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer;
}
.text-link:hover { color: #3730a3; text-decoration: underline; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 14px;
  padding: 6px 10px 6px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-back:hover {
  background: #eef2ff;
  color: #3730a3;
}
.auth-back-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.reset-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 14px;
}
.agree input { margin-top: 2px; accent-color: var(--accent); }
.submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.submit:hover {
  background: #4338ca;
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.34);
  transform: translateY(-1px);
}
.submit:active {
  background: #3730a3;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.28);
}

.dash { position: relative; z-index: 1; width: 100%; margin: 22px auto 0; padding: 0 5vw 12px; flex: 1; }
.section-title { font-size: 17px; margin: 16px 0 10px; color: var(--text); font-weight: 700; }
.pay-msg { margin: 0; min-height: 0; }
.key-panel .hint { margin: 0 0 8px; font-size: 12px; line-height: 1.6; }
.key-share-tip {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(129, 140, 248, 0.1) 100%);
  border: 1px solid rgba(79, 70, 229, 0.28);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  color: #3730a3;
}
.faq {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 20px auto 0;
  padding: 0 6vw 32px;
  flex: 1;
}
.faq-head { margin-bottom: 20px; }
.faq-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}
.faq-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 18px 20px; }
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.faq-item p,
.faq-item ul {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.faq-item ul { padding-left: 18px; }
.faq-item li + li { margin-top: 6px; }
.faq-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--btn-text);
  padding: 1px 6px;
  border-radius: 6px;
}
.faq-item strong { color: var(--text); font-weight: 650; }
.products {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 20px auto 0;
  padding: 0 6vw 40px;
  flex: 1;
}
.products-head { margin-bottom: 22px; }
.products-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}
.products-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: none;
  width: 100%;
}
.products-section { margin-top: 8px; }
.products-section + .products-section { margin-top: 28px; }
.products-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.products-section-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.products-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.products-section-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.shortcut-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 16px 16px 14px;
  margin: 0;
  border: 1px solid #e8eaf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.shortcut-card:hover,
.shortcut-card:focus-visible {
  border-color: #c7c9fc;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
  outline: none;
}
.shortcut-card--soon { opacity: 0.92; }
.shortcut-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.shortcut-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.shortcut-icon--id { background: linear-gradient(145deg, #6366f1, #4f46e5); }
.shortcut-icon--bank { background: linear-gradient(145deg, #0ea5e9, #0284c7); }
.shortcut-icon--biz { background: linear-gradient(145deg, #f59e0b, #d97706); }
.shortcut-icon--social { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.shortcut-icon--invoice { background: linear-gradient(145deg, #f43f5e, #e11d48); }
.shortcut-icon--reading { background: linear-gradient(145deg, #8b5cf6, #6366f1); }
.shortcut-icon--reading-logo {
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.shortcut-icon--reading-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shortcut-ai-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  line-height: 1.4;
}
.shortcut-card--reading .shortcut-desc {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.shortcut-card--reading h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.shortcut-icon--feiyin { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.shortcut-icon--portal { background: linear-gradient(145deg, #22d3ee, #0891b2); }
.shortcut-icon--miao { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.shortcut-card-title-wrap {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shortcut-card-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shortcut-kind {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 650;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}
.shortcut-kind--sidebar {
  color: #0f766e;
  background: #ecfdf5;
}
.shortcut-kind--workflow {
  color: #b45309;
  background: #fffbeb;
}
.shortcut-kind--muted {
  color: #64748b;
  background: #f1f5f9;
}
.shortcut-desc {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  flex: 1;
}
.shortcut-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.shortcut-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}
.shortcut-use-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dbe0ea;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.shortcut-use-btn:hover {
  color: #4f46e5;
  border-color: #c7c9fc;
  background: #f8faff;
  transform: none;
  box-shadow: none;
}
.shortcut-use-btn--ghost {
  color: #64748b;
  border-style: dashed;
  cursor: pointer;
}
a.product-try-btn.shortcut-use-btn {
  background: #fff;
  color: #334155;
  border: 1px solid #dbe0ea;
  box-shadow: none;
  padding: 0 12px;
  height: 32px;
  border-radius: 8px;
}
a.product-try-btn.shortcut-use-btn:hover {
  color: #4f46e5;
  border-color: #c7c9fc;
  background: #f8faff;
  transform: none;
  box-shadow: none;
}
.product-try-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-try-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.3);
  color: #fff;
}
.product-try-btn--modal {
  width: 100%;
  max-width: none;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
}
.product-try-btn--modal:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.3);
}
.product-detail-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}
.product-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px 28px;
  align-items: start;
  margin-top: 4px;
}
.product-detail-col--intro,
.product-detail-col--scenes {
  min-width: 0;
}
.product-col-label,
.product-scenes-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.product-detail-col {
  text-align: left;
}
.product-tag {
  font-size: 11px;
  font-weight: 650;
  color: var(--btn-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.product-tag--muted {
  color: var(--muted);
  background: #f1f3f9;
}
.product-tag--sidebar {
  color: #0f766e;
  background: #ecfdf5;
}
.product-tag--workflow {
  color: #b45309;
  background: #fffbeb;
}
.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
@media (max-width: 640px) {
  .product-detail-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.product-scenes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
.product-scenes li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  padding: 0;
  text-align: left;
  justify-items: stretch;
}
.product-scenes li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: #6366f1;
}
.product-detail-modal.pay-modal {
  overflow-y: auto;
  align-items: start;
  place-items: start center;
  padding: 24px 20px;
}
.product-detail-modal .product-detail-dialog {
  position: relative;
  width: min(800px, 100%);
  max-height: none;
  height: auto;
  margin: auto 0;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.product-detail-content {
  overflow: visible;
  max-height: none;
  height: auto;
}
.product-detail-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 340px);
  object-fit: cover;
  object-position: center top;
  background: #eef0ff;
}
.product-detail-cover--soon {
  display: grid;
  place-items: center;
  min-height: 160px;
  font-size: 15px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.06em;
  background:
    radial-gradient(280px 140px at 30% 20%, rgba(199, 201, 252, 0.55) 0%, transparent 70%),
    linear-gradient(145deg, #f4f5fb 0%, #e8ebf8 100%);
}
.product-detail-cover--brand {
  display: grid;
  place-items: center;
  min-height: 160px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}
.product-detail-cover--feiyin {
  background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}
.product-detail-cover--portal {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
}
.product-detail-cover--miao {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}
.product-detail-cover--reading {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
}
.product-detail-cover-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}
.product-detail-body {
  padding: 18px 20px 22px;
  text-align: left;
}
.product-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.product-detail-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.product-feedback-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-feedback-cta--block {
  width: 100%;
}
.product-feedback-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.34);
  color: #fff;
}
.product-detail-dialog .pay-close {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}
.grid { display: grid; grid-template-columns: minmax(260px, 0.85fr) 1.15fr; gap: 10px; align-items: stretch; }
.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat-wallet {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(145deg, #f3f4ff 0%, #e9edff 55%, #f7f8ff 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1);
}
.stat-wallet::before {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  right: -16px;
  top: -18px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.1);
  pointer-events: none;
}
.stat-wallet-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}
.stat-wallet-label {
  font-size: 13px;
  font-weight: 650;
  color: #5b607a;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.stat-wallet em {
  display: block;
  font-style: normal;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.stat-wallet small {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  padding: 0;
  background: none;
  border: 0;
  white-space: nowrap;
  margin-top: 0;
}
.stat-wallet small b {
  font-weight: 700;
  color: #4b5563;
}
.hint, .key-panel .hint, .stat span, .stat small { color: var(--muted); }
.stat small { font-size: 12px; }
.key-row { display: flex; gap: 8px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.key-row code {
  flex: 1;
  min-width: 160px;
  word-break: break-all;
  font-size: 13px;
}
.key-row code.api-key-masked {
  letter-spacing: 0.02em;
  color: #5a6570;
}
.key-secure-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7785;
  line-height: 1.45;
}
.confirm-dialog { text-align: left; }
.confirm-dialog h3 { text-align: center; }
.confirm-warn {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.confirm-warn strong { color: var(--text); font-weight: 650; }
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
code {
  flex: 1;
  overflow: auto;
  padding: 8px 10px;
  background: #f6f7fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
}
.text-btn {
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}
.packs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.packs-head .section-title { margin: 0; }
.packs-tip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.packs-tip-icon {
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
}
.packs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  align-items: stretch;
}
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  padding: 18px 14px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pack:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, 0.22);
  border-color: rgba(129, 140, 248, 0.7);
}
.pack--featured {
  background: linear-gradient(180deg, #eef2ff 0%, #fff 58%);
  border: 2px solid #6366f1;
  box-shadow: 0 16px 36px -16px rgba(79, 70, 229, 0.42);
  transform: translateY(-8px);
  z-index: 1;
}
.pack--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -14px rgba(79, 70, 229, 0.48);
}
.pack-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.pack-badge--hot {
  background: #4f46e5;
  border-color: transparent;
  color: #fff;
}
.pack-name {
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.pack-points {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  line-height: 1;
}
.pack-points strong {
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.pack-points span {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.pack--featured .pack-points strong,
.pack--featured .pack-price {
  color: #4338ca;
}
.pack-price {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
}
.pack-buy {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pack-buy:hover {
  background: #0f172a;
}
.pack-buy--primary {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}
.pack-buy--primary:hover {
  background: #4338ca;
}
.models-section { margin: 28px 0 8px; }
.models-lead {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: none;
  white-space: nowrap;
}
.models-panel { padding: 0; overflow: hidden; }
.models-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.models-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.models-table th,
.models-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.models-table th {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: #f8f9fd;
  white-space: nowrap;
}
.models-table tr:last-child td { border-bottom: 0; }
.models-vendor {
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle !important;
  background: #fbfbfe;
}
.model-id-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.model-id {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--btn-text);
}
.icon-copy {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: var(--btn-text);
  background: transparent;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-copy:hover {
  background: var(--accent-soft);
}
.icon-copy svg {
  width: 15px;
  height: 15px;
  display: block;
}
.icon-copy .icon-copy-check { display: none; }
.icon-copy.is-copied {
  color: var(--ok);
  background: #e8f8ef;
}
.icon-copy.is-copied .icon-copy-clip { display: none; }
.icon-copy.is-copied .icon-copy-check { display: block; }
.model-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #047857;
  white-space: nowrap;
}
.model-badge--soft {
  background: var(--accent-soft);
  color: var(--btn-text);
}
.model-copy {
  vertical-align: middle;
  padding: 4px 10px;
  font-size: 12px;
}
.model-copy-msg {
  margin: 0;
  padding: 8px 14px 12px;
  min-height: 1.2em;
}
.model-copy-msg.ok { color: var(--ok); }
.ledger-section { margin-top: 0; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.section-head .section-title { margin: 0; flex-shrink: 0; }
.ledger-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(242, 243, 250, 0.9);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.ledger-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ledger-tab.on {
  background: #fff;
  color: var(--btn-text);
  box-shadow: 0 1px 4px rgba(90, 100, 180, 0.1);
}
.ledger-filter-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  min-width: 168px;
  max-width: 240px;
  margin-left: auto;
}
.ledger-filter-select.hidden { display: none; }
.ledger-panel { padding: 0; overflow: hidden; }
.ledger-pane { padding: 0; display: flex; flex-direction: column; }
.ledger-scroll {
  overflow: visible;
}
.ledger-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.ledger-pager.empty { justify-content: center; }
.ledger-pager-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--btn-text);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ledger-pager-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
}
.ledger-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ledger-pager-info { min-width: 72px; text-align: center; }
.ledger-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text);
}
.ledger-scroll tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.key-msg { margin: 4px 0 0; min-height: 0; }
.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 45, 70, 0.42);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.pay-dialog {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
  text-align: center;
}
.pay-dialog h3 { margin: 0 0 8px; color: var(--text); }
.pay-summary {
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: #f5f6fc;
  border-radius: 12px;
}
.pay-pack {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.pay-amount {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.pay-points {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.pay-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.pay-qr {
  width: 180px;
  height: 180px;
  margin: 14px auto 8px;
  display: block;
  border-radius: 12px;
  background: #f6f7fc;
}
h2 { font-size: 17px; margin: 12px 0 8px; color: var(--text); }
h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.plus { color: var(--ok); }
.minus { color: var(--danger); }
.msg { min-height: 18px; color: #b45309; font-size: 13px; }
.msg.ok { color: var(--ok); }
.hidden { display: none !important; }
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 16px 24px;
  color: #9CA3AF;
  font-size: 12px;
  margin-top: auto;
  flex-shrink: 0;
}
footer a { color: #9CA3AF; text-decoration: none; margin-left: 12px; }
footer a:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand top-right"
      "nav nav";
  }
  body.is-auth-landing .top {
    grid-template-areas: "brand top-right";
    padding: 28px 20px 0;
  }
  body.is-auth-landing .logo--lockup {
    height: 44px;
    max-width: min(200px, 56vw);
  }
  .logo--lockup {
    height: 42px;
    max-width: min(196px, 48vw);
  }
  .brand { grid-area: brand; }
  .main-nav { grid-area: nav; justify-self: center; margin-top: 10px; }
  .top-right { grid-area: top-right; }
  .main-nav-btn { padding: 8px 14px; font-size: 13px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 12px;
    align-items: stretch;
  }
  .hero-brand {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  .hero-brand h1 {
    font-size: 26px;
    white-space: normal;
  }
  .hero-brand h2.lead,
  .lead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-tags {
    flex-wrap: wrap;
  }
  .hero-action {
    order: -1;
    align-items: stretch;
    justify-content: stretch;
  }
  .auth-card { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .packs {
    grid-template-columns: repeat(5, minmax(168px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .pack--featured { transform: none; }
  .pack--featured:hover { transform: translateY(-2px); }
  .models-lead { white-space: normal; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; }
  .ledger-filter-select { margin-left: 0; width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .packs {
    grid-template-columns: 1fr;
  }
  .pack--featured {
    transform: none;
  }
}
