/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 主要内容区域 */
.main-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

/* 卡片容器 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 毛玻璃效果卡片 */
.card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.glass-effect:hover {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 10px;
}

.card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* B站主页样式 */
.bilibili-container {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.bilibili-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fb7299, #ffb6c1);
    margin-right: 20px;
}

.info h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 5px;
}

.info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.video-item {
    text-align: center;
}

.thumbnail {
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

.video-item p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* 警告样式 */
.warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.warning p {
    color: rgba(255,255,255,0.9);
}

/* 页脚样式 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.social-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav li {
        margin: 5px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .bilibili-info {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 15px;
    }
}