/* Home page styles for deliddedtech4 theme */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    color: #fff;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .eloqu-latest-grid {
        grid-template-columns: 1fr;
    }
    .eloqu-cat-main {
        grid-template-columns: 1fr;
    }
    .eloqu-home-cat-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================
   方案二：杂志横条式 (Magazine Strip)
   ================================================ */

/* ---------- Hero：全宽水平横条堆叠 ---------- */
.eloqu-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
}
.eloqu-hero-list { display: contents; }
.eloqu-hero-item {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background .2s;
}
.eloqu-hero-item:last-child { border-bottom: none; }
.eloqu-hero-item:hover { background: #f5f5f5; }
.eloqu-hero-item-img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.eloqu-hero-item-overlay {
    padding: 12px 18px;
    flex: 1;
    position: static;
    background: none;
}
.eloqu-hero-item-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #33004b; }
.eloqu-hero-item-title a { font-size: 15px; color: #111; font-weight: 700; line-height: 1.45; display: block; margin-top: 4px; }
.eloqu-hero-item-date { font-size: 11px; color: #999; margin-top: 6px; }

/* ---------- Category：奇偶行左右交替 ---------- */
.eloqu-cat-section { margin-bottom: 44px; }
.eloqu-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; 
    background: #fafafa; margin-bottom: 14px;
}
.eloqu-section-title a { font-size: 17px; font-weight: 800; color: #111; }
.eloqu-section-more { font-size: 12px; color: #d6d4d4; }
/* 奇数区块：featured 在左 */
.eloqu-cat-section:nth-child(odd) .eloqu-cat-section-body {
    display: flex; gap: 20px;
}
/* 偶数区块：featured 在右 */
.eloqu-cat-section:nth-child(even) .eloqu-cat-section-body {
    display: flex; flex-direction: row-reverse; gap: 20px;
}
.eloqu-cat-main { flex: 1.2; }
.eloqu-home-featured-card { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.eloqu-home-featured-card-img { width: 100%; object-fit: cover; display: block; }
.eloqu-home-featured-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    padding: 14px 12px 10px;
}
.eloqu-home-featured-card-cat { font-size: 11px; font-weight: 700; color: #c151f6; }
.eloqu-home-featured-card-title a { color: #fff; font-size: 15px; font-weight: 700; }
.eloqu-cat-small-list { display: flex; flex-direction: column; gap: 10px; }
.eloqu-cat-small-item { display: flex; gap: 10px; align-items: flex-start; }
.eloqu-cat-small-item-img img { width: 80px; height: 58px; object-fit: cover; border-radius: 4px; }
.eloqu-cat-small-item-title a { font-size: 13px; color: #222; font-weight: 600; }
.eloqu-cat-small-item-date { font-size: 11px; color: #bbb; }
.eloqu-home-cat-grid {
    flex: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    align-content: start;
}
.eloqu-home-list-card { background: #f9f9f9; border-radius: 6px; overflow: hidden; }
.eloqu-home-list-card-img { width: 100%; height: 100px; object-fit: cover; display: block; }
.eloqu-home-list-card-body { padding: 8px; }
.eloqu-home-list-card-cat { font-size: 10px; color: #33004b; font-weight: 700; text-transform: uppercase; }
.eloqu-home-list-card-title a { font-size: 12px; color: #333; font-weight: 600; display: block; margin-top: 3px; }
.eloqu-home-list-card-date { font-size: 10px; color: #ccc; }

/* ---------- Latest + Popular：横向卡片滚动 ---------- */
.eloqu-latest-row {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 20px 0;
}
.eloqu-latest-section-label,
.eloqu-popular-section-label {
    font-size: 17px; font-weight: 800; text-transform: uppercase;
    background: #111; color: #fff; display: block;
    padding: 4px 14px; border-radius: 4px; margin-bottom: 14px;
}
/* Latest：横向可滚动卡片轨道 */
.eloqu-latest-grid {
    /* display: flex; */
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.eloqu-latest-card {
    flex: 0 0 220px;
    border-radius: 8px; overflow: hidden;
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
.eloqu-latest-card-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.eloqu-latest-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #33004b; display: block; padding: 8px 10px 0; }
.eloqu-latest-card-title a { font-size: 13px; font-weight: 600; color: #111; padding: 4px 10px; display: block; }
.eloqu-latest-card-date { font-size: 11px; color: #bbb; padding: 0 10px 10px; }
/* Popular：2 列横向网格 */
.eloqu-popular-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.eloqu-popular-item { display: flex; align-items: center; gap: 10px; }
.eloqu-popular-num { font-size: 26px; font-weight: 900; color: #ddd; width: 28px; text-align: center; flex-shrink: 0; }
.eloqu-popular-item-img img { width: 68px; height: 48px; object-fit: cover; border-radius: 4px; }
.eloqu-popular-item-title a { font-size: 13px; color: #222; font-weight: 600; }
.eloqu-hero-item-title a:hover,
.eloqu-hero-item-cat:hover{
    color:var(--eloqu-primary);
}
@media(max-width:768px){
    .eloqu-popular-list{
        grid-template-columns:1fr;
    }
    .eloqu-cat-section:nth-child(odd) .eloqu-cat-section-body,
    .eloqu-cat-section:nth-child(even) .eloqu-cat-section-body{
        display:grid;
        grid-template-columns:1fr;
    }
    .eloqu-home-cat-grid,
    .eloqu-cat-main{
        grid-template-columns:1fr;
    }
}