body {
    font-family: "Segoe UI", sans-serif;
    background: #f9fafb;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    color: #555;
    font-size: 1.1rem;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    /* 自动换行 */
    justify-content: center;
    /* 居中对齐 */
    gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 控制每个卡片宽度，一行最多7个 */
.category {
    flex: 0 0 calc((100% - 6rem) / 7);
    /* 7个一行，减去间隙 */
    max-width: 140px;
    /* 限制最大宽度 */
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.category:hover {
    background: #eaf3ff;
    transform: translateY(-4px);
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #0078d7;
    text-decoration: none;
}

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

.guide-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* 缩小间距 */
    justify-content: center;
}

.guide-section {
    flex: 1 1 250px;
    /* 每块最小250px，较小更紧凑 */
    max-width: 450px;
    /* 限制最大宽度，避免太宽 */
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    padding: 1.6rem;
    /* 内边距略小一些 */
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
}

/* 表格样式 */
.guide-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.guide-section th,
.guide-section td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.6rem;
    /* 原来0.6rem 0.8rem */
    text-align: center;
}

.guide-section th {
    background: #f0f4f8;
    color: #0078d7;
}

.guide-section td a {
    color: #0078d7;
    text-decoration: none;
}

.guide-section td a:hover {
    text-decoration: underline;
}

.guide-section blockquote {
    background: #f2f8ff;
    /* 浅蓝色背景 */
    border-left: 4px solid #0078d7;
    padding: 0.8rem 1rem;
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
    color: #333;
    border-radius: 6px;
    /* 圆角更柔和 */
}

.guide-section ol {
    margin-left: 1.5rem;
    padding-left: 0;
}

.guide-section h2 {
    border-left: 5px solid #0078d7;
    padding-left: 10px;
    color: #0078d7;
    margin-top: 0;
}

.guide-section h3 {
    margin-top: 1rem;
    color: #444;
}

/* 响应式：屏幕窄时上下排列 */
@media (max-width: 1000px) {
    .guide-box {
        flex-direction: column;
    }
}

/* 响应式：屏幕小于1400px 一行最多5个 */
@media (max-width: 1400px) {
    .category {
        flex: 0 0 calc((100% - 4rem) / 5);
    }
}

/* 一行最多3个 */
@media (max-width: 1000px) {
    .category {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

/* 一行最多2个 */
@media (max-width: 600px) {
    .category {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

/* 单列显示 */
@media (max-width: 400px) {
    .category {
        flex: 0 0 100%;
    }
}