/* update-styles.css - 更新日志页面样式 */
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, rgba(255, 225, 230, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.update-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    color: #ff1493;
    margin: 0 0 60px 0;
    padding: 0;
    letter-spacing: 0.5px;
}

.loading {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    margin: 40px 0;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 182, 193, 0.3);
    border-radius: 50%;
    border-top-color: #ff69b4;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #ff69b4;
    font-size: 16px;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    color: #999;
    margin: 40px 0;
    border: 2px dashed rgba(255, 182, 193, 0.3);
}

.empty-state i {
    font-size: 64px;
    color: #ffb6c1;
    margin-bottom: 30px;
    opacity: 0.6;
}

.empty-state p {
    margin: 15px 0;
    font-size: 18px;
}

/* PC端专属样式 */
@media (min-width: 769px) {
    .timeline {
        position: relative;
        padding: 0;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, 
            rgba(255, 105, 180, 0.2) 0%, 
            rgba(255, 105, 180, 0.6) 50%, 
            rgba(255, 105, 180, 0.2) 100%);
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .date-group {
        position: relative;
        margin-bottom: 80px;
        min-height: 150px;
    }
    
    .date-group:last-child {
        margin-bottom: 0;
    }
    
    .timeline-dot {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 20px;
        height: 20px;
        background: #ff1493;
        border-radius: 50%;
        border: 4px solid white;
        box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.4);
        transform: translate(-50%, -50%);
        z-index: 3;
    }
    
    .date-time {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: 600;
        color: #ff1493;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
        border: 1px solid rgba(255, 182, 193, 0.3);
        white-space: nowrap;
        z-index: 2;
        text-align: center;
    }
    
    .card-left + .timeline-dot + .date-time {
        left: calc(50% + 40px);
    }
    
    .card-right + .timeline-dot + .date-time {
        right: calc(50% + 40px);
    }
    
    .card-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
    }
    
    .card-left {
        left: 0;
    }
    
    .card-right {
        right: 0;
    }
    
    .pc-card {
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 16px !important;
        padding: 25px 30px;
        box-shadow: 
            0 8px 32px rgba(255, 105, 180, 0.25),
            0 2px 8px rgba(255, 105, 180, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(255, 105, 180, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.4);
        position: relative;
        max-height: 300px;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .pc-card:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 16px 48px rgba(255, 105, 180, 0.35),
            0 4px 16px rgba(255, 105, 180, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            inset 0 -1px 0 rgba(255, 105, 180, 0.15);
    }
    
    .pc-card::-webkit-scrollbar {
        width: 6px;
    }
    
    .pc-card::-webkit-scrollbar-track {
        background: rgba(255, 240, 245, 0.8);
        border-radius: 3px;
    }
    
    .pc-card::-webkit-scrollbar-thumb {
        background: rgba(255, 105, 180, 0.5);
        border-radius: 3px;
    }
    
    .card-left .pc-card::before {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid rgba(255, 255, 255, 0.7);
        transform: translateY(-50%);
    }
    
    .card-left .pc-card::after {
        content: '';
        position: absolute;
        right: -11px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid rgba(255, 182, 193, 0.3);
        transform: translateY(-50%);
        z-index: -1;
    }
    
    .card-right .pc-card::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid rgba(255, 255, 255, 0.7);
        transform: translateY(-50%);
    }
    
    .card-right .pc-card::after {
        content: '';
        position: absolute;
        left: -11px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid rgba(255, 182, 193, 0.3);
        transform: translateY(-50%);
        z-index: -1;
    }
    
    .api-subtitle {
        font-size: 20px;
        font-weight: 600;
        color: #ff1493;
        margin: 0 0 15px 0;
        padding: 0 0 8px 0;
        border-bottom: 2px solid rgba(255, 105, 180, 0.2);
    }
    
    .api-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .api-item {
        position: relative;
        padding: 6px 0 6px 24px;
        margin-bottom: 6px;
        font-size: 16px;
    }
    
    .api-item::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        color: #ff1493;
        font-size: 22px;
        line-height: 1.2;
    }
    
    .api-name {
        font-weight: 500;
        color: #333;
    }
    
    .empty-card {
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 16px !important;
        padding: 25px 30px;
        box-shadow: 
            0 8px 32px rgba(255, 105, 180, 0.25),
            0 2px 8px rgba(255, 105, 180, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(255, 105, 180, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.4);
        text-align: center;
        color: #ff69b4;
        font-style: italic;
        font-size: 16px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .empty-card:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 16px 48px rgba(255, 105, 180, 0.35),
            0 4px 16px rgba(255, 105, 180, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            inset 0 -1px 0 rgba(255, 105, 180, 0.15);
    }
}

/* 移动端专属样式 */
@media (max-width: 768px) {
    .update-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .timeline {
        position: relative;
        padding-left: 30px;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, 
            rgba(255, 105, 180, 0.2) 0%, 
            rgba(255, 105, 180, 0.4) 50%, 
            rgba(255, 105, 180, 0.2) 100%);
        z-index: 1;
    }
    
    .date-group {
        position: relative;
        margin-bottom: 50px;
        min-height: 120px;
    }
    
    .timeline-dot {
        position: absolute;
        left: 15px;
        top: 50%;
        width: 16px;
        height: 16px;
        background: #ff1493;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
        transform: translate(-50%, -50%);
        z-index: 3;
    }
    
    .card-container {
        width: 100%;
        position: relative;
        padding-left: 40px;
    }
    
    .pc-card {
        background: rgba(255, 255, 255, 0.75) !important;
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border-radius: 12px !important;
        padding: 20px 20px 50px 20px;
        box-shadow: 
            0 5px 20px rgba(255, 105, 180, 0.2),
            0 2px 6px rgba(255, 105, 180, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(255, 105, 180, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
    }
    
    .date-time {
        position: absolute;
        bottom: 15px;
        right: 15px;
        font-size: 14px;
        font-weight: 600;
        color: #ff1493;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
        border: 1px solid rgba(255, 182, 193, 0.25);
        z-index: 2;
    }
    
    .pc-card::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid rgba(255, 255, 255, 0.75);
        transform: translateY(-50%);
    }
    
    .pc-card::after {
        content: '';
        position: absolute;
        left: -9px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid rgba(255, 182, 193, 0.3);
        transform: translateY(-50%);
        z-index: -1;
    }
    
    .api-subtitle {
        font-size: 18px;
        font-weight: 600;
        color: #ff1493;
        margin: 0 0 12px 0;
        padding: 0 0 6px 0;
        border-bottom: 2px solid rgba(255, 105, 180, 0.2);
    }
    
    .api-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .api-item {
        position: relative;
        padding: 5px 0 5px 22px;
        margin-bottom: 5px;
        font-size: 15px;
    }
    
    .api-item::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        color: #ff1493;
        font-size: 20px;
        line-height: 1.2;
    }
    
    .api-name {
        font-weight: 500;
        color: #333;
    }
    
    .empty-card {
        background: rgba(255, 255, 255, 0.75) !important;
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border-radius: 12px !important;
        padding: 20px 20px 50px 20px;
        box-shadow: 
            0 5px 20px rgba(255, 105, 180, 0.2),
            0 2px 6px rgba(255, 105, 180, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(255, 105, 180, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center;
        color: #ff69b4;
        font-style: italic;
        font-size: 15px;
        position: relative;
    }
    
    .loading, .empty-state {
        padding: 60px 15px;
        margin: 20px 0;
    }
}

/* 小屏移动端 */
@media (max-width: 480px) {
    .update-container {
        padding: 15px 12px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-dot {
        left: 12px;
        width: 14px;
        height: 14px;
        border: 2px solid white;
        transform: translate(-50%, -50%);
    }
    
    .card-container {
        padding-left: 35px;
    }
    
    .date-time {
        font-size: 13px;
        padding: 5px 10px;
        bottom: 12px;
        right: 12px;
    }
    
    .pc-card {
        padding: 16px 16px 45px 16px;
        border-radius: 10px !important;
    }
    
    .pc-card::before {
        left: -7px;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid rgba(255, 255, 255, 0.75);
    }
    
    .pc-card::after {
        left: -8px;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid rgba(255, 182, 193, 0.3);
    }
    
    .api-subtitle {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .api-item {
        font-size: 14px;
        padding-left: 20px;
    }
    
    .api-item::before {
        font-size: 18px;
    }
}