/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 主容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h1 i {
    color: #e53e3e;
    margin-right: 15px;
}

.header p {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 500;
}

/* 公告区域 */
.announcement {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-left: 5px solid #f56565;
}

.announcement h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement h2 i {
    color: #f56565;
    font-size: 1.5rem;
}

.message p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.message p:last-child {
    margin-bottom: 0;
}

.message a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.message a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* 友情链接区域 */
.links-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.links-section h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.links-section h2 i {
    color: #4299e1;
    font-size: 1.5rem;
}

/* 链接网格 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* 链接卡片 */
.link-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.link-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.link-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.link-url {
    color: #4299e1;
    font-size: 0.85rem;
    word-break: break-all;
    position: relative;
    z-index: 1;
    padding: 8px 12px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link-url:hover {
    background: rgba(66, 153, 225, 0.2);
}

/* 页脚 */
.footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer p {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .announcement {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .announcement h2 {
        font-size: 1.5rem;
    }
    
    .message p {
        font-size: 1rem;
    }
    
    .links-section {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .links-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .link-card {
        padding: 20px;
    }
    
    .footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .announcement {
        padding: 20px;
        border-radius: 15px;
    }
    
    .announcement h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .message p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .links-section {
        padding: 20px;
        border-radius: 15px;
    }
    
    .links-section h2 {
        font-size: 1.3rem;
    }
    
    .link-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .link-title {
        font-size: 1.1rem;
    }
    
    .link-description {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 15px;
        border-radius: 15px;
    }
}