/* 昊趣阁 AI 视频聚合系统 — 移动端深色主题 */
:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --card: #111827;
  --card-light: #f4f6fb;
  --cyan: #22d3ee;
  --cyan2: #0ea5e9;
  --purple: #a855f7;
  --orange: #ff7a1a;
  --gold: #fbbf24;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  /* 卡片家族：圆角 / 阴影 / 细描边统一，减少「拼接感」 */
  --radius-card: 16px;
  --radius-panel: 18px;
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.42);
  --shadow-card-edge: 0 0 0 1px rgba(255, 255, 255, 0.055);
  --glow-cyan-edge: 0 0 0 1px rgba(34, 211, 238, 0.22);
  --glow-purple-edge: 0 0 0 1px rgba(168, 85, 247, 0.22);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shell-pad: 16px;
  --grid-gap: 12px;
  --section-space: 38px;
  --hero-cluster-gap: 22px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.12), transparent),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 16px var(--shell-pad) 92px;
  position: relative;
}

@media (min-width: 720px) {
  .app-shell {
    max-width: min(920px, 94vw);
    padding-left: clamp(18px, 3vw, 28px);
    padding-right: clamp(18px, 3vw, 28px);
  }
}

.main-scroll {
  padding-bottom: 76px;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  align-items: center;
}

.pill-nav a {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.2;
  white-space: nowrap;
}

.pill-nav a.on {
  color: #0f172a;
  background: var(--gold);
  border-color: transparent;
  font-weight: 600;
}

.auth-hint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: linear-gradient(100deg, rgba(251, 191, 36, 0.1), rgba(15, 23, 42, 0.65));
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
}

.auth-hint-bar__go {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #0f172a;
  text-decoration: none;
}

.auth-hint-bar__go:active {
  filter: brightness(0.95);
}

.db-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fef3c7;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.db-banner-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
}

.db-banner code {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
}

.top-hero {
  margin-bottom: 18px;
}

/* —— 首页：顶部核心区 + 宽屏侧栏（公告 / 热门），减轻右侧空洞 —— */
.home-hero-cluster {
  display: grid;
  gap: var(--hero-cluster-gap);
  margin-bottom: 36px;
  align-items: start;
}

@media (min-width: 720px) {
  .page-home .home-hero-cluster {
    grid-template-columns: minmax(0, 1fr) minmax(232px, 300px);
    gap: clamp(20px, 2.6vw, 28px);
    margin-bottom: 48px;
  }
}

.home-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-hero-main .cta-panel--hero {
  margin-bottom: 0;
}

.home-side-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.side-rail-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
  padding: 14px 14px 12px;
}

.side-rail-card--warm {
  background: linear-gradient(155deg, rgba(30, 22, 18, 0.88), rgba(17, 24, 39, 0.78));
  border-color: rgba(251, 191, 36, 0.14);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.side-rail-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}

.side-rail-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.side-rail-list li + li {
  margin-top: 8px;
}

.side-rail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-chip {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.side-chip:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  color: #f8fafc;
}

.side-rail-card--warm .side-chip:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}

/* 核心区与下方功能带之间的「呼吸」 */
.page-home .home-hero-cluster + .section-block {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.page-home .comic-section .section-intro-lower {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(32, 24, 18, 0.55), rgba(17, 24, 39, 0.4));
  border: 1px solid rgba(251, 191, 36, 0.12);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(251, 191, 36, 0.06);
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-card);
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
  background: rgba(11, 14, 35, 0.9);
}

.tag-strip-wrap {
  margin: 0 0 18px;
}

.tag-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tag-strip::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  white-space: nowrap;
}

.tag-chip.on {
  background: var(--gold);
  color: #0f172a;
  border-color: transparent;
  font-weight: 600;
}

.eyebrow {
  font-size: 12px;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.eyebrow.cyan {
  color: var(--cyan);
}

h1 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

.hero-card {
  border-radius: var(--radius-card);
  min-height: 148px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0f172a, #0b1222);
  display: flex;
  min-width: 0;
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
}

.hero-card.glow-left {
  box-shadow: var(--shadow-elevated), var(--glow-cyan-edge);
}

.hero-card.glow-right {
  box-shadow: var(--shadow-elevated), var(--glow-purple-edge);
}

.hero-card-body {
  padding: 14px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-card h2 {
  margin: 10px 0 4px;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.slash {
  color: var(--cyan);
}

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.pill-cyan {
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}

.pill-purple {
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin: 20px 0 24px;
  align-items: stretch;
}

.stat {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 11px 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
}

.stat > div:last-child {
  flex: 1;
  min-width: 0;
}

.stat strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.stat-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.stat-ic.cube {
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.25);
}

.stat-ic.mascot {
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.25);
}

.stat-ic.chip {
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.cta-panel {
  background: linear-gradient(120deg, #0b1730, #0a1428 60%, #0c1f3a);
  border-radius: var(--radius-panel);
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated), var(--glow-cyan-edge);
}

.cta-panel--hero {
  background-image: linear-gradient(115deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.55) 45%, rgba(7, 11, 20, 0.75) 100%), var(--cta-img);
  background-size: cover;
  background-position: 85% center;
}

.cta-panel--hero .tag-dark,
.cta-panel--hero .cta-inner,
.cta-panel--hero > .btn-white,
.cta-panel--hero > .btn-cta-enter {
  position: relative;
  z-index: 1;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.2), transparent 55%);
  pointer-events: none;
}

.cta-panel.slim {
  margin-top: 8px;
}

.tag-dark {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cta-panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.play-circle::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.play-circle.sm {
  width: 40px;
  height: 40px;
}

.case-cap {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section-block {
  margin-bottom: var(--section-space);
}

.section-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.section-title.gold {
  color: var(--gold);
}

.section-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.55));
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
}

.section-block--video .section-head {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.42));
  border-color: rgba(34, 211, 238, 0.14);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(34, 211, 238, 0.07);
}

.gpt-block .section-head {
  background: linear-gradient(165deg, rgba(24, 17, 36, 0.55), rgba(15, 23, 42, 0.88));
  border-color: rgba(168, 85, 247, 0.16);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.section-head .section-title {
  margin-bottom: 6px;
}

.section-head .section-sub {
  margin: 0;
}

.grid-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

/* 双列卡片：强制同列等宽、同行等高（防止内容撑破列宽） */
.grid-tools > .tool-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.grid-tools--matrix > .tool-card {
  min-height: 0 !important;
}

.grid-tools--matrix .tool-card--upper {
  background: #141821;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 15px 14px 16px;
  gap: 14px;
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge);
}

.grid-tools--matrix .matrix-card-head {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 5.5rem;
  padding: 0 2px;
}

.matrix-token-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  width: 100%;
  line-height: 1.35;
}

.matrix-token-hint strong {
  color: var(--cyan2);
  font-weight: 600;
}

.matrix-token-hint--tight {
  margin: 0 0 6px;
}

.grid-tools--matrix .matrix-card-head h5 {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-tools--matrix .matrix-card-head .mini-tags--upper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.grid-tools--matrix .mini-tags--upper span {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  white-space: nowrap;
  flex-shrink: 0;
}

.matrix-link-experience {
  display: block;
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.matrix-link-experience:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.06));
  text-decoration: none;
}

button.matrix-link-experience.matrix-link-experience--btn {
  font-family: inherit;
}

.gpt-block .matrix-link-experience {
  color: #e9d5ff;
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.04));
}

.gpt-block .matrix-link-experience:hover {
  color: #faf5ff;
  border-color: rgba(196, 181, 253, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08));
}

.btn-matrix {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  background: #00a2ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 162, 255, 0.35);
  box-sizing: border-box;
}

.btn-matrix:active {
  transform: scale(0.99);
}

button.btn-matrix {
  font-family: inherit;
}

.grid-tools--matrix .tool-card-visual {
  flex: 0 0 auto;
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  width: 100%;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.grid-tools--matrix .tool-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
}

.grid-compact .tool-card.compact h5 {
  font-size: 13px;
}

.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.tool-card > a.btn-block:last-child,
.tool-card > button.btn-block:last-child,
.tool-card > a.btn-matrix:last-child,
.tool-card > button.btn-matrix:last-child,
.tool-card > a.matrix-link-experience:last-child,
.tool-card > button.matrix-link-experience:last-child,
.tool-card > .comic-btn-wrap:last-child {
  margin-top: auto;
}

.tool-card header h5 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #fff;
}

.mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-tags span {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
}

.tool-card-visual {
  flex: 1;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.12)),
    linear-gradient(90deg, #1e293b, #0f172a);
  min-height: 72px;
  overflow: hidden;
  position: relative;
}

.tool-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
}

.tool-card-visual.sm img {
  min-height: 56px;
}

.tool-card-visual.sm {
  min-height: 56px;
}

.tool-card--comic {
  min-height: 0 !important;
  padding: 12px !important;
  gap: 10px !important;
  background: #1a1d26 !important;
  border-radius: var(--radius-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow-elevated), var(--shadow-card-edge) !important;
}

.tool-card--comic h5 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: #f8fafc !important;
  min-height: 2.7em;
  max-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card--comic .comic-thumb {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-card--comic .comic-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
}

.grid-tools--comic {
  gap: 12px;
}

.section-intro-lower {
  margin: 0 0 14px;
  padding: 0 2px;
}

.section-intro-lower .section-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.section-intro-lower .section-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.comic-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 2px;
}

.btn-comic-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #333;
  background: transparent;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-comic-ghost:active {
  background: rgba(255, 255, 255, 0.05);
}

.btn-comic-ic {
  font-size: 9px;
  line-height: 1;
  opacity: 0.85;
}

.grid-tools--comic > .tool-card--comic {
  height: 100%;
}

.two-col-tall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

.two-col-tall > .tall-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.tall-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 12px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tall-card > .btn-cyan {
  margin-top: auto;
  flex-shrink: 0;
}

.tall-card h5 {
  margin: 0;
  font-size: 15px;
  color: var(--gold);
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tall-card .circles {
  flex-shrink: 0;
  min-height: 44px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: hidden;
}

.circles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.circles span {
  font-size: 9px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  line-height: 1.1;
  padding: 2px;
  text-align: center;
}

.tall-visual {
  border-radius: 12px;
  min-height: 120px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.15), transparent), #0f172a;
}

.tall-visual.b {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.18), transparent), #0f172a;
}

.tool-focus-visual {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.tool-focus-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.tall-visual--img {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
}

.tall-visual--img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.input-dark {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px;
  font: inherit;
  resize: vertical;
  background: #0b1220;
  color: var(--text);
}

.input-dark::placeholder {
  color: #64748b;
}

.btn-block {
  width: 100%;
  text-align: center;
  display: block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 999px;
}

.btn-cta-enter {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 42%, #f59e0b 100%);
  color: #0f172a;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-cta-enter:hover {
  filter: brightness(1.06);
}

.btn-cta-enter:active {
  transform: scale(0.99);
}

.btn-white {
  background: #fff;
  color: #0f172a;
  margin-top: 12px;
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-compact {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}

.btn-cyan {
  background: linear-gradient(90deg, #38bdf8, var(--cyan2));
  color: #042f2e;
}

.btn-orange {
  background: linear-gradient(90deg, #ff9a3c, var(--orange));
  color: #1a0b00;
}

.btn-upload {
  margin-top: 8px;
}

.sub-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 8px;
}

.sub-nav h1 {
  text-align: center;
  font-size: 17px;
}

.back {
  font-size: 20px;
  opacity: 0.9;
}

.page-head {
  margin-bottom: 12px;
}

.page-head.simple h1 {
  font-size: 20px;
}

.mine-head h1 {
  font-size: 22px;
}

.badge-guest {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

.muted {
  color: var(--muted);
}

.muted.small,
.small {
  font-size: 12px;
}

.gold {
  color: var(--gold);
}

.big {
  font-size: 28px;
  display: block;
  margin-top: 4px;
}

.card-light {
  background: var(--card-light);
  color: #0f172a;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card-light h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.compare-row figure {
  margin: 0;
  text-align: center;
}

.compare-row .ph {
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  margin-bottom: 6px;
}

.compare-row .ph-b {
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

.compare-row figcaption {
  font-size: 12px;
  color: #334155;
}

.card-dark {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.balance-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-label {
  display: block;
  font-size: 13px;
  margin: 10px 0 6px;
}

.warn {
  color: #f87171;
  font-size: 12px;
  margin: 0 0 6px;
}

.input-area {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px;
  font: inherit;
  resize: vertical;
  background: #f8fafc;
  color: #0f172a;
}

.tabs.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.tab-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 6px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(90deg, #2563eb, var(--cyan2));
  color: #fff;
  font-weight: 600;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #000;
  border-top: 1px solid #1f2937;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}

.tab {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  min-width: 0;
}

.tab.active {
  color: var(--gold);
}

.tab-ic {
  font-size: 18px;
  line-height: 1;
}

.auth-wrap {
  padding: 8px 4px 24px;
}

.auth-wrap h1 {
  font-size: 24px;
  margin: 8px 0 16px;
}

.form-auth label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form-auth input {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #0b1220;
  color: var(--text);
  font: inherit;
}

.center-link {
  text-align: center;
  color: var(--cyan);
  font-size: 14px;
}

.auth-back {
  display: inline-block;
  margin-bottom: 8px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.plan-row .price span {
  font-weight: 700;
  color: var(--gold);
}

.provider-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.provider-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge.on {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.badge.off {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li.task-row {
  padding: 10px 0 12px;
}

.task-row-main {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.45;
}

.task-row-main strong {
  color: #f8fafc;
  font-weight: 600;
}

.task-row-sub {
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
}

.task-row-detail {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.task-row--failed .task-row-main {
  color: #fecaca;
}

.task-row--pending .task-row-main {
  color: #fde68a;
}

.task-row-detail--err {
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  background: rgba(127, 29, 29, 0.25) !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clone-image-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.btn-text-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #7dd3fc;
  cursor: pointer;
  text-decoration: underline;
}

.btn-text-inline:hover {
  color: #bae6fd;
}

.task-row--empty {
  padding: 14px 0 !important;
}

.task-row--empty p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.task-empty-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
}

.task-empty-nav a {
  color: #7dd3fc;
  font-size: 12px;
  text-decoration: none;
}

.task-empty-nav a:hover {
  text-decoration: underline;
}

.task-row--warn {
  color: #fde68a;
}

.task-row--warn p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.task-row--warn .btn-mine-refresh {
  margin-top: 2px;
}

.clone-ref-preview-wrap {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  max-height: 200px;
}

.clone-ref-preview {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.mine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.mine-section-head__title {
  margin: 0;
}

.btn-mine-refresh {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
}

.btn-mine-refresh:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.btn-mine-refresh:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.task-row-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-copy-ref {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  cursor: pointer;
  font-family: inherit;
}

.btn-copy-ref:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.task-queue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.06);
}

.task-queue-count {
  flex: 1;
  min-width: 0;
}

.btn-queue-batch {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.15);
  color: #fef3c7;
  cursor: pointer;
  font-family: inherit;
}

.btn-queue-batch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-queue-batch:active:not(:disabled) {
  filter: brightness(1.08);
}

.btn-task-process {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe;
  cursor: pointer;
  font-family: inherit;
}

.btn-task-process:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-task-process:active:not(:disabled) {
  filter: brightness(1.06);
}

.footer-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 120;
  max-width: 90vw;
  text-align: center;
}

.hero-card.js-scroll-into {
  cursor: pointer;
  outline: none;
}

.hero-card.js-scroll-into:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

.case-cap.js-demo-play {
  cursor: pointer;
  user-select: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.demo-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.demo-modal__head h3 {
  margin: 0;
  font-size: 16px;
  color: #f8fafc;
}

.demo-modal__x {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.demo-modal__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .demo-modal__compare {
    grid-template-columns: 1fr;
  }
}

.demo-modal__compare figure {
  margin: 0;
}

.demo-modal__compare figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.demo-modal__video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  max-height: 220px;
}

.demo-modal__video--fx {
  filter: contrast(1.12) saturate(1.2) brightness(1.05);
}
