/* 通用基础样式：字体、布局、组件结构，不写死主题颜色 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 顶部导航条通用样式 */
.main-navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* 头部区：标题 + 搜索 */
.nav-header {
    padding: 18px 0 20px;
}

.nav-header-title {
    font-size: 24px;
    font-weight: 600;
}

.nav-header-subtitle {
    font-size: 13px;
}

/* 搜索外层容器：限制最大宽度并居中 */
.search-wrapper {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* 默认：PC 端一行显示 */
.search-form {
    width: 100%;
}

/* 小屏特殊处理：上下两行都居中 */
@media (max-width: 576px) {
    .nav-header {
        text-align: center;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }
    .search-btn {
        width: 100%;
    }
}

/* 分类卡片 */
.category-card {
    border-radius: 0.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 14px;
}

.category-title {
    font-size: 18px;
    margin-bottom: 12px;
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 8px;
}

/* 链接卡片结构 */
.link-card {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all .15s ease;
}

.link-icon-wrapper {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.link-icon {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.link-title {
    font-weight: 600;
}

.link-desc {
    font-size: 0.75rem;
}

.tag-hot {
    display: inline-block;
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
}

.category-section {
    margin-bottom: 12px;
}

.no-data {
    margin-top: 40px;
    text-align: center;
}
