/* ========================================
   niu2涓婚 主题 - 主样式 v1.1
   修复排版问题，优化布局
   ======================================== */

/* CSS 变量 */
:root {
    --niu2-primary: #6366f1;
    --niu2-primary-dark: #4f46e5;
    --niu2-secondary: #8b5cf6;
    --niu2-accent: #f59e0b;
    --niu2-gold: linear-gradient(135deg, #f59e0b, #d97706);
    --niu2-success: #10b981;
    --niu2-danger: #ef4444;
    --niu2-warning: #f59e0b;
    --niu2-info: #3b82f6;

    --niu2-bg: #f5f7fa;
    --niu2-card-bg: #ffffff;
    --niu2-text: #1e293b;
    --niu2-text-secondary: #64748b;
    --niu2-text-muted: #94a3b8;
    --niu2-border: #e2e8f0;
    --niu2-border-light: #f1f5f9;

    --niu2-radius: 12px;
    --niu2-radius-sm: 8px;
    --niu2-radius-lg: 16px;
    --niu2-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --niu2-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --niu2-shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --niu2-shadow-xl: 0 16px 40px rgba(0,0,0,0.12);

    --niu2-transition: all 0.25s ease;
    --niu2-container: 1200px;
}

/* 重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--niu2-bg);
    color: var(--niu2-text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--niu2-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

/* 容器 */
.container {
    max-width: var(--niu2-container);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* 清除浮动 */
.clearfix::after { content: ''; display: table; clear: both; }

/* ========================================
   按钮
   ======================================== */
.niu2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--niu2-transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.niu2-btn-primary {
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.niu2-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    color: #fff;
}
.niu2-btn-outline {
    background: transparent;
    color: var(--niu2-primary);
    border: 1.5px solid var(--niu2-primary);
}
.niu2-btn-outline:hover {
    background: var(--niu2-primary);
    color: #fff;
}
.niu2-btn-gold {
    background: var(--niu2-gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
.niu2-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    color: #fff;
}
.niu2-btn-sm { padding: 6px 12px; font-size: 12px; }
.niu2-btn-block { width: 100%; }

/* ========================================
   顶部公告
   ======================================== */
.niu2-top-notice {
    background: linear-gradient(90deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.5;
}
.niu2-top-notice .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.notice-icon { flex-shrink: 0; }
.notice-text { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-close {
    position: absolute;
    right: 0;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   头部导航 - 重点修复
   ======================================== */
.niu2-header {
    background: var(--niu2-card-bg);
    box-shadow: var(--niu2-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 0;
}
.header-logo {
    flex-shrink: 0;
    margin-right: 24px;
    display: flex;
    align-items: center;
}
.logo-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--niu2-text);
    white-space: nowrap;
}
.logo-icon { font-size: 22px; }
.logo-name {
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.custom-logo { height: 32px; width: auto; object-fit: contain; }
.custom-logo-link { display: flex; align-items: center; }

/* 导航菜单 */
.header-nav {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}
.nav-menu > li {
    position: relative;
    flex-shrink: 0;
}
.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 11px;
    height: 60px;
    font-size: 14px;
    font-weight: 600;
    color: var(--niu2-text);
    position: relative;
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--niu2-primary);
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--niu2-primary), var(--niu2-secondary));
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after {
    width: 20px;
}
.menu-arrow { font-size: 9px; margin-left: 3px; opacity: 0.6; }

/* 子菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: var(--niu2-card-bg);
    box-shadow: var(--niu2-shadow-lg);
    border-radius: var(--niu2-radius-sm);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--niu2-transition);
    z-index: 200;
}
.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--niu2-text-secondary);
    white-space: nowrap;
}
.sub-menu li a:hover {
    background: var(--niu2-bg);
    color: var(--niu2-primary);
}
.sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* 搜索框 */
.header-search {
    flex-shrink: 0;
    margin: 0 16px;
}
.header-search .search-form {
    display: flex;
    align-items: center;
    background: var(--niu2-bg);
    border: 1px solid var(--niu2-border);
    border-radius: 20px;
    padding: 3px 3px 3px 12px;
    width: 200px;
    transition: var(--niu2-transition);
}
.header-search .search-form:focus-within {
    border-color: var(--niu2-primary);
    width: 240px;
}
.header-search .search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--niu2-text);
    padding: 0;
}
.header-search .search-input::placeholder { color: var(--niu2-text-muted); }
.header-search .search-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: none;
    background: var(--niu2-primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.header-search .search-btn .dashicons { font-size: 13px; width: 13px; height: 13px; }

/* 用户操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--niu2-text);
    white-space: nowrap;
}
.user-link img { border-radius: 50%; flex-shrink: 0; }
.dark-mode-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: none;
    background: var(--niu2-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
    flex-shrink: 0;
}
.dark-mode-toggle:hover {
    background: var(--niu2-primary);
    color: #fff;
}
.dark-mode-toggle .dashicons { font-size: 16px; width: 16px; height: 16px; }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--niu2-text);
    border-radius: 2px;
    transition: var(--niu2-transition);
}

/* 移动端菜单 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--niu2-card-bg);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-menu-panel.active { right: 0; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--niu2-border-light);
    font-weight: 600;
    font-size: 14px;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--niu2-text-secondary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav { padding: 8px 0; }
.mobile-nav li a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    border-bottom: 1px solid var(--niu2-border-light);
}

/* ========================================
   弹窗
   ======================================== */
.niu2-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.niu2-modal.active { display: flex; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.modal-content {
    position: relative;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 28px 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--niu2-shadow-xl);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: none;
    background: var(--niu2-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--niu2-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* 登录注册 */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--niu2-border-light);
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--niu2-text-muted);
    cursor: pointer;
    position: relative;
}
.auth-tab.active { color: var(--niu2-primary); }
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--niu2-primary);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 14px; }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
    transition: var(--niu2-transition);
}
.form-group input:focus {
    border-color: var(--niu2-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 12px;
}
.forgot-link { color: var(--niu2-primary); }

/* 找回密码弹窗 - 表单始终显示（避免被 .auth-form 默认隐藏） */
.forgot-modal .forgot-form {
    display: block !important;
}

/* 找回密码弹窗 */
.forgot-modal .forgot-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 4px 0 6px;
    color: var(--niu2-text);
}
.forgot-modal .forgot-subtitle {
    font-size: 12px;
    color: var(--niu2-text-muted);
    text-align: center;
    margin: 0 0 18px;
}
.forgot-code-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.forgot-code-row input {
    flex: 1;
    min-width: 0;
}
.forgot-code-row .send-code-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
}
.forgot-back {
    text-align: center;
    margin-top: 14px;
}
.forgot-back-link {
    color: var(--niu2-primary);
    font-size: 13px;
    cursor: pointer;
}
.forgot-back-link:hover { opacity: 0.8; }
.auth-social { margin-top: 18px; text-align: center; }
.auth-social > span {
    display: block;
    font-size: 11px;
    color: var(--niu2-text-muted);
    margin-bottom: 10px;
    position: relative;
}
.auth-social > span::before,
.auth-social > span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--niu2-border);
}
.auth-social > span::before { left: 0; }
.auth-social > span::after { right: 0; }
.social-btns { display: flex; gap: 10px; justify-content: center; }
.social-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.social-btn.qq { background: #12b7f5; }
.social-btn.weibo { background: #e6162d; }

/* 支付弹窗 */
.pay-modal { max-width: 360px; text-align: center; }
.pay-title { font-size: 16px; margin-bottom: 12px; }
.pay-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--niu2-primary);
    margin-bottom: 20px;
}
.pay-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.pay-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    transition: var(--niu2-transition);
    font-size: 12px;
}
.pay-method input { display: none; }
.pay-method:has(input:checked) {
    border-color: var(--niu2-primary);
    background: rgba(99, 102, 241, 0.05);
}
.pay-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.pay-icon.alipay { background: #1677ff; }
.pay-icon.wechat { background: #07c160; }
.pay-qrcode { margin-top: 16px; }
.qrcode-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    background: var(--niu2-bg);
    border: 2px dashed var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--niu2-text-muted);
    font-size: 13px;
}
.pay-tip { font-size: 12px; color: var(--niu2-text-secondary); margin-bottom: 10px; }

/* ========================================
   首页 - 幻灯片 - 修复
   ======================================== */
.home-section { margin-bottom: 24px; }
.home-content { width: 100%; }
.niu2-slider {
    position: relative;
    border-radius: var(--niu2-radius-lg);
    overflow: hidden;
    height: 340px;
}
.slider-track { position: relative; height: 100%; }
.slider-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slider-slide.active { opacity: 1; }
.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.slider-content {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 440px;
    color: #fff;
    z-index: 2;
}
.slider-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    font-size: 11px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.slider-cat a { color: #fff; }
.slider-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider-title a { color: #fff; }
.slider-excerpt {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
}
.slider-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: var(--niu2-transition);
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.35); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev .dashicons, .slider-next .dashicons { font-size: 18px; width: 18px; height: 18px; }
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--niu2-transition);
}
.slider-dot.active {
    width: 20px;
    border-radius: 3px;
    background: #fff;
}

/* ========================================
   首页 - 搜索Banner - 修复
   ======================================== */
.home-search-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--niu2-radius-lg);
    padding: 36px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.home-search-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
}
.banner-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 20px;
    position: relative;
}
.banner-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto 14px;
    background: #fff;
    border-radius: 28px;
    padding: 4px;
    position: relative;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}
.banner-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 13px;
    background: transparent;
    color: var(--niu2-text);
}
.banner-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 22px;
    border: none;
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
}
.banner-search-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }
.banner-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    position: relative;
    flex-wrap: wrap;
}
.banner-tags > span { opacity: 0.8; flex-shrink: 0; }
.banner-tags a {
    color: rgba(255,255,255,0.85);
    padding: 2px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}
.banner-tags a:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ========================================
   首页 - CMS模块 - 重点修复grid布局
   ======================================== */
.home-cms { display: flex; flex-direction: column; gap: 20px; }
.cms-block {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 20px;
    box-shadow: var(--niu2-shadow);
}
.cms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.cms-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 600;
}
.cms-title a { color: var(--niu2-text); }
.cms-title a:hover { color: var(--niu2-primary); }
.cms-icon { font-size: 18px; }
.cms-more {
    font-size: 12px;
    color: var(--niu2-text-secondary);
    flex-shrink: 0;
}
.cms-more:hover { color: var(--niu2-primary); }

/* CMS grid - 修复布局：左侧1个大卡片跨2行，右侧4个小卡片2x2 */
.cms-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: stretch;
}
.cms-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
/* 特色卡片：占据第一列，跨2行 */
.cms-card.cms-featured {
    grid-row: span 2;
    grid-column: 1;
}
.cms-card.cms-featured .cms-thumb {
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
}
.cms-card.cms-featured .cms-info { flex: 1; }
.cms-card.cms-featured .cms-card-title {
    font-size: 15px;
    margin-top: 0;
    -webkit-line-clamp: 2;
}
.cms-card.cms-featured .cms-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 普通小卡片：横向排列，左图右文 */
.cms-card:not(.cms-featured) {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.cms-thumb {
    width: 110px;
    height: 75px;
    min-width: 110px;
    border-radius: var(--niu2-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.cms-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cms-card:hover .cms-thumb img { transform: scale(1.05); }
.cms-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cms-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cms-card-title a { color: var(--niu2-text); }
.cms-card-title a:hover { color: var(--niu2-primary); }
.cms-card-excerpt {
    font-size: 12px;
    color: var(--niu2-text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}
.cms-card-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--niu2-text-muted);
    margin-top: auto;
    padding-top: 4px;
}
.cms-card-meta .dashicons { font-size: 12px; width: 12px; height: 12px; }

/* ========================================
   首页 - VIP介绍 - 修复
   ======================================== */
.home-vip-intro {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: var(--niu2-radius-lg);
    padding: 32px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.home-vip-intro::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.vip-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.vip-intro-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.vip-intro-desc { font-size: 13px; opacity: 0.8; margin-bottom: 16px; line-height: 1.6; }
.vip-intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 12px;
}
.vip-intro-features span { opacity: 0.85; }
.vip-intro-plans {
    display: flex;
    gap: 10px;
}
.vip-plan-card {
    flex: 1;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--niu2-radius);
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: var(--niu2-transition);
}
.vip-plan-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.vip-plan-card.featured {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.vip-plan-card.premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
    border-color: rgba(245, 158, 11, 0.35);
}
.plan-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 9px;
    font-weight: 500;
    white-space: nowrap;
}
.vip-plan-card h4 { font-size: 13px; margin-bottom: 6px; opacity: 0.9; font-weight: 500; }
.plan-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-price .currency { font-size: 14px; }
.plan-price .period { font-size: 11px; font-weight: 400; opacity: 0.65; }
.vip-plan-card .niu2-btn { width: 100%; padding: 7px 10px; font-size: 12px; }
.vip-intro-empty {
    flex: 1;
    text-align: center;
    opacity: 0.8;
    font-size: 13px;
    padding: 20px 0;
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: var(--niu2-radius);
}

/* ========================================
   首页 - 最新文章 - 重点修复布局
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
    line-height: 1.2;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--niu2-primary), var(--niu2-secondary));
    border-radius: 2px;
}
.section-tabs { display: flex; gap: 14px; }
.tab-link {
    font-size: 13px;
    color: var(--niu2-text-secondary);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.tab-link.active, .tab-link:hover {
    color: var(--niu2-primary);
    border-bottom-color: var(--niu2-primary);
}

/* 最新文章布局：主内容 + 侧边栏 */
.latest-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.latest-posts { min-width: 0; }
.latest-sidebar { 
    min-width: 0; 
    width: 100%;
}
.latest-sidebar .widget {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--niu2-shadow);
    overflow: hidden;
}
.latest-sidebar .widget-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--niu2-primary);
    color: var(--niu2-text);
}
.latest-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--niu2-border);
}
.latest-sidebar .widget ul li:last-child {
    border-bottom: none;
}
.latest-sidebar .widget ul li a {
    color: var(--niu2-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: block;
}
.latest-sidebar .widget ul li a:hover {
    color: var(--niu2-primary);
    padding-left: 4px;
}
.latest-sidebar .widget .search-form {
    display: flex;
    gap: 8px;
}
.latest-sidebar .widget .search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--niu2-border);
    border-radius: 6px;
    font-size: 13px;
}
.latest-sidebar .widget .search-form button {
    padding: 8px 16px;
    background: var(--niu2-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* ========================================
   文章卡片 - 重点修复
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.post-card {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius);
    overflow: hidden;
    box-shadow: var(--niu2-shadow);
    transition: var(--niu2-transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--niu2-shadow-md);
}
.card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--niu2-bg);
    flex-shrink: 0;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.06); }
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--niu2-text-muted);
}
.thumb-placeholder .dashicons { font-size: 36px; width: 36px; height: 36px; }

/* 角标 */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    line-height: 1.5;
}
.badge-free { background: var(--niu2-success); }
.badge-vip { background: #ef4444; }
.badge-svip { background: var(--niu2-gold); }
/* 用户等级徽章（头像悬浮、侧边栏用户中心统一使用，包年VIP红色） */
.niu2-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    line-height: 1.7;
    vertical-align: middle;
}
.niu2-level-admin { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.niu2-level-svip { background: linear-gradient(135deg, #f59e0b, #d97706); }
.niu2-level-year { background: linear-gradient(135deg, #ef4444, #dc2626); }
.niu2-level-month { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.niu2-level-normal { background: linear-gradient(135deg, #10b981, #059669); }
.card-price {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.card-cat {
    font-size: 11px;
    color: var(--niu2-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-cat a { color: var(--niu2-primary); }
.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.card-title a { color: var(--niu2-text); }
.card-title a:hover { color: var(--niu2-primary); }
.card-excerpt {
    font-size: 12px;
    color: var(--niu2-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--niu2-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--niu2-border-light);
    flex-wrap: wrap;
}
.card-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
.card-meta .meta-author img { border-radius: 50%; flex-shrink: 0; }
.card-meta .meta-author span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta .dashicons { font-size: 12px; width: 12px; height: 12px; }
.card-meta .meta-views, .card-meta .meta-date {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* 加载更多 */
.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-btn { min-width: 140px; }
.no-more-text { text-align: center; color: var(--niu2-text-muted); font-size: 13px; padding: 12px; }

/* ========================================
   侧边栏小工具 - 修复
   ======================================== */
.widget {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--niu2-shadow);
}
.widget-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--niu2-border-light);
    position: relative;
    line-height: 1.2;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--niu2-primary);
}

/* 热门列表小工具 */
.niu2-widget-hot li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--niu2-border-light);
}
.niu2-widget-hot li:last-child { border-bottom: none; }
.rank-num {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--niu2-bg);
    color: var(--niu2-text-muted);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.rank-hot .rank-num {
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
}
.niu2-widget-hot a {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--niu2-text);
}
.niu2-widget-hot a:hover { color: var(--niu2-primary); }

/* 统计小工具 */
.niu2-widget-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--niu2-border-light);
    font-size: 12px;
}
.niu2-widget-stats .stat-row:last-child { border-bottom: none; }
.stat-value { font-weight: 600; color: var(--niu2-primary); }

/* 标签云 */
.widget .tag-cloud-link,
.wp-tag-cloud a {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px;
    background: var(--niu2-bg);
    border-radius: 10px;
    font-size: 12px !important;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
    line-height: 1.6;
}
.widget .tag-cloud-link:hover,
.wp-tag-cloud a:hover {
    background: var(--niu2-primary);
    color: #fff;
}

/* 联系小工具 */
.niu2-widget-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    font-size: 12px;
}
.contact-btn { width: 100%; margin-top: 10px; }

/* 搜索小工具 */
.widget .search-form {
    display: flex;
    gap: 6px;
}
.widget .search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 12px;
}
.widget .search-form .search-submit {
    padding: 8px 14px;
    border: none;
    background: var(--niu2-primary);
    color: #fff;
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

/* 近期文章/评论默认小工具 */
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--niu2-border-light);
    font-size: 12px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--niu2-text); }
.widget ul li a:hover { color: var(--niu2-primary); }
.widget_recent_entries .post-date { color: var(--niu2-text-muted); font-size: 11px; display: block; margin-top: 2px; }

/* ========================================
   面包屑
   ======================================== */
.niu2-breadcrumbs {
    padding: 12px 0;
    font-size: 12px;
    color: var(--niu2-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.niu2-breadcrumbs a { color: var(--niu2-text-secondary); }
.niu2-breadcrumbs a:hover { color: var(--niu2-primary); }
.niu2-breadcrumbs .sep { color: var(--niu2-text-muted); font-size: 10px; }
.niu2-breadcrumbs .current { color: var(--niu2-text); }

/* ========================================
   文章详情页 - 修复
   ======================================== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.single-article {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 28px;
    box-shadow: var(--niu2-shadow);
    min-width: 0;
}
.article-header { margin-bottom: 20px; }
.article-cat {
    font-size: 12px;
    color: var(--niu2-primary);
    margin-bottom: 10px;
}
.article-cat a { color: var(--niu2-primary); }
.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--niu2-text-secondary);
}
.article-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-meta .meta-author img { border-radius: 50%; }
.article-meta .dashicons { font-size: 13px; width: 13px; height: 13px; }
.article-meta .badge { position: static; }

.article-thumb {
    margin-bottom: 20px;
    border-radius: var(--niu2-radius);
    overflow: hidden;
}
.article-thumb img { width: 100%; }

.article-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--niu2-text);
}
.article-content h2, .article-content h3, .article-content h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    line-height: 1.3;
}
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }
.article-content p { margin-bottom: 14px; }
.article-content img { border-radius: var(--niu2-radius-sm); margin: 14px 0; max-width: 100%; }
.article-content blockquote {
    border-left: 3px solid var(--niu2-primary);
    padding: 10px 16px;
    background: var(--niu2-bg);
    border-radius: 0 var(--niu2-radius-sm) var(--niu2-radius-sm) 0;
    margin: 14px 0;
    color: var(--niu2-text-secondary);
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px;
    border-radius: var(--niu2-radius-sm);
    overflow-x: auto;
    margin: 14px 0;
    font-size: 12px;
    line-height: 1.6;
}
.article-content code {
    background: var(--niu2-bg);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--niu2-primary);
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}
.article-content th, .article-content td {
    border: 1px solid var(--niu2-border);
    padding: 8px 10px;
    text-align: left;
}
.article-content th { background: var(--niu2-bg); font-weight: 600; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 14px; }
.article-content li { margin-bottom: 5px; }
.article-content a { color: var(--niu2-primary); text-decoration: underline; }

/* 付费内容提示 */
.paid-content-tip {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px dashed var(--niu2-primary);
    border-radius: var(--niu2-radius);
    text-align: center;
}
.paid-content-tip p { margin-bottom: 14px; color: var(--niu2-text-secondary); font-size: 13px; }
.paid-content-tip .niu2-btn { margin: 0 5px; }

/* 下载框 */
.niu2-download-box {
    margin: 20px 0;
    padding: 20px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius);
    text-align: center;
}
.niu2-download-box .niu2-btn { margin: 0 5px; }
.niu2-download-locked p { margin-bottom: 14px; color: var(--niu2-text-secondary); font-size: 13px; }
.niu2-meta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--niu2-text-muted);
    flex-wrap: wrap;
}

/* 文章标签 */
.article-tags {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--niu2-border-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tags-label { font-size: 12px; color: var(--niu2-text-secondary); font-weight: 500; margin-right: 4px; }
.article-tags a {
    padding: 3px 10px;
    background: var(--niu2-bg);
    border-radius: 10px;
    font-size: 11px;
    color: var(--niu2-text-secondary);
}
.article-tags a:hover { background: var(--niu2-primary); color: #fff; }

/* 文章操作栏 */
.article-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 14px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius);
}
.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--niu2-border);
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
    min-width: 0;
}
.action-btn:hover {
    border-color: var(--niu2-primary);
    color: var(--niu2-primary);
}
.action-btn.favorited {
    color: var(--niu2-danger);
    border-color: var(--niu2-danger);
}
.action-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }

/* 作者信息 */
.article-author-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius);
    margin: 20px 0;
}
.article-author-box img { border-radius: 50%; flex-shrink: 0; }
.author-info h4 { margin-bottom: 4px; font-size: 14px; }
.author-info p { font-size: 12px; color: var(--niu2-text-secondary); line-height: 1.5; }

/* 上一篇下一篇 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.article-nav a {
    display: block;
    padding: 14px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius-sm);
    transition: var(--niu2-transition);
    min-width: 0;
}
.article-nav a:hover { background: var(--niu2-border-light); }
.nav-label { font-size: 11px; color: var(--niu2-text-muted); display: block; margin-bottom: 4px; }
.nav-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-next { text-align: right; }

/* 相关文章 */
.related-posts { margin: 28px 0; }
.related-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.related-card {
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius-sm);
    overflow: hidden;
    transition: var(--niu2-transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--niu2-shadow-md); }
.related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.related-card h4 {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* ========================================
   评论区
   ======================================== */
.niu2-comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--niu2-border-light); }
.comments-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.comment-list { list-style: none; }
.comment-list .comment { margin-bottom: 16px; }
.comment-body {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius-sm);
}
.comment-avatar img { border-radius: 50%; flex-shrink: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    flex-wrap: wrap;
}
.comment-author { font-weight: 600; font-size: 13px; }
.comment-date { color: var(--niu2-text-muted); }
.comment-reply-link { color: var(--niu2-primary); font-size: 11px; margin-left: auto; }
.comment-text { font-size: 13px; line-height: 1.6; }
.comment-list .children { margin-left: 40px; margin-top: 10px; list-style: none; }

/* 评论表单 */
.comment-form { margin-top: 20px; }
.comment-form p { margin-bottom: 10px; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    outline: none;
    transition: var(--niu2-transition);
    font-size: 13px;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--niu2-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.comment-form-comment textarea { resize: vertical; min-height: 100px; }
.comment-form .form-submit { margin-top: 10px; }
.comment-form .submit {
    width: auto;
    padding: 9px 24px;
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    border: none;
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   分页
   ======================================== */
.pagination-wrap { margin-top: 24px; text-align: center; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 12px;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
}
.page-numbers:hover, .page-numbers.current {
    background: var(--niu2-primary);
    border-color: var(--niu2-primary);
    color: #fff;
}

/* ========================================
   归档/分类页
   ======================================== */
.archive-header {
    text-align: center;
    padding: 20px 0;
}
.archive-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.archive-desc {
    font-size: 13px;
    color: var(--niu2-text-secondary);
}
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.archive-content { min-width: 0; }
.archive-sidebar { min-width: 0; }

/* 筛选栏 */
.niu2-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-sm);
    margin-bottom: 16px;
    box-shadow: var(--niu2-shadow);
    flex-wrap: wrap;
}
.filter-label { font-size: 12px; color: var(--niu2-text-secondary); font-weight: 500; flex-shrink: 0; }
.filter-link {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
    cursor: pointer;
}
.filter-link:hover, .filter-link.active {
    background: var(--niu2-primary);
    color: #fff;
}
.filter-sep { color: var(--niu2-border); margin: 0 4px; }

/* ========================================
   用户中心 - 修复
   ======================================== */
.niu2-user-center {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: 500px;
    align-items: start;
}
.uc-sidebar {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 18px;
    box-shadow: var(--niu2-shadow);
    position: sticky;
    top: 76px;
}
.uc-user-info {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--niu2-border-light);
    margin-bottom: 12px;
}
.uc-user-info img { border-radius: 50%; margin: 0 auto 8px; }
.uc-user-info h4 { font-size: 14px; margin-bottom: 5px; }
.uc-level {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
}
.level-admin { background: #ef4444; color: #fff; }
.level-svip { background: var(--niu2-gold); color: #fff; }
.level-year_vip { background: #ef4444; color: #fff; }
.level-month_vip { background: var(--niu2-warning); color: #fff; }
.level-normal { background: var(--niu2-bg); color: var(--niu2-text-secondary); }

.uc-menu { display: flex; flex-direction: column; gap: 2px; }
.uc-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
    color: var(--niu2-text-secondary);
    transition: var(--niu2-transition);
}
.uc-menu-item:hover {
    background: var(--niu2-bg);
    color: var(--niu2-primary);
}
.uc-menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--niu2-primary);
    font-weight: 500;
}
.uc-menu-item .dashicons { font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; }
.uc-logout { color: var(--niu2-danger); margin-top: 6px; }
.uc-logout:hover { background: rgba(239, 68, 68, 0.1); color: var(--niu2-danger); }

.uc-content {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 24px;
    box-shadow: var(--niu2-shadow);
    min-width: 0;
}
.uc-title { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.uc-subtitle { font-size: 15px; font-weight: 600; margin: 20px 0 10px; }

/* 概览统计 */
.uc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.uc-stat-card {
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius);
    padding: 16px 12px;
    text-align: center;
    transition: var(--niu2-transition);
}
.uc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--niu2-shadow-md); }
.uc-stat-card .stat-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.uc-stat-card .stat-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--niu2-primary);
    margin-bottom: 3px;
}
.uc-stat-card .stat-label { font-size: 11px; color: var(--niu2-text-secondary); }
.uc-stat-card-link { display: block; text-decoration: none; color: inherit; }
.uc-stat-card-link:hover { transform: translateY(-2px); box-shadow: var(--niu2-shadow-md); }
.uc-order-product { color: var(--niu2-primary); text-decoration: none; }
.uc-order-product:hover { text-decoration: underline; }

/* VIP横幅 */
.uc-vip-banner, .uc-vip-info {
    padding: 18px;
    border-radius: var(--niu2-radius);
    margin-bottom: 20px;
}
.uc-vip-banner {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: #fff;
}
.uc-vip-banner h4 { font-size: 15px; margin-bottom: 5px; }
.uc-vip-banner p { font-size: 12px; opacity: 0.8; margin-bottom: 12px; }
.uc-vip-info { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.15); font-size: 13px; }

/* 表格 */
.uc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.uc-table th, .uc-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--niu2-border-light);
}
.uc-table th {
    background: var(--niu2-bg);
    font-weight: 600;
    color: var(--niu2-text-secondary);
    white-space: nowrap;
}
.order-status {
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.status-paid { background: rgba(16, 185, 129, 0.1); color: var(--niu2-success); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--niu2-warning); }
.status-failed { background: rgba(239, 68, 68, 0.1); color: var(--niu2-danger); }
.post-status.status-publish { background: rgba(16, 185, 129, 0.1); color: var(--niu2-success); padding: 2px 7px; border-radius: 8px; font-size: 10px; }
.post-status.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--niu2-warning); padding: 2px 7px; border-radius: 8px; font-size: 10px; }

.uc-empty {
    text-align: center;
    padding: 32px;
    color: var(--niu2-text-muted);
    font-size: 13px;
}

/* 下载/收藏列表 */
.uc-download-item, .uc-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius-sm);
    margin-bottom: 10px;
}
.uc-download-thumb, .uc-fav-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--niu2-radius-sm);
    flex-shrink: 0;
}
.uc-download-info, .uc-fav-info { flex: 1; min-width: 0; }
.uc-download-info h4, .uc-fav-info h4 {
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uc-download-info p, .uc-fav-info p { font-size: 11px; color: var(--niu2-text-secondary); }

/* 推广中心 */
.uc-affiliate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aff-balance-card, .aff-link-card {
    padding: 20px;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius);
}
.aff-balance-card h4, .aff-link-card h4 { font-size: 14px; margin-bottom: 10px; }
.aff-amount { font-size: 28px; font-weight: 700; color: var(--niu2-primary); margin-bottom: 14px; }
.aff-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.aff-link-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 12px;
    background: var(--niu2-card-bg);
}
.aff-desc { font-size: 12px; color: var(--niu2-text-secondary); line-height: 1.5; }

/* 个人资料 */
.uc-profile-form .form-row { margin-bottom: 16px; max-width: 420px; }
.uc-profile-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--niu2-text-secondary);
}
.uc-profile-form input, .uc-profile-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    outline: none;
    transition: var(--niu2-transition);
    font-size: 13px;
    background: var(--niu2-card-bg);
}
.uc-profile-form input:focus, .uc-profile-form textarea:focus {
    border-color: var(--niu2-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.uc-profile-form input:disabled { background: var(--niu2-bg); color: var(--niu2-text-muted); }
.uc-profile-form button[type="submit"] { margin-top: 6px; }
.uc-notice {
    padding: 10px 14px;
    border-radius: var(--niu2-radius-sm);
    margin-bottom: 14px;
    font-size: 12px;
}
.uc-notice.success { background: rgba(16, 185, 129, 0.1); color: var(--niu2-success); }

/* ========================================
   VIP页面
   ======================================== */
.vip-page-header { text-align: center; padding: 24px 0; }
.vip-page-title { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.vip-page-subtitle { font-size: 14px; color: var(--niu2-text-secondary); }

/* VIP价格表 */
.niu2-vip-pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin: 28px 0;
}
.pricing-card {
    width: 320px;
    max-width: 100%;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--niu2-shadow);
    position: relative;
    transition: var(--niu2-transition);
    border: 2px solid transparent;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--niu2-shadow-lg); }
.pricing-card.featured {
    border-color: #ef4444;
    transform: scale(1.02);
}
.pricing-card.premium {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: var(--niu2-accent);
}
.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    padding: 3px 14px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.pricing-header h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.pricing-price {
    font-size: 34px;
    font-weight: 700;
    color: var(--niu2-text);
    margin-bottom: 18px;
}
.pricing-price .currency { font-size: 16px; }
.pricing-price .period { font-size: 13px; color: var(--niu2-text-muted); font-weight: 400; }
.pricing-features {
    text-align: left;
    margin-bottom: 20px;
}
.pricing-features li {
    padding: 7px 0;
    font-size: 13px;
    color: var(--niu2-text-secondary);
    border-bottom: 1px solid var(--niu2-border-light);
}
.pricing-features li::before { content: '✓ '; color: var(--niu2-success); font-weight: 700; }
.pricing-features li.disabled { color: var(--niu2-text-muted); text-decoration: line-through; }
.pricing-features li.disabled::before { content: '✗ '; color: var(--niu2-text-muted); }
.pricing-card .niu2-btn { width: 100%; }

/* VIP特权 */
.vip-features { margin: 40px 0; }
.features-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-item {
    text-align: center;
    padding: 24px 18px;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius);
    box-shadow: var(--niu2-shadow);
    transition: var(--niu2-transition);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--niu2-shadow-md); }
.feature-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.feature-item h4 { font-size: 15px; margin-bottom: 6px; }
.feature-item p { font-size: 12px; color: var(--niu2-text-secondary); line-height: 1.5; }

/* FAQ */
.vip-faq { margin: 40px 0; }
.faq-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.faq-item {
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-sm);
    padding: 18px 22px;
    margin-bottom: 10px;
    box-shadow: var(--niu2-shadow);
}
.faq-item h4 { font-size: 14px; margin-bottom: 6px; color: var(--niu2-primary); }
.faq-item p { font-size: 13px; color: var(--niu2-text-secondary); line-height: 1.6; }

/* ========================================
   投稿页面
   ======================================== */
.submit-header { text-align: center; padding: 20px 0; }
.submit-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.submit-subtitle { font-size: 13px; color: var(--niu2-text-secondary); }
.submit-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--niu2-card-bg);
    padding: 28px;
    border-radius: var(--niu2-radius-lg);
    box-shadow: var(--niu2-shadow);
}
.submit-form .form-group { margin-bottom: 18px; }
.submit-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--niu2-text);
}
.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form input[type="number"],
.submit-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    outline: none;
    transition: var(--niu2-transition);
    font-size: 13px;
}
.submit-form input:focus, .submit-form select:focus {
    border-color: var(--niu2-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.submit-form input[type="file"] {
    width: 100%;
    padding: 9px;
    border: 1.5px dashed var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 12px;
    cursor: pointer;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}
.submit-tip { font-size: 11px; color: var(--niu2-text-muted); }
.submit-login-required {
    text-align: center;
    padding: 50px 20px;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    box-shadow: var(--niu2-shadow);
}
.submit-login-required h3 { margin-bottom: 6px; }
.submit-login-required p { color: var(--niu2-text-secondary); margin-bottom: 18px; }

/* ========================================
   短代码样式
   ======================================== */
.niu2-notice {
    padding: 12px 16px;
    border-radius: var(--niu2-radius-sm);
    margin: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}
.notice-info { background: rgba(59, 130, 246, 0.08); color: var(--niu2-info); }
.notice-success { background: rgba(16, 185, 129, 0.08); color: var(--niu2-success); }
.notice-warning { background: rgba(245, 158, 11, 0.08); color: var(--niu2-warning); }
.notice-error { background: rgba(239, 68, 68, 0.08); color: var(--niu2-danger); }

.niu2-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}
.niu2-stats-bar .stat-item {
    text-align: center;
    padding: 18px;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius);
    box-shadow: var(--niu2-shadow);
}
.niu2-stats-bar .stat-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.niu2-stats-bar .stat-num { font-size: 22px; font-weight: 700; color: var(--niu2-primary); display: block; }
.niu2-stats-bar .stat-label { font-size: 11px; color: var(--niu2-text-secondary); }

.niu2-user-card-guest {
    padding: 18px;
    text-align: center;
    background: var(--niu2-bg);
    border-radius: var(--niu2-radius-sm);
}

/* ========================================
   404页面
   ======================================== */
.niu2-404 { padding: 60px 0; text-align: center; }
.error-code {
    font-size: 100px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}
.error-title { font-size: 22px; margin-bottom: 6px; }
.error-desc { color: var(--niu2-text-secondary); margin-bottom: 22px; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; }
.error-search { max-width: 380px; margin: 0 auto; }
.error-search .search-form { display: flex; gap: 8px; }
.error-search .search-field {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
}
.error-search .search-submit {
    padding: 9px 18px;
    border: none;
    background: var(--niu2-primary);
    color: #fff;
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    font-size: 13px;
}

/* ========================================
   页脚
   ======================================== */
.niu2-footer {
    background: #1e293b;
    color: #94a3b8;
    margin-top: 40px;
    padding: 40px 0 0;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-widget h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}
.footer-widget { font-size: 12px; line-height: 1.8; }
.footer-widget a { color: #94a3b8; }
.footer-widget a:hover { color: #fff; }
.footer-widget ul li { padding: 3px 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copyright p { margin-bottom: 3px; }
.footer-powered { font-size: 11px; opacity: 0.5; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: #94a3b8; }
.footer-nav a:hover { color: #fff; }

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    background: var(--niu2-primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--niu2-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--niu2-transition);
    z-index: 100;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.back-to-top .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* ========================================
   搜索表单（通用）
   ======================================== */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--niu2-border);
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
    outline: none;
    transition: var(--niu2-transition);
}
.search-form .search-field:focus {
    border-color: var(--niu2-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-form .search-submit {
    padding: 9px 18px;
    border: none;
    background: var(--niu2-primary);
    color: #fff;
    border-radius: var(--niu2-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* 无结果 */
.no-posts, .no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--niu2-text-muted);
    font-size: 13px;
}
.no-results .search-form { max-width: 380px; margin: 16px auto 0; }

/* 登录提示 */
.niu2-login-required {
    text-align: center;
    padding: 50px 20px;
    background: var(--niu2-card-bg);
    border-radius: var(--niu2-radius-lg);
    box-shadow: var(--niu2-shadow);
}
.niu2-login-required h3 { margin-bottom: 6px; }
.niu2-login-required p { color: var(--niu2-text-secondary); margin-bottom: 18px; }

/* 加载动画 */
.niu2-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast提示 */
.niu2-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    padding: 10px 20px;
    background: var(--niu2-text);
    color: #fff;
    border-radius: var(--niu2-radius-sm);
    font-size: 13px;
    box-shadow: var(--niu2-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--niu2-transition);
    z-index: 3000;
    max-width: 90%;
    text-align: center;
}
.niu2-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.niu2-toast.success { background: var(--niu2-success); }
.niu2-toast.error { background: var(--niu2-danger); }

/* WordPress 核心样式兼容 */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; text-align: center; }
.wp-caption { max-width: 100%; margin-bottom: 20px; }
.wp-caption-text { text-align: center; font-size: 12px; color: var(--niu2-text-muted); padding-top: 6px; }
.sticky { }
.gallery { margin: 0 -10px 20px; }
.gallery-item { display: inline-block; width: 33.333%; padding: 0 10px; vertical-align: top; text-align: center; }
.gallery-caption { font-size: 11px; color: var(--niu2-text-muted); }
.bypostauthor { }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ========================================
   v1.3 日主题V5风格 - 文章页与导航栏
   ======================================== */

/* --- 导航栏修复 --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo a {
    font-size: 20px;
    font-weight: 700;
    color: var(--niu2-primary);
    text-decoration: none;
    white-space: nowrap;
}
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav li {
    flex-shrink: 0;
    position: relative;
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--niu2-primary);
    background: rgba(99,102,241,0.08);
}
.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-search {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 20px;
    padding: 0;
    width: auto;
    transition: width 0.3s;
}
.header-search:focus-within {
    background: transparent;
    box-shadow: none;
}
.header-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 13px;
    min-width: 0;
}
.header-search button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
    padding: 2px;
    flex-shrink: 0;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-user a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}
.header-user .btn-login {
    padding: 5px 14px;
    border: 1px solid var(--niu2-primary);
    color: var(--niu2-primary);
    border-radius: 16px;
    font-size: 13px;
}
.header-user .btn-register {
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
}

/* --- 文章页布局 --- */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.single-content {
    min-width: 0;
}
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- 文章头部 --- */
.article-header {
    margin-bottom: 20px;
}
.article-cat {
    font-size: 13px;
    color: var(--niu2-primary);
    margin-bottom: 10px;
}
.article-cat a {
    color: var(--niu2-primary);
    text-decoration: none;
}
.article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px;
    color: #1a1a1a;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #888;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-meta img {
    border-radius: 50%;
}

/* --- 资源信息卡片 --- */
.resource-info-card {
    display: flex;
    gap: 20px;
    background: #f8f9fc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #eef0f5;
}
.resource-thumb {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eaf0;
}
.resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resource-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}
.resource-details {
    flex: 1;
    min-width: 0;
}
.detail-row {
    display: flex;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.6;
}
.detail-label {
    width: 80px;
    flex-shrink: 0;
    color: #999;
}
.detail-value {
    flex: 1;
    color: #555;
    word-break: break-all;
}

/* --- 价格信息行 --- */
.resource-price-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.price-item {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.price-item.normal { border-top: 3px solid #999; }
.price-item.vip { border-top: 3px solid #f5a623; background: linear-gradient(180deg, #fffbf0 0%, #fff 100%); }
.price-item.svip { border-top: 3px solid var(--niu2-primary); background: linear-gradient(180deg, #f0f0ff 0%, #fff 100%); }
.price-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.price-original {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}
.price-item.vip .price-current { color: #f5a623; }
.price-item.svip .price-current { color: var(--niu2-primary); }
.price-free {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

/* --- 文章内容 --- */
.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-content h2, .article-content h3 {
    margin-top: 28px;
    margin-bottom: 14px;
}
.paid-content-tip {
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border: 1px dashed #c7d2fe;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}
.paid-content-tip p {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
}
.paid-content-tip .niu2-btn {
    margin: 4px;
}

/* --- 文章标签 --- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.tags-label {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-tags a {
    padding: 4px 12px;
    background: #f5f5f7;
    border-radius: 14px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.article-tags a:hover {
    background: var(--niu2-primary);
    color: #fff;
}

/* --- 文章操作栏 --- */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.action-btn:hover {
    border-color: var(--niu2-primary);
    color: var(--niu2-primary);
}
.action-btn.favorited {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}
.like-count {
    font-size: 12px;
    color: #999;
}

/* --- 作者信息框 --- */
.article-author-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
}
.article-author-box img {
    border-radius: 50%;
    flex-shrink: 0;
}
.author-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
}
.author-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* --- 上一篇/下一篇 --- */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.nav-prev a, .nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
}
.nav-next a { justify-content: flex-end; text-align: right; }
.nav-prev a:hover, .nav-next a:hover {
    background: #f0f4ff;
    color: var(--niu2-primary);
}
.nav-arrow {
    font-size: 18px;
    color: #bbb;
    flex-shrink: 0;
}
.nav-text { min-width: 0; }
.nav-label {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 2px;
}
.nav-title {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* --- 相关文章 --- */
.related-posts {
    margin-bottom: 24px;
}
.related-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--niu2-primary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.related-thumb {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 8px;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-thumb-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}
.related-card h4 {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}
.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    color: #aaa;
    line-height: 1;
}
.related-meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* --- 侧边栏小工具通用 --- */
.single-sidebar .widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef0f5;
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}
.widget-header .dashicons {
    color: var(--niu2-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* --- 下载小工具 --- */
.download-widget-body {
    padding: 16px;
}
.download-granted {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.download-price-box {
    text-align: center;
    margin-bottom: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border-radius: 10px;
}
.download-price-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.download-price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.price-original-small {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.price-current-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--niu2-primary);
}
.download-vip-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #f59e0b;
}
.vip-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.download-vip-only {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}
.download-widget .niu2-btn {
    margin-bottom: 8px;
    justify-content: center;
}
.download-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
}
.download-resource-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.resource-list-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}
.download-resource-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.download-resource-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    color: #888;
    border-bottom: 1px dashed #f0f0f0;
}
.download-resource-list li:last-child { border-bottom: none; }

/* --- 作者小工具 --- */
.author-widget-body {
    padding: 20px;
    text-align: center;
}
.author-avatar {
    margin-bottom: 10px;
}
.author-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}
.author-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
}
.stat-item {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.stat-label {
    display: block;
    font-size: 11px;
    color: #999;
}

/* --- 热门文章小工具 --- */
.hot-posts-list {
    padding: 8px 0;
}
.hot-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: background 0.2s;
}
.hot-post-item:hover {
    background: #f9fafb;
    color: var(--niu2-primary);
}
.hot-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #999;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.hot-rank.top {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}
.hot-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* --- 按钮通用 --- */
.niu2-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.niu2-btn-primary {
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    border: none;
}
.niu2-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.niu2-btn-outline {
    background: #fff;
    color: var(--niu2-primary);
    border: 1px solid var(--niu2-primary);
}
.niu2-btn-outline:hover { background: #f0f4ff; }
.niu2-btn-ghost {
    background: #f5f5f7;
    color: #666;
    border: none;
}
.niu2-btn-ghost:hover { background: #e8eaf0; }
.niu2-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}
.niu2-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* --- 响应式 --- */
@media (max-width: 900px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        position: static;
    }
    .resource-info-card {
        flex-direction: column;
    }
    .resource-thumb {
        width: 100%;
        height: 180px;
    }
    .resource-price-row {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
    .main-nav { display: none; }
    .header-search { width: 140px; }
    .header-search:focus-within { width: 180px; }
}
@media (max-width: 600px) {
    .header-inner { padding: 0 12px; gap: 8px; }
    .site-logo a { font-size: 16px; }
    .header-search { display: none; }
    .article-title { font-size: 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .article-actions { flex-wrap: wrap; }
}

/* ========================================
   v1.4 宽屏布局与细节优化
   ======================================== */

/* 宽屏容器 */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 首页宽屏 */
.niu2-home .container {
    max-width: 1400px;
}

/* 开关灯按钮 - 图标变小 */
.dark-mode-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.dark-mode-toggle:hover {
    background: #e8eaf0;
}
.dark-mode-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}
.dark-mode-toggle .dashicons-sun {
    color: #f59e0b;
}
.dark-mode-toggle .dashicons-moon {
    color: #6366f1;
}

/* 搜索栏夜间模式修复（单层胶囊） */
.dark-mode .header-search {
    background: transparent;
}
.dark-mode .header-search .search-form {
    background: #2a2a35;
    border-color: #3f3f4f;
}
.dark-mode .header-search input {
    color: #e0e0e0;
}
.dark-mode .header-search input::placeholder {
    color: #888;
}
.dark-mode .header-search:focus-within .search-form {
    background: #1f1f28;
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* 额外隐藏内容区域 */
.zib-extra-content {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}
.extra-content-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--niu2-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c7d2fe;
}
.extra-content-body {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.extra-content-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    margin: 4px;
    transition: all 0.2s;
}
.extra-content-body a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.dark-mode .zib-extra-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-color: #2d2d44;
}
.dark-mode .extra-content-body {
    color: #e0e0e0;
}

/* 首页底部分类目录 */
.footer-categories {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}
.footer-categories-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-cat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--niu2-primary);
}
.footer-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.footer-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}
.footer-cat-item:hover {
    background: #f0f4ff;
    color: var(--niu2-primary);
    transform: translateX(4px);
}
.footer-cat-item .cat-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 最新资源翻页 */
.latest-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.latest-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.latest-pagination .page-numbers:hover,
.latest-pagination .page-numbers.current {
    background: var(--niu2-primary);
    color: #fff;
    border-color: var(--niu2-primary);
}

/* 手机版分页：缩小尺寸、自动换行，防止横向滚动 */
@media (max-width: 768px) {
    .latest-pagination {
        gap: 6px;
        padding-top: 14px;
    }
    .latest-pagination .page-numbers {
        min-width: 26px;
        height: 26px;
        padding: 0 7px;
        font-size: 12px;
        border-radius: 6px;
    }
    .pagination-wrap .page-numbers {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        margin: 2px;
        font-size: 12px;
    }
}


/* 三段式分页：上一页/下一页固定两端同一行，中间页码自适应换行 */
.niu2-pagination-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}
.niu2-pagination-side {
    flex-shrink: 0;
}
.niu2-pagination-pages {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.niu2-pagination-pages::-webkit-scrollbar {
    display: none;
}
@media (max-width: 768px) {
    .niu2-pagination-flex {
        gap: 4px;
    }
    .niu2-pagination-pages {
        gap: 3px;
        justify-content: flex-start;
        padding: 2px 0;
    }
}

/* 后台文章编辑 - 子比兼容字段提示 */
.niu2-zibpay-notice {
    background: #f0f4ff;
    border-left: 4px solid var(--niu2-primary);
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 12px;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* ========================================
   v1.5 头部图标与功能修复
   ======================================== */

/* 头部图标按钮通用 */
.header-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.header-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.header-icon-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* VIP会员图标 */
.vip-icon-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

/* 夜间模式按钮 - 确保可见 */
.dark-mode-toggle {
    width: 36px !important;
    height: 36px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}
.dark-mode-toggle .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    color: #6b7280 !important;
}
.dark-mode-toggle:hover {
    background: #e5e7eb !important;
}
.dark-mode .dark-mode-toggle {
    background: #374151 !important;
    border-color: #4b5563 !important;
}
.dark-mode .dark-mode-toggle .dashicons {
    color: #fbbf24 !important;
}

/* 用户链接 */
.user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
}
.user-link img {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}
.user-name {
    font-size: 13px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧边栏用户中心模块 */
.widget.user-center-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}
.widget.user-center-widget .widget-header {
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.widget.user-center-widget .widget-header .dashicons {
    color: #fff;
}
.user-center-body {
    padding: 16px;
    text-align: center;
}
.user-center-avatar {
    margin-bottom: 10px;
}
.user-center-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}
.user-center-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.user-center-role {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 12px;
}
.user-center-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.user-center-links a {
    display: block;
    padding: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}
.user-center-links a:hover {
    background: rgba(255,255,255,0.25);
}
.user-center-guest {
    text-align: center;
}
.user-center-guest p {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.user-center-guest .niu2-btn {
    margin: 4px;
}

/* 会员提示模块 */
.widget.vip-tip-widget {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: none;
}
.vip-tip-body {
    padding: 16px;
    text-align: center;
}
.vip-tip-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}
.vip-tip-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    text-align: left;
}
.vip-tip-list li {
    padding: 4px 0;
    font-size: 13px;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vip-tip-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

/* 资源信息卡片右侧会员提示 */
.resource-vip-tip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    margin-left: 16px;
    flex: 1;
}
.vip-tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #78350f;
    font-weight: 500;
}
.vip-tip-icon {
    font-size: 16px;
}

/* 资源信息卡片改为flex布局包含提示 */
.resource-info-card {
    display: flex;
    align-items: stretch;
}
.resource-info-card .resource-details {
    flex: 1;
    min-width: 0;
}

/* 代理分销功能样式 */
.affiliate-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
.affiliate-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
}
.affiliate-link-box {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}
.affiliate-link-box input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
}
.affiliate-link-box button {
    padding: 8px 16px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.affiliate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.affiliate-stat-item {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.affiliate-stat-num {
    font-size: 24px;
    font-weight: 700;
}
.affiliate-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ========================================
   v1.6 导航栏修复
   ======================================== */

/* 会员开通按钮 */
.niu2-btn-vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #fff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.niu2-btn-vip:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4) !important;
}
.niu2-btn-vip .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1 !important;
}

/* 夜间模式按钮 - 使用emoji确保显示 */
.dark-mode-toggle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}
.dark-mode-toggle .dark-icon-moon,
.dark-mode-toggle .dark-icon-sun {
    display: none;
    font-size: 16px;
    line-height: 1;
}
.dark-mode-toggle .dark-icon-moon {
    display: inline;
}
body.dark-mode .dark-mode-toggle {
    background: #374151 !important;
    border-color: #4b5563 !important;
}
body.dark-mode .dark-mode-toggle .dark-icon-moon {
    display: none;
}
body.dark-mode .dark-mode-toggle .dark-icon-sun {
    display: inline;
}

/* ========================================
   CMS模块排版修复
   ======================================== */
.cms-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
    align-items: start !important;
}
.cms-card.cms-featured {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    height: 100% !important;
}
.cms-card:not(.cms-featured) {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    min-height: 100px !important;
}
.cms-card {
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: all 0.2s !important;
}
.cms-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}
.cms-thumb {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}
.cms-featured .cms-thumb {
    height: 280px !important;
}
.cms-card:not(.cms-featured) .cms-thumb {
    height: 90px !important;
    float: left !important;
    width: 120px !important;
    margin-right: 12px !important;
}
.cms-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.cms-info {
    padding: 10px 12px !important;
    overflow: hidden !important;
}
.cms-featured .cms-info {
    padding: 16px !important;
}
.cms-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.cms-featured .cms-card-title {
    font-size: 18px !important;
}
.cms-card-excerpt {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 8px !important;
    line-height: 1.6 !important;
}
.cms-card-meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}
.cms-card-meta .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* 卡片价格标签 */
.card-price {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
}
.card-badge-free {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
}

/* ========================================
   分类页面网格布局
   ======================================== */
.archive-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}
.archive-grid .post-card {
    margin: 0 !important;
}
@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 列表模式 */
.archive-list .post-card {
    display: flex !important;
    flex-direction: row !important;
    margin-bottom: 16px !important;
}
.archive-list .post-card .card-thumb {
    width: 200px !important;
    flex-shrink: 0 !important;
}
.archive-list .post-card .card-body {
    flex: 1 !important;
}

/* ========================================
   v1.6 文章页会员提示横向显示
   ======================================== */
.resource-vip-tip {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-radius: 10px !important;
    margin: 12px 0 !important;
    flex-wrap: wrap !important;
}
.resource-vip-tip .vip-tip-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #78350f !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
.resource-vip-tip .vip-tip-icon {
    font-size: 18px !important;
}

/* 资源信息卡片布局修复 */
.resource-info-card {
    display: block !important;
}
.resource-info-card .resource-details {
    width: 100% !important;
}

/* ========================================
   v1.7 开关灯按钮主题色 + CMS网格布局 + 分类页5列
   ======================================== */

/* 开关灯按钮随主题颜色变化 */
.dark-mode-toggle {
    background: linear-gradient(135deg, var(--niu2-primary, #6366f1), var(--niu2-secondary, #8b5cf6)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
}
.dark-mode-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4) !important;
}
body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 2px 8px rgba(251,191,36,0.3) !important;
}

/* CMS模块 - 网格布局模式 */
.cms-grid.cms-grid-mode {
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
}
.cms-grid.cms-grid-mode .cms-card.cms-featured {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
}
.cms-grid.cms-grid-mode .cms-card:not(.cms-featured) .cms-thumb {
    float: none !important;
    width: 100% !important;
    height: 160px !important;
    margin-right: 0 !important;
}
.cms-grid.cms-grid-mode .cms-info {
    padding: 10px 12px !important;
}

/* 最新资源分类选择按钮 */
.latest-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.latest-category-filter .cat-filter-item {
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.latest-category-filter .cat-filter-item:hover,
.latest-category-filter .cat-filter-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* 分类页面5列居中 */
.archive-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    justify-content: center !important;
    max-width: 100% !important;
}
.archive-grid .post-card {
    margin: 0 !important;
}
@media (max-width: 1400px) {
    .archive-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1100px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 文章页会员提示可点击 */
.resource-vip-tip .vip-tip-item {
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}
.resource-vip-tip .vip-tip-item:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

/* ========================================
   v1.8 SVG开关灯按钮 + 分类居中 + 支付优化
   ======================================== */

/* SVG开关灯按钮 */
.dark-mode-toggle {
    background: transparent !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
    color: var(--niu2-primary, #6366f1) !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    flex-shrink: 0 !important;
}
.dark-mode-toggle:hover {
    background: linear-gradient(135deg, var(--niu2-primary, #6366f1), var(--niu2-secondary, #8b5cf6)) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
    border-color: transparent !important;
}
.dark-mode-toggle .dark-icon {
    width: 18px !important;
    height: 18px !important;
    display: none !important;
}
.dark-mode-toggle .dark-icon-moon {
    display: block !important;
}
body.dark-mode .dark-mode-toggle {
    color: #fbbf24 !important;
    border-color: rgba(251,191,36,0.3) !important;
}
body.dark-mode .dark-mode-toggle:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #fff !important;
}
body.dark-mode .dark-mode-toggle .dark-icon-moon {
    display: none !important;
}
body.dark-mode .dark-mode-toggle .dark-icon-sun {
    display: block !important;
}

/* 分类页面5列居中对齐 */
.archive-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}
.archive-grid .post-card {
    margin: 0 !important;
    width: 100% !important;
}
@media (max-width: 1400px) {
    .archive-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1100px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 最新资源分类筛选 - AJAX加载样式 */
.latest-category-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.latest-category-filter .cat-filter-item {
    padding: 6px 16px !important;
    background: #f3f4f6 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    border: none !important;
}
.latest-category-filter .cat-filter-item:hover,
.latest-category-filter .cat-filter-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
}
.latest-category-filter .cat-filter-item.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* 支付弹窗二维码样式 */
.pay-qrcode {
    text-align: center !important;
    padding: 20px !important;
}
.pay-qrcode img {
    max-width: 200px !important;
    margin: 0 auto !important;
    display: block !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px !important;
}
.pay-qrcode .pay-tip {
    margin-top: 12px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}
.pay-success {
    text-align: center !important;
    padding: 30px !important;
}
.pay-success .dashicons {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    color: #10b981 !important;
    margin-bottom: 12px !important;
}

/* ========================================
   v1.9 分类页网格放大居中
   ======================================== */
.archive-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.archive-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px !important;
    justify-content: center !important;
    align-items: start !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.archive-grid .post-card {
    margin: 0 !important;
    width: 100% !important;
    min-height: 320px !important;
}
.archive-grid .post-card .card-thumb {
    height: 180px !important;
}
.archive-grid .post-card .card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.archive-sidebar {
    display: none !important;
}
.archive-layout {
    display: block !important;
}
@media (max-width: 1400px) {
    .archive-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1100px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 10px !important;
    }
    .archive-grid .post-card .card-thumb {
        height: 140px !important;
    }
}
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   v2.0 文章页下载模块新样式
   ======================================== */
.resource-info-card-v2 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin: 20px 0;
    overflow: hidden;
}
.resource-info-top {
    display: flex;
    gap: 24px;
    padding: 24px;
}
.resource-thumb-v2 {
    width: 280px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.resource-thumb-v2 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.no-thumb-v2 {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-thumb-v2 .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
}
.resource-details-v2 {
    flex: 1;
    min-width: 0;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.detail-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.6;
}
.detail-label {
    color: #6b7280;
    margin-right: 6px;
    flex-shrink: 0;
}
.detail-value {
    color: #1f2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 下载地址区域 */
.resource-download-area {
    border-top: 1px solid #e5e7eb;
    padding: 24px;
    background: #f9fafb;
}
.download-url-box {
    text-align: center;
}
.download-url-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.download-url-content {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    word-break: break-all;
}
.download-locked-box {
    text-align: center;
}
.download-tip {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}
.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-buttons .niu2-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .resource-info-top {
        flex-direction: column;
        padding: 16px;
    }
    .resource-thumb-v2 {
        width: 100%;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .resource-download-area {
        padding: 16px;
    }
}

/* 支付弹窗二维码修复 */
.pay-qrcode {
    text-align: center;
    padding: 20px;
}
.pay-qrcode img {
    max-width: 200px !important;
    max-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto !important;
    display: block !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px !important;
    background: #fff !important;
    object-fit: contain !important;
}
.pay-qrcode .qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ========================================
   v2.1 下载模块严格按照参考图布局
   ======================================== */
.resource-info-card-v2 {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 16px 0;
    overflow: hidden;
}
.resource-info-top {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}
.resource-thumb-v2 {
    width: 160px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.resource-thumb-v2 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.no-thumb-v2 {
    width: 100%;
    height: 120px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-thumb-v2 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #9ca3af;
}
.resource-details-v2 {
    flex: 1;
    min-width: 0;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.detail-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.8;
}
.detail-label {
    color: #6b7280;
    margin-right: 4px;
    flex-shrink: 0;
}
.detail-value {
    color: #1f2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 下载地址区域 */
.resource-download-area {
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    background: #f9fafb;
    text-align: center;
}
.download-url-box {
    text-align: center;
}
.download-url-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}
.download-url-content {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 16px;
    word-break: break-all;
    text-align: left;
}
.download-locked-box {
    text-align: center;
}
.download-tip {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}
.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-buttons .niu2-btn {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 6px;
}

/* 响应式 */
@media (max-width: 640px) {
    .resource-info-top {
        flex-direction: column;
        padding: 16px;
    }
    .resource-thumb-v2 {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .resource-download-area {
        padding: 16px;
    }
}

/* ========================================
   v2.2 暗色模式配色 + 内容页主图放大 + 弹窗修复
   ======================================== */

/* 暗色模式开关灯按钮 - 使用网站紫色系配色 */
body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.4) !important;
}
body.dark-mode .dark-mode-toggle:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    transform: scale(1.1) !important;
}
body.dark-mode .dark-mode-toggle .dark-icon {
    color: #fff !important;
}

/* 内容页主图放大 */
.resource-thumb-v2 {
    width: 240px !important;
}
.resource-thumb-v2 img {
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    object-fit: cover !important;
}
.no-thumb-v2 {
    height: 180px !important;
}

/* 支付模块与主图模块融合一体 */
.resource-info-card-v2 {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.resource-info-top {
    padding: 24px !important;
    background: #fff !important;
}
.resource-download-area {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 20px 24px !important;
}

/* 暗色模式下载模块 */
body.dark-mode .resource-info-card-v2 {
    background: #1f2937 !important;
    border-color: #374151 !important;
}
body.dark-mode .resource-info-top {
    background: #1f2937 !important;
}
body.dark-mode .resource-download-area {
    background: #111827 !important;
    border-top-color: #374151 !important;
}
body.dark-mode .detail-label {
    color: #9ca3af !important;
}
body.dark-mode .detail-value {
    color: #f3f4f6 !important;
}
body.dark-mode .download-tip {
    color: #9ca3af !important;
}

/* 支付弹窗二维码加载优化 */
.pay-qrcode img {
    max-width: 200px !important;
    max-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto !important;
    display: block !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px !important;
    background: #fff !important;
    object-fit: contain !important;
}

/* 支付弹窗loading动画 */
.qrcode-loading {
    text-align: center;
    padding: 20px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.qrcode-loading p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   v2.3 支付窗口修复 + 底部增强 + 悬浮按钮 + 验证码
   ======================================== */

/* 修复支付窗口破损图片图标 */
.pay-qrcode img[src=""],
.pay-qrcode img:not([src]) {
    display: none !important;
    visibility: hidden !important;
}
#payQrcodeImg {
    display: none;
}
#payQrcodeImg[src]:not([src=""]) {
    display: block !important;
}

/* 底部增强样式 */
.footer-enhanced {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about-col .footer-logo img {
    max-height: 40px;
    width: auto;
    margin-bottom: 15px;
}
.footer-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
}
.footer-about-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0 0 15px;
}
.footer-col-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px;
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: #8b5cf6;
}
.footer-qrcodes {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.footer-qrcode-item {
    text-align: center;
}
.footer-qrcode-item img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
    display: block;
}
.footer-qrcode-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
    display: block;
}
.footer-contact-info {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}
.footer-icp {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 5px 0;
}
.footer-icp a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-right: 10px;
}
.footer-beian {
    display: inline-block;
}

/* 右侧悬浮按钮 */
.niu2-float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.float-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: scale(1.1);
    width: auto;
    padding: 0 16px;
    border-radius: 24px;
}
.float-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
/* 微信/QQ SVG图标 */
.float-btn .float-icon-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
}
.float-btn .float-icon-img img {
    width: 20px;
    height: 20px;
    display: block;
}
/* 扫码类型：鼠标悬停悬浮显示二维码图片 */
.float-btn-qrcode {
    overflow: visible !important;
}
.float-btn-qrcode .float-qr-pop {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 8px;
    display: none;
    z-index: 1000;
}
.float-btn-qrcode .float-qr-pop::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: translateY(-50%) rotate(45deg);
}
.float-btn-qrcode .float-qr-pop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.float-btn-qrcode:hover .float-qr-pop {
    display: block;
}
.float-btn-text {
    display: none;
    margin-left: 6px;
    font-size: 13px;
    white-space: nowrap;
}
.float-btn:hover .float-btn-text {
    display: inline;
}
body.dark-mode .float-btn {
    background: #1f2937;
    color: #8b5cf6;
}

/* 验证码样式 */
.captcha-wrap {
    margin: 15px 0;
}
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}
.captcha-img {
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    background: #f3f4f6;
}
/* 滑块验证 */
.slide-captcha {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
}
.slide-captcha-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0;
    transition: width 0.1s;
}
.slide-captcha-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6b7280;
    z-index: 1;
}
.slide-captcha-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.slide-captcha-btn:active {
    cursor: grabbing;
}
.slide-captcha.success .slide-captcha-track {
    background: #10b981;
}
.slide-captcha.success .slide-captcha-text {
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer-enhanced {
        grid-template-columns: 1fr 1fr;
    }
    .footer-contact-col {
        grid-column: 1 / -1;
    }
    .niu2-float-buttons {
        right: 10px;
        bottom: 80px;
    }
    .float-btn {
        width: 40px;
        height: 40px;
    }
    .niu2-float-buttons .float-btn-mobileqr {
        display: none !important;
    }
}

/* 下载区域在右边信息区域内 */
.resource-details-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.resource-details-v2 .resource-download-area {
    margin-top: auto;
    border: none;
    border-radius: 8px;
    padding: 16px;
}

/* ========================================
   v2.5 网站内提示 + 用户悬浮窗 + 分享 + 扫码
   ======================================== */

/* 网站内提示消息 */
.niu2-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: niu2MessageIn 0.3s ease;
    max-width: 90%;
}
.niu2-message.success { background: linear-gradient(135deg, #10b981, #059669); }
.niu2-message.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.niu2-message.info { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
@keyframes niu2MessageIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 用户头像悬浮窗 */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}
.user-avatar-trigger {
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}
.user-avatar-trigger:hover {
    border-color: #8b5cf6;
}
.user-avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}
.user-avatar-wrapper:hover .user-dropdown,
.user-avatar-wrapper.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-dropdown-info {
    flex: 1;
    min-width: 0;
}
.user-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
}
.user-dropdown-vip {
    font-size: 12px;
    opacity: 0.9;
}
.user-dropdown-body {
    padding: 12px 16px;
}
.user-dropdown-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 8px;
}
.user-stat-item {
    text-align: center;
}
.user-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.user-stat-label {
    font-size: 11px;
    color: #6b7280;
}
.user-dropdown-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.user-dropdown-link:hover {
    background: #f3f4f6;
    color: #6366f1;
}
.user-dropdown-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 暗色模式用户悬浮窗 */
body.dark-mode .user-dropdown {
    background: #1f2937;
}
body.dark-mode .user-dropdown-stats {
    border-bottom-color: #374151;
}
body.dark-mode .user-stat-num {
    color: #f3f4f6;
}
body.dark-mode .user-stat-label {
    color: #9ca3af;
}
body.dark-mode .user-dropdown-link {
    color: #d1d5db;
}
body.dark-mode .user-dropdown-link:hover {
    background: #374151;
    color: #8b5cf6;
}

/* 分享悬浮窗 */
.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 400px;
    max-width: 90%;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: none;
}
.share-popup.active { display: block; }
.share-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}
.share-popup-overlay.active { display: block; }
.share-popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
}
.share-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.share-platform:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}
.share-platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.share-platform.wechat .share-platform-icon { background: #07c160; }
.share-platform.qq .share-platform-icon { background: #12b7f5; }
.share-platform.douyin .share-platform-icon { background: #000; }
.share-platform.copy .share-platform-icon { background: #6366f1; }
.share-platform.poster .share-platform-icon { background: #f59e0b; }
.share-platform-name {
    font-size: 12px;
    color: #4b5563;
}
.share-link-box {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.share-link-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
}
.share-link-copy {
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* 海报分享 */
.poster-preview {
    margin-top: 16px;
    text-align: center;
}
.poster-preview img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 悬浮按钮不变大 */
.float-btn:hover {
    transform: none !important;
    width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}
.float-btn:hover .float-btn-text {
    display: none !important;
}

/* 用户中心图像居中对齐 */
.user-center-widget .user-center-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
}
.user-center-widget .user-center-avatar img {
    display: block;
    margin: 0 auto;
}
.user-center-guest {
    text-align: center;
}
.user-center-guest .user-center-avatar {
    margin: 0 auto 10px;
}

/* 图像滑块验证 */
.img-slide-captcha {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    user-select: none;
}
.img-slide-bg {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.img-slide-gap {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border: 2px solid #fff;
    border-radius: 4px;
    top: 35px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.img-slide-block {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: 200px 120px;
    border-radius: 4px;
    top: 35px;
    left: 0;
    cursor: grab;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 2;
}
.img-slide-block:active {
    cursor: grabbing;
}
.img-slide-track {
    height: 40px;
    background: #e5e7eb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-slide-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0;
}
.img-slide-track-text {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: #6b7280;
}
.img-slide-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    border-radius: 4px;
}
.img-slide-handle:active {
    cursor: grabbing;
}
.img-slide-captcha.success .img-slide-track-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}
.img-slide-captcha.success .img-slide-track-text {
    color: #fff;
}

/* 分享悬浮窗美化 */
.share-popup {
    border-radius: 16px !important;
    padding: 28px 24px !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25) !important;
}
.share-popup-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #1f2937 !important;
}
.share-popup-close {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
    color: #6b7280 !important;
    background: #f3f4f6 !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}
.share-popup-close:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    transform: rotate(90deg) !important;
}
.share-platforms {
    gap: 8px !important;
    margin-bottom: 20px !important;
}
.share-platform {
    padding: 14px 8px !important;
    border-radius: 12px !important;
    transition: all 0.2s !important;
}
.share-platform:hover {
    background: #f9fafb !important;
    transform: translateY(-3px) !important;
}
.share-platform-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 22px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.share-platform-name {
    font-size: 13px !important;
    color: #4b5563 !important;
    margin-top: 8px !important;
}
.share-link-box {
    background: #f9fafb !important;
    padding: 12px !important;
    border-radius: 10px !important;
    margin-top: 16px !important;
}
.share-link-input {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}
.share-link-copy {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.share-link-copy:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4) !important;
}
.poster-preview {
    margin-top: 20px !important;
    text-align: center !important;
}
.poster-preview img {
    max-width: 280px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
    border: 4px solid #fff !important;
}

/* 确保分享弹窗立即可关闭 */
.share-popup.active {
    display: block !important;
    animation: sharePopupIn 0.2s ease !important;
}
@keyframes sharePopupIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ========================================
   手机版自适应优化
   ======================================== */
@media (max-width: 768px) {
    /* 导航栏 */
    .header-actions .niu2-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .user-avatar-trigger {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 用户悬浮窗 */
    .user-dropdown {
        width: 260px !important;
        right: -10px !important;
    }
    
    /* 文章页资源信息卡片 */
    .resource-info-top {
        flex-direction: column !important;
        padding: 16px !important;
    }
    .resource-thumb-v2 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 16px !important;
    }
    .resource-details-v2 {
        width: 100% !important;
    }
    .detail-grid {
        grid-template-columns: 1fr !important;
    }
    .resource-download-area {
        padding: 16px !important;
    }
    .download-buttons {
        flex-direction: column !important;
    }
    .download-buttons .niu2-btn {
        width: 100% !important;
    }
    
    /* 支付弹窗 */
    .auth-modal, .modal-content {
        width: 90% !important;
        max-width: 360px !important;
        padding: 20px !important;
    }
    .pay-qrcode img {
        max-width: 180px !important;
        max-height: 180px !important;
    }
    
    /* 分享悬浮窗 */
    .share-popup {
        width: 90% !important;
        max-width: 360px !important;
        padding: 20px 16px !important;
    }
    .share-platforms {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .poster-preview img {
        max-width: 220px !important;
    }
    
    /* 底部 */
    .footer-enhanced {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .footer-contact-col {
        grid-column: auto !important;
    }
    
    /* 悬浮按钮 */
    .niu2-float-buttons {
        right: 10px !important;
        bottom: 70px !important;
    }
    .float-btn {
        width: 40px !important;
        height: 40px !important;
    }
    .float-btn .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    /* 验证码 - 输入框与验证码并排，验证码保持原始清晰度，整行与上方输入框对齐 */
    .captcha-row {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
    }
    .captcha-input {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    .captcha-img {
        width: 100px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
    }
    
    /* 图像滑块验证 */
    .img-slide-captcha {
        height: 140px !important;
    }
    .img-slide-bg {
        height: 100px !important;
    }
    .img-slide-gap, .img-slide-block {
        width: 40px !important;
        height: 40px !important;
        top: 30px !important;
    }
}

@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .user-dropdown {
        width: 240px !important;
    }
    .auth-tabs button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

/* 分享悬浮窗性能优化 - 确保立即响应 */
#shareOverlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
#shareOverlay.active {
    opacity: 1;
    visibility: visible;
}
.share-popup {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.share-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: none !important;
}
/* 海报预览居中 */
.poster-preview {
    display: none;
    margin-top: 16px;
    text-align: center;
}
.poster-preview img {
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 4px solid #fff;
    display: inline-block;
}

/* 分享弹窗性能优化 - 确保立即响应，无卡顿 */
#shareOverlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}
#shareOverlay.active {
    opacity: 1;
    visibility: visible;
}
#sharePopup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    z-index: 9999;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#sharePopup.active {
    opacity: 1;
    visibility: visible;
}
/* 海报预览 - 居中显示，不变形 */
.poster-preview {
    margin-top: 16px;
    text-align: center;
    width: 100%;
}
.poster-preview img {
    max-width: 280px;
    width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 4px solid #fff;
    display: inline-block;
}

/* 分享弹窗 - 确保关闭按钮立即响应，无卡顿 */
#shareOverlay,
#sharePopup {
    transition: none !important;
}
#shareOverlay:not(.active) {
    display: none !important;
}
#sharePopup:not(.active) {
    display: none !important;
}
#shareOverlay.active,
#sharePopup.active {
    display: block !important;
}
/* 关闭按钮确保可点击 */
#shareClose {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10000 !important;
}

/* 底部简化布局 */
.footer-compact {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    flex-wrap: wrap;
}
.footer-compact .footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-compact .footer-about-col {
    flex: 2;
}
.footer-beian-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-beian-info .footer-copyright-text {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.footer-beian-info .footer-icp {
    margin: 0;
    font-size: 12px;
}
.footer-beian-info .footer-icp a,
.footer-beian-info .footer-icp span {
    color: rgba(255,255,255,0.5);
    margin-right: 15px;
    text-decoration: none;
}
.footer-bottom-simple {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-simple .footer-powered {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
    .footer-compact {
        flex-direction: column;
        gap: 25px;
    }
}

/* === v4.0 优化 === */

/* Logo固定大小自适应 */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-logo img,
.site-logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.header-logo .logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.header-logo .logo-name {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .header-logo img,
    .site-logo-img {
        max-height: 36px;
    }
    .header-logo .logo-name {
        font-size: 15px;
    }
}

/* 菜单栏美化加宽 */
.niu2-header .container {
    max-width: 1400px;
    padding: 0 20px;
}
.niu2-nav {
    flex: 1;
    justify-content: center;
    gap: 5px;
}
.niu2-nav > li > a {
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.niu2-nav > li > a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--niu2-primary, #6366f1);
}
@media (max-width: 1024px) {
    .niu2-header .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* 底部更矮更紧凑 */
.niu2-footer {
    padding: 0;
}
.footer-compact {
    padding: 20px 0 !important;
    gap: 30px !important;
}
.footer-compact .footer-about-col {
    flex: 1.5 !important;
}
.footer-compact .footer-contact-col {
    flex: 1 !important;
    max-width: 320px;
}
.footer-about-text {
    font-size: 13px;
    line-height: 1.7;
    margin: 8px 0 0 0;
}
.footer-beian-info {
    margin-top: 10px !important;
    padding-top: 10px !important;
}
.footer-beian-info .footer-copyright-text {
    font-size: 12px !important;
    margin-bottom: 5px !important;
}
.footer-beian-info .footer-icp {
    font-size: 11px !important;
}
.footer-beian-info .footer-icp a,
.footer-beian-info .footer-icp span {
    font-size: 11px !important;
    margin-right: 12px !important;
}
.footer-col-title {
    font-size: 15px;
    margin-bottom: 12px;
}
.footer-qrcodes {
    gap: 15px;
    margin-bottom: 10px;
}
.footer-qrcode-item img {
    width: 80px;
    height: 80px;
}
.footer-qrcode-item span {
    font-size: 12px;
    margin-top: 5px;
}
.footer-contact-info {
    font-size: 12px;
    line-height: 1.8;
}
.footer-bottom-simple {
    padding: 8px 0 !important;
}
.footer-bottom-simple .footer-powered {
    font-size: 11px !important;
}
@media (max-width: 768px) {
    .footer-compact {
        flex-direction: column;
        gap: 20px !important;
        padding: 15px 0 !important;
    }
    .footer-compact .footer-contact-col {
        max-width: 100%;
    }
}

/* === v4.1 底部三栏对称布局 === */
.footer-three-col {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
    flex-wrap: wrap;
}
.footer-three-col .footer-col {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.footer-three-col .footer-left-col {
    text-align: left;
}
.footer-three-col .footer-center-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-three-col .footer-right-col {
    text-align: right;
}
.footer-three-col .footer-logo {
    margin-bottom: 10px;
}
.footer-three-col .footer-logo img {
    max-height: 40px;
    width: auto;
}
.footer-three-col .footer-about-text {
    font-size: 13px;
    line-height: 1.7;
    margin: 8px 0 0 0;
    color: rgba(255,255,255,0.7);
}
.footer-three-col .footer-beian-info {
    width: 100%;
}
.footer-three-col .footer-copyright-text {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: rgba(255,255,255,0.7);
}
.footer-three-col .footer-icp {
    font-size: 12px;
    margin: 0;
}
.footer-three-col .footer-icp a,
.footer-three-col .footer-icp span {
    color: rgba(255,255,255,0.5);
    margin: 0 8px;
    text-decoration: none;
}
.footer-three-col .footer-col-title {
    font-size: 15px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}
.footer-three-col .footer-qrcodes {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.footer-three-col .footer-qrcode-item {
    text-align: center;
}
.footer-three-col .footer-qrcode-item img {
    width: 75px;
    height: 75px;
    border-radius: 6px;
}
.footer-three-col .footer-qrcode-item span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: rgba(255,255,255,0.6);
}
.footer-three-col .footer-contact-info {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
    .footer-three-col {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    .footer-three-col .footer-col {
        text-align: center !important;
    }
    .footer-three-col .footer-qrcodes {
        justify-content: center;
    }
}

/* === v4.2 内容页布局优化 === */
.resource-info-card-v2 {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    align-items: stretch;
}
.resource-info-card-v2 .resource-thumb-v2 {
    flex: 0 0 280px;
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
}
.resource-info-card-v2 .resource-thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.resource-info-card-v2 .resource-details-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.resource-info-card-v2 .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 12px;
}
.resource-info-card-v2 .detail-item {
    font-size: 13px;
    display: flex;
    gap: 6px;
}
.resource-info-card-v2 .detail-label {
    color: #999;
    flex-shrink: 0;
}
.resource-info-card-v2 .detail-value {
    color: #333;
    font-weight: 500;
}
.resource-info-card-v2 .resource-download-area {
    margin-top: auto;
}
.resource-info-card-v2 .download-url-box,
.resource-info-card-v2 .download-locked-box {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.resource-info-card-v2 .download-url-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.resource-info-card-v2 .download-tip {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    text-align: center;
}
.resource-info-card-v2 .download-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.resource-info-card-v2 .download-buttons .niu2-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    font-size: 14px;
}

/* 会员提示模块缩小 */
.resource-vip-tip {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.resource-vip-tip .vip-tip-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    text-decoration: none;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s;
}
.resource-vip-tip .vip-tip-item:hover {
    transform: translateY(-2px);
}
.resource-vip-tip .vip-tip-item:last-child {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}
.resource-vip-tip .vip-tip-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .resource-info-card-v2 {
        flex-direction: column;
    }
    .resource-info-card-v2 .resource-thumb-v2 {
        flex: none;
        width: 100%;
        height: 200px;
    }
    .resource-info-card-v2 .detail-grid {
        grid-template-columns: 1fr;
    }
    .resource-vip-tip {
        flex-direction: column;
    }
}

/* === 图像滑块验证 === */
.img-slide-captcha {
    width: 100%;
    user-select: none;
}
.img-slide-bg {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.img-slide-gap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
.img-slide-block {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.img-slide-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.img-slide-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
}
.img-slide-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0;
    transition: width 0.1s;
}
.img-slide-track-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 40px;
    font-size: 13px;
    color: #999;
    z-index: 1;
}
.img-slide-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: box-shadow 0.2s;
}
.img-slide-handle:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.img-slide-handle:active {
    cursor: grabbing;
}
.img-slide-handle .dashicons {
    color: #6366f1;
    font-size: 20px;
}
.img-slide-captcha.success .img-slide-track-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.img-slide-captcha.success .img-slide-track-text {
    color: #10b981;
    font-weight: 600;
}

/* === 自定义HTML广告 === */
.niu2-custom-ad {
    margin: 15px 0;
    overflow: hidden;
    border-radius: 8px;
}
.niu2-custom-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}
.niu2-custom-ad.ad-home_top,
.niu2-custom-ad.ad-home_bottom {
    margin: 20px 0;
    text-align: center;
}
.niu2-custom-ad.ad-single_top {
    margin-bottom: 20px;
}
.niu2-custom-ad.ad-single_bottom {
    margin-top: 20px;
}
.niu2-custom-ad.ad-sidebar {
    margin-bottom: 15px;
}

/* === v4.3 底部三栏居中对齐修复 === */
.footer-three-col {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 30px 0 !important;
}
.footer-three-col .footer-col {
    flex: 1 !important;
    width: 33.333% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 15px !important;
}
.footer-three-col .footer-left-col {
    text-align: left !important;
    align-items: flex-start !important;
}
.footer-three-col .footer-center-col {
    text-align: center !important;
    align-items: center !important;
}
.footer-three-col .footer-right-col {
    text-align: right !important;
    align-items: flex-end !important;
}
.footer-three-col .footer-logo {
    margin-bottom: 10px !important;
}
.footer-three-col .footer-logo img {
    max-height: 44px !important;
    width: auto !important;
}
.footer-three-col .footer-about-text {
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 8px 0 0 0 !important;
    color: rgba(255,255,255,0.7) !important;
    max-width: 320px !important;
}
.footer-three-col .footer-beian-info {
    width: 100% !important;
    text-align: center !important;
}
.footer-three-col .footer-copyright-text {
    font-size: 13px !important;
    margin: 0 0 8px 0 !important;
    color: rgba(255,255,255,0.7) !important;
}
.footer-three-col .footer-icp {
    font-size: 12px !important;
    margin: 0 !important;
}
.footer-three-col .footer-icp a,
.footer-three-col .footer-icp span {
    color: rgba(255,255,255,0.5) !important;
    margin: 0 8px !important;
    text-decoration: none !important;
}
.footer-three-col .footer-col-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
    color: rgba(255,255,255,0.9) !important;
}
.footer-three-col .footer-qrcodes {
    display: flex !important;
    gap: 15px !important;
    justify-content: flex-end !important;
    margin-bottom: 10px !important;
}
.footer-three-col .footer-qrcode-item {
    text-align: center !important;
}
.footer-three-col .footer-qrcode-item img {
    width: 75px !important;
    height: 75px !important;
    border-radius: 6px !important;
}
.footer-three-col .footer-qrcode-item span {
    display: block !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    color: rgba(255,255,255,0.6) !important;
}
.footer-three-col .footer-contact-info {
    font-size: 12px !important;
    line-height: 1.8 !important;
    color: rgba(255,255,255,0.6) !important;
    text-align: right !important;
}
@media (max-width: 768px) {
    .footer-three-col {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px 0 !important;
    }
    .footer-three-col .footer-col {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .footer-three-col .footer-left-col,
    .footer-three-col .footer-right-col {
        text-align: center !important;
        align-items: center !important;
    }
    .footer-three-col .footer-qrcodes {
        justify-content: center !important;
    }
    .footer-three-col .footer-contact-info {
        text-align: center !important;
    }
    .footer-three-col .footer-about-text {
        max-width: 100% !important;
        text-align: center !important;
    }
}

/* === v4.4 底部对齐修复（覆盖之前的错误padding） === */
.footer-three-col {
    padding: 25px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.footer-three-col .footer-col {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.footer-three-col .footer-left-col {
    padding-right: 20px !important;
}
.footer-three-col .footer-center-col {
    padding: 0 20px !important;
}
.footer-three-col .footer-right-col {
    padding-left: 20px !important;
}
@media (max-width: 768px) {
    .footer-three-col .footer-col {
        padding: 0 !important;
    }
    .footer-three-col .footer-left-col,
    .footer-three-col .footer-center-col,
    .footer-three-col .footer-right-col {
        padding: 0 !important;
    }
}

/* === v4.5 底部布局微调 === */
.footer-three-col .footer-left-col {
    padding-right: 30px !important;
    text-align: left !important;
    align-items: flex-start !important;
}
.footer-three-col .footer-right-col {
    padding-left: 30px !important;
    text-align: right !important;
    align-items: flex-end !important;
}
.footer-three-col .footer-col-title {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}
.footer-three-col .footer-qrcodes {
    justify-content: center !important;
    width: 100% !important;
}
.footer-three-col .footer-contact-info {
    width: 100% !important;
    text-align: center !important;
}
@media (max-width: 768px) {
    .footer-three-col .footer-left-col,
    .footer-three-col .footer-right-col {
        padding: 0 !important;
        text-align: center !important;
        align-items: center !important;
    }
}

/* === v4.6 底部左右对齐修复 === */
.footer-three-col .footer-left-col {
    text-align: left !important;
    align-items: flex-start !important;
    padding-right: 20px !important;
}
.footer-three-col .footer-left-col .footer-logo,
.footer-three-col .footer-left-col .footer-about-text,
.footer-three-col .footer-left-col .footer-site-name {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
.footer-three-col .footer-right-col {
    text-align: right !important;
    align-items: flex-end !important;
    padding-left: 20px !important;
}
.footer-three-col .footer-right-col .footer-col-title {
    text-align: right !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
.footer-three-col .footer-right-col .footer-qrcodes {
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
.footer-three-col .footer-right-col .footer-contact-info {
    text-align: right !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
@media (max-width: 768px) {
    .footer-three-col .footer-left-col,
    .footer-three-col .footer-right-col {
        text-align: center !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .footer-three-col .footer-right-col .footer-col-title,
    .footer-three-col .footer-right-col .footer-qrcodes,
    .footer-three-col .footer-right-col .footer-contact-info {
        text-align: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* === v4.7 内容页布局修复 === */
.resource-info-card-v2 {
    display: block !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    margin-bottom: 20px !important;
}
.resource-info-card-v2 .resource-info-top {
    display: flex !important;
    gap: 20px !important;
    align-items: stretch !important;
}
.resource-info-card-v2 .resource-thumb-v2 {
    flex: 0 0 280px !important;
    width: 280px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.resource-info-card-v2 .resource-thumb-v2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.resource-info-card-v2 .resource-details-v2 {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
}
.resource-info-card-v2 .detail-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 16px !important;
    margin-bottom: 12px !important;
}
.resource-info-card-v2 .detail-item {
    font-size: 13px !important;
    display: flex !important;
    gap: 6px !important;
}
.resource-info-card-v2 .detail-label {
    color: #999 !important;
    flex-shrink: 0 !important;
}
.resource-info-card-v2 .detail-value {
    color: #333 !important;
    font-weight: 500 !important;
}
.resource-info-card-v2 .resource-download-area {
    margin-top: auto !important;
}
.resource-info-card-v2 .download-url-box,
.resource-info-card-v2 .download-locked-box {
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
}
.resource-info-card-v2 .download-url-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #333 !important;
}
.resource-info-card-v2 .download-tip {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
}
.resource-info-card-v2 .download-buttons {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}
.resource-info-card-v2 .download-buttons .niu2-btn {
    flex: 1 !important;
    min-width: 120px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

/* 会员提示模块 - 确保不浮动不定位 */
.resource-vip-tip {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.resource-vip-tip .vip-tip-item {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #92400e !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: transform 0.2s !important;
    box-sizing: border-box !important;
}
.resource-vip-tip .vip-tip-item:hover {
    transform: translateY(-2px) !important;
}
.resource-vip-tip .vip-tip-item:last-child {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
    color: #1e40af !important;
}
.resource-vip-tip .vip-tip-icon {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .resource-info-card-v2 .resource-info-top {
        flex-direction: column !important;
    }
    .resource-info-card-v2 .resource-thumb-v2 {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
    }
    .resource-info-card-v2 .detail-grid {
        grid-template-columns: 1fr !important;
    }
    .resource-vip-tip {
        flex-direction: column !important;
    }
}

/* === v4.7 底部与首页对齐修复 === */
.footer-three-col {
    padding: 25px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.footer-three-col .footer-col {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
.footer-three-col .footer-left-col {
    padding-right: 15px !important;
    text-align: left !important;
    align-items: flex-start !important;
}
.footer-three-col .footer-center-col {
    padding: 0 15px !important;
}
.footer-three-col .footer-right-col {
    padding-left: 15px !important;
    text-align: right !important;
    align-items: flex-end !important;
}
.footer-three-col .footer-left-col .footer-logo,
.footer-three-col .footer-left-col .footer-about-text,
.footer-three-col .footer-left-col .footer-site-name {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 100% !important;
}
.footer-three-col .footer-right-col .footer-col-title {
    text-align: right !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
.footer-three-col .footer-right-col .footer-qrcodes {
    justify-content: flex-end !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
.footer-three-col .footer-right-col .footer-contact-info {
    text-align: right !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
@media (max-width: 768px) {
    .footer-three-col .footer-col {
        padding: 0 !important;
    }
    .footer-three-col .footer-left-col,
    .footer-three-col .footer-center-col,
    .footer-three-col .footer-right-col {
        padding: 0 !important;
        text-align: center !important;
        align-items: center !important;
    }
    .footer-three-col .footer-right-col .footer-col-title,
    .footer-three-col .footer-right-col .footer-qrcodes,
    .footer-three-col .footer-right-col .footer-contact-info {
        text-align: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* === v4.8 分类页面全宽+内容放大 === */
.niu2-archive .archive-layout {
    display: block !important;
    width: 100% !important;
}
.niu2-archive .archive-content {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}
.niu2-archive .archive-sidebar {
    display: none !important;
}

/* 分类页面文章卡片放大 */
.niu2-archive .posts-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}
.niu2-archive .post-card {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.niu2-archive .post-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.niu2-archive .post-card .post-thumb {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    position: relative !important;
}
.niu2-archive .post-card .post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.niu2-archive .post-card .post-price {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #ef4444 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    z-index: 2 !important;
}
.niu2-archive .post-card .post-info {
    padding: 14px !important;
}
.niu2-archive .post-card .post-category {
    font-size: 12px !important;
    color: #6366f1 !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.niu2-archive .post-card .post-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 0 0 8px 0 !important;
    color: #1f2937 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.niu2-archive .post-card .post-title a {
    color: inherit !important;
    text-decoration: none !important;
}
.niu2-archive .post-card .post-excerpt {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.niu2-archive .post-card .post-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}
.niu2-archive .post-card .post-meta .post-author {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.niu2-archive .post-card .post-meta .post-author img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}
.niu2-archive .post-card .post-meta .post-views,
.niu2-archive .post-card .post-meta .post-date {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

/* 分类筛选栏放大 */
.niu2-archive .archive-filter {
    padding: 15px 20px !important;
    background: #fff !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.niu2-archive .archive-filter .filter-tabs {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.niu2-archive .archive-filter .filter-tab {
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: none !important;
}
.niu2-archive .archive-filter .filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
}
.niu2-archive .archive-filter .filter-divider {
    width: 1px !important;
    height: 20px !important;
    background: #e5e7eb !important;
    margin: 0 8px !important;
}

/* 分类标题放大 */
.niu2-archive .archive-header {
    text-align: center !important;
    padding: 20px 0 !important;
    margin-bottom: 20px !important;
}
.niu2-archive .archive-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 10px 0 !important;
}

@media (max-width: 1200px) {
    .niu2-archive .posts-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 900px) {
    .niu2-archive .posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .niu2-archive .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .niu2-archive .post-card .post-thumb {
        height: 140px !important;
    }
    .niu2-archive .archive-title {
        font-size: 22px !important;
    }
}

/* === v4.9 分类页面与导航栏左右对齐 === */
.niu2-archive {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.niu2-archive > .container {
    max-width: var(--niu2-container) !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.niu2-archive .archive-layout {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.niu2-archive .archive-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.niu2-archive .posts-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.niu2-archive .archive-header {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
}
.niu2-archive .archive-filter {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
}
.niu2-archive .pagination-wrap {
    width: 100% !important;
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* 确保导航栏container和分类页面container使用相同的max-width */
.niu2-header .container,
.niu2-archive > .container,
.niu2-home > .container {
    max-width: var(--niu2-container) !important;
}

/* === v5.0 全站容器宽度加宽 === */
:root {
    --niu2-container: 1400px !important;
}
.container {
    max-width: 1400px !important;
}
.niu2-header .container,
.niu2-home .container,
.niu2-archive .container,
.niu2-single .container,
.single-post .container,
.page .container {
    max-width: 1400px !important;
}
/* 首页内容区域加宽 */
.niu2-home {
    max-width: 100% !important;
}
/* 文章页内容区域加宽 */
.single-post .niu2-main,
.page .niu2-main {
    max-width: 100% !important;
}
/* 分类页文章卡片5列布局适配更宽容器 */
@media (min-width: 1400px) {
    .niu2-archive .posts-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* === v5.1 底部版权下移 + 内容页按钮配色协调 === */

/* 底部中栏版权信息移到更下面 */
.footer-three-col .footer-center-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-bottom: 5px !important;
}
.footer-three-col .footer-beian-info {
    margin-top: auto !important;
    padding-top: 20px !important;
}

/* 内容页会员提示按钮配色 - 与网站紫靛主题色协调 */
.resource-vip-tip .vip-tip-item {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
    color: #5b21b6 !important;
    border: 1px solid #c4b5fd !important;
}
.resource-vip-tip .vip-tip-item:hover {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd) !important;
    color: #4c1d95 !important;
}
.resource-vip-tip .vip-tip-item:last-child {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border: 1px solid #6366f1 !important;
}
.resource-vip-tip .vip-tip-item:last-child:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #fff !important;
}

/* 内容页下载按钮配色协调 */
.resource-info-card-v2 .download-buttons .niu2-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}
.resource-info-card-v2 .download-buttons .niu2-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    border-color: #4f46e5 !important;
}
.resource-info-card-v2 .download-buttons .niu2-btn-outline {
    background: #fff !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}
.resource-info-card-v2 .download-buttons .niu2-btn-outline:hover {
    background: #ede9fe !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
}

/* 侧边栏下载按钮配色协调 */
.single-sidebar .niu2-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
}
.single-sidebar .niu2-btn-outline {
    background: #fff !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}

/* === v5.2 底部横线移到内容下边 === */
.footer-three-col {
    border-top: none !important;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}
.footer-three-col .footer-col {
    border-top: none !important;
    padding-top: 0 !important;
}
.footer-three-col .footer-beian-info {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* 底部内容下方添加横线 */
.niu2-footer {
    position: relative !important;
}
.niu2-footer .container::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    background: rgba(255,255,255,0.1) !important;
    margin-top: 20px !important;
}
/* 如果底部有copyright-bottom区域，确保在最下面 */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 15px !important;
    margin-top: 0 !important;
}

/* === v5.3 联系我们居中 + 底部变矮 === */

/* 右栏整体居中对齐 */
.footer-three-col .footer-right-col {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 15px !important;
}

/* 联系我们标题在两个二维码中间上方居中 */
.footer-three-col .footer-right-col .footer-col-title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 二维码容器居中 */
.footer-three-col .footer-right-col .footer-qrcodes {
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    gap: 15px !important;
}

/* 联系方式文字居中 */
.footer-three-col .footer-right-col .footer-contact-info {
    text-align: center !important;
    width: 100% !important;
    margin: 10px auto 0 auto !important;
    padding: 0 !important;
}

/* 底部区域变矮 */
.niu2-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.footer-three-col {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin: 0 !important;
}
.niu2-footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.niu2-footer .container::after {
    margin-top: 10px !important;
}

/* 左栏内容也垂直居中 */
.footer-three-col .footer-left-col {
    justify-content: center !important;
    padding-right: 15px !important;
}

/* 中栏内容垂直居中 */
.footer-three-col .footer-center-col {
    justify-content: center !important;
    padding: 0 15px !important;
}
.footer-three-col .footer-beian-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* === v5.5 手机版修复：隐藏侧边栏+内容页布局+汉堡菜单 === */

/* 手机端隐藏所有侧边栏 */
@media (max-width: 992px) {
    .single-sidebar,
    .archive-sidebar,
    .latest-sidebar,
    .sidebar {
        display: none !important;
    }
    
    /* 文章页容器宽度适配 */
    .niu2-single .container-wide {
        max-width: 100% !important;
        padding: 0 12px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 文章页布局 - 主内容占满宽度 */
    .single-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .single-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    .single-article {
        width: 100% !important;
        margin: 0 !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
    }
    
    /* 汉堡菜单按钮确保显示 */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    .mobile-menu-btn .dashicons {
        font-size: 24px !important;
        color: #333 !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    /* 移动端菜单面板确保能显示 */
    .mobile-menu-panel {
        position: fixed !important;
        top: 0 !important;
        right: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        background: var(--niu2-card-bg) !important;
        z-index: 9999 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
    }
    .mobile-menu-panel.active {
        right: 0 !important;
    }
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 9998 !important;
        display: none !important;
    }
    .mobile-menu-overlay.active {
        display: block !important;
    }
    
    /* 导航栏确保汉堡菜单在最上层 */
    .niu2-header .header-actions {
        z-index: 1001 !important;
        position: relative !important;
    }
}

@media (max-width: 480px) {
    .niu2-single .container-wide {
        padding: 0 10px !important;
    }
    .single-article {
        padding: 12px 10px !important;
    }
    .mobile-menu-panel {
        width: 280px !important;
        right: -280px !important;
    }
}

/* === v5.5 汉堡菜单按钮显示修复 === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu-btn:hover span {
    background: #6366f1;
}

/* 手机端显示汉堡菜单 */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    .mobile-menu-btn span {
        background: #333 !important;
    }
    
    /* 暗色模式汉堡菜单颜色 */
    body.dark-mode .mobile-menu-btn span {
        background: #fff !important;
    }
}

/* 移动端菜单内容样式 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-close:hover {
    color: #6366f1;
}
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}
.mobile-nav li a:hover {
    background: #f5f5ff;
    color: #6366f1;
    padding-left: 24px;
}
.mobile-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}
.mobile-nav .sub-menu li a {
    padding-left: 36px;
    font-size: 14px;
}

/* === v5.6 左边侧边栏样式 === */
.niu2-left-sidebar {
    position: relative;
    float: left;
    margin-right: 20px;
    padding: 20px 0;
    font-size: 13px;
}

/* Sticky：随网页滚动跟随 */
.niu2-left-sidebar.sidebar-scroll-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Fixed：固定不滚动 */
.niu2-left-sidebar.sidebar-scroll-fixed {
    position: fixed;
    top: 80px;
    left: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 100;
    background: #fff;
    padding: 20px 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

/* Normal：正常随页面滚动 */
.niu2-left-sidebar.sidebar-scroll-normal {
    position: relative;
}

/* 左边侧边栏小工具样式 */
.niu2-left-sidebar .widget {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.niu2-left-sidebar .widget-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #6366f1;
    color: #1f2937;
}
.niu2-left-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.niu2-left-sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.niu2-left-sidebar ul li:last-child {
    border-bottom: none;
}
.niu2-left-sidebar ul li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: block;
}
.niu2-left-sidebar ul li a:hover {
    color: #6366f1;
    padding-left: 4px;
}

/* 热门资源排行样式 */
.niu2-left-sidebar .niu2-widget-hot li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}
.niu2-left-sidebar .niu2-widget-hot .rank-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.niu2-left-sidebar .niu2-widget-hot .rank-hot .rank-num {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.niu2-left-sidebar .niu2-widget-hot a {
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 网站统计样式 */
.niu2-left-sidebar .niu2-widget-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.niu2-left-sidebar .niu2-widget-stats .stat-row:last-child {
    border-bottom: none;
}
.niu2-left-sidebar .niu2-widget-stats .stat-label {
    color: #6b7280;
    font-size: 13px;
}
.niu2-left-sidebar .niu2-widget-stats .stat-value {
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
}

/* 主内容区域调整 - 给左边侧边栏留出空间 */
@media (min-width: 993px) {
    .niu2-left-sidebar ~ .niu2-main,
    .niu2-left-sidebar ~ main,
    .niu2-home,
    .niu2-archive,
    .niu2-single {
        margin-left: 0;
    }
    
    /* 当左边侧边栏启用时，主内容区域向右移动 */
    body.left-sidebar-enabled .niu2-home,
    body.left-sidebar-enabled .niu2-archive,
    body.left-sidebar-enabled .niu2-single {
        padding-left: 0;
    }
}

/* 手机端隐藏左边侧边栏 */
@media (max-width: 992px) {
    .niu2-left-sidebar {
        display: none !important;
    }
}

/* 暗色模式左边侧边栏 */
body.dark-mode .niu2-left-sidebar .widget {
    background: #1f2937;
}
body.dark-mode .niu2-left-sidebar .widget-title {
    color: #f3f4f6;
    border-bottom-color: #6366f1;
}
body.dark-mode .niu2-left-sidebar ul li {
    border-bottom-color: #374151;
}
body.dark-mode .niu2-left-sidebar ul li a {
    color: #d1d5db;
}
body.dark-mode .niu2-left-sidebar .niu2-widget-stats .stat-row {
    border-bottom-color: #374151;
}
body.dark-mode .niu2-left-sidebar .niu2-widget-stats .stat-label {
    color: #9ca3af;
}

/* === v5.7 左边侧边栏布局修复 - 确保首页生效 === */

/* 当左边侧边栏启用时，主内容区域向右移动 */
@media (min-width: 993px) {
    body.left-sidebar-enabled .niu2-home,
    body.left-sidebar-enabled .niu2-archive,
    body.left-sidebar-enabled .niu2-single,
    body.left-sidebar-enabled .niu2-main,
    body.left-sidebar-enabled main {
        margin-left: calc(var(--left-sidebar-width, 220px) + 20px) !important;
        width: auto !important;
        float: none !important;
    }
    
    /* 左边侧边栏固定在左侧 */
    body.left-sidebar-enabled .niu2-left-sidebar {
        position: fixed !important;
        left: 20px !important;
        top: 80px !important;
        width: var(--left-sidebar-width, 220px) !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        z-index: 50 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }
    
    /* Sticky模式 */
    body.left-sidebar-enabled .niu2-left-sidebar.sidebar-scroll-sticky {
        position: fixed !important;
    }
    
    /* Fixed模式 */
    body.left-sidebar-enabled .niu2-left-sidebar.sidebar-scroll-fixed {
        position: fixed !important;
    }
    
    /* Normal模式 - 正常随页面滚动 */
    body.left-sidebar-enabled .niu2-left-sidebar.sidebar-scroll-normal {
        position: absolute !important;
        top: auto !important;
    }
}

/* 手机端隐藏左边侧边栏，主内容区域恢复正常 */
@media (max-width: 992px) {
    body.left-sidebar-enabled .niu2-home,
    body.left-sidebar-enabled .niu2-archive,
    body.left-sidebar-enabled .niu2-single {
        margin-left: 0 !important;
    }
    .niu2-left-sidebar {
        display: none !important;
    }
}


/* ============================================
   支付弹窗最终干净版本（覆盖所有旧样式）
   ============================================ */

/* 弹窗容器 */
div#niu2PayModal div.modal-content.pay-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px 20px 20px 20px !important;
    max-width: 360px !important;
    width: 90% !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    display: block !important;
}

/* 关闭按钮 */
div#niu2PayModal div.modal-content.pay-modal .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: none !important;
    background: #f5f5f7 !important;
    border-radius: 50% !important;
    color: #999 !important;
    font-size: 16px !important;
    line-height: 28px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    padding: 0 !important;
}

/* 标题 */
div#niu2PayModal div.modal-content.pay-modal .pay-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* 金额 */
div#niu2PayModal div.modal-content.pay-modal .pay-amount {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* 支付方式选择 */
div#niu2PayModal div.modal-content.pay-modal .pay-methods {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-method {
    flex: 1 !important;
    padding: 12px 8px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-method input[type="radio"] {
    display: none !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-method:has(input:checked) {
    border-color: #6366f1 !important;
    background: #f5f5ff !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-icon.alipay { background: #1677ff !important; }
div#niu2PayModal div.modal-content.pay-modal .pay-icon.wechat { background: #07c160 !important; }
/* 确认支付后隐藏未选中的支付方式 */
div#niu2PayModal div.modal-content.pay-modal .pay-method.niu2-pay-hidden { display: none !important; }

/* 确认支付按钮 */
div#niu2PayModal div.modal-content.pay-modal #confirmPayBtn {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 二维码区域 */
div#niu2PayModal div.modal-content.pay-modal .pay-qrcode {
    margin-top: 16px !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    position: relative !important;
}

/* 二维码加载中 */
div#niu2PayModal div.modal-content.pay-modal .qrcode-loading {
    padding: 30px 0 !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 13px !important;
}
div#niu2PayModal div.modal-content.pay-modal .loading-spinner {
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #f0f0f0 !important;
    border-top-color: #6366f1 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    margin: 0 auto 10px auto !important;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 二维码图片 - 强制居中 */
div#niu2PayModal div.modal-content.pay-modal #payQrcodeImg,
div#niu2PayModal div.modal-content.pay-modal .pay-qrcode img {
    margin: 0 auto !important;
    max-width: 160px !important;
    max-height: 160px !important;
    width: 160px !important;
    height: 160px !important;
    float: none !important;
    clear: both !important;
    object-fit: contain !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 8px !important;
    background: #fff !important;
}

/* 二维码占位符 */
div#niu2PayModal div.modal-content.pay-modal .qrcode-placeholder {
    width: 160px !important;
    height: 160px !important;
    margin: 0 auto !important;
    border: 2px dashed #e5e7eb !important;
    border-radius: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 160px !important;
}

/* 提示文字 */
div#niu2PayModal div.modal-content.pay-modal .pay-tip {
    text-align: center !important;
    margin: 14px 0 12px 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    width: 100% !important;
    display: block !important;
}

/* 我已完成支付按钮 */
div#niu2PayModal div.modal-content.pay-modal #checkPayStatus {
    width: 100% !important;
    padding: 10px 20px !important;
    background: #fff !important;
    color: #6366f1 !important;
    border: 1.5px solid #6366f1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

/* 手机端优化 */
@media (max-width: 768px) {
    div#niu2PayModal div.modal-content.pay-modal {
        width: calc(100vw - 16px) !important;
        max-width: 350px !important;
        padding: 14px 12px 12px 12px !important;
        border-radius: 14px !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 14px !important;
        line-height: 24px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-amount {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-methods {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-method {
        padding: 8px 6px !important;
        font-size: 13px !important;
        gap: 5px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal #confirmPayBtn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-qrcode {
        margin-top: 6px !important;
    }
    div#niu2PayModal div.modal-content.pay-modal #payQrcodeImg,
    div#niu2PayModal div.modal-content.pay-modal .pay-qrcode img {
        max-width: 110px !important;
        max-height: 110px !important;
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto !important;
        float: none !important;
        padding: 6px !important;
        display: block !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .qrcode-placeholder {
        width: 110px !important;
        height: 110px !important;
        line-height: 110px !important;
        font-size: 13px !important;
        margin: 0 auto !important;
    }
    div#niu2PayModal div.modal-content.pay-modal .pay-tip {
        font-size: 13px !important;
        margin: 8px 0 6px 0 !important;
    }
    div#niu2PayModal div.modal-content.pay-modal #checkPayStatus {
        padding: 8px 16px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
    }
}

/* ========== 今日更新日期变红 ========== */
.post-card .card-meta .meta-date.today-date {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* ========== 下载地址复制按钮和立即下载按钮 ========== */
.download-url-content {
    position: relative;
}
.download-url-wrapper {
    display: inline-block;
    max-width: calc(100% - 120px);
    vertical-align: middle;
    word-break: break-all;
}
.download-url-actions {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}
.copy-url-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.copy-url-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}
.mobile-download-btn {
    display: none !important;
}
.copy-success {
    color: #10b981 !important;
    border-color: #10b981 !important;
}

/* 手机端：复制按钮和立即下载按钮显示在链接下面 */
@media (max-width: 768px) {
    .download-url-wrapper {
        display: block !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    .download-url-actions {
        display: block !important;
        margin-left: 0 !important;
        text-align: center !important;
    }
    .copy-url-btn {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
    }
    .mobile-download-btn {
        display: inline-flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    .mobile-download-btn .dashicons {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
    }
}

/* ========== 复制按钮圆角和样式优化 ========== */
.copy-url-btn {
    border-radius: 8px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.copy-url-btn:hover {
    background: #f5f5ff !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}
.copy-url-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1 !important;
}

/* ========== 首页侧边栏搜索模块美化 ========== */
.widget-search-box .widget-body {
    padding: 12px !important;
}
.widget-search-box .widget-search-form {
    margin: 0 !important;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.search-input-wrap:focus-within {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.search-prefix-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.search-input-wrap:focus-within .search-prefix-icon {
    color: #6366f1;
}
.search-prefix-icon .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}
.widget-search-box .widget-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
}
.widget-search-box .widget-search-input::placeholder {
    color: #9ca3af;
}
.widget-search-submit {
    flex-shrink: 0;
    border: none !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.widget-search-submit:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    transform: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.widget-search-submit:active {
    transform: scale(0.98);
}

/* ========== v12.1 关闭单独购买时隐藏购买按钮，只保留开通VIP ========== */
body.niu2-disable-single-purchase .niu2-buy-btn {
    display: none !important;
}
/* ========== v12.8 侧边栏跟随滚动（sticky） ========== */
body.niu2-sidebar-sticky .latest-sidebar,
body.niu2-sidebar-sticky .single-sidebar {
    position: sticky;
    top: 76px;
    align-self: start;
}

/* === 手机扫码浏览（悬浮按钮，悬停显示当前页面二维码，图标跟随主题主色） === */
.float-btn-mobileqr {
    overflow: visible !important;
}
.float-btn-mobileqr .float-icon-img {
    color: var(--niu2-primary);
}
.float-btn-mobileqr .float-icon-img svg {
    width: 20px;
    height: 20px;
    display: block;
}
.float-btn:hover .float-btn-mobileqr .float-icon-img {
    color: #fff;
}
.float-btn-mobileqr .float-qr-pop {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 132px;
    height: 150px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    box-sizing: content-box;
}
.float-btn-mobileqr .float-qr-pop::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}
.float-btn-mobileqr .float-qr-pop img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}
.float-btn-mobileqr .mobile-qr-tip {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #6366f1;
    text-align: center;
    white-space: nowrap;
    padding-bottom: 2px;
}
body.dark-mode .float-btn-mobileqr .mobile-qr-tip {
    color: #a5b4fc;
}
.float-btn-mobileqr:hover .float-qr-pop {
    display: flex;
}
/* 不可点击的悬浮按钮（无 href）显示默认光标 */
.niu2-float-buttons a[href=''], .niu2-float-buttons a:not([href]) {
    cursor: default;
}
/* === 悬浮按钮 hover：白色背景 + 主题色图标（清晰可读，不再深色渐变） === */
.float-btn:hover {
    background: #ffffff !important;
    color: #6366f1 !important;
    box-shadow: 0 3px 14px rgba(99, 102, 241, 0.35) !important;
}
.float-btn:hover .dashicons {
    color: #6366f1 !important;
}
.float-btn:hover .float-icon-img,
.float-btn:hover .float-icon-img svg,
.float-btn:hover .float-btn-mobileqr .float-icon-img {
    color: #6366f1 !important;
}
/* 暗色模式 hover 同样白底主题色图标 */
body.dark-mode .float-btn:hover {
    background: #ffffff !important;
    color: #6366f1 !important;
    box-shadow: 0 3px 14px rgba(99, 102, 241, 0.45) !important;
}
body.dark-mode .float-btn:hover .dashicons,
body.dark-mode .float-btn:hover .float-icon-img,
body.dark-mode .float-btn:hover .float-icon-img svg {
    color: #6366f1 !important;
}
/* === 图像滑块验证（统一尺寸，修复多套样式冲突） === */
.img-slide-captcha {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    user-select: none;
}
.img-slide-bg {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.img-slide-gap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.25);
    z-index: 1;
}
.img-slide-block {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    left: 0;
    cursor: grab;
    z-index: 2;
}
.img-slide-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}
.img-slide-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.img-slide-track-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 40px;
    font-size: 13px;
    color: #909399;
    z-index: 3;
    pointer-events: none;
}
.img-slide-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
.img-slide-handle .dashicons {
    color: #6366f1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.img-slide-captcha.success .img-slide-track-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.img-slide-captcha.success .img-slide-track-text {
    color: #10b981;
    font-weight: 600;
}
.img-slide-captcha.failed .img-slide-track-text {
    color: #ef4444;
    font-weight: 600;
}
/* === 滑块把手完整显示（不被裁剪）+ 随机背景适配 === */
.img-slide-track {
    overflow: visible !important;
}
.img-slide-track-fill {
    border-radius: 20px;
}
.img-slide-bg {
    background-size: cover;
    background-position: center;
}
/* === 滑块终极修复：拉杆完整显示，屏蔽历史样式/媒体查询干扰 === */
.img-slide-captcha {
    height: auto !important;
    overflow: visible !important;
    background: #f3f4f6 !important;
}
.img-slide-bg {
    height: 150px !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}
.img-slide-track {
    height: 44px !important;
    overflow: visible !important;
    background: #e5e7eb !important;
    border-radius: 22px !important;
}
.img-slide-track-fill {
    border-radius: 22px !important;
}
.img-slide-gap,
.img-slide-block {
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.img-slide-block {
    left: 0;
}
.img-slide-handle {
    width: 44px !important;
    height: 44px !important;
    top: 0 !important;
    left: 0;
    background: #ffffff !important;
    border: 2px solid #6366f1 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
}
.img-slide-handle .dashicons {
    color: #6366f1 !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}
/* === 支付弹窗保险：我已完成支付 按钮始终在弹窗内部，防止任何未知样式使其溢出 === */
div#niu2PayModal div.modal-content.pay-modal #checkPayStatus {
    position: relative !important;
    display: inline-block !important;
    float: none !important;
    margin: 6px auto 0 auto !important;
}
/* === 滑块：触摸设备禁用滚动，确保拉杆可拖动 === */
.img-slide-handle {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* === 支付弹窗最终保险：按钮确定在弹窗内部，弹窗限高内部滚动 === */
div#niu2PayModal div.modal-content.pay-modal {
    max-height: 88vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
div#niu2PayModal div.modal-content.pay-modal .pay-qrcode {
    overflow: visible !important;
}
div#niu2PayModal div.modal-content.pay-modal #checkPayStatus {
    position: relative !important;
    display: block !important;
    float: none !important;
    margin: 8px auto 0 auto !important;
    width: 100% !important;
    max-width: 240px !important;
    box-sizing: border-box !important;
}

/* ===== v12.58 支付弹窗修复：二维码区域高度自适应，防止我已完成支付按钮溢出弹窗 ===== */
div#niu2PayModal div.modal-content.pay-modal .pay-qrcode {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}



/* ========== 首页搜索模块背景图片/视频（完全覆盖，无边框，不变形） ========== */
.home-search-banner.has-banner-bg {
    background: none !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}
.home-search-banner.has-banner-bg::before {
    display: none !important;
}
.home-search-banner.has-banner-bg .search-banner-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    display: block !important;
}
.home-search-banner.has-banner-bg .search-banner-bg-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}
.home-search-banner.has-banner-bg .search-banner-inner {
    position: relative !important;
    z-index: 1 !important;
    padding: 50px 28px !important;
}
/* 手机版兼容 */
@media (max-width: 768px) {
    .home-search-banner.has-banner-bg .search-banner-inner {
        padding: 30px 16px !important;
    }
}

/* 首页搜索模块默认渐变色背景（视频不受支持/未设置背景图时使用） */
.search-banner-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #4f46e5 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}



/* 二维码加载中转圈动画 */
.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto;
}
.qr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: qr-spin 0.8s linear infinite;
    margin-bottom: 8px;
}
.qr-loading-text {
    font-size: 12px;
    color: #64748b;
}
@keyframes qr-spin {
    to { transform: rotate(360deg); }
}


/* 首页搜索横幅视频播放按钮（微信/自动播放失败时显示） */
.search-banner-play-btn:hover {
    background: rgba(0,0,0,0.7) !important;
    transform: translate(-50%,-50%) scale(1.1) !important;
}


/* ========================================
   v12.246 移动端顶栏与菜单优化（追加）
   ======================================== */

/* 手机端顶部：仅隐藏桌面暗色模式切换图标（已移入侧边菜单），登录/会员开通/注册按钮保留原位 */
@media (max-width: 768px) {
    .niu2-header .dark-mode-toggle { display: none !important; }
    /* 顶栏按钮排序：会员开通 → 注册 → 登录（原月亮图标位置，最右侧）→ 汉堡 */
    .niu2-header .niu2-btn-vip { order: 1; }
    .niu2-header .niu2-trigger-register { order: 2; }
    .niu2-header .niu2-trigger-login { order: 3; }
    .niu2-header .mobile-menu-btn { order: 4; }
    /* 登录按钮：深色纯底白字，长方形圆角与注册按钮一致（8px） */
    .niu2-header .niu2-trigger-login {
        padding: 6px 16px;
        border-radius: var(--niu2-radius-sm);
        background: var(--niu2-primary);
        color: #fff;
        border: none;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }
}

/* 游客状态（未登录）手机端强制显示 会员开通/登录/注册 按钮，
   防止站点残留旧版隐藏规则导致按钮不显示；已登录状态不受影响 */
@media (max-width: 768px) {
    body:not(.logged-in) .niu2-header .niu2-btn-vip,
    body:not(.logged-in) .niu2-header .niu2-trigger-login,
    body:not(.logged-in) .niu2-header .niu2-trigger-register {
        display: inline-flex !important;
    }
}

/* 移动端面板：更宽、圆角卡片感、纵向布局 */
.mobile-menu-panel {
    width: 280px;
    right: -280px;
    display: flex;
    flex-direction: column;
    background: var(--niu2-card-bg);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.14);
}

/* 头部：只保留关闭按钮，右对齐，不再显示网站名称 */
.mobile-menu-header {
    justify-content: space-between;
    border-bottom: none;
    padding: 10px 12px;
    gap: 8px;
}
.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--niu2-border-light);
    font-size: 18px;
    line-height: 1;
    color: var(--niu2-text);
    transition: all 0.2s;
}
.mobile-menu-close:active {
    background: var(--niu2-primary);
    color: #fff;
}

/* 用户区（已登录：头像+昵称+等级；未登录：登录/注册按钮） */
.mobile-menu-user {
    padding: 6px 16px 16px;
    border-bottom: 1px solid var(--niu2-border-light);
}
.mm-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.mm-user-info img.avatar {
    border-radius: 50%;
    border: 2px solid var(--niu2-primary);
    width: 44px;
    height: 44px;
}
.mm-user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--niu2-text);
    margin: 0;
}
.mm-user-badge {
    font-size: 12px;
    color: var(--niu2-primary);
}
.mm-user-actions {
    display: flex;
    gap: 10px;
}
.mm-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    border-radius: var(--niu2-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.mm-btn-primary {
    background: linear-gradient(135deg, var(--niu2-primary), var(--niu2-secondary));
    color: #fff;
    border: 1px solid transparent;
}
.mm-btn-outline {
    background: transparent;
    color: var(--niu2-text);
    border: 1px solid var(--niu2-border-light);
}

/* 菜单项：圆角卡片式，去除底部细线 */
.mobile-nav {
    padding: 10px 12px;
    flex: 1;
}
.mobile-nav li {
    list-style: none;
    margin-bottom: 4px;
}
.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border-bottom: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--niu2-text);
    transition: all 0.2s;
}
.mobile-nav li a:hover,
.mobile-nav li a:active,
.mobile-nav li.current-menu-item > a,
.mobile-nav li.current_page_item > a {
    background: none;
    color: var(--niu2-primary);
}

/* 底部：夜间模式切换 */
.mm-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: var(--niu2-bg);
    border: 1px solid var(--niu2-border-light);
    color: var(--niu2-text);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mm-dark-toggle span { display: none; }
.mm-dark-toggle:active {
    background: var(--niu2-primary);
    color: #fff;
}
.mm-dark-toggle .dark-icon {
    width: 17px;
    height: 17px;
}
.mm-dark-toggle .dark-icon-sun { display: none; }
body.dark-mode .mm-dark-toggle .dark-icon-moon { display: none; }
body.dark-mode .mm-dark-toggle .dark-icon-sun { display: block; }

/* 暗色模式下移动菜单配色 */
body.dark-mode .mobile-menu-panel {
    background: var(--niu2-card-bg);
}
body.dark-mode .mobile-nav li a {
    color: var(--niu2-text);
}
body.dark-mode .mobile-nav li a:hover,
body.dark-mode .mobile-nav li a:active,
body.dark-mode .mobile-nav li.current-menu-item > a,
body.dark-mode .mobile-nav li.current_page_item > a {
    color: var(--niu2-primary);
}

/* 后台关闭"手机版登录注册"时：仅隐藏手机端首页顶栏登录/注册按钮（侧边菜单内登录/注册始终显示，桌面端不受影响） */
@media (max-width: 768px) {
    body.niu2-hide-mobile-auth .niu2-header .niu2-trigger-login,
    body.niu2-hide-mobile-auth .niu2-header a.niu2-trigger-register.niu2-btn-outline { display: none !important; }
}

/* ========================================
   v12.253 用户中心手机端适配（追加）
   ======================================== */
@media (max-width: 768px) {
    /* 用户中心单列：导航横向标签，内容全宽 */
    .niu2-user-center {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }
    .uc-sidebar {
        position: static;
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    .uc-user-info { display: none; }
    .uc-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .uc-menu-item {
        padding: 7px 12px;
        font-size: 12px;
        border: 1px solid var(--niu2-border-light);
        background: var(--niu2-card-bg);
        border-radius: 8px;
    }
    .uc-menu-item.active { border-color: transparent; }
    .uc-logout { margin-top: 0; }
    .uc-content { padding: 16px 14px; }
    .uc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* 表格转卡片：每行一张卡片，字段标签+值左右排列 */
    .uc-table,
    .uc-table thead,
    .uc-table tbody,
    .uc-table tr,
    .uc-table th,
    .uc-table td { display: block; }
    .uc-table thead { display: none; }
    .uc-table tr {
        margin-bottom: 10px;
        padding: 4px 12px;
        background: var(--niu2-bg);
        border-radius: 10px;
        border: 1px solid var(--niu2-border-light);
    }
    .uc-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px dashed var(--niu2-border-light);
        text-align: right;
        white-space: normal;
        word-break: break-all;
    }
    .uc-table td:last-child { border-bottom: none; }
    .uc-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--niu2-text-secondary);
        flex-shrink: 0;
        text-align: left;
    }
}

/* ========================================
   v12.254 手机端概览统计卡：扁平圆角长方形（内容居中）
   ======================================== */
@media (max-width: 768px) {
    .uc-stat-card {
        padding: 10px 8px;
        border: 1px solid var(--niu2-border-light);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: none;
    }
    .uc-stat-card .stat-icon { font-size: 18px; margin-bottom: 4px; line-height: 1; }
    .uc-stat-card .stat-num { font-size: 16px; margin-bottom: 3px; line-height: 1.2; }
    .uc-stat-card .stat-label { font-size: 11px; line-height: 1.2; }
    .uc-stat-card:hover,
    .uc-stat-card-link:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ========================================
   v12.255 手机端用户中心：导航3列居中整齐 + 统计卡图1横排小卡
   ======================================== */
@media (max-width: 768px) {
    /* 导航标签：3列等宽、内容居中 */
    .uc-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .uc-menu-item {
        justify-content: center;
        padding: 7px 6px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }
    /* 统计卡：图标+数字横排居中，标签在下（图1样式），整体缩小 */
    .uc-stat-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2px 6px;
        padding: 8px 10px;
        border-radius: 10px;
        box-shadow: none;
    }
    .uc-stat-card .stat-icon { font-size: 16px; margin: 0; line-height: 1; }
    .uc-stat-card .stat-num { font-size: 15px; margin: 0; line-height: 1; }
    .uc-stat-card .stat-label {
        width: 100%;
        font-size: 11px;
        line-height: 1.2;
        margin-top: 3px;
    }
}
