/* 首页样式：hero 区块、staff pick、分类板块 */

/* ===================== Home H1 ===================== */
.clan-home-h1 {
    text-align: center;
    padding: 18px 0 14px;
    border-bottom: 3px solid var(--clan-primary);
    margin-bottom: 4px;
    position: relative;
}

/* ===================== Home Hero ===================== */
.clan-hero {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.8fr;
    gap: 4px;
    margin-top: 16px;
    min-height: 380px;
}

.clan-hero-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clan-hero-left-item {
    flex: 1;
    overflow: hidden;
    background: var(--clan-bg-light);
}

.clan-hero-left-item__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.clan-hero-left-item__body {
    padding: 8px 10px 10px;
}

.clan-hero-left-item__title {
    font-family: var(--clan-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--clan-text-main);
    line-height: 1.35;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-hero-left-item__title a {
    color: inherit;
    text-decoration: none;
}

.clan-hero-left-item__title a:hover {
    color: var(--clan-primary);
    text-decoration: none;
    opacity: 1;
}

.clan-hero-center {
    position: relative;
    overflow: hidden;
}

.clan-hero-center__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clan-hero-center__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(var(--clan-overlay-start), var(--clan-overlay-end));
    padding: 40px 18px 20px;
}

.clan-hero-center__title {
    font-family: var(--clan-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.clan-hero-center__title a {
    color: #ffffff;
    text-decoration: none;
}

.clan-hero-center__title a:hover {
    color: var(--clan-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.clan-hero-center__summary {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-hero-right {
    display: flex;
    flex-direction: column;
    background: var(--clan-bg-light);
}

.clan-hero-right-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid var(--clan-border);
}

.clan-hero-right-item:last-child {
    border-bottom: none;
}

.clan-hero-right-item__img {
    flex-shrink: 0;
    width: 72px;
    height: 75px;
    overflow: hidden;
    border-radius: 2px;
}

.clan-hero-right-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clan-hero-right-item__body {
    flex: 1;
    min-width: 0;
}

.clan-hero-right-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--clan-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-hero-right-item__title a {
    color: inherit;
    text-decoration: none;
}

.clan-hero-right-item__title a:hover {
    color: var(--clan-primary);
    opacity: 1;
    text-decoration: none;
}

/* ===================== 4-Column Card Grid ===================== */
.clan-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.clan-card {
    display: flex;
    flex-direction: column;
}

.clan-card__img-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
}

.clan-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clan-card__img-wrap:hover .clan-card__img {
    transform: scale(1.04);
}

.clan-card__body {
    padding: 10px 0 0;
}

.clan-card__title {
    font-family: var(--clan-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--clan-text-main);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-card__title a {
    color: inherit;
    text-decoration: none;
}

.clan-card__title a:hover {
    color: var(--clan-primary);
    opacity: 1;
    text-decoration: none;
}

.clan-card__excerpt {
    font-size: 13px;
    color: var(--clan-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================== Category Sections ===================== */
.clan-cat-section {
    margin-top: 36px;
}

.clan-cat-section-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.clan-cat-feature-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.clan-cat-feature-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clan-cat-feature-card:hover .clan-cat-feature-card__img {
    transform: scale(1.04);
}

.clan-cat-feature-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(var(--clan-overlay-start), var(--clan-overlay-end));
    padding: 28px 14px 14px;
}

.clan-cat-feature-card__title {
    font-family: var(--clan-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-cat-feature-card__title a {
    color: #ffffff;
    text-decoration: none;
}

.clan-cat-feature-card__title a:hover {
    color: var(--clan-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.clan-cat-section-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.clan-cat-mini-card {
    display: flex;
    flex-direction: column;
}

.clan-cat-mini-card__img-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
}

.clan-cat-mini-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clan-cat-mini-card__img-wrap:hover .clan-cat-mini-card__img {
    transform: scale(1.04);
}

.clan-cat-mini-card__body {
    padding: 7px 0 0;
}

.clan-cat-mini-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--clan-text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-cat-mini-card__title a {
    color: inherit;
    text-decoration: none;
}

.clan-cat-mini-card__title a:hover {
    color: var(--clan-primary);
    opacity: 1;
    text-decoration: none;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .clan-hero {
        /*grid-template-columns: 1fr 1fr;*/
        min-height: auto;
    }

    .clan-hero-left {
        display: grid;
        /*grid-template-columns: 1fr 1fr;*/
    }

    .clan-hero-right {
        display: grid;
        /*display: none;*/
    }

    .clan-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .clan-cat-section-top {
        grid-template-columns: 1fr;
    }

    .clan-cat-section-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clan-hero {
        /*grid-template-columns: 1fr;*/
        min-height: auto;
    }

    .clan-hero-left {
        display: flex;
    }

    .clan-hero-right {
        display: flex;
    }

    .clan-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .clan-cat-section-top {
        grid-template-columns: 1fr;
    }

    .clan-cat-section-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clan-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .clan-grid-4 {
        grid-template-columns: 1fr;
    }

    .clan-cat-section-bottom {
        grid-template-columns: 1fr 1fr;
    }
}

/* Home H1 */
.clan-home-h1 {
    text-align: center;
    padding: 18px 0 14px;
    border-bottom: 3px solid var(--clan-primary);
    margin-bottom: 4px;
    position: relative;
}

.clan-home-h1 h1 {
    font-family: var(--clan-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clan-text-main);
    letter-spacing: 1.5px;
    /*text-transform: uppercase;*/
    display: inline-block;
    padding: 0 20px;
    position: relative;
}

/*.clan-home-h1 h1::before,*/
/*.clan-home-h1 h1::after {*/
/*    content: '';*/
/*    display: inline-block;*/
/*    width: 32px;*/
/*    height: 2px;*/
/*    background: var(--clan-primary);*/
/*    vertical-align: middle;*/
/*    margin: 0 10px;*/
/*}*/
/* ===================== Staff Pick: 1大+3小 ===================== */

/* 外层容器：左大右小，左右分栏 */
.clan-staff-pick {
    display: grid;
    grid-template-columns: 1.6fr 1fr;   /* 左边占约 62%，右边占约 38% */
    gap: 20px;
    align-items: start;
}

/* ---- 左侧主卡 ---- */
.clan-staff-pick__main {
    display: flex;
    flex-direction: column;
}

.clan-staff-pick__main-img-wrap {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
    height:160px;
}

.clan-staff-pick__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clan-staff-pick__main-img-wrap:hover .clan-staff-pick__main-img {
    transform: scale(1.04);
}

.clan-staff-pick__main-body {
    padding: 12px 0 0;
}

.clan-staff-pick__main-title {
    font-family: var(--clan-font-heading);
    font-size: 20px;            /* 大标题，区别于小卡的 13px */
    font-weight: 700;
    color: var(--clan-text-main);
    line-height: 1.4;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-staff-pick__main-title a {
    color: inherit;
    text-decoration: none;
}

.clan-staff-pick__main-title a:hover {
    color: var(--clan-primary);
    text-decoration: none;
    opacity: 1;
}

.clan-staff-pick__main-excerpt {
    font-size: 14px;
    color: var(--clan-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* 主卡摘要3行，小卡无摘要 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- 右侧小卡列表（3条竖排）---- */
.clan-staff-pick__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.clan-staff-pick__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--clan-border);
}

.clan-staff-pick__item:first-child {
    padding-top: 0;
}

.clan-staff-pick__item:last-child {
    border-bottom: none;
}

.clan-staff-pick__item-img-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    overflow: hidden;
    border-radius: 2px;
}

.clan-staff-pick__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clan-staff-pick__item-img-wrap:hover .clan-staff-pick__item-img {
    transform: scale(1.04);
}

.clan-staff-pick__item-body {
    flex: 1;
    min-width: 0;
}

.clan-staff-pick__item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--clan-text-main);
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-staff-pick__item-title a {
    color: inherit;
    text-decoration: none;
}

.clan-staff-pick__item-title a:hover {
    color: var(--clan-primary);
    text-decoration: none;
    opacity: 1;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .clan-staff-pick {
        grid-template-columns: 1fr 1fr;  /* 平板：等宽左右 */
    }
}

@media (max-width: 768px) {
    .clan-staff-pick {
        grid-template-columns: 1fr;      /* 手机：完全堆叠 */
    }
    .clan-staff-pick__item-img-wrap {
        width: 80px;
        height: 60px;
    }
    .clan-staff-pick__main-img-wrap{
        height:auto;
    }
}