/* ── Shop Theme ── */
body {
    font-family: var(--font-gt-standard);
    color: var(--color-ink-black);
    letter-spacing: var(--tracking-body);
    -webkit-font-smoothing: antialiased;
}

.shop-app {
    background: var(--color-pure-white);
}

.shop-wordmark {
    font-family: var(--font-gt-standard-medium);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--color-shop-violet);
    text-decoration: none;
    line-height: 1;
}

/* 极光AI 品牌字标 */
.shop-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.02em;
    font-family: var(--font-gt-standard-medium);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
}

.shop-brand__light {
    color: var(--color-ink-black);
}

.shop-brand__accent {
    color: var(--color-shop-violet);
}

.shop-brand--hero {
    font-size: clamp(2.25rem, 7vw, 3.25rem);
    margin-bottom: 0.75rem;
}

.shop-brand--sm {
    font-size: 1.125rem;
}

.shop-brand--sidebar {
    font-size: 11px;
    font-weight: 600;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    line-height: 1.15;
    text-align: center;
}

.shop-brand--sidebar .shop-brand__accent {
    font-size: 10px;
    font-weight: 700;
}

.shop-brand__logo {
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.shop-brand__logo--sidebar {
    width: 38px;
    height: 38px;
}

.shop-brand__logo--hero {
    width: min(360px, 52vw);
    max-height: 220px;
    border-radius: 18px;
}

.shop-brand__logo--create {
    width: 118px;
    max-height: 96px;
    border-radius: 16px;
}

.shop-brand__logo--sm {
    width: 64px;
    height: 60px;
    border-radius: 12px;
}

.shop-wordmark--hero {
    font-size: clamp(2.75rem, 8vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    margin-bottom: 1.75rem;
}

.shop-wordmark--sm {
    font-size: 1.125rem;
    letter-spacing: -0.035em;
}

.shop-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-shop-violet);
    color: var(--color-pure-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-btn-violet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 40px;
    padding: 0 1.25rem;
    font-family: var(--font-gt-standard);
    font-size: var(--text-body);
    font-weight: 500;
    letter-spacing: var(--tracking-body);
    color: var(--color-pure-white);
    background: var(--color-shop-violet);
    border: none;
    border-radius: var(--radius-buttons);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.shop-btn-violet:hover {
    background: var(--color-shop-violet-hover);
}

.shop-btn-violet--circle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.shop-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-family: var(--font-gt-standard);
    font-size: var(--text-body-sm);
    font-weight: 400;
    letter-spacing: var(--tracking-body-sm);
    color: var(--color-ink-black);
    background: var(--color-pure-white);
    border: 1px solid var(--color-ink-black);
    border-radius: var(--radius-buttons);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.shop-btn-outline:hover {
    border-color: var(--color-shop-violet);
    color: var(--color-shop-violet);
}

.shop-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    color: var(--color-slate);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.shop-btn-ghost:hover {
    color: var(--color-ink-black);
    background: var(--color-soft-canvas);
}

.shop-btn-ghost.is-active {
    color: var(--color-shop-violet);
    background: var(--color-violet-muted);
}

.shop-card {
    background: var(--surface-card-surface);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-cards);
}

.shop-card--input {
    padding: var(--card-padding);
}

.shop-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    min-height: 58px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-search);
    box-shadow: var(--shadow-float);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-search:focus-within {
    border-color: var(--color-concrete);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-gt-standard);
    font-size: var(--text-body-lg);
    letter-spacing: var(--tracking-body-lg);
    color: var(--color-ink-black);
}

.shop-search input::placeholder {
    color: var(--color-slate);
}

.shop-product-card {
    width: 168px;
    flex-shrink: 0;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-cards);
    overflow: hidden;
}

.shop-product-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-images) var(--radius-images) 0 0;
}

.shop-product-card__media img,
.shop-product-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-card__body {
    padding: 0.625rem 0.75rem 0.75rem;
}

.shop-product-card__title {
    font-size: var(--text-caption);
    letter-spacing: var(--tracking-caption);
    line-height: var(--leading-caption);
    color: var(--color-ink-black);
}

.shop-product-card__meta {
    margin-top: 0.375rem;
    font-size: 9px;
    letter-spacing: -0.058em;
    color: var(--color-slate);
}

.shop-stars {
    color: #f5a623;
    letter-spacing: 0.05em;
}

.shop-nav-rail {
    width: var(--nav-rail-width);
    background: var(--color-pure-white);
    border-right: 1px solid var(--color-hairline);
}

.shop-nav-rail__signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 10px;
    letter-spacing: -0.02em;
    color: var(--color-slate);
    text-decoration: none;
}

.shop-nav-rail__signin:hover {
    color: var(--color-ink-black);
}

.shop-promo-bar {
    min-height: 44px;
    background: var(--surface-dark-panel);
    color: var(--color-pure-white);
    font-size: var(--text-body-sm);
    letter-spacing: var(--tracking-body-sm);
}

.shop-promo-bar__icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--color-shop-violet);
    flex-shrink: 0;
}

.shop-section-wash {
    background: var(--surface-section-wash);
}

.shop-tab-active {
    color: var(--color-shop-violet) !important;
}

.shop-tab-underline {
    background: var(--color-shop-violet);
}

/* Landing page — Shop.app layout */
.shop-landing {
    min-height: 100vh;
    background: var(--color-pure-white);
}

.shop-landing-layout {
    display: flex;
    min-height: calc(100vh - 44px);
}

.shop-landing-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.shop-landing-hero {
    position: relative;
    min-height: clamp(420px, 58vh, 560px);
    padding: 2.5rem 1.5rem 2rem;
    background: var(--color-pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-landing-hero__stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.shop-float-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.shop-float-card {
    position: absolute;
    width: clamp(130px, 14vw, 168px);
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    pointer-events: auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shop-float-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.shop-float-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-soft-canvas);
}

.shop-float-card__img img,
.shop-float-card__img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-float-card__body {
    padding: 0.5rem 0.625rem 0.625rem;
}

.shop-float-card__title {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--color-ink-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-float-card__meta {
    margin-top: 0.25rem;
    font-size: 9px;
    color: var(--color-slate);
    letter-spacing: -0.03em;
}

.shop-float-card--1 { top: 8%; left: 4%; --rot: -7deg; animation: landing-card-float 7s ease-in-out infinite; animation-delay: 0s; }
.shop-float-card--2 { top: 6%; right: 5%; --rot: 6deg; animation: landing-card-float 8s ease-in-out infinite; animation-delay: 0.5s; }
.shop-float-card--3 { top: 38%; left: 1%; --rot: 5deg; animation: landing-card-float 6.5s ease-in-out infinite; animation-delay: 1s; }
.shop-float-card--4 { top: 34%; right: 2%; --rot: -5deg; animation: landing-card-float 7.5s ease-in-out infinite; animation-delay: 1.5s; }
.shop-float-card--5 { bottom: 10%; left: 6%; --rot: 4deg; animation: landing-card-float 8.5s ease-in-out infinite; animation-delay: 0.8s; }
.shop-float-card--6 { bottom: 8%; right: 7%; --rot: -4deg; animation: landing-card-float 7s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes landing-card-float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

@keyframes landing-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes landing-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.landing-reveal {
    opacity: 0;
    animation: landing-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.landing-reveal--d1 { animation-delay: 0.08s; }
.landing-reveal--d2 { animation-delay: 0.18s; }
.landing-reveal--d3 { animation-delay: 0.28s; }
.landing-reveal--d4 { animation-delay: 0.38s; }
.landing-reveal--d5 { animation-delay: 0.48s; }
.landing-reveal--d6 { animation-delay: 0.58s; }

.landing-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-ink-black);
    margin-bottom: 0.5rem;
}

.landing-hero__desc {
    font-size: var(--text-body);
    line-height: 1.55;
    color: var(--color-slate);
    letter-spacing: var(--tracking-body);
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

.landing-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.landing-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-slate);
    background: var(--color-pure-white);
}

.landing-stat__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-shop-violet);
    animation: landing-pulse-dot 2s ease-in-out infinite;
}

.landing-section-head {
    max-width: calc(var(--page-max-width) + 3rem);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.landing-section-head h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-ink-black);
    margin-bottom: 0.375rem;
}

.landing-section-head p {
    font-size: var(--text-body-sm);
    color: var(--color-slate);
    letter-spacing: var(--tracking-body-sm);
    line-height: 1.5;
    max-width: 520px;
}

.landing-steps {
    padding: 3rem 1.5rem;
    background: var(--surface-section-wash);
}

.landing-steps__grid {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .landing-steps__grid { grid-template-columns: repeat(3, 1fr); }
}

.landing-step {
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-shell);
    padding: 1.25rem 1.25rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.landing-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-violet-muted);
    color: var(--color-shop-violet);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.landing-step h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.landing-step p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--color-slate);
    letter-spacing: -0.02em;
}

.landing-cta {
    margin: 0 1.5rem 3rem;
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-shell);
    background: var(--color-near-black);
    color: var(--color-pure-white);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.landing-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(84, 51, 235, 0.35), transparent 55%);
    pointer-events: none;
}

.landing-cta__inner {
    position: relative;
    z-index: 1;
}

.landing-cta h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.landing-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.landing-cta .shop-btn-violet {
    min-width: 140px;
}

.landing-cta .shop-btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-pure-white);
    background: transparent;
}

.landing-cta .shop-btn-outline:hover {
    border-color: var(--color-pure-white);
    color: var(--color-pure-white);
}

.landing-scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.landing-marquee {
    overflow: hidden;
    border-top: 1px solid var(--color-hairline);
    border-bottom: 1px solid var(--color-hairline);
    padding: 0.75rem 0;
    background: var(--color-pure-white);
}

.landing-marquee__track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: landing-marquee 28s linear infinite;
}

.landing-marquee__item {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-slate);
    white-space: nowrap;
}

.landing-marquee__item strong {
    color: var(--color-ink-black);
    font-weight: 600;
}

@keyframes landing-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.shop-search input.landing-placeholder-fade::placeholder {
    transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .landing-reveal,
    .shop-float-card,
    .landing-marquee__track {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .landing-scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1023px) {
    .shop-float-layer { display: none; }
    .shop-landing-hero { min-height: auto; padding-top: 3rem; padding-bottom: 2.5rem; }
}

.shop-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1.25rem 0 0.25rem;
    margin: 0 auto;
    max-width: 680px;
    scrollbar-width: none;
}

.shop-chips::-webkit-scrollbar { display: none; }

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    height: 36px;
    padding: 0 0.875rem 0 0.375rem;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-ink-black);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-chip:hover {
    border-color: var(--color-concrete);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.shop-chip__thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-soft-canvas);
}

.shop-chip__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-violet-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-shop-violet);
}

.shop-mega-section {
    padding: 3rem 1.5rem 3.75rem;
    max-width: calc(var(--page-max-width) + 3rem);
    margin: 0 auto;
}

.shop-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 900px) {
    .shop-mega-grid { grid-template-columns: repeat(4, 1fr); }
}

.shop-mega-card {
    border-radius: var(--radius-shell);
    overflow: hidden;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
}

.shop-mega-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.5rem;
}

.shop-mega-card__head a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-ink-black);
    text-decoration: none;
}

.shop-mega-card__head a:hover { color: var(--color-shop-violet); }

.shop-mega-card__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 8px 8px;
}

.shop-mega-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
}

.shop-mega-tile img,
.shop-mega-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.shop-mega-tile__label {
    position: absolute;
    left: 0.625rem;
    bottom: 0.625rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-pure-white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.shop-scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.shop-scroll-row::-webkit-scrollbar { display: none; }

.landing-featured-section {
    padding-top: 2.75rem;
}

.shop-product-card {
    width: 180px;
    flex-shrink: 0;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
}

.landing-preview-open {
    overflow: hidden;
}

.landing-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-preview-modal.is-open {
    display: flex;
}

.landing-preview-modal__panel {
    position: relative;
    width: min(1080px, 92vw);
    max-height: 90vh;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.32);
}

.landing-preview-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.landing-preview-modal__media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 96px);
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
}

.landing-preview-modal__media img,
.landing-preview-modal__media video {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 96px);
    object-fit: contain;
}

.landing-preview-modal__title {
    margin: 12px 8px 2px;
    color: var(--color-ink-black);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.global-image-preview {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.global-image-preview.hidden {
    display: none;
}

.global-image-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.global-image-preview__panel {
    position: relative;
    z-index: 1;
    max-width: min(1120px, 94vw);
    max-height: 92vh;
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.35);
}

.global-image-preview__panel img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
}

.global-image-preview__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.shop-landing-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.shop-landing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--color-concrete);
    background: transparent;
}

.shop-landing-dots span.is-active {
    width: 8px;
    height: 8px;
    background: var(--color-ink-black);
    border-color: var(--color-ink-black);
}

.shop-landing-footer {
    border-top: 1px solid var(--color-hairline);
    padding: 2rem 1.5rem 3rem;
    background: var(--color-pure-white);
}

.shop-landing-footer__grid {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem 2rem;
}

.shop-landing-footer h4 {
    font-size: var(--text-body-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-body-sm);
    margin-bottom: 0.75rem;
}

.shop-landing-footer a {
    display: block;
    font-size: var(--text-caption);
    letter-spacing: var(--tracking-caption);
    color: var(--color-slate);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.shop-landing-footer a:hover {
    color: var(--color-ink-black);
}

/* Custom scrollbar hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* Smooth transitions - 仅作用于有 transition 的元素，避免影响点击区域 */
button, a, [role="button"], .transition-all, .transition-colors, .transition-opacity {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Dialog overlay */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-overlay.hidden {
    display: none !important;
}

.dialog-content {
    background: var(--color-pure-white);
    border-radius: var(--radius-cards);
    border: 1px solid var(--color-hairline);
    box-shadow: none;
    animation: dialog-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow: hidden;
}

@keyframes dialog-enter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 浅色充值 / 会员弹窗 */
.paywall-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.paywall-shell.dialog-content {
    width: min(1080px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--color-hairline, #E5E5E5);
    border-radius: 24px;
    color: #1A1A1A;
    padding: 28px 28px 32px;
    position: relative;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

.paywall-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #F5F5F5;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.paywall-close:hover {
    background: #EBEBEB;
    color: #1A1A1A;
}

.paywall-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-right: 28px;
}

.paywall-tabs {
    display: inline-flex;
    gap: 28px;
    border-bottom: 1px solid #EFEFEF;
}

.paywall-tab {
    position: relative;
    padding: 10px 4px 12px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.paywall-tab.is-active {
    color: #1A1A1A;
}

.paywall-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-shop-violet, #5433eb);
    border-radius: 2px;
}

.paywall-subtip {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.paywall-status-tip {
    margin: 0 auto 18px;
    max-width: 720px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    color: #64748B;
    font-size: 13px;
    text-align: center;
}

.paywall-status-tip.is-member {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #047857;
}

.paywall-cards {
    display: grid;
    gap: 16px;
    justify-content: center;
    justify-items: stretch;
    margin: 0 auto;
}

/* 3 个：一行居中 */
.paywall-cards[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 260px));
}

/* 4 个：宽屏一行，中屏 2x2 */
.paywall-cards[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 240px));
}

/* 5+ 个：自动换行居中 */
.paywall-cards[data-count="5"],
.paywall-cards[data-count="6"],
.paywall-cards[data-count="7"],
.paywall-cards[data-count="8"] {
    grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
}

/* 2 个或其它数量 */
.paywall-cards[data-count="1"] {
    grid-template-columns: minmax(0, 280px);
}
.paywall-cards[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 260px));
}
.paywall-cards:not([data-count]) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}

.paywall-empty {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 40px 12px;
    color: #999;
    font-size: 14px;
}

.paywall-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 340px;
    padding: 20px 18px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #E8E8E8;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.paywall-card.is-featured {
    border-color: var(--color-shop-violet, #5433eb);
    box-shadow: 0 0 0 1px rgba(84, 51, 235, 0.2), 0 12px 32px rgba(84, 51, 235, 0.1);
}

.paywall-card.is-active-plan {
    border-color: #34d399;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.paywall-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F5F5F5;
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.paywall-card.is-featured .paywall-card__badge {
    background: var(--color-violet-muted, #F3F0FF);
    color: var(--color-shop-violet, #5433eb);
}

.paywall-card__ribbon {
    margin: -20px -18px 14px;
    padding: 8px 14px;
    background: linear-gradient(90deg, #5433eb, #7c5cff);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.paywall-card__name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.paywall-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.paywall-card__price-num {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #111;
}

.paywall-card__price-unit {
    font-size: 13px;
    color: #999;
}

.paywall-card__meta {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 14px;
}

.paywall-card__chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.paywall-card.is-featured .paywall-card__chip {
    background: var(--color-shop-violet, #5433eb);
}

.paywall-card__quota {
    font-size: 11px;
    color: #A3A3A3;
    margin-bottom: 16px;
}

.paywall-card__cta {
    margin-top: auto;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.paywall-card__cta:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #000;
}

.paywall-card.is-featured .paywall-card__cta {
    background: var(--color-shop-violet, #5433eb);
}

.paywall-card.is-featured .paywall-card__cta:hover:not(:disabled) {
    background: var(--color-shop-violet-hover, #4524db);
}

.paywall-card__cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.paywall-card__perks {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #F0F0F0;
    list-style: none;
}

.paywall-card__perks li {
    position: relative;
    padding-left: 14px;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.paywall-card__perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-shop-violet, #5433eb);
}

@media (max-width: 1024px) {
    .paywall-cards[data-count="4"],
    .paywall-cards[data-count="5"],
    .paywall-cards[data-count="6"],
    .paywall-cards[data-count="7"],
    .paywall-cards[data-count="8"] {
        grid-template-columns: repeat(2, minmax(0, 280px));
    }
}

@media (max-width: 760px) {
    .paywall-cards[data-count="3"],
    .paywall-cards[data-count="4"],
    .paywall-cards[data-count="5"],
    .paywall-cards[data-count="6"],
    .paywall-cards[data-count="7"],
    .paywall-cards[data-count="8"],
    .paywall-cards[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .paywall-shell.dialog-content {
        padding: 22px 16px 24px;
        border-radius: 18px;
        width: min(100vw - 24px, 1080px);
    }
    .paywall-cards[data-count="1"],
    .paywall-cards[data-count="2"],
    .paywall-cards[data-count="3"],
    .paywall-cards[data-count="4"],
    .paywall-cards[data-count="5"],
    .paywall-cards[data-count="6"],
    .paywall-cards[data-count="7"],
    .paywall-cards[data-count="8"],
    .paywall-cards:not([data-count]) {
        grid-template-columns: 1fr;
    }
    .paywall-card {
        min-height: 0;
    }
}

/* 参考图 / 首帧 / 尾帧：减轻移动端约 300ms 点击延迟、去掉系统高亮 */
.upload-drop-zone {
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.upload-drop-zone:focus-within {
    border-color: var(--color-shop-violet);
    background-color: var(--color-violet-soft);
}

.image-input-drop-active {
    background: var(--color-violet-soft);
    box-shadow: 0 0 0 2px rgba(84, 51, 235, 0.16);
}

/* 创作区顶部标题：极光 AI 艺术字 */
.aurora-creation-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin: 0 0 1rem;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.1;
}

.aurora-creation-title__main {
    display: inline-flex;
    align-items: center;
    gap: 0.16em;
    font-size: clamp(2.25rem, 5.2vw, 4rem);
    font-weight: 950;
    letter-spacing: 0.05em;
}

.aurora-creation-title__word {
    display: inline-block;
    -webkit-text-fill-color: currentColor;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(15, 23, 42, 0.18);
}

.aurora-creation-title__word--cyan {
    color: #0891b2 !important;
}

.aurora-creation-title__word--blue {
    color: #2563eb !important;
}

.aurora-creation-title__word--violet {
    color: #7c3aed !important;
}

.aurora-creation-title__tagline {
    display: inline-block;
    color: #e11d48 !important;
    -webkit-text-fill-color: #e11d48;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(225, 29, 72, 0.18);
}

/* 参考图浏览器内编辑器 */
.ref-image-editor-dialog {
    z-index: 80;
}

.ref-image-editor-panel {
    display: flex;
    flex-direction: column;
    width: min(1280px, 96vw) !important;
    height: min(94vh, 960px);
    max-height: 94vh;
}

.ref-editor-header,
.ref-editor-footer {
    flex-shrink: 0;
}

.ref-editor-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 220px minmax(0, 1fr) !important;
}

.ref-editor-stage {
    min-width: 0;
    min-height: 620px;
    overflow: hidden;
    display: flex;
}

.ref-editor-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.625rem;
    background: #fff;
    color: #555;
    font-size: 0.75rem;
}

.ref-editor-tool-btn:hover,
.ref-editor-tool-btn.is-active {
    border-color: #3b82f6;
    background: #f0f7ff;
    color: #2563eb;
}

.ref-editor-palette {
    display: grid;
    grid-template-columns: repeat(6, 20px);
    justify-content: start;
    gap: 5px;
}

.ref-editor-color-swatch {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ref-editor-color-swatch.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.ref-editor-color-swatch[data-color="#ffffff"] {
    background:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%),
        #fff !important;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0, 0 0 !important;
    background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, auto !important;
}

.ref-editor-controls input[type="color"] {
    width: 44px;
    height: 28px;
    padding: 2px;
}

.ref-editor-zoom {
    display: grid;
    grid-template-columns: 1fr 32px 48px 32px 1fr;
    gap: 5px;
    align-items: center;
}

.ref-editor-zoom button,
.ref-editor-zoom span {
    min-height: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    background: #fff;
    color: #555;
    font-size: 12px;
    text-align: center;
}

.ref-editor-zoom button:hover,
.ref-editor-zoom button.is-active {
    border-color: #3b82f6;
    background: #f0f7ff;
    color: #2563eb;
}

.ref-editor-zoom span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ref-image-detail-dialog {
    z-index: 75;
}

.ref-image-detail-panel {
    display: flex;
    flex-direction: column;
    width: min(920px, 94vw);
    height: min(88vh, 820px);
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ref-image-detail-header,
.ref-image-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.ref-image-detail-footer {
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #e5e5e5;
    border-bottom: 0;
}

.ref-image-detail-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-color: #f9fafb;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.ref-image-detail-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
}

.ref-editor-canvas-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 560px;
    overflow: auto;
    border-radius: 1rem;
    background:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-color: #f9fafb;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.ref-editor-canvas {
    display: block;
    max-width: none;
    max-height: none;
    height: auto;
    cursor: crosshair;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

@media (max-width: 1023px) {
    .ref-image-editor-panel {
        height: 94vh;
        width: 96vw !important;
    }

    .ref-editor-header {
        padding: 10px 14px;
    }

    .ref-editor-header #ref-editor-status {
        display: none;
    }

    .ref-editor-body {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .ref-editor-toolbar {
        padding: 10px 14px;
    }

    .ref-editor-tool-btn {
        min-height: 36px;
    }

    .ref-editor-controls {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .ref-editor-palette {
        grid-template-columns: repeat(12, 20px);
        gap: 5px;
        margin-top: 8px;
    }

    .ref-editor-zoom {
        grid-template-columns: 64px 32px 48px 32px 64px;
        justify-content: start;
        margin-top: 8px;
    }

    .ref-editor-color-swatch {
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .ref-editor-controls input[type="color"] {
        width: 40px;
        height: 26px;
    }

    .ref-editor-history {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 8px;
    }

    .ref-editor-history button:last-child {
        grid-column: auto;
    }

    .ref-editor-help {
        display: none;
    }

    .ref-editor-stage {
        flex: 1;
        min-height: 56vh;
        padding: 10px;
    }

    .ref-editor-canvas-wrap {
        min-height: 52vh;
    }

    .ref-editor-footer {
        padding: 10px 14px;
    }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 按钮内图标不拦截点击，确保整块按钮可点 */
button [data-lucide],
button svg,
button i {
    pointer-events: none;
}

/* Custom button press effect */
button:active {
    transform: scale(0.98);
}

/* Template card hover effect */
.template-card .group-hover\:shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.template-card .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Aspect ratio button active state */
.aspect-ratio-btn.active {
    border-color: #3B82F6;
    background-color: #F0F7FF;
}

.aspect-ratio-btn.active span {
    color: #3B82F6;
}

/* Model option selected state */
.model-option.selected {
    border-color: #3B82F6;
    background-color: #F0F7FF;
}

/* ========== 生成进度渐变动画（类似即梦） ========== */
@keyframes gen-gradient-shift {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes gen-shimmer {
    0%   { opacity: 0.6; }
    50%  { opacity: 1; }
    100% { opacity: 0.6; }
}

.gen-gradient-anim {
    background: linear-gradient(
        135deg,
        #c3f0e8 0%,
        #bde0fe 20%,
        #d4c4fb 40%,
        #c3f0e8 60%,
        #fef9d7 80%,
        #bde0fe 100%
    );
    background-size: 400% 400%;
    animation: gen-gradient-shift 8s ease infinite;
}

.gen-gradient-anim::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: gen-shimmer 3s ease-in-out infinite;
}

/* 进度徽章 */
.gen-progress-badge {
    background: rgba(74, 190, 163, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 生成结果卡片 */
.gen-result-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.gen-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 错误提示卡片 */
.gen-error-card {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 12px;
    padding: 16px;
}

/* 生成中状态 - 让创作区变成上下布局 */
.creating-mode #creation-title {
    display: none;
}

/* 创作页：整页滚动，避免 flex 嵌套把输入区裁切 */
.shop-create-main {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

#creation-wrapper {
    flex-shrink: 0;
}

#template-cards-section {
    flex-shrink: 0;
}

.creating-mode #generation-area {
    display: block !important;
}

.creating-mode #template-cards-section {
    display: none;
}

/* 生成进度条动画 */
@keyframes progress-indeterminate {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.gen-progress-bar-fill {
    transition: width 0.5s ease;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gen-fade-in {
    animation: fadeInUp 0.4s ease;
}

/* Unified card corner style */
.template-card > div,
.gen-result-card,
.gen-error-card,
[class~="card"],
[class*="card-"] {
    border-radius: 16px;
}

/* 建筑设计快捷提示词（收纳在「快捷词」按钮弹出层） */
.prompt-presets {
    position: relative;
}

.prompt-presets #prompt-presets-toggle.is-active,
.prompt-presets.is-open #prompt-presets-toggle {
    border-color: var(--color-shop-violet);
    color: var(--color-shop-violet);
}

.prompt-presets.is-open .prompt-presets__chevron {
    transform: rotate(180deg);
}

.prompt-presets__chevron {
    transition: transform 0.15s ease;
}

.prompt-presets__panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    width: min(360px, calc(100vw - 2rem));
    padding: 0.875rem;
    background: var(--color-pure-white, #fff);
    border: 1px solid var(--color-hairline);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prompt-presets__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-ink-black, #1A1A1A);
    letter-spacing: -0.02em;
}

.prompt-presets__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-slate, #6B7280);
    cursor: pointer;
}

.prompt-presets__close:hover {
    background: var(--color-soft-canvas, #F5F5F4);
    color: var(--color-ink-black, #1A1A1A);
}

.prompt-presets__groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.prompt-presets__tab {
    height: 32px;
    padding: 0 0.875rem;
    border: 1px solid var(--color-hairline);
    border-radius: 10px;
    background: var(--color-soft-canvas, #F5F5F4);
    color: var(--color-ink-black, #1A1A1A);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.prompt-presets__tab:hover {
    border-color: var(--color-shop-violet);
    color: var(--color-shop-violet);
}

.prompt-presets__tab.is-active {
    color: #fff;
    background: var(--color-shop-violet);
    border-color: var(--color-shop-violet);
    box-shadow: 0 2px 8px rgba(84, 51, 235, 0.28);
}

.prompt-presets__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt-presets__chip {
    min-height: 36px;
    padding: 0 0.875rem;
    border: 1px solid var(--color-ink-black, #1A1A1A);
    border-radius: 10px;
    background: var(--color-pure-white, #fff);
    color: var(--color-ink-black, #1A1A1A);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.prompt-presets__chip:hover {
    border-color: var(--color-shop-violet);
    color: var(--color-shop-violet);
    box-shadow: 0 4px 12px rgba(84, 51, 235, 0.12);
    transform: translateY(-1px);
}

.prompt-presets__chip:active {
    transform: translateY(0);
}

.prompt-presets__chip.is-active {
    border-color: var(--color-shop-violet);
    color: #fff;
    background: var(--color-shop-violet);
    box-shadow: 0 2px 8px rgba(84, 51, 235, 0.28);
}

.prompt-presets__hint {
    margin: 0.625rem 0 0;
    font-size: 11px;
    color: var(--color-slate, #6B7280);
    letter-spacing: -0.01em;
}

#reverse-prompt-btn.is-loading,
[data-ref-describe-btn="1"].is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.reverse-prompt-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    color: var(--color-shop-violet);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

.reverse-prompt-overlay.is-visible {
    display: flex;
}

.reverse-prompt-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.reverse-prompt-btn:hover i {
    color: var(--color-shop-violet);
}

.reverse-prompt-overlay__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(84, 51, 235, 0.2);
    border-top-color: var(--color-shop-violet);
    border-radius: 50%;
    animation: reverse-prompt-spin 0.8s linear infinite;
}

@keyframes reverse-prompt-spin {
    to { transform: rotate(360deg); }
}

.reverse-prompt-status {
    margin-top: 0.625rem;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--color-hairline);
    background: var(--color-soft-canvas, #F5F5F4);
    display: none;
}

.reverse-prompt-status.is-loading,
.reverse-prompt-status.is-success,
.reverse-prompt-status.is-error {
    display: block;
}

.reverse-prompt-status.is-loading {
    border-color: rgba(84, 51, 235, 0.25);
    background: var(--color-violet-muted, #F3F0FF);
}

.reverse-prompt-status.is-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: #ECFDF5;
}

.reverse-prompt-status.is-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: #FEF2F2;
}

.reverse-prompt-status__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.reverse-prompt-status__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink-black, #1A1A1A);
    margin-bottom: 0.15rem;
}

.reverse-prompt-status__desc {
    font-size: 12px;
    color: var(--color-slate, #6B7280);
    line-height: 1.4;
}

.reverse-prompt-status__preview {
    margin-top: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-ink-black, #1A1A1A);
    word-break: break-word;
}

.reverse-prompt-status__close {
    flex-shrink: 0;
    height: 30px;
    padding: 0 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-slate, #6B7280);
    font-size: 12px;
    cursor: pointer;
}

.reverse-prompt-status__close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-ink-black, #1A1A1A);
}

.reverse-prompt-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

.reverse-prompt-status__fill {
    height: 30px;
    padding: 0 0.875rem;
    border: none;
    border-radius: 8px;
    background: var(--color-shop-violet);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.reverse-prompt-status__fill:hover {
    background: var(--color-shop-violet-hover, #4524db);
}

.prompt-input-field.is-reverse-filled {
    border-color: var(--color-shop-violet) !important;
    box-shadow: 0 0 0 3px rgba(84, 51, 235, 0.18);
    background: #FAF8FF;
}

@media (max-width: 640px) {
    .prompt-presets__panel {
        left: auto;
        right: 0;
        width: min(320px, calc(100vw - 1.5rem));
    }
}
