/* ============================================================
   栏目列表页共享样式
   对应 Vue: ColumnView.vue / ColumnFrame.vue / PageBanner.vue / ArticleItem.vue
   说明：各栏目差异（背景色 / footer 图 / banner 配色 / primary 色 / aside 标题色）
        由各 list_*.html 模板内联覆盖，本文件只放公共结构。
   ============================================================ */

/* ---------- 页面背景 & 顶部背景条覆盖（各栏目内联覆盖具体颜色/图） ---------- */
#app .ty-full-background {
    background-image: none !important;
}
/* 隐藏 tyfs 布局自带的顶部背景条（改用各栏目自绘 Banner） */
#app .ty-full-background > div.position-absolute {
    display: none !important;
}

/* ---------- Banner（PageBanner） ---------- */
.ty-banner {
    position: relative;
    width: 100%;
}
.ty-banner-bg {
    position: absolute;
    top: calc(-1 * var(--nav-height));
    left: 0;
    width: 100%;
    min-width: var(--page-width);
    height: var(--banner-height);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.ty-banner-front {
    position: relative;
    width: 100%;
    min-width: var(--page-width);
    height: calc(var(--banner-height) - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ty-banner-grow {
    flex: 1 1 auto;
}
.ty-banner-title {
    margin: 0;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--banner-front-color, #fff);
}
.ty-banner-divider {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: var(--banner-front-color, #fff);
    margin: 24px 0;
}
.ty-banner-desc {
    font-size: 26px;
    color: var(--banner-front-color, #fff);
    margin-bottom: 72px;
}
.ty-crumb-bar {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, .4);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ty-crumb-inner {
    width: var(--page-width);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.ty-crumb-icon {
    width: 72px;
    height: 60px;
    background: var(--banner-primary-color, #e1c36a);
    display: flex;
    justify-content: center;
    align-items: center;
}
.ty-crumb-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
.ty-crumb-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    font-size: 16px;
}
.ty-crumb-list a {
    color: rgba(255, 255, 255, .65);
}
.ty-crumb-list a:hover {
    color: #fff;
}
.ty-crumb-sep {
    padding: 0 8px;
    color: rgba(255, 255, 255, .65);
}
.ty-crumb-current {
    color: #fff;
}

/* ---------- 主体：左 aside + 右内容（ColumnFrame） ---------- */
.ty-col-wrap {
    width: var(--page-width);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 24px;
    margin-bottom: 24px;
    color: #000;
}
.ty-col-side {
    width: 210px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ty-col-side-title {
    width: 210px;
    height: 104px;
    line-height: 104px;
    font-size: 24px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--menu-title-color, #000);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.ty-col-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ty-col-menu-item {
    height: 65px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    user-select: none;
    text-decoration: none;
    color: #000;
    transition: background-color .2s ease, color .2s ease;
}
.ty-col-menu-item svg {
    width: 12px;
    height: 12px;
    margin-left: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0;
}
.ty-col-menu-item:hover {
    background: var(--primary-color);
    color: var(--menu-hover-color, #fff);
}
.ty-col-menu-item.active {
    background: var(--primary-color);
    color: var(--menu-hover-color, #fff);
}
.ty-col-menu-item.active svg {
    opacity: 1;
}
.ty-col-menu-text {
    max-height: 48px;
    overflow: hidden;
    font-size: 16px;
}
.ty-col-side-empty {
    height: 200px;
    line-height: 200px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}
.ty-col-main {
    flex: 1 1 auto;
    margin-left: 40px;
    overflow: hidden;
}

/* ---------- 列表：rect 卡片（310×327） ---------- */
.ty-list-rect {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 37px;
    margin-right: -37px;
}
.ty-list-rect .ty-cell {
    width: 310px;
    height: 327px;
    margin-right: 36px;
    margin-bottom: 36px;
}
.ty-list-rect .ty-cell-img {
    height: 174px;
}

/* ---------- 列表：rect-max 大卡片（660×528） ---------- */
.ty-list-rect-max {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 37px;
    margin-right: -24px;
}
.ty-list-rect-max .ty-cell {
    width: 660px;
    height: 528px;
    margin-right: 24px;
    margin-bottom: 36px;
}
.ty-list-rect-max .ty-cell-img {
    height: 372px;
}
.ty-list-rect-max .ty-cell-tag {
    border-color: #1b2b2b;
    color: #1b2b2b;
    background: rgba(27, 43, 43, .2);
}

/* ---------- 列表：rect-min 小卡片（280 宽，object-contain） ---------- */
.ty-list-rect-min {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    padding-left: 24px;
    padding-right: 24px;
}
.ty-list-rect-min .ty-cell {
    width: 280px;
    margin-right: 36px;
    margin-bottom: 36px;
}
.ty-list-rect-min .ty-cell-img {
    height: 224px;
    object-fit: contain;
}

/* ---------- 卡片公共结构 ---------- */
.ty-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.ty-cell > a {
    display: block;
    flex-shrink: 0;
}
.ty-cell-img {
    display: block;
    width: 100%;
    object-fit: cover;
}
.ty-cell-body {
    flex: 1 1 auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
}
.ty-cell-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ty-cell-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
.ty-cell-tag {
    height: 32px;
    line-height: 32px;
    margin-right: 8px;
    font-size: 12px;
    padding: 0 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.ty-cell-views {
    font-size: 14px;
    color: #9ca3af;
}

/* ---------- 列表：time 时间轴（天外天） ---------- */
.ty-list-time-wrap {
    background: #fff;
    padding-left: 24px;
    padding-right: 24px;
    margin-top: 16px;
}
.ty-list-time {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ty-time-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid #d1d5db;
    text-decoration: none;
    color: inherit;
}
.ty-time-item:last-child {
    border-bottom: none;
}
.ty-time-date {
    width: 156px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.ty-time-day {
    font-size: 48px;
    font-weight: 700;
    padding-right: 16px;
}
.ty-time-slash {
    width: 1px;
    height: 40px;
    background: #000;
    transform: rotate(20deg);
}
.ty-time-ym {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}
.ty-time-month {
    font-size: 14px;
    color: #9ca3af;
}
.ty-time-year {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}
.ty-time-vline {
    width: 1px;
    height: 180px;
    background: #d1d5db;
}
.ty-time-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
    align-self: stretch;
    padding-left: 32px;
}
.ty-time-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}
.ty-time-desc {
    max-height: 64px;
    line-height: 32px;
    font-size: 14px;
    color: #9ca3af;
    overflow: hidden;
}
.ty-time-more {
    height: 32px;
    padding: 0 16px;
    line-height: 32px;
    background: var(--primary-color);
    color: #fff;
    user-select: none;
    align-self: flex-start;
}

/* ---------- 列表：默认横排（红色文化 / 封神 / 奥秘探索） ---------- */
.ty-list-box {
    background: #fff;
    padding-left: 24px;
    padding-right: 24px;
}
.ty-list-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ty-mrow {
    display: flex;
    flex-direction: row;
    padding: 24px 0;
    border-bottom: 1px solid #d1d5db;
    text-decoration: none;
    color: inherit;
}
.ty-mrow:last-child {
    border-bottom: none;
}
.ty-mrow-img {
    width: 240px;
    height: 135px;
    flex-shrink: 0;
    margin-right: 24px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
}
.ty-mrow-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.ty-mrow-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}
.ty-mrow-desc {
    font-size: 14px;
    color: #9ca3af;
    padding-top: 8px;
}
.ty-mrow-date {
    font-size: 14px;
    color: #9ca3af;
    padding-top: 8px;
}

/* ---------- 空态 ---------- */
.ty-empty {
    height: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 30px;
    color: #6b7280;
    border: 1px solid #f3f4f6;
    margin: 24px;
}

/* ---------- 分页 ---------- */
.ty-pager {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 24px 0 16px;
}
.ty-pager-item {
    min-width: 40px;
    padding: 0 5px;
    margin: 0 5px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    user-select: none;
    color: #333;
}
.ty-pager-item:hover {
    background: #f3f4f6;
}
.ty-pager-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
