/* iframe 模式：移除文章自带的 body flex 布局和 min-height */
    body { display:block !important; min-height:auto !important; }
    html { height:auto !important; }

/* ===== extracted from knowledge/header.php 2026-09-08 ===== */
/* 增强的登录按钮样式 - 确保与水印兼容 */
.enhanced-auth-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px rgba(37, 99, 235, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.enhanced-auth-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 12px rgba(37, 99, 235, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.enhanced-auth-btn:active {
    transform: translateY(0);
}

/* 增强的注册按钮样式 */
.enhanced-register-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px rgba(16, 185, 129, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.enhanced-register-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 12px rgba(16, 185, 129, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.enhanced-register-btn:active {
    transform: translateY(0);
}

/* 确保按钮在移动端也有良好显示 */
@media (max-width: 768px) {
    .enhanced-auth-btn,
    .enhanced-register-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .enhanced-auth-btn i,
    .enhanced-register-btn i {
        font-size: 1rem;
    }
}

/* 夜间模式适配 */
@media (prefers-color-scheme: dark) {
    .enhanced-auth-btn {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 4px 6px rgba(37, 99, 235, 0.4),
            0 1px 3px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .enhanced-register-btn {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 4px 6px rgba(16, 185, 129, 0.4),
            0 1px 3px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* 确保按钮在加载时有适当的不透明度 */
.enhanced-auth-btn,
.enhanced-register-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        /* 个人中心按钮样式（登录后） */
        .profile-btn {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            color: #1d4ed8;
            border: 1px solid rgba(59, 130, 246, 0.25);
        }
        
        .profile-btn:hover {
            background: linear-gradient(135deg, #dbeafe, #bfdbfe);
            color: #1e40af;
            border-color: rgba(59, 130, 246, 0.4);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        }

        /* 退出登录按钮样式（导航栏专用） */
        .logout-nav-btn {
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            color: #dc2626;
            border: 1px solid rgba(220, 38, 38, 0.2);
        }
        
        .logout-nav-btn:hover {
            background: linear-gradient(135deg, #fecaca, #fca5a5);
            color: #b91c1c;
            border-color: rgba(220, 38, 38, 0.3);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
        }

/* ===== 当前页选中状态（参照后台 .nav-btn.active） ===== */
/* 命中 .enhanced-auth-btn.active（knowledge/ 导航实际使用的类名） */
.enhanced-auth-btn.active,
.nav-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    font-weight: 700;
    box-shadow:
        0 4px 18px rgba(30, 64, 175, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: none !important;
    letter-spacing: 0.3px;
}
.enhanced-auth-btn.active .nav-icon,
.nav-btn.active .nav-icon { color: #fff !important; }
.enhanced-auth-btn.active::after,
.nav-btn.active::after { display: none; } /* 选中时禁用波纹 */
.enhanced-auth-btn.active:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1c2d6b 100%) !important;
    transform: none !important;
    cursor: default;
}
@media (prefers-color-scheme: dark) {
    .enhanced-auth-btn.active,
    .nav-btn.active {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        box-shadow:
            0 4px 18px rgba(59, 130, 246, 0.55),
            0 1px 3px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .enhanced-auth-btn.active:hover {
        background: linear-gradient(135deg, #1e40af 0%, #1c2d6b 100%) !important;
    }
}
        /* ============ 登录注册页面头部样式增强 ============ */
body.auth-page header {
    position: relative;
    z-index: 50;
}

body.auth-page header .nav-actions {
    position: relative !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body.auth-page header .nav-btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    min-height: 36px !important;
}

body.auth-page header .nav-btn:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    color: #1e40af !important;
}

body.auth-page header .nav-btn:active {
    transform: translateY(0) !important;
}

body.auth-page header .auth-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
}

body.auth-page header .auth-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    color: white !important;
}

body.auth-page header .logout-btn {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

body.auth-page header .logout-btn:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
    color: #b91c1c !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1) !important;
}

body.auth-page header .nav-icon {
    transition: transform 0.2s ease !important;
    margin-right: 0.5rem !important;
}

body.auth-page header .nav-btn:hover .nav-icon {
    transform: scale(1.1) !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body.auth-page header .nav-actions {
        gap: 0.25rem !important;
    }
    
    body.auth-page header .nav-btn {
        padding: 0.375rem !important;
        min-width: auto !important;
    }
    
    body.auth-page header .nav-btn span {
        display: none !important;
    }
    
    body.auth-page header .nav-title-container {
        display: none !important;
    }
    
    body.auth-page header .nav-icon {
        margin-right: 0 !important;
    }
}

/* 平板适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    body.auth-page header .nav-title {
        font-size: 1.25rem !important;
    }
    
    body.auth-page header .nav-subtitle {
        font-size: 0.75rem !important;
    }
}

/* 夜间模式适配 */
@media (prefers-color-scheme: dark) {
    body.auth-page header .nav-btn {
        background: linear-gradient(135deg, #334155, #475569) !important;
        color: #cbd5e1 !important;
    }
    
    body.auth-page header .nav-btn:hover {
        background: linear-gradient(135deg, #475569, #64748b) !important;
        color: #f1f5f9 !important;
        border-color: rgba(59, 130, 246, 0.4) !important;
    }
}

/* 确保auth-page页面中的main区域有正确的高度 */
body.auth-page main {
    flex: 1 0 auto;
}

/* 重置可能影响头部按钮的通用样式 */
body.auth-page header .nav-actions * {
    box-sizing: border-box !important;
}

body.auth-page header .nav-actions a {
    text-decoration: none !important;
    cursor: pointer !important;
}

body.auth-page header .nav-actions a:hover {
    text-decoration: none !important;
}
        /* 主头部容器 */
        header {
            background: linear-gradient(135deg,
                #ffffff 0%,
                rgba(248, 250, 252, 0.95) 50%,
                #ffffff 100%);
            backdrop-filter: blur(10px);
        }

        /* 小屏幕下导航栏贴合顶部，无轮廓 */
        @media (max-width: 767px) {
            .nav-header-card {
                margin: 0;
                border-radius: 0;
                padding-bottom: 0.75rem;
            }
            header {
                box-shadow: none !important;
                border-bottom: none !important;
            }
            /* 第一行：logo居中 */
            .nav-header-card .nav-logo {
                margin: 0 auto;
                display: flex;
                justify-content: center;
                width: 100%;
                text-align: center;
            }
            /* 第二行：导航按钮 - 3列网格 */
            .nav-header-card .nav-actions {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 0.5rem;
                padding-top: 0.5rem;
                margin-top: 0.25rem;
                border-top: 1px solid rgba(59, 130, 246, 0.08);
            }
            .nav-header-card .nav-actions > a {
                justify-content: center;
                text-align: center;
                min-height: 44px;
            }
        }
        
        /* 导航栏容器 */
        .nav-container {
            position: relative;
            z-index: 50;
        }
        
        /* 网站logo优化 */
        .nav-logo {
            filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.15));
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
        }
        
        .nav-logo:hover {
            filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.25));
            transform: translateY(-1px);
        }
        
        /* 导航标题美化 */
        .nav-title-container {
            flex: 1 1 0%;
            min-width: 0;
            text-align: center;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
            backdrop-filter: blur(8px);
            padding: 0.5rem 1rem;
            border-radius: 12px;
            margin: 0 0.5rem;
            overflow: hidden;
        }
        
        .nav-title {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1d4ed8, #3b82f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.3;
            letter-spacing: -0.025em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .nav-subtitle {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: #64748b;
            margin-top: 0.125rem;
            letter-spacing: 0.025em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        /* 操作按钮组美化 */
        .nav-actions {
            position: relative;
            z-index: 20;
            flex-shrink: 0;
        }
        
        /* 通用按钮样式 */
        .nav-btn {
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid transparent;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            color: #475569;
        }
        
        .nav-btn:hover {
            transform: translateY(-2px);
            border-color: rgba(59, 130, 246, 0.3);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
            background: linear-gradient(135deg, #ffffff, #f8fafc);
            color: #1e40af;
        }
        
        .nav-btn:active {
            transform: translateY(0);
        }
        
        /* 登录/注册按钮特殊样式 */
        .auth-btn {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            border: none;
        }
        
        .auth-btn:hover {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            color: white;
        }
        
        /* 退出按钮样式 */
        .logout-btn {
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            color: #dc2626;
            border: 1px solid rgba(220, 38, 38, 0.2);
        }
        
        .logout-btn:hover {
            background: linear-gradient(135deg, #fecaca, #fca5a5);
            color: #b91c1c;
            border-color: rgba(220, 38, 38, 0.3);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
        }
        
        /* 图标美化 */
        .nav-icon {
            transition: transform 0.2s ease;
        }
        
        .nav-btn:hover .nav-icon {
            transform: scale(1.1);
        }
        
        /* 按钮波纹效果 */
        .nav-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(59, 130, 246, 0.2);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }
        
        .nav-btn:active::after {
            animation: ripple 0.6s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }
        
        /* 工具提示样式 */
        .nav-btn[title]:hover::after {
            content: attr(title);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: white;
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            white-space: nowrap;
            z-index: 100;
            margin-bottom: 0.5rem;
        }
        
        .nav-btn[title]:hover::before {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: #1e293b;
            margin-bottom: -5px;
            z-index: 100;
        }
        
        /* 屏幕阅读器专用样式 */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .nav-title-container {
                display: none !important;
            }

            .nav-logo {
                width: auto;
            }

            .nav-btn {
                padding: 0.5rem;
                min-width: auto;
            }

            .nav-actions {
                gap: 0.5rem;
            }

            .nav-btn {
                padding: 0.375rem;
            }
        }

        /* 中等屏幕：缩小标题字体，隐藏副标题 */
        @media (min-width: 769px) and (max-width: 1024px) {
            .nav-title-container {
                margin: 0 0.25rem;
                padding: 0.375rem 0.5rem;
            }
            .nav-title {
                font-size: 1.15rem !important;
            }
            .nav-subtitle {
                display: none !important;
            }
        }

        /* 宽屏：微缩小字体 */
        @media (min-width: 1025px) and (max-width: 1200px) {
            .nav-title {
                font-size: 1.35rem;
            }
            .nav-subtitle {
                font-size: 0.8rem;
            }
        }

        /* 动画效果 */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        header {
            animation: fadeInDown 0.5s ease-out;
        }
        
        /* 分隔线美化 */
        .nav-divider {
            color: #e2e8f0;
            opacity: 0.5;
        }
        
        /* 夜间模式适配 */
        @media (prefers-color-scheme: dark) {
            header {
                background: linear-gradient(135deg, 
                    #1e293b 0%, 
                    rgba(30, 41, 59, 0.95) 50%, 
                    #1e293b 100%);
                border-bottom-color: rgba(59, 130, 246, 0.2);
            }
            
            .nav-title-container {
                background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
                border-color: rgba(59, 130, 246, 0.3);
            }
            
            .nav-btn {
                background: linear-gradient(135deg, #334155, #475569);
                color: #cbd5e1;
            }
            
            .nav-btn:hover {
                background: linear-gradient(135deg, #475569, #64748b);
                color: #f1f5f9;
                border-color: rgba(59, 130, 246, 0.4);
            }
        }

        /* ============ 其他原有样式 ============ */
        .filter-group {
            @apply bg-gray-50 rounded-lg p-3 border border-gray-200;
            transition: all 0.2s;
        }
        .filter-group:hover {
            @apply border-blue-200 bg-white shadow-sm;
        }
        /* 优化分页样式 */
        .pagination {
            @apply flex items-center justify-center mt-6 space-x-1;
        }
        .page-item {
            @apply px-3 py-1 rounded-md border border-gray-300 bg-white text-gray-700 
                   hover:bg-blue-50 hover:border-blue-300 transition-colors text-sm;
            min-width: 32px;
        }
        .page-item.active {
            @apply bg-blue-600 text-white border-blue-600 hover:bg-blue-700;
        }
        /* 新增placeholder居中样式 */
        input::placeholder {
            text-align: center;
        }
        /* 优化表头样式 */
        .enhanced-header {
            @apply text-base font-bold;
        }
        /* 确保筛选部分不随滚动 */
        .filter-container {
            overflow-x: visible !important;
        }

        /* 统计图标悬停动画 */
        .group-hover\:scale-105 {
            transition: transform 0.2s ease-in-out;
        }
        .group:hover .group-hover\:scale-105 {
            transform: scale(1.05);
        }
        /* 弹窗美化样式 */
        .wechat-popup-card {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 1.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(12px);
            text-align: center;
        }

        .qr-container {
            position: relative;
            padding: 1rem;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .qr-container::after {
            content: "扫码添加客服";
            position: absolute;
            bottom: -1.5rem;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.75rem;
            color: #64748b;
            white-space: nowrap;
        }

        .copy-btn {
            transition: all 0.2s;
            background: rgba(99, 102, 241, 0.1);
        }

        .copy-btn:hover {
            background: rgba(99, 102, 241, 0.2);
        }

        /* 加载动画 */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        /* 新增关闭按钮样式 */
        .close-btn {
            @apply cursor-pointer transition-transform;
        }
        .close-btn:hover {
            transform: scale(1.1);
        }
        .close-btn svg {
            pointer-events: none;
        }

        /* 新增复制成功提示样式 */
        .copy-success {
            @apply fixed bottom-8 right-8 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg;
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn {
            from { transform: translateY(100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .fa-info-circle {
            transition: transform 0.2s ease;
        }
        .fa-info-circle:hover {
            transform: scale(1.1);
        }
        /* APP下载弹窗样式 */
        .app-download-popup {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 1.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(12px);
            text-align: center;
        }

        .download-qr-box {
            border: 1px solid #f1f5f9;
            transition: box-shadow 0.2s ease, transform 0.2s ease;
        }
        .download-qr-box:hover {
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
            transform: translateY(-2px);
        }

        /* 旧样式兼容清理 */
        .download-qr-container {
            position: relative;
            padding: 1rem;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        .download-qr-container::after {
            content: "扫码下载APP";
            position: absolute;
            bottom: -1.5rem;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.75rem;
            color: #64748b;
            white-space: nowrap;
        }
        .download-tips {
            font-size: 0.875rem;
            color: #64748b;
            margin-top: 2rem;
            line-height: 1.5;
        }

        .dl-tab {
            color: #94a3b8;
            background: transparent;
            cursor: pointer;
            border: 1px solid transparent;
        }
        .dl-tab:hover {
            color: #3b82f6;
            background: #eff6ff;
            border-color: #bfdbfe;
        }
        .dl-tab-active {
            color: #2563eb;
            background: #eff6ff;
            border-color: #93c5fd;
            font-weight: 600;
        }

        #qrAndroid, #qrIos {
            transition: opacity 0.25s ease;
        }
        
        @media (max-width: 768px) {
            .filter-container > div {
                grid-column: span 8 !important;
            }
        }
        .stock-info {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 0.5rem;
        font-size: 0.75rem;
        color: #6b7280;
        gap: 1rem;
    }
    .stock-info-item {
        display: flex;
        align-items: center;
    }
    .stock-info-icon {
        width: 14px;
        height: 14px;
        margin-right: 0.25rem;
        color: #9ca3af;
    }

    /* 调整图标与文字对齐 */
    .stock-info-item svg {
        display: inline-block;
        vertical-align: middle;
    }
    .stock-info-item span {
        display: inline-block;
        vertical-align: middle;
        line-height: 1.2;
    }
    /* 确保页面内容不足时底部固定 */
    html, body {
        height: 100%;
        margin: 0;
    }
    
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    main {
        flex: 1 0 auto;
    }
    
    footer {
        flex-shrink: 0;
    }
    
    /* 仅对非登录注册页面生效 */
    body:not(.auth-page) main {
        min-height: calc(100vh - 200px);
    }

    /* ===== PC端汉堡菜单按钮（脉冲圆点 + 竖排导航 + 汉堡图标，三合一） ===== */
    .pc-hamburger-btn {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        height: 54px;
        padding: 0 14px;
        border: 1.5px solid rgba(59,130,246,0.25);
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        color: #2563eb;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    .pc-hamburger-btn:hover {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-color: rgba(59,130,246,0.45);
        box-shadow: 0 4px 12px rgba(37,99,235,0.15);
        color: #1d4ed8;
    }
    .pc-hamburger-btn:active {
        transform: scale(0.97);
    }
    .pc-hamburger-btn.active {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff;
        border-color: rgba(255,255,255,0.3);
        box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    }
    .pc-hamburger-btn.active .hint-pulse-dot,
    .pc-hamburger-btn.active .hint-text-vert { color: #fff; }
    /* 脉冲圆点 */
    .pc-hamburger-btn .hint-pulse-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #3b82f6;
        animation: hint-pulse 2s ease-in-out infinite;
        flex-shrink: 0;
    }
    .pc-hamburger-btn.active .hint-pulse-dot { background: #fff; }
    @keyframes hint-pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.7); }
    }
    /* 竖排导航文字 */
    .pc-hamburger-btn .hint-text-vert {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.1;
        color: #2563eb;
        letter-spacing: 0;
    }
    /* 分割线 */
    .pc-hamburger-btn .ham-split {
        width: 1px;
        height: 30px;
        background: rgba(59,130,246,0.25);
        border-radius: 1px;
        flex-shrink: 0;
    }
    .pc-hamburger-btn.active .ham-split { background: rgba(255,255,255,0.3); }
    /* 汉堡图标动画 */
    .pc-hamburger-btn .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 22px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .pc-hamburger-btn .hamburger-icon span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: currentColor;
        border-radius: 1.5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    .pc-hamburger-btn.active .hamburger-icon span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .pc-hamburger-btn.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .pc-hamburger-btn.active .hamburger-icon span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* 遮罩层 */
    .pc-dropdown-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .pc-dropdown-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* ===== 侧滑面板（从右侧滑入） ===== */
    .pc-dropdown-panel {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 230px;
        max-height: calc(100dvh - 24px);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow:
            -4px 4px 32px rgba(0,0,0,0.18),
            -1px 1px 12px rgba(37,99,235,0.1);
        border-radius: 16px;
        padding: 0 0 16px;
        z-index: 10001;
        transform: translateX(calc(100% + 24px));
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }
    .pc-dropdown-panel.visible {
        transform: translateX(0);
    }

    /* 面板头部 - 蓝色渐变 */
    .pc-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 12px;
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
        border-radius: 16px 16px 6px 6px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    .pc-sidebar-header::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -25%;
        width: 90px;
        height: 90px;
        background: rgba(255,255,255,0.06);
        border-radius: 50%;
    }
    .pc-sidebar-header .sidebar-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.04em;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 7px;
    }
    .pc-sidebar-header .sidebar-title i {
        opacity: 0.85;
        font-size: 0.85rem;
    }
    .pc-sidebar-close {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        border: 1.5px solid rgba(255,255,255,0.25);
        background: rgba(255,255,255,0.12);
        color: #ffffff;
        cursor: pointer;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        position: relative;
        z-index: 1;
    }
    .pc-sidebar-close:hover {
        background: rgba(255,255,255,0.22);
        border-color: rgba(255,255,255,0.4);
    }

    /* 用户信息卡片（登录后显示） */
    .pc-sidebar-user {
        margin: 10px 10px 4px;
        padding: 10px 12px;
        background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
        border: 1px solid rgba(59,130,246,0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .pc-sidebar-user .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #fff;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(37,99,235,0.2);
    }
    .pc-sidebar-user .user-info {
        flex: 1;
        min-width: 0;
    }
    .pc-sidebar-user .user-name {
        font-size: 0.85rem;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pc-sidebar-user .user-role {
        font-size: 0.7rem;
        color: #64748b;
        line-height: 1.3;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .pc-sidebar-user .user-role .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        flex-shrink: 0;
    }

    /* 分区标签 */
    .pc-sidebar-section {
        font-size: 0.7rem;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 16px 14px 8px;
        display: flex;
        align-items: center;
        gap: 7px;
        text-align: center;
        justify-content: center;
    }
    .pc-sidebar-section::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, #e2e8f0, transparent);
    }
    .pc-sidebar-section::before {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(270deg, #e2e8f0, transparent);
    }

    /* 菜单链接 - 精致风格 */
    .pc-dropdown-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 14px;
        margin: 2px 10px;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #475569;
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    /* 左侧高亮条（hover/active时显示） */
    .pc-dropdown-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 20px;
        background: linear-gradient(180deg, #2563eb, #3b82f6);
        border-radius: 0 3px 3px 0;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .pc-dropdown-link .link-icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }
    .pc-dropdown-link .link-icon-wrap i {
        font-size: 0.85rem;
        color: #64748b;
        transition: all 0.25s ease;
    }
    .pc-dropdown-link .link-text {
        line-height: 1.35;
    }
    .pc-dropdown-link .link-arrow {
        font-size: 0.65rem;
        color: #cbd5e1;
        transition: all 0.25s ease;
        opacity: 0;
        transform: translateX(-4px);
    }
    .pc-dropdown-link:hover {
        background: linear-gradient(135deg, #eff6ff 0%, #e8f2ff 100%);
        color: #1e40af;
        padding-left: 18px;
    }
    .pc-dropdown-link:hover::before {
        transform: translateY(-50%) scaleY(1);
    }
    .pc-dropdown-link:hover .link-icon-wrap {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        box-shadow: 0 3px 8px rgba(37,99,235,0.15);
        transform: scale(1.08);
    }
    .pc-dropdown-link:hover .link-icon-wrap i {
        color: #2563eb;
    }
    .pc-dropdown-link:hover .link-arrow {
        opacity: 1;
        transform: translateX(0);
        color: #93c5fd;
    }
    .pc-dropdown-link:active {
        transform: scale(0.97);
        background: #dbeafe;
    }

    /* 活跃状态 - 左侧蓝色高亮条 + 渐变底 */
    .pc-dropdown-link.active {
        background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
        color: #1d4ed8;
        font-weight: 600;
        box-shadow: inset 0 0 0 1.5px rgba(37,99,235,0.12);
        padding-left: 18px;
    }
    .pc-dropdown-link.active::before {
        transform: translateY(-50%) scaleY(1);
        background: linear-gradient(180deg, #1d4ed8, #2563eb);
    }
    .pc-dropdown-link.active .link-icon-wrap {
        background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
        box-shadow: 0 2px 8px rgba(37,99,235,0.25);
    }
    .pc-dropdown-link.active .link-icon-wrap i {
        color: #ffffff;
    }
    .pc-dropdown-link.active .link-arrow {
        opacity: 1;
        transform: translateX(0);
        color: #60a5fa;
    }

    /* 分割线 */
    .pc-dropdown-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
        margin: 6px 14px;
        opacity: 0.4;
    }

    /* 登录按钮 - 紧凑卡片式 */
    .pc-dropdown-link.login-link {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #ffffff;
        margin: 5px 10px;
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(37,99,235,0.3);
        font-weight: 600;
        padding: 12px 14px;
        gap: 10px;
        justify-content: center;
    }
    .pc-dropdown-link.login-link .link-icon-wrap {
        background: rgba(255,255,255,0.2);
    }
    .pc-dropdown-link.login-link .link-icon-wrap i { color: #ffffff; }
    .pc-dropdown-link.login-link:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        color: #ffffff;
        box-shadow: 0 5px 18px rgba(37,99,235,0.4);
        transform: translateY(-1px);
    }
    .pc-dropdown-link.login-link:hover .link-icon-wrap {
        background: rgba(255,255,255,0.3);
        box-shadow: none;
        transform: scale(1.05);
    }
    .pc-dropdown-link.login-link:active { transform: translateY(0) scale(0.97); }

    /* 注册按钮 - 紧凑卡片式 */
    .pc-dropdown-link.register-link {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #ffffff;
        margin: 5px 10px;
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(16,185,129,0.3);
        font-weight: 600;
        padding: 12px 14px;
        gap: 10px;
        justify-content: center;
    }
    .pc-dropdown-link.register-link .link-icon-wrap {
        background: rgba(255,255,255,0.2);
    }
    .pc-dropdown-link.register-link .link-icon-wrap i { color: #ffffff; }
    .pc-dropdown-link.register-link:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        color: #ffffff;
        box-shadow: 0 5px 18px rgba(16,185,129,0.4);
        transform: translateY(-1px);
    }
    .pc-dropdown-link.register-link:hover .link-icon-wrap {
        background: rgba(255,255,255,0.3);
        box-shadow: none;
        transform: scale(1.05);
    }
    .pc-dropdown-link.register-link:active { transform: translateY(0) scale(0.97); }

    /* 退出登录按钮 */
    .pc-dropdown-link.logout-link {
        color: #dc2626;
        margin: 2px 10px;
        justify-content: center;
    }
    .pc-dropdown-link.logout-link .link-icon-wrap { background: #fef2f2; }
    .pc-dropdown-link.logout-link .link-icon-wrap i { color: #ef4444; }
    .pc-dropdown-link.logout-link:hover {
        background: #fef2f2;
        color: #b91c1c;
        padding-left: 14px;
    }
    .pc-dropdown-link.logout-link:hover .link-icon-wrap {
        background: #fee2e2;
        box-shadow: 0 2px 6px rgba(239,68,68,0.12);
    }
    .pc-dropdown-link.logout-link:hover .link-icon-wrap i { color: #dc2626; }
    .pc-dropdown-link.logout-link:hover .link-arrow { color: #fca5a5; }

    /* 夜间模式 */
    @media (prefers-color-scheme: dark) {
        .pc-hamburger-btn {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            color: #93c5fd;
            border-color: rgba(59,130,246,0.3);
        }
        .pc-hamburger-btn .hint-pulse-dot { background: #60a5fa; }
        .pc-hamburger-btn .hint-text-vert { color: #93c5fd; }
        .pc-hamburger-btn .ham-split { background: rgba(59,130,246,0.25); }
        .pc-hamburger-btn:hover {
            background: linear-gradient(135deg, #334155 0%, #475569 100%);
            color: #dbeafe;
        }
        .pc-hamburger-btn.active {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: #fff;
        }
        .pc-dropdown-panel {
            background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
            box-shadow:
                -4px 4px 32px rgba(0,0,0,0.5),
                -1px 1px 12px rgba(59,130,246,0.15);
        }
        .pc-sidebar-header {
            border-bottom-color: rgba(59,130,246,0.2);
        }
        .pc-sidebar-header .sidebar-title {
            color: #f1f5f9;
        }
        .pc-sidebar-close {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.15);
            color: #cbd5e1;
        }
        .pc-sidebar-close:hover {
            background: rgba(239,68,68,0.25);
            color: #fca5a5;
        }
        .pc-sidebar-user {
            background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
            border-color: rgba(59,130,246,0.2);
        }
        .pc-sidebar-user .user-name { color: #e2e8f0; }
        .pc-sidebar-user .user-role { color: #94a3b8; }
        .pc-sidebar-section { color: #64748b; }
        .pc-dropdown-link {
            color: #94a3b8;
        }
        .pc-dropdown-link .link-icon-wrap {
            background: #1e293b;
        }
        .pc-dropdown-link .link-icon-wrap i {
            color: #64748b;
        }
        .pc-dropdown-link:hover {
            background: rgba(59,130,246,0.12);
            color: #dbeafe;
        }
        .pc-dropdown-link:hover::before {
            background: linear-gradient(180deg, #60a5fa, #93c5fd);
        }
        .pc-dropdown-link:hover .link-icon-wrap {
            background: rgba(59,130,246,0.2);
            box-shadow: 0 3px 8px rgba(59,130,246,0.2);
        }
        .pc-dropdown-link:hover .link-icon-wrap i {
            color: #93c5fd;
        }
        .pc-dropdown-link:hover .link-arrow {
            color: #60a5fa;
        }
        .pc-dropdown-link.active {
            background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(37,99,235,0.06) 100%);
            color: #93c5fd;
        }
        .pc-dropdown-link.active::before {
            background: linear-gradient(180deg, #60a5fa, #93c5fd);
        }
        .pc-dropdown-link.active .link-icon-wrap {
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            box-shadow: 0 3px 10px rgba(37,99,235,0.4);
        }
        .pc-dropdown-link.active .link-icon-wrap i {
            color: #ffffff;
        }
        .pc-sidebar-section::after {
            background: linear-gradient(90deg, #334155, transparent);
        }
        .pc-sidebar-section::before {
            background: linear-gradient(270deg, #334155, transparent);
        }
        .pc-dropdown-divider {
            background: linear-gradient(90deg, transparent, #334155, transparent);
        }
        .pc-dropdown-link.logout-link { color: #fca5a5; }
        .pc-dropdown-link.logout-link .link-icon-wrap { background: rgba(239,68,68,0.15); }
        .pc-dropdown-link.logout-link .link-icon-wrap i { color: #f87171; }
        .pc-dropdown-link.logout-link:hover {
            background: rgba(239,68,68,0.12);
            color: #fecaca;
        }
        .pc-dropdown-link.logout-link:hover .link-icon-wrap {
            background: rgba(239,68,68,0.25);
            box-shadow: 0 2px 8px rgba(239,68,68,0.2);
        }
        .pc-dropdown-link.logout-link:hover .link-icon-wrap i { color: #fca5a5; }
    }

/* ===== extracted from knowledge/header.php 2026-09-08 ===== */
.wave-motion {
                                    animation: dataFlow 1.2s linear infinite;
                                    stroke-dasharray: 0 24 0;
                                    transform-origin: center;
                                }
                                @keyframes dataFlow {
                                    0% { stroke-dashoffset: 0; }
                                    100% { stroke-dashoffset: 24; }
                                }