:root {
  --bg: #eef4ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(107, 114, 255, 0.18);
  --text: #11203d;
  --text-soft: #51607d;
  --primary: #5f6cff;
  --primary-2: #7e68ff;
  --cyan: #44d0ff;
  --red: #ff4f6b;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(86, 106, 190, 0.16);
  --mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(1000px 700px at -10% -10%, rgba(95, 108, 255, 0.28), transparent 56%),
    radial-gradient(980px 620px at 110% 8%, rgba(68, 208, 255, 0.24), transparent 56%),
    radial-gradient(900px 620px at 50% 110%, rgba(126, 104, 255, 0.18), transparent 58%),
    linear-gradient(180deg, #f9fbff 0%, #edf3ff 50%, #e9f0ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(120, 137, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 137, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 100%);
}

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

img,
video {
  max-width: 100%;
}

.bg-glow {
  position: fixed;
  left: -8vw;
  top: -12vw;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(95, 108, 255, 0.28), transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.screen {
  padding: 96px 0 72px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead,
.desc,
.section-head p,
.section-copy p {
  color: var(--text-soft);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 220ms ease;
}

.top-nav.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(87, 101, 187, 0.12);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 18px rgba(68, 208, 255, 0.54);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-family: var(--mono);
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.is-active {
  color: var(--text);
}

.scroll-progress {
  position: sticky;
  top: 76px;
  z-index: 999;
  height: 3px;
  background: rgba(95, 108, 255, 0.08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--red), var(--cyan));
  box-shadow: 0 0 16px rgba(95, 108, 255, 0.3);
}

.btn,
.floating-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:hover,
.floating-join:hover {
  transform: translateY(-1px);
}

.btn-primary,
.floating-join {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--primary-2) 52%, var(--cyan));
  box-shadow: 0 16px 30px rgba(112, 100, 255, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(107, 114, 255, 0.18);
  box-shadow: 0 12px 24px rgba(97, 111, 196, 0.1);
}

.floating-join {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.94);
}

body.show-floating-join .floating-join {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(0.88);
}

.hero-grid,
.two-col,
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.outcomes-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.outcomes-layout .section-copy {
  order: 1;
}

.outcomes-layout .proof-wall {
  order: 2;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-feed {
  margin-top: 24px;
  padding: 18px 18px 14px;
}

.hero-trust-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-trust-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 28px rgba(94, 110, 185, 0.08);
}

.hero-trust-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.hero-trust-card span {
  color: var(--text-soft);
  font-size: 13px;
}

.hero-feed-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #37d67a;
  box-shadow: 0 0 16px rgba(55, 214, 122, 0.48);
}

.feed-tip {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  font-family: var(--mono);
}

.hero-feed-body {
  display: grid;
  gap: 10px;
  min-height: 170px;
}

.hero-feed-body p {
  min-height: 28px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.hero-feed-body p::before {
  content: "》";
  display: inline-block;
  margin-right: 10px;
  color: var(--primary);
  font-family: var(--mono);
}

.hero-highlight {
  margin-top: 18px;
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlight span {
  opacity: 0;
  transform: translateY(12px);
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 79, 107, 0.12);
  color: var(--red);
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-highlight span.show {
  opacity: 1;
  transform: translateY(0);
}

.price-panel {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 79, 107, 0.08), rgba(126, 104, 255, 0.12));
  border: 1px solid rgba(255, 79, 107, 0.18);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.fit-card,
.fit-feature {
  padding: 22px;
}

.fit-card {
  min-height: 100%;
}

.fit-card-match,
.fit-card-unmatch,
.fit-feature-user,
.fit-feature-team {
  grid-column: span 3;
}

.fit-feature-benefit {
  grid-column: 2 / span 4;
}

.fit-card-good {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(220, 252, 231, 0.92)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 48%);
  border-color: rgba(34, 197, 94, 0.18);
}

.fit-card-bad {
  background:
    linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(255, 228, 230, 0.92)),
    radial-gradient(circle at top right, rgba(255, 79, 107, 0.14), transparent 48%);
  border-color: rgba(255, 79, 107, 0.18);
}

.fit-card h3,
.fit-feature strong {
  margin-bottom: 12px;
}

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-tags span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.16);
  color: var(--text);
  font-size: 14px;
}

.fit-tags-warning span {
  background: rgba(255, 79, 107, 0.1);
  border-color: rgba(255, 79, 107, 0.16);
}

.fit-feature {
  display: grid;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 255, 0.92)),
    radial-gradient(circle at top right, rgba(68, 208, 255, 0.12), transparent 48%);
}

.fit-feature p {
  margin: 0;
  color: var(--text-soft);
}

.fit-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
}

.fit-feature-list li::marker {
  color: var(--primary);
}

.fit-feature-list-user li {
  color: #0f766e;
}

.fit-feature-list-user li::marker {
  color: #0f766e;
}

.fit-feature-list-team li {
  color: #7c3aed;
}

.fit-feature-list-team li::marker {
  color: #7c3aed;
}

.price-label {
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 13px;
  font-family: var(--mono);
}

.price-value {
  margin: 0;
  color: var(--red);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  font-weight: 800;
}

.hero-tags,
.pay-chips,
.stat-chips,
.system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.pay-chips span,
.stat-chips span,
.system-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(105, 123, 255, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  font-size: 13px;
}

.hero-visual-card {
  padding: 22px;
}

.hero-visual-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-visual-meta strong {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
}

.hero-visual-meta p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.hero-emoji-stage {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 79, 107, 0.18), transparent 34%),
    radial-gradient(circle at 76% 26%, rgba(95, 108, 255, 0.2), transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(68, 208, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 248, 255, 0.92));
  border: 1px solid var(--border);
}

.hero-emoji-core {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.hero-emoji-main,
.hero-emoji-secondary,
.hero-emoji-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.hero-emoji-main {
  min-width: 132px;
  min-height: 132px;
  border-radius: 32px;
  font-size: clamp(66px, 10vw, 96px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 42px rgba(97, 111, 196, 0.14);
}

.hero-emoji-secondary {
  min-width: 72px;
  min-height: 72px;
  border-radius: 22px;
  font-size: 40px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(97, 111, 196, 0.12);
}

.hero-emoji-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(97, 111, 196, 0.12);
}

.hero-emoji-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-emoji-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(107, 114, 255, 0.16);
  color: var(--text-soft);
  font-size: 13px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-emoji-chip.is-active {
  background: rgba(255, 79, 107, 0.12);
  color: var(--red);
  transform: translateY(-2px);
}

.hero-emoji-stage.is-animating .hero-emoji-main {
  animation: heroEmojiPop 680ms ease;
}

.hero-emoji-stage.is-animating .hero-emoji-secondary {
  animation: heroEmojiFloat 680ms ease;
}

.hero-visual-dots {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual-dot {
  border: 1px solid rgba(107, 114, 255, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 180ms ease;
}

.hero-visual-dot.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(112, 100, 255, 0.2);
}

.lottie-node {
  position: relative;
  overflow: hidden;
}

.lottie-node > img,
.lottie-node > .lottie-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.lottie-node > .lottie-box {
  position: absolute;
  inset: 0;
}

.lottie-node .lottie-box svg,
.lottie-node .lottie-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.avatar-lottie {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
}

.hero-panel-lottie,
.pay-lottie,
.system-lottie,
.join-lottie {
  width: 100%;
  min-height: 420px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.member-mini-lottie {
  width: 100%;
  min-height: 220px;
  max-height: 240px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

@keyframes heroEmojiPop {
  0% {
    transform: scale(0.88) translateY(10px);
    opacity: 0.5;
  }
  60% {
    transform: scale(1.04) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes heroEmojiFloat {
  0% {
    transform: translateY(12px) rotate(-6deg);
    opacity: 0.4;
  }
  60% {
    transform: translateY(-4px) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}

.revenue-join-lottie {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-proof {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

.hero-proof strong {
  color: var(--text);
  font-size: 18px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.revenue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
}

.revenue-stage {
  position: relative;
  min-height: 660px;
  padding: 18px 18px 92px;
  overflow: hidden;
}

.revenue-slide {
  position: absolute;
  inset: 18px 18px 88px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
  transition: opacity 320ms ease, transform 320ms ease;
}

.revenue-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: grid;
}

.slide-copy {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.slide-copy p {
  margin: 0;
}

.slide-kicker,
.card-kicker {
  margin: 0;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 13px;
}

.revenue-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 18px;
  background: #0a1020;
  border: 1px solid rgba(164, 174, 255, 0.2);
  object-fit: contain;
}

.revenue-video-shell {
  position: relative;
  min-height: 0;
}

.revenue-video-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 26, 0.14), rgba(8, 12, 26, 0.62)),
    radial-gradient(circle at center, rgba(95, 108, 255, 0.12), transparent 42%);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.revenue-video-hint:hover {
  background:
    linear-gradient(180deg, rgba(8, 12, 26, 0.2), rgba(8, 12, 26, 0.68)),
    radial-gradient(circle at center, rgba(95, 108, 255, 0.16), transparent 42%);
}

.revenue-video-hint-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 28px;
  box-shadow: 0 18px 32px rgba(10, 16, 32, 0.24);
}

.revenue-video-hint-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.revenue-video-hint-copy strong {
  font-size: 20px;
  line-height: 1.2;
}

.revenue-video-hint-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.revenue-video-shell.is-playing .revenue-video-hint {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

body.video-fullscreen .floating-join {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate3d(0, 20px, 0);
}

body.video-fullscreen .revenue-video:fullscreen::-webkit-media-controls-panel,
body.video-fullscreen .revenue-video:-webkit-full-screen::-webkit-media-controls-panel {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.video-fullscreen.show-fullscreen-video-controls .revenue-video:fullscreen::-webkit-media-controls-panel,
body.video-fullscreen.show-fullscreen-video-controls .revenue-video:-webkit-full-screen::-webkit-media-controls-panel {
  opacity: 1;
  transform: translateY(0);
}

.revenue-rail {
  display: grid;
  gap: 10px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.rail-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border-radius: 18px;
  padding: 18px 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 196px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rail-item span {
  color: var(--text-soft);
  font-size: 12px;
}

.rail-item strong {
  margin-top: 10px;
  font-size: 18px;
}

.rail-item.is-active {
  background: linear-gradient(180deg, rgba(95, 108, 255, 0.16), rgba(68, 208, 255, 0.12));
  box-shadow: 0 14px 24px rgba(95, 108, 255, 0.14);
}

.revenue-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  pointer-events: none;
}

.revenue-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 72px;
  font-family: var(--mono);
}

.revenue-counter strong {
  font-size: 22px;
  color: var(--text);
}

.revenue-counter span {
  color: var(--text-soft);
  font-size: 13px;
}

.revenue-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(95, 108, 255, 0.08);
  overflow: hidden;
}

.revenue-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--red), var(--cyan));
}

.statement {
  font-size: 18px;
}

.statement-list {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 14px;
}

.statement strong,
.profit-box strong {
  color: var(--red);
  font-weight: 800;
}

.statement .statement-accent {
  color: var(--red);
  font-size: 1.22em;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.proof-wall {
  min-height: 550px;
  padding: 0;
}

.proof-stack {
  position: relative;
  min-height: 550px;
  touch-action: pan-y;
}

.proof-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 12px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: hintPulse 2s ease-in-out infinite;
}

.proof-hint::before {
  content: '👆';
  font-size: 18px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.proof-card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(46, 60, 122, 0.1);
  transform-origin: top left;
  animation: floatProof 12s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0s ease;
}

.proof-card:hover {
  transform: rotate(0deg) !important;
  z-index: 9999 !important;
  box-shadow: 0 20px 40px rgba(46, 60, 122, 0.3) !important;
  animation-play-state: paused !important;
}

.proof-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.proof-stack.is-mobile-gallery {
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 10px;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.proof-stack.is-mobile-gallery::-webkit-scrollbar {
  display: none;
}

.proof-card-mobile {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  transform: none !important;
  animation: none !important;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(46, 60, 122, 0.12);
}

.proof-card-mobile img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (hover: none), (pointer: coarse) {
  .proof-card {
    animation: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
}

.flow-grid,
.vision-grid {
  display: grid;
  gap: 18px;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-card,
.vision-card,
.join-card {
  padding: 22px;
}

.vision-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
}

.vision-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 1px solid #a78bfa;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.compare-card {
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.compare-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #34d399;
}

.compare-green h3 {
  color: #065f46;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-red {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
}

.compare-red h3 {
  color: #991b1b;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list li:nth-child(1) { animation-delay: 0.1s; }
.compare-list li:nth-child(2) { animation-delay: 0.2s; }
.compare-list li:nth-child(3) { animation-delay: 0.3s; }
.compare-list li:nth-child(4) { animation-delay: 0.4s; }
.compare-list li:nth-child(5) { animation-delay: 0.5s; }

.compare-list .emoji {
  font-size: 24px;
  animation: bounce 1s ease-in-out infinite;
  flex-shrink: 0;
}

.compare-list li:nth-child(1) .emoji { animation-delay: 0s; }
.compare-list li:nth-child(2) .emoji { animation-delay: 0.2s; }
.compare-list li:nth-child(3) .emoji { animation-delay: 0.4s; }
.compare-list li:nth-child(4) .emoji { animation-delay: 0.6s; }
.compare-list li:nth-child(5) .emoji { animation-delay: 0.8s; }

.compare-list span:last-child {
  color: #374151;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  padding-top: 3px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.flow-lottie {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.bullet-list,
.step-list,
.task-stage-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
}

.step-list li strong {
  color: var(--text);
}

.profit-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(95, 108, 255, 0.08);
}

.pay-card,
.system-card {
  padding: 20px;
}

.pay-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pay-card-link:hover .pay-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.pay-summary {
  margin-top: 16px;
  display: grid;
  gap: 4px;
}

.pay-summary strong {
  color: var(--red);
  font-size: 36px;
}

.pay-brand-row {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}

.pay-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.pay-brand-card p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
}

.alipay-brand .brand-mark {
  background: linear-gradient(135deg, #1677ff, #36a2ff);
}

.wechat-brand .brand-mark {
  background: linear-gradient(135deg, #10b981, #22c55e);
}

.pay-process {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pay-process span {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(95, 108, 255, 0.08);
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
  font-family: var(--mono);
}

.join-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.join-lottie {
  min-height: 260px;
}

.system-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.system-preview {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.revenue-layout.is-video-playing .revenue-meta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.system-preview-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(95, 108, 255, 0.08);
  display: grid;
  gap: 4px;
}

.system-preview-card strong {
  color: var(--text);
}

.system-preview-card span {
  color: var(--text-soft);
}

.app-shell {
  padding: 88px 0 64px;
}

.shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.template-grid-item {
  aspect-ratio: 1;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.template-grid-item:hover {
  border-color: rgba(95, 108, 255, 0.42);
  box-shadow: 0 14px 24px rgba(95, 108, 255, 0.12);
  transform: translateY(-2px);
}

.template-grid-item.template-grid-add {
  border-style: dashed;
  border-color: rgba(95, 108, 255, 0.3);
  background: rgba(95, 108, 255, 0.04);
}

.template-grid-item.template-grid-add:hover {
  border-color: rgba(95, 108, 255, 0.6);
  background: rgba(95, 108, 255, 0.08);
}

.template-grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95, 108, 255, 0.12), rgba(126, 104, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.template-grid-item.template-grid-add .template-grid-icon {
  background: rgba(95, 108, 255, 0.16);
  font-size: 32px;
  color: var(--primary);
}

.template-grid-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.template-grid-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* 模板关联用户区域 */
.template-users-section {
  margin: 16px 0;
  padding: 16px;
  background: var(--surface-soft, #f8f9fa);
  border-radius: 10px;
  border: 1px solid var(--border-soft, #e5e7eb);
}

.template-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.template-users-header strong {
  font-size: 14px;
  color: var(--text-strong, #111827);
}

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

.assigned-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 8px;
  gap: 12px;
}

.assigned-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.assigned-user-info .user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong, #111827);
}

.assigned-user-info .user-phone {
  font-size: 13px;
  color: var(--text-soft, #6b7280);
  font-family: ui-monospace, monospace;
}

.content-empty {
  font-size: 13px;
  color: var(--text-soft, #9ca3af);
  text-align: center;
  padding: 12px 0;
  margin: 0;
}

/* 关联用户弹窗列表 */
.assign-user-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 12px;
}

.assign-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.assign-user-item:hover {
  background: var(--surface-soft, #f3f4f6);
}

.assign-user-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand, #6366f1);
}

.assign-user-item .user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong, #111827);
}

.assign-user-item .user-phone {
  font-size: 13px;
  color: var(--text-soft, #6b7280);
  font-family: ui-monospace, monospace;
}

/* === 模板编辑器布局 === */
.template-editor-panel {
  border: 2px solid rgba(95, 108, 255, 0.2);
  box-shadow: 0 8px 32px rgba(95, 108, 255, 0.08);
}

.template-editor-toolbar {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.template-editor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb-sep {
  color: var(--text-soft, #9ca3af);
  font-size: 14px;
}

.template-editor-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent !important;
  border: none !important;
  color: var(--primary, #5f6cff);
  font-weight: 500;
  padding: 4px 8px !important;
  min-height: auto !important;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(95, 108, 255, 0.08) !important;
  border-radius: 8px;
}

.btn-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

.btn-danger:hover {
  background: #fecaca !important;
}

.btn-text-danger {
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

.btn-text-danger:hover {
  background: #fee2e2 !important;
}

.template-editor-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .template-editor-body {
    grid-template-columns: 1fr;
  }
}

/* 侧边栏 */
.template-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.template-sidebar-section {
  padding: 16px;
  background: var(--surface-soft, #f8f9fb);
  border-radius: 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
}

.template-sidebar-section label {
  margin-top: 8px;
}

.sidebar-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft, #6b7280);
  margin: 0 0 12px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* 主内容区域 */
.template-editor-main {
  min-width: 0;
}

.template-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.template-main-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(95, 108, 255, 0.1);
  color: var(--primary, #5f6cff);
}

/* 任务表单 */
.task-form {
  padding: 20px;
  background: linear-gradient(135deg, rgba(95, 108, 255, 0.04), rgba(126, 104, 255, 0.02));
  border: 2px solid rgba(95, 108, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
}

.task-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-form-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1f2937);
}

.task-form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.shortcut-hint {
  font-size: 12px;
  color: var(--text-soft, #9ca3af);
  font-family: ui-monospace, monospace;
}

/* 任务卡片 */
.template-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.template-task-card:hover {
  border-color: rgba(95, 108, 255, 0.25);
  box-shadow: 0 2px 8px rgba(95, 108, 255, 0.06);
}

.template-task-card.task-editing {
  border-color: rgba(95, 108, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(95, 108, 255, 0.1);
  background: rgba(95, 108, 255, 0.03);
}

.task-card-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(95, 108, 255, 0.12), rgba(126, 104, 255, 0.08));
  color: var(--primary, #5f6cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.task-card-body {
  flex: 1;
  min-width: 0;
}

.task-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #1f2937);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card-preview {
  font-size: 13px;
  color: var(--text-soft, #6b7280);
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
  position: relative;
}

.task-card-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9));
}

.task-card-preview p {
  margin: 0;
}

.task-card-preview img {
  max-height: 24px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-icon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-icon-ghost {
  color: var(--text-soft, #6b7280);
}

.btn-icon-ghost:hover:not(:disabled) {
  background: rgba(95, 108, 255, 0.1);
  color: var(--primary, #5f6cff);
}

/* 空状态 */
.task-empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border, #e5e7eb);
  border-radius: 16px;
  background: rgba(95, 108, 255, 0.02);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-soft, #9ca3af);
  margin: 0 0 20px;
}

/* 富文本编辑器 */
.rich-editor {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.rich-editor-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-soft, #f8f9fb);
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
}

.btn-editor {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft, #e5e7eb);
  background: #fff;
  color: var(--text, #1f2937);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-editor:hover {
  border-color: rgba(95, 108, 255, 0.4);
  background: rgba(95, 108, 255, 0.06);
  color: var(--primary, #5f6cff);
}

.btn-editor-danger {
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-editor-danger:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.rich-editor-canvas {
  min-height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-placeholder {
  color: var(--text-soft, #9ca3af);
  font-size: 14px;
  text-align: center;
  padding: 32px 16px;
}

.content-block {
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
}

.content-block:focus-within {
  border-color: rgba(95, 108, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(95, 108, 255, 0.08);
}

.content-block-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--surface-soft, #f8f9fb);
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft, #6b7280);
}

.btn-remove-block {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-remove-block:hover {
  background: #fee2e2;
}

.content-textarea {
  width: 100%;
  min-height: 80px;
  border: none;
  padding: 12px;
  resize: vertical;
  font: inherit;
  outline: none;
  background: transparent;
  color: var(--text, #1f2937);
}

.content-image-preview {
  padding: 12px;
  text-align: center;
}

.content-image-preview img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
}

.content-text {
  margin: 0;
  line-height: 1.6;
}

.content-image {
  margin: 4px 0;
}

.content-image img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  object-fit: contain;
}

.shell-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.shell-panel {
  padding: 24px;
}

.shell-panel h2,
.shell-panel h3 {
  margin-bottom: 10px;
}

.method-grid,
.summary-grid,
.quick-actions,
.member-top-grid,
.member-progress-grid,
.member-task-grid,
.login-choice-grid {
  display: grid;
  gap: 14px;
}

.method-grid,
.quick-actions,
.summary-grid,
.member-progress-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-grid,
.pay-brand-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.login-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-card,
.summary-item,
.member-panel,
.task-card,
.login-choice {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.method-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.method-card.is-selected {
  border-color: rgba(95, 108, 255, 0.42);
  box-shadow: 0 14px 24px rgba(95, 108, 255, 0.12);
  transform: translateY(-1px);
}

.method-card strong,
.summary-item strong,
.member-panel strong,
.task-card strong,
.login-choice strong {
  display: block;
  margin-bottom: 4px;
}

.method-card p,
.summary-item p,
.member-panel p,
.task-card p,
.login-choice p {
  margin: 0;
  color: var(--text-soft);
}

.task-card {
  width: 100%;
  text-align: left;
  font: inherit;
}

.task-focus-card {
  border-color: rgba(95, 108, 255, 0.24);
  box-shadow: 0 16px 34px rgba(95, 108, 255, 0.08);
}

.encouragement-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(95, 108, 255, 0.06));
}

label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

input {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: rgba(95, 108, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(95, 108, 255, 0.14);
}

textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 12px;
  outline: none;
  font: inherit;
}

select {
  min-height: 46px;
  padding: 0 12px;
}

textarea:focus,
select:focus {
  border-color: rgba(95, 108, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(95, 108, 255, 0.14);
}

.checkout-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.status-banner {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(95, 108, 255, 0.08);
  border: 1px solid rgba(95, 108, 255, 0.14);
}

.status-banner.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.18);
}

.status-banner.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.status-banner p {
  margin: 0;
  color: var(--text);
}

.status-banner small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.status-line span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-soft);
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.member-user {
  display: flex;
  gap: 14px;
  align-items: center;
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 79, 107, 0.16), rgba(95, 108, 255, 0.16));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--red);
}

.member-panel-list {
  display: grid;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
}

.status-pill.todo {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.status-pill.doing {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.status-pill.done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.task-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

.panel-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.admin-card p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.admin-task-panel {
  margin-top: 24px;
}

.order-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(95, 108, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(95, 108, 255, 0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  min-width: 140px;
}

.filter-group input {
  min-width: 200px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.order-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
}

.order-table thead {
  background: rgba(95, 108, 255, 0.06);
  position: sticky;
  top: 0;
}

.order-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.order-table th:first-child {
  border-radius: 14px 0 0 0;
}

.order-table th:last-child {
  border-radius: 0 14px 0 0;
}

.order-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.order-table tbody tr:hover {
  background: rgba(95, 108, 255, 0.04);
}

.order-table tbody tr:last-child {
  border-bottom: none;
}

.order-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 14px;
}

.order-table tbody tr:last-child td:last-child {
  border-radius: 0 0 14px 0;
}

.order-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
}

.text-mono {
  font-family: var(--mono);
  font-size: 13px;
}

.text-right {
  text-align: right;
}

.empty-cell {
  text-align: center;
  padding: 40px !important;
}

.empty-cell strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-cell p {
  color: var(--text-soft);
  margin: 0;
}

.order-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-cell .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.order-status-cell .status-text {
  font-size: 13px;
  font-weight: 600;
}

.order-status-cell.todo .status-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.order-status-cell.todo .status-text {
  color: #2563eb;
}

.order-status-cell.doing .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: pulse 1.5s infinite;
}

.order-status-cell.doing .status-text {
  color: #b45309;
}

.order-status-cell.done .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.order-status-cell.done .status-text {
  color: #059669;
}

.order-status-cell.closed .status-dot {
  background: #9ca3af;
}

.order-status-cell.closed .status-text {
  color: #6b7280;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.actions-cell {
  white-space: nowrap;
}

.status-pill-table {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.status-pill-table.done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.status-pill-table.closed {
  background: rgba(156, 163, 175, 0.12);
  color: #6b7280;
}

.task-config-panel {
  margin-top: 24px;
}

.content-type-config,
.layout-config {
  margin-bottom: 20px;
}

.config-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.content-type-options,
.layout-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.content-type-option,
.layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
}

.content-type-option:hover,
.layout-option:hover {
  border-color: var(--primary);
  background: rgba(95, 108, 255, 0.04);
}

.content-type-option:has(input:checked),
.layout-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(95, 108, 255, 0.08);
}

.content-type-option input,
.layout-option input {
  display: none;
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.text-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.image-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.mixed-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
}

.content-type-option span {
  font-weight: 600;
  color: var(--text);
}

.content-type-option small {
  font-size: 12px;
  color: var(--text-soft);
}

.layout-preview {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout-preview.horizontal {
  flex-direction: row;
}

.layout-preview.reverse {
  flex-direction: row-reverse;
}

.preview-image {
  flex: 1;
  background: linear-gradient(135deg, rgba(95, 108, 255, 0.1), rgba(68, 208, 255, 0.1));
  border-bottom: 1px dashed var(--border);
}

.layout-preview.horizontal .preview-image {
  border-bottom: none;
  border-right: 1px dashed var(--border);
}

.layout-preview.reverse .preview-image {
  border-right: none;
  border-left: 1px dashed var(--border);
}

.preview-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.5);
}

.layout-option span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.image-url-input {
  margin-top: 12px;
}

.payment-qr-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
}

.payment-qr-header,
.progress-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.payment-qr-header p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.payment-qr-body {
  display: grid;
  place-items: center;
  padding: 18px 0 4px;
}

.payment-qr-body img {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--border);
}

.progress-panel {
  margin: 18px 0 22px;
}

.progress-note {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.progress-track {
  margin-top: 12px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(95, 108, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f6cff 0%, #ff4f6b 100%);
}

.compact-form {
  margin-bottom: 16px;
}

.compact-actions {
  margin-top: 0;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-inner div {
  display: flex;
  gap: 16px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-entry {
  animation: entryPulse 1.2s ease-in-out 2;
}

.shake-once {
  animation: shakeOnce 580ms ease;
}

@keyframes floatProof {
  0%,
  100% {
    transform:
      translate(var(--x), var(--y))
      rotate(var(--r))
      scale(var(--s));
  }
  50% {
    transform:
      translate(calc(var(--x) + 6px), calc(var(--y) - 10px))
      rotate(calc(var(--r) + 1.2deg))
      scale(var(--s));
  }
}

@keyframes entryPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 16px 30px rgba(112, 100, 255, 0.28);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 20px 38px rgba(255, 79, 107, 0.26);
  }
}

@keyframes shakeOnce {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .two-col,
  .pay-grid,
  .join-card,
  .flow-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .revenue-layout {
    grid-template-columns: 1fr;
  }

  .revenue-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-item {
    min-height: 96px;
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 860px) {
  .screen {
    padding: 78px 0 54px;
  }

  .vision-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .pay-brand-row,
  .pay-process,
  .hero-trust-grid,
  .shell-grid,
  .method-grid,
  .summary-grid,
  .quick-actions,
  .member-top-grid,
  .member-progress-grid,
  .member-task-grid,
  .login-choice-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.static-links {
    display: flex;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
  }

  .hero-feed-body {
    min-height: 200px;
  }

  .member-header,
  .panel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .order-filter-bar {
    padding: 14px;
  }

  .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group select,
  .filter-group input {
    width: 100%;
    min-width: 0;
  }

  .hero-panel-lottie,
  .revenue-join-lottie,
  .pay-lottie,
  .system-lottie,
  .member-mini-lottie {
    min-height: 300px;
  }

  .revenue-video {
    min-height: 280px;
  }

  .revenue-meta {
    position: static;
    margin-top: 16px;
  }

  .proof-stack {
    min-height: 540px;
  }
}

@media (max-width: 860px) {
  .revenue-stage {
    position: static;
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .revenue-slide {
    position: static;
    inset: auto;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: none;
    min-width: 0;
  }

  .revenue-slide.is-active {
    display: grid;
    pointer-events: auto;
  }

  .slide-copy,
  .revenue-video-shell,
  .revenue-join-lottie {
    min-width: 0;
  }

  .slide-copy h3,
  .slide-copy p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 300px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .fit-card-match,
  .fit-card-unmatch,
  .fit-feature-user,
  .fit-feature-team,
  .fit-feature-benefit {
    grid-column: 1 / -1;
  }

  .container {
    width: min(100% - 28px, 1200px);
  }

  .top-nav {
    padding: 12px 0;
  }

  .nav-inner {
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    display: inline-block;
    max-width: 180px;
    line-height: 1.35;
    word-break: break-word;
  }

  .floating-join {
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  body.show-floating-join .floating-join {
    transform: scale(0.96);
  }

  .hero-highlight span {
    font-size: 26px;
  }

  .scroll-progress {
    top: 64px;
  }

  .price-panel {
    padding: 16px;
  }

  .shell-panel,
  .method-card,
  .summary-item,
  .member-panel,
  .task-card,
  .login-choice,
  .admin-card {
    padding: 18px;
  }

  .nav-links.static-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
  }

  .checkout-action-row > .btn,
  .checkout-action-row > a.btn,
  .quick-actions > .btn,
  .quick-actions > a.btn {
    width: 100%;
    justify-content: center;
  }

  .member-user {
    align-items: flex-start;
  }

  .member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 18px;
  }

  .task-card-header,
  .payment-qr-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-line span {
    width: 100%;
    text-align: center;
  }

  .order-table {
    min-width: 760px;
  }

  .order-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay,
  .toast-modal {
    padding: 14px;
  }

  .modal-content,
  .toast-modal-card {
    width: min(100%, calc(100vw - 28px));
  }

  .proof-card {
    width: 48%;
  }

  .revenue-stage {
    min-height: auto;
    padding: 14px 14px 76px;
  }

  .revenue-slide {
    inset: 14px 14px 72px;
    gap: 10px;
  }

  .slide-copy {
    gap: 4px;
  }

  .slide-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
    word-break: break-word;
  }

  .slide-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .slide-kicker,
  .card-kicker {
    font-size: 12px;
  }

  .revenue-video-shell {
    overflow: hidden;
    border-radius: 18px;
  }

  .revenue-video {
    min-height: 240px;
  }

  .revenue-video-hint {
    gap: 12px;
    padding: 18px;
  }

  .revenue-video-hint-icon {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .revenue-video-hint-copy strong {
    font-size: 17px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 72px 0 46px;
  }

  .container {
    width: min(100% - 20px, 1200px);
  }

  .hero-highlight span {
    font-size: 22px;
  }

  .price-value,
  .pay-summary strong {
    font-size: 30px;
  }

  .proof-stack {
    min-height: 420px;
  }

  .proof-card {
    width: 44%;
  }

  .proof-wall {
    min-height: 0;
  }

  .proof-stack.is-mobile-gallery {
    grid-auto-columns: 100%;
    gap: 12px;
    padding: 2px 2px 8px;
  }

  .proof-card-mobile {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 10px;
  }

  .proof-card-mobile img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .revenue-video {
    min-height: 210px;
  }

  .revenue-stage {
    padding: 12px 12px 72px;
  }

  .revenue-slide {
    inset: 12px 12px 68px;
  }

  .slide-copy h3 {
    font-size: 16px;
  }

  .revenue-video-hint {
    flex-direction: column;
    text-align: center;
  }

  .revenue-video-hint-copy {
    text-align: center;
  }

  .member-header,
  .member-panel-list,
  .status-banner,
  .tpl-overview-card,
  .tpl-progress-panel,
  .tpl-focus-card,
  .tpl-next-card,
  .tpl-pipeline,
  .tpl-detail-panel {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 分页样式 */
.pagination-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 图片上传区域样式 */
.image-upload-section {
  margin-bottom: 16px;
}

.upload-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
}

.drop-zone:hover {
  border-color: var(--primary);
  background: rgba(95, 108, 255, 0.05);
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(95, 108, 255, 0.1);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  font-size: 32px;
}

.drop-zone-content p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.drop-zone-content small {
  font-size: 12px;
  color: var(--text-soft);
}

.drop-zone-input {
  display: none;
}

.upload-preview {
  margin-top: 12px;
  text-align: center;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

/* 自由排版编辑器样式 */
.layout-editor-section {
  margin-bottom: 16px;
}

.layout-canvas {
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.canvas-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--text-soft);
}

.layout-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.layout-block {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.block-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  padding: 2px 8px;
  background: rgba(95, 108, 255, 0.1);
  border-radius: 4px;
}

.block-actions {
  display: flex;
  gap: 4px;
}

.btn-xs {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: transparent;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.block-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}

.block-image-upload {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.block-image-upload input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.block-image-preview {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  object-fit: contain;
}

.mixed-layout-options {
  margin-bottom: 10px;
}

.mixed-layout-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: white;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.toast-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.toast-modal.hidden {
  display: none;
}

.toast-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.42);
  backdrop-filter: blur(6px);
}

.toast-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 28px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.94));
  box-shadow: 0 30px 80px rgba(59, 78, 152, 0.22);
}

.toast-modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #c06f00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toast-modal-card h3 {
  margin-bottom: 10px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

.modal-body label {
  display: block;
  margin-bottom: 16px;
}

.modal-body label:last-of-type {
  margin-bottom: 0;
}

.modal-body label span.required {
  color: #ef4444;
}

.modal-body input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  margin-top: 6px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

/* 临时密码样式 */
.password-cell {
  font-family: monospace;
}

.password-text {
  background: rgba(95, 108, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* 任务详情弹窗样式 */
.task-detail-modal {
  max-width: 600px;
}

.task-detail-modal .user-info {
  padding: 16px;
  background: rgba(95, 108, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 20px;
}

.task-detail-modal .user-info p {
  margin: 6px 0;
  font-size: 14px;
}

.task-detail-modal .task-list h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.task-detail-modal .task-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}

.task-detail-modal .task-item:last-child {
  margin-bottom: 0;
}

.task-detail-modal .task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.task-detail-modal .task-title {
  font-weight: 600;
  font-size: 14px;
}

.task-detail-modal .task-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.task-detail-modal .task-status.done {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.task-detail-modal .task-status.doing {
  background: rgba(251, 191, 36, 0.2);
  color: #f59e0b;
}

.task-detail-modal .task-status.todo {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.task-detail-modal .task-summary {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.task-detail-modal .task-time {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.task-detail-modal .empty-tasks {
  text-align: center;
  color: var(--text-soft);
  padding: 30px;
}

/* 成功按钮样式 */
.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

/* ===== Admin Task Detail Modal ===== */
.modal-task-detail {
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
}
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f6cff, #7c5fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.modal-user-phone {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.modal-stats-bar {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}
.modal-stat {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border-right: 1px solid var(--border);
}
.modal-stat:last-child { border-right: none; }
.modal-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.modal-stat-value.done { color: #22c55e; }
.modal-stat-value.doing { color: #5f6cff; }
.modal-stat-value.todo { color: #94a3b8; }
.modal-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.modal-progress-track {
  height: 4px;
  background: rgba(0,0,0,0.06);
}
.modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5f6cff, #7c5fff);
  border-radius: 0 2px 2px 0;
  transition: width 300ms ease;
}
.modal-template-label {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.modal-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}
.modal-section-title.doing { background: rgba(95,108,255,0.08); color: #5f6cff; }
.modal-section-title.todo { background: rgba(148,163,184,0.12); color: #64748b; }
.modal-section-title.done { background: rgba(34,197,94,0.08); color: #16a34a; }
.modal-task-section { margin-bottom: 20px; }
.modal-task-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  overflow: hidden;
}
.modal-task-item:hover {
  border-color: rgba(95,108,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.modal-task-item.expanded {
  border-color: rgba(95,108,255,0.35);
  box-shadow: 0 4px 12px rgba(95,108,255,0.08);
}
.modal-task-item.task-status-done { opacity: 0.7; }
.modal-task-item.task-status-doing { border-left: 3px solid #5f6cff; }
.modal-task-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.modal-task-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(95,108,255,0.08);
  color: #5f6cff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.task-status-done .modal-task-num { background: rgba(34,197,94,0.1); color: #16a34a; }
.task-status-todo .modal-task-num { background: rgba(148,163,184,0.1); color: #94a3b8; }
.modal-task-info {
  flex: 1;
  min-width: 0;
}
.modal-task-info strong {
  display: block;
  font-size: 14px;
  margin: 0;
}
.modal-task-preview {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.modal-status-pill.done { background: rgba(34,197,94,0.12); color: #16a34a; }
.modal-status-pill.doing { background: rgba(95,108,255,0.12); color: #5f6cff; }
.modal-status-pill.todo { background: rgba(148,163,184,0.15); color: #64748b; }
.modal-task-detail {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.modal-task-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  padding-top: 12px;
}
.modal-task-time {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.modal-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

/* ===== Member Task Pipeline ===== */
.tpl-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 14px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(95, 108, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(95, 108, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.88));
  box-shadow: 0 16px 40px rgba(95, 108, 255, 0.08);
}

.tpl-overview-card h3 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 3.6vw, 30px);
}

.tpl-overview-card .desc {
  margin: 0;
  color: var(--text-soft);
}

.tpl-overview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.tpl-overview-chip {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(95, 108, 255, 0.12);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.tpl-overview-chip span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.tpl-overview-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: #5f6cff;
}

.tpl-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.tpl-stat-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
}
.tpl-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.tpl-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.stat-done .tpl-stat-value { color: #22c55e; }
.stat-doing .tpl-stat-value { color: #5f6cff; }
.stat-todo .tpl-stat-value { color: #94a3b8; }

.tpl-progress-panel {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.tpl-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.tpl-progress-head strong { font-size: 15px; }
.tpl-progress-head span {
  font-size: 14px;
  font-weight: 700;
  color: #5f6cff;
}
.tpl-progress-track {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.tpl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5f6cff, #7c5fff);
  border-radius: 4px;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tpl-progress-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.tpl-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.tpl-focus-card {
  background: linear-gradient(135deg, rgba(95,108,255,0.04), rgba(124,95,255,0.06));
  border: 1px solid rgba(95,108,255,0.18);
  border-radius: 22px;
  padding: 22px 24px;
}

.tpl-next-card {
  background: linear-gradient(135deg, rgba(68, 208, 255, 0.06), rgba(95, 108, 255, 0.05));
  border: 1px solid rgba(68, 208, 255, 0.16);
  border-radius: 22px;
  padding: 22px 24px;
  display: grid;
  gap: 12px;
}

.tpl-next-card.is-empty {
  opacity: 0.78;
}

.tpl-focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl-focus-header .eyebrow {
  margin-bottom: 0;
}

.tpl-focus-body {
  margin-top: 10px;
}

.tpl-focus-info strong {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.tpl-focus-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  min-height: 46px;
}

.tpl-focus-progress {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(95, 108, 255, 0.12);
}

.tpl-focus-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.tpl-focus-progress-head strong {
  color: #5f6cff;
  font-size: 16px;
}

.tpl-progress-track.compact {
  height: 7px;
}

.tpl-focus-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tpl-next-card strong {
  font-size: 20px;
  color: var(--text);
}

.tpl-next-card p {
  margin: 0;
  min-height: 46px;
  color: var(--text-soft);
}

.tpl-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.tpl-pipeline {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
}
.tpl-pipeline-header {
  margin-bottom: 18px;
}
.tpl-pipeline-header h3 {
  margin: 4px 0 0;
  font-size: 18px;
}
.tpl-pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tpl-pipeline-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.tpl-task-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  background: #fff;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.tpl-task-card:hover {
  border-color: rgba(95,108,255,0.2);
  box-shadow: 0 8px 24px rgba(95, 108, 255, 0.08);
  transform: translateY(-1px);
}
.tpl-task-card.is-selected {
  border-color: rgba(95,108,255,0.35);
  box-shadow: 0 12px 28px rgba(95,108,255,0.12);
  background: linear-gradient(135deg, rgba(95,108,255,0.04), rgba(255,255,255,0.96));
}
.tpl-task-doing { border-left: 3px solid #5f6cff; }
.tpl-task-done { opacity: 0.78; }
.tpl-task-done .tpl-task-head strong { color: var(--text-muted); }

.tpl-task-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
}
.tpl-task-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(148,163,184,0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.tpl-task-doing .tpl-task-num { background: rgba(95,108,255,0.1); color: #5f6cff; }
.tpl-task-done .tpl-task-num { background: rgba(34,197,94,0.1); color: #16a34a; }
.tpl-task-done .tpl-task-num::after { content: ' ✓'; font-size: 11px; }

.tpl-task-info {
  flex: 1;
  min-width: 0;
}

.tpl-task-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpl-task-info strong {
  font-size: 15px;
  margin: 0;
}
.tpl-task-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.tpl-task-status-pill.done { background: rgba(34,197,94,0.12); color: #16a34a; }
.tpl-task-status-pill.doing { background: rgba(95,108,255,0.12); color: #5f6cff; }
.tpl-task-status-pill.todo { background: rgba(148,163,184,0.15); color: #64748b; }

.tpl-task-summary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpl-task-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpl-task-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tpl-task-tag.current {
  background: rgba(95, 108, 255, 0.1);
  color: #5f6cff;
}

.tpl-task-tag.next {
  background: rgba(68, 208, 255, 0.12);
  color: #0f9fcc;
}

.tpl-detail-panel {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  min-height: 620px;
  position: sticky;
  top: 92px;
}

.tpl-detail-empty {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  color: var(--text-soft);
}

.tpl-detail-empty h3 {
  margin: 0;
  color: var(--text);
}

.tpl-detail-empty p {
  margin: 0;
}

.tpl-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tpl-detail-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.tpl-detail-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tpl-detail-meta-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(95, 108, 255, 0.05);
  border: 1px solid rgba(95, 108, 255, 0.1);
}

.tpl-detail-meta-card span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.tpl-detail-meta-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--text);
}

.tpl-detail-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 108, 255, 0.12);
}

.tpl-content-block-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.tpl-content-block-img {
  margin: 12px 0;
}
.tpl-content-block-img img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.tpl-previewable-image {
  box-shadow: 0 10px 24px rgba(59, 78, 152, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.tpl-previewable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(59, 78, 152, 0.14);
}
.tpl-task-empty-content {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 12, 26, 0.72);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.image-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  max-width: 92vw;
  max-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding-top: 76px;
}

.image-preview-toolbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.image-preview-tool {
  min-width: 52px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(95, 108, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.image-preview-tool:hover {
  background: rgba(95, 108, 255, 0.18);
}

.image-preview-dialog img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.96);
  transform-origin: center center;
  transition: transform 160ms ease;
}

.image-preview-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.tpl-detail-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 108, 255, 0.12);
  display: grid;
  gap: 14px;
}

.tpl-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tpl-status-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tpl-status-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(95, 108, 255, 0.3);
  box-shadow: 0 8px 18px rgba(95, 108, 255, 0.08);
}

.tpl-status-btn.active,
.tpl-status-btn.primary {
  background: linear-gradient(135deg, #5f6cff, #7c5fff);
  border-color: transparent;
  color: #fff;
}

.tpl-status-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 300px) {
  .tpl-stats-row,
  .tpl-overview-meta,
  .tpl-detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-focus-header,
  .tpl-task-title-row,
  .tpl-progress-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-preview-modal {
    padding: 14px;
  }

  .image-preview-toolbar {
    gap: 8px;
    padding: 8px;
  }

  .image-preview-tool {
    min-width: 46px;
    height: 38px;
    padding: 0 12px;
  }

  .image-preview-close {
    top: 0;
    right: 0;
  }
}

@media (max-width: 980px) {
  .tpl-overview-card,
  .tpl-summary-grid,
  .tpl-workbench {
    grid-template-columns: 1fr;
  }

  .tpl-detail-panel {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 300px) {
  .tpl-overview-card,
  .tpl-progress-panel,
  .tpl-focus-card,
  .tpl-next-card,
  .tpl-pipeline,
  .tpl-detail-panel {
    padding: 18px;
  }

  .tpl-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-status-actions {
    flex-direction: column;
  }

  .tpl-status-btn,
  #tplGoNextBtn,
  .tpl-focus-actions .btn {
    width: 100%;
    text-align: center;
  }
}
