/* Update Log Stylesheet - Version 1.0.3 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e8ecf0;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 30px 20px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 35px;
}

header h1 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    max-width: 400px;
    margin: 0 auto 15px;
}

.search-bar form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-bar form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 12px 16px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.clear-search {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.clear-search:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.search-result {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

.search-result span {
    color: var(--primary-color);
    font-weight: 500;
}

header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-item {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

.update-title {
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.update-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.update-time {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    padding-left: 38px;
    display: flex;
    align-items: center;
}

.update-time::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-right: 8px;
}

.update-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 16px;
    padding-left: 38px;
}

.update-content p {
    margin: 0 0 12px 0;
}

.update-content p:last-child {
    margin-bottom: 0;
}

.update-content img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 6px 0;
    cursor: zoom-in;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: opacity 0.3s ease;
}

.update-content img.lazy-img {
    opacity: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 100px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.update-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.update-content em {
    color: var(--text-secondary);
    font-style: italic;
}

.update-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.update-content a:hover {
    border-bottom-color: var(--primary-color);
}

.update-content mark,
.update-title mark {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #1f2937;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.empty {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    border: 1px dashed var(--border-color);
}

.empty::before {
    content: '📝';
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.modal-close {
    position: fixed;
    top: 24px;
    right: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    left: auto;
    margin-left: auto;
    width: 64px;
    height: 64px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.back-to-top:hover {
    background: #374151;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    transform: translateY(-5px) scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination a.disabled:hover {
    background: white;
    border-color: var(--border-color);
    color: var(--text-primary);
}

@media (max-width: 640px) {
    body {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 26px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .update-item {
        padding: 18px;
    }
    
    .update-title {
        font-size: 17px;
    }
    
    .update-content {
        font-size: 15px;
        padding-left: 0;
    }
    
    .update-time {
        padding-left: 0;
    }
    
    .update-number {
        display: none;
    }
    
    .back-to-top {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}