:root {
    /* Aviation-themed color palette */
    --sky-blue: #4A90E2;
    --cloud-white: #F8FAFE;
    --horizon-blue: #6BB6FF;
    --aircraft-silver: #C0C8D1;
    --sunset-orange: #FF8C42;
    --deep-blue: #2C5282;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans-serif: 'Helvetica Neue', 'Arial', sans-serif;
    --header-height: 70px;
}

body {
    color: #333;
    font-family: var(--font-sans-serif);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Enhanced aviation-themed sky background with smooth transitions */
    background: 
        /* Multi-layer sky gradient for smooth transitions */
        linear-gradient(180deg, 
            rgba(248, 250, 254, 0.95) 0%,    /* Light cloud white (matches header) */
            rgba(176, 224, 230, 0.8) 15%,    /* Powder blue */
            rgba(135, 206, 235, 0.7) 35%,    /* Sky blue */
            rgba(224, 246, 255, 0.8) 55%,    /* Light blue */
            rgba(255, 248, 220, 0.9) 75%,    /* Cornsilk (horizon) */
            rgba(74, 144, 226, 0.3) 85%,     /* Transition to footer */
            rgba(44, 82, 130, 0.6) 100%      /* Deep blue (matches footer) */
        );
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}

.image-detail-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Aviation-themed paper sheets with cloud-like edges */
.paper-sheet {
    background: linear-gradient(135deg, var(--cloud-white) 0%, #ffffff 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Cloud-like decorative elements */
.paper-sheet::before {
    content: '✈️';
    position: absolute;
    top: -8px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0.6;
    animation: fly 8s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(20px) translateY(0px); }
    75% { transform: translateX(10px) translateY(5px); }
}

.paper-sheet:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
    border-color: var(--sky-blue);
}

/* 图片标题区域 */
.image-header {
    text-align: center;
    margin-bottom: 2rem;
}

.image-id-badge-large {
    background: linear-gradient(135deg, var(--sky-blue), var(--horizon-blue));
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.image-id-badge-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(74, 144, 226, 0.4);
}

.image-title-large {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--deep-blue);
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.image-subtitle {
    color: rgba(44, 82, 130, 0.8);
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.photographer-link {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.photographer-link:hover {
    color: var(--horizon-blue);
    text-decoration: underline;
}

.separator {
    color: rgba(74, 144, 226, 0.5);
    font-weight: bold;
}

/* 图片展示区域 */
.image-display {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.image-display img {
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
}

.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-like {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-like.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, var(--sky-blue), var(--horizon-blue));
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* 举报按钮 */
.btn-report {
    background: linear-gradient(135deg, #6c757d, #5c636a);
    color: #fff;
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.35);
}

/* 统计信息 */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(44, 82, 130, 0.8);
    font-size: 1.1rem;
    padding: 10px 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.stat-item i {
    color: var(--sky-blue);
    font-size: 1.2rem;
}

/* 详细信息区域 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.08);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--deep-blue);
    text-align: center;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
    padding-bottom: 0.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--deep-blue);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label i {
    color: var(--sky-blue);
    width: 16px;
}

.info-value {
    color: #333;
    flex: 1;
}

.info-link {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 500;
}

.info-link:hover {
    color: var(--horizon-blue);
    text-decoration: underline;
}

/* 类型标签 */
.type-tag {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    color: var(--deep-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 2px 4px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.2s ease;
}

.type-tag:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
}

/* 登录提示 */
.login-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.login-notice a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-notice a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-detail-container {
        padding: 1rem;
    }

    .paper-sheet {
        padding: 1.5rem;
    }

    .image-title-large {
        font-size: 2rem;
    }

    .image-subtitle {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    /*width: 100%;*/
    .action-btn {
        max-width: 300px;
        justify-content: center;
    }

    .stats-row {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .stat-item {
        font-size: 0.8rem;
        padding: 6px 12px;
        gap: 5px;
    }

    .stat-item i {
        font-size: 0.9rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-list li {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .info-label {
        min-width: auto;
        flex-shrink: 0;
    }

    .info-value {
        text-align: right;
        word-break: break-all;
    }
}

/* 错误提示 */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #721c24;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.operation-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.operation-title {
    font-size: 1.2rem;
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 分享链接区域样式 */
.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.share-button-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(176, 224, 230, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.share-button-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(176, 224, 230, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
}

.share-button-label {
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.share-button-label i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: var(--sky-blue);
}

.share-link-display {
    background: white;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--deep-blue);
    word-break: break-all;
    text-align: center;
    line-height: 1.4;
    box-shadow: inset 0 2px 4px rgba(74, 144, 226, 0.05);
    cursor: pointer;
    user-select: all;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.share-link-display:hover {
    background: rgba(248, 250, 254, 1);
    border-color: var(--sky-blue);
}

.share-btn {
    background: linear-gradient(135deg, var(--sky-blue), var(--horizon-blue));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.btn-outline-primary {
    background: transparent;
    color: var(--sky-blue);
    border: 2px solid var(--sky-blue);
}

.btn-outline-success {
    background: transparent;
    color: #28a745;
    border: 2px solid #28a745;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: none !important;
}

/* 举报弹窗样式 */
.report-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.report-modal.show { display: flex; }
.report-dialog {
    width: 92%;
    max-width: 560px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    overflow: hidden;
}
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.report-header h3 { margin: 0; font-size: 18px; }
.report-close { background: none; border: 0; font-size: 18px; cursor: pointer; color: #666; }
.report-body { padding: 16px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; margin-bottom: 6px; color: #444; font-weight: 600; }
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: #f1f3f5; border-radius: 999px; padding: 6px 10px; font-size: 13px; color: #495057; cursor: pointer; }
.tag-pill input { margin-right: 6px; }
.form-textarea { width: 100%; min-height: 96px; padding: 10px; border: 1px solid #ddd; border-radius: 6px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.btn-cancel { background: #f1f3f5; border: 1px solid #dee2e6; color: #495057; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.btn-submit { background: #0d6efd; border: 1px solid #0b5ed7; color: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

@media (max-width: 576px) {
    .report-dialog { width: 96%; max-width: 96%; border-radius: 8px; }
    .report-header h3 { font-size: 16px; }
    .form-textarea { min-height: 84px; }
}

/* Toast 提示样式 */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, var(--deep-blue), var(--sky-blue));
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.share-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}