/* 恋爱清单样式 */

/* 进度条 */
.progress-bar-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ff0fc, #bc13fe, #ff6b9d);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(15, 240, 252, 0.5);
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 清单容器 */
.checklist-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 分区 */
.checklist-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(188, 19, 254, 0.2);
}

.section-icon {
    font-size: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Noto Serif SC', serif;
}

.section-count {
    font-size: 13px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

/* 清单项 */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 182, 193, 0.15);
    border-color: rgba(255, 182, 193, 0.2);
}

/* 已完成样式 */
.checklist-item.completed {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 240, 245, 0.95) 100%);
}

.checklist-item.completed:hover {
    box-shadow: 0 4px 20px rgba(15, 240, 252, 0.15);
}

/* 待完成样式 */
.checklist-item.pending {
    background: rgba(250, 250, 250, 0.95);
}

.checklist-item.pending .check-title {
    color: #333;
}

/* 特殊项（最后一项） */
.checklist-item.special {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.15) 0%, 
        rgba(188, 19, 254, 0.1) 50%, 
        rgba(15, 240, 252, 0.1) 100%);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.checklist-item.special .check-title {
    color: #E91E63;
    font-weight: 600;
}

/* 状态区域 */
.check-status {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.checklist-item.completed .check-status {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.checklist-item.pending .check-status {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.checklist-item.special .check-status {
    background: linear-gradient(135deg, #E91E63, #F48FB1);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.status-icon {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.checklist-item.pending .status-icon {
    color: #fff;
}

/* 内容区域 */
.check-content {
    flex: 1;
    min-width: 0;
}

.check-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.check-status-text {
    font-size: 12px;
    color: #bbb;
    margin-top: 2px;
}

/* 操作区域 */
.check-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.check-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.image-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.image-icon.has-image {
    background: linear-gradient(135deg, rgba(15, 240, 252, 0.15), rgba(188, 19, 254, 0.15));
    color: #bc13fe;
}

.image-icon.has-image:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(188, 19, 254, 0.3);
}

.image-icon.no-image {
    background: rgba(0, 0, 0, 0.04);
    color: #999;
    cursor: default;
}

.pending-badge {
    font-size: 11px;
    color: #999;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pending-badge.special {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(188, 19, 254, 0.2));
    color: #E91E63;
    border-color: rgba(255, 182, 193, 0.4);
}

/* 图片预览弹窗 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.preview-card {
    position: relative;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.preview-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

.preview-content {
    display: flex;
    flex-direction: column;
}

.preview-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f8f8f8;
}

.preview-title {
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .checklist-container {
        padding: 0 12px;
    }

    .checklist-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .check-thumb {
        width: 50px;
        height: 50px;
    }

    .check-title {
        font-size: 14px;
    }

    .check-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .progress-bar-container {
        padding: 0 12px;
    }

    .preview-card {
        max-width: 95vw;
        padding: 12px;
    }
}

/* 统计项样式增强 */
.banner-stats .stat-item.completed .stat-number {
    color: #4CAF50;
}

.banner-stats .stat-item.pending .stat-number {
    color: #FF9800;
}

.banner-stats .stat-item.progress .stat-number {
    background: linear-gradient(135deg, #0ff0fc, #bc13fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
