.kk-page {
    --kk-bg: #f4f6f9;
    --kk-card: #ffffff;
    --kk-border: #e8edf3;
    --kk-text: #1a2233;
    --kk-text-2: #5a6a80;
    --kk-text-3: #98a6b8;
    --kk-primary: #3b82f6;
    --kk-radius: 12px;
    --kk-shadow: 0 2px 12px rgba(20, 40, 80, .05);
    --kk-shadow-hover: 0 10px 30px rgba(20, 40, 80, .10);
    background: var(--kk-bg);
    min-height: 100vh;
    padding-bottom: 60px;
}
[data-theme="dark"] .kk-page {
    --kk-bg: #0f1218;
    --kk-card: #181d26;
    --kk-border: #252c38;
    --kk-text: #e8edf5;
    --kk-text-2: #9aa8bb;
    --kk-text-3: #5e6a7c;
    --kk-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    --kk-shadow-hover: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ===== 广告条：融入内容流 ===== */
.kk-ad-bar {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}
.kk-ad-bar .ad-slot { position: relative; }
.kk-ad-bar .ad-label {
    position: absolute; top: -8px; right: 12px; z-index: 2;
    font-size: 10px; color: #fff; background: rgba(0,0,0,.35);
    padding: 1px 6px; border-radius: 3px;
    pointer-events: none;
}
.kk-ad-text-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.kk-ad-text-links a {
    --ad-bg: #eef3fb; --ad-fg: #2b3a4d;
    --ad-border: rgba(120,150,190,.28); --ad-shadow: rgba(80,120,180,.18);
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    color: var(--ad-fg);
    background: var(--ad-bg);
    border: 1px solid var(--ad-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .25s;
}
.kk-ad-text-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--ad-shadow);
}
@media (max-width: 768px) {
    .kk-ad-text-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 主体：两栏布局 ===== */
.kk-main {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

/* ===== 左栏：焦点 + 信息流 ===== */
.kk-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.kk-focus-main {
    position: relative;
    border-radius: var(--kk-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1e293b;
    box-shadow: var(--kk-shadow);
}
.kk-focus-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.kk-focus-main:hover img { transform: scale(1.04); }
.kk-focus-main::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8) 100%);
}
.kk-focus-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 24px;
    z-index: 2;
}
.kk-focus-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--kk-primary, #3b82f6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}
.kk-focus-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kk-focus-meta {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    gap: 14px;
}

.kk-focus-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kk-focus-side-item {
    display: flex;
    gap: 12px;
    background: var(--kk-card);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius);
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.kk-focus-side-item:hover {
    border-color: var(--kk-primary);
    box-shadow: var(--kk-shadow);
}
.kk-focus-side-thumb {
    width: 80px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--kk-bg);
}
.kk-focus-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kk-focus-side-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--kk-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 6px;
}
.kk-focus-side-meta {
    font-size: 11px;
    color: var(--kk-text-3);
    display: flex;
    gap: 10px;
}

/* ===== 信息流卡片 ===== */
.kk-stream-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.kk-stream-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--kk-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kk-stream-head h2::before {
    content: "";
    width: 4px; height: 18px;
    border-radius: 2px;
    background: var(--kk-primary);
}
.kk-stream-count {
    font-size: 12px;
    color: var(--kk-text-3);
}
.kk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.kk-card {
    display: flex;
    flex-direction: column;
    background: var(--kk-card);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
}
.kk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kk-shadow-hover);
    border-color: transparent;
}
.kk-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--kk-bg);
    position: relative;
}
.kk-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.kk-card:hover .kk-card-img img { transform: scale(1.06); }
.kk-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}
.kk-card-body { padding: 14px; }
.kk-card-cats {
    display: flex; gap: 6px; margin-bottom: 8px;
}
.kk-card-cats span {
    padding: 1px 7px;
    border-radius: 3px;
    background: rgba(59,130,246,.08);
    color: var(--kk-primary);
    font-size: 10px;
}
.kk-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--kk-text);
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kk-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--kk-text-3);
}
.kk-card-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--kk-text-2);
    font-size: 12px;
}
.kk-card-price.free { color: #10b981; }

/* ===== 分页 ===== */
.kk-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.kk-pager a, .kk-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--kk-border);
    background: var(--kk-card);
    color: var(--kk-text-2);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.kk-pager a:hover, .kk-pager .active {
    background: var(--kk-primary);
    color: #fff;
    border-color: var(--kk-primary);
}
.kk-pager .disabled { opacity: .4; }
.kk-pager .dots { border: none; background: transparent; }

/* ===== 右栏 ===== */
.kk-aside {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.kk-widget {
    background: var(--kk-card);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius);
    padding: 18px;
    box-shadow: var(--kk-shadow);
}
.kk-widget-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--kk-text);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kk-border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.kk-rank-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed var(--kk-border);
}
.kk-rank-item:last-child { border-bottom: none; }
.kk-rank-num {
    width: 20px; height: 20px;
    border-radius: 5px;
    background: var(--kk-bg);
    color: var(--kk-text-3);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.kk-rank-num.top1 { background: #f97316; color: #fff; }
.kk-rank-num.top2 { background: #64748b; color: #fff; }
.kk-rank-num.top3 { background: #b45309; color: #fff; }
.kk-rank-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--kk-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kk-cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kk-cat-cloud a {
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--kk-bg);
    color: var(--kk-text-2);
    font-size: 12px;
    text-decoration: none;
    transition: all .2s;
}
.kk-cat-cloud a:hover {
    background: var(--kk-primary);
    color: #fff;
}
.kk-reco-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed var(--kk-border);
}
.kk-reco-item:last-child { border-bottom: none; }
.kk-reco-thumb {
    width: 48px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--kk-bg);
}
.kk-reco-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kk-reco-title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--kk-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 平台特色条 ===== */
.kk-plate {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.kk-plate-card {
    background: var(--kk-card);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius);
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.kk-plate-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(59,130,246,.1);
    color: var(--kk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.kk-plate-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--kk-text);
    margin: 0 0 3px;
}
.kk-plate-card p {
    font-size: 11.5px;
    color: var(--kk-text-3);
    line-height: 1.5;
    margin: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .kk-main { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
    .kk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .kk-main { grid-template-columns: 1fr; }
    .kk-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .kk-widget { flex: 1 1 300px; }
    .kk-focus { grid-template-columns: 1fr; }
    .kk-focus-side { flex-direction: row; overflow-x: auto; }
    .kk-focus-side-item { flex-shrink: 0; width: 260px; }
    .kk-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kk-main, .kk-ad-bar, .kk-plate { padding: 0 12px; }
    .kk-grid { grid-template-columns: 1fr; }
    .kk-focus-side-item { width: 220px; }
    .kk-plate { grid-template-columns: 1fr; }
}

/* ===== 原搜索区在小K背景下的轻微适配 ===== */
.kk-page .hero-search { margin: 0; }
.kk-page .hero-slim { margin: 0; }
.kk-page .hero-search .container,
.kk-page .hero-slim-inner { max-width: 1280px; }