/* ========================================
   Nova Resource 主题 - 主样式 v1.1
   修复排版问题，优化布局
   ======================================== */

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

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

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

    --nova-transition: all 0.25s ease;
    --nova-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(--nova-bg);
    color: var(--nova-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(--nova-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(--nova-container);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

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

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

/* ========================================
   顶部公告
   ======================================== */
.nova-top-notice {
    background: linear-gradient(90deg, var(--nova-primary), var(--nova-secondary));
    color: #fff;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.5;
}
.nova-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;
}

/* ========================================
   头部导航 - 重点修复
   ======================================== */
.nova-header {
    background: var(--nova-card-bg);
    box-shadow: var(--nova-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(--nova-text);
    white-space: nowrap;
}
.logo-icon { font-size: 22px; }
.logo-name {
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-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 12px;
    height: 60px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nova-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(--nova-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(--nova-primary), var(--nova-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(--nova-card-bg);
    box-shadow: var(--nova-shadow-lg);
    border-radius: var(--nova-radius-sm);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--nova-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: 13px;
    color: var(--nova-text-secondary);
    white-space: nowrap;
}
.sub-menu li a:hover {
    background: var(--nova-bg);
    color: var(--nova-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(--nova-bg);
    border-radius: 20px;
    padding: 3px 3px 3px 12px;
    width: 200px;
    transition: var(--nova-transition);
}
.header-search .search-form:focus-within {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    width: 240px;
}
.header-search .search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--nova-text);
    padding: 0;
}
.header-search .search-input::placeholder { color: var(--nova-text-muted); }
.header-search .search-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: none;
    background: var(--nova-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(--nova-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(--nova-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nova-text-secondary);
    transition: var(--nova-transition);
    flex-shrink: 0;
}
.dark-mode-toggle:hover {
    background: var(--nova-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(--nova-text);
    border-radius: 2px;
    transition: var(--nova-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(--nova-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(--nova-border-light);
    font-weight: 600;
    font-size: 14px;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--nova-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(--nova-border-light);
}

/* ========================================
   弹窗
   ======================================== */
.nova-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.nova-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(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 28px 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--nova-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(--nova-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--nova-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(--nova-border-light);
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--nova-text-muted);
    cursor: pointer;
    position: relative;
}
.auth-tab.active { color: var(--nova-primary); }
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 13px;
    transition: var(--nova-transition);
}
.form-group input:focus {
    border-color: var(--nova-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(--nova-primary); }
.auth-social { margin-top: 18px; text-align: center; }
.auth-social > span {
    display: block;
    font-size: 11px;
    color: var(--nova-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(--nova-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(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    cursor: pointer;
    transition: var(--nova-transition);
    font-size: 12px;
}
.pay-method input { display: none; }
.pay-method:has(input:checked) {
    border-color: var(--nova-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(--nova-bg);
    border: 2px dashed var(--nova-border);
    border-radius: var(--nova-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nova-text-muted);
    font-size: 13px;
}
.pay-tip { font-size: 12px; color: var(--nova-text-secondary); margin-bottom: 10px; }

/* ========================================
   首页 - 幻灯片 - 修复
   ======================================== */
.home-section { margin-bottom: 24px; }
.nova-slider {
    position: relative;
    border-radius: var(--nova-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(--nova-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(--nova-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(--nova-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(--nova-text);
}
.banner-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 22px;
    border: none;
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-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(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 20px;
    box-shadow: var(--nova-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(--nova-text); }
.cms-title a:hover { color: var(--nova-primary); }
.cms-icon { font-size: 18px; }
.cms-more {
    font-size: 12px;
    color: var(--nova-text-secondary);
    flex-shrink: 0;
}
.cms-more:hover { color: var(--nova-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(--nova-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(--nova-text); }
.cms-card-title a:hover { color: var(--nova-primary); }
.cms-card-excerpt {
    font-size: 12px;
    color: var(--nova-text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}
.cms-card-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--nova-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(--nova-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(--nova-radius);
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: var(--nova-transition);
}
.vip-plan-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.vip-plan-card.featured {
    border-color: var(--nova-accent);
    background: rgba(245, 158, 11, 0.1);
}
.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: var(--nova-accent);
    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 .nova-btn { width: 100%; padding: 7px 10px; font-size: 12px; }

/* ========================================
   首页 - 最新文章 - 重点修复布局
   ======================================== */
.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(--nova-primary), var(--nova-secondary));
    border-radius: 2px;
}
.section-tabs { display: flex; gap: 14px; }
.tab-link {
    font-size: 13px;
    color: var(--nova-text-secondary);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.tab-link.active, .tab-link:hover {
    color: var(--nova-primary);
    border-bottom-color: var(--nova-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; }

/* ========================================
   文章卡片 - 重点修复
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.post-card {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius);
    overflow: hidden;
    box-shadow: var(--nova-shadow);
    transition: var(--nova-transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nova-shadow-md);
}
.card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--nova-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(--nova-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(--nova-success); }
.badge-vip { background: var(--nova-warning); }
.badge-svip { background: var(--nova-gold); }
.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(--nova-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-cat a { color: var(--nova-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(--nova-text); }
.card-title a:hover { color: var(--nova-primary); }
.card-excerpt {
    font-size: 12px;
    color: var(--nova-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(--nova-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--nova-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(--nova-text-muted); font-size: 13px; padding: 12px; }

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

/* 热门列表小工具 */
.nova-widget-hot li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--nova-border-light);
}
.nova-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(--nova-bg);
    color: var(--nova-text-muted);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.rank-hot .rank-num {
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-secondary));
    color: #fff;
}
.nova-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(--nova-text);
}
.nova-widget-hot a:hover { color: var(--nova-primary); }

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

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

/* 联系小工具 */
.nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 12px;
}
.widget .search-form .search-submit {
    padding: 8px 14px;
    border: none;
    background: var(--nova-primary);
    color: #fff;
    border-radius: var(--nova-radius-sm);
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

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

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

/* ========================================
   文章详情页 - 修复
   ======================================== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.single-article {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 28px;
    box-shadow: var(--nova-shadow);
    min-width: 0;
}
.article-header { margin-bottom: 20px; }
.article-cat {
    font-size: 12px;
    color: var(--nova-primary);
    margin-bottom: 10px;
}
.article-cat a { color: var(--nova-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(--nova-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(--nova-radius);
    overflow: hidden;
}
.article-thumb img { width: 100%; }

.article-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--nova-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(--nova-radius-sm); margin: 14px 0; max-width: 100%; }
.article-content blockquote {
    border-left: 3px solid var(--nova-primary);
    padding: 10px 16px;
    background: var(--nova-bg);
    border-radius: 0 var(--nova-radius-sm) var(--nova-radius-sm) 0;
    margin: 14px 0;
    color: var(--nova-text-secondary);
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px;
    border-radius: var(--nova-radius-sm);
    overflow-x: auto;
    margin: 14px 0;
    font-size: 12px;
    line-height: 1.6;
}
.article-content code {
    background: var(--nova-bg);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--nova-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(--nova-border);
    padding: 8px 10px;
    text-align: left;
}
.article-content th { background: var(--nova-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(--nova-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(--nova-primary);
    border-radius: var(--nova-radius);
    text-align: center;
}
.paid-content-tip p { margin-bottom: 14px; color: var(--nova-text-secondary); font-size: 13px; }
.paid-content-tip .nova-btn { margin: 0 5px; }

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

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

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

/* 作者信息 */
.article-author-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--nova-bg);
    border-radius: var(--nova-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(--nova-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(--nova-bg);
    border-radius: var(--nova-radius-sm);
    transition: var(--nova-transition);
    min-width: 0;
}
.article-nav a:hover { background: var(--nova-border-light); }
.nav-label { font-size: 11px; color: var(--nova-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(--nova-bg);
    border-radius: var(--nova-radius-sm);
    overflow: hidden;
    transition: var(--nova-transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--nova-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;
}

/* ========================================
   评论区
   ======================================== */
.nova-comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nova-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(--nova-bg);
    border-radius: var(--nova-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(--nova-text-muted); }
.comment-reply-link { color: var(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    outline: none;
    transition: var(--nova-transition);
    font-size: 13px;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--nova-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(--nova-primary), var(--nova-secondary));
    color: #fff;
    border: none;
    border-radius: var(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 12px;
    color: var(--nova-text-secondary);
    transition: var(--nova-transition);
}
.page-numbers:hover, .page-numbers.current {
    background: var(--nova-primary);
    border-color: var(--nova-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(--nova-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; }

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

/* ========================================
   用户中心 - 修复
   ======================================== */
.nova-user-center {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: 500px;
    align-items: start;
}
.uc-sidebar {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 18px;
    box-shadow: var(--nova-shadow);
    position: sticky;
    top: 76px;
}
.uc-user-info {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nova-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(--nova-gold); color: #fff; }
.level-year_vip, .level-month_vip { background: var(--nova-warning); color: #fff; }
.level-normal { background: var(--nova-bg); color: var(--nova-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(--nova-radius-sm);
    font-size: 13px;
    color: var(--nova-text-secondary);
    transition: var(--nova-transition);
}
.uc-menu-item:hover {
    background: var(--nova-bg);
    color: var(--nova-primary);
}
.uc-menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--nova-primary);
    font-weight: 500;
}
.uc-menu-item .dashicons { font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; }
.uc-logout { color: var(--nova-danger); margin-top: 6px; }
.uc-logout:hover { background: rgba(239, 68, 68, 0.1); color: var(--nova-danger); }

.uc-content {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 24px;
    box-shadow: var(--nova-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(--nova-bg);
    border-radius: var(--nova-radius);
    padding: 16px 12px;
    text-align: center;
    transition: var(--nova-transition);
}
.uc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--nova-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(--nova-primary);
    margin-bottom: 3px;
}
.uc-stat-card .stat-label { font-size: 11px; color: var(--nova-text-secondary); }

/* VIP横幅 */
.uc-vip-banner, .uc-vip-info {
    padding: 18px;
    border-radius: var(--nova-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(--nova-border-light);
}
.uc-table th {
    background: var(--nova-bg);
    font-weight: 600;
    color: var(--nova-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(--nova-success); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--nova-warning); }
.status-failed { background: rgba(239, 68, 68, 0.1); color: var(--nova-danger); }
.post-status.status-publish { background: rgba(16, 185, 129, 0.1); color: var(--nova-success); padding: 2px 7px; border-radius: 8px; font-size: 10px; }
.post-status.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--nova-warning); padding: 2px 7px; border-radius: 8px; font-size: 10px; }

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

/* 下载/收藏列表 */
.uc-download-item, .uc-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--nova-bg);
    border-radius: var(--nova-radius-sm);
    margin-bottom: 10px;
}
.uc-download-thumb, .uc-fav-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--nova-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(--nova-text-secondary); }

/* 推广中心 */
.uc-affiliate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aff-balance-card, .aff-link-card {
    padding: 20px;
    background: var(--nova-bg);
    border-radius: var(--nova-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(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 12px;
    background: var(--nova-card-bg);
}
.aff-desc { font-size: 12px; color: var(--nova-text-secondary); line-height: 1.5; }

/* 个人资料 */
.uc-profile-form .form-row { margin-bottom: 14px; }
.uc-profile-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--nova-text-secondary);
}
.uc-profile-form input, .uc-profile-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--nova-border);
    border-radius: var(--nova-radius-sm);
    outline: none;
    transition: var(--nova-transition);
    font-size: 13px;
}
.uc-profile-form input:focus, .uc-profile-form textarea:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.uc-profile-form input:disabled { background: var(--nova-bg); color: var(--nova-text-muted); }
.uc-notice {
    padding: 10px 14px;
    border-radius: var(--nova-radius-sm);
    margin-bottom: 14px;
    font-size: 12px;
}
.uc-notice.success { background: rgba(16, 185, 129, 0.1); color: var(--nova-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(--nova-text-secondary); }

/* VIP价格表 */
.nova-vip-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}
.pricing-card {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--nova-shadow);
    position: relative;
    transition: var(--nova-transition);
    border: 2px solid transparent;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--nova-shadow-lg); }
.pricing-card.featured {
    border-color: var(--nova-primary);
    transform: scale(1.02);
}
.pricing-card.premium {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: var(--nova-accent);
}
.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nova-primary);
    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(--nova-text);
    margin-bottom: 18px;
}
.pricing-price .currency { font-size: 16px; }
.pricing-price .period { font-size: 13px; color: var(--nova-text-muted); font-weight: 400; }
.pricing-features {
    text-align: left;
    margin-bottom: 20px;
}
.pricing-features li {
    padding: 7px 0;
    font-size: 13px;
    color: var(--nova-text-secondary);
    border-bottom: 1px solid var(--nova-border-light);
}
.pricing-features li::before { content: '✓ '; color: var(--nova-success); font-weight: 700; }
.pricing-features li.disabled { color: var(--nova-text-muted); text-decoration: line-through; }
.pricing-features li.disabled::before { content: '✗ '; color: var(--nova-text-muted); }
.pricing-card .nova-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(--nova-card-bg);
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-shadow);
    transition: var(--nova-transition);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--nova-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(--nova-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(--nova-card-bg);
    border-radius: var(--nova-radius-sm);
    padding: 18px 22px;
    margin-bottom: 10px;
    box-shadow: var(--nova-shadow);
}
.faq-item h4 { font-size: 14px; margin-bottom: 6px; color: var(--nova-primary); }
.faq-item p { font-size: 13px; color: var(--nova-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(--nova-text-secondary); }
.submit-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--nova-card-bg);
    padding: 28px;
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow);
}
.submit-form .form-group { margin-bottom: 18px; }
.submit-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    outline: none;
    transition: var(--nova-transition);
    font-size: 13px;
}
.submit-form input:focus, .submit-form select:focus {
    border-color: var(--nova-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(--nova-border);
    border-radius: var(--nova-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(--nova-text-muted); }
.submit-login-required {
    text-align: center;
    padding: 50px 20px;
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow);
}
.submit-login-required h3 { margin-bottom: 6px; }
.submit-login-required p { color: var(--nova-text-secondary); margin-bottom: 18px; }

/* ========================================
   短代码样式
   ======================================== */
.nova-notice {
    padding: 12px 16px;
    border-radius: var(--nova-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(--nova-info); }
.notice-success { background: rgba(16, 185, 129, 0.08); color: var(--nova-success); }
.notice-warning { background: rgba(245, 158, 11, 0.08); color: var(--nova-warning); }
.notice-error { background: rgba(239, 68, 68, 0.08); color: var(--nova-danger); }

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

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

/* ========================================
   404页面
   ======================================== */
.nova-404 { padding: 60px 0; text-align: center; }
.error-code {
    font-size: 100px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-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(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 13px;
}
.error-search .search-submit {
    padding: 9px 18px;
    border: none;
    background: var(--nova-primary);
    color: #fff;
    border-radius: var(--nova-radius-sm);
    cursor: pointer;
    font-size: 13px;
}

/* ========================================
   页脚
   ======================================== */
.nova-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(--nova-primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--nova-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--nova-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(--nova-border);
    border-radius: var(--nova-radius-sm);
    font-size: 13px;
    outline: none;
    transition: var(--nova-transition);
}
.search-form .search-field:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-form .search-submit {
    padding: 9px 18px;
    border: none;
    background: var(--nova-primary);
    color: #fff;
    border-radius: var(--nova-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(--nova-text-muted);
    font-size: 13px;
}
.no-results .search-form { max-width: 380px; margin: 16px auto 0; }

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

/* 加载动画 */
.nova-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提示 */
.nova-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    padding: 10px 20px;
    background: var(--nova-text);
    color: #fff;
    border-radius: var(--nova-radius-sm);
    font-size: 13px;
    box-shadow: var(--nova-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--nova-transition);
    z-index: 3000;
    max-width: 90%;
    text-align: center;
}
.nova-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nova-toast.success { background: var(--nova-success); }
.nova-toast.error { background: var(--nova-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(--nova-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(--nova-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(--nova-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(--nova-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: #f5f5f7;
    border-radius: 20px;
    padding: 4px 12px;
    width: 200px;
    transition: width 0.3s;
}
.header-search:focus-within {
    width: 260px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
.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(--nova-primary);
    color: var(--nova-primary);
    border-radius: 16px;
    font-size: 13px;
}
.header-user .btn-register {
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-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 {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- 文章头部 --- */
.article-header {
    margin-bottom: 20px;
}
.article-cat {
    font-size: 13px;
    color: var(--nova-primary);
    margin-bottom: 10px;
}
.article-cat a {
    color: var(--nova-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(--nova-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(--nova-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 .nova-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(--nova-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(--nova-primary);
    color: var(--nova-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(--nova-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(--nova-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;
    font-size: 11px;
    color: #aaa;
}
.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(--nova-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(--nova-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 .nova-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(--nova-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;
}

/* --- 按钮通用 --- */
.nova-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;
}
.nova-btn-primary {
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-secondary));
    color: #fff;
    border: none;
}
.nova-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.nova-btn-outline {
    background: #fff;
    color: var(--nova-primary);
    border: 1px solid var(--nova-primary);
}
.nova-btn-outline:hover { background: #f0f4ff; }
.nova-btn-ghost {
    background: #f5f5f7;
    color: #666;
    border: none;
}
.nova-btn-ghost:hover { background: #e8eaf0; }
.nova-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}
.nova-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;
}

/* 首页宽屏 */
.nova-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: #2a2a35;
}
.dark-mode .header-search input {
    color: #e0e0e0;
}
.dark-mode .header-search input::placeholder {
    color: #888;
}
.dark-mode .header-search:focus-within {
    background: #1f1f28;
    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(--nova-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(--nova-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(--nova-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;
    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(--nova-primary);
    color: #fff;
    border-color: var(--nova-primary);
}

/* 后台文章编辑 - 子比兼容字段提示 */
.nova-zibpay-notice {
    background: #f0f4ff;
    border-left: 4px solid var(--nova-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 .nova-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 导航栏修复
   ======================================== */

/* 会员开通按钮 */
.nova-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;
}
.nova-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;
}
.nova-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(--nova-primary, #6366f1), var(--nova-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(--nova-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(--nova-primary, #6366f1), var(--nova-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 .nova-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 .nova-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;
}

/* 右侧悬浮按钮 */
.nova-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;
}
.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;
    }
    .nova-float-buttons {
        right: 10px;
        bottom: 80px;
    }
    .float-btn {
        width: 40px;
        height: 40px;
    }
}

/* 下载区域在右边信息区域内 */
.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 网站内提示 + 用户悬浮窗 + 分享 + 扫码
   ======================================== */

/* 网站内提示消息 */
.nova-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: novaMessageIn 0.3s ease;
    max-width: 90%;
}
.nova-message.success { background: linear-gradient(135deg, #10b981, #059669); }
.nova-message.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.nova-message.info { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
@keyframes novaMessageIn {
    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 .nova-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 .nova-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;
    }
    
    /* 悬浮按钮 */
    .nova-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: column !important;
        gap: 8px !important;
    }
    .captcha-img {
        width: 100% !important;
        height: 44px !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;
    }
}

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

/* 底部更矮更紧凑 */
.nova-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 .nova-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广告 === */
.nova-custom-ad {
    margin: 15px 0;
    overflow: hidden;
    border-radius: 8px;
}
.nova-custom-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}
.nova-custom-ad.ad-home_top,
.nova-custom-ad.ad-home_bottom {
    margin: 20px 0;
    text-align: center;
}
.nova-custom-ad.ad-single_top {
    margin-bottom: 20px;
}
.nova-custom-ad.ad-single_bottom {
    margin-top: 20px;
}
.nova-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 .nova-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 分类页面全宽+内容放大 === */
.nova-archive .archive-layout {
    display: block !important;
    width: 100% !important;
}
.nova-archive .archive-content {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}
.nova-archive .archive-sidebar {
    display: none !important;
}

/* 分类页面文章卡片放大 */
.nova-archive .posts-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}
.nova-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;
}
.nova-archive .post-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.nova-archive .post-card .post-thumb {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    position: relative !important;
}
.nova-archive .post-card .post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.nova-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;
}
.nova-archive .post-card .post-info {
    padding: 14px !important;
}
.nova-archive .post-card .post-category {
    font-size: 12px !important;
    color: #6366f1 !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.nova-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;
}
.nova-archive .post-card .post-title a {
    color: inherit !important;
    text-decoration: none !important;
}
.nova-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;
}
.nova-archive .post-card .post-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}
.nova-archive .post-card .post-meta .post-author {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.nova-archive .post-card .post-meta .post-author img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}
.nova-archive .post-card .post-meta .post-views,
.nova-archive .post-card .post-meta .post-date {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

/* 分类筛选栏放大 */
.nova-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;
}
.nova-archive .archive-filter .filter-tabs {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.nova-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;
}
.nova-archive .archive-filter .filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
}
.nova-archive .archive-filter .filter-divider {
    width: 1px !important;
    height: 20px !important;
    background: #e5e7eb !important;
    margin: 0 8px !important;
}

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

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

/* === v4.9 分类页面与导航栏左右对齐 === */
.nova-archive {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.nova-archive > .container {
    max-width: var(--nova-container) !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.nova-archive .archive-layout {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.nova-archive .archive-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.nova-archive .posts-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.nova-archive .archive-header {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
}
.nova-archive .archive-filter {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
}
.nova-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 */
.nova-header .container,
.nova-archive > .container,
.nova-home > .container {
    max-width: var(--nova-container) !important;
}

/* === v5.0 全站容器宽度加宽 === */
:root {
    --nova-container: 1400px !important;
}
.container {
    max-width: 1400px !important;
}
.nova-header .container,
.nova-home .container,
.nova-archive .container,
.nova-single .container,
.single-post .container,
.page .container {
    max-width: 1400px !important;
}
/* 首页内容区域加宽 */
.nova-home {
    max-width: 100% !important;
}
/* 文章页内容区域加宽 */
.single-post .nova-main,
.page .nova-main {
    max-width: 100% !important;
}
/* 分类页文章卡片5列布局适配更宽容器 */
@media (min-width: 1400px) {
    .nova-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 .nova-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}
.resource-info-card-v2 .download-buttons .nova-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    border-color: #4f46e5 !important;
}
.resource-info-card-v2 .download-buttons .nova-btn-outline {
    background: #fff !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}
.resource-info-card-v2 .download-buttons .nova-btn-outline:hover {
    background: #ede9fe !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
}

/* 侧边栏下载按钮配色协调 */
.single-sidebar .nova-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
}
.single-sidebar .nova-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;
}
/* 底部内容下方添加横线 */
.nova-footer {
    position: relative !important;
}
.nova-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;
}

/* 底部区域变矮 */
.nova-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.footer-three-col {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin: 0 !important;
}
.nova-footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.nova-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;
}
