body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f6f6f6;
    color: #000;
    line-height: 1.5;
    box-sizing: border-box;
}

main {
    padding: 10px
}

a {
    text-decoration: none;
    color: #000;
}

img {
    width: 100%;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ad_top {
    text-align: center;
    margin: 5px auto;
}

.ad_top>div>div {
    margin: 0 auto;
}

.type-active {
    color: #3377FF !important;
}

.logo div {
    font-size: 18px;
    font-weight: 600;
}

.search button {
    background-color: #fff;
}


#search-input {
    display: none;
}

/* Footer 基础样式重构 */
.footer {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
    border: none;
    font-size: 14px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* 嵌套 footer 居中容器（页面中有 .footer > .footer 结构） */
.footer > .footer {
    max-width: 1200px;
    margin: 0 auto;
}

/* 链接样式与交互 */
.footer a {
    color: #fff;
    padding: 6px 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 160ms ease, color 160ms ease;
}
.footer a:hover {
    background-color: rgba(255,255,255,0.15);
}

/* 布局与分组间距 */
.footer-title-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.footer-title-item.column {
    flex-direction: column;
    gap: 12px;
}
.footer-title-item > div {
    margin: 6px 0;
}
/* 第一行：导航链接（HTML已写 display:flex，这里补充布局细节） */
.footer-title-item > div:first-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
/* 最后一行：社交图标区 */
.footer-title-item > div:last-child {
    justify-content: center;
    gap: 12px;
}

/* 圆形社交按钮与动效 */
#faceBook, #twitter, #copyLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    margin: 0 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#faceBook:hover, #twitter:hover, #copyLink:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.3);
}

/* 统一 footer 内图标尺寸（覆盖移动端默认的 3em） */
.footer .icon {
    width: 22px;
    height: 22px;
}

.col285 {
    background-color: #4285F4;
}

.footer a {
    color: #fff;
    padding: 10px 5px;
    text-decoration: none;
}

.footer-title-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.column {
    flex-direction: column
}




@media(min-width:768px) {
    header {
        box-shadow: #ccc 0px 2px 2px;
        width: 100%;
        top: 0;
        position: sticky;
        z-index: 100000;
    }

    header .header-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f6f6f6;
        color: #000;
        padding: 10px 20px;
        /* border-bottom: 1px solid #ccc; */
    }


    .menu-mo,
    .search-mo {
        display: none;
    }

    .close {
        display: none;
    }

    .logo img {
        height: 40px;
        /* 根据实际情况调整 */
    }

    .categories a {
        color: #000;
        font-weight: 600;
        text-decoration: none;
        margin: 0 10px;
    }

    .search input {
        padding: 5px;
        /* border: none; */
        border-radius: 10px;
    }

    .search button {
        padding: 7px 10px;
        border: none;
        background-color: #000;
        color: #fff;
        border-radius: 10px;
        cursor: pointer;
    }

    .column {
        flex-direction: column
    }
    .fs20 {
        font-size: 25px;
    }   
}

/* 媒体查询，适配移动端 */
@media (max-width: 768px) {
    header {
        /* flex-direction: column; */
        width: 100%;
        position: sticky;
        top: 0;
        align-items: center;
        justify-content: space-between;
        box-shadow: #ccc 0px 2px 2px;
        z-index: 100000;
        background-color: #f6f6f6;
    }

    header .header-content {
        /* flex-direction: column; */
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        position: relative;

    }

    .menu-mo,
    .search-mo {
        display: block;
    }



    .categories {
        width: 50%;
        height: 100%;
        background-color: #fff;
        position: fixed;
        z-index: 9999999;
        left: 0;
        top: 0;
        color: #333;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 300ms ease-in-out;
        box-shadow: 0 4px 20px rgba(95, 46, 234, 0.15);
    }

    .categories span {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 20px;
        font-weight: 900;
    }

    .active {
        display: block;
        transform: translateY(0);
        width: 50%;
        height: 100%;
        padding-top: 30px;
    }

    .categories a {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 0;
        margin: 5px;
        color: #313131;
        text-decoration: none;
    }

    .search {
        width: 100%;
        margin-top: 10px;
        display: none;
    }

    .search input {
        width: 70%;
    }

    .search button {
        width: 30%;
    }

    #search-input {
        width: 100%;
        height: 100%;
        background-color: #fff;
        position: fixed;
        z-index: 9999999;
        left: 0;
        top: 0;
        color: #fff;
        /* display: flex; */
        /* flex-wrap: nowrap; */
        /* align-items: center; */
        /* transform: translateY(0); */
        /* transition: transform 300ms ease-in-out; */
        display: none;
    }

    .search-box {
        display: flex;
        align-items: center;
        background-color: #3377FF;
        padding: 10px 5px;
    }

    #search-input input {
        /* position: absolute; */
        /* top: 0; */
        width: 100%;
        height: 20px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 10px;
    }
    .fs20 {
        font-size: 18px;
    }   
    .icon {
        width: 3em;
        height: 3em;
        fill: currentColor;
        overflow: hidden;
    }
}