* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* 头部区域 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar.rotating {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 内容区域 */
.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

.description {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* 网站列表 */
.websites-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.website-list {
    list-style: none;
}

.website-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.website-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    border-left-color: #764ba2;
}

.website-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
}

.website-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.website-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-code {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e0e0e0;
    color: #666;
}

.status-code.online {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #1b5e20;
}

.status-code.offline {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #c62828;
}

.latency {
    font-size: 12px;
    color: #999;
    min-width: 45px;
    text-align: right;
}

/* 友情链接 - 放在白色卡片外面 */
.friendlinks-section {
    text-align: center;
    margin-top: 30px;
}

.friendlinks-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    list-style: none;
}

.friendlink-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.friendlink-item a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式 - 手机端 */
@media (max-width: 600px) {
    .container {
        padding: 30px 16px;
    }
    
    .content {
        padding: 24px;
        border-radius: 12px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
    }
    
    .website-link {
        padding: 14px 16px;
    }
    
    .website-name {
        font-size: 15px;
    }
    
    .status-code {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .latency {
        font-size: 11px;
    }
    
    .friendlinks-list {
        gap: 16px;
    }
    
    .friendlink-item a {
        font-size: 13px;
    }
}
