/**
 * Hero Carousel 样式文件
 * 
 * @package WorthRanker
 */

/* Hero 轮播图容器 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    /* margin-bottom: 3rem; */
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hero 幻灯片 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hero 遮罩层 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Hero 内容区域 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 2rem;
}

/* Hero 类别 */
.hero-category {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'DM Serif Text';
}

/* Hero 标题 */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    font-family: 'DM Serif Text';
}

.hero-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.hero-title a:hover {
    opacity: 0.9;
}

/* Hero 摘要 */
.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'DM Serif Text';
}

/* Hero 阅读更多按钮 */
.hero-read-more {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: 'DM Serif Text';
}

.hero-read-more:hover {
    background-color: #fff;
    color: #000;
}

/* Hero 轮播指示器 */
.hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.hero-indicator.active {
    background-color: #fff;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 450px;
        /* margin-bottom: 2rem; */
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-read-more {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .hero-carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 400px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-excerpt {
        font-size: 0.9rem;
    }

    .hero-category {
        font-size: 0.75rem;
    }
}

/**
 * Featured Content 样式文件
 * 
 * @package WorthRanker
 */

 .featured-content-wrapper {
    display: grid;
    grid-template-columns: 585px 585px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    height: 478px;
}

/* HOT 卡片 */
.featured-hot-card {
    grid-column: 1;
    width: 585px;
    height: 478px;
}

.hot-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.hot-card-link:hover .hot-card-title {
    text-decoration: none;
}

.hot-card-image {
    position: relative;
    width: 585px;
    height: 478px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 0px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 2%;
    border-bottom-right-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hot-label {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: #EA1308 ;
    color: #fff;
    padding: 3px 23px;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    font-family: 'DM Serif Text';
}

.hot-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.hot-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.hot-card-title {
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
    font-family: 'DM Serif Text';
}

.hot-card-link:hover .hot-card-title {
    text-decoration: none;
}

/* 网格区域 */
.featured-grid {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 156px 1fr;
    gap: 1.5rem;
    width: 585px;
    height: 478px;
}

.featured-grid-item {
    width: 100%;
}

.featured-grid-item-small {
    grid-row: 1;
}

.featured-grid-item-large {
    grid-column: 1 / -1;
    grid-row: 2;
}

.grid-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.grid-item-link:hover .grid-item-title {
    text-decoration: none;
}

.grid-item-image {
    position: relative;
    width: 100%;
    height: 156px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.grid-item-image-large {
    height: 100%;
}

.grid-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.grid-item-content {
    position: relative;
    z-index: 2;
    padding: 12px;
    width: 100%;
}

.grid-item-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    font-family: 'DM Serif Text';
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 大卡片标题样式 */
.featured-grid-item-large .grid-item-content {
    padding: 20px;
}

.featured-grid-item-large .grid-item-title {
    font-size: 28px;
    line-height: 30px;
}

.grid-item-link:hover .grid-item-title {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .featured-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 100%;
        /* padding: 0 20px; */
        height: auto;
        min-height: 478px;
    }

    .featured-hot-card {
        width: 100%;
        height: 100%;
        /* min-height: 400px; */
    }

    .hot-card-image {
        width: 100%;
        height: 100%;
        min-height: 400px;
    }

    .featured-grid {
        width: 100%;
        height: 100%;
        min-height: 400px;
    }
}

@media (max-width: 1024px) {
    .featured-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        /* padding: 0 15px; */
    }

    .featured-hot-card {
        grid-column: 1;
        width: 100%;
        height: auto;
    }

    .hot-card-image {
        width: 100%;
        height: 400px;
        min-height: 400px;
    }

    .featured-grid {
        grid-column: 1;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 200px 1fr;
        gap: 1rem;
        width: 100%;
        height: auto;
        margin-top: 1rem;
    }

    .grid-item-image {
        height: 200px;
        min-height: 200px;
    }

    .grid-item-image-large {
        height: 250px;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .featured-content-wrapper {
        gap: 0;
        height: auto;
        /* padding: 0 15px; */
    }

    .featured-hot-card {
        width: 100%;
        height: auto;
    }

    .hot-card-image {
        width: 100%;
        height: 300px;
        min-height: 300px;
    }

    .hot-card-content {
        padding: 18px 20px;
    }

    .hot-card-title {
        font-size: 24px;
        line-height: 24px;
    }

    .featured-grid {
        grid-column: 1;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 1rem;
        width: 100%;
        height: auto;
    }

    .featured-grid-item-small {
        grid-row: auto;
    }

    .featured-grid-item-large {
        grid-column: 1;
        grid-row: auto;
    }

    .grid-item-image {
        height: 180px;
        min-height: 180px;
    }

    .grid-item-image-large {
        height: 250px;
        min-height: 250px;
    }

    .grid-item-content {
        padding: 12px 15px;
    }

    .grid-item-title {
        font-size: 14px;
        line-height: 18px;
    }

    .featured-grid-item-large .grid-item-content {
        padding: 18px;
    }

    .featured-grid-item-large .grid-item-title {
        font-size: 24px;
        line-height: 26px;
    }
}

@media (max-width: 480px) {
    .featured-content-wrapper {
        /* padding: 0 12px; */
        gap: 0;
    }

    .hot-card-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
    }

    .hot-card-content {
        padding: 15px 18px;
    }

    .hot-card-title {
        /* font-size: 20px; */
        /* line-height: 20px; */
    }

    .grid-item-image {
        height: 150px;
        min-height: 150px;
    }

    .grid-item-image-large {
        height: 200px;
        min-height: 200px;
    }

    .grid-item-content {
        padding: 10px 12px;
    }

    .grid-item-title {
        /* font-size: 13px; */
        /* line-height: 16px; */
    }

    .featured-grid-item-large .grid-item-content {
        padding: 15px;
    }

    .featured-grid-item-large .grid-item-title {
        /* font-size: 20px; */
        /* line-height: 22px; */
    }

    .hot-label {
        top: 0px;
        left: 0px;
        padding: 2px 15px;
        /* font-size: 18px; */
    }
}


/**
 * Trending 样式文件
 * 
 * @package WorthRanker
 */

/* Trending 区域 */
.trending-section {
    margin: 80px 0;
}

.trending-title {
    font-size: 46px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    font-family: 'DM Serif Text';
    color: #333;
    text-align: left;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trending-item {
    width: 100%;
}

.trending-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-item-image {
    width: 380px;
    height: 214px;
    border-radius: 16px;
    overflow: hidden;
}

.trending-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trending-item-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
    padding: 12px 0 0;
    color: #000000;
    font-family: 'DM Serif Text', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-item-link:hover .trending-item-title {
    color: #000000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .trending-title {
        font-size: 36px;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .trending-item-image {
        width: 100%;
        height: 214px;
    }
}

@media (max-width: 768px) {
    .trending-section {
        margin: 60px 0;
    }

    .trending-title {
        font-size: 28px;
        margin-bottom: 1.5rem;
    }

    .trending-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trending-item-image {
        width: 100%;
        height: 214px;
    }

    .trending-item-title {
        font-size: 18px;
        line-height: 24px;
        padding: 10px 0 0;
    }
}

@media (max-width: 480px) {
    .trending-section {
        margin: 40px 0;
    }

    .trending-title {
        /* font-size: 24px; */
        margin-bottom: 1.2rem;
    }

    .trending-grid {
        gap: 18px;
    }

    .trending-item-image {
        width: 100%;
        height: 214px;
    }

    .trending-item-title {
        /* font-size: 16px; */
        line-height: 22px;
        padding: 8px 0 0;
    }
}

/**
 * Latest Content 样式文件
 * 
 * @package WorthRanker
 */

 .latest-section {
    background: linear-gradient(180deg, #F1F6FC 0%, rgba(255,255,255,0) 100%);
    background-size: 100% 300px; /* 宽度100%，高度300px */
    background-repeat: no-repeat;
    padding: 60px 0 0;
}

.latest-section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-title {
    font-family: 'DM Serif Text';
    font-size: 46px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    color: #000;
    text-align: left;
}

/* 主特色文章 */
.latest-featured {
    position: relative;
    height: 444px;
    margin-bottom: 2rem;
}

.latest-featured-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 480px;
    height: 342px;
    background-color: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 30px;
    z-index: 2;
}

.latest-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.latest-featured-title {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 400;
    line-height: 46px;
    margin: 0;
    font-family: 'DM Serif Text';
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-featured-link:hover .latest-featured-title {
    text-decoration: none;
}

.latest-featured-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 790px;
    height: 444px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.latest-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-featured-image a {
    display: block;
    height: 100%;
}

/* 小文章网格 */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.latest-item {
    display: flex;
    gap: 1rem;
}

.latest-item-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.latest-item-image {
    flex: 0 0 278px;
    width: 278px;
    height: 156px;
    border-radius: 8px;
    overflow: hidden;
}

.latest-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-item-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.latest-item-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
    color: #333;
    font-family: 'DM Serif Text';
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-item-link:hover .latest-item-title {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1240px) and (min-width: 1025px) {
    .latest-section-container {
        padding: 0 20px;
    }

    .latest-featured {
        width: 100%;
        height: auto;
        min-height: 444px;
    }

    .latest-featured-text {
        width: 40%;
        min-width: 300px;
        height: auto;
        min-height: 342px;
    }

    .latest-featured-image {
        width: 65%;
        height: 100%;
        min-height: 444px;
    }

    .latest-grid {
        gap: 1.2rem;
    }

    .latest-item-image {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .latest-title {
        font-size: 36px;
    }

    .latest-featured-text {
        width: 45%;
        min-width: 200px;
    }

    .latest-featured-image {
        width: 60%;
    }

    .latest-item-image {
        flex: 0 0 220px;
        width: 220px;
    }

    .latest-item-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .latest-section {
        padding: 40px 0 0;
    }

    .latest-section-container {
        padding: 0 15px;
    }

    .latest-title {
        font-size: 28px;
        margin-bottom: 1.5rem;
    }

    .latest-featured {
        width: 100%;
        height: 56.2vw; /* 444/790 * 100vw，保持PC端比例 */
        max-height: 300px;
        overflow: hidden;
    }

    .latest-featured-text {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60.8%; /* 480/790 * 100%，保持PC端比例 */
        height: 77%; /* 342/444 * 100%，保持PC端比例 */
        padding: 22px;
    }

    .latest-featured-image {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 65%;
        height: 100%;
    }

    .latest-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .latest-featured-title {
        font-size: 24px;
        line-height: 30px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    .latest-item {
        gap: 0.75rem;
    }

    .latest-item-image {
        flex: 0 0 180px;
        width: 180px;
        height: 120px;
    }

    .latest-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .latest-item-title {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .latest-section {
        padding: 30px 0 0;
    }

    .latest-section-container {
        padding: 0 12px;
    }

    .latest-title {
        /* font-size: 24px; */
        margin-bottom: 1.2rem;
    }

    .latest-featured {
        height: 56.2vw; /* 保持比例 */
        max-height: 280px;
    }

    .latest-featured-text {
        width: 60.8%; /* 保持PC端比例 */
        height: 50%; /* 保持PC端比例 */
        padding: 18px;
    }

    .latest-featured-image {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 65%;
        height: 100%;
    }

    .latest-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .latest-featured-title {
        /* font-size: 14px; */
        /* line-height: 24px; */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .latest-grid {
        gap: 0.75rem;
    }

    .latest-item {
        gap: 0.5rem;
    }

    .latest-item-image {
        flex: 0 0 150px;
        width: 150px;
        height: 100px;
    }

    .latest-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .latest-item-title {
        /* font-size: 16px; */
        /* line-height: 22px; */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

