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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 粒子背景画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header .logo span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header .time {
    font-size: 14px;
    color: #666;
    font-family: 'Courier New', monospace;
}

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

/* 头部区域 */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.hero .slogan {
    font-size: 14px;
    color: #888;
}

/* 站点公告 */
.notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice .icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notice .title {
    font-size: 13px;
    color: #d68910;
    font-weight: 600;
    margin-bottom: 2px;
}

.notice .content {
    font-size: 13px;
    color: #7d6608;
    flex: 1;
}

/* 模块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.section-title .icon {
    font-size: 18px;
}

/* 常用网站 */
.nav-section {
    margin-bottom: 30px;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 关于我 */
.about-section {
    margin-bottom: 30px;
}

.about-card {
    background: linear-gradient(135deg, #0077ff 0%, #00a8ff 50%, #00d4ff 100%);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.about-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-header .info .name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.about-header .info .profession {
    font-size: 13px;
    opacity: 0.9;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.about-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.about-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.about-field {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 15px;
    color: #333;
}

.about-field .label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.about-field .value {
    font-size: 14px;
    font-weight: 500;
}

/* 联系我 */
.contact-section {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* 友情链接 */
.friends-section {
    margin-bottom: 30px;
}

.friend-links {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.friend-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-link {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.friend-link:hover {
    background: #0077ff;
    color: #fff;
}

/* 底部 */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: #0077ff;
}

.runtime {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.copyright {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 10px;
}

.icp {
    font-size: 12px;
    color: #ccc;
}

.icp a {
    color: #ccc;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 600px) {
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .about-fields {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .container {
        padding: 70px 15px 30px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .notice, .nav-section, .about-section, .contact-section, .friends-section, .footer {
    animation: fadeInUp 0.6s ease forwards;
}

.notice { animation-delay: 0.1s; }
.nav-section { animation-delay: 0.2s; }
.about-section { animation-delay: 0.3s; }
.contact-section { animation-delay: 0.4s; }
.friends-section { animation-delay: 0.5s; }
.footer { animation-delay: 0.6s; }
