/* ===== 综合首页（适配社区主题） ===== */
.chm-home {
    /* 抵消 .main-scroll 顶距，综合首页贴顶；社区广场仍保留顶距 */
    margin-top: -16px;
    margin-bottom: 24px;
}

.chm-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 28px;
}

.chm-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 -80px 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--accent) 10%, var(--bg, #f5f5f5)) 0%,
        var(--bg, #f5f5f5) 70%,
        transparent 100%
    );
    z-index: 0;
}

.chm-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 -80px 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 42%),
        linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 88%);
    z-index: 0;
}

.chm-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 40px;
    align-items: center;
}

.chm-hero-inner > * {
    animation: chm-fade-up .7s cubic-bezier(.22, 1, .36, 1) both;
}

.chm-hero-inner > *:nth-child(2) {
    animation-delay: .12s;
}

@keyframes chm-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chm-hero-copy {
    min-width: 0;
    max-width: 760px;
}

.chm-hero-side {
    min-width: 0;
}

.chm-panel {
    background: var(--card, #fff);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(15, 23, 42, .08));
    border: 1px solid var(--line, rgba(0, 0, 0, .07));
    transform: perspective(1000px) rotateY(-4deg) rotateX(4deg);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}

.chm-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 18px 50px -12px color-mix(in srgb, var(--accent) 18%, transparent), var(--card-shadow-hover, 0 14px 36px rgba(15, 23, 42, .1));
}

.chm-panel-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line, rgba(0, 0, 0, .07));
}

.chm-dots {
    display: flex;
    gap: 6px;
}

.chm-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.chm-dots i:nth-child(1) {
    background: #fc5f57;
}

.chm-dots i:nth-child(2) {
    background: #febc2e;
}

.chm-dots i:nth-child(3) {
    background: #28c840;
}

.chm-panel-url {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted, #8a8a8a);
    background: var(--chip, color-mix(in srgb, var(--text, #0a0a0a) 5%, var(--card, #fff)));
    border-radius: 8px;
    padding: 5px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chm-panel-body {
    padding: 16px 18px 8px;
}

.chm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.chm-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #0a0a0a);
}

.chm-panel-more {
    font-size: 12.5px;
    color: var(--accent, #0a0a0a);
    text-decoration: none;
}

.chm-panel-more:hover {
    text-decoration: underline;
}

.chm-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chm-feed li {
    border-bottom: 1px dashed var(--line, rgba(0, 0, 0, .08));
}

.chm-feed li:last-child {
    border-bottom: 0;
}

.chm-feed a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: padding-left .25s ease, background .25s ease;
}

.chm-feed a:hover {
    padding-left: 6px;
    background: color-mix(in srgb, var(--accent) 5%, transparent);
    border-radius: 8px;
    padding: 11px;
}

.chm-feed .uc-avatar.chm-feed-av {
    flex-shrink: 0;
    overflow: visible;
}

.chm-feed-main {
    flex: 1;
    min-width: 0;
}

.chm-feed-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text, #0a0a0a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chm-feed a:hover .chm-feed-title {
    color: var(--accent, #0a0a0a);
}

.chm-feed-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted, #8a8a8a);
    display: flex;
    gap: 12px;
}

.chm-feed-meta i {
    font-size: 12px;
    margin-right: 2px;
}

.chm-feed-date {
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--muted, #8a8a8a);
    font-variant-numeric: tabular-nums;
}

.chm-spark {
    padding: 10px 18px 16px;
}

.chm-spark svg {
    display: block;
    width: 100%;
    height: 64px;
}

.chm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--card, #fff));
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--text-soft, #2e2e2e);
    font-size: 13px;
    font-weight: 600;
}

.chm-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent, #0a0a0a);
    color: var(--accent-ink, #fff);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.chm-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--text, #0a0a0a);
}

.chm-title-hl {
    background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #38bdf8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chm-desc {
    margin: 0 0 18px;
    max-width: 42em;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft, #475569);
}

.chm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.chm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.chm-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
}

.chm-btn:hover::after {
    transform: translateX(120%);
}

.chm-btn:active {
    transform: translateY(0) scale(.98);
}

.chm-btn-primary {
    background: var(--accent, #0a0a0a);
    color: var(--accent-ink, #fff);
    border: 1px solid transparent;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #0a0a0a) 28%, transparent);
}

.chm-btn-primary:hover {
    background: var(--accent-deep, color-mix(in srgb, var(--accent, #0a0a0a) 88%, #000));
    color: var(--accent-ink, #fff);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent, #0a0a0a) 36%, transparent);
}

.chm-btn-ghost {
    background: var(--card, #fff);
    color: var(--text, #0a0a0a);
    border: 1px solid var(--line, rgba(0, 0, 0, .08));
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.chm-btn-ghost:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line, #ddd));
    color: var(--accent, #0a0a0a);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

.chm-btn-ghost .chm-arrow {
    font-size: 16px;
    transition: transform .2s ease;
}

.chm-btn-ghost:hover .chm-arrow {
    transform: translateX(3px);
}

.chm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.chm-stat-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text, #0a0a0a);
    letter-spacing: -.02em;
}

.chm-stat-num em {
    font-style: normal;
    color: var(--accent, #0a0a0a);
    margin-left: 1px;
}

.chm-stat-label {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted, #8a8a8a);
}

.chm-section {
    margin-top: 8px;
    padding-top: 8px;
}

.chm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.chm-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text, #0a0a0a);
}

.chm-section-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted, #8a8a8a);
}

.chm-section-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #8a8a8a);
    text-decoration: none;
    white-space: nowrap;
}

.chm-section-more:hover {
    color: var(--accent, #0a0a0a);
}

.chm-navsite-section {
    --chm-site-gap: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chm-rec-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.chm-rec-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.chm-rec-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text, #0a0a0a);
    letter-spacing: -.02em;
}

.chm-rec-title i {
    color: var(--accent, #2563eb);
    font-size: 20px;
}

.chm-rec-tabs {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    gap: 2px;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    border: 2px solid #fff;
}

.chm-rec-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted, #8a8a8a);
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
}

.chm-rec-tab.on {
    color: var(--accent, #2563eb);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    border: 0;
}

.chm-site-grid {
    display: grid;
    gap: var(--chm-site-gap, 12px);
}

.chm-site-grid.is-rec {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chm-site-grid.is-cat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chm-site-grid[hidden] {
    display: none !important;
}

.chm-site-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}

.chm-site-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 25px 15px;
    border-radius: 10px;
    background: var(--card, #fff);
    transition: background .18s ease, color .18s ease;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    border: 2px solid #fff;
}

.chm-site-caret {
    flex: none;
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
    color: var(--accent, #2563eb);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .15s ease, transform .15s ease;
}

.chm-site-card:hover,
.chm-site-card:focus-within {
    z-index: 8;
}

.chm-site-card:hover .chm-site-main,
.chm-site-card:focus-within .chm-site-main {
    background-color: color-mix(in srgb, var(--accent, #2563eb) 10%, #fff) !important;
    background-image: linear-gradient(
        0deg,
        color-mix(in srgb, var(--accent, #2563eb) 8%, #fff) 0%,
        color-mix(in srgb, var(--accent, #2563eb) 14%, #f3f5f8) 100%
    ) !important;
    border-color: color-mix(in srgb, var(--accent, #2563eb) 18%, #fff);
}

.chm-site-card:hover .chm-site-name,
.chm-site-card:focus-within .chm-site-name {
    color: var(--accent, #2563eb);
}

.chm-site-card:hover .chm-site-caret,
.chm-site-card:focus-within .chm-site-caret {
    opacity: 1;
    transform: translateY(0);
}

/* 图一：标题条下方弹出菜单，不覆盖卡片内容 */
.chm-site-menu {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100%);
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 12px;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    border: 2px solid #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease, background .18s ease, border-color .18s ease;
    width: 50%;
}

.chm-site-card:hover .chm-site-menu,
.chm-site-card:focus-within .chm-site-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.chm-site-act {
    display: block;
    width: 100%;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

.chm-site-act:hover {
    color: var(--accent, #2563eb);
    background: color-mix(in srgb, var(--accent, #2563eb) 12%, transparent);
}

.chm-site-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    color: #64748b;
    display: grid;
    place-items: center;
    flex: none;
}

.chm-site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chm-site-fallback {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.chm-site-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chm-site-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text, #0a0a0a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chm-site-intro {
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted, #8a8a8a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chm-nav-layout {
    display: block;
}

/* 与上方推荐站点四列同轨：右栏 = 1 列宽 */
.chm-nav-layout.has-aside {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--chm-site-gap, 12px);
    align-items: start;
}

.chm-nav-main {
    min-width: 0;
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chm-nav-aside {
    min-width: 0;
    grid-column: 4 / span 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 84px;
}

.chm-nav-layout.has-aside .chm-site-grid.is-cat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chm-cat-block {
    padding: 4px 0 2px;
}

.chm-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chm-cat-head-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chm-cat-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text, #0a0a0a);
    letter-spacing: -.02em;
}

.chm-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent, #2563eb);
}

.chm-cat-more {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted, #8a8a8a);
    text-decoration: none;
    background: color-mix(in srgb, var(--accent) 6%, var(--card, #fff));
}

.chm-cat-more:hover {
    color: var(--accent, #2563eb);
}

.chm-empty-card {
    grid-column: 1 / -1;
    padding: 36px 16px;
    border-radius: 14px;
    background: var(--card, #fff);
    border: 1px dashed var(--line, rgba(0, 0, 0, .1));
    text-align: center;
}

.chm-empty-card .empty {
    color: var(--muted, #8a8a8a);
    font-size: 14px;
}

html[data-uc-scheme="dark"] .chm-site-icon {
    background: #2a2f3a;
}

html[data-uc-scheme="dark"] .chm-site-main {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .28) !important;
}

html[data-uc-scheme="dark"] .chm-site-card:hover .chm-site-main,
html[data-uc-scheme="dark"] .chm-site-card:focus-within .chm-site-main {
    background-color: color-mix(in srgb, var(--accent, #2563eb) 16%, var(--card, #1c2028)) !important;
    background-image: linear-gradient(
        0deg,
        color-mix(in srgb, var(--accent, #2563eb) 12%, var(--card, #1c2028)) 0%,
        color-mix(in srgb, var(--accent, #2563eb) 20%, #252a35) 100%
    ) !important;
    border-color: color-mix(in srgb, var(--accent, #2563eb) 28%, #2a3140) !important;
}

html[data-uc-scheme="dark"] .chm-site-menu {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .28) !important;
}

html[data-uc-scheme="dark"] .chm-site-act {
    color: #cbd5e1;
}

html[data-uc-scheme="dark"] .chm-site-act:hover {
    background: color-mix(in srgb, var(--accent, #2563eb) 18%, transparent);
}

/* ===== 右侧栏统一卡片 ===== */
.chm-side-card {
    min-width: 0;
    padding: 16px 16px 12px;
    border: 0;
    border-radius: 16px;
    transition: background .18s ease, color .18s ease;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    border: 2px solid #fff;
}

/* 右侧自助广告位：与侧栏卡片同款液态背景（不改 ads 插件） */
.chm-nav-aside .ad-slot {
    margin: 0;
}
.chm-nav-aside .ad-slot > .ad-promo {
    border-radius: 16px !important;
    border: 2px solid #fff !important;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    padding: 16px 16px 12px;
}
.chm-nav-aside .ad-slot .ad-icon-card,
.chm-nav-aside .ad-slot .ad-buy-card,
.chm-nav-aside .ad-slot .ad-text {
    border: 2px solid #fff !important;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 6px 6px 14px 0 rgba(55, 99, 170, .08) !important;
}
.chm-nav-aside .ad-slot .ad-buy-card:hover,
.chm-nav-aside .ad-slot .ad-icon-card:hover,
.chm-nav-aside .ad-slot .ad-text:hover {
    border-color: #fff !important;
    box-shadow: 8px 8px 18px 0 rgba(55, 99, 170, .14) !important;
}

.chm-side-card.is-cover {
    padding-bottom: 10px;
}

.chm-side-feat {
    display: block;
    margin: 0 0 2px;
    text-decoration: none;
    color: inherit;
}

.chm-side-feat-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
}

.chm-side-feat-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.chm-side-feat:hover .chm-side-feat-media img {
    transform: scale(1.04);
}

.chm-side-feat-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 42px;
    font-weight: 800;
    color: color-mix(in srgb, var(--accent, #2563eb) 55%, #94a3b8);
    letter-spacing: -.04em;
    user-select: none;
}

.chm-side-feat-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .28);
}

.chm-side-feat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 2px 8px;
}

.chm-side-feat-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text, #0a0a0a);
}

.chm-side-feat:hover .chm-side-feat-title {
    color: var(--accent, #2563eb);
}

.chm-side-feat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    color: var(--muted, #94a3b8);
}

.chm-side-feat-meta.is-gongxu,
.chm-side-feed-meta.is-gongxu {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.chm-side-feat-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chm-side-kind,
.chm-side-budget {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.chm-side-kind {
    flex: none;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.45;
    color: #2563eb;
    background: color-mix(in srgb, #2563eb 12%, transparent);
}

.chm-side-kind.is-supply {
    color: #059669;
    background: color-mix(in srgb, #10b981 14%, transparent);
}

.chm-side-kind.is-demand {
    color: #d97706;
    background: color-mix(in srgb, #f59e0b 16%, transparent);
}

.chm-side-budget {
    flex: none;
    margin-left: auto;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ea580c;
}

.chm-side-budget i {
    font-size: 13px;
    line-height: 1;
}

.chm-side-feed-meta .chm-side-budget {
    font-size: 12px;
}

.chm-side-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}

.chm-side-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.chm-side-head.is-stack {
    gap: 10px;
}

.chm-side-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    color: var(--text, #0a0a0a);
    letter-spacing: -.01em;
}

.chm-side-ico {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 13px;
    color: #fff;
}

.chm-side-ico.is-feed {
    background: linear-gradient(145deg, #38bdf8, #2563eb);
}

.chm-side-ico.is-rank {
    background: linear-gradient(145deg, #60a5fa, #3b82f6);
}

.chm-side-ico.is-notice {
    background: linear-gradient(145deg, #fb923c, #f97316);
}

.chm-side-more {
    flex: none;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted, #94a3b8);
    text-decoration: none;
}

.chm-side-more:hover {
    color: var(--accent, #2563eb);
}

.chm-side-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chm-side-feed > li + li {
    border-top: 1px dashed rgba(15, 23, 42, .08);
}

.chm-side-feed.is-thumb > li + li {
    border-top-color: rgba(15, 23, 42, .06);
}

.chm-side-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.chm-side-feed-item.is-thumb {
    align-items: center;
    gap: 10px;
    padding: 9px 0;
}

.chm-side-thumb {
    flex: none;
    width: 52px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
    display: grid;
    place-items: center;
}

.chm-side-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chm-side-thumb em {
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    color: #94a3b8;
    line-height: 1;
}

.chm-side-idx {
    flex: none;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: #64748b;
}

.chm-side-feed > li:nth-child(1) .chm-side-idx {
    background: #fb7185;
    color: #fff;
}

.chm-side-feed > li:nth-child(2) .chm-side-idx {
    background: #fb923c;
    color: #fff;
}

.chm-side-feed > li:nth-child(3) .chm-side-idx {
    background: #fbbf24;
    color: #fff;
}

.chm-side-dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 55%, #94a3b8);
}

.chm-side-feed-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chm-side-feed-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text, #0f172a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chm-side-feed-item:hover .chm-side-feed-title {
    color: var(--accent, #2563eb);
}

.chm-side-feed-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    color: var(--muted, #94a3b8);
}

.chm-side-feed-meta i {
    margin-right: 2px;
}

.chm-feed-tag {
    display: inline-block;
    margin-right: 4px;
    padding: 0 4px;
    border-radius: 4px;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    background: color-mix(in srgb, #f59e0b 18%, transparent);
    color: #b45309;
}

.chm-rank-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 3px;
    border-radius: 999px;
    gap: 2px;
    background-color: #fff !important;
    background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
    box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
    border: 2px solid #fff;
}

.chm-rank-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
}

.chm-rank-tab.on {
    color: var(--accent, #3b82f6);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    border: 0;
}

.chm-rank-list {
    list-style: none;
    margin: 0;
    padding: 2px 0 0;
}

.chm-rank-list[hidden],
.chm-rank-list.is-off,
.chm-site-grid[hidden],
.chm-site-grid.is-off {
    display: none !important;
}

.chm-rank-list > li + li {
    border-top: 1px dashed rgba(15, 23, 42, .08);
}

.chm-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.chm-rank-item:hover .chm-rank-name {
    color: var(--accent, #2563eb);
}

.chm-rank-no {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    background: #e8eef6;
    color: #64748b;
}

.chm-rank-no.is-1 {
    background: #fb7185;
    color: #fff;
}

.chm-rank-no.is-2 {
    background: #fb923c;
    color: #fff;
}

.chm-rank-no.is-3 {
    background: #fbbf24;
    color: #fff;
}

.chm-rank-name {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 400;
    color: var(--text, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chm-rank-views {
    flex: none;
    font-size: 12px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.chm-rank-empty,
.chm-push-empty {
    padding: 20px 8px;
    text-align: center;
    color: var(--muted, #8a8a8a);
    font-size: 13px;
}

html[data-uc-scheme="dark"] .chm-side-card {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .28) !important;
}

html[data-uc-scheme="dark"] .chm-nav-aside .ad-slot > .ad-promo {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .28) !important;
}
html[data-uc-scheme="dark"] .chm-nav-aside .ad-slot .ad-icon-card,
html[data-uc-scheme="dark"] .chm-nav-aside .ad-slot .ad-buy-card,
html[data-uc-scheme="dark"] .chm-nav-aside .ad-slot .ad-text {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 6px 6px 14px 0 rgba(0, 0, 0, .22) !important;
}

html[data-uc-scheme="dark"] .chm-side-feat-media,
html[data-uc-scheme="dark"] .chm-side-thumb {
    background: linear-gradient(145deg, #243044, #1c2433);
}

html[data-uc-scheme="dark"] .chm-side-feat-fallback,
html[data-uc-scheme="dark"] .chm-side-thumb em {
    color: #64748b;
}

html[data-uc-scheme="dark"] .chm-rec-tabs,
html[data-uc-scheme="dark"] .chm-rank-tabs {
    background-color: var(--card, #1c2028) !important;
    background-image: linear-gradient(0deg, var(--card, #1c2028) 0%, #252a35 100%) !important;
    border: 2px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .28) !important;
}

html[data-uc-scheme="dark"] .chm-rec-tab.on,
html[data-uc-scheme="dark"] .chm-rank-tab.on {
    background: #1c2230;
    background-image: none;
    border: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    color: var(--accent, #60a5fa);
}

html[data-uc-scheme="dark"] .chm-side-idx,
html[data-uc-scheme="dark"] .chm-rank-no {
    background: #2a3140;
    color: #94a3b8;
}

html[data-uc-scheme="dark"] .chm-side-feed > li + li,
html[data-uc-scheme="dark"] .chm-rank-list > li + li {
    border-top-color: rgba(255, 255, 255, .08);
}

html[data-uc-scheme="dark"] .chm-badge {
    background: color-mix(in srgb, var(--accent) 16%, var(--card, #1c2028));
}

html[data-uc-scheme="dark"] .chm-nav-cat {
    background: var(--card, #1c2028);
}

@media (max-width: 1100px) {
    .chm-site-grid.is-rec {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chm-nav-layout.has-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chm-nav-main {
        grid-column: 1 / span 2;
    }

    .chm-nav-aside {
        grid-column: 3 / span 1;
    }

    .chm-nav-layout.has-aside .chm-site-grid.is-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .chm-nav-layout.has-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .chm-nav-main,
    .chm-nav-aside {
        grid-column: 1 / -1;
    }

    .chm-nav-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .chm-nav-layout.has-aside .chm-site-grid.is-cat {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .chm-site-grid.is-rec,
    .chm-site-grid.is-cat,
    .chm-nav-layout.has-aside .chm-site-grid.is-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .chm-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .chm-panel,
    .chm-panel:hover {
        transform: none;
    }
}

@media (max-width: 720px) {
    .chm-hero {
        padding: 24px 0 18px;
    }

    .chm-hero-inner > * {
        animation: none;
    }

    .chm-title {
        font-size: 26px;
    }

    .chm-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .chm-stats {
        gap: 14px 20px;
    }

    .chm-stat-num {
        font-size: 18px;
    }

    .chm-rec-bar {
        flex-wrap: wrap;
    }

    .chm-site-card {
        padding: 0;
    }

    .chm-site-main {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        padding: 15px 10px;
        border-radius: 10px;
        background: var(--card, #fff);
        transition: background .18s ease, color .18s ease;
        background-color: #fff !important;
        background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%) !important;
        box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1) !important;
        border: 2px solid #fff;
    }

    .chm-site-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex: none;
    }

    .chm-site-caret {
        display: none;
    }

    .chm-site-name,
    .chm-site-intro {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chm-site-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}

@media (max-width: 640px) {
    .chm-nav-aside {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .chm-site-grid.is-rec,
    .chm-site-grid.is-cat,
    .chm-nav-layout.has-aside .chm-site-grid.is-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
