@charset "UTF-8";
/* =================================================
   博识小说网 - 轻萌治愈系主题层 theme-cute.css
   定位：Q版萌系 + 松弛社区感 + 低压力阅读
   ================================================= */

/* 马卡龙柔色体系 */
:root {
    --primary: #7B5EA7;
    --primary-dark: #6A4D91;
    --secondary-pink: #FFB3C7;
    --secondary-blue: #8FD3E6;
    --accent-yellow: #FFD166;
    --bg-base: #FFF7FB;
    --bg-soft: #FFF7FB;
    --bg-card: #fff;
    --border-soft: #F2E5EE;
    --border-mid: #E8DBE4;
    --text-main: #4A3F5C;
    --text-sub: #7C7190;
    --text-light: #A89BB9;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow: 0 4px 14px rgba(123, 94, 167, 0.08);
    --shadow-hover: 0 12px 28px rgba(123, 94, 167, 0.14);
    --gradient: linear-gradient(135deg, #7B5EA7 0%, #C8B2E8 100%);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 字体：标题软萌、正文清晰 */
html {
    font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.page-title,
.footer-col h4,
.banner-rank h4,
.side-title,
.filter-label,
.catabox p strong,
.hjbox-hd b {
    font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body {
    color: var(--text-main);
    background: var(--bg-base);
}

/* 全局圆角化 */
.home-class-nav,
.home-section,
.banner-slider,
.banner-rank,
.home-notice,
.home-quick,
.quick-item,
.comic-item,
.topic-card,
.news-item,
.side-section,
.detail-card,
.class-card,
.page-header,
.filter-bar,
.breadcrumb,
.hjbox,
.links,
.rank,
.flshow,
.game_rec,
.login-box,
.comment-box,
.locker-box,
.empty-tip {
    border-radius: var(--radius-lg) !important;
}

.home-class-nav,
.home-section,
.banner-rank,
.side-section,
.detail-card,
.class-card,
.filter-bar,
.hjbox,
.links,
.rank,
.flshow,
.game_rec {
    box-shadow: var(--shadow);
    transition: box-shadow 0.35s var(--ease-bounce), transform 0.35s var(--ease-bounce);
}

/* 图片统一大圆角 */
.comic-cover,
.comic-cover img,
.topic-card-cover,
.topic-card-cover img,
.news-cover,
.news-cover img,
.class-card-cover,
.class-card-cover img,
.recommend-cover,
.recommend-cover img,
.banner-slide,
.banner-slide img,
.hj-item img,
.app-grid li a img,
.news-grid li a img,
.class-nav-icon,
.foot-list li img {
    border-radius: var(--radius) !important;
    overflow: hidden;
}

/* 胶囊按钮 / 标签 */
.comic-btn,
.class-card-btn,
.section-more,
.notice-more,
.filter-tag,
.header-action-item,
.search-btn,
.search-input,
.quick-item,
.banner-dot,
.catabox p a,
.slide-list a,
.class-item,
.tag-item,
.notice-more,
.go-top,
.login-btn,
button.layui-btn,
.layui-btn,
.button-book,
.chapter-part-find,
.chapter-thumb,
.chapter-part-find li,
.book-main-left,
.detail-main {
    border-radius: 999px !important;
}

.chapter-part-find,
.chapter-thumb,
.book-main-left,
.detail-main {
    border-radius: var(--radius-lg) !important;
}

.chapter-page-btn.active:after {
    width: 20px !important;
    height: 5px !important;
    border-radius: 999px !important;
    margin-left: -10px !important;
    background: var(--secondary-pink) !important;
}

/* 主按钮柔化上浮 */
.comic-btn,
.class-card-btn,
.notice-more,
.section-more,
.quick-item,
.filter-tag.active,
.catabox p a:hover,
.slide-list a:hover {
    transition: all 0.3s var(--ease-bounce);
}

.comic-btn:hover,
.class-card-btn:hover,
.notice-more:hover,
.section-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 卡片悬浮 */
.comic-item:hover,
.topic-card:hover,
.class-card:hover,
.news-item:hover,
.hj-item:hover,
.app-grid li:hover,
.news-grid li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.class-nav-item:hover .class-nav-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* 分类金刚位图标 / 金刚位入口按钮：统一复用页脚渐变（与 footer.footer-base 一致） */
.class-nav-icon,
.quick-item {
    background: var(--gradient) !important;
    color: #fff;
}

.quick-name,
.class-nav-icon span {
    text-shadow: 0 1px 2px rgba(74, 63, 92, 0.18);
}

/* 弱化实线：章节标题、榜单标题、合集标题改为虚线或波浪 */
.section-header,
.rank-col-title,
.hjbox-hd,
.catabox,
.detail-card .section-header {
    border-bottom: 2px dashed var(--border-mid) !important;
}

.section-header .title-icon,
.rank-col-title .title-icon,
.side-title .title-icon,
.banner-rank h4 .nav-icon {
    display: inline-block;
    margin-right: 6px;
    color: var(--accent-yellow);
    animation: cuteTwinkle 2.5s ease-in-out infinite;
}

/* 热门 / 连载 / 完结 标签改为马卡龙色 */
.comic-badge,
.class-card-badge,
.comic-tag,
.topic-tag,
.status-tag {
    border-radius: 999px !important;
    background: var(--secondary-pink) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 2px 6px rgba(255, 179, 199, 0.3);
}

.comic-tag-end,
.status-end {
    background: var(--secondary-blue) !important;
    color: #3a6d7c !important;
    box-shadow: 0 2px 6px rgba(143, 211, 230, 0.3);
}

.hot-badge,
.recommend-badge,
.rank-num:first-child,
.rank-num.hot {
    background: var(--accent-yellow) !important;
    color: #7a5e1f !important;
}

/* 排名前三徽章 */
.rank-col li:nth-child(2) span,
.rank-col li:nth-child(3) span,
.rank-col li:nth-child(4) span,
.side-num:nth-child(1),
.side-num.top3 {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
}

/* 搜索框更柔和 */
.search-input {
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 1px 4px rgba(123, 94, 167, 0.04);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(123, 94, 167, 0.08);
}

/* 导航下划线改为圆点胶囊 */
.nav-item.active::after {
    height: 5px !important;
    border-radius: 999px !important;
    bottom: -4px !important;
    background: var(--secondary-pink) !important;
}

/* 页头 */
#header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 10px rgba(123, 94, 167, 0.05);
}

/* Logo 下轻量域名 */
.header-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-domain {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 2px;
    letter-spacing: 0.05em;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 页脚：奶油渐变 + 小字域名 */
footer.footer-base {
    background: linear-gradient(135deg, #7B5EA7 0%, #C8B2E8 100%) !important;
}

.footer-domain {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

/* 滚动条柔色 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--border-mid);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 小怪兽加载动画 */
.cute-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(255, 247, 251, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
}

.cute-loading::before {
    content: "";
    display: block;
    width: 86px;
    height: 86px;
    background: url("../images/mascot.svg") no-repeat center / contain;
    animation: mascotBounce 1.2s var(--ease-bounce) infinite;
}

.cute-loading::after {
    content: "小怪兽正在搬书…";
    font-size: 14px;
    color: var(--text-sub);
    letter-spacing: 0.05em;
}

/* 空状态 */
.cute-empty,
.empty-state,
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cute-empty::before,
.empty-state::before,
.no-data::before {
    content: "";
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: url("../images/mascot.svg") no-repeat center / contain;
    opacity: 0.8;
    animation: mascotShake 2s ease-in-out infinite;
}

.cute-empty::after {
    content: "这里还空着呢，去首页嗑文吧~";
    display: block;
    font-size: 14px;
}

/* 催更 / 种草 / 嗑到了 按钮占位样式，便于模板统一调用 */
.btn-cuigeng,
.btn-zhongcao,
.btn-kedao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-bounce);
}

.btn-cuigeng {
    background: #FFF0F3;
    color: #A85F73;
}
.btn-cuigeng:hover {
    background: var(--secondary-pink);
    color: #7a3f52;
}

.btn-zhongcao {
    background: #F0FAFD;
    color: #4E8594;
}
.btn-zhongcao:hover {
    background: var(--secondary-blue);
    color: #2f5f6c;
}

.btn-kedao {
    background: #FFF8E6;
    color: #9A7B2E;
}
.btn-kedao:hover {
    background: var(--accent-yellow);
    color: #6d5519;
}

/* 等级徽章柔化 */
.level-icon,
[class*="level"] {
    border-radius: 999px !important;
    font-family: inherit;
}

/* 动效关键帧 */
@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.05); }
    60% { transform: translateY(4px) scale(0.98); }
}

@keyframes mascotShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-6deg); }
    40% { transform: rotate(6deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
}

@keyframes cuteTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* 点击小心心/星星彩蛋由 theme-cute.js 注入，此处提供样式 */
.cute-particle {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-size: 18px;
    animation: particleFloat 0.9s var(--ease-bounce) forwards;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
    100% { transform: translate(0, -70px) scale(1.1); opacity: 0; }
}

/* 响应式小兜底 */
@media (max-width: 768px) {
    .home-class-nav,
    .home-section,
    .banner-rank,
    .side-section,
    .detail-card,
    .class-card,
    .filter-bar,
    .hjbox,
    .links,
    .rank,
    .flshow,
    .game_rec {
        border-radius: var(--radius) !important;
    }
}
