/*
Theme Name: LoliMeow (Clone)
Description: ACG游戏姬风格克隆
*/

/* ========== FONTS ========== */
@font-face {
    font-family: "boxmoe";
    src: url("https://acgyx.us/wp-content/themes/lolimeow-master/assets/fonts/alimama.woff2") format("woff2");
    font-display: swap;
}

/* ========== SCROLLBAR ========== */
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-track { border-radius: 5px; background-color: #DFE9EB; }
*::-webkit-scrollbar-track:hover { background-color: #B8C0C2; }
*::-webkit-scrollbar-track:active { background-color: #B8C0C2; }
*::-webkit-scrollbar-thumb { border-radius: 5px; background-color: #D87CFF; border: 2px solid #FFFFFF; }
*::-webkit-scrollbar-thumb:hover { background-color: #F59DFF; }
*::-webkit-scrollbar-thumb:active { background-color: #A34F9B; }

/* ========== CSS VARIABLES ========== */
:root {
    --bs-hui: #272727bf;
    --bs-primary-bg-subtle: #D87CFF;
    --bs-body-bg: #f5f5f5;
    --bs-body-color: #333;
    --bs-white: #fff;
    --bs-gray-600: #666;
    --bs-gray-700: #555;
    --bs-gray-800: #333;
    --bs-gray-900: #222;
    --card-bg: #fff;
    --card-border: #e8e8e8;
    --nav-bg: rgba(255,255,255,0.95);
    --banner-height: 580px;
    --accent: #D87CFF;
    --accent-hover: #F59DFF;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0e0e0e;
    --bs-body-color: #fff;
    --bs-white: #0e0e0e;
    --bs-gray-600: #fff;
    --bs-gray-700: #fff;
    --bs-gray-800: #fff;
    --bs-gray-900: #fff;
    --bs-hui: #fff;
    --card-bg: #1a1a1a;
    --card-border: #2a2a2a;
    --nav-bg: rgba(14,14,14,0.95);
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .text-inverse {
    filter: none;
}

/* ========== BASE ========== */
body {
    font-family: "boxmoe", "Microsoft JhengHei", Georgia, Times, serif, "Microsoft YaHei", "Open Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    overflow-x: hidden;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s, color 0.3s;
}

ol, ul, li { list-style: none; padding: 0; margin: 0; }
a {
    transition: all 300ms ease;
    letter-spacing: 0;
    color: var(--bs-body-color);
}
a:link, a:visited, a:hover, a:active { text-decoration: none; }
a:hover { color: var(--accent); }
p { color: var(--bs-gray-900); }

/* ========== NAVBAR ========== */
.boxmoe_header .navbar {
    padding: 0.5rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.boxmoe_header .navbar.scrolled {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}
.navbar-brand .text-inverse {
    background: linear-gradient(135deg, var(--accent), #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    border-radius: 8px;
    transition: all 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent);
    background: rgba(216,124,255,0.1);
}

/* Hamburger */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bs-body-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Search */
.search-box { margin-right: 0.5rem; }
.search-form {
    display: flex;
    align-items: center;
}
.search-input {
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    transition: width 0.3s, padding 0.3s;
    outline: none;
    color: var(--bs-body-color);
    font-size: 0.85rem;
}
.search-box:hover .search-input,
.search-input:focus {
    width: 160px;
    padding: 6px 12px;
    border-bottom: 2px solid var(--accent);
}
.search-btn, .mobile-search-btn {
    background: none;
    border: none;
    color: var(--bs-body-color);
    font-size: 1rem;
    padding: 6px 8px;
    cursor: pointer;
}
.search-btn:hover, .mobile-search-btn:hover { color: var(--accent); }

.mobile-search-form {
    display: flex;
    align-items: center;
}
.mobile-search-input {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 0.8rem;
    outline: none;
}
.mobile-user-btn {
    background: none;
    border: none;
    color: var(--bs-body-color);
    font-size: 1rem;
}

/* Theme Toggle */
.float-btn.bd-theme {
    background: none;
    border: none;
    color: var(--bs-body-color);
    font-size: 1.1rem;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}
.float-btn.bd-theme:hover {
    background: rgba(216,124,255,0.15);
    color: var(--accent);
}

.bs-theme .dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
.bs-theme .dropdown-item.active {
    background: var(--accent);
    color: #fff;
}
.bs-theme .dropdown-item:hover {
    background: rgba(216,124,255,0.1);
    color: var(--accent);
}

/* Offcanvas Nav */
.offcanvas-nav {
    background: var(--bs-body-bg) !important;
    width: 280px !important;
}
.offcanvas-nav .offcanvas-header {
    border-bottom: 1px solid var(--card-border);
}
.offcanvas-nav .offcanvas-header a {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.offcanvas-nav .nav-link {
    padding: 0.6rem 1rem;
    color: var(--bs-body-color);
    border-radius: 0;
    border-bottom: 1px solid var(--card-border);
}

.lighting ul {
    display: flex;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}
.lighting li {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}
.lighting li.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ========== HERO BANNER ========== */
.boxmoe_header_banner {
    height: var(--banner-height);
    position: relative;
    margin-top: 56px;
    overflow: hidden;
}
.boxmoe_header_banner_img {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.boxmoe_header_banner_img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://acgyx.us/wp-content/uploads/2026/04/washroom_sis_datsui1.webp') center/cover no-repeat;
    opacity: 0.4;
    animation: bannerZoom 20s ease-in-out infinite alternate;
}
@keyframes bannerZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.site-main {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.text-gradient {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D87CFF, #F59DFF, #FF9A9E, #D87CFF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: none;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Waves */
.boxmoe_header_banner_waves {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 3;
    overflow: hidden;
}
.waves {
    position: relative;
    width: 100%;
    height: 60px;
    display: block;
}
.parallax > use {
    animation: waveMove 4s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    animation-delay: calc(var(--i, 0) * -1s);
}
.parallax > use:nth-child(1) { --i: 0; animation-duration: 7s; }
.parallax > use:nth-child(2) { --i: 1; animation-duration: 10s; }
.parallax > use:nth-child(3) { --i: 2; animation-duration: 13s; }
.parallax > use:nth-child(4) { --i: 3; animation-duration: 20s; }

@keyframes waveMove {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ========== MAIN CONTAINER ========== */
.boxmoe-container {
    margin-top: 2rem;
    padding-bottom: 3rem;
}
.breadcrumb-head {
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    font-size: 0.85rem;
}
.breadcrumb-head span { color: var(--bs-body-color); }
.breadcrumb-head i { margin-right: 0.4rem; color: var(--accent); }

.blog-border {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s;
}
.blog-border:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(216,124,255,0.1);
}

/* ========== POST CARDS ========== */
.post-list {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.2rem;
}
.post-list-img {
    flex: 0 0 220px;
    max-width: 220px;
}
.post-list-img figure {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    min-height: 140px;
}
.post-list-img figure a {
    display: block;
    height: 100%;
}
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.5s;
}
.zoom-img:hover .img-placeholder {
    transform: scale(1.05);
}
.placeholder-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.7);
}
.post-list-content {
    flex: 1;
    min-width: 0;
}
.category { margin-bottom: 0.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag-link, .tag-cloud {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: rgba(216,124,255,0.1);
    color: var(--accent);
    transition: all 0.3s;
}
.tag-link:hover, .tag-cloud:hover {
    background: var(--accent);
    color: #fff;
}
.tagfa { margin-right: 0.2rem; font-size: 0.5rem; }

.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a { color: var(--bs-body-color); }
.post-title a:hover { color: var(--accent); }

.post-content {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.3rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 0.6rem;
}
.post-list-avatar { flex-shrink: 0; }
.avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9B59B6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.post-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.post-meta-stats {
    display: flex;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--bs-gray-600);
}
.post-meta-stats i { margin-right: 0.2rem; }
.list-post-author {
    font-size: 0.75rem;
    color: var(--bs-gray-600);
}
.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bs-gray-600);
    margin: 0 0.4rem;
    vertical-align: middle;
}

/* ========== PAGINATION ========== */
.pagination-nav { margin-top: 2rem; }
.pagination {
    gap: 0.3rem;
}
.page-link {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--bs-body-color);
    border-radius: 8px !important;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.page-link:hover {
    background: rgba(216,124,255,0.1);
    color: var(--accent);
    border-color: var(--accent);
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-item.disabled .page-link {
    opacity: 0.5;
}

/* ========== SIDEBAR ========== */
.blog-sidebar .position-sticky {
    top: 80px;
}
.widget {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    color: var(--bs-body-color);
}

/* Widget: Search */
.search-wrap {
    display: flex;
    gap: 0.3rem;
}
.search-wrap .form-control {
    flex: 1;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
}
.search-wrap .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(216,124,255,0.2);
}
.btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
}
.btn-search:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Widget: Tag Cloud */
.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.widget-tag-cloud .tag-cloud {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(216,124,255,0.08);
    color: var(--bs-gray-600);
}
.widget-tag-cloud .tag-cloud:hover {
    background: var(--accent);
    color: #fff;
}

/* Widget: Comments */
.widget-latest-comment { padding: 0; }
.comment-listitem {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border);
}
.comment-listitem:last-child { border-bottom: none; }
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9B59B6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}
.comment-content {
    font-size: 0.78rem;
    color: var(--bs-gray-600);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Widget: Random Posts */
.widget-post {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--card-border);
}
.widget-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.widget-post .info {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}
.widget-post .thumb {
    flex: 0 0 60px;
    border-radius: 6px;
    overflow: hidden;
}
.thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    transition: transform 0.3s;
}
.widget-post .thumb:hover .thumb-placeholder {
    transform: scale(1.1);
}
.post-title-widget {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.post-title-widget a {
    color: var(--bs-body-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title-widget a:hover { color: var(--accent); }
.widget-post time {
    font-size: 0.72rem;
    color: var(--bs-gray-600);
    display: block;
    margin-top: 0.2rem;
}

/* ========== FOOTER ========== */
.mt-7 { margin-top: 4rem; }
.horizontal.dark {
    border-color: var(--card-border);
    opacity: 0.5;
    margin-bottom: 2rem;
}
.nav-footer {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    padding: 0.5rem 0;
}

/* ========== FLOATING ACTION MENU ========== */
.floating-action-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.floating-action-menu .float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(216,124,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-action-menu .float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216,124,255,0.6);
}

.body-background {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    :root { --banner-height: 480px; }
    .text-gradient { font-size: 1.8rem; }
    .post-list { flex-direction: column; }
    .post-list-img {
        flex: none;
        max-width: 100%;
    }
    .post-list-img figure { min-height: 180px; }
    .img-placeholder { min-height: 180px; }
    .blog-sidebar .position-sticky { top: 0; }
}

@media (max-width: 576px) {
    .text-gradient { font-size: 1.4rem; }
    .post-title { font-size: 0.95rem; }
}
