/* ============================================
 * 所长导航 · TwoNav 壁纸主题样式 v1.0
 * ============================================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
    background: #0b1220;
    color: #f2f5f9;
    -webkit-font-smoothing: antialiased;
}

/* ===== 全屏壁纸背景 ===== */
.bookmark-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.bookmark-bg .img-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image .8s ease;
}
.bookmark-bg .gradient-linear {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,10,18,.38) 0%, rgba(5,10,18,.12) 30%, rgba(5,10,18,.55) 100%),
        radial-gradient(1200px 500px at 50% -10%, rgba(255,255,255,.10) 0%, transparent 60%);
}

/* ===== 顶部导航栏 ===== */
.sz-navbar {
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(5,10,18,.35) 0%, transparent 100%);
    z-index: 20;
}
.sz-navbar .weather { display: flex; align-items: center; }
.sz-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    transition: all .25s ease;
}
.sz-admin:hover {
    background: rgba(255,255,255,.22);
    box-shadow: 0 0 18px rgba(255,255,255,.18);
}
.sz-ico { font-size: 18px; }

/* ===== 顶部大标题 + 搜索区 ===== */
.header-big {
    position: relative;
    padding: 15vh 16px 24px;
    z-index: 5;
}
.sz-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 10px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0,0,0,.45);
    margin: 0 0 26px;
}
@media (max-width: 640px) {
    .header-big { padding-top: 9vh; }
    .sz-title { font-size: 28px; letter-spacing: 6px; }
}

/* 搜索分类标签 */
.s-type { margin-bottom: 12px; }
.s-type-list.big {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.s-type-list.big label {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
}
.s-type-list.big label:hover { background: rgba(255,255,255,.20); }
.s-type-list.big label.active {
    background: rgba(255,255,255,.92);
    color: #0b1220;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 6px 22px rgba(0,0,0,.25);
}

/* 搜索框 */
.super-search-fm {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.super-search-fm .search-key {
    width: 100%;
    height: 54px;
    padding: 0 58px 0 24px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 15px;
    outline: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
    transition: all .25s ease;
}
.super-search-fm .search-key::placeholder { color: rgba(255,255,255,.62); }
.super-search-fm .search-key:focus {
    background: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 14px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.super-search-fm button {
    position: absolute;
    right: 6px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(210,225,245,.92));
    color: #0b1220;
    font-size: 19px;
    cursor: pointer;
    transition: transform .2s ease;
}
.super-search-fm button:hover { transform: scale(1.06); }

/* 搜索引擎切换列表 */
.search-type {
    list-style: none;
    padding: 0;
    margin: 14px auto 0;
    max-width: 620px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.search-type li { position: relative; }
.search-type label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    cursor: pointer;
    transition: all .2s ease;
}
.search-type input:checked + label {
    background: rgba(255,255,255,.85);
    color: #0b1220;
    font-weight: 600;
}
.search-type input { display: none; }
.hide-type-list .search-group { display: none; }
.hide-type-list .search-group.s-current { display: block; }

/* 搜索智能提示 */
.search-smart-tips {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    max-width: 92vw;
    margin-top: 8px;
    border-radius: 14px;
    background: rgba(12,20,32,.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.14);
    z-index: 30;
}
.search-smart-tips ul { list-style: none; margin: 0; padding: 8px; }
.search-smart-tips ul li {
    padding: 9px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,.9);
    cursor: pointer;
    font-size: 14px;
}
.search-smart-tips ul li.current, .search-smart-tips ul li:hover { background: rgba(255,255,255,.10); }

/* ===== 主体分类 + 链接卡片 ===== */
.sz-main {
    position: relative;
    z-index: 5;
    padding-bottom: 60px;
}
.cat-section { margin-bottom: 34px; }
.cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.5);
    padding: 12px 18px 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
    margin-bottom: 18px;
}
.cat-title small {
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255,255,255,.62);
    margin-left: 2px;
}
.sz-lock { font-size: 14px; color: rgba(255,255,255,.75); }

.sz-col { margin-bottom: 14px; }
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 118px;
    padding: 18px 10px 14px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 100%);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 8px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.link-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
    box-shadow: 0 16px 38px rgba(0,0,0,.3), 0 0 22px rgba(255,255,255,.10);
    text-decoration: none;
}
.link-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.link-icon img { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }
.sz-lock-mini {
    position: absolute;
    right: -3px;
    bottom: -3px;
    font-size: 12px;
    color: #fff;
    background: rgba(20,30,48,.85);
    border-radius: 50%;
    padding: 2px;
    line-height: 1;
}
.link-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.link-desc {
    margin-top: 4px;
    font-size: 11.5px;
    color: rgba(255,255,255,.62);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

/* ===== 页脚 ===== */
.sz-footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 22px 16px 34px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.sz-footer a { color: rgba(255,255,255,.85); }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .link-card { min-height: 104px; padding: 14px 6px 10px; }
    .link-icon { width: 40px; height: 40px; }
    .link-icon img { width: 22px; height: 22px; }
}
