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

body {
    background: linear-gradient(145deg, #f4f7fc 0%, #eef2f5 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a2a3f;
    line-height: 1.4;
    padding: 2rem 1.5rem;
}

/* 模拟 Inter 字体，如果没有则回退系统字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #2b4c7c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header h1 i {
    background: none;
    color: #2c7da0;
    font-size: 2.4rem;
    background-clip: unset;
    -webkit-background-clip: unset;
}

.subhead {
    font-size: 1.1rem;
    color: #4a627a;
    max-width: 700px;
    margin: 0.75rem auto 0;
    font-weight: 400;
    border-bottom: 1px solid rgba(44, 125, 160, 0.2);
    display: inline-block;
    padding-bottom: 8px;
}

.description {
    font-size: 1rem;
    color: #3a546d;
    margin-top: 0.5rem;
}

/* 搜索与统计栏 */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.search-box {
    flex: 2;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 48px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #dce5ec;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.2);
}

.search-box i {
    color: #8aa0b5;
    font-size: 1.1rem;
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    background: transparent;
    font-weight: 500;
    color: #1e2f3e;
}

.search-box input::placeholder {
    color: #b9cadb;
    font-weight: 400;
}

.stats {
    background: white;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e3c72;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2ebf3;
}

.stats span {
    font-weight: 800;
    color: #2c7da0;
    font-size: 1.1rem;
}

/* 卡片网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.8rem;
    margin-top: 0.5rem;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(0px);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 32, 64, 0.15);
    border-color: #cde3ef;
}

.card-content {
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.2rem;
    color: #2c7da0;
    background: #eaf4fa;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.2s;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 40px;
    background: #f0f4f9;
    color: #2c5a7a;
    letter-spacing: 0.3px;
}

.badge.critical {
    background: #ffe8e6;
    color: #b13e3e;
}

.badge.high {
    background: #fff0e0;
    color: #c76e1c;
}

.badge.medium {
    background: #eef3fc;
    color: #2a6f8f;
}

.count-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 40px;
    background: #d4edda;
    color: #155724;
    letter-spacing: 0.3px;
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
    color: #0f2c3f;
    line-height: 1.3;
}

.card-desc {
    color: #4a627a;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
    flex: 1;
}

.card-link {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #2c7da0;
    background: #ecf5fa;
    padding: 8px 16px;
    border-radius: 40px;
    width: fit-content;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.card-link:hover {
    background: #2c7da0;
    color: white;
    border-color: #2c7da0;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* 无结果样式 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 48px;
    color: #5d7f9e;
    font-size: 1.1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 页脚 */
.footer {
    margin-top: 4rem;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: #6f8aac;
}

.footer a {
    color: #2c7da0;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* 统一样式：关卡返回按钮 */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2c7da0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 14px;
    transition: color 0.15s ease;
}
.back-home:hover {
    color: #1e3c72;
    text-decoration: none;
}

@media (max-width: 680px) {
    body {
        padding: 1rem;
    }
    .header h1 {
        font-size: 1.9rem;
    }
    .controls {
        flex-direction: column;
        align-items: stretch;
        border-radius: 32px;
        background: white;
        padding: 1rem;
    }
    .search-box {
        width: 100%;
    }
    .stats {
        text-align: center;
    }
    .card-title {
        font-size: 1.3rem;
    }
}
