* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background: #f5f7fa;
    font-size: 13px;
    color: #333;
}
a {
    text-decoration: none;
    color: #333;
}
/* 搜索横幅 */
.search-banner {
    background: linear-gradient(135deg, #d4e3f5, #f9e8d8);
    padding: 48px 0 36px;
    text-align: center;
}
.search-wrap {
    width: 99%;
    max-width: 760px;
    margin: 0 auto;
}
.search-wrap .logo {
    display: block;
    text-align: center;
    font-weight: 700;
    color: #f76c2c;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-decoration: none;
}
.search-box {
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.search-input {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    min-width: 0;
    background: #fff;
}
.search-btn {
    height: 46px;
    width: 72px;
    background: linear-gradient(135deg, #ff7800, #ff9a44);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}
.search-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.tab-item {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 16px;
    transition: all 0.2s;
}
.tab-item:hover {
    color: #ff7800;
    background: rgba(255,120,0,0.08);
}
.tab-item.active {
    color: #fff;
    background: #ff7800;
    font-weight: 600;
}
.search-sub-tab {
    margin-top: 8px;
}
.sub-tab-group {
    display: none;
}
.sub-tab-group.active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sub-tab-item {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 12px;
    transition: all 0.2s;
}
.sub-tab-item:hover {
    color: #ff7800;
    background: rgba(255,120,0,0.08);
}
.sub-tab-item.active {
    color: #ff7800;
    font-weight: 600;
    background: rgba(255,120,0,0.1);
}
/* 热门标签栏 */
.hot-tag-bar {
    background: #fff;
    margin: 10px auto;
    width: 99%;
    padding: 14px 16px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 1px solid #eee;
}
.tag-item {
    font-size: 14px;
    font-weight: 600;
    background: #eef5ff;
    padding: 4px 12px;
    border-radius: 10px;
}
.join-btn {
    margin-left: auto;
    background: #ff7800;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
/* 主体容器 */
.container {
    display: flex;
    width: 99%;
    margin: 0 auto;
    gap: 12px;
}
/* 左侧边栏 */
.left-sidebar {
    width: 160px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    height: fit-content;
    position: sticky;
    top: 12px;
    align-self: flex-start;
}
.side-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    gap: 8px;
}
.side-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.side-icon i {
    font-size: 18px;
    line-height: 1;
}
.side-custom-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.iconfont-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.side-menu-item:hover {
    background: #f5f9ff;
}
.side-menu-item.active {
    background: #e8f4ff;
    color: #0066cc;
    font-weight: 500;
}
.side-fold-btn {
    padding: 8px 14px;
    text-align: center;
    color: #666;
    font-size: 12px;
}
/* 主内容板块 */
.main-content {
    flex: 1;
}
.nav-block {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}
.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.title-text {
    font-weight: bold;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.orange-tag {
    background: #ff7800;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}
.title-tab {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
}
.title-tab span,
.orange-tag.sub-filter {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
    border: 1px solid transparent;
    user-select: none;
}
.title-tab span:hover,
.orange-tag.sub-filter:hover {
    color: #ff7800;
    background: #fff5f0;
    border-color: #ffd4b8;
}
.title-tab span.active,
.orange-tag.sub-filter.active {
    background: #ff7800;
    color: #fff;
    border-color: #ff7800;
    box-shadow: 0 2px 6px rgba(255,120,0,0.25);
}
.more-btn {
    font-size: 12px;
    color: #0066cc;
    cursor: pointer;
}
/* 链接卡片网格（左图标右文字） */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.link-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: 0.15s;
    cursor: pointer;
    gap: 10px;
    background: #fff;
}
.link-card:hover {
    background: #f0f7ff;
    border-color: #c0d4f0;
}
.link-card.pinned {
    border-color: #ff7800;
    background: #fff8f0;
    position: relative;
}
.pin-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff7800;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 0 8px 0 6px;
    font-weight: 600;
    line-height: 1.5;
}
.link-card.hot {
    border-color: #f5b041;
    background: linear-gradient(135deg, #fffbe6, #fff5e6);
    position: relative;
    box-shadow: 0 2px 8px rgba(245,176,65,0.18);
}
.link-card.hot:hover {
    background: linear-gradient(135deg, #fff5d6, #ffefcc);
    border-color: #e89a1c;
}
.hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f5b041, #e89a1c);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 0 8px 0 6px;
    font-weight: 600;
    line-height: 1.5;
}
.link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.link-favicon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    transition: filter 0.4s ease;
}
.link-favicon[data-loaded] {
    filter: none;
}
.link-favicon:not([data-loaded]) {
    filter: blur(6px);
}
.link-icon-fallback {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
}
@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.link-card:hover .link-icon {
    animation: iconSpin 0.5s ease;
}
.link-card .link-icon {
    animation: none;
}
.link-info {
    flex: 1;
    min-width: 0;
}
.link-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 768px) {
    .container { flex-direction: column; width: 100%; gap: 0; }
    .left-sidebar { display: none; }
    .main-content { width: 100%; }

    .search-banner { padding: 24px 0 20px; }
    .search-wrap { max-width: none; }
    .search-wrap .logo { font-size: 24px; margin-bottom: 12px; }
    .search-input { height: 42px; font-size: 15px; }
    .search-btn { height: 42px; }
    .search-tab {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .search-tab::-webkit-scrollbar { display: none; }
    .tab-item { font-size: 14px; white-space: nowrap; flex-shrink: 0; }
    .sub-tab-group.active {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sub-tab-group.active::-webkit-scrollbar { display: none; }
    .sub-tab-item { font-size: 13px; white-space: nowrap; flex-shrink: 0; }

    .hot-tag-bar { padding: 10px 12px; gap: 8px; }
    .tag-item { font-size: 13px; padding: 3px 10px; }
    .join-btn { margin-left: 0; padding: 5px 12px; font-size: 13px; }

    .nav-block { padding: 10px; }
    .block-title { gap: 8px; flex-wrap: wrap; }
    .title-text { font-size: 15px; flex: 0 0 auto; }
    .more-btn { margin-left: auto; flex-shrink: 0; }
    .title-tab {
        flex: 0 0 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        order: 1;
    }
    .title-tab::-webkit-scrollbar { display: none; }
    .title-tab span, .orange-tag.sub-filter { white-space: nowrap; flex-shrink: 0; }

    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 6px;
    }
    .link-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .link-icon {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        font-size: 13px;
    }
    .link-name { font-size: 13px; }
    .link-desc { font-size: 11px; }
}

@media (max-width: 480px) {
    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
    }
    .search-wrap { width: 99%; }
    .hot-tag-bar { width: 99%; }
    .container { width: 100%; }
}
/* 页脚 */
.page-footer {
    width: 99%;
    margin: 20px auto;
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.footer-desc p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}
.qr-box {
    width: 80px;
    height: 80px;
    background: #eee;
}

/* 统一底部框架 */
.site-footer {
    width: 100%;
    margin-top: 24px;
    padding: 20px 16px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}
.site-footer-inner {
    width: 99%;
    margin: 0 auto;
}
.footer-friend-links {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}
.footer-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}
.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.footer-links-list a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.footer-links-list a:hover {
    color: #ff7800;
}
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.footer-copyright {
    font-size: 12px;
    color: #999;
}
.footer-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-icp, .footer-police {
    font-size: 12px;
    color: #999;
}
.footer-icp a, .footer-police a {
    color: #999;
    text-decoration: none;
}
.footer-icp a:hover, .footer-police a:hover {
    color: #ff7800;
}
@media (max-width: 640px) {
    .site-footer { padding: 16px 12px; }
    .footer-links-list { gap: 6px 14px; }
    .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
}