/* 侧边栏优化样式 - 添加到common.css末尾 */

/* 侧边栏头部优化 */
.sidebar-header {
    position: relative;
    margin-bottom: 5px;
}

.sidebar-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.sidebar-image-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-image-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 更新公告突出显示 */
.update-highlight {
    margin: 20px 0;
}

.update-announcement {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.1), rgba(255, 183, 77, 0.05));
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.update-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ff9800);
}

.update-announcement:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 183, 77, 0.2);
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.15), rgba(255, 183, 77, 0.1));
}

.update-badge {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.update-badge i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.update-badge span {
    font-size: 0.7rem;
    font-weight: bold;
}

.update-content {
    flex: 1;
}

.update-content h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.update-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.update-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* 部分头部样式优化 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* 下载链接优化 */
.download-main {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
    border-color: var(--success-color);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--success-color), #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.download-text {
    flex: 1;
}

.download-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.download-text span {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.download-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 职业链接优化 */

/* 职业链接优化 - 增强悬停文字颜色 */
.grid-link.warrior:hover { 
    border-color: #d32f2f; 
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f; /* 新增：深红色文字，在浅红背景上更清晰 */
}
.grid-link.mage:hover { 
    border-color: #2196f3; 
    background: rgba(33, 150, 243, 0.1);
    color: #0d47a1; /* 新增：深蓝色文字 */
}
.grid-link.dark-knight:hover { 
    border-color: #9c27b0; 
    background: rgba(156, 39, 176, 0.1);
    color: #6a1b9a; /* 新增：深紫色文字 */
}
.grid-link.archer:hover { 
    border-color: #4caf50; 
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32; /* 新增：深绿色文字 */
}
.grid-link.dream-knight:hover { 
    border-color: #ff9800; 
    background: rgba(255, 152, 0, 0.1);
    color: #e65100; /* 新增：深橙色文字 */
}
.grid-link.summoner:hover { 
    border-color: #795548; 
    background: rgba(121, 85, 72, 0.1);
    color: #4e342e; /* 新增：深棕色文字 */
}
.grid-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.grid-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 15px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.grid-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.grid-link i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* 职业特定颜色 */
.grid-link.warrior:hover { border-color: #d32f2f; background: rgba(211, 47, 47, 0.05); }
.grid-link.mage:hover { border-color: #2196f3; background: rgba(33, 150, 243, 0.05); }
.grid-link.dark-knight:hover { border-color: #9c27b0; background: rgba(156, 39, 176, 0.05); }
.grid-link.archer:hover { border-color: #4caf50; background: rgba(76, 175, 80, 0.05); }
.grid-link.dream-knight:hover { border-color: #ff9800; background: rgba(255, 152, 0, 0.05); }
.grid-link.summoner:hover { border-color: #795548; background: rgba(121, 85, 72, 0.05); }

/* 系统卡片优化 */
.system-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.system-card {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.system-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.system-content h4 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.system-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

/* 系统卡片特定颜色 */
.system-card.synthesis:hover { border-color: #9c27b0; background: rgba(156, 39, 176, 0.05); }
.system-card.commands:hover { border-color: #2196f3; background: rgba(33, 150, 243, 0.05); }
.system-card.combo:hover { border-color: #ff9800; background: rgba(255, 152, 0, 0.05); }
.system-card.events:hover { border-color: #4caf50; background: rgba(76, 175, 80, 0.05); }
.system-card.gems:hover { border-color: #9c27b0; background: rgba(156, 39, 176, 0.05); }
.system-card.boss:hover { border-color: #f44336; background: rgba(244, 67, 54, 0.05); }

/* 服务器状态优化 */
.server-status {
    margin-top: 10px;
}

.status-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.status-info h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.status-time {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.status-count {
    text-align: center;
    margin-bottom: 15px;
}

.count-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.count-label {
    color: #666;
    font-size: 0.9rem;
}

.status-graph {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.graph-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 75%;
    animation: graphLoad 1.5s ease-out;
}

@keyframes graphLoad {
    from { width: 0; }
    to { width: 75%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grid-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .system-cards {
        grid-template-columns: 1fr;
    }
    
    .sidebar-image-overlay h3 {
        font-size: 1.2rem;
    }
    
    .update-badge {
        width: 45px;
        height: 45px;
    }
    
    .download-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .count-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-icon {
        align-self: flex-end;
    }
}