/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 标题样式 */
h1 {
    color: #1a5276;
    font-weight: 700;
}

/* 卡片容器样式 */
#websites-container {
    margin: 0 -10px;
}

/* 卡片列样式 */
#websites-container > [class^="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* 卡片样式 */
.website-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片悬停效果 */
.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

/* 卡片标题样式 */
.website-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* 卡片链接样式 */
.website-card a {
    color: #3498db;
    text-decoration: none;
    font-size: 1rem;
    margin-top: auto;
    display: inline-block;
    transition: color 0.3s ease;
}

/* 卡片链接悬停效果 */
.website-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 卡片描述样式 */
.website-card .description {
    color: #6c757d;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* 响应式布局调整 */
@media (max-width: 576px) {
    #websites-container {
        gap: 15px;
    }
    
    .website-card {
        padding: 20px;
    }
    
    .website-card h3 {
        font-size: 1.3rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* 平板设备和小屏幕的2列布局优化 */
    #websites-container > [class^="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    /* 中等屏幕的3列布局优化 */
    #websites-container > [class^="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 页面头部样式 */
header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

/* 页面底部样式 */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #6c757d;
}

/* 加载动画 - 旋转圆圈 */
.spinner {
    border: 4px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}