/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Segoe UI', Microsoft Yahei, '微软雅黑', 'Helvetica Neue', Helvetica,
        Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #1a1d21;
    color: #e2e8f0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus {
    outline: none;
}

img {
    border: none;
}

/* 页面主容器 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* 栅格系统 */
.grid-row {
    margin-left: -15px;
    margin-right: -15px;
}

.grid-row:before,
.grid-row:after {
    content: ' ';
    display: table;
}

.grid-row:after {
    clear: both;
}

.grid-col {
    width: 25%;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

/* 响应式 */
@media screen and (max-width: 1150px) {
    .container {
        width: 950px;
    }
}

@media screen and (max-width: 1000px) {
    .container {
        width: 750px;
    }

    .grid-col {
        width: 50%;
    }
}

@media screen and (max-width: 800px) {
    .container {
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .grid-col {
        width: 100%;
    }
}

/* 分类区块 */
.section {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-weight: normal;
    font-size: 26px;
    margin: 20px 0 13px 0;
    color: #4888fb;
}

.section-title>span {
    font-family: Segoe UI Light, Microsoft YaHei, Arial, Helvetica, sans-serif;
    margin-right: 10px;
    font-weight: bold;
}

/* 区块描述 */
.section-desc {
    text-align: center;
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 35px;
    font-weight: bold;
}

/* 卡片基础样式 - 统一暗黑清爽风格 */
.card {
    font-family: 'Segoe UI', microsoft yahei;
    padding: 25px 10px;
    text-align: center;
    border-radius: 10px;
    color: #e2e8f0;
    margin-bottom: 25px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #24272b;
    border: 1px solid #2e3136;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 卡片悬停上浮效果 */
.card:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    border-color: #4888fb;
    box-shadow: 0 8px 25px rgba(72, 136, 251, 0.15);
    -webkit-box-shadow: 0 8px 25px rgba(72, 136, 251, 0.15);
    -moz-box-shadow: 0 8px 25px rgba(72, 136, 251, 0.15);
}

/* 卡片内容 */
.card>p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #7a7d82;
}

.card-icon {
    height: 50px;
    overflow: hidden;
    display: inline-block;
}

.card-icon>img {
    height: 100%;
}

/* 图标统一主题蓝色 */
.card-icon>.fa {
    font-size: 42px;
    line-height: 50px;
    color: #4888fb;
    transition: color 0.3s ease;
}

.card:hover .card-icon>.fa {
    color: #6ba1fc;
}

.card>h3 {
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 8px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: #e2e8f0;
}

/* 卡片光泽扫过效果 - 暗黑适配 */
.card-shine {
    cursor: pointer;
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: -webkit-linear-gradient(0deg,
            hsla(220, 80%, 60%, 0),
            hsla(220, 80%, 60%, 0.08),
            hsla(220, 80%, 60%, 0));
    transform: skewx(-25deg);
    -o-transform: skewx(-25deg);
    -moz-transform: skewx(-25deg);
    -webkit-transform: skewx(-25deg);
}

.card:hover>.card-shine {
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    left: 100%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1d21;
}

::-webkit-scrollbar-thumb {
    background: rgba(80, 80, 100, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 120, 0.7);
}

/* 移动端隐藏卡片图标，只显示文字（必须在基础样式之后声明） */
@media screen and (max-width: 600px) {
    .card .card-icon {
        display: none !important;
    }

    .card>h3 {
        margin-top: 0;
    }
}