/* Home page styles for deliddedtech4 theme */

/* ===================== SEO H1 (visually hidden) ===================== */
/*.ephem-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;*/
/*}*/

.ephem-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;
}
.ephem-home-h1 h1 { margin: 0; }

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

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

.ephem-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;
}

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

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

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

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

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

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

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

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

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

.ephem-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;
}

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

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

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

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

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

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

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

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

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

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

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

.ephem-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;
}

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

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

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

.ephem-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;
}

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

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

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

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

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

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

    color: #fff;
}

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

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

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

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

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

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

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

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

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

.ephem-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .ephem-latest-grid {
        grid-template-columns: 1fr;
    }
    .ephem-cat-main {
        grid-template-columns: 1fr;
    }
    .ephem-home-cat-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================
   方案一：卡片网格式 (Card Grid)
   放入 home.blade.php 的 @push('styles') 块内
   ================================================ */

/* ---------- Hero：横向三等分卡片 ---------- */
.ephem-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 0;
}
.ephem-hero-list {
    display: contents; /* 子项直接参与父级 grid */
}
.ephem-hero-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transition: transform .25s;
}
.ephem-hero-item:hover { transform: translateY(-4px); }
.ephem-hero-item-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.ephem-hero-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 12px;
    color: #fff;
}
.ephem-hero-item-cat {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #057748;
}
.ephem-hero-item-title a { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ephem-hero-item-date { font-size: 11px; opacity: .75; margin-top: 4px; }

/* ---------- Category：全宽 Grid 均等网格 ---------- */
.ephem-cat-section { margin-bottom: 40px; }
.ephem-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-radius: 6px 6px 0 0;
}
.ephem-section-title a { color: #fff; font-size: 16px; font-weight: 700; }
.ephem-section-more { color: #fff; font-size: 13px; }
.ephem-cat-section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* cat-main | cat-grid 各占一半 */
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-top: none;
}
.ephem-cat-main { display: flex; flex-direction: column; gap: 10px; }
.ephem-home-featured-card { position: relative; border-radius: 8px; overflow: hidden; }
.ephem-home-featured-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ephem-home-featured-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    padding: 10px;
}
.ephem-home-featured-card-cat { font-size: 11px; font-weight: 700; color: #ffd740; }
.ephem-home-featured-card-title a { color: #fff; font-size: 14px; font-weight: 600; }
.ephem-cat-small-list { display: flex; flex-direction: column; gap: 8px; }
.ephem-cat-small-item { display: flex; gap: 10px; align-items: center; }
.ephem-cat-small-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.ephem-cat-small-item-title a { font-size: 13px; color: #222; font-weight: 600; }
.ephem-cat-small-item-date { font-size: 11px; color: #999; }
.ephem-home-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ephem-home-list-card { border-radius: 6px; overflow: hidden; }
.ephem-home-list-card-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.ephem-home-list-card-body { padding: 8px; }
.ephem-home-list-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #1e88e5; }
.ephem-home-list-card-title a { font-size: 13px; color: #222; font-weight: 600; display: block; margin-top: 4px; }
.ephem-home-list-card-date { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ---------- Latest + Popular：三列对等 ---------- */
.ephem-latest-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding: 24px 0;
}
.ephem-latest-section-label,
.ephem-popular-section-label {
    font-size: 18px; font-weight: 800; 
    padding-left: 10px; margin-bottom: 14px; text-transform: uppercase;
}
.ephem-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ephem-latest-card { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ephem-latest-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.ephem-latest-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #e8392d; display: block; padding: 8px 10px 0; }
.ephem-latest-card-title a { font-size: 13px; color: #222; font-weight: 600; padding: 0 10px; display: block; }
.ephem-latest-card-date { font-size: 11px; color: #aaa; padding: 4px 10px 10px; }
.ephem-popular-list { display: flex; flex-direction: column; gap: 12px; }
.ephem-popular-item { display: flex; align-items: center; gap: 10px; }
.ephem-popular-num { font-size: 22px; font-weight: 900; color: #e0e0e0; width: 28px; text-align: center; flex-shrink: 0; }
.ephem-popular-item-img img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; }
.ephem-popular-item-title a { font-size: 13px; color: #222; font-weight: 600; }

@media(max-width:768px){
    .ephem-latest-row,
    .ephem-cat-section-body{
        grid-template-columns:1fr;
    }
}
@media(max-width:500px){
    .ephem-hero,
    .ephem-latest-grid,
    .ephem-home-cat-grid{
        grid-template-columns:1fr;
    }
}
