/* 全局基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

a { color: #e94560; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航 */
.navbar {
    background: #1a1a2e;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}
.navbar-nav {
    display: flex;
    gap: 4px;
    margin-left: 40px;
}
.navbar-nav a {
    color: rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.navbar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}
.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 16px;
}

/* 网格 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
