﻿.namecard-intro-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    overflow: hidden;
    padding: 32px;
    height: 100dvh;
}

.intro-loading-overlay {
    position: fixed;
}

.main-image-card img {
    height: 346px !important;
    object-fit: cover !important;
    object-position: 0 0;
}

.side-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: 0 0;
}
/* 第一步：分析设计思路 - 全屏遮罩 */
.culturewall-analysis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
}

    .culturewall-analysis-overlay .spin-icon {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: cwSpin 0.8s linear infinite;
        margin-bottom: 20px;
    }

@keyframes cwSpin {
    to {
        transform: rotate(360deg);
    }
}

.culturewall-analysis-text {
    color: #fff;
    font-size: 18px;
}

/* 选项卡 */
.culturewall-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.culturewall-tab {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    user-select: none;
}

    .culturewall-tab.active {
        color: #4f46e5;
        border-bottom-color: #4f46e5;
    }

    .culturewall-tab:hover {
        color: #4f46e5;
    }

/* 预览框容器 */
.culturewall-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.culturewall-preview-box {
    width: 800px;
    height: auto;
    padding: 15px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

    .culturewall-preview-box img {
        max-width: 100%;
        max-height: calc(100vh - 290px);
        object-fit: contain;
        cursor: pointer;
    }

/* 预览框内Loading */
.culturewall-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

    .culturewall-preview-loading .spin-icon {
        width: 40px;
        height: 40px;
        border: 3px solid #e5e7eb;
        border-top-color: #4f46e5;
        border-radius: 50%;
        animation: cwSpin 0.8s linear infinite;
    }

.culturewall-progress-text {
    color: #6b7280;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 10px;
}

.culturewall-progress-bar-wrap {
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.culturewall-progress-fill {
    width: 0%;
    height: 100%;
    background: #4f46e5;
    border-radius: 3px;
    transition: width 0.3s;
}

/* 下载按钮 */
.culturewall-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}

    .culturewall-download-btn:hover {
        background: #4338ca;
    }

/* 灯箱 */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.image-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    object-fit: contain;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-lightbox-close:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.main-image-card {
    width: 450px !important;
    height: auto !important;
}

.side-images {
    height: 345px !important;
}

@media (min-width: 768px) {
    .upload-area {
        width: 100% !important;
    }
}

.ref-section {
    margin-bottom: 22px;
}

.ref-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.ref-upload-row {
    display: flex;
    gap: 10px;
}

.ref-upload-item {
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .upload-area {
        width: 100% !important;
    }
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .upload-area {
        width: 180px;
        min-width: 180px;
        aspect-ratio: auto;
        height: 140px;
        margin: 0;
    }
}

.upload-area svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 8px;
}

.upload-area p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 本页面引用的 ai-storefront.css 底座样式（合并至此文件后移除引用） */
/* ========== Logo Page Layout ========== */
.logo-page-layout {
    display: flex;
    gap: 28px;
}

/* ========== Design Panel (Left) ========== */
.design-panel {
    width: 480px;
    flex-shrink: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 48px);
    position: sticky;
    top: 24px;
}

.design-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}

    .design-panel-body::-webkit-scrollbar {
        width: 4px;
    }

    .design-panel-body::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }

/* ========== Form Fields ========== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .form-label .required {
        color: #ef4444;
        font-size: 14px;
    }

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-base);
    font-family: inherit;
}

    .form-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .form-input::placeholder {
        color: var(--color-text-muted);
    }

.fix-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-base);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

    .fix-textarea:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .fix-textarea::placeholder {
        color: var(--color-text-muted);
    }

/* ========== Upload Area States ========== */
.upload-area:hover {
    border-color: var(--color-primary);
    background: #faf9ff;
}

.upload-area span {
    color: var(--color-primary);
    font-weight: 500;
}

.upload-area.has-preview {
    padding: 0;
    border-style: solid;
    cursor: default;
    position: relative;
}

    .upload-area.has-preview img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 120px;
        object-fit: contain;
        border-radius: var(--radius-md);
    }

.upload-area .clear-ref {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    z-index: 2;
}

.upload-area.has-preview .clear-ref {
    display: block;
}

/* ========== 示例按钮 ========== */
.example-btn {
    margin-top: 8px;
    padding: 5px 14px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

    .example-btn:hover {
        background: #e4e4e4;
    }

/* ========== Start Design Button ========== */
.start-design-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    font-family: inherit;
    flex-shrink: 0;
}

    .start-design-btn:hover {
        background: var(--color-primary-hover);
        transform: translateY(-1px);
    }

    .start-design-btn:active {
        transform: translateY(0);
    }

    .start-design-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

/* ========== Intro Area (Right) Base ========== */
.intro-header {
    text-align: center;
    margin-bottom: 48px;
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.intro-subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.intro-steps {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 960px;
    align-items: center;
    position: relative;
}

.main-image-card {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

    .main-image-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #f8fafc;
    }

.side-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
    height: 320px;
}

.side-image-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgb(59 57 57 / 46%);
    position: relative;
}

/* ========== Scene Tags ========== */
.scene-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.scene-tag {
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .scene-tag:hover {
        background: #e5e7eb;
        color: #374151;
    }

    .scene-tag.active {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
        font-weight: 600;
    }

/* ========== Mobile Responsive (≤639px) ========== */
@media (max-width: 639px) {
    .design-panel {
        width: 100%;
        padding: 28px 4px;
        max-height: none;
        position: static;
        top: auto;
    }

    .namecard-intro-area {
        display: none;
        padding: 32px 2px;
    }

    .culturewall-preview-box {
        width: 100%;
        padding: 5px;
    }

    .design-panel-body {
        flex: none;
        overflow-y: visible;
        min-height: auto;
    }

    .start-design-btn {
        margin-bottom: calc(56px + env(safe-area-inset-bottom));
    }
}

/* ========== Sub Label (活动信息下的子栏目标题) ========== */
.sub-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ========== Intro Area Centering Fix ========== */
.intro-steps {
    justify-content: center;
}

/* ========== intro-steps 展示图等比缩放（中小分辨率如1440*900下整体等比缩小，左右高度始终一致） ========== */
.namecard-intro-area .intro-steps {
    gap: 2.5%; /* 24 / 960 */
}

.namecard-intro-area .main-image-card {
    width: 46.875% !important; /* 450 / 960 */
    height: auto !important;
    flex-shrink: 0;
    aspect-ratio: 450 / 346;
}

    .namecard-intro-area .main-image-card img {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 0 0;
    }

.namecard-intro-area .side-images {
    flex: 1;
    min-width: 0;
    height: auto !important;
    aspect-ratio: 486 / 346; /* (960 - 450 - 24) / 346，与主图高度保持一致 */
}

/* ========== 拆解图片功能 ========== */
/* 拆解图片按钮（绿色，与下载按钮区分） */
.poster-split-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    margin-left: 12px;
    transition: background 0.2s;
}

    .poster-split-btn:hover {
        background: #059669;
    }

/* 拆解图片全屏Loading遮罩 */
.poster-split-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    .poster-split-overlay .split-spin-icon {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: posterSplitSpin 0.8s linear infinite;
        margin-bottom: 20px;
    }

@keyframes posterSplitSpin {
    to {
        transform: rotate(360deg);
    }
}

.poster-split-text {
    color: #fff;
    font-size: 18px;
}
