
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto;
}
html,body{
    width:100%;
    overflow-x:hidden !important;
}
body{
    background: linear-gradient(135deg,#f0f4ff,#f8f9fd);
    color:#222;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-top:0;
}
a{text-decoration:none;color:inherit}
.top-banner{
    width:100%;
    left:0;
    background: linear-gradient(90deg,#165DFF,#3671ff);
    padding:24px 16px;
    position: fixed;
    top: 0;
    z-index: 999;
    box-sizing: border-box;
}
.banner-wrap{
    max-width:1280px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.banner-title{
    font-size:30px;
    color:#ffffff;
    font-weight:600;
    letter-spacing: 2px;
    font-family: "KaiTi", "楷体", SimSun, serif;
}
.banner-title img{
    height:28px;
    vertical-align:middle;
}
.search-box{
    display:flex;
    gap:0;
}
.search-input{
    width:320px;
    padding:10px 16px;
    border:none;
    font-size:15px;
    border-radius:8px 0 0 8px;
}
.search-btn{
    padding:10px 20px;
    background:#ffcc00;
    color:#000;
    border:none;
    border-radius:0 8px 8px 0;
    cursor:pointer;
    white-space:nowrap;
    font-weight:500;
}
.search-btn:hover{
    background:#ffbb00;
}
/* ========== 电脑端广告容器 ========== */
#containerId{
    width: 100% !important;
    max-width: 608px !important;
    margin: 0 auto !important;
    margin-top: 95px !important;  /* 电脑端：广告往下，不被头部盖住 */
    margin-bottom: 12px !important;
}
.main-container{
    max-width:1280px;
    width:100%;
    margin:0 auto;
    padding:0 16px;
    flex:1;
}
.header-bar{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-bottom:32px;
}
.btn{
    display:inline-block;
    padding:9px 18px;
    background:#3b82f6;
    color:#fff;
    border-radius:12px;
    border:none;
    cursor:pointer;
    font-size:15px;
    transition:0.25s ease;
}
.btn:hover{background:#2563eb;transform:translateY(-2px);box-shadow:0 4px 12px rgba(59,130,246,0.25)}
.btn-danger{background:#ef4444}
.btn-danger:hover{background:#dc2626;box-shadow:0 4px 12px rgba(239,68,68,0.25)}
.btn-warning{background:#f59e0b}
.btn-warning:hover{background:#d97706;box-shadow:0 4px 12px rgba(245,158,11,0.25)}
.card{
    background:#ffffff;
    border-radius:16px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 4px 20px rgba(0,0,0,0.06);
}
.cate-title{
    font-size:19px;
    font-weight:600;
    margin-bottom:16px;
    padding-left:10px;
    border-left:4px solid #3b82f6;
    color:#1e293b;
}
.link-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:14px;
    margin-bottom:28px;
}
.link-item{
    background:#f8fafc;
    padding:16px 10px;
    border-radius:12px;
    text-align:center;
    transition:0.25s ease;
    border:1px solid transparent;
}
.link-item:hover{
    background:#eff6ff;
    border-color:#bfdbfe;
    transform:translateY(-3px);
    box-shadow:0 6px 16px rgba(59,130,246,0.12);
}
form{display:grid;gap:14px}
input{
    padding:12px 14px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    width:100%;
    font-size:15px;
    transition:0.2s;
}
input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,0.15)}
table{width:100%;border-collapse:collapse;margin-top:16px}
td,th{border:1px solid #e5e7eb;padding:12px;text-align:left}
th{background:#f9fafb}
footer{
    width:100vw !important;
    margin-left:calc(-50vw + 50%);
    background:#165DFF;
    color:#fff;
    text-align:center;
    padding:20px 16px;
    margin-top:5px;
}
footer p{
    font-size:14px;
    opacity:0.9;
}

/* ========== 手机端 ========== */
@media(max-width:640px){
    body{
        padding-top: 0 !important; /* 取消body全局下压，改用广告容器自己的margin-top，更可控 */
    }
    .banner-wrap{
        flex-direction:column;
    }
    .banner-title{
        text-align:center;
        width:100%;
        font-size:24px;
    }
    .search-box{
        width:100%;
    }
    .search-input{
        width:100%;
        flex:1;
    }
    .search-btn span{
        display:none;
    }
    .search-btn::after{
        content:"搜";
    }
    .link-grid{
        grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
    }
    #containerId{
        margin-top: 135px !important;  /* 手机端：广告上方拉开距离，离头部 */
        margin-bottom: 2px !important;  /* 广告下方，离网址，这个已经压得很窄了 */
    }
}

.link-item { text-align: left !important; padding-left:12px !important; }

