﻿.namecard-intro-area {
    justify-content: center !important;
    overflow: hidden;
    padding-top: 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 {
    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);
}

/* 移动端H5版 */
@media (max-width: 639px) {
    .namecard-intro-area {
        padding: 48px 2px;
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 80px;
    }

    .culturewall-preview-box {
        width: 100%;
        padding: 5px;
        height: 300px;
    }

        .culturewall-preview-box img {
            max-height: 100vh;
        }
}

/* ========== intro-steps 展示图等比缩放（中小分辨率如1440*900下整体等比缩小，左右高度始终一致） ==========
   作用于所有引用本文件的页面；选择器带 .namecard-intro-area 前缀，优先级高于 ai-pavilion.css 等后置固定像素规则 */
.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，与主图高度保持一致 */
}

/* 示例按钮 */
.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;
}
