:root {
  --brand: #7a6af8;
  --brand-2: #fb5ac8;
  --brand-3: #5f7df4;
  --ink: #101321;
  --muted: #7b8192;
  --line: #edf0f6;
  --soft: #f3f6ff;
  --soft-2: #eef3fb;
  --panel: #ffffff;
  --danger: #f45b69;
  --success: #16b978;
  --shadow: 0 18px 50px rgba(44, 55, 89, 0.12);
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f8fc;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(229, 233, 244, 0.95);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(111, 91, 235, 0.22);
}

.brand-mark::before {
  position: absolute;
  display: none;
  inset: 0;
  content: "";
}

.brand-mark::after {
  position: absolute;
  display: none;
  inset: 0;
  content: "";
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  color: #9096a6;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(232, 236, 247, 0.92);
  border-radius: 16px;
  background: #f7f8fc;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item::after {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  content: "";
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #242838;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link.active,
.nav-link:hover {
  border-color: rgba(119, 102, 244, 0.16);
  background: #fff;
  color: #6857ed;
  box-shadow: 0 10px 24px rgba(82, 92, 132, 0.1);
}

.chevron {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 90;
  display: grid;
  gap: 5px;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(230, 233, 243, 0.96);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(38, 47, 78, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.dropdown-imageEdit {
  width: 500px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dropdown-matting {
  width: 318px;
}

.dropdown-draw {
  width: 286px;
}

.nav-item.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-item.open .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-item.open .nav-trigger {
  border-color: rgba(119, 102, 244, 0.16);
  background: #fff;
  color: #6857ed;
  box-shadow: 0 10px 24px rgba(82, 92, 132, 0.1);
}

.nav-item.open .dropdown {
  display: grid;
}

.drop-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.drop-link:hover {
  border-color: #ecefff;
  background: #f7f8ff;
  transform: translateY(-1px);
}

.drop-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.drop-text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 260px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #7d65f7 0%, #ff5cc8 100%);
  box-shadow: 0 12px 22px rgba(130, 93, 244, 0.22);
  cursor: pointer;
}

.diamond {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffdd72, #ff9f4a);
  transform: rotate(45deg);
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 30%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, #181b37 0%, #f24f8b 48%, #f8d152 100%);
  box-shadow: 0 8px 22px rgba(28, 38, 78, 0.12);
  cursor: pointer;
}

.login-btn {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #6b7df5, #9e6cff);
  cursor: pointer;
}

.user-menu {
  position: absolute;
  top: 58px;
  right: 0;
  display: none;
  width: 202px;
  padding: 14px;
  border: 1px solid #eef1f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-menu.open {
  display: block;
}

.user-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f8;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2140, #ff5fa5 52%, #ffd45c);
}

.user-name {
  font-size: 13px;
  font-weight: 800;
}

.user-id {
  margin-top: 2px;
  color: #9aa0af;
  font-size: 11px;
}

.user-points {
  margin-top: 2px;
  color: #6f63f5;
  font-size: 11px;
  font-weight: 800;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 4px;
  color: #626a7c;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.menu-row:hover {
  color: #665af4;
}

.home {
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 58%, #ffffff 100%);
}

.hero {
  position: relative;
  display: block;
  min-height: auto;
  overflow: hidden;
  padding: 54px 0 66px;
  background: linear-gradient(180deg, #dff2ff 0%, #f7fbff 68%, #ffffff 100%);
  text-align: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.03);
}

.hero::before,
.hero::after {
  position: absolute;
  display: block;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(233, 248, 255, 0.64) 0%, rgba(255, 255, 255, 0.76) 72%, #ffffff 100%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.68) 0 25%, rgba(255, 255, 255, 0) 26% 100%);
}

.hero::after {
  z-index: 1;
  top: 0;
  right: 0;
  width: min(820px, 62vw);
  height: 100%;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0) 0 32%, rgba(255, 255, 255, 0.56) 33% 49%, rgba(255, 255, 255, 0) 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  padding-top: 0;
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(214, 227, 248, 0.92);
  border-radius: 999px;
  color: #6857ed;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-logo {
  display: inline-flex;
  width: clamp(48px, 6vw, 70px);
  height: clamp(48px, 6vw, 70px);
  filter: drop-shadow(0 16px 28px rgba(111, 91, 235, 0.22));
}

.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: 0;
  color: #171629;
}

.hero-subtitle {
  width: min(880px, 100%);
  margin: 0 auto;
  color: #48556d;
  font-size: 21px;
  line-height: 1.6;
}

.hero-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, 100%);
  margin: 42px auto 0;
}

.quick-tool {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(234, 238, 248, 0.86);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(80, 92, 126, 0.11);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(80, 92, 126, 0.14);
}

.quick-visual {
  position: absolute;
  inset: 0;
  display: block;
}

.quick-visual img,
.gallery-visual img,
.home-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 42px 14px 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.76) 36%, rgba(255, 255, 255, 0.96));
}

.quick-title {
  display: block;
  color: #0f1324;
  font-size: 16px;
  font-weight: 900;
}

.quick-text {
  display: block;
  margin-top: 5px;
  color: #7b8495;
  font-size: 12px;
  line-height: 1.4;
}

.home-placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.8), transparent 27%),
    linear-gradient(135deg, #eaf5ff 0%, #f7eefe 56%, #eaf7ff 100%);
}

.home-placeholder::before,
.home-placeholder::after,
.home-placeholder i,
.home-placeholder b {
  position: absolute;
  content: "";
}

.home-placeholder::before {
  inset: 14%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.home-placeholder::after {
  right: 18%;
  bottom: 22%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(135deg, #7d66f5, #ff65c5);
  box-shadow: 0 12px 24px rgba(118, 101, 245, 0.22);
}

.home-placeholder i {
  left: 18%;
  bottom: 20%;
  width: 44%;
  height: 48%;
  border-radius: 28px 28px 12px 12px;
  background: linear-gradient(135deg, #fff, #d8e5ff);
}

.home-placeholder b {
  left: 26%;
  top: 24%;
  width: 38%;
  height: 16%;
  border-radius: 999px;
  background: rgba(111, 99, 245, 0.22);
}

.home-placeholder-id-photo i {
  left: 30%;
  bottom: 17%;
  width: 38%;
  height: 55%;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, #ffe4c7, #6a7eb7 60%, #fff 61%);
}

.home-placeholder-amplify::before {
  inset: 18%;
  border-radius: 50%;
}

.home-placeholder-amplify i {
  left: 23%;
  top: 26%;
  width: 34%;
  height: 34%;
  border: 10px solid rgba(111, 99, 245, 0.72);
  border-radius: 50%;
  background: transparent;
}

.home-placeholder-amplify b {
  right: 22%;
  bottom: 22%;
  left: auto;
  top: auto;
  width: 28%;
  height: 10%;
  transform: rotate(44deg);
}

.home-placeholder-photo-universal-1 {
  background: linear-gradient(90deg, #a9a090 0 48%, #bfe7ff 49% 100%);
}

.home-placeholder-text-to-img,
.home-placeholder-img-to-img {
  background:
    radial-gradient(circle at 66% 34%, rgba(255, 212, 108, 0.8), transparent 18%),
    linear-gradient(135deg, #cbe7ff, #f2d8ff 56%, #d8f7ff);
}

.home-placeholder-photo-universal,
.home-placeholder-photo-universal-2,
.home-placeholder-photo-universal-4 {
  background: linear-gradient(90deg, #d6d0c4 0 50%, #bde4ff 51% 100%);
}

.home-placeholder-eliminate-pens,
.home-placeholder-eliminate-pens-1 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56) 0 22%, transparent 22% 100%),
    linear-gradient(135deg, #e9f7ff, #f7e3f4);
}

.home-placeholder-matting-1,
.home-placeholder-matting-2 {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.72) 50% 75%, transparent 75%) 0 0/24px 24px,
    #eef3fb;
}

.home-placeholder-montage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 24px;
}

.home-placeholder-montage::before,
.home-placeholder-montage::after,
.home-placeholder-montage i,
.home-placeholder-montage b {
  position: static;
  display: block;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbe7ff, #ffe0f2);
  box-shadow: none;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(460px, calc(100vw - 48px));
  height: 58px;
  padding: 0 28px;
  border: 1px solid #dfdfe6;
  border-radius: 999px;
  color: #30333d;
  background: #fff;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

.home-gallery {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 86px;
  text-align: left;
}

.home-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-gallery h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.home-gallery-more .more-btn:hover {
  border-color: #cfd2dc;
  color: #171a24;
  box-shadow: 0 16px 34px rgba(47, 55, 82, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 118px;
  gap: 16px;
  margin-top: 20px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(80, 92, 126, 0.1);
  cursor: pointer;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(3),
.gallery-card:nth-child(4),
.gallery-card:nth-child(5),
.gallery-card:nth-child(7) {
  grid-row: span 2;
}

.gallery-card:nth-child(2),
.gallery-card:nth-child(8) {
  grid-row: span 3;
}

.gallery-card:nth-child(6),
.gallery-card:nth-child(9),
.gallery-card:nth-child(10) {
  grid-row: span 2;
}

.gallery-visual {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery-caption {
  display: none;
}

.footer {
  padding: 78px 24px 58px;
  border-radius: 76px 76px 0 0;
  background: #fff2ff;
}

.footer-card {
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 44px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #242632;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
}

.footer-brand-name {
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.footer-copy {
  color: #30333d;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a9a4ac;
  font-size: 16px;
  font-weight: 750;
}

.footer-links span,
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.footer-links button {
  cursor: pointer;
}

.footer-divider {
  color: #b9b3bc;
}

.footer-links .footer-icp {
  color: #a9a4ac;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #815eed;
}

.legal-page {
  min-height: calc(100vh - 76px);
  padding: 48px 24px 80px;
  background: linear-gradient(180deg, #fbf7ff 0%, #f7f8fb 34%, #ffffff 100%);
}

.legal-hero,
.legal-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.legal-hero {
  padding: 34px 0 28px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 22px;
  color: #7257d7;
  font-size: 14px;
  font-weight: 850;
}

.legal-hero h1 {
  margin: 0;
  color: #22242d;
  font-size: 44px;
  font-weight: 950;
  line-height: 1.15;
}

.legal-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #6a6675;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #8a8593;
  font-size: 13px;
  font-weight: 750;
}

.legal-content {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid #eee9f8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(50, 42, 86, 0.08);
}

.legal-section {
  padding: 0 0 14px;
  border-bottom: 1px solid #f0edf5;
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: #2e303a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.legal-section p {
  margin: 0;
  color: #56535f;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.9;
}

.tools-page {
  min-height: calc(100vh - 76px);
  background: #f5f7fb;
}

.tools-banner {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 30px;
  width: min(1200px, calc(100% - 48px));
  min-height: 270px;
  margin: 34px auto 28px;
  padding: 36px 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 40%, rgba(255, 106, 191, 0.2), transparent 28%),
    linear-gradient(135deg, #f4eeff 0%, #eef5ff 100%);
  overflow: hidden;
}

.tools-banner h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.tools-banner p {
  margin: 16px 0 0;
  color: #6f7689;
  font-size: 18px;
}

.prompt-visual {
  position: relative;
  height: 182px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(91, 103, 143, 0.14);
}

.prompt-visual.generated-banner {
  overflow: hidden;
  background: #fff;
}

.prompt-visual.generated-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-visual.generated-banner::before,
.prompt-visual.generated-banner::after {
  content: none;
}

.prompt-visual::before {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 72%;
  height: 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f8;
  content: "花；女孩";
  color: #8c92a3;
  line-height: 46px;
  padding-left: 22px;
}

.prompt-visual::after {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 150px;
  height: 110px;
  border-radius: 28px 28px 18px 18px;
  background:
    radial-gradient(circle at 50% 20%, #ffd3e6 0 12%, transparent 13%),
    linear-gradient(135deg, #825ff8, #ff73c9 60%, #ffd46c);
  content: "";
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 70px;
}

.tool-card {
  overflow: hidden;
  border: 1px solid #eef1f7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(71, 82, 114, 0.07);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(71, 82, 114, 0.12);
}

.tool-cover {
  height: 142px;
  padding: 14px;
  background: #f8fbff;
}

.cover-art {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #e8f0ff);
}

.cover-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
}

.cover-art.compare::before,
.cover-art.compare::after {
  position: absolute;
  inset: 0;
  content: "";
}

.cover-art.compare::before {
  right: 50%;
  background: var(--cover-a, linear-gradient(135deg, #e5dac7, #8998ad));
}

.cover-art.compare::after {
  left: 50%;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.68) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.68) 50% 75%, transparent 75%) 0 0/18px 18px,
    var(--cover-b, #dfe5f2);
}

.cover-art.draw {
  background:
    radial-gradient(circle at 55% 22%, #ffe0ef 0 9%, transparent 10%),
    radial-gradient(circle at 47% 42%, #ffd2b8 0 16%, transparent 17%),
    linear-gradient(135deg, #6e63f6 0%, #ff70c5 64%, #ffd36a 100%);
}

.cover-art.fix {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 48%, transparent 49%),
    radial-gradient(circle at 58% 38%, #f1c08e 0 17%, transparent 18%),
    linear-gradient(135deg, #4b556a, #eef3ff);
}

.cover-art.montage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.cover-art.montage span {
  border-radius: 10px;
  background: linear-gradient(135deg, #e1e8ff, #f9dff0);
}

.split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 19, 33, 0.58);
  transform: translate(-50%, -50%);
}

.split-handle::before {
  position: absolute;
  inset: 10px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
}

.tool-info {
  min-height: 92px;
  padding: 16px 18px 18px;
  background: #fafbfe;
}

.tool-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: 0;
}

.tool-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #7b8495;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-page {
  min-height: calc(100vh - 76px);
  background: #edf2fb;
}

.tool-landing {
  padding: 56px 0 70px;
}

.tool-title-block {
  text-align: center;
}

.tool-title-block h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0;
}

.spark {
  width: 46px;
  height: 38px;
  border-radius: 20px 8px 20px 8px;
  background: linear-gradient(135deg, #7865f8, #27d7d0 45%, #ff68c9 70%, #ffcf58);
  transform: rotate(-16deg);
}

.tool-title-block p {
  margin: 14px auto 0;
  color: #7b8192;
  font-size: 16px;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(340px, 1fr);
  gap: 22px;
  width: min(980px, calc(100% - 40px));
  margin: 28px auto 0;
}

.before-after {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.before-after::before,
.before-after::after {
  position: absolute;
  inset: 0;
  content: "";
}

.before-after::before {
  right: 50%;
  background: var(--before-bg, linear-gradient(135deg, #d9c4a5, #657184));
}

.before-after::after {
  left: 50%;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.72) 50% 75%, transparent 75%) 0 0/22px 22px,
    var(--after-bg, #dfe5f2);
}

.before-after.generated-before-after {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.before-after.generated-before-after::before,
.before-after.generated-before-after::after {
  display: none;
}

.scene-object {
  position: absolute;
  z-index: 1;
  left: 18%;
  bottom: 16%;
  width: 62%;
  height: 35%;
  border-radius: 60px 60px 20px 20px;
  background: var(--object-bg, linear-gradient(135deg, #b4bdc9, #777f91));
  box-shadow: 0 22px 30px rgba(45, 54, 82, 0.16);
}

.before-label,
.after-label {
  position: absolute;
  z-index: 3;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.before-label {
  left: 14px;
  background: rgba(45, 49, 59, 0.66);
}

.after-label {
  right: 14px;
  background: #6878ff;
}

.divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.86);
}

.upload-card {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 32px 30px 28px;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.upload-card:hover {
  transform: translateY(-1px);
  background: #fbfcff;
  box-shadow: 0 18px 44px rgba(44, 55, 89, 0.1);
}

.upload-card.drag-over,
.mini-upload.drag-over {
  border: 1px dashed #7566f5;
  background: #f6f5ff;
}

.upload-inner {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.upload-icon {
  position: relative;
  width: 90px;
  height: 70px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 31% 28%, rgba(255, 255, 255, 0.92) 0 5px, transparent 5.5px),
    linear-gradient(180deg, #ff75d5 0%, #8f63ff 100%);
  box-shadow: 0 16px 28px rgba(151, 91, 229, 0.24);
}

.upload-icon::before {
  position: absolute;
  left: 19px;
  bottom: 15px;
  width: 52px;
  height: 32px;
  clip-path: polygon(0 100%, 30% 42%, 48% 68%, 67% 38%, 100% 100%);
  background: rgba(255, 255, 255, 0.94);
  content: "";
}

.upload-icon::after {
  position: absolute;
  right: -20px;
  top: -14px;
  width: 48px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.36)
      url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='19'%20height='19'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2019V5'/%3E%3Cpath%20d='M5%2012l7-7%207%207'/%3E%3C/svg%3E")
      center / 19px 19px no-repeat;
  box-shadow:
    0 12px 24px rgba(120, 92, 210, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  content: "";
}

.upload-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  color: #2d3242;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.upload-title button {
  color: #252b3a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}

.upload-title button:hover {
  color: #7466f6;
}

.upload-title span {
  color: #353b4c;
  font-weight: 620;
}

.upload-hint {
  margin-top: 12px;
  color: #8c92a3;
  font-size: 13px;
}

.upload-inner .upload-hint {
  max-width: min(460px, 100%);
  margin-right: auto;
  margin-left: auto;
  color: #8d94a6;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}

.upload-nowrap {
  white-space: nowrap;
}

.try-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 54px;
  color: #8c92a3;
  font-size: 13px;
}

.try-row::before,
.try-row::after {
  width: 90px;
  height: 1px;
  background: #d4d9e5;
  content: "";
}

.samples {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.sample {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 3px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6d9bd, #7b8da4);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(39, 48, 78, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sample img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
  pointer-events: none;
}

.sample:hover,
.sample:focus-visible {
  transform: translateY(-1px);
  border-color: #7666f6;
  box-shadow: 0 12px 24px rgba(39, 48, 78, 0.18);
  outline: none;
}

.steps-section,
.feature-section,
.faq-section {
  width: min(1050px, calc(100% - 40px));
  margin: 54px auto 0;
}

.steps-section h2,
.faq-section h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 26px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  min-height: 128px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}

.step-num {
  color: #6f61f5;
  font-weight: 900;
}

.step-title {
  margin-top: 8px;
  font-weight: 800;
}

.step-text {
  margin-top: 6px;
  color: #7d8494;
  font-size: 13px;
}

.feature-section {
  display: grid;
  gap: 0;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 46px;
  align-items: center;
  min-height: 430px;
  padding: 36px 0;
}

.feature-panel.is-even {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.feature-panel.is-even .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(30, 36, 55, 0.3) 0 49%, transparent 50%),
    linear-gradient(135deg, #ece3d3, #cdd7eb);
  box-shadow: 0 18px 44px rgba(44, 55, 89, 0.13);
}

.feature-preview-image {
  background-position: center;
  background-size: cover;
}

.feature-media .before-label,
.feature-media .after-label {
  top: 16px;
  font-size: 12px;
}

.feature-media .divider {
  opacity: 0.88;
}

.feature-copy h3 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 28px;
  line-height: 1.32;
}

.feature-copy p {
  margin: 0;
  color: #687184;
  font-size: 16px;
  line-height: 1.9;
}

.faq-section {
  padding-bottom: 64px;
}

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

.faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding: 0 22px;
  border-radius: 8px;
  color: #273044;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(44, 55, 89, 0.06);
}

.faq-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid #8992a5;
  border-bottom: 2px solid #8992a5;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 76px);
  background: #eef3fb;
}

.workspace.with-style-drawer {
  grid-template-columns: 360px 360px 1fr;
}

.side-panel {
  min-height: calc(100vh - 76px);
  padding: 24px;
  border-right: 1px solid #e7ebf3;
  background: #fff;
  overflow-y: auto;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
}

.form-block {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 9px;
  color: #353b4e;
  font-size: 14px;
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #e3e7f0;
  border-radius: 12px;
  color: #222638;
  background: #fbfcff;
  outline: none;
}

textarea {
  min-height: 126px;
  padding: 14px;
  resize: vertical;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

.mini-upload {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 118px;
  padding: 18px 14px;
  border: 1px dashed #cbd3e6;
  border-radius: 14px;
  color: #8b93a5;
  background: #fbfcff;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.mini-upload::before {
  display: block;
  width: 38px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 31% 30%, rgba(255, 255, 255, 0.92) 0 3px, transparent 3.5px),
    linear-gradient(180deg, #ff75d5 0%, #8f63ff 100%);
  box-shadow: 0 8px 18px rgba(151, 91, 229, 0.18);
  content: "";
}

.mini-upload:hover {
  border-color: #9b91fb;
  color: #6761d9;
  background: #fbfaff;
}

.mini-upload.has-upload {
  border-color: #7566f5;
  color: #4f46d8;
  background: #f7f6ff;
  font-weight: 800;
}

.mini-upload.has-upload::before {
  display: none;
}

.mini-upload small {
  display: block;
  margin-top: 6px;
  color: #8b93a5;
  font-weight: 600;
}

.style-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.style-label-row .form-label {
  margin-bottom: 0;
}

.more-style-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e2e6f0;
  border-radius: 999px;
  color: #6d63e9;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.more-style-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7468f4, #ee66c7);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.draw-style-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eef1f7;
  border-radius: 8px;
  color: #25283b;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(54, 63, 93, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.draw-style-card:hover {
  transform: translateY(-1px);
  border-color: #c8c4ff;
}

.draw-style-card.active {
  border-color: #7566f5;
  box-shadow:
    0 0 0 2px rgba(117, 102, 245, 0.12),
    0 16px 30px rgba(83, 75, 194, 0.18);
}

.draw-style-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eef3fb, #f7e9ff);
}

.draw-style-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draw-style-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e7edff, #ffe8f8);
}

.draw-style-name {
  display: block;
  padding: 8px 6px 9px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-drawer {
  min-height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  padding: 20px 16px 24px;
  border-right: 1px solid #e7ebf3;
  background: #fff;
  overflow-y: auto;
}

.style-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.style-drawer-head strong {
  display: block;
  color: #202538;
  font-size: 18px;
  font-weight: 900;
}

.style-drawer-head span {
  color: #8a92a5;
  font-size: 12px;
  font-weight: 700;
}

.style-drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e6f0;
  border-radius: 50%;
  color: #747d91;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.style-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.style-category-tab {
  height: 30px;
  padding: 0 11px;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  color: #5c6477;
  background: #fbfcff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.style-category-tab.active {
  color: #fff;
  border-color: transparent;
  background: #7166f2;
}

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

.primary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #6f63f5, #836ff8);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ghost-btn {
  border: 1px solid #e2e6f0;
  color: #42495d;
  background: #fff;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.result-area {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: 34px;
}

.result-empty {
  text-align: center;
}

.result-empty.with-generated-result {
  width: min(680px, 92%);
}

.draw-empty-art {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 auto 18px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.empty-visual {
  position: relative;
  width: 134px;
  height: 104px;
  margin: 0 auto 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, #7268f5, #ff70c5 70%, #ffd46c);
  box-shadow: 0 18px 40px rgba(109, 104, 245, 0.24);
}

.empty-visual::before {
  position: absolute;
  left: 30px;
  bottom: 24px;
  width: 72px;
  height: 44px;
  clip-path: polygon(0 100%, 34% 40%, 52% 70%, 70% 36%, 100% 100%);
  background: #fff;
  content: "";
}

.empty-text {
  color: #8277fb;
  font-size: 18px;
  font-weight: 800;
}

.history-float {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #7868f7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(73, 83, 124, 0.11);
  cursor: pointer;
}

.point-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  color: #596174;
  background: #fbfcff;
  font-size: 12px;
  font-weight: 800;
}

.result-card {
  width: min(760px, 92%);
}

.result-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid #edf1fb;
  background:
    linear-gradient(45deg, rgba(232, 236, 246, 0.72) 25%, transparent 25% 50%, rgba(232, 236, 246, 0.72) 50% 75%, transparent 75%) 0 0/24px 24px,
    #f8faff;
}

.result-preview.is-pending::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 22, 38, 0.34);
  content: "生成中";
  font-weight: 900;
}

.task-status-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #eef1f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(44, 55, 89, 0.08);
}

.task-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.task-status-head span {
  color: #7468f4;
  font-weight: 900;
}

.task-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f8;
}

.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7366f4, #f65dc7);
}

.task-status-card p {
  margin: 12px 0 0;
  color: #7b8495;
  font-size: 13px;
  line-height: 1.6;
}

.task-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: #111626;
  font-size: 13px;
  font-weight: 800;
}

.history-panel {
  position: absolute;
  top: 84px;
  right: 28px;
  z-index: 5;
  width: 280px;
  padding: 14px;
  border: 1px solid #eef1f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.history-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 0;
  border-top: 1px solid #f1f3f8;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: #596174;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.history-item.active,
.history-item:hover {
  color: #34394c;
  background: #fbfcff;
}

.history-item strong {
  color: #7468f4;
  white-space: nowrap;
}

.history-empty {
  padding: 18px 0;
  color: #9aa0af;
  font-size: 13px;
  text-align: center;
}

.image-task-board {
  width: min(860px, 94%);
}

.image-task-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-task-pane {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: var(--shadow);
}

.image-task-pane.after {
  background-color: #f8faff;
}

.image-task-pane.is-empty {
  display: grid;
  place-items: center;
  border: 1px solid #edf1fb;
  background:
    linear-gradient(45deg, rgba(232, 236, 246, 0.72) 25%, transparent 25% 50%, rgba(232, 236, 246, 0.72) 50% 75%, transparent 75%) 0 0/24px 24px,
    #f8faff;
}

.image-task-pane span {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 22, 38, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.image-task-pane.after span {
  background: #6878ff;
}

.after-placeholder {
  display: grid;
  gap: 8px;
  max-width: 260px;
  padding: 18px 20px;
  color: #6f7689;
  text-align: center;
}

.after-placeholder strong {
  color: #34394c;
  font-size: 18px;
}

.after-placeholder small {
  color: #7b8495;
  font-size: 13px;
  line-height: 1.55;
}

.image-task-hint {
  margin: 14px 0 0;
  color: #7b8495;
  font-size: 13px;
  text-align: center;
}

.inpaint-task-board {
  width: min(960px, 96%);
}

.inpaint-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inpaint-mask-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.mask-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.mask-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 22, 38, 0.58);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 76px);
  background: #eef3fb;
}

.editor-canvas {
  display: grid;
  place-items: center;
  padding: 30px;
}

.checker-canvas {
  position: relative;
  width: min(720px, 90%);
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(45deg, #e0e5f0 25%, transparent 25% 50%, #e0e5f0 50% 75%, transparent 75%) 0 0/28px 28px,
    #f8faff;
  box-shadow: var(--shadow);
}

.preview-photo {
  position: absolute;
  inset: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #dfc8ab, #8390a4);
}

.watermark-text {
  position: absolute;
  color: rgba(255, 255, 255, 0.78);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-24deg);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.draw-strength-row {
  grid-template-columns: 88px minmax(0, 1fr) 42px;
  color: #3c4356;
  font-size: 13px;
  font-weight: 800;
}

.draw-strength-row input {
  height: auto;
  padding: 0;
}

.draw-strength-row strong {
  color: #7566f5;
  font-size: 13px;
  text-align: right;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  color: #353b4e;
  font-size: 14px;
  font-weight: 800;
}

.switch-row input {
  width: 42px;
  height: 24px;
  accent-color: #7566f5;
}

.color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9dfec;
  cursor: pointer;
}

.color-dot.active {
  box-shadow:
    0 0 0 1px #fff,
    0 0 0 3px #6f63f5;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tool-tab {
  height: 38px;
  border: 1px solid #e2e6f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.tool-tab.active {
  color: #fff;
  background: #6f63f5;
}

.montage-page {
  display: grid;
  grid-template-columns: 246px 1fr 330px;
  min-height: calc(100vh - 76px);
  background: #eef3fb;
}

.montage-left,
.montage-right {
  padding: 22px 18px;
  background: #fff;
}

.montage-left {
  border-right: 1px solid #e7ebf3;
}

.montage-right {
  border-left: 1px solid #e7ebf3;
}

.template-title,
.right-title {
  margin-bottom: 14px;
  font-weight: 900;
}

.template-group {
  margin: 16px 0 10px;
  color: #43495c;
  font-weight: 800;
}

.template-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.template-thumb {
  display: grid;
  gap: 4px;
  height: 68px;
  padding: 6px;
  border: 2px solid #ecf0f4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.template-thumb.active {
  border-color: #6c8ee5;
}

.template-thumb span {
  border-radius: 3px;
  background: #d7dbe4;
}

.montage-center {
  position: relative;
  display: grid;
  gap: 18px;
  place-items: center;
  overflow: auto;
  padding: 34px;
}

.montage-heading {
  width: min(510px, 100%);
  text-align: left;
}

.montage-heading h1 {
  margin: 0;
  color: #252a38;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.2;
}

.montage-heading p {
  margin: 8px 0 0;
  color: #6b7284;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
}

.collage {
  display: grid;
  width: 510px;
  height: 510px;
  padding: 25px;
  gap: 25px;
  background: #fff;
  box-shadow: var(--shadow);
}

.collage.two {
  grid-template-rows: 1fr 1fr;
}

.collage.three {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.collage.four {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.collage-cell {
  display: grid;
  place-items: center;
  border: 2px solid #d9dfeb;
  color: #7d8495;
  background: #f8faff;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  font-size: 34px;
  overflow: hidden;
}

.collage-cell.has-image {
  border-color: transparent;
  color: transparent;
}

.collage.three .collage-cell:first-child {
  grid-row: span 2;
}

.scale-control {
  position: absolute;
  right: 42px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid #dce2ee;
  border-radius: 4px;
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 2px #6f63f5;
}

.download-wide {
  margin-top: 28px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #5866f2, #715df4);
  cursor: pointer;
  width: 100%;
  font-weight: 800;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 33, 0.55);
}

.modal {
  position: relative;
  width: min(880px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e8ebf3;
  border-radius: 50%;
  color: #677084;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(45, 52, 76, 0.12);
  cursor: pointer;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #2d3242;
  background: #fff;
  box-shadow: 0 16px 34px rgba(45, 52, 76, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.member-modal .modal-close {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 28px rgba(93, 56, 170, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.member-modal .modal-close:hover,
.member-modal .modal-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.34);
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 78px 18px 26px;
  color: #fff;
  background: linear-gradient(90deg, #7d65f7, #ff5cc8);
}

.member-heading {
  display: grid;
  gap: 4px;
}

.member-heading span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.86;
}

.member-heading strong {
  font-size: 25px;
  line-height: 1.1;
}

.member-heading p {
  margin: 0;
  font-size: 13px;
  opacity: 0.88;
}

.member-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 220px;
  text-align: right;
}

.member-user span {
  font-size: 12px;
  opacity: 0.86;
}

.member-body {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 24px 24px;
}

.member-body h2 {
  margin: 0 0 12px;
  color: #252b3c;
  font-size: 19px;
  line-height: 1.2;
}

.benefit-list {
  display: grid;
  gap: 8px;
}

.benefit {
  padding: 11px 12px;
  border-radius: 12px;
  background: #f7f8ff;
}

.benefit h4 {
  margin: 0 0 4px;
  color: #262c3c;
  font-size: 14px;
}

.benefit p {
  margin: 0;
  color: #7b8192;
  font-size: 12px;
  line-height: 1.45;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.plan {
  min-height: 112px;
  padding: 12px 10px;
  border: 2px solid #edf0f7;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.plan.active {
  border-color: #7464f6;
  background: #f7f5ff;
}

.plan-name {
  font-weight: 900;
}

.plan .upload-hint {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.price {
  margin: 8px 0 3px;
  color: #6f61f5;
  font-size: 24px;
  font-weight: 900;
}

.line-price {
  color: #b1b7c6;
  font-size: 13px;
  text-decoration: line-through;
}

.pay-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #edf0f8;
  border-radius: 14px;
  background: #fafbff;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: #596174;
}

.payment-method-row {
  align-items: flex-start;
}

.payment-channel-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e5e8f3;
  border-radius: 12px;
  background: #fff;
}

.payment-channel {
  min-width: 82px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  color: #596174;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.payment-channel.active {
  color: #fff;
  background: linear-gradient(90deg, #6f63f5, #836ff8);
  box-shadow: 0 8px 18px rgba(111, 99, 245, 0.22);
}

.payment-status-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #e6e9f4;
  border-radius: 14px;
  background: #fff;
}

.payment-status-card .payment-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #697084;
  font-size: 13px;
}

.payment-status-card .payment-order-row strong {
  min-width: 0;
  max-width: 190px;
  overflow: hidden;
  overflow-wrap: normal;
  color: #262c3c;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-status-card .payment-qr-card {
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  color: #596174;
  text-align: center;
}

.payment-qr-object,
.payment-qr-placeholder {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  margin: 0 auto;
  border: 1px solid #e9edf6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 39, 57, 0.08);
}

.payment-qr-object {
  overflow: hidden;
  object-fit: contain;
}

.payment-qr-placeholder {
  display: grid;
  justify-content: center;
  gap: 8px;
  color: #697084;
  font-weight: 900;
}

.payment-qr-card span {
  color: #394154;
  font-size: 12px;
  font-weight: 900;
}

.payment-order-panel {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.payment-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-status-line strong {
  color: #242b3d;
  font-size: 21px;
  font-weight: 950;
}

.payment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #5d50d6;
  background: #f0edff;
  font-size: 13px;
  font-weight: 900;
}

.payment-order-meta {
  display: grid;
  gap: 6px;
}

.payment-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
}

.payment-link,
.secondary-btn.payment-refresh,
.secondary-btn.payment-recreate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.payment-link {
  color: #fff;
  background: linear-gradient(90deg, #19b86a, #23c6a5);
}

.secondary-btn.payment-refresh,
.secondary-btn.payment-recreate {
  border: 1px solid #dfe4f1;
  color: #3e465c;
  background: #f8faff;
  cursor: pointer;
}

.payment-error {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #ffd4d4;
  border-radius: 10px;
  color: #c0393a;
  background: #fff4f4;
  font-size: 13px;
  line-height: 1.5;
}

.contact-modal {
  width: 268px;
  padding: 56px 26px 32px;
  text-align: center;
}

.qr {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  width: 150px;
  height: 150px;
  margin: 18px auto 14px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e8ebf3;
}

.qr span {
  background: #151923;
}

.login-modal {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  width: min(1060px, calc(100% - 48px));
  min-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.login-modal .modal-close {
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  color: #8b909b;
  background: transparent;
  box-shadow: none;
  font-size: 44px;
  font-weight: 300;
}

.login-modal .modal-close:hover,
.login-modal .modal-close:focus-visible {
  color: #3d4351;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.login-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 44px 40px;
  color: #fff;
  background:
    linear-gradient(152deg, rgba(255, 103, 207, 0.92) 0%, rgba(191, 79, 246, 0.92) 56%, rgba(121, 91, 255, 0.9) 100%),
    #d86af3;
}

.login-visual::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(231, 76, 224, 0.08), rgba(159, 68, 238, 0.46));
  content: "";
}

.login-brand,
.login-slogan {
  position: relative;
  z-index: 3;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 900;
}

.login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(78, 31, 148, 0.2);
}

.login-slogan {
  display: grid;
  gap: 14px;
  margin-top: 66px;
}

.login-slogan strong {
  font-size: 38px;
  font-weight: 950;
  line-height: 1.18;
}

.login-slogan span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.login-showcase {
  position: absolute;
  left: 42px;
  right: -54px;
  bottom: -70px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  transform: rotate(-10deg);
  transform-origin: center;
}

.login-showcase-tile {
  display: block;
  min-height: 184px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 46px rgba(84, 24, 150, 0.28);
}

.login-showcase-tile.tile-1 {
  min-height: 236px;
}

.login-showcase-tile.tile-4 {
  transform: translateY(-38px);
}

.login-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 76px 66px 34px;
  text-align: center;
}

.login-panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 4px 0 70px;
}

.login-panel-head h2 {
  margin: 0;
  color: #3b3f4a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.wechat-icon {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 30px;
  flex: 0 0 auto;
}

.wechat-icon::before,
.wechat-icon i {
  position: absolute;
  border-radius: 50%;
  background: #18b875;
  content: "";
}

.wechat-icon::before {
  left: 0;
  top: 0;
  width: 28px;
  height: 24px;
}

.wechat-icon i {
  right: 0;
  bottom: 0;
  width: 24px;
  height: 20px;
}

.wechat-icon::after {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    10px 0 0 #fff,
    18px 11px 0 #fff,
    26px 11px 0 #fff;
  content: "";
}

.login-panel .modal-flow-hint {
  margin: -52px 0 28px;
}

.wechat-qr-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 330px;
  height: 330px;
  margin: 0 auto 24px;
  padding: 22px;
  border: 8px solid #dedede;
  border-radius: 14px;
  background: #fff;
}

.wechat-login-tag {
  position: absolute;
  top: -48px;
  right: -44px;
  z-index: 2;
  min-width: 258px;
  height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(95deg, #f46dcc, #9851f3);
  box-shadow: 0 14px 30px rgba(172, 80, 229, 0.22);
  font-size: 20px;
  font-weight: 900;
  line-height: 52px;
  white-space: nowrap;
}

.wechat-login-tag::after {
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 0;
  height: 0;
  border-top: 12px solid #b454ef;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.wechat-qr-object,
.wechat-qr-placeholder {
  display: grid;
  place-items: center;
  width: 286px;
  height: 286px;
  margin: 0 auto;
  background: #fff;
  object-fit: contain;
}

.wechat-qr-placeholder {
  gap: 12px;
  color: #555d70;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.wechat-login-tip {
  margin: 0 0 12px;
  color: #3f4451;
  font-size: 17px;
  font-weight: 800;
}

.qr-refresh {
  min-width: 110px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e1e6f0;
  border-radius: 999px;
  color: #666e81;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.qr-refresh:hover,
.qr-refresh:focus-visible {
  border-color: #cfd6e8;
  color: #424a5f;
  outline: none;
}

.wechat-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 40%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 36% 46%, #fff 0 18%, transparent 19%),
    #18b875;
}

.login-errors {
  width: min(360px, 100%);
  margin-top: 8px;
}

.auth-error {
  margin: 8px 0 0;
  text-align: left;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #20263a;
  box-shadow: var(--shadow);
}

.hidden-input {
  display: none;
}

@media (max-width: 1050px) {
  .topbar-inner {
    width: calc(100% - 28px);
  }

  .login-modal {
    grid-template-columns: 390px minmax(0, 1fr);
  }

  .login-panel {
    padding-right: 42px;
    padding-left: 42px;
  }

  .login-panel-head h2 {
    font-size: 25px;
  }

  .wechat-qr-card {
    width: 306px;
    height: 306px;
  }

  .wechat-qr-object,
  .wechat-qr-placeholder {
    width: 262px;
    height: 262px;
  }

  .brand {
    min-width: unset;
  }

  .brand-sub,
  .member-pill span:last-child {
    display: none;
  }

  .nav {
    gap: 1px;
    padding: 3px;
  }

  .nav-link {
    padding: 0 11px;
  }

  .dropdown-imageEdit {
    width: 480px;
  }

  .dropdown-matting {
    width: 318px;
  }

  .dropdown-draw {
    width: 292px;
  }

  .actions {
    min-width: 112px;
  }

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

  .hero-tools {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-card {
    align-items: center;
  }

  .footer-links {
    max-width: none;
  }

  .legal-content {
    padding: 24px;
  }

  .tools-banner,
  .tool-hero-grid,
  .workspace,
  .workspace.with-style-drawer,
  .editor-layout,
  .montage-page {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .style-drawer,
  .montage-left,
  .montage-right {
    min-height: auto;
  }

  .style-drawer {
    max-height: none;
    border-right: 0;
    border-top: 1px solid #e7ebf3;
  }

  .montage-page {
    display: block;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
  }

  .login-modal {
    display: block;
    width: min(390px, calc(100% - 24px));
    min-height: 0;
    overflow: visible;
  }

  .login-modal .modal-close {
    top: 12px;
    right: 12px;
    font-size: 38px;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    padding: 58px 22px 24px;
  }

  .login-panel-head {
    gap: 10px;
    margin: 0 34px 48px;
  }

  .login-panel-head h2 {
    font-size: 21px;
    line-height: 1.3;
  }

  .wechat-icon {
    width: 32px;
    height: 27px;
  }

  .wechat-qr-card {
    width: min(296px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 18px;
    padding: 18px;
    border-width: 7px;
  }

  .wechat-login-tag {
    top: -40px;
    right: 50%;
    min-width: 226px;
    height: 44px;
    padding: 0 18px;
    font-size: 16px;
    line-height: 44px;
    transform: translateX(50%);
  }

  .wechat-qr-object,
  .wechat-qr-placeholder {
    width: 100%;
    height: 100%;
  }

  .wechat-login-tip {
    font-size: 15px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 14px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .dropdown,
  .dropdown-imageEdit,
  .dropdown-matting,
  .dropdown-draw {
    position: fixed;
    top: 128px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 148px);
    overflow: auto;
    transform: translateY(8px);
  }

  .dropdown-imageEdit {
    grid-template-columns: 1fr;
  }

  .nav-item.open .dropdown {
    transform: translateY(0);
  }

  .actions {
    min-width: unset;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 36px;
  }

  .legal-page {
    padding: 26px 16px 54px;
  }

  .legal-hero {
    padding: 18px 0 20px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-hero p {
    font-size: 15px;
  }

  .legal-meta {
    display: grid;
    gap: 8px;
  }

  .legal-content {
    padding: 18px;
  }

  .legal-section h2 {
    font-size: 16px;
  }

  .legal-section p {
    font-size: 14px;
  }

  .hero-content {
    width: calc(100% - 24px);
  }

  .hero-brand-lockup {
    gap: 10px;
  }

  .hero-logo {
    width: 46px;
    height: 46px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-tools,
  .gallery-grid,
  .tools-grid,
  .steps,
  .feature-section,
  .plans,
  .member-body {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .feature-panel.is-even {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 22px;
    padding: 26px 0;
  }

  .feature-panel.is-even .feature-media {
    order: 0;
  }

  .feature-copy h3 {
    font-size: 22px;
  }

  .feature-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .payment-method-row,
  .payment-status-card .payment-order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .member-top {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 14px 58px 14px 18px;
  }

  .member-heading {
    min-width: 0;
  }

  .member-heading strong {
    font-size: 22px;
  }

  .member-heading p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 12px;
  }

  .member-user {
    min-width: 172px;
  }

  .member-body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .benefit-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .benefit {
    padding: 10px;
  }

  .benefit p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .plan {
    min-height: 92px;
    padding: 10px 8px;
  }

  .price {
    font-size: 22px;
  }

  .pay-box {
    margin-top: 12px;
    padding: 12px;
  }

  .payment-status-card {
    grid-template-columns: 114px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .payment-qr-object,
  .payment-qr-placeholder {
    width: 106px;
    height: 106px;
  }

  .payment-order-panel {
    width: 100%;
    gap: 8px;
  }

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

  .payment-link {
    display: none;
  }

  .payment-channel-tabs,
  .payment-channel {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .payment-status-card .payment-order-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
  }

  .payment-status-card .payment-order-row strong {
    width: 100%;
    max-width: none;
    text-align: right;
  }

  .footer {
    padding: 54px 18px 42px;
    border-radius: 42px 42px 0 0;
  }

  .footer-card {
    gap: 28px;
    padding: 0;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-brand-title {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .footer-brand-name {
    font-size: 28px;
  }

  .footer-copy {
    max-width: none;
    font-size: 14px;
  }

  .footer-links {
    justify-content: center;
    max-width: none;
    font-size: 13px;
  }

  .faq-item {
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
    line-height: 1.5;
  }

  .hero-tools {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
  }

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(5),
  .gallery-card:nth-child(6),
  .gallery-card:nth-child(7),
  .gallery-card:nth-child(8),
  .gallery-card:nth-child(9),
  .gallery-card:nth-child(10) {
    grid-row: auto;
    aspect-ratio: 1;
    height: auto;
  }

  .quick-tool {
    min-height: 0;
  }

  .quick-info {
    padding: 34px 10px 10px;
  }

  .quick-title {
    font-size: 14px;
  }

  .quick-text {
    font-size: 11px;
  }

  .home-gallery {
    width: calc(100% - 24px);
    margin-top: 24px;
    margin-bottom: 48px;
  }

  .home-gallery-head {
    align-items: center;
  }

  .home-gallery h2 {
    font-size: 24px;
  }

  .home-gallery-more {
    margin-top: 34px;
  }

  .home-gallery-more .more-btn {
    width: min(320px, calc(100vw - 48px));
    height: 46px;
    padding: 0 18px;
    font-size: 13px;
  }

  .tools-banner {
    padding: 28px 24px;
  }

  .tools-banner h1,
  .tool-title-block h1 {
    font-size: 34px;
  }

  .tool-hero-grid {
    width: calc(100% - 24px);
  }

  .before-after,
  .upload-card {
    min-height: 260px;
  }

  .upload-card {
    padding: 28px 18px 24px;
  }

  .upload-icon {
    width: 78px;
    height: 62px;
    margin-bottom: 22px;
  }

  .upload-icon::before {
    left: 17px;
    bottom: 14px;
    width: 44px;
    height: 27px;
  }

  .upload-icon::after {
    right: -16px;
    top: -12px;
    width: 40px;
    height: 30px;
    background-size: 17px 17px;
  }

  .upload-title {
    font-size: 15px;
  }

  .upload-inner .upload-hint {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.55;
  }

  .try-row {
    margin-top: 38px;
  }

  .result-area,
  .editor-canvas {
    padding: 18px 12px;
  }

  .history-panel {
    right: 12px;
    width: min(280px, calc(100% - 24px));
  }

  .image-task-compare {
    grid-template-columns: 1fr;
  }

  .inpaint-workspace {
    grid-template-columns: 1fr;
  }

  .image-task-pane,
  .inpaint-mask-stage {
    min-height: 260px;
  }

  .point-strip {
    grid-template-columns: 1fr;
  }
}

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

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

@media (max-width: 480px) {
  .member-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 58px 16px 18px;
  }

  .member-user {
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
  }

  .benefit-list,
  .plans {
    grid-template-columns: 1fr;
  }

  .payment-status-card {
    grid-template-columns: 1fr;
  }
}
