﻿/* 渐变公告标题 */
.announcement-item .announcement-title {
    /* 彩虹渐变效果 */
    background: linear-gradient(90deg, #f320e1 0%, /* 红色 */ #00ffdc 20%, /* 橙色 */ #FFFF00 40%, /* 黄色 */ #00FF00 60%, /* 绿色 */ #bc0cf5 80%, /* 蓝色 */ #07f350 100% /* 紫色 */);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
    background-size: 200% auto;
    animation: rainbowMove 3s linear infinite;
}

/* 彩虹流动动画 */
@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 或者使用更柔和的蓝色渐变 */
.announcement-item .announcement-title.blue-gradient {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
}

/* 金色渐变效果 */
.announcement-item .announcement-title.gold-gradient {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
    background-size: 200% auto;
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 悬停效果 */
.announcement-item:hover .announcement-title {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 公告项整体样式 */
.announcement-item {
    cursor: pointer;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.announcement-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}
/* 公告项整体样式 */
.announcement-item {
    cursor: pointer;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

/* 公告标题和日期的容器 */
.announcement-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 公告标题样式 */
.announcement-title {
    font-weight: bold;
    /* 可选：保留渐变效果，如果需要的话 */
    /* background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* color: transparent; */
    flex: 1;
    padding-right: 15px;
}

/* 日期样式 */
.announcement-date {
    color: #b0b0b0;
    font-size: 14px;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* 彩虹渐变效果 - 如果还需要的话 */
.announcement-item .announcement-title.rainbow {
    background: linear-gradient(90deg, 
        #FF0000 0%,    /* 红色 */
        #FF7F00 20%,   /* 橙色 */
        #FFFF00 40%,   /* 黄色 */
        #00FF00 60%,   /* 绿色 */
        #0000FF 80%,   /* 蓝色 */
        #8B00FF 100%   /* 紫色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: rainbowMove 3s linear infinite;
}

/* 蓝色渐变 */
.announcement-item .announcement-title.blue-gradient {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 金色渐变 */
.announcement-item .announcement-title.gold-gradient {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: goldShine 2s ease-in-out infinite;
}

/* 悬停效果 */
.announcement-item:hover .announcement-title {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 动画关键帧 */
@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .announcement-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .announcement-title {
        padding-right: 0;
        margin-bottom: 5px;
    }
    
    .announcement-date {
        text-align: left;
        min-width: auto;
        font-size: 13px;
    }
}
/* 头部导航渐变效果 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff5e00, #ffbb00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 导航链接渐变效果 */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 渐变背景色 */
nav ul li a {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    background-size: 200% 200%;
    animation: gradientBG 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 不同导航项使用不同的渐变 */
nav ul li:nth-child(1) a {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    background-size: 200% 200%;
}

nav ul li:nth-child(2) a {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    background-size: 200% 200%;
}

nav ul li:nth-child(3) a {
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    background-size: 200% 200%;
}

nav ul li:nth-child(4) a {
    background: linear-gradient(45deg, #f46b45, #eea849);
    background-size: 200% 200%;
}

nav ul li:nth-child(5) a {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-size: 200% 200%;
}

nav ul li:nth-child(6) a {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    background-size: 200% 200%;
}

nav ul li:nth-child(7) a {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    background-size: 200% 200%;
}

nav ul li:nth-child(8) a {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    background-size: 200% 200%;
}

/* 鼠标悬停效果 */
nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

nav ul li a:hover::before {
    transform: translateX(0);
}

nav ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 活动状态 */
nav ul li a.active {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 渐变动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 13px;
    }
}
/* 侧边栏渐变样式 */
.sidebar {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1721 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(78, 204, 163, 0.3);
    position: relative;
    overflow: hidden;
}

/* 侧边栏标题样式 */
.section-title {
    background: linear-gradient(90deg, #4ecca3 0%, #0f3460 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(78, 204, 163, 0.3);
    font-size: 22px;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4ecca3 0%, #0f3460 100%);
    border-radius: 2px;
}

/* 游戏卡片渐变样式 */
.game-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(26, 42, 58, 0.9) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(78, 204, 163, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 204, 163, 0.1), transparent);
    transition: left 0.6s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(78, 204, 163, 0.4);
}

/* 游戏图片区域样式 */
.game-img {
    background: linear-gradient(135deg, #0f3460 0%, #1a2a3a 100%);
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(78, 204, 163, 0.3);
    position: relative;
    overflow: hidden;
}

.game-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(78, 204, 163, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 侧边栏游戏按钮样式 */
.sidebar-games {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.sidebar-game-btn {
    background: linear-gradient(135deg, #4ecca3 0%, #0f3460 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: calc(50% - 12px);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sidebar-game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f3460 0%, #4ecca3 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-game-btn:hover::before {
    opacity: 1;
}

.sidebar-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 204, 163, 0.3);
}

.sidebar-game-btn:active {
    transform: translateY(-1px);
}

/* 播放按钮样式 */
.play-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e94560 0%, #f9b234 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f9b234 0%, #e94560 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn:hover::before {
    opacity: 1;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

.play-btn:active {
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 30px;
    }
    
    .sidebar-game-btn {
        min-width: 100%;
    }
    
    .game-info {
        text-align: center;
    }
    
    .play-btn {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* 添加一些发光效果增强视觉 */
.sidebar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #4ecca3 0%, 
        transparent 20%, 
        transparent 80%, 
        #0f3460 100%);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(5px);
}

/* 游戏信息区域 - 按钮容器 */
.game-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 按钮之间的间距 */
    width: 100%;
}






/* 移除HTML中的&nbsp; */
.game-info a.play-btn {
    flex: 1; /* 让两个按钮平均分配空间 */
    text-align: center;
    margin: 0 !important; /* 移除所有外边距 */
    padding: 12px 5px; /* 调整内边距 */
    min-width: auto; /* 移除最小宽度限制 */
    white-space: nowrap; /* 防止文字换行 */
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

/* 下载中心按钮样式 */
.game-card[data-game="star-conqueror"] .play-btn {
    background: linear-gradient(135deg, #4ecca3 0%, #0f3460 100%);
    color: white;
    border: 1px solid rgba(78, 204, 163, 0.3);
}

/* 游戏攻略按钮样式 */
.game-card[data-game="shadow-assassin"] .play-btn {
    background: linear-gradient(135deg, #e94560 0%, #f9b234 100%);
    color: white;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

/* 普通装备按钮特殊样式 */
.game-card[data-game="shadow-assassin"] .play-btn[data-game="shadow-assassin"] {
    background: linear-gradient(135deg, #4ecca3 0%, #0f3460 100%);
    border: 1px solid rgba(78, 204, 163, 0.3);
}

/* 顶级装备按钮特殊样式 */
.game-card[data-game="shadow-assassin"] .play-btn[data-game="shadow-assassin"] {
    background: linear-gradient(135deg, #e94560 0%, #f9b234 100%);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

/* 按钮悬停效果 */
.game-info a.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* 游戏卡片内容优化 */
.game-card {
    padding: 15px; /* 调整内边距，给按钮更多空间 */
}

.game-img {
    height: 50px; /* 稍微调小图片区域高度 */
    margin-bottom: 15px;
    font-size: 16px; /* 稍微调小字体 */
}

/* 对于文字较长的按钮，进一步优化 */
.game-card[data-game="shadow-assassin"] .play-btn {
    font-size: 13px;
    padding: 10px 3px; /* 更紧凑的内边距 */
    letter-spacing: -0.5px; /* 稍微收紧字间距 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .game-info a.play-btn {
        font-size: 13px;
        padding: 10px 3px;
    }
    
    .game-card[data-game="shadow-assassin"] .play-btn {
        font-size: 12px;
        padding: 10px 2px;
    }
}

@media (max-width: 992px) {
    .game-info {
        gap: 8px;
    }
    
    .game-info a.play-btn {
        font-size: 12px;
        padding: 8px 2px;
    }
    
    .game-card[data-game="shadow-assassin"] .play-btn {
        font-size: 11px;
        padding: 8px 1px;
    }
}

/* 极端小屏优化 */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-info a.play-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .game-card[data-game="shadow-assassin"] .play-btn {
        font-size: 14px;
        padding: 12px;
    }
}

/* 如果还是显示不全，可以使用更小的字体 */
@media (max-width: 1400px) and (min-width: 992px) {
    .game-card[data-game="shadow-assassin"] .play-btn {
        font-size: 12px;
        padding: 10px 2px;
    }
}