/* ================= 🌸 全局样式 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent; 
}

body {
    background: radial-gradient(circle at 10% 20%, #FFF5F7 0%, #FFF0F2 50%, #FFE9F0 100%);
    min-height: 100vh;
    padding: 24px 0 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* 桌面端左右蕾丝花边 */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0; width: 120px; height: 100%;
    background: radial-gradient(circle, rgba(255, 200, 210, 0.2) 20%, transparent 20%),
                radial-gradient(circle, rgba(255, 200, 210, 0.2) 20%, transparent 20%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}
body::before { left: 0; }
body::after { right: 0; }
a {
    text-decoration: none;
    color: inherit;
}
/* ================= 🌸 动态樱花动画 ================= */
@keyframes fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.petal-container { 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 2; 
    overflow: hidden;
}

.petal {
    position: absolute;
    background: linear-gradient(135deg, #FFD1E0 0%, #FFB6C1 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    filter: drop-shadow(0 1px 2px rgba(255, 180, 200, 0.3));
    animation: fall linear infinite; 
}

/* ================= 🌸 主体内容容器 ================= */
.main-wrapper { width: 100%; max-width: 1200px; padding: 0 16px; z-index: 10; flex: 1; }

/* 👑 智能自适应导航头部 */
.pixel-header {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #FFD6DE; 
    border-radius: 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(255, 190, 205, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

.logo-area { font-size: 1.4rem; font-weight: 900; color: #D69AA0; white-space: nowrap; cursor: pointer; }
.logo-area span { color: #FF8DA1; font-style: italic; }

/* 电脑端分类列表 */
.nav-container { display: flex; align-items: center; }
.pixel-nav { display: flex; list-style: none; gap: 4px; }
.nav-link { font-size: 0.95rem; color: #D69AA0; font-weight: 700; padding: 6px 14px; text-decoration: none; white-space: nowrap; transition: all 0.2s; }
.nav-link.active { color: #FFFFFF; background: #FF9EAF; border-radius: 20px; box-shadow: 0 2px 5px rgba(255, 158, 175, 0.3); }

/* 右侧工具栏 */
.right-actions { display: flex; align-items: center; gap: 16px; color: #D69AA0; }
.action-icon { cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s; padding: 4px; }
.action-icon:hover { color: #FF8DA1; }
.action-icon.active {
  color: #FF8DA1;
}
.hamburger-icon { display: none; }

/* Banner 区域 */
.pixel-banner-box { width: 100%; height: 250px; border-radius: 12px; border: 1px solid #FFD6DE; overflow: hidden; position: relative; box-shadow: 0 4px 12px rgba(255, 190, 205, 0.3); }
.banner-core { width: 100%; height: 100%; background-image: url('https://googleusercontent.com/image_generation_content/2'); background-size: cover; background-position: center; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; margin-top: 28px; }
.title-left { display: flex; align-items: center; gap: 8px; }
.index-title-icon {
    width: 3rem;
}
.main-title { font-size: 1.15rem; font-weight: 800; color: #C98892; }
.sub-info { font-size: 0.85rem; color: #D69AA0; }
.more-text { color: #D69AA0; font-weight: 700; cursor: pointer; transition: color 0.2s; font-size: 0.9rem; white-space: nowrap; }
.more-text:hover { color: #FF8DA1; }

/* 🖥️ PC端核心强制网格系统：完美一行平铺 6 个卡片 */
.pixel-grid { 
    display: grid; 
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px; 
}

.comic-item-card { cursor: pointer; width: 100%; }
.cover-wrap { border: 1px solid #FFD6DE; border-radius: 8px; position: relative; overflow: hidden; padding-top: 135%; box-shadow: 0 2px 6px rgba(255, 190, 205, 0.2); background: #FFF; }
.cover-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.3s ease; }

.comic-item-card:hover .cover-image { transform: scale(1.05); }

.mini-badge { 
    position: absolute; top: 0; right: 0; z-index: 3;
    background: #FF9EAF; 
    color: #FFFFFF; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-bottom-left-radius: 8px; 
}

.visible-rating {
    position: absolute; bottom: 8px; left: 8px; z-index: 4;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 214, 222, 0.6);
    padding: 2px 7px; border-radius: 6px;
    font-size: 0.75rem; color: #B3868D; font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 180, 200, 0.15);
}

/* 修正首页的漫画标题样式，彻底解决长标题撑爆问题 */
.comic-title { font-size: 0.9rem; font-weight: 600; color: #B3868D; transition: color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 2px 4px 2px; text-align: left; }
.comic-item-card:hover .comic-title { color: #FF8DA1; }
/* 🏷️ 标签行样式（增加高度防撑崩、防换行溢出保护） */
.comic-tag-info { 
    font-size: 0.78rem; 
    color: #D69AA0; 
    padding: 0 2px; 
    text-align: left; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    opacity: 0.85; 
    display: block;
    width: 100%;
}

/* ================= 🌸 全局半透明毛玻璃遮罩 ================= */
.global-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 235, 240, 0.4);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 999; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.global-overlay.active { opacity: 1; pointer-events: auto; }

/* 📱 手机端右侧分类抽屉面板 */
.menu-drawer {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: rgba(255, 255, 255, 0.96); border-left: 1px solid #FFD6DE;
    box-shadow: -4px 0 20px rgba(255, 190, 205, 0.15); z-index: 1000; padding: 24px;
    display: flex; flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-drawer.active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer-title { font-size: 1.1rem; font-weight: 800; color: #C98892; }
.drawer-close { cursor: pointer; color: #D69AA0; padding: 4px; }
.drawer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.drawer-nav-item a {
    display: block; padding: 12px 16px; border-radius: 8px; color: #D69AA0; font-weight: 700; text-decoration: none; font-size: 1rem; transition: all 0.2s;
}
.drawer-nav-item a.active, .drawer-nav-item a:hover { color: #FFFFFF; background: #FF9EAF; box-shadow: 0 2px 6px rgba(255, 158, 175, 0.2); }

/* ✉️/🔍 独立弹窗通用样式（反馈 & 搜索） */
.global-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 440px; background: #FFF; border: 1px solid #FFD6DE;
    border-radius: 16px; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none;
    box-shadow: 0 10px 30px rgba(255, 180, 195, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.global-modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-title { font-size: 1.15rem; font-weight: 800; color: #C98892; margin-bottom: 16px; text-align: center; }

.modal-input {
    width: 100%; height: 42px; border: 1px solid #FFD6DE; border-radius: 21px;
    padding: 0 18px; font-size: 0.95rem; color: #B3868D; outline: none;
    background: #FFF9FA; transition: border-color 0.2s;
}
.modal-textarea {
    width: 100%; height: 120px; border: 1px solid #FFD6DE; border-radius: 8px;
    padding: 12px; font-size: 0.9rem; color: #B3868D; outline: none; resize: none;
    background: #FFF9FA; transition: border-color 0.2s;
}
.modal-input:focus, .modal-textarea:focus { border-color: #FF9EAF; background: #FFF; }

.modal-btn-group { display: flex; gap: 12px; margin-top: 18px; }
.modal-btn {
    flex: 1; height: 40px; border-radius: 20px; border: none; font-weight: 700; cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.btn-cancel { background: #FFF0F2; color: #D69AA0; }
.btn-submit { background: #FF9EAF; color: #FFF; box-shadow: 0 2px 6px rgba(255, 158, 175, 0.2); }
.btn-submit:hover { background: #FF8DA1; }
.index-title-icon {
    width: 3rem;
}
/* ==========================================================
   🌸 经典粉嫩像素风纯静态链接分页系统核心样式
   ========================================================== */

/* 分页包裹容器 */
.pagination-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 6px;                  /* 按钮之间的像素间距 */
    margin: 40px 0 60px 0;     /* 上下外边距，拉开与网格及页脚的距离 */
    user-select: none;         /* 防止用户快速点击时双击选中文字变蓝 */
    width: 100%;
}

/* 基础通用页码方块（包括上一页/下一页） */
.page-link {
    min-width: 36px; 
    height: 36px; 
    padding: 0 8px; 
    background: rgba(255, 255, 255, 0.85); /* 半透明高级感背景 */
    border: 1px solid #FFD6DE;             /* 专属粉嫩边框色 */
    border-radius: 8px;                    /* 微微圆角，符合宝藏小众软萌画风 */
    color: #D69AA0;                        /* 柔和的复古粉褐文字色 */
    font-size: 0.88rem;
    font-weight: 700;                      /* 粗体字，更加显眼 */
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; 
    transition: all 0.2s ease-in-out;      /* 丝滑的渡越动画 */
}

/* 悬浮交互：鼠标放上去时的像素粉发光反馈 */
.page-link:hover { 
    background: #FFF0F2; 
    color: #FF8DA1; 
    border-color: #FF8DA1; 
    transform: translateY(-1px);           /* 微微向上悬浮，增加点击欲 */
}

/* 状态：当前高亮激活页的专属像素粉背景 */
.page-link.active { 
    background: #FF9EAF; 
    color: #FFFFFF !important; 
    border-color: #FF9EAF; 
    box-shadow: 0 3px 8px rgba(255, 158, 175, 0.35); /* 底部像素粉呼吸霓虹阴影 */
    pointer-events: none;                  /* 激活状态下彻底禁用鼠标交互 */
    transform: none;
}

/* 状态：无法点击的禁用页（如第一页的“◀”或最后一页的“▶”） */
.page-link.disabled { 
    background: rgba(245, 245, 245, 0.5);  /* 变灰变淡 */
    border-color: #FFE5E9; 
    color: #E0C0C5; 
    cursor: not-allowed;                   /* 鼠标指针变成禁用禁行图标 */
    pointer-events: none;                  /* 彻底切断任何点击事件 */
    box-shadow: none;
    transform: none;
}

/* 省略号的样式 */
.page-ellipsis { 
    color: #D69AA0; 
    font-weight: 700; 
    padding: 0 4px; 
    font-size: 0.9rem;
    letter-spacing: 1px;                   /* 让三个点稍微拉开一点间距 */
}

/* ================= 📱 手机移动端自适应完美方案 ================= */
@media (max-width: 768px) {
    .pagination-container { 
        gap: 4px;                          /* 手机端间距缩窄，防止横向塞不下 */
        margin: 30px 0 40px 0; 
    }
    
    .page-link { 
        min-width: 32px;                   /* 手机端方块整体按比例缩小 */
        height: 32px; 
        font-size: 0.82rem; 
        border-radius: 6px;                /* 圆角同步微调 */
        padding: 0 5px;
    }
    
    .page-ellipsis {
        padding: 0 2px;
        font-size: 0.8rem;
    }
}
/* ================= 🌸 Footer 页脚样式 ================= */
.pixel-footer {
    width: 100%; margin-top: 60px; padding: 30px 20px; background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid #FFD6DE; text-align: center; font-size: 0.85rem; color: #D69AA0; z-index: 10;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; list-style: none; }
.footer-links a { color: #D69AA0; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: #FF8DA1; }

/* ================= 📱 手机移动端媒体查询断点 ================= */
@media (max-width: 768px) {
    body { padding: 12px 0 0 0; }
    body::before, body::after { display: none; } 
    
    .pixel-header { height: 52px; padding: 0 14px; margin-bottom: 12px; border-radius: 10px; }
    .nav-container { display: none; } 
    .right-actions { gap: 14px; }
    .action-icon svg { width: 20px !important; height: 20px !important; }
    .hamburger-icon { display: flex; }

    .pixel-banner-box { height: auto; border-radius: 8px; }
    
    /* 📱 手机端自适应：一行放 3 个小卡片 */
    .pixel-grid { 
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px; 
    }
    
    .cover-wrap { border-radius: 6px; }
    .visible-rating { bottom: 4px; left: 4px; padding: 1px 5px; font-size: 0.7rem; border-radius: 4px; }
    .comic-title { font-size: 0.82rem; padding-top: 6px; }
    .section-header { margin-top: 20px; margin-bottom: 10px; }
    .main-title { font-size: 1.05rem; }
    .pixel-footer { margin-top: 40px; padding: 24px 16px; }
}

/* ==========================================================
🌸 经典粉嫩像素风：友情链接核心响应式网格
========================================================== */

/* 🖥️ PC端默认：核心强制网格系统，完美一行平铺 10 个链接 */
.pixel-friend-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important; /* 🎯 精准限定一行10个 */
    gap: 12px 10px; /* 行间距 12px，列间距 10px */
    width: 100%;
}

/* 🔗 单个友链超链接：完全承袭你的 .page-link 软萌像素块设计规范 */
.pixel-friend-grid .friend-item {
    height: 36px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.85); /* 半透明高级感背景 */
    border: 1px solid #FFD6DE;             /* 专属粉嫩边框色 */
    border-radius: 8px;                    /* 圆角对齐你的UI体系 */
    color: #D69AA0;                        /* 柔和的复古粉褐文字色 */
    font-size: 0.82rem;
    font-weight: 700;                      /* 粗体字更清晰 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    
    /* 🛡️ 极端字数防撑崩金钟罩 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

/* ✨ 悬浮交互：与你的分页码保持绝对一致的向上悬浮及发光反馈 */
.pixel-friend-grid .friend-item:hover {
    background: #FFF0F2;
    color: #FF8DA1;
    border-color: #FF8DA1;
    transform: translateY(-2px); /* 微微向上悬浮，增加点击反馈 */
    box-shadow: 0 4px 10px rgba(255, 141, 161, 0.2);
}

/* ================= 📱 WAP 手机移动端自适应完美覆盖 ================= */
@media (max-width: 768px) {
    /* 🎯 核心：手机移动端完美强制切换为一行 4 个 */
    .pixel-friend-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px 6px; /* 手机端间距轻微收紧，防止超出屏幕 */
    }

    .pixel-friend-grid .friend-item {
        height: 32px;          /* 手机端按比例缩小高度 */
        font-size: 0.78rem;    /* 字体略微缩小，更显精致 */
        border-radius: 6px;    /* 圆角同步微调 */
        padding: 0 2px;
    }
}
/* ==========================================================
   🌸 终极合体补丁：强力横向铁轨 + 图片原比例粉色垫底
   ========================================================== */

/* 1. 🎯 重建底层铁轨：强制让包裹层横向 flex 排布（解决PC只显一张、手机垂直堆叠的根本原因） */
.banner-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

/* 2. 🎯 铁轨滑块约束：强制单页滑块宽度 100% 且绝对不准缩水 */
.banner-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;           /* 极其重要：死守横向排列，绝不垂直漏出 */
    background-color: #FFF0F2 !important; /* 你网站标志性的可爱粉色垫底，把白边变主题边框 */
}

/* 3. 🎯 终极图片处理：利用 contain 自带的完美居中，不裁剪、不变形、不留死白 */
.banner-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;      /* 完美等比例包裹，高度不够时上下自动留出粉色 */
    display: block !important;
}

/* 4. PC端：死守你原本完美的 250px 骨架 */
.banner-swiper {
    width: 100%;
    height: 250px !important;
    overflow: hidden !important;
}

/* 5. 📱 手机端自适应锁死：纠正原代码 height: auto 导致的垂直撑爆 */
@media screen and (max-width: 768px) {
    .pixel-banner-box {
        height: 150px !important;        /* 强制覆盖掉原代码第276行的 height: auto，锁死高度 */
    }
    .banner-swiper {
        height: 150px !important;
        overflow: hidden !important;
    }
    .banner-swiper .swiper-slide img {
        height: 150px !important;
        object-fit: cover !important;
    }
}



