body {
    margin: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: #1a1a1a url('bg-pattern.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
}

/* 将首页 main_logo.png 固定到左上角（贴近导航栏） */
#nav-main {
    position: relative;
    z-index: 1000;
}

main#home .con .logo {
    position: fixed;
    top: 80px;
    left: 60px;
    z-index: 1100;
    margin: 0;
}

main#home .con .logo img {
    width: auto;
    max-width: 220px;
    height: auto;
    display: block;
}

/* 确保 main_title.png 保持居中（覆盖 app.css 里的布局影响） */
main#home .con .title {
    width: 100%;
}

main#home .con .title > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* main_title 两侧角色图：已移除 */

/* 主容器 */
.container-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* 游戏LOGO样式 */
.game-logo {
    display: block;
    width: 80%;
    max-width: 580px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 12px rgba(255,165,0,0.3));
}

/* 公告卡片容器 */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* 单个公告卡片 */
.announcement-card {
    background: linear-gradient(145deg, rgba(25,25,25,0.9), rgba(40,40,40,0.9));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,165,0,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* 标题装饰线 */
.announcement-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
}

/* 标题样式 */
.announcement-title {
    color: #ffa500;
    font-size: 1.4rem;
    margin: 0 0 1.2rem;
    position: relative;
    padding-left: 30px;
}

.announcement-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b00;
    font-size: 1.2rem;
}

/* 内容文本 */
.announcement-content {
    font-size: 0.95rem;
    color: #c0c0c0;
    line-height: 1.8;
    margin: 1rem 0;
}

/* 动态按钮 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff8c00 30%, #ff6b00 70%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 25%,
        rgba(255,255,255,0.1) 50%,
        transparent 75%);
    transform: rotate(45deg);
    animation: btnShine 3s infinite linear;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.action-btn:hover {
    background: linear-gradient(135deg, #ff6b00 30%, #ff4500 70%);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-wrapper {
        padding: 1rem;
    }
    
    .announcement-card {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.2rem;
    }
}
/* 基础重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 可访问性优化 */
.announcement-grid:focus { outline: 2px solid #4a90e2; }

/* 响应式布局 */
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* 卡片交互反馈 */
.announcement-card {
  transition: transform 0.3s ease;
}
.announcement-card:hover {
  transform: translateY(-5px);
}
