/* 子页面统一样式 — 与 index.html 首页排版一致 */

.page-header {
    margin: 1rem 0 1.2rem;
}

.page-header h1,
.detail-info h1,
.kw-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(125deg, #562B7C, #C45B86);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.page-sub {
    color: #7D669E;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    line-height: 1.6;
}

.section-title,
.section-heading {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 1.8rem 0 1rem;
    padding-left: 0.6rem;
    border-left: 5px solid #FF9A76;
    color: #562B7C;
}

.section-title i {
    margin-right: 0.35rem;
    color: #FF9A76;
}

/* 漫画卡片 — 同首页 */
.manga-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: inherit;
    display: block;
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 28px -12px rgba(129, 83, 167, 0.25);
    background: white;
}

.card-img {
    width: 100%;
    aspect-ratio: 2 / 2.6;
    object-fit: cover;
    background: #EADDF0;
    transition: transform 0.4s;
}

.manga-card:hover .card-img {
    transform: scale(1.02);
}

.card-info {
    padding: 0.8rem 0.7rem 1rem;
}

.manga-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #201A30;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-desc {
    font-size: 0.7rem;
    color: #756B8C;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-grid,
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* 漫画详情页 */
.detail-hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 1rem 0 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 2.6;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(129, 83, 167, 0.2);
}

.detail-info h1 {
    font-size: 1.8rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.meta-tag {
    background: rgba(192, 132, 252, 0.15);
    color: #A155B9;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.detail-desc,
.seo-article,
.cat-intro {
    color: #5D4A77;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.cat-intro,
.seo-article {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1.5rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

.chapter-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 1rem;
    padding: 0.9rem 0.8rem;
    text-decoration: none;
    color: #2D1B4E;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: 0.2s;
}

.chapter-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(129, 83, 167, 0.15);
    color: #E25E8C;
}

/* 关键词专题页 */
.kw-page p {
    color: #5D4A77;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.kw-list {
    list-style: none;
    padding: 0;
}

.kw-list li {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #5D4A77;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(192, 132, 252, 0.1);
}

.content-panel {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.footer-sub {
    margin-top: 6px;
    font-size: 0.68rem;
    color: #9A88B5;
}

.error-box {
    text-align: center;
    padding: 5rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    margin: 2rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.error-box h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(125deg, #562B7C, #C45B86);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.error-box p {
    color: #7D669E;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .detail-hero {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .detail-info h1 {
        font-size: 1.2rem;
    }

    .sub-grid,
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .nav-logo-text {
        font-size: 1.3rem;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
