/* ============ 基础重置 ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "PingFang SC", "DFPKingGothicGB-Regular",
                 "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC",
                 "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif !important;
    font-weight: 500;
    background-color: #f5f6f8;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 全站所有元素强制继承统一字体，彻底杜绝落到宋体/SimSun */
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label, input, textarea, select, button,
div, section, article, aside, header, footer, nav, blockquote,
figcaption, figure, small, strong, b, em, i, del, u,
table, thead, tbody, tr, form, legend, caption, optgroup,
pre, code, kbd, samp, tt,
article, aside, details, figcaption, figure, footer, header,
hgroup, menu, nav, section, summary,
mark, audio, video {
    font-family: "PingFang SC", "DFPKingGothicGB-Regular",
                 "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC",
                 "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif !important;
}

/* 等宽代码类字体单独控制，但仍然优先使用系统自带的好看字体 */
code, kbd, samp, tt, pre {
    font-family: "JetBrains Mono", "Fira Code", "Consolas",
                 "PingFang SC", "Microsoft YaHei", monospace !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============ 左右分屏布局 ============ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ============ 左侧侧边栏 ============ */
.sidebar {
    width: 240px;
    background-color: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
    /* 隐藏滚动条但保留滚轮滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/EdgeLegacy */
}
.sidebar::-webkit-scrollbar {
    /* Chrome/Safari/Edge 隐藏滚动条 */
    display: none;
}

.sidebar-inner {
    padding: 28px 20px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
    border-bottom: 1px solid #f0f1f3;
    margin-bottom: 24px;
}

/* 外圈渐变光环 */
.logo-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 8px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ffffff 45%, rgba(139, 92, 246, 0.1) 60%, rgba(99, 102, 241, 0.25) 78%, rgba(139, 92, 246, 0.4) 100%);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(99, 102, 241, 0.06);
    position: relative;
}

/* logo 右上角气泡 */
.logo-bubble {
    position: absolute;
    top: -6px;
    right: -12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.45);
    z-index: 5;
    line-height: 1.3;
}

.logo-bubble::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 5px 4px 0;
    border-color: transparent #6366f1 transparent transparent;
}

/* 头像本体容器（白底圆形，位于光环中心） */
.logo-icon-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
}

.logo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* 主菜单 */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #f5f6f8;
    color: #374151;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* 侧边栏底部：二维码和辅助栏目 */
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
}

.qr-card {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    max-width: 130px;
    margin: 0 auto;
}

.qr-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.qr-wrap img,
.qr-code {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-text {
    margin: 6px 0 1px;
    font-size: 10px;
    font-weight: 600;
    color: #111827;
}

.qr-sub {
    margin: 0;
    font-size: 9px;
    color: #9ca3af;
}

.sidebar-links {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 5px;
}

.s-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border-radius: 8px;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.s-link:hover {
    background: #f5f6f8;
    color: #374151;
}

/* 让侧边栏支持flex布局，底部贴底 */
.sidebar-inner {
    min-height: calc(100vh - 0px);
    display: flex;
    flex-direction: column;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    color: inherit;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.nav-label {
    flex: 1;
}

/* ============ 右侧内容区 ============ */
.main-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 44px 40px;
    position: relative;
    z-index: 1;
}

/* ============ 右侧顶部背景装饰（仅首页/分类页使用） ============ */
.right-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 420px;
    background: url('../../images/muban1/right-bg.jpg') no-repeat center top;
    background-size: cover;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.right-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(245, 246, 248, 0) 0%,
        rgba(245, 246, 248, 0.1) 25%,
        rgba(245, 246, 248, 0.4) 50%,
        rgba(245, 246, 248, 0.7) 70%,
        rgba(245, 246, 248, 0.9) 85%,
        rgba(245, 246, 248, 1) 100%
    );
}

/* 详情页去除背景装饰 */
body.detail-page .right-hero-bg,
body.detail-page .right-hero-overlay {
    display: none;
}

body.detail-page .main-content {
    background: #f5f6f8;
}

body.detail-page .content-wrapper {
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
}

/* 详情页天气框使用实心背景 */
body.detail-page .weather-box {
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* ============ 顶部工具条：天气 + 会员 ============ */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 12px;
    color: #6b7280;
}

/* ============ 顶部横幅广告 ============ */
.top-banner-ad {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.top-banner-ad a {
    display: block;
}

.top-banner-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* 面包屑顶部样式 */
.breadcrumb-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-top a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-top a:hover {
    color: #6366f1;
}

.breadcrumb-top .breadcrumb-sep {
    color: #d1d5db;
}

.breadcrumb-top .breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* 天气样式 */
.weather-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #4b5563;
}

.weather-box svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.weather-temp {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1;
}

.weather-text {
    font-weight: 500;
    color: #374151;
}

.weather-divider {
    color: #d1d5db;
    margin: 0 2px;
}

.weather-city {
    color: #6b7280;
}

.weather-aqi {
    color: #10b981;
    font-weight: 500;
}

.weather-aqi em {
    font-style: normal;
    font-weight: 600;
    color: #059669;
}

/* 会员区 */
.user-area {
    display: inline-flex;
    align-items: center;
}

.user-guest,
.user-logged {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.user-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-link:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}

.user-split {
    width: 1px;
    height: 12px;
    background: #e5e7eb;
    margin: 0 2px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
    margin-right: 10px;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-level {
    font-size: 11px;
    color: #9ca3af;
}

.user-level-vip {
    color: #f59e0b;
    font-weight: 500;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
}

.user-logout {
    color: #ef4444 !important;
    margin-left: 4px;
}

.user-logout:hover {
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* img 形式的头像（会员真实头像） */
img.user-avatar {
    object-fit: cover;
    background: #e5e7eb;
}

/* VIP 申请按钮（普通会员醒目提示） */
.user-vip-apply {
    color: #f59e0b !important;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
}

.user-vip-apply:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

/* ============ 搜索框 ============ */
.search-wrap {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.search-box {
    width: 100%;
    max-width: 720px;
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 14px 20px 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.35);
}

.search-input-row {
    position: relative;
    width: 100%;
    height: 46px;
}

/* 修复：form 是 .search-input 的直接父级，需撑满高度，
   否则 input 的 height:100% 无法解析，灰色背景框高度异常 */
.search-input-row form {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.search-box:focus-within .search-icon {
    color: #6366f1;
}

.search-input {
    width: 100%;
    height: 100%;
    padding: 0 120px 0 48px;
    border: none;
    outline: none;
    background: #f9fafb;
    border-radius: 14px;
    font-size: 14px;
    color: #111827;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    background: #fff;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* ===== 自定义搜索历史下拉层（替代浏览器原生 autocomplete） ===== */
.search-history-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 50;
}

.search-history-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.3px;
}

.shd-clear {
    color: #6366f1;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.shd-clear:hover {
    color: #8b5cf6;
}

.shd-list {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
    max-height: 280px;
    overflow-y: auto;
}

.shd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.shd-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
}

.shd-icon {
    color: #c4b5fd;
    flex-shrink: 0;
}

.shd-text {
    flex: 1;
    font-size: 13px;
    color: #374151;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shd-item:hover .shd-text {
    color: #6366f1;
}

.shd-del {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
    flex-shrink: 0;
}

.shd-del:hover {
    background: #fef2f2;
    color: #ef4444;
}

.shd-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 46px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.search-btn:active {
    transform: translateY(-50%);
}

.search-keywords {
    margin-top: 12px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
}

.kw-label {
    color: #9ca3af;
    margin-right: 4px;
}

.kw-item {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.kw-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

/* 页面标题 */
.page-header {
    position: relative;
    min-height: 80px;
    margin-bottom: 32px;
}

/* 左侧标题：绝对定位，不占文档流，使广告图可整体居中 */
.page-header-left {
    position: absolute;
    left: 0;
    top: 0;
}

/* 右侧广告图：与搜索框一致的居中布局（max-width 720px + margin auto） */
.page-header-ad {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-header-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ============ 滚动新闻 ============ */
.news-marquee {
    position: relative;
    height: 34px;
    overflow: hidden;
    margin: 8px auto 12px;
    max-width: 720px;
    width: 100%;
    z-index: 1;
}

.news-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    will-change: transform;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    padding: 0 4px;
    box-sizing: border-box;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.news-item:hover {
    color: #fff;
}

.news-item:hover .news-title {
    color: #facc15;
}

.news-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.7);
    flex-shrink: 0;
}

.news-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    transition: color 0.2s ease;
}

.news-date {
    flex-shrink: 0;
    margin-left: 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.news-marquee:hover .news-track {
    /* 悬浮时JS逻辑处理暂停 */
}

/* ============ 筛选区 ============ */
.filter-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.filter-group + .filter-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #eef0f3;
}

.filter-label {
    flex-shrink: 0;
    width: 52px;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-align: right;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

/* 筛选标签 - a标签块样式 */
.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background-color: #f5f6f8;
    color: #6b7280;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #edeefe;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.filter-tag:active {
    transform: translateY(0);
}

.filter-tag.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    border-color: transparent;
}

.filter-tag.active:hover {
    background: linear-gradient(135deg, #5457e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* 系统category_screen生成的筛选标签（无.filter-tag类名，选中用.current） */
.filter-tags > a:not(.filter-tag) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background-color: #f5f6f8;
    color: #6b7280;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tags > a:not(.filter-tag):hover {
    background-color: #edeefe;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.filter-tags > a.current:not(.filter-tag) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    border-color: transparent;
}

.filter-tags > a.current:not(.filter-tag):hover {
    background: linear-gradient(135deg, #5457e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* ============ 推荐内容区 ============ */
.recommend-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px 18px;
    margin: 16px 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.recommend-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.recommend-title svg {
    color: #f59e0b;
}

.recommend-more {
    font-size: 12px;
    color: #6366f1;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.recommend-more:hover {
    opacity: 0.8;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.rec-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f1f3;
    transition: all 0.25s ease;
    position: relative;
}

.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.rec-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 推荐区：不公开内容标记（右上角红色锁图标） */
.rec-card-private {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.rec-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f6f8;
}

.rec-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rec-card:hover .rec-card-image img {
    transform: scale(1.06);
}

.rec-card-body {
    padding: 8px 9px 10px;
}

.rec-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.rec-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
}

.rec-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border-radius: 5px;
    font-weight: 500;
}

.rec-card-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

@media (max-width: 1280px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ 瀑布流内容区 ============ */
.notes-section {
    min-height: 400px;
}

.waterfall {
    column-count: 5;
    column-gap: 20px;
}

/* 卡片样式 */
.note-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: block;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 卡片图片 */
.note-card-image {
    width: 100%;
    display: block;
    overflow: hidden;
    position: relative;
}

.note-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* 图片左上角来源标签（白底圆角） */
.note-card-source {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

/* 瀑布流区：不公开内容标记（右上角红色锁图标） */
.note-card-private {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.note-card:hover .note-card-image img {
    transform: scale(1.04);
}

/* 卡片内容 */
.note-card-body {
    padding: 16px 18px 18px;
}

.note-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tag标签 */
.note-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    line-height: 1.4;
}

.tag-category {
    background-color: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.tag-attr {
    background-color: rgba(16, 185, 129, 0.08);
    color: #059669;
}

/* 卡片底部信息栏 */
.note-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1;
}

.meta-item svg {
    flex-shrink: 0;
}

.meta-date {
    justify-content: flex-start;
}

.meta-views {
    justify-content: flex-end;
}

/* ============ 分页 ============ */
/* ============ 系统分页 #page ============ */
#page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0 20px;
    flex-wrap: wrap;
}

#page .pageinfo {
    color: #9ca3af;
    font-size: 13px;
    margin-right: 8px;
}

#page .pageinfo strong {
    color: #6366f1;
    font-weight: 600;
}

#page a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background-color: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

#page a:hover {
    color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

#page a.curpage {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

#page a.curpage:hover {
    color: #fff;
    transform: translateY(-1px);
}

#page a.nopage {
    color: #d1d5db;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

#page a.homepage,
#page a.endpage {
    padding: 0 14px;
}

/* 暂无数据 */
.no_data {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 60px 0;
    margin: 0;
}

/* ============ 轻量 Toast 通知（替代 layer.msg） ============ */
.yzm-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 10000;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    background: rgba(30, 30, 40, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
}
.yzm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.yzm-toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.yzm-toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.yzm-toast.loading {
    background: rgba(30, 30, 40, 0.92);
    padding-left: 44px;
}
.yzm-toast.loading::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: yzm-toast-spin 0.7s linear infinite;
}
@keyframes yzm-toast-spin {
    to { transform: rotate(360deg); }
}

/* ============ 登录/注册弹窗 ============ */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
}

.auth-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    animation: maskFade 0.25s ease;
}

@keyframes maskFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-dialog {
    position: relative;
    width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: dialogIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-tabs {
    position: relative;
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    padding-right: 36px;
}

.auth-tab {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.25s ease;
    z-index: 2;
}

.auth-tab.active {
    color: #111827;
}

.auth-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.auth-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background: #f0f1f3;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.auth-field:focus-within {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.auth-field svg {
    flex-shrink: 0;
    margin-right: 12px;
    color: #9ca3af;
    transition: color 0.25s ease;
}

.auth-field:focus-within svg {
    color: #6366f1;
}

.auth-field input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.auth-field input::placeholder {
    color: #9ca3af;
}

/* 验证码输入区域 */
.auth-field-with-code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    height: auto;
    margin-bottom: 16px;
}

.auth-field-with-code:focus-within {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.auth-field-code-input {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    height: 48px;
    background: #f0f1f3;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.25s ease;
}

.auth-field-code-input:focus-within {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.auth-field-code-input svg {
    flex-shrink: 0;
    margin-right: 12px;
    color: #9ca3af;
    transition: color 0.25s ease;
}

.auth-field-code-input:focus-within svg {
    color: #6366f1;
}

.auth-field-code-input input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    width: 100%;
}

.auth-field-code-input input::placeholder {
    color: #9ca3af;
}

.auth-code-img {
    width: 110px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: all 0.25s ease;
    object-fit: cover;
    display: block;
}

.auth-code-img:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #6b7280;
    user-select: none;
}

.auth-checkbox input {
    display: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.auth-checkbox input:checked + .checkbox-box {
    background: #6366f1;
    border-color: #6366f1;
}

.auth-checkbox input:checked + .checkbox-box::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.auth-forgot {
    color: #6366f1;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.auth-forgot:hover {
    opacity: 0.8;
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0 16px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    padding: 0 16px;
    background: #fff;
    color: #9ca3af;
    font-size: 12px;
}

.auth-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.auth-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.25s ease;
    text-decoration: none;
}

.auth-social:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    transform: translateY(-2px);
}

.auth-agree {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    user-select: none;
    margin-bottom: 16px;
}

.auth-agree input {
    display: none;
}

.auth-agree .checkbox-box {
    margin-top: 2px;
}

.auth-agree a {
    color: #6366f1;
    text-decoration: none;
}

.auth-agree a:hover {
    text-decoration: underline;
}

/* ============ VIP 升级弹窗 ============ */
.vip-upgrade-dialog {
    text-align: center;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

/* 顶部渐变区域 */
.vip-upgrade-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #6d28d9 100%);
    padding: 24px 28px 20px;
    position: relative;
    overflow: hidden;
}
.vip-upgrade-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.vip-upgrade-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.vip-upgrade-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 20px rgba(251,191,36,0.4);
    position: relative;
    z-index: 1;
}

.vip-upgrade-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.vip-upgrade-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 文字高亮 */
.vip-highlight {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.05em;
}
.vip-tag-normal {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #e0e7ff;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95em;
}

/* 内容区域 */
.vip-upgrade-body {
    padding: 16px 28px 0;
}

/* ============ VIP 开通方式选项卡 ============ */
.vip-tabs {
    position: relative;
    display: flex;
    gap: 0;
    margin: 0 0 18px;
    border-bottom: 1px solid #e5e7eb;
}
.vip-tab {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    padding: 12px 0;
    cursor: pointer;
    transition: color 0.25s ease;
    z-index: 2;
}
.vip-tab.active {
    color: #4f46e5;
}
.vip-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 3px 3px 0 0;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vip-tabs[data-active="manual"] .vip-tab-indicator {
    left: 50%;
}

/* 面板切换 */
.vip-panel {
    display: none;
}
.vip-panel.active {
    display: block;
    animation: vipFadeIn 0.25s ease;
}
@keyframes vipFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ 自助开通面板 ============ */
.vip-self-desc {
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.6;
}
.vip-highlight-dark {
    color: #4f46e5;
    font-weight: 700;
}
.vip-self-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.vip-step {
    flex: 1;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    position: relative;
}
.vip-step-num {
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto 8px;
}
.vip-step-text {
    margin-bottom: 10px;
}
.vip-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}
.vip-step-sub {
    font-size: 12px;
    color: #6b7280;
}
.vip-step-arrow {
    color: #c7d2fe;
    flex-shrink: 0;
}
.vip-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.vip-btn-outline {
    color: #4f46e5;
    background: #fff;
    border-color: #c7d2fe;
}
.vip-btn-outline:hover {
    background: #eef2ff;
    border-color: #6366f1;
}
.vip-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.vip-btn-primary:hover {
    box-shadow: 0 4px 14px rgba(99,102,241,0.45);
    transform: translateY(-1px);
}
.vip-self-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px;
}
.vip-self-tip svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* 人工开通二维码副文案 */
.vip-qr-sub {
    font-size: 12px;
    color: #8b5cf6;
    margin: 4px 0 0;
    font-weight: 600;
}

.vip-qr-box {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 20px 14px;
    margin-bottom: 14px;
    position: relative;
}
.vip-qr-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    border-radius: 0 0 4px 4px;
}

.vip-qr-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #e5e7eb;
}

.vip-qr-tip {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.vip-upgrade-tips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.6;
}

.vip-tip-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.vip-tip-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.vip-tip-sep {
    color: #d1d5db;
    font-size: 13px;
}

/* 底部操作栏 */
.vip-upgrade-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
}

.vip-back-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    transition: all 0.2s;
}
.vip-back-home:hover {
    background: #e5e7eb;
    color: #374151;
}

.vip-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}
.vip-logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ============ 响应式适配 ============ */
@media (max-width: 1400px) {
    .waterfall {
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .waterfall {
        column-count: 3;
    }
    .content-wrapper {
        padding: 32px 28px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 72px;
    }
    .sidebar-inner {
        padding: 20px 12px;
    }
    .logo {
        padding: 0 4px 24px;
        justify-content: center;
    }
    .logo-icon-wrap {
        width: 52px;
        height: 52px;
        padding: 4px;
    }
    .logo-icon-img-wrap {
        border-width: 2px;
    }
    .logo-text {
        display: none;
    }
    .nav-label {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .sidebar-footer {
        display: none;
    }
    .waterfall {
        column-count: 2;
    }
    .content-wrapper {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .waterfall {
        column-count: 1;
    }
    .content-wrapper {
        padding: 20px 16px;
    }
    .page-title {
        font-size: 22px;
    }
    .filter-group {
        flex-direction: column;
        gap: 12px;
    }
    .filter-label {
        width: auto;
        text-align: left;
        padding-top: 0;
    }
}

/* --- 全局 返回顶部按钮 --- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 98;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    user-select: none;
    border: none;
    padding: 0;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 14px;
        bottom: 72px;
        width: 38px;
        height: 38px;
    }
}
