/* ===================== 全局重置 + 基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.xwmm2-top-header {
    background-color: #000;
    height: 74px;
    width: 100%;
    position: relative;
}

.xwmm2-top-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.xwmm2-top-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.xwmm2-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.xwmm2-top-logo img {
    height: 50px;
    width: auto;
}

.xwmm2-top-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.xwmm2-top-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.xwmm2-top-nav ul li a:hover {
    color: #ffffff;
    background-color: #494949;
}

.xwmm2-top-nav ul li a.active {
    color: #ffffff;
}

.xwmm2-top-buttons {
    display: flex;
    gap: 5px;
}

.xwmm2-top-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    
}

.xwmm2-top-btn i {
    font-size: 18px;
}

.xwmm2-top-btn span {
    font-size: 12px;
}

.xwmm2-top-btn:hover {
    color: #fff;
    background-color: rgb(43 42 42 / 90%);
}
.xwmm2-top-avatar{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
}
.xwmm2-top-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.xwmm2-search-container {
    width: 100%;
    height: 100px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.xwmm2-search-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xwmm2-shape {
    position: absolute;
    opacity: 0.35;
}

.xwmm2-shape-1 {
    width: 60px;
    height: 60px;
    border: 3px solid #e63946;
    border-radius: 50%;
    top: -20px;
    left: 5%;
    animation: float1 8s ease-in-out infinite;
}

.xwmm2-shape-2 {
    width: 45px;
    height: 45px;
    background-color: #1d3557;
    transform: rotate(45deg);
    top: 10px;
    right: 25%;
    animation: float2 10s ease-in-out infinite;
}

.xwmm2-shape-3 {
    width: 55px;
    height: 55px;
    border: 3px solid #f77f00;
    border-radius: 50%;
    bottom: -15px;
    left: 25%;
    animation: float3 12s ease-in-out infinite;
}

.xwmm2-shape-4 {
    width: 40px;
    height: 40px;
    background-color: #2a9d8f;
    top: 5px;
    left: 45%;
    animation: float4 9s ease-in-out infinite;
}

.xwmm2-shape-5 {
    width: 50px;
    height: 50px;
    border: 3px dashed #e9c46a;
    border-radius: 50%;
    bottom: 0;
    right: 15%;
    animation: float5 11s ease-in-out infinite;
}

.xwmm2-shape-6 {
    width: 35px;
    height: 35px;
    background-color: #e76f51;
    transform: rotate(30deg);
    top: 30px;
    left: 15%;
    animation: float6 7s ease-in-out infinite;
}

.xwmm2-shape-7 {
    width: 45px;
    height: 45px;
    border: 3px solid #9b59b6;
    border-radius: 50%;
    bottom: -10px;
    right: 40%;
    animation: float7 13s ease-in-out infinite;
}

.xwmm2-shape-8 {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    transform: rotate(15deg);
    top: 20px;
    right: 5%;
    animation: float8 8.5s ease-in-out infinite;
}

.xwmm2-shape-9 {
    width: 55px;
    height: 55px;
    border: 3px solid #e84393;
    border-radius: 50%;
    top: -15px;
    left: 70%;
    animation: float9 10.5s ease-in-out infinite;
}

.xwmm2-shape-10 {
    width: 38px;
    height: 38px;
    background-color: #00b894;
    transform: rotate(45deg);
    bottom: 10px;
    left: 55%;
    animation: float10 9.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(225deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(360deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(20px) scale(1.2); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0) rotate(30deg); }
    50% { transform: translateY(25px) rotate(210deg); }
}

@keyframes float7 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(360deg); }
}

@keyframes float8 {
    0%, 100% { transform: translateY(0) rotate(15deg) scale(1); }
    50% { transform: translateY(30px) rotate(195deg) scale(1.15); }
}

@keyframes float9 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(35px) rotate(180deg); }
}

@keyframes float10 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(225deg); }
}

.xwmm2-search-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xwmm2-search-box {
    width: 100%;
    max-width: 600px;
    height: 48px;
    display: flex;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.xwmm2-search-box form {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0;
    padding: 0;
}

.xwmm2-search-box input {
    flex: 1;
    height: 100%;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.xwmm2-search-box button {
    width: 90px;
    height: 100%;
    background-color: #16a54d;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.xwmm2-search-box button:hover {
    background-color: #ee5a5a;
}

.xwmm2-search-box button i {
    font-size: 18px;
}

.wxmm-i-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.wxmm-i-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
.wxmm-i-btn:hover {
    background-color: #219653;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}
.wxmm-i-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.wxmm-i-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background-color: #27ae60;
    margin-right: 10px;
    border-radius: 2px;
}

/* ===================== 头部导航栏 ===================== */
.wxmm-i-header {
    background-color: #0f172a; /* 深蓝黑 */
    color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.wxmm-i-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Logo区域 */
.wxmm-i-logo {
    display: flex;
    align-items: center;
}
.wxmm-i-logo-icon {
    width: 40px;
    height: 40px;
    background-color: #27ae60;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 22px;
    color: #fff;
}
.wxmm-i-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}
/* 主导航 */
.wxmm-i-nav-list {
    display: flex;
    gap: 30px;
}
.wxmm-i-nav-item a {
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}
.wxmm-i-nav-item a:hover {
    color: #27ae60;
}
.wxmm-i-nav-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #27ae60;
    transition: width 0.3s ease;
}
.wxmm-i-nav-item a:hover::after {
    width: 100%;
}
.wxmm-i-nav-item a.active {
    color: #27ae60;
}
.wxmm-i-nav-item a.active::after {
    width: 100%;
}
/* 右侧功能区 */
.wxmm-i-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* 搜索框 */
.wxmm-i-search {
    position: relative;
}
.wxmm-i-search-input {
    width: 220px;
    height: 36px;
    padding: 0 40px 0 15px;
    border: none;
    border-radius: 18px;
    outline: none;
    font-size: 14px;
    background-color: #1e293b;
    color: #fff;
    transition: all 0.3s ease;
}
.wxmm-i-search-input:focus {
    background-color: #334155;
    width: 260px;
}
.wxmm-i-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}
/* 登录注册按钮 */
.wxmm-i-login-btn {
    background-color: transparent;
    border: 1px solid #27ae60;
    color: #27ae60;
}
.wxmm-i-login-btn:hover {
    background-color: #27ae60;
    color: #fff;
}


/* ===================== 页脚 ===================== */
.wxmm-i-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 20px;
    margin-top: 60px;
    margin-bottom: -14px;
}
.wxmm-i-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.wxmm-i-footer-col h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
    display: inline-block;
}
.wxmm-i-footer-links li {
    margin-bottom: 12px;
}
.wxmm-i-footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}
.wxmm-i-footer-links a:hover {
    color: #27ae60;
    padding-left: 5px;
}
.wxmm-i-footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wxmm-i-footer-contact i {
    color: #27ae60;
    font-size: 16px;
}
.wxmm-i-footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
}
.wxmm-i-footer-copyright a {
    color: #27ae60;
}
.wxmm-i-recommend-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.wxmm-i-recommend-grid .wxmm-i-card {
    height: 100%;
}

/* 页面标题 */
        .wxmm-pl-page-title { margin-bottom: 30px; }
        .wxmm-pl-title-main {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 8px;
        }
        .wxmm-pl-title-desc { font-size: 14px; color: #666; }

        /* 筛选栏：分类 + 排序 */
        .wxmm-pl-filter-wrap {
            background-color: #fff;
            border-radius: 12px;
            padding: 20px 25px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }


        /* 漫画详情悬浮窗 */
        .wxmm-rank-tooltip {
            position: absolute;
            width: 280px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            padding: 0;
            z-index: 9999;
            display: none;
            overflow: hidden;
        }
        .wxmm-rank-tooltip.active {
            display: block;
        }
        .wxmm-rank-tooltip-cover {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        .wxmm-rank-tooltip-info {
            padding: 15px;
        }
        .wxmm-rank-tooltip-title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .wxmm-rank-tooltip-author {
            font-size: 13px;
            color: #888;
            margin-bottom: 10px;
        }
        .wxmm-rank-tooltip-desc {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 12px;
        }
        .wxmm-rank-tooltip-stats {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #999;
        }
        .wxmm-rank-tooltip-stats span {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .wxmm-rank-tooltip-stats i {
            color: #f59e0b;
        }

        /* 左侧悬浮快捷菜单 */
        .wxmm-sidebar {
            position: fixed;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 9998;
            background: #e74c3c;
            border-radius: 0 12px 12px 0;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
            overflow: hidden;
        }
        .wxmm-sidebar-item {
            display: block;
            width: 50px;
            padding: 15px 10px;
            text-align: center;
            color: #fff;
            font-size: 12px;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            transition: all 0.3s ease;
        }
        .wxmm-sidebar-item:last-child {
            border-bottom: none;
        }
        .wxmm-sidebar-item:hover {
            background: #c0392b;
            color: #fff;
        }
        .wxmm-sidebar-item i {
            display: block;
            font-size: 18px;
            margin-bottom: 5px;
        }