/* ===== 首页专属样式：Portfolio + Bento Grid ===== */

/* Hero 杂志网格 */
.f5cb56-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 16px;
    padding: 90px 0 24px;
}
.f5cb56-hero-main {
    grid-row: 1 / 4;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
}
.f5cb56-hero-sub {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 128px;
}
.f5cb56-hero-main img, .f5cb56-hero-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.f5cb56-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,34,38,0.05) 0%, rgba(29,34,38,0.78) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
}
.f5cb56-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    width: fit-content;
}
.f5cb56-hero-title { font-size: 1.8rem; margin: 0; }
.f5cb56-hero-sub .f5cb56-hero-title { font-size: 1.05rem; }
.f5cb56-hero-main .f5cb56-hero-title { font-size: 2.1rem; }

/* 限时福利条 */
.f5cb56-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 26px;
    margin: 24px 0;
}
.f5cb56-banner-text { font-weight: 700; font-size: 1.05rem; }
.f5cb56-banner-right { display: flex; align-items: center; gap: 16px; }
.f5cb56-banner-count {
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-family: var(--font-head);
}
.f5cb56-banner-btn {
    background: #fff;
    color: var(--accent);
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-family: var(--font-head);
}

/* Bento Grid 作品集展示区 */
.f5cb56-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    gap: 16px;
    margin: 32px 0;
}
.f5cb56-bento-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
}
.f5cb56-bento-card a {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
}
.f5cb56-bento-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.f5cb56-bento-card .f5cb56-bento-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,34,38,0.02) 30%, rgba(29,34,38,0.72) 100%);
}
.f5cb56-bento-card a > * { position: relative; z-index: 1; }
.f5cb56-bento-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 8px;
}
.f5cb56-bento-title { font-size: 1.05rem; margin: 0; }
.f5cb56-bento-card.span-2 { grid-column: span 2; }
.f5cb56-bento-card.span-3 { grid-column: span 3; }
.f5cb56-bento-card.span-4 { grid-column: span 4; }
.f5cb56-bento-card.span-6 { grid-column: span 6; }
.f5cb56-bento-card.row-2 { grid-row: span 2; }

/* Main Feed 标题 */
.f5cb56-feed-head {
    font-size: 1.8rem;
    margin: 36px 0 4px;
}

/* Newsletter 通栏高亮块 */
.f5cb56-newsletter {
    background: var(--bg-deep);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 48px 24px;
    margin: 40px 0;
}
.f5cb56-newsletter h2 { font-size: 1.9rem; }
.f5cb56-newsletter p { color: var(--text-muted); }
.f5cb56-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 20px auto 0;
}
.f5cb56-newsletter-form input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
}
.f5cb56-newsletter-form button {
    padding: 13px 26px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-family: var(--font-head);
    cursor: pointer;
}

@media (max-width: 860px) {
    .f5cb56-hero { grid-template-columns: 1fr; grid-template-rows: auto; }
    .f5cb56-hero-main { grid-row: auto; min-height: 300px; }
    .f5cb56-hero-sub { min-height: 180px; }
    .f5cb56-bento { grid-template-columns: 1fr 1fr; }
    .f5cb56-bento-card.span-2, .f5cb56-bento-card.span-3,
    .f5cb56-bento-card.span-4, .f5cb56-bento-card.span-6 { grid-column: span 2; }
}
