/* 彩色图库专用样式 */
.caitu-container {
    background: #f0f0f0;
    min-height: 100vh;
    padding-bottom: 3.5rem;
    max-width: 480px;
    margin: 0 auto;
}

/* 顶部标题栏 */
.caitu-header {
    background: linear-gradient(135deg, #e60012 0%, #c4000d 50%, #a0000a 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
}

.caitu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 20%, #ffed4e 50%, #ffd700 80%, transparent 100%);
}

.caitu-header-title {
    font-size: clamp(1.125rem, 5vw, 1.375rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 图库网格 - 两列瀑布流 */
.caitu-grid {
    column-count: 2;
    column-gap: 0.5rem;
    padding: 0.5rem;
}

/* 图库卡片 */
.caitu-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

/* 图片区域 */
.caitu-image-wrap {
    width: 100%;
    background: #f0f0f0;
    display: block;
}

.caitu-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* 图片描述文字（可选） */
.caitu-desc {
    padding: 0.5rem;
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    color: #666;
    text-align: center;
    background: #fff;
    margin: 0;
}

/* 底部固定返回导航 */
.caitu-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #333;
    z-index: 100;
}

.caitu-bottom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.875rem;
    width: 100%;
    font-size: clamp(0.9375rem, 3.5vw, 1rem);
    text-decoration: none;
    font-weight: 500;
    background: #e60012;
    color: #fff;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.caitu-bottom-btn:hover {
    background: #c4000d;
}

/* 图片点击放大遮罩层 */
.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 1rem;
}

.img-overlay img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

/* 加载提示 */
.caitu-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.875rem;
    grid-column: span 2;
}

/* 图片占位区域 - 图纸印刷中 */
.caitu-placeholder {
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    padding: 1rem;
    text-align: center;
}

.caitu-placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.caitu-placeholder-text {
    color: #6c757d;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    line-height: 1.6;
}

.caitu-placeholder-brand {
    color: #e60012;
    font-weight: bold;
    margin-top: 0.25rem;
}
