/* Home page styles for deliddedtech4 theme */

/* ===================== SEO H1 (visually hidden) ===================== */
/*.seren-home-h1 {*/
/*    !*position: absolute;*!*/
/*    width: 1px;*/
/*    !*height: 1px;*!*/
/*    !*margin: -1px;*!*/
/*    !*padding: 0;*!*/
/*    overflow: hidden;*/
/*    clip: rect(0, 0, 0, 0);*/
/*    white-space: nowrap;*/
/*    border: 0;*/
/*}*/

.seren-home-h1 {
    margin-top: 20px;
    background: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 11px 33px rgba(0, 0, 0, 0.12);
    /*border-left: 5px solid #f9e04b;*/
    text-align: center;
}
.seren-home-h1 h1 { margin: 0; }

/* ===================== Trending Ticker ===================== */
.seren-trending {
    background: var(--seren-amber);
    color: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 38px;
}

.seren-trending-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.seren-trending-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    white-space: nowrap;
    padding-right: 12px;
    border-right: 2px solid rgba(0,0,0,0.2);
    margin-right: 12px;
    flex-shrink: 0;
}

.seren-trending-track {
    display: flex;
    gap: 40px;
    animation: seren-ticker 30s linear infinite;
    white-space: nowrap;
}

.seren-trending-track a {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.seren-trending-track a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.seren-trending:hover .seren-trending-track {
    animation-play-state: paused;
}

@keyframes seren-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== Hero Section ===================== */
/*.seren-hero {*/
/*    display: grid;*/
/*    grid-template-columns: 1.5fr 1fr;*/
/*    gap: 4px;*/
/*    margin-top: 16px;*/
/*}*/

.seren-hero-main {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.seren-hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.seren-hero-main:hover .seren-hero-main-img {
    transform: scale(1.03);
}

.seren-hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 60px 20px 20px;
}

.seren-hero-main-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--seren-amber);
    display: inline-block;
    margin-bottom: 6px;
}

.seren-hero-main-cat:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.seren-hero-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.seren-hero-main-title a {
    color: #fff;
}

.seren-hero-main-title a:hover {
    color: var(--seren-amber);
    opacity: 1;
    text-decoration: none;
}

.seren-hero-main-date {
    font-size: 12px;
    color: #ccc;
    margin-top: 8px;
}

.seren-hero-list {
    display: grid;
    gap: 4px;
    height: 320px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
}

.seren-hero-item {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.seren-hero-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.seren-hero-item:hover .seren-hero-item-img {
    transform: scale(1.04);
}

.seren-hero-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 12px 10px;
}

.seren-hero-item-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--seren-amber);
    display: block;
    margin-bottom: 4px;
}

.seren-hero-item-cat:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.seren-hero-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seren-hero-item-title a {
    color: #fff;
}

.seren-hero-item-title a:hover {
    color: var(--seren-amber);
    opacity: 1;
    text-decoration: none;
}

.seren-hero-item-date {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

/* ===================== Category Sections ===================== */
.seren-cat-section {
    margin: 32px 0 0;
}

.seren-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.seren-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: #fff;
}

.seren-section-title a {
    color: #fff;
}

.seren-section-title a:hover {
    color: rgba(255,255,255,0.85);
    opacity: 1;
    text-decoration: none;
}

.seren-section-more {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.seren-section-more:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.seren-cat-section-body {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Left: featured card + small list */
.seren-cat-main {
    display: grid;
    flex-direction: column;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.seren-home-featured-card {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.seren-home-featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.seren-home-featured-card:hover .seren-home-featured-card-img {
    transform: scale(1.03);
}

.seren-home-featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    padding: 40px 14px 12px;
}

.seren-home-featured-card-cat {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
    color: var(--seren-amber);
    display: block;
    margin-bottom: 4px;
}

.seren-home-featured-card-cat:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.seren-home-featured-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.seren-home-featured-card-title a {
    color: #fff;
}

.seren-home-featured-card-title a:hover {
    color: var(--seren-amber);
    opacity: 1;
    text-decoration: none;
}

.seren-cat-small-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.seren-cat-small-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--seren-border);
    align-items: flex-start;
}

.seren-cat-small-item:last-child {
    border-bottom: none;
}

.seren-cat-small-item-img {
    width: 102px;
    height: 103px;
    flex-shrink: 0;
    overflow: hidden;
}

.seren-cat-small-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seren-cat-small-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--seren-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seren-cat-small-item-title a {
    color: var(--seren-text-main);
}

.seren-cat-small-item-title a:hover {
    color: var(--seren-primary);
    opacity: 1;
    text-decoration: none;
}

.seren-cat-small-item-date {
    font-size: 12px;
    color: var(--seren-text-muted);
    margin-top: 4px;
}

/* Right: 2x2 grid */
.seren-home-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-self: stretch;
    height: 100%;
}

.seren-home-list-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.seren-home-list-card-img {
    width: 100%;
    flex: 1;
    min-height: 100px;
    height: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.seren-home-list-card:hover .seren-home-list-card-img {
    transform: scale(1.04);
}

.seren-home-list-card-body {
    padding: 6px 0;
}

.seren-home-list-card-cat {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;
    color: var(--seren-primary);
    display: block;
    margin-bottom: 3px;
}

.seren-home-list-card-cat:hover {
    color: var(--seren-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.seren-home-list-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--seren-text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seren-home-list-card-title a {
    color: var(--seren-text-main);
}

.seren-home-list-card-title a:hover {
    color: var(--seren-primary);
    opacity: 1;
    text-decoration: none;
}

.seren-home-list-card-date {
    font-size: 11px;
    color: var(--seren-text-muted);
    margin-top: 3px;
}

/* ===================== Latest + Popular Row ===================== */
.seren-latest-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin: 32px 0 0;
    /*padding-bottom: 32px;*/
}

.seren-latest-section-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;

    background: var(--seren-primary);
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.seren-popular-section-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;

    background: var(--seren-dark-section);
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.seren-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.seren-latest-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seren-latest-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.seren-latest-card-wrap:hover .seren-latest-card-img {
    transform: scale(1.03);
}

.seren-latest-card-wrap {
    overflow: hidden;
    display: block;
}

.seren-latest-card-cat {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.8px;
    color: var(--seren-primary);
}

.seren-latest-card-cat:hover {
    color: var(--seren-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.seren-latest-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--seren-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seren-latest-card-title a {
    color: var(--seren-text-main);
}

.seren-latest-card-title a:hover {
    color: var(--seren-primary);
    opacity: 1;
    text-decoration: none;
}

.seren-latest-card-date {
    font-size: 12px;
    color: var(--seren-text-muted);
}

/* Popular list */
.seren-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.seren-popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--seren-border);
}

.seren-popular-item:last-child {
    border-bottom: none;
}

.seren-popular-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--seren-border);
    flex-shrink: 0;
    width: 28px;
    line-height: 1;
}

.seren-popular-item-img {
    width: 65px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
}

.seren-popular-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seren-popular-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--seren-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seren-popular-item-title a {
    color: var(--seren-text-main);
}

.seren-popular-item-title a:hover {
    color: var(--seren-primary);
    opacity: 1;
    text-decoration: none;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .seren-hero {
        margin-top: 12px;
    }

    .seren-hero-main {
        height: 360px;
    }

    .seren-hero-list {
        height: 360px;
    }

    /*.seren-cat-section-body {*/
    /*    grid-template-columns: 1fr 1fr;*/
    /*}*/

    .seren-latest-row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .seren-hero {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .seren-hero-main {
        height: 260px;
    }

    .seren-hero-list {
        flex-direction: row;
        height: 180px;
    }

    .seren-hero-item {
        min-width: 0;
        min-height: 0;
    }

    .seren-cat-section {
        margin: 20px 0 0;
    }

    .seren-cat-section-body {
        grid-template-columns: 1fr;
    }

    .seren-home-cat-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .seren-home-list-card-img {
        height: 300px;
        flex: none;
    }

    .seren-latest-row {
        grid-template-columns: 1fr;
        margin: 20px 0 0;
    }

    .seren-latest-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .seren-hero-list {
        flex-direction: column;
        height: auto;
        display: flex;
    }

    .seren-hero-item {
        height: 140px;
    }

    .seren-latest-grid {
        grid-template-columns: 1fr;
    }
    .seren-cat-main {
        grid-template-columns: 1fr;
    }
    .seren-home-cat-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================
   方案四：Hover 展开聚焦式 (Accordion Expand)
   粘贴至 home.blade.php @push('styles') 的 <style> 中
   ================================================ */

/* 容器：改用 flex，通过 flex 伸缩实现展开 */
.seren-hero-list {
    display: flex;
    flex-direction: row;
    height: 360px;
    gap: 6px;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* 每一项：默认压缩，过渡平滑展开 */
.seren-hero-item {
    position: relative;
    overflow: hidden;
    flex: 1;                          /* 默认各占 1 份 */
    transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 8px;
}

/* hover 时当前项展开到 3 倍宽 */
.seren-hero-list:has(.seren-hero-item:hover) .seren-hero-item { flex: 0.5; }
.seren-hero-item:hover                                        { flex: 3 !important; }

/* 图片：高度铺满，宽度自适应 */
.seren-hero-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.seren-hero-item:hover .seren-hero-item-img {
    transform: scale(1.06);
}

/* 遮罩：默认只显示底部窄条，hover 后撑高 */
.seren-hero-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 50px 16px 14px;
    transition: padding 0.35s ease;
}
.seren-hero-item:hover .seren-hero-item-overlay {
    padding: 80px 20px 18px;
}

/* 分类：默认隐藏，hover 后滑入 */
.seren-hero-item-cat {
    display: inline-block;
    background: var(--seren-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s 0.1s ease, transform 0.3s 0.1s ease;
}
.seren-hero-item:hover .seren-hero-item-cat {
    opacity: 1;
    transform: translateY(0);
}
.seren-hero-item-cat:hover { opacity: 1 !important; }

/* 标题：默认单行截断，hover 后展开最多3行 */
.seren-hero-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s;
}
.seren-hero-item:hover .seren-hero-item-title {
    -webkit-line-clamp: 3;
    font-size: 17px;
}
.seren-hero-item-title a { color: #fff; }
.seren-hero-item-title a:hover { color: var(--seren-amber, var(--seren-primary)) !important; opacity: 1; }

/* 日期：默认隐藏，hover 后淡入 */
.seren-hero-item-date {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.3s 0.15s ease;
}
.seren-hero-item:hover .seren-hero-item-date { opacity: 1; }

/* 响应式：移动端退化为普通三列 */
@media (max-width: 768px) {
    .seren-hero-list { height: auto; gap: 3px;display: grid; grid-template-columns: 1fr;}
    .seren-hero-item{ height:200px;}
    .seren-hero-list:has(.seren-hero-item:hover) .seren-hero-item { flex: 1; }
    .seren-hero-item:hover { flex: 1 !important; }
    .seren-hero-item-cat { opacity: 1; transform: none; }
    .seren-hero-item-date { opacity: 1; }
}