/* ===== 基础 ===== */

body{
    margin:0;
    font-family:"Microsoft YaHei",Simsun,Tahoma;
    background:#f5f6f7;
    color:#333;
    letter-spacing: .5px;
    font-size: 14px;
}

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

/* ===== 头部导航 ===== */

.topnav{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin-top:20px;
}

.topnav a{
    background:#ff6a00;
    padding:10px 5px;
    text-align:center;
    text-decoration:none;
    color:#fff;
    font-size:15px;
    border-radius:6px;
    transition:all .2s;
}

.topnav a:hover{
    background:#ffe6cc;
    color:#ff6a00;
}

/* ===== 主头部 ===== */

.header{
    margin:20px 0;
    padding:40px 20px;
    text-align:center;
    background:linear-gradient(135deg,#ff7a00,#ff9a2e);
    color:#fff;
    border-radius:12px;
}

.header h1{
    margin:0 0 10px;
    font-size:28px;
}

.header p{
    margin:0;
    font-size:14px;
    opacity:.9;
}

/* ===== 分类区域 ===== */

.category{
    background:#fff;
    padding:20px;
    margin-bottom:20px;
    border-radius:10px;
}

.category h2{
    margin:0 0 15px;
    padding-left:10px;
    border-left:5px solid #ff7a00;
    font-size:18px;
}

/* ===== 链接网格 ===== */

.link-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.link-grid a{
    display:block;
    padding:8px;
    background:#f3f3f3;
    text-align:center;
    text-decoration:none;
    color:#333;
    font-size:14px;
    border-radius:6px;
    transition:all .2s;
}

.link-grid a:hover{
    background:#ffe6cc;
    color:#ff6a00;
}

/* ===== 平板 ===== */

@media (min-width:768px){
    .topnav,
    .link-grid{
        grid-template-columns:repeat(6,1fr);
    }
}

/* ===== PC ===== */

@media (min-width:1200px){
    .topnav,
    .link-grid{
        grid-template-columns:repeat(10,1fr);
    }
}
/* ===== 手机 ===== */

@media (max-width:768px){
     .category{
        padding:20px 10px;
     }
}

@media (max-width:500px){
     .link-grid a{
        padding:8px 0;
        font-size: 12px;
     }
}


#backToTop {
    display: none; /* 默认隐藏 */
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
#backToTop:hover {
    background: rgba(0,0,0,0.85);
}

/* 手机自适应 */
@media (max-width: 768px) {
    #backToTop {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}


/* ===== 页脚 ===== */

.footer{
    text-align:center;
    padding:30px 0;
    font-size:13px;
    color:#777;
}
.footer a{
    color:#777;
}


.navi {
    font-size: 0;
    padding: 5px;
    /*text-align: center;*/
}

.appico {
    width: calc(7.5% - 1px);
    margin: 5px;
    height: auto;
    box-sizing: border-box;
    display: inline-block;
    position: relative
}

.appico p {
    width: 100%;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 13px;
    margin: 0;
    color: #000;
    overflow: hidden
}

.naicon {
    border-radius: 5px;
    overflow: hidden;
    font-size: 0;
    margin: 12px
}

.appico img {
    width: 100%
}

.appico:hover .btn-raised {
    -webkit-box-shadow: 0 0 12px 4px rgba(0,0,0,.24),0 0 2px -2px rgba(0,0,0,.4),0 1px 12px 0 rgba(0,0,0,.22);
    box-shadow: 0 0 12px 4px rgba(0,0,0,.24),0 0 2px -2px rgba(0,0,0,.4),0 1px 12px 0 rgba(0,0,0,.22)
}

@media screen and (max-width:960px){
    .appico {
        width: calc(25% - 10px)
    }
}