/* ============================================================
 * framework-home.css - 首页中间区域独立样式（由 framework.css 拆分）
 * 页面: 首页 (index) / 独立搜索页
 * 加载顺序: 本文件应在 framework.css 之后加载（可覆盖赛博朋克样式）
 * 风格: 夜之城 · 赛博朋克 2077（深浅主题适配）
 * ============================================================ */

/* ===== 赛博朋克主题变量（作用于首页容器 .fy-main） ===== */
.fy-main {
    --fy-cp-c: #00f0ff;    /* 霓虹青 */
    --fy-cp-y: #fce300;    /* 霓虹黄 */
    --fy-cp-m: #ff2b6d;    /* 霓虹品红 */
    --fy-cp-c2: #7d3fd1;   /* 霓虹紫 */
    --fy-cp-bg: #04070f;
    --fy-cp-panel: #0a1322;
    --fy-cp-panel2: #0d1728;
    --fy-cp-line: #16233a;
    --fy-cp-line2: #24344f;
    --fy-cp-txt: #bcd8ea;
}
[data-theme="light"] .fy-main {
    --fy-cp-c: #0088cc;
    --fy-cp-y: #b8860b;
    --fy-cp-m: #c2185b;
    --fy-cp-c2: #6a3fd1;
    --fy-cp-bg: #eef4fb;
    --fy-cp-panel: #ffffff;
    --fy-cp-panel2: #f2f7fc;
    --fy-cp-line: #d5e1ec;
    --fy-cp-line2: #b7c9da;
    --fy-cp-txt: #33475b;
}

/* ===== Hero 横幅 · 夜之城 ===== */
.fy-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 330px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
    padding: 0;
    color: #e8f6ff;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 240, 255, .20);
    background:
        radial-gradient(ellipse 65% 70% at 82% 12%, rgba(0, 229, 255, .14), transparent 62%),
        radial-gradient(ellipse 60% 70% at 8% 88%, rgba(255, 43, 109, .12), transparent 60%),
        linear-gradient(180deg, #050810 0%, #0a1424 52%, #0e1a2e 100%);
}
[data-theme="light"] .fy-hero {
    color: #0a1a2a;
    border-color: rgba(0, 136, 204, .28);
    background:
        radial-gradient(ellipse 65% 70% at 82% 12%, rgba(0, 136, 204, .10), transparent 62%),
        radial-gradient(ellipse 60% 70% at 8% 88%, rgba(194, 24, 91, .07), transparent 60%),
        linear-gradient(180deg, #dcebf8 0%, #edf6fd 52%, #f5fbff 100%);
}

/* 透视网格 */
.fy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
    background-image:
        linear-gradient(rgba(0, 240, 255, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, .10) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 78%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 78%);
}
[data-theme="light"] .fy-hero::before {
    background-image:
        linear-gradient(rgba(0, 136, 204, .15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 204, .11) 1px, transparent 1px);
}

/* 地平线光晕层 */
.fy-hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        linear-gradient(to top, rgba(255, 43, 109, .14), transparent 30%),
        linear-gradient(90deg, rgba(0, 240, 255, .10), transparent 40%, rgba(252, 227, 0, .10));
}
[data-theme="light"] .fy-hero-scene {
    background:
        linear-gradient(to top, rgba(194, 24, 91, .08), transparent 30%),
        linear-gradient(90deg, rgba(0, 136, 204, .08), transparent 40%, rgba(184, 134, 11, .08));
}
/* 霓虹太阳 */
.fy-hero-scene::before {
    content: '';
    position: absolute;
    right: -70px;
    top: -70px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 227, 0, .50) 0%, rgba(255, 43, 109, .26) 42%, transparent 70%);
    filter: blur(2px);
    animation: fyCpPulse 6s ease-in-out infinite;
}
[data-theme="light"] .fy-hero-scene::before {
    background: radial-gradient(circle, rgba(184, 134, 11, .32) 0%, rgba(194, 24, 91, .14) 42%, transparent 70%);
}
/* 底部城市光带 */
.fy-hero-scene::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background:
        linear-gradient(to top, rgba(0, 240, 255, .20), transparent),
        repeating-linear-gradient(90deg, rgba(0, 240, 255, .12) 0 2px, transparent 2px 28px);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
}
[data-theme="light"] .fy-hero-scene::after {
    background:
        linear-gradient(to top, rgba(0, 136, 204, .16), transparent),
        repeating-linear-gradient(90deg, rgba(0, 136, 204, .10) 0 2px, transparent 2px 28px);
}
/* 扫描线 */
.fy-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 70px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 240, 255, .07), transparent);
    animation: fyCpScan 7s linear infinite;
}
@keyframes fyCpScan {
    0% { transform: translateY(-90px); }
    100% { transform: translateY(430px); }
}
@keyframes fyCpPulse {
    0%, 100% { opacity: .85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .fy-hero::after, .fy-hero-scene::before { animation: none; }
}

.fy-hero-inner {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    padding: 52px 24px 46px;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.fy-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--fy-cp-c);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(0, 240, 255, .55);
}
[data-theme="light"] .fy-hero-kicker {
    color: var(--fy-cp-c);
    text-shadow: 0 0 10px rgba(0, 136, 204, .30);
}
.fy-hero-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--fy-cp-m);
    box-shadow: 0 0 10px var(--fy-cp-m);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    animation: fyCpBlink 1.6s steps(2) infinite;
}
[data-theme="light"] .fy-hero-kicker::before {
    background: var(--fy-cp-m);
    box-shadow: 0 0 8px var(--fy-cp-m);
}
@keyframes fyCpBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.fy-hero h1 {
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.15;
    letter-spacing: .01em;
    margin-bottom: 12px;
    font-weight: 900;
    background: linear-gradient(94deg, var(--fy-cp-c) 0%, var(--fy-cp-y) 46%, var(--fy-cp-m) 82%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, .35));
}
[data-theme="light"] .fy-hero h1 {
    filter: none;
    text-shadow: 0 2px 14px rgba(0, 136, 204, .16);
}

.fy-hero p {
    max-width: 700px;
    margin: 0 auto 24px;
    color: var(--fy-cp-txt);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: .04em;
}

/* 搜索框 · 霓虹切角 */
.fy-hero-search {
    display: flex;
    align-items: center;
    width: min(600px, 100%);
    min-height: 50px;
    margin: 0 auto 16px;
    padding: 6px 6px 6px 18px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    border: 1px solid rgba(0, 240, 255, .55);
    background: rgba(6, 12, 22, .80);
    color: #dff6ff;
    text-align: left;
    box-shadow: 0 0 24px rgba(0, 240, 255, .16), inset 0 0 26px rgba(0, 240, 255, .04);
    backdrop-filter: blur(6px);
    text-shadow: none;
    transition: box-shadow .25s, border-color .25s;
}
.fy-hero-search:focus-within {
    border-color: var(--fy-cp-c);
    box-shadow: 0 0 34px rgba(0, 240, 255, .30), inset 0 0 26px rgba(0, 240, 255, .06);
}
[data-theme="light"] .fy-hero-search {
    border-color: rgba(0, 136, 204, .55);
    background: rgba(255, 255, 255, .94);
    color: #0a1a2a;
    box-shadow: 0 0 22px rgba(0, 136, 204, .14), inset 0 0 22px rgba(0, 136, 204, .04);
}
[data-theme="light"] .fy-hero-search:focus-within {
    border-color: var(--fy-cp-c);
    box-shadow: 0 0 30px rgba(0, 136, 204, .28);
}
.fy-hero-search > .fy-icon { font-size: 15px; opacity: .85; color: var(--fy-cp-c); }
.fy-hero-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin-left: 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e8f6ff;
    font: inherit;
    font-size: 13px;
    text-shadow: none;
}
[data-theme="light"] .fy-hero-search input { color: #0a1a2a; }
.fy-hero-search input::placeholder { color: #5f7c96; opacity: 1; }
[data-theme="light"] .fy-hero-search input::placeholder { color: #7c93a8; }
.fy-hero-search-button {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    background: linear-gradient(135deg, #00e5ff, #00b3d9);
    color: #04070f;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
[data-theme="light"] .fy-hero-search-button {
    background: linear-gradient(135deg, #00a8d9, #0077a8);
    color: #fff;
}
.fy-hero-search-button:hover { filter: brightness(1.12); transform: scale(1.04); }
.fy-hero-search-button .fy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    vertical-align: 0;
    text-align: center;
}
.fy-hero-search-button .fy-icon::before {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}
.fy-hero-search-button .fy-icon-forward::before,
.fy-search-page-form button .fy-icon-forward::before {
    content: "→";
    color: currentColor;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25em;
    font-weight: 700;
}

/* 搜索历史 chips */
.fy-hero-search-history {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    width: min(600px, 100%);
    margin: -4px auto 16px;
    color: rgba(232, 246, 255, .74);
    font-size: 11px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.fy-hero-search-history[hidden] { display: none; }
.fy-hero-history-label { margin-right: 2px; }
.fy-hero-history-list { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.fy-hero-history-chip,
.fy-hero-history-clear {
    border: 1px solid rgba(0, 240, 255, .30);
    border-radius: 0;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    padding: 3px 9px;
    background: rgba(6, 16, 28, .5);
    color: rgba(232, 246, 255, .82);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
[data-theme="light"] .fy-hero-history-chip,
[data-theme="light"] .fy-hero-history-clear {
    border-color: rgba(0, 136, 204, .30);
    background: rgba(255, 255, 255, .7);
    color: #33475b;
}
.fy-hero-history-chip:hover,
.fy-hero-history-clear:hover { border-color: rgba(0, 240, 255, .8); background: rgba(0, 240, 255, .12); color: #fff; }
[data-theme="light"] .fy-hero-history-chip:hover,
[data-theme="light"] .fy-hero-history-clear:hover { border-color: rgba(0, 136, 204, .7); background: rgba(0, 136, 204, .10); color: #0a5c82; }
.fy-hero-history-clear { padding-inline: 7px; color: rgba(232, 246, 255, .66); }

/* ===== 功能入口卡片 · 夜之城 ===== */
.fy-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.fy-entry {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 22px 20px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    background: linear-gradient(180deg, var(--fy-cp-panel), var(--fy-cp-panel2));
    border: 1px solid var(--fy-cp-line2);
    transition: all .25s;
}
.fy-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fy-cp-c) 35%, var(--fy-cp-m) 75%, transparent);
    opacity: .65;
    transition: opacity .25s;
}
.fy-entry::after {
    content: '';
    position: absolute;
    right: -46px;
    top: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, .12), transparent 68%);
    pointer-events: none;
}
[data-theme="light"] .fy-entry::after {
    background: radial-gradient(circle, rgba(0, 136, 204, .08), transparent 68%);
}
.fy-entry:hover {
    transform: translateY(-4px);
    border-color: var(--fy-cp-c);
    box-shadow: 0 0 26px rgba(0, 240, 255, .16), 0 16px 30px rgba(0, 0, 0, .30);
}
[data-theme="light"] .fy-entry:hover {
    box-shadow: 0 0 22px rgba(0, 136, 204, .14), 0 14px 28px rgba(20, 60, 90, .12);
}
.fy-entry:hover::before { opacity: 1; }
.fy-entry-icon {
    width: 50px;
    height: 50px;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    border: 1px solid var(--fy-cp-line2);
    background: rgba(0, 240, 255, .06);
}
[data-theme="light"] .fy-entry-icon {
    background: rgba(0, 136, 204, .05);
}
.fy-entry h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--fy-text-primary);
}
.fy-entry p {
    font-size: 13px;
    color: var(--fy-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.fy-entry-more {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fy-cp-c);
}
.fy-entry-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 10px;
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    font-size: 11px;
    font-weight: 600;
}

/* ===== 最新动态标题 · 霓虹指示条 ===== */
.fy-card-title {
    position: relative;
    padding-left: 14px;
}
.fy-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--fy-cp-c), var(--fy-cp-m));
    box-shadow: 0 0 10px var(--fy-cp-c);
}
.fy-card-title .fy-icon { color: var(--fy-cp-c); }

/* ===== 筛选条 · 霓虹切角 chip ===== */
.fy-filter-bar {
    flex-wrap: wrap;
    gap: 8px;
}
.fy-filter-item {
    border-radius: 0;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    border: 1px solid var(--fy-cp-line2);
    background: var(--fy-cp-panel);
    color: var(--fy-text-secondary);
    transition: all .2s;
}
.fy-filter-item:hover {
    border-color: var(--fy-cp-c);
    color: var(--fy-cp-c);
}
.fy-filter-item.fy-active {
    background: linear-gradient(135deg, var(--fy-cp-c), var(--fy-cp-c2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 240, 255, .30);
}
[data-theme="light"] .fy-filter-item.fy-active {
    box-shadow: 0 0 14px rgba(0, 136, 204, .26);
}

/* ===== 内容流卡片 · 夜之城 ===== */
.fy-stream .fy-post {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    background: linear-gradient(180deg, var(--fy-cp-panel), var(--fy-cp-panel2));
    border: 1px solid var(--fy-cp-line);
    transition: all .25s;
}
.fy-stream .fy-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: linear-gradient(180deg, var(--fy-cp-c), var(--fy-cp-m));
    opacity: .75;
}
.fy-stream .fy-post:hover {
    transform: translateY(-2px);
    border-color: var(--fy-cp-c);
    box-shadow: 0 0 22px rgba(0, 240, 255, .13);
}
[data-theme="light"] .fy-stream .fy-post:hover {
    box-shadow: 0 0 18px rgba(0, 136, 204, .12);
}
.fy-stream .fy-post-title { transition: color .2s; }
.fy-stream .fy-post:hover .fy-post-title { color: var(--fy-cp-c); }
.fy-stream .fy-post-pin {
    background: linear-gradient(135deg, var(--fy-cp-y), #ffb300);
    color: #04070f;
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    font-weight: 800;
}
[data-theme="light"] .fy-stream .fy-post-pin {
    background: linear-gradient(135deg, var(--fy-cp-y), #d99f00);
    color: #1a1200;
}

/* ===== 加载更多 · 切角按钮 ===== */
.fy-load-more .fy-btn {
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ===== 独立搜索页 · 轻微赛博朋克化 ===== */
.fy-search-page { width: 100%; min-width: 0; }
.fy-search-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.fy-search-page-head-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 30px; }
.fy-search-page-kicker { color: var(--fy-cp-c); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.fy-search-back-btn {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 12px;
    border-radius: 0;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    border: 1px solid var(--fy-cp-line2);
    background: var(--fy-cp-panel);
    color: var(--fy-cp-c);
}
.fy-search-page-head h1 { margin: 5px 0 4px; color: var(--fy-text-primary); font-size: clamp(24px, 3vw, 34px); }
.fy-search-page-head p { color: var(--fy-text-secondary); font-size: 13px; }
.fy-search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin-bottom: 10px;
    padding: 7px 8px 7px 17px;
    border: 1px solid var(--fy-cp-line2);
    border-radius: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    background: var(--fy-cp-panel);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}
.fy-search-page-form > .fy-icon { color: var(--fy-cp-c); font-size: 18px; }
.fy-search-page-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fy-text-primary); font: inherit; font-size: 14px; }
.fy-search-page-form input::placeholder { color: var(--fy-text-muted); }
.fy-search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 82px;
    height: 40px;
    padding: 0 15px;
    border-radius: 0;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    background: linear-gradient(135deg, var(--fy-cp-c), var(--fy-cp-c2));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    transition: filter .2s, transform .2s;
}
.fy-search-page-form button .fy-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.fy-search-page-form button .fy-icon::before { display: block; line-height: 1; transform: translateY(-1px); }
.fy-search-page-form button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.fy-search-history { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 2px 22px; color: var(--fy-text-secondary); font-size: 12px; }
.fy-search-history[hidden] { display: none; }
.fy-search-history-label { font-weight: 700; }
.fy-search-history-list { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.fy-search-history-list button, #fySearchHistoryClear {
    padding: 4px 10px;
    border: 1px solid var(--fy-cp-line2);
    border-radius: 0;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    background: var(--fy-cp-panel);
    color: var(--fy-text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.fy-search-history-list button:hover, #fySearchHistoryClear:hover { border-color: var(--fy-cp-c); color: var(--fy-cp-c); }
.fy-search-result-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 2px; color: var(--fy-text-secondary); font-size: 13px; }
.fy-search-result-head strong { color: var(--fy-text-primary); }
.fy-search-results { gap: 12px; }
.fy-search-result { display: block; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.fy-search-result:hover { transform: translateY(-2px); border-color: var(--fy-cp-c); box-shadow: 0 10px 24px rgba(0, 0, 0, .10); }
.fy-search-result-more { margin-left: auto; color: var(--fy-cp-c); font-size: 12px; font-weight: 700; }
.fy-search-empty { padding: 62px 20px; text-align: center; }
.fy-search-empty > .fy-icon { color: var(--fy-cp-c); font-size: 34px; }
.fy-search-empty h2 { margin: 12px 0 4px; color: var(--fy-text-primary); font-size: 19px; }
.fy-search-empty p { margin-bottom: 16px; color: var(--fy-text-secondary); font-size: 13px; }
.fy-search-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.fy-search-pagination a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--fy-cp-line2);
    border-radius: 0;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    color: var(--fy-text-secondary);
    font-size: 13px;
}
.fy-search-pagination a:hover, .fy-search-pagination a.fy-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--fy-cp-c), var(--fy-cp-c2));
    color: #fff;
}

/* ===== 首页帖子图片 · 收紧尺寸（单图右置缩小，多图网格缩小） ===== */
.fy-stream .fy-post .fy-post-media { min-width: 0; }
.fy-stream .fy-post .fy-post-image-single .fy-post-media { align-self: center; }
.fy-stream .fy-post .fy-post-media-single img {
    display: block;
    width: 100%;
    max-width: 300px;
    max-height: 170px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto;
}
.fy-stream .fy-post .fy-post-media-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.fy-stream .fy-post .fy-post-media-gallery img {
    display: block;
    width: 100%;
    max-height: 130px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
@media (max-width: 768px) {
    .fy-stream .fy-post .fy-post-media-single img { max-height: 150px; }
    .fy-stream .fy-post .fy-post-media-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .fy-stream .fy-post .fy-post-media-gallery img { max-height: 100px; }
}
