:root {
        --anime-ink: #141529;
        --anime-muted: #7b7f9e;
        --anime-line: #e9e9f5;
        --anime-brand: #6c5ce7;
        --anime-brand-2: #a855f7;
        --anime-pink: #ec4899;
        --anime-cyan: #22d3ee;
    }

    body {
        background:
            radial-gradient(1100px 520px at 8% -10%, rgba(108, 92, 231, 0.10), transparent 60%),
            radial-gradient(900px 480px at 96% 4%, rgba(236, 72, 153, 0.08), transparent 55%),
            #f5f6fb;
    }

    [hidden] {
        display: none !important;
    }

    .anime-page {
        padding: 26px 0 10px;
    }

    /* ============ Hero ============ */
    .anime-hero {
        position: relative;
        overflow: hidden;
        border-radius: 26px;
        padding: 48px 46px;
        color: #fff;
        background: linear-gradient(120deg, #111226 0%, #1d1b44 48%, #321c5c 100%);
        box-shadow: 0 42px 80px -52px rgba(30, 20, 90, 0.95);
        margin-bottom: 26px;
    }

    .anime-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 44px 44px;
        -webkit-mask-image: radial-gradient(ellipse at 68% 40%, #000 8%, transparent 72%);
        mask-image: radial-gradient(ellipse at 68% 40%, #000 8%, transparent 72%);
        pointer-events: none;
    }

    .hero-glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        pointer-events: none;
    }

    .hero-glow.g1 {
        width: 330px;
        height: 330px;
        background: #6d5efc;
        top: -130px;
        right: 9%;
        opacity: 0.55;
    }

    .hero-glow.g2 {
        width: 260px;
        height: 260px;
        background: #ec4899;
        bottom: -150px;
        left: 14%;
        opacity: 0.32;
    }

    .hero-glow.g3 {
        width: 220px;
        height: 220px;
        background: #22d3ee;
        top: 18%;
        right: 34%;
        opacity: 0.22;
    }

    .hero-inner {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 32px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        padding: 7px 14px;
        border-radius: 999px;
        color: #cdd3ff;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(6px);
    }

    .hero-eyebrow i {
        color: #a5b4fc;
    }

    .anime-hero h1 {
        margin: 20px 0 14px;
        font-size: clamp(1.85rem, 4vw, 2.9rem);
        font-weight: 800;
        line-height: 1.24;
        letter-spacing: -0.01em;
    }

    .grad-text {
        background: linear-gradient(92deg, #a5b4fc 0%, #f0abfc 48%, #67e8f9 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hero-sub {
        color: #b9bdd8;
        font-size: 0.98rem;
        line-height: 1.75;
        margin: 0 0 22px;
    }

    .hero-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-pills span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 0.8rem;
        color: #dfe2ff;
        padding: 7px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-pills i {
        color: #8be9fd;
    }

    .hero-qr {
        flex: 0 0 auto;
        text-align: center;
        padding: 14px 14px 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(8px);
    }

    .hero-qr img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    .hero-qr p {
        margin: 8px 0 0;
        font-size: 0.72rem;
        color: #c3c8e6;
    }

    /* ============ Studio ============ */
    .studio-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin: 6px 2px 18px;
    }

    .section-kicker {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.28em;
        color: var(--anime-brand);
    }

    .studio-head h2,
    .section-head h2 {
        margin: 6px 0 0;
        font-size: clamp(1.4rem, 2.4vw, 1.75rem);
        font-weight: 800;
        color: var(--anime-ink);
        letter-spacing: -0.01em;
    }

    .studio-note {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 0.78rem;
        color: var(--anime-muted);
    }

    .studio-note i {
        color: #16a34a;
    }

    .panel {
        background: #fff;
        border: 1px solid var(--anime-line);
        border-radius: 20px;
        padding: 18px;
        margin-bottom: 16px;
        box-shadow: 0 22px 46px -38px rgba(24, 25, 70, 0.55);
    }

    .panel-title {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        font-size: 0.95rem;
        font-weight: 700;
        color: #23243c;
        margin-bottom: 14px;
    }

    .panel-title small {
        font-size: 0.74rem;
        font-weight: 400;
        color: var(--anime-muted);
    }

    .step-dot {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        border-radius: 9px;
        display: inline-grid;
        place-items: center;
        font-size: 0.78rem;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(135deg, #6c5ce7, #a855f7 65%, #ec4899);
        box-shadow: 0 8px 16px -8px rgba(108, 92, 231, 0.9);
    }

    .dropzone {
        position: relative;
        border: 2px dashed #d9d9f2;
        border-radius: 16px;
        background: linear-gradient(180deg, #fbfaff, #f4f2ff);
        padding: 30px 18px;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
        overflow: hidden;
    }

    .dropzone:hover,
    .dropzone:focus-visible,
    .dropzone.dragover {
        border-color: #8f7ff5;
        background: #efedff;
        outline: none;
    }

    .dropzone.dragover {
        transform: translateY(-2px);
    }

    .dropzone.has-file {
        padding: 0;
        border-style: solid;
        border-color: #dedcf7;
        background: #0f1020;
    }

    .dz-icon {
        width: 58px;
        height: 58px;
        margin: 0 auto 14px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        font-size: 1.55rem;
        color: #6c5ce7;
        background: #fff;
        box-shadow: 0 14px 26px -18px rgba(108, 92, 231, 0.9);
    }

    .dz-title {
        margin: 0 0 6px;
        font-size: 0.92rem;
        font-weight: 600;
        color: #33344f;
    }

    .dz-hint {
        margin: 0;
        font-size: 0.76rem;
        color: var(--anime-muted);
    }

    .dz-preview img {
        display: block;
        width: 100%;
        max-height: 265px;
        object-fit: cover;
    }

    .dz-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.82rem;
        background: linear-gradient(180deg, rgba(10, 11, 24, 0) 45%, rgba(10, 11, 24, 0.62));
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .dz-overlay span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 999px;
        background: rgba(15, 16, 32, 0.68);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(6px);
    }

    .dropzone.has-file:hover .dz-overlay {
        opacity: 1;
    }

    /* 风格选择 */
    .style-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .style-chip {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        padding: 11px 12px;
        border-radius: 14px;
        border: 1.5px solid #ebebf6;
        background: #fff;
        transition: all 0.22s ease;
        cursor: pointer;
    }

    .style-chip:hover {
        border-color: #cfc9ff;
        transform: translateY(-2px);
        box-shadow: 0 14px 24px -20px rgba(60, 45, 160, 0.7);
    }

    .style-chip.active {
        border-color: transparent;
        background: linear-gradient(135deg, #f2efff, #fdf2ff);
        box-shadow: inset 0 0 0 1.5px #6c5ce7, 0 16px 26px -22px rgba(108, 92, 231, 0.95);
    }

    .style-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        font-size: 0.98rem;
        color: #6c5ce7;
        background: #f1efff;
        transition: all 0.22s ease;
    }

    .style-chip.active .style-icon {
        color: #fff;
        background: linear-gradient(135deg, #6c5ce7, #a855f7 65%, #ec4899);
        box-shadow: 0 10px 18px -10px rgba(108, 92, 231, 0.95);
    }

    .style-copy {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .style-name {
        font-size: 0.86rem;
        font-weight: 700;
        color: #26273f;
        line-height: 1.25;
    }

    .style-desc {
        font-size: 0.71rem;
        color: var(--anime-muted);
        line-height: 1.35;
    }

    .style-check {
        position: absolute;
        top: 9px;
        right: 9px;
        font-size: 0.8rem;
        color: #6c5ce7;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .style-chip.active .style-check {
        opacity: 1;
    }

    /* 操作区 */
    .action-panel {
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-bottom: 0;
    }

    .login-tip {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        color: #b45309;
        background: #fff8eb;
        border: 1px solid #fde9c4;
        border-radius: 12px;
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .cta {
        width: 100%;
        border: 0;
        border-radius: 15px;
        padding: 15px 18px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #fff;
        background: linear-gradient(120deg, #6c5ce7, #9333ea 55%, #ec4899);
        box-shadow: 0 20px 34px -18px rgba(108, 92, 231, 0.95);
        transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

    .cta:hover:not(:disabled) {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 26px 40px -18px rgba(108, 92, 231, 0.95);
    }

    .cta:disabled {
        cursor: not-allowed;
        filter: grayscale(0.55);
        opacity: 0.55;
        box-shadow: none;
    }

    .cost-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 10px;
        font-size: 0.74rem;
        color: var(--anime-muted);
    }

    .cost-line strong {
        color: #6c5ce7;
        font-weight: 700;
    }

    /* ============ 预览画布 ============ */
    .canvas-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 620px;
        padding: 18px;
        border-radius: 22px;
        background: linear-gradient(160deg, #101120 0%, #191a31 55%, #241a3d 100%);
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 34px 70px -48px rgba(12, 12, 45, 0.95);
    }

    .canvas-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 4px 14px;
        color: #cfd2ea;
        font-size: 0.85rem;
    }

    .canvas-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

    .canvas-label i {
        color: #a5b4fc;
    }

    .canvas-chip {
        font-size: 0.72rem;
        padding: 5px 12px;
        border-radius: 999px;
        color: #c7d2fe;
        background: rgba(109, 94, 252, 0.18);
        border: 1px solid rgba(129, 140, 248, 0.35);
    }

    .canvas-body {
        position: relative;
        flex: 1;
        min-height: 440px;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at 50% 32%, #1d1e3a 0%, #0b0c17 74%);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .canvas-empty {
        text-align: center;
        padding: 40px 26px;
        color: #7e83a6;
    }

    .empty-orb {
        width: 78px;
        height: 78px;
        margin: 0 auto 18px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 1.8rem;
        color: #a5b4fc;
        background: rgba(109, 94, 252, 0.13);
        border: 1px solid rgba(129, 140, 248, 0.28);
        box-shadow: 0 0 0 10px rgba(109, 94, 252, 0.05);
        animation: orbFloat 3.4s ease-in-out infinite;
    }

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

    .canvas-empty h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #c9cce4;
        margin: 0 0 8px;
    }

    .canvas-empty p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.7;
        color: #7e83a6;
    }

    .canvas-single {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .canvas-single img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.9);
    }

    .compare {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 440px;
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
    }

    .compare img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
    }

    .compare .compare-top {
        clip-path: inset(0 50% 0 0);
        will-change: clip-path;
    }

    .compare-tag {
        position: absolute;
        top: 14px;
        z-index: 4;
        padding: 5px 12px;
        border-radius: 999px;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        color: #e7e9ff;
        background: rgba(10, 12, 24, 0.62);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px);
    }

    .compare-tag.left { left: 14px; }
    .compare-tag.right { right: 14px; }

    .compare-divider {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        z-index: 3;
        background: linear-gradient(180deg, #67e8f9, #a78bfa, #f0abfc);
        box-shadow: 0 0 18px rgba(167, 139, 250, 0.85);
        transform: translateX(-1px);
        pointer-events: none;
    }

    .compare-knob {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 4;
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        font-size: 1rem;
        background: rgba(15, 16, 32, 0.72);
        border: 1.5px solid rgba(255, 255, 255, 0.65);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
        transform: translate(-50%, -50%);
        backdrop-filter: blur(6px);
        pointer-events: none;
        transition: transform 0.15s ease;
    }

    .compare:hover .compare-knob {
        transform: translate(-50%, -50%) scale(1.06);
    }

    .compare-range {
        position: absolute;
        inset: 0;
        z-index: 5;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: ew-resize;
    }

    .canvas-loading {
        position: absolute;
        inset: 0;
        z-index: 6;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        text-align: center;
        padding: 30px;
        background: rgba(9, 10, 22, 0.86);
        backdrop-filter: blur(6px);
    }

    .ai-loader {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        border: 3px solid rgba(129, 140, 248, 0.16);
        border-top-color: #a5b4fc;
        border-right-color: #f0abfc;
        animation: spin 1s linear infinite;
        position: relative;
    }

    .ai-loader::after {
        content: "";
        position: absolute;
        inset: 9px;
        border-radius: 50%;
        border: 2px solid rgba(103, 232, 249, 0.2);
        border-bottom-color: #67e8f9;
        animation: spin 1.6s linear infinite reverse;
    }

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

    .loading-title {
        margin: 0;
        font-size: 0.98rem;
        font-weight: 600;
        color: #e3e6ff;
    }

    .loading-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        vertical-align: -2px;
    }

    .loading-sub {
        margin: 0;
        font-size: 0.78rem;
        color: #8f94b8;
        min-height: 1.2em;
    }

    .canvas-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        padding: 14px 4px 2px;
    }

    .result-meta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.76rem;
        color: #9aa0c3;
    }

    .meta-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #34d399;
        box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
    }

    .canvas-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .btn-ghost,
    .btn-solid {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 0.84rem;
        font-weight: 600;
        text-decoration: none;
        border: 0;
        transition: all 0.2s ease;
    }

    .btn-ghost {
        color: #dfe2f5;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .btn-ghost:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .btn-ghost:disabled {
        opacity: 0.38;
        cursor: not-allowed;
    }

    .btn-solid {
        color: #fff;
        background: linear-gradient(120deg, #6c5ce7, #a855f7 60%, #ec4899);
        box-shadow: 0 14px 26px -16px rgba(108, 92, 231, 0.95);
    }

    .btn-solid:hover {
        color: #fff;
        transform: translateY(-1px);
        filter: brightness(1.06);
    }

    .btn-solid.is-disabled {
        opacity: 0.4;
        pointer-events: none;
        box-shadow: none;
    }

    .canvas-hint {
        padding: 0 4px 2px;
        font-size: 0.72rem;
        color: #6f7496;
    }

    /* ============ 示例区 ============ */
    .examples {
        margin-top: 56px;
    }

    .section-head {
        text-align: center;
        margin-bottom: 26px;
    }

    .section-head p {
        margin: 8px 0 0;
        color: var(--anime-muted);
        font-size: 0.9rem;
    }

    .example-card {
        background: #fff;
        border: 1px solid #ececf7;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 24px 48px -34px rgba(30, 30, 80, 0.45);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
    }

    .example-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 34px 58px -32px rgba(49, 40, 130, 0.45);
    }

    .example-card .compare {
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        background: #0e0f1c;
    }

    .example-card .compare img {
        object-fit: cover;
    }

    .example-card .compare-tag {
        top: 12px;
        font-size: 0.66rem;
        padding: 4px 10px;
    }

    .example-card .compare-knob {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .example-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
    }

    .example-body h3 {
        margin: 0;
        font-size: 0.94rem;
        font-weight: 700;
        color: #1b1c30;
    }

    .example-body p {
        margin: 3px 0 0;
        font-size: 0.74rem;
        color: var(--anime-muted);
    }

    .try-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 12px;
        border-radius: 999px;
        border: 1px solid #e4e2ff;
        background: #f6f4ff;
        color: #5b4bdb;
        font-size: 0.74rem;
        font-weight: 600;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .try-btn:hover:not(:disabled) {
        background: #ece8ff;
        border-color: #d3ccff;
    }

    .try-btn:disabled {
        opacity: 0.6;
        cursor: wait;
    }

    .examples-note {
        margin-top: 14px;
        text-align: center;
        font-size: 0.72rem;
        color: #9a9db7;
    }

    /* ============ 指南 ============ */
    .guide-wrap {
        margin: 56px 0 60px;
    }

    .guide-card {
        background: #fff;
        border: 1px solid #ececf7;
        border-radius: 22px;
        padding: 28px;
        box-shadow: 0 26px 54px -42px rgba(30, 30, 80, 0.5);
    }

    .guide-card > h2 {
        margin: 0 0 22px;
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--anime-ink);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .guide-card > h2 i {
        color: var(--anime-brand);
    }

    .step-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 26px;
    }

    .step-card {
        padding: 18px;
        border-radius: 16px;
        background: linear-gradient(160deg, #faf9ff, #f6f3ff);
        border: 1px solid #efedff;
    }

    .step-card .num {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        color: #8b7cf0;
    }

    .step-card h3 {
        margin: 8px 0 6px;
        font-size: 0.94rem;
        font-weight: 700;
        color: #26273f;
    }

    .step-card p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.7;
        color: var(--anime-muted);
    }

    .guide-block {
        margin-top: 24px;
    }

    .guide-block h3 {
        font-size: 1rem;
        font-weight: 700;
        color: #222338;
        margin: 0 0 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f8;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .guide-block h3 i {
        color: var(--anime-brand);
    }

    .guide-list {
        margin: 0;
        padding-left: 1.2rem;
        color: #4c4f6b;
        font-size: 0.86rem;
        line-height: 1.9;
    }

    .guide-list strong {
        color: #2b2c46;
    }

    .accordion-item {
        border: 1px solid #efeff8;
        border-radius: 12px !important;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .accordion-button {
        font-size: 0.88rem;
        font-weight: 600;
        color: #2c2d47;
        background: #fbfaff;
        box-shadow: none !important;
    }

    .accordion-button:not(.collapsed) {
        color: #5b4bdb;
        background: #f3f0ff;
    }

    .accordion-button:focus {
        border-color: #ddd8ff;
    }

    .accordion-body {
        font-size: 0.84rem;
        line-height: 1.85;
        color: #555872;
    }

    @media (max-width: 991.98px) {
        .anime-hero {
            padding: 34px 26px;
        }

        .hero-inner {
            flex-direction: column;
        }

        .hero-qr {
            display: flex;
            align-items: center;
            gap: 10px;
            align-self: flex-start;
            padding: 10px 14px;
        }

        .hero-qr img {
            width: 64px;
            height: 64px;
        }

        .hero-qr p {
            margin: 0;
        }

        .canvas-card {
            min-height: auto;
        }

        .canvas-body {
            min-height: 360px;
        }

        .compare {
            min-height: 360px;
        }

        .step-cards {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767.98px) {
        .anime-page {
            padding-top: 14px;
        }

        .anime-hero {
            border-radius: 20px;
            padding: 26px 20px;
        }

        .hero-sub {
            font-size: 0.9rem;
        }

        .studio-head {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .panel {
            padding: 15px;
            border-radius: 16px;
        }

        .style-grid {
            gap: 8px;
        }

        .style-chip {
            padding: 10px;
            gap: 8px;
        }

        .style-icon {
            width: 30px;
            height: 30px;
            flex-basis: 30px;
            font-size: 0.86rem;
        }

        .style-name {
            font-size: 0.8rem;
        }

        .style-desc {
            font-size: 0.67rem;
        }

        .canvas-card {
            padding: 14px;
            border-radius: 18px;
        }

        .canvas-body,
        .compare {
            min-height: 300px;
        }

        .canvas-actions {
            width: 100%;
        }

        .canvas-actions .btn-ghost,
        .canvas-actions .btn-solid {
            flex: 1;
        }

        .guide-card {
            padding: 20px;
        }
    }

/* ============ 生成模式选择 ============ */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mode-card {
    position: relative;
    text-align: left;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid #ebebf6;
    background: #fff;
    cursor: pointer;
    transition: all 0.22s ease;
}

.mode-card:hover {
    border-color: #cfc9ff;
    transform: translateY(-2px);
}

.mode-card.active {
    border-color: transparent;
    background: linear-gradient(135deg, #f2efff, #fdf2ff);
    box-shadow: inset 0 0 0 1.5px #6c5ce7, 0 16px 26px -22px rgba(108, 92, 231, 0.95);
}

.mode-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 16px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #26273f;
}

.mode-head i {
    color: #6c5ce7;
}

.mode-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(120deg, #6c5ce7, #ec4899);
    white-space: nowrap;
}

.mode-desc {
    margin-top: 5px;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #8b8fa7;
}

.mode-check {
    position: absolute;
    top: 9px;
    right: 9px;
    font-size: 0.8rem;
    color: #6c5ce7;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mode-card.active .mode-check {
    opacity: 1;
}

.cost-value {
    font-weight: 800;
    font-size: 0.84rem;
    color: #6c5ce7;
}

.cost-hint {
    font-size: 0.7rem;
    color: #9a9db7;
}

/* ============ 双图上传 ============ */
.upload-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.slot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3a3b55;
}

.slot-title .badge-step {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: #f1efff;
    color: #6c5ce7;
    font-size: 0.66rem;
    font-weight: 700;
}

.dropzone.compact {
    padding: 20px 10px;
}

.dropzone.compact .dz-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.dropzone.compact .dz-title {
    font-size: 0.78rem;
}

.dropzone.compact .dz-hint {
    font-size: 0.66rem;
}

.dropzone.compact .dz-preview img {
    max-height: 210px;
}

/* ============ 编辑类型 ============ */
.type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.type-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1.5px solid #ebebf6;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #33344f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-chip i {
    font-size: 1rem;
    color: #6c5ce7;
    transition: all 0.2s ease;
}

.type-chip:hover {
    border-color: #cfc9ff;
    transform: translateY(-1px);
}

.type-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #f2efff, #fdf2ff);
    box-shadow: inset 0 0 0 1.5px #6c5ce7;
    color: #4c3bd1;
}

.type-chip.active i {
    color: #6c5ce7;
}

/* ============ 表单控件 ============ */
.field-box {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid #efedff;
    border-radius: 13px;
    background: #faf9ff;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a3b55;
}

.field-label span {
    color: #6c5ce7;
    font-weight: 700;
}

.field-range {
    width: 100%;
    accent-color: #6c5ce7;
}

.prompt-input {
    width: 100%;
    min-height: 86px;
    padding: 10px 12px;
    border: 1px solid #e4e2f2;
    border-radius: 10px;
    background: #fff;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #2b2c46;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-input:focus {
    border-color: #8f7ff5;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

/* ============ 页面主题色变体 ============ */
.face-hero {
    background: linear-gradient(120deg, #0d1526 0%, #0f2a4a 48%, #0c4557 100%);
}

.face-hero .g1 { background: #0ea5e9; }
.face-hero .g2 { background: #22d3ee; }
.face-hero .g3 { background: #6366f1; }

.edit-hero {
    background: linear-gradient(120deg, #141226 0%, #2a1b4d 48%, #4a1d4f 100%);
}

.edit-hero .g1 { background: #8b5cf6; }
.edit-hero .g2 { background: #f43f5e; }
.edit-hero .g3 { background: #22d3ee; }

@media (max-width: 767.98px) {
    .upload-pair {
        grid-template-columns: 1fr;
    }
}

.slot-hint {
    margin: 7px 2px 0;
    font-size: 0.68rem;
    color: #9a9db7;
    text-align: center;
}

.cost-line {
    flex-wrap: wrap;
}

.cost-note {
    flex: 0 0 100%;
    margin-top: 7px;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #9a9db7;
}

.example-face {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.example-face img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #e4e2ff;
}

.example-face span {
    font-size: 0.68rem;
    color: #9a9db7;
}

.example-body {
    flex-wrap: wrap;
}

/* ============ 一键抠图 ============ */
.cutout-hero {
    background: linear-gradient(120deg, #071a1f 0%, #0b3b3c 48%, #145a4a 100%);
}

.cutout-hero .g1 { background: #10b981; }
.cutout-hero .g2 { background: #22d3ee; }
.cutout-hero .g3 { background: #84cc16; }

.compare.compare-cutout {
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #e9ebf2 25%, transparent 25%),
        linear-gradient(-45deg, #e9ebf2 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e9ebf2 75%),
        linear-gradient(-45deg, transparent 75%, #e9ebf2 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.cutout-points {
    display: grid;
    gap: 8px;
}

.cutout-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #4a4b66;
}

.cutout-point i {
    color: #0ea5a4;
    font-size: 0.9rem;
    margin-top: 1px;
}

/* ============ 通用图像工具页面主题 ============ */
.style-hero {
    background: linear-gradient(120deg, #1a0f2e 0%, #3b1b52 48%, #6b2d5c 100%);
}

.style-hero .g1 { background: #ec4899; }
.style-hero .g2 { background: #a855f7; }
.style-hero .g3 { background: #f59e0b; }

.enhance-hero {
    background: linear-gradient(120deg, #071725 0%, #0c3450 48%, #0d4f63 100%);
}

.enhance-hero .g1 { background: #0ea5e9; }
.enhance-hero .g2 { background: #22d3ee; }
.enhance-hero .g3 { background: #6366f1; }

.upscale-hero {
    background: linear-gradient(120deg, #101226 0%, #251a52 48%, #35205f 100%);
}

.upscale-hero .g1 { background: #8b5cf6; }
.upscale-hero .g2 { background: #6366f1; }
.upscale-hero .g3 { background: #22d3ee; }

.colourize-hero {
    background: linear-gradient(120deg, #241407 0%, #4a2a0d 48%, #6b3d16 100%);
}

.colourize-hero .g1 { background: #f59e0b; }
.colourize-hero .g2 { background: #ef4444; }
.colourize-hero .g3 { background: #84cc16; }

.repair-hero {
    background: linear-gradient(120deg, #1c0d18 0%, #441a2a 48%, #61233a 100%);
}

.repair-hero .g1 { background: #f43f5e; }
.repair-hero .g2 { background: #a855f7; }
.repair-hero .g3 { background: #fb923c; }

.identify-hero {
    background: linear-gradient(120deg, #071c1b 0%, #0c3b36 48%, #115e52 100%);
}

.identify-hero .g1 { background: #10b981; }
.identify-hero .g2 { background: #22d3ee; }
.identify-hero .g3 { background: #84cc16; }

/* ============ 风格选择 ============ */
.style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px;
    border: 1.5px solid #ebebf6;
    border-radius: 12px;
    background: #fff;
    color: #33344f;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-option i {
    font-size: 1.05rem;
    color: #6c5ce7;
}

.style-option:hover {
    border-color: #cfc9ff;
    transform: translateY(-1px);
}

.style-option.active {
    border-color: transparent;
    background: linear-gradient(135deg, #f2efff, #fdf2ff);
    box-shadow: inset 0 0 0 1.5px #6c5ce7;
    color: #4c3bd1;
}

@media (max-width: 575.98px) {
    .style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============ 图像修复框选 ============ */
.selection-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.selection-stage > img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.9);
}

.selection-stage #selectionRect {
    position: absolute;
    display: none;
    border: 2px dashed #a78bfa;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    pointer-events: none;
    z-index: 9;
}

.selection-stage .selection-rect {
    position: absolute;
    border: 2px dashed #8b5cf6;
    background: rgba(139, 92, 246, 0.18);
    border-radius: 4px;
    z-index: 10;
}

.selection-stage .delete-selection {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f43f5e;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    z-index: 11;
}

/* ============ 图像识别 ============ */
.identify-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.identify-preview > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.9);
}

.identify-result-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #ececf7;
    background: #fff;
    box-shadow: 0 24px 48px -34px rgba(30, 30, 80, 0.45);
    max-height: 420px;
    overflow-y: auto;
}

.identify-result-card .alert {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2c2d45;
}

.identify-result-card h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1b1c30;
}

.identify-result-card .result-item {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f5ff;
    border: 1px solid #eeebff;
}

.identify-result-card .result-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #343552;
}

.identify-result-card .alert-info {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f3ff;
    color: #5b5c78;
    font-size: 0.8rem;
}

.ai-result-container {
    font-size: 0.86rem;
    line-height: 1.75;
    color: #33344f;
}

.ai-result-container h1,
.ai-result-container h2,
.ai-result-container h3,
.ai-result-container h4,
.ai-result-container h5,
.ai-result-container h6 {
    margin: 14px 0 8px;
    color: #1b1c30;
    font-weight: 700;
}

.ai-result-container p {
    margin: 0 0 10px;
}

.ai-result-container ul,
.ai-result-container ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.ai-result-container li {
    margin-bottom: 4px;
}

.ai-result-container strong {
    color: #4c3bd1;
}

.ai-result-container code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f2efff;
    color: #5b4bdb;
    font-size: 0.8rem;
}

.ai-result-container pre {
    padding: 12px;
    border-radius: 10px;
    background: #f7f5ff;
    overflow-x: auto;
}

.ai-result-container blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid #a78bfa;
    background: #faf8ff;
    color: #5b5c78;
}

.ai-streaming-indicator {
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 3px;
    background: #8b5cf6;
    border-radius: 2px;
    animation: aiBlink 0.9s infinite;
    vertical-align: middle;
}

@keyframes aiBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.mode-card input[type="radio"],
.type-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-card,
.type-chip {
    position: relative;
}

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

@media (max-width: 575.98px) {
    .identify-type-grid {
        grid-template-columns: 1fr;
    }
}

/* 白色面板内的浅色按钮 */
.btn-light-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #e7e4f5;
    background: #fff;
    color: #4c4d68;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-light-ghost:hover {
    border-color: #cfc9ff;
    background: #faf9ff;
    color: #5b4bdb;
}

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

[hidden] {
    display: none !important;
}
