/* ======= 图标基础 ======= */
.logo-icon { font-size: 1.6rem; color: var(--color-secondary); }

/* ======= 年龄确认弹窗 ======= */
.age-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.age-modal.is-visible {
    display: flex;
}

.age-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.age-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    padding: 56px 56px;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(255, 255, 255, 0.02) 32%, transparent 48%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.02), transparent 30%, rgba(255, 0, 128, 0.08) 52%, transparent 68%),
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 82% 76%, rgba(255, 255, 255, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(12, 12, 12, 0.94), rgba(5, 5, 5, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.age-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 75% at 15% 12%, rgba(255, 255, 255, 0.08), transparent 36%),
        radial-gradient(90% 90% at 85% 24%, rgba(255, 255, 255, 0.04), transparent 38%),
        linear-gradient(128deg, rgba(255, 255, 255, 0.05) 0%, transparent 24%, rgba(255, 255, 255, 0.02) 36%, transparent 52%, rgba(255, 0, 128, 0.08) 68%, transparent 82%),
        linear-gradient(32deg, transparent 0%, rgba(255, 255, 255, 0.03) 22%, transparent 42%, rgba(255, 255, 255, 0.02) 58%, transparent 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.age-modal__dialog::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 28%, rgba(255, 255, 255, 0.015) 45%, transparent 63%),
        linear-gradient(25deg, transparent 0%, rgba(255, 255, 255, 0.025) 16%, transparent 30%, rgba(255, 255, 255, 0.018) 48%, transparent 66%, rgba(255, 0, 128, 0.05) 84%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
}

.age-modal__brand,
.age-modal__title,
.age-modal__text,
.age-modal__actions {
    position: relative;
    z-index: 1;
}

.age-modal__brand {
    margin-bottom: 20px;
    text-align: center;
}

.age-modal__logo {
    width: min(260px, 58vw);
    margin: 0 auto;
    filter: drop-shadow(0 0 22px rgba(255, 55, 165, 0.28)) drop-shadow(0 10px 34px rgba(71, 86, 255, 0.2));
}

.age-modal__title {
    margin-bottom: 26px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.15;
    background: linear-gradient(180deg, #ffc1e7 0%, #ff6fd6 28%, #ff31bb 55%, #ff8ec8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255, 72, 179, 0.14);
}

.age-modal__text {
    max-width: 760px;
    margin: 0 auto 42px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.96);
}

.age-modal__actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.age-modal__btn {
    min-width: 260px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.age-modal__btn--ghost {
    background: transparent;
    color: var(--color-white);
}

.age-modal__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.age-modal__btn--primary {
    border-color: transparent;
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
}

.age-modal__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 0, 128, 0.28);
}

/* ======= 图片广告弹窗 ======= */
.ad-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ad-modal.is-visible {
    display: flex;
}

.ad-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.ad-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ad-modal__link {
    display: block;
}

.ad-modal__image {
    display: block;
    width: 100%;
    height: auto;
}

.ad-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 1.25rem;
    transition: var(--transition);
}

.ad-modal__close:hover {
    background: rgba(255, 46, 166, 0.9);
}

/* ======= 主内容区 ======= */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 20px;
    color: #fff;
}

/* 横幅广告 */
.banner-ads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.banner-ad {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #120812;
    border: 1px solid rgba(255, 79, 184, 0.16);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.banner-ad img {
    width: 100%;
    aspect-ratio: 15 / 2;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-ad:hover img {
    transform: scale(1.02);
}

/* 分类筛选 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 10px;
    background: #111;
}

.tab {
    min-width: 72px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #242424;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.tab:hover,
.tab.active {
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
}

.empty-state {
    padding: 36px 20px;
    border-radius: 10px;
    background: #111;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

/* 新闻列表(一行一个) */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.news-card {
    position: relative;
    aspect-ratio: 24 / 7;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #140914, #251225);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.news-card.news-card--ad {
    display: block;
    aspect-ratio: auto;
    background: transparent;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 封面背景图 */
.news-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
}

.news-card:hover .news-thumb { transform: scale(1.08); }

/* 渐变遮罩(整体变暗,让居中文字更清晰) */
.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.6));
    z-index: 1;
    pointer-events: none;
}

.news-card.news-card--ad::before {
    display: none;
}

.news-card--ad .news-ad-image {
    display: block;
    width: 100%;
    aspect-ratio: 15 / 2;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card.news-card--ad:hover .news-ad-image {
    transform: scale(1.02);
}

/* 内容:上下左右居中 */
.news-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 30px;
    color: var(--color-white);
}

.news-cat {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    max-width: 800px;
}

.news-card:hover .news-title { color: var(--color-secondary); }

.news-card--ad .news-cat--ad {
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
}

.news-desc { display: none; }

.news-meta {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    justify-content: center;
}

.news-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 加载更多 */
.load-more {
    display: block;
    margin: 35px auto 10px;
    padding: 11px 50px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 25px;
    color: #fff;
    font-size: 0.92rem;
    transition: var(--transition);
}

.load-more:hover {
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: var(--color-white);
    border-color: transparent;
}

/* ======= 详情页 ======= */
.detail-main {
    padding-top: 25px;
}

.detail-article {
    overflow: hidden;
    border-radius: 12px;
    background: #0d050d;
    border: 1px solid rgba(255, 79, 184, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.detail-hero {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.detail-cat {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 1;
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 4px;
    background: var(--color-secondary);
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-content {
    padding: 32px 34px 36px;
    background: linear-gradient(180deg, #120812, #080308);
}

.detail-title {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.35;
    color: #fff;
    margin-bottom: 14px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.detail-body {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.detail-body .post-item,
.detail-body p {
    max-width: 760px;
    margin: 0 auto 18px;
}

.detail-body .post-item:has(img) {
    max-width: none;
    margin: 22px auto;
}

.detail-body p + p {
    margin-top: 16px;
}

.detail-body img {
    display: block;
    width: min(100%, 680px);
    max-width: 100%;
    max-height: 760px;
    height: auto;
    margin: 18px auto;
    object-fit: contain;
    border-radius: 16px;
    cursor: zoom-in;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 0, 7, 0.86);
    backdrop-filter: blur(10px);
}

.image-viewer.show {
    display: flex;
}

.image-viewer img {
    max-width: min(100%, 1100px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.image-viewer__close {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

body.preview-open {
    overflow: hidden;
}

.collected-player {
    margin: 20px 0;
    padding: 12px;
    border: 1px solid rgba(255, 79, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.collected-video {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
}

.collected-video-link {
    display: inline-flex;
    margin-top: 10px;
    color: #ff8bd5;
    font-size: 0.88rem;
}

.detail-actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 24px;
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-back:hover {
    color: #fff;
    background: #ff2ea6;
}

/* 详情页推荐和评论区 */
.recommend-section,
.comment-section {
    margin-top: 34px;
    padding: 22px;
    border-radius: 12px;
    background: #0d050d;
    border: 1px solid rgba(255, 79, 184, 0.14);
}

.section-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.recommend-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    background: #140914;
    border: 1px solid rgba(255, 79, 184, 0.12);
    color: #fff;
}

.recommend-card:hover {
    color: #fff;
    border-color: rgba(255, 0, 128, 0.48);
}

.recommend-thumb {
    min-height: 84px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #1b1b1b;
}

.recommend-info {
    min-width: 0;
}

.recommend-cat {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.recommend-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.recommend-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
}

.recommend-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-form {
    padding: 10px;
    margin-bottom: 30px;
    background: #140914;
    border: 1px solid rgba(255, 79, 184, 0.12);
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
}

.comment-form textarea {
    min-height: 92px;
    padding: 14px 16px;
    resize: vertical;
}

.comment-form input {
    height: 52px;
    padding: 0 16px;
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: #b8d4f0;
}

.comment-form__row {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 30px;
    margin-top: 14px;
}

.comment-form button {
    min-height: 52px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff2ea6, #ff8bd5);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.comment-list {
    display: grid;
    gap: 24px;
}

.comment-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    color: #fff;
}

.comment-avatar {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff4fb8;
    font-size: 2.7rem;
    line-height: 1;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.comment-name {
    color: #ff8bd5;
    font-weight: 700;
    font-size: 0.92rem;
}

.comment-reply {
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
}

.comment-time {
    margin-top: 4px;
    color: #b8d4f0;
    font-size: 0.86rem;
}

.comment-text {
    margin-top: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.94rem;
    word-break: break-word;
}

.comment-empty {
    padding: 24px;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

/* ======= 响应式 ======= */
@media (max-width: 768px) {
    .age-modal {
        padding: 16px;
    }

    .age-modal__dialog {
        width: min(100%, 560px);
        padding: 38px 22px 28px;
        border-radius: 14px;
    }

    .age-modal__logo {
        width: min(200px, 62vw);
    }

    .age-modal__text {
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .age-modal__actions {
        flex-direction: column;
        gap: 14px;
    }

    .age-modal__btn {
        width: 100%;
        min-width: 0;
        padding: 16px 20px;
    }

    .ad-modal {
        padding: 16px;
    }

    .ad-modal__dialog {
        width: min(100%, 320px);
        border-radius: 14px;
    }

    .ad-modal__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .main { padding: 18px 12px; }
    .banner-ads { gap: 10px; margin-bottom: 14px; }
    .banner-ad img { aspect-ratio: 16 / 4; }
    .category-tabs { display: none; }
    .tab { min-width: auto; padding: 8px 14px; font-size: 0.84rem; }
    .news-list { gap: 12px; }
    .news-card { aspect-ratio: 16 / 7; }
    .news-card--ad .news-ad-image { aspect-ratio: 16 / 4; }
    .news-title { font-size: 1.15rem; margin-bottom: 6px; }
    .news-cat { font-size: 0.7rem; padding: 2px 10px; margin-bottom: 8px; }
    .news-meta {
        display: flex;
        font-size: 0.72rem;
        gap: 12px;
    }
    .news-body { padding: 14px; }
    .detail-main { padding-top: 18px; }
    .detail-hero { min-height: 220px; }
    .detail-cat { left: 16px; bottom: 16px; }
    .detail-content { padding: 22px 18px 26px; }
    .detail-body { font-size: 0.9rem; line-height: 1.85; }
    .detail-body img { width: 100%; max-height: none; border-radius: 12px; }
    .image-viewer { padding: 12px; }
    .recommend-section,
    .comment-section { margin-top: 18px; padding: 16px 12px; }
    .recommend-list { grid-template-columns: 1fr; gap: 10px; }
    .recommend-card { grid-template-columns: 104px 1fr; }
    .recommend-thumb { min-height: 76px; }
    .comment-form__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .comment-item {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }
    .comment-avatar {
        width: 44px;
        height: 44px;
        font-size: 2.35rem;
    }
}

@media (max-width: 480px) {
    .news-card { aspect-ratio: 16 / 8; }
    .news-title { font-size: 0.92rem; }
    .news-meta {
        display: flex;
        gap: 10px;
        font-size: 0.68rem;
    }
    .detail-hero { min-height: 180px; }
    .detail-content { padding: 20px 14px 24px; }
    .detail-meta { gap: 12px; font-size: 0.82rem; }
    .recommend-card { grid-template-columns: 92px 1fr; padding: 8px; }
    .recommend-info h3 { font-size: 0.84rem; }
}
