@charset "utf-8";
/* ==========================================================================
   首页专属样式 index.css
   依赖 common.css
   ========================================================================== */

/* ---------- 面包屑 / SEO 隐藏标题 ---------- */
.seo-h1 {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.breadcrumb {
    padding: 14px 0 0;
    font-size: 12px;
    color: var(--color-text-3);
}
.breadcrumb a { color: var(--color-text-2); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 6px; color: var(--color-text-3); }

/* ==========================================================================
   Hero Banner 推荐区
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin: 20px 0 36px;
}

/* 大轮播 */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, .6);
    background: #e4e7ec;
}

.hero-slider .slides { position: relative; }

.hero-slide {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 42%;
    background: center/cover no-repeat;
    background-color: #e4e7ec;
}

.hero-slide .hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}

.hero-slide .hero-caption {
    position: absolute;
    left: 30px;
    bottom: 30px;
    right: 45%;
    color: #fff;
    z-index: 2;
}

.hero-slide .hero-caption .hc-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 4px;
    margin-bottom: 10px;
}

.hero-slide .hero-caption h2 {
    font-size: 26px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-slide .hero-caption p {
    font-size: 13px;
    opacity: .9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播指示器与箭头 */
.hero-dots {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    gap: 7px;
    z-index: 3;
}

.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dots span.active {
    width: 24px;
    border-radius: 5px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    background: rgba(0,0,0,.25);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
}

.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--color-primary); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

/* 右侧推荐小图 */
.hero-side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.hero-side-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: center/cover no-repeat;
    background-color: #e4e7ec;
    transition: transform var(--transition);
}

.hero-side-card:hover { transform: translateY(-3px); }

.hero-side-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
}

.hero-side-card .hsc-text {
    position: absolute;
    left: 16px;
    bottom: 14px;
    right: 16px;
    z-index: 2;
    color: #fff;
}

.hero-side-card .hsc-text .hsc-rank {
    display: inline-block;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-side-card .hsc-text h3 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-side-card .hsc-text p {
    font-size: 12px;
    opacity: .85;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   漫画网格变体列数
   ========================================================================== */
.mh-grid.col-7 { grid-template-columns: repeat(7, 1fr); gap: 14px; }
.mh-grid.col-6 { grid-template-columns: repeat(6, 1fr); }
.mh-grid.col-5 { grid-template-columns: repeat(5, 1fr); }

/* ==========================================================================
   热门分类 Tab 区
   ========================================================================== */
.cat-tabs-wrap {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, .6);
    overflow: hidden;
}

.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--color-line);
}

.cat-tabs .ct-item {
    position: relative;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-2);
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition);
}

.cat-tabs .ct-item:hover { color: var(--color-primary); }

.cat-tabs .ct-item.active { color: var(--color-primary); font-weight: 600; }

.cat-tabs .ct-item.active::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-primary);
}

.cat-panes { padding: 20px 18px; }

.cat-pane { display: none; }
.cat-pane.active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   完结 / 连载 佳作 列表式布局
   ========================================================================== */
.showcase {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, .6);
    overflow: hidden;
}

.showcase-body {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 20px;
    padding: 20px;
}

/* 左侧详情大卡 */
.showcase-feature { display: flex; flex-direction: column; gap: 14px; }

.showcase-feature .sf-item {
    display: none;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.showcase-feature .sf-item.active { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px; }

.showcase-feature .sf-cover {
    width: 130px;
    padding-top: 172px;
    border-radius: 8px;
    background: center/cover no-repeat #e4e7ec;
}

.showcase-feature .sf-detail { display: flex; flex-direction: column; }

.showcase-feature .sf-detail h3 {
    font-size: 17px;
    color: var(--color-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-feature .sf-detail .sf-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.showcase-feature .sf-detail .sf-meta .sf-score {
    color: var(--color-text-3);
    font-size: 12px;
}
.showcase-feature .sf-detail .sf-meta .sf-score b {
    color: var(--color-accent);
    font-size: 15px;
    font-weight: 700;
}

.showcase-feature .sf-detail .sf-meta .sf-popular {
    font-size: 12px;
    color: var(--color-text-3);
}

.showcase-feature .sf-detail .sf-meta .sf-status {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
}
.showcase-feature .sf-detail .sf-meta .sf-status.end {
    color: #8a8aab;
    background: var(--color-tag);
}
.showcase-feature .sf-detail .sf-meta .sf-status.serial {
    color: var(--color-primary);
    background: var(--color-primary-l);
}

.showcase-feature .sf-detail .sf-author {
    font-size: 12px;
    color: var(--color-text-3);
    margin-bottom: 8px;
}
.showcase-feature .sf-detail .sf-author a { color: var(--color-text-2); }
.showcase-feature .sf-detail .sf-author a:hover { color: var(--color-primary); }

.showcase-feature .sf-detail .sf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.showcase-feature .sf-detail .sf-tags a {
    padding: 2px 8px;
    font-size: 11px;
    color: var(--color-text-2);
    background: var(--color-tag);
    border-radius: 4px;
}
.showcase-feature .sf-detail .sf-tags a:hover {
    color: var(--color-primary);
    background: var(--color-primary-l);
}

.showcase-feature .sf-detail .sf-desc {
    font-size: 12px;
    color: var(--color-text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.showcase-feature .sf-detail .sf-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.showcase-feature .sf-detail .sf-btn {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 16px;
    transition: background var(--transition);
}

.showcase-feature .sf-detail .sf-btn:hover { background: var(--color-primary-d); color: #fff; }

.showcase-feature .sf-detail .sf-btn-ghost {
    color: var(--color-text-2);
    background: transparent;
    border: 1px solid var(--color-line);
}
.showcase-feature .sf-detail .sf-btn-ghost:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-l);
}

/* 右侧小卡网格 */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.showcase-grid .mh-card .mh-cover { padding-top: 128%; }

/* ==========================================================================
   友情链接
   ========================================================================== */
.friend-link {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 22px;
}

.friend-link .fl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.friend-link .fl-head::before {
    content: "";
    width: 4px; height: 16px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.friend-link .fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-link .fl-list a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--color-text-2);
    background: var(--color-bg);
    border-radius: 16px;
    transition: all var(--transition);
}

.friend-link .fl-list a:hover { color: var(--color-primary); background: var(--color-primary-l); }

/* ==========================================================================
   响应式（首页补充）
   ========================================================================== */
@media (max-width: 1200px) {
    .mh-grid.col-7 { grid-template-columns: repeat(5, 1fr); }
    .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: 1fr; grid-template-columns: repeat(2, 1fr); }
    .mh-grid.col-7 { grid-template-columns: repeat(4, 1fr); }
    .showcase-body { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .hero-slide { padding-top: 52%; }
    .hero-slide .hero-caption { left: 16px; right: 30%; bottom: 16px; }
    .hero-slide .hero-caption h2 { font-size: 18px; }
    .hero-side { grid-template-columns: 1fr; grid-template-rows: repeat(2, 110px); }
    .hero-side-card { padding-top: 0; height: 110px; }
    .mh-grid.col-7,
    .mh-grid.col-6,
    .mh-grid.col-5 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .showcase-feature .sf-item.active { grid-template-columns: 100px 1fr; padding: 10px; }
    .showcase-feature .sf-cover { width: 100px; padding-top: 132px; }
}
