/* 由 base.html 内联块抽离（L770-1676，907 行），内容逐字节保留 */

        /* Google Fonts 将通过异步加载器加载，这里提供系统字体降级 */
        
        :root {
            --primary-color: #28a745;
            --secondary-color: #20c997;
            --accent-color: #17a2b8;
            --light-color: #f8f9fa;
            --dark-color: #1a1a2e;
            --success-color: #1cc88a;
            --info-color: #20c997;
            --warning-color: #f6c23e;
            --danger-color: #e74a3b;
            --transition-speed: 0.3s;
            --border-radius: 0.75rem;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
        }
        
        body { 
            padding-top: var(--dkfile-navbar-height, 80px); /* 为固定导航栏留出空间 */
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8fafc;
            color: #4a5568;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* 当Google Fonts加载成功时，应用Inter字体 */
        .fonts-loaded body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }
        
        /* 全站顶栏高度（与 body padding-top、全屏页 top 偏移保持一致） */
        :root {
            --dkfile-navbar-height: 80px;
        }

        /* 导航栏样式 - 现代化设计 */
        .navbar {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 4px 32px rgba(0,0,0,0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.75rem 0;
        }

        /* 固定顶栏：双类选择器优先级高于 bootstrap-fallback 的 .navbar{relative} */
        .navbar.fixed-top {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
        }
        
        /* 移动端导航栏高度优化 */
        @media (max-width: 991.98px) {
            .navbar {
                padding: 0.4rem 0 !important;
            }
            
            .navbar-brand {
                font-size: 1rem !important;
            }
            
            .navbar-brand img {
                width: 22px !important;
                height: 22px !important;
                margin-right: 0.5rem !important;
            }
        }
        
        .navbar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(40, 167, 69, 0.05) 100%);
            pointer-events: none;
        }
        
        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            padding: 0.75rem 0;
        }
        
        .navbar.scrolled .navbar-brand {
            font-size: 1.2rem;
        }
        
        .navbar.scrolled .navbar-brand img {
            width: 24px;
            height: 24px;
        }
        
        .navbar-brand {
            font-weight: 700;
            letter-spacing: 0.05em;
            color: var(--primary-color) !important;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }
        
        .brand-text {
            transition: all 0.3s ease;
        }
        
        .navbar-brand:hover {
            color: var(--secondary-color) !important;
            transform: scale(1.02);
        }
        
        .navbar-brand img {
            width: 28px;
            height: 28px;
            margin-right: 0.75rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.2));
        }
        
        .navbar-brand:hover img {
            transform: rotate(360deg) scale(1.1);
            filter: drop-shadow(0 4px 8px rgba(40, 167, 69, 0.3));
        }
        
        /* 用户下拉菜单样式 */
        .user-nickname {
            font-weight: 600;
            color: var(--primary-color);
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .dropdown-toggle::after {
            margin-left: 0.5rem;
            transition: transform 0.2s ease;
        }
        
        .dropdown-toggle[aria-expanded="true"]::after {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
            border-radius: 1rem;
            padding: 0.5rem;
            margin-top: 0.5rem;
            min-width: 220px;
            z-index: 1050 !important;
            position: absolute !important;
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            transition: all 0.2s ease;
            color: #4a5568;
            font-weight: 500;
        }
        
        .dropdown-item:hover {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--primary-color);
            transform: translateX(4px);
        }
        
        .dropdown-item i {
            width: 20px;
            text-align: center;
            margin-right: 0.75rem;
        }
        
        .dropdown-divider {
            margin: 0.5rem 0;
            border-color: rgba(0,0,0,0.08);
        }
        
        .dropdown-item.text-danger:hover {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* 确保下拉菜单正确显示 */
        .dropdown.show .dropdown-menu {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        /* 修复可能的Bootstrap冲突 */
        .navbar-nav .dropdown-menu {
            margin-top: 0.5rem;
        }
        
        /* 确保下拉菜单在移动端也能正确显示 */
        @media (max-width: 991.98px) {
            .navbar-nav .dropdown-menu {
                position: absolute !important;
                left: auto !important;
                right: 0 !important;
                transform: translate3d(0px, 38px, 0px) !important;
            }
        }
        
        /* 移动端下拉菜单优化 */
        @media (max-width: 991.98px) {
            .dropdown-menu {
                position: absolute !important;
                transform: translate3d(0px, 38px, 0px) !important;
                width: auto;
                min-width: 220px;
                margin-top: 0;
                border: 1px solid rgba(0,0,0,0.08);
                box-shadow: 0 8px 32px rgba(0,0,0,0.12);
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
            }
            
            .dropdown-item {
                padding: 0.5rem 1rem;
                border-radius: 0.5rem;
                margin: 0.25rem 0;
                background: transparent;
            }
            
            .dropdown-item:hover {
                background: rgba(40, 167, 69, 0.1);
                transform: none;
            }
            
            .user-nickname {
                max-width: none;
            }
        }
        
        /* 现代化汉堡菜单 */
        .navbar-toggler {
            border: none;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(40, 167, 69, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        /* 移动端汉堡菜单按钮优化 */
        @media (max-width: 991.98px) {
            .navbar-toggler {
                padding: 0.25rem 0.35rem !important;
                border-radius: 0.375rem !important;
            }
            
            .navbar-toggler-icon {
                width: 18px !important;
                height: 18px !important;
            }
        }
        
        .navbar-toggler::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s;
        }
        
        .navbar-toggler:hover::before {
            left: 100%;
        }
        
        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
            outline: none;
        }
        
        .navbar-toggler:hover {
            background: rgba(40, 167, 69, 0.1);
            transform: scale(1.05);
        }
        
        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2840, 167, 69, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        
        /* 导航链接现代化设计 */
        .nav-link {
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            color: #4a5568 !important;
            border-radius: 0.5rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            margin: 0 0.125rem;
            white-space: nowrap;
        }
        
        .nav-text {
            transition: all 0.3s ease;
        }
        
        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.2));
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: -1;
        }
        
        .nav-link:hover::before {
            width: 100%;
        }
        
        .nav-link:hover {
            color: var(--primary-color) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
        }
        
        .nav-link.active {
            color: var(--primary-color) !important;
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.15));
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
        }
        
        .nav-link i {
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-link:hover i {
            transform: scale(1.1);
        }
        
        /* 小程序菜单特殊样式 */
        .nav-link-miniprogram {
            color: var(--primary-color) !important;
        }
        
        .nav-link-miniprogram .nav-text {
            color: var(--primary-color) !important;
        }
        
        .nav-link-miniprogram:hover {
            color: var(--primary-color) !important;
        }
        
        .miniprogram-icon {
            width: 16px;
            height: 16px;
            color: var(--primary-color);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-link-miniprogram:hover .miniprogram-icon {
            transform: scale(1.1);
        }
        
        /* 下拉菜单样式 */
        .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
            border-radius: 0.75rem;
            padding: 0.5rem 0;
            margin-top: 0.5rem;
            animation: dropdownFadeIn 0.2s ease-out;
        }
        
        .dropdown-item {
            padding: 0.75rem 1.25rem;
            color: #4a5568;
            transition: all 0.2s ease;
            border-radius: 0.5rem;
            margin: 0 0.5rem;
        }
        
        .dropdown-item:hover {
            background: rgba(40, 167, 69, 0.1);
            color: var(--primary-color);
            transform: translateX(4px);
        }
        
        .dropdown-item i {
            width: 1rem;
            text-align: center;
        }
        
        .dropdown-divider {
            margin: 0.5rem 1rem;
            border-color: rgba(0,0,0,0.08);
        }
        
        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        

        
        /* 大屏幕优化 (1200px以下) */
        @media (max-width: 1199.98px) {
            .navbar-nav {
                gap: 0.25rem;
            }
            
            .nav-link {
                padding: 0.5rem 0.75rem !important;
                font-size: 0.9rem;
            }
            
            .nav-text {
                font-size: 0.9rem;
            }
            
            .user-nickname {
                max-width: 100px;
            }
        }
        
        /* 中等屏幕优化 (992px以下) */
        @media (max-width: 991.98px) {
            .navbar-collapse {
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-radius: 1rem;
                box-shadow: 0 8px 32px rgba(0,0,0,0.12);
                margin-top: 1rem;
                padding: 1.5rem;
                border: 1px solid rgba(0,0,0,0.08);
                position: relative;
                overflow: hidden;
            }
            
            .navbar-collapse::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(40, 167, 69, 0.05) 100%);
                pointer-events: none;
            }
            
            /* NEW标识样式 - 内联显示 */
            .new-badge-inline {
                display: inline-block;
                background-color: #dc3545;
                color: #ffffff;
                font-size: 0.6rem;
                padding: 0.15rem 0.3rem;
                border-radius: 3px;
                margin-left: 0.3rem;
                font-weight: 700;
                vertical-align: middle;
                line-height: 1;
                text-transform: uppercase;
            }
            
            .nav-text-with-badge {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                white-space: nowrap;
            }
            
            /* 在极小屏幕上隐藏NEW标识，用颜色突出显示 */
            @media (max-width: 360px) {
                .new-badge-inline {
                    display: none;
                }
            }
            
            .navbar-nav {
                gap: 0.5rem;
                position: relative;
                z-index: 1;
            }
            
            .nav-link {
                padding: 1rem 1.25rem !important;
                margin: 0.25rem 0;
                border-radius: 0.75rem;
                font-size: 1rem;
                background: rgba(255, 255, 255, 0.5);
                border: 1px solid rgba(0,0,0,0.05);
            }
            
            .nav-link:hover {
                background: rgba(40, 167, 69, 0.1);
                border-color: rgba(40, 167, 69, 0.2);
                transform: translateX(4px);
            }
            
            .navbar-brand {
                font-size: 1.2rem;
            }
            
            /* 移动端菜单动画 */
            .navbar-collapse.collapsing {
                transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            }
            
            .navbar-collapse.show {
                animation: slideInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
        }
        
        @media (max-width: 767.98px) {
            .navbar {
                padding: 0.75rem 0;
            }
            
            .navbar-brand {
                font-size: 1.1rem;
            }
            
            .navbar-brand img {
                width: 24px !important;
                height: 24px !important;
                margin-right: 0.5rem;
            }
            
            .navbar-collapse {
                padding: 1.25rem;
                margin-top: 0.75rem;
            }
            
            .nav-link {
                padding: 0.875rem 1rem !important;
                font-size: 0.95rem;
            }
            
            /* 移动端隐藏下拉菜单，改为直接链接 */
            .dropdown-menu {
                position: static !important;
                float: none;
                width: auto;
                margin-top: 0;
                background-color: transparent;
                border: 0;
                box-shadow: none;
            }
            
            .dropdown-item {
                padding: 0.75rem 1rem;
                margin: 0.25rem 0;
                background: rgba(255, 255, 255, 0.5);
                border-radius: 0.5rem;
            }
        }
        
        @media (max-width: 575.98px) {
            .navbar {
                padding: 0.625rem 0;
            }
            
            .navbar-brand {
                font-size: 1rem;
            }
            
            .navbar-brand img {
                width: 22px !important;
                height: 22px !important;
            }
            
            .navbar-collapse {
                margin-top: 0.5rem;
                padding: 1rem;
                border-radius: 0.75rem;
            }
            
            .nav-link {
                padding: 0.75rem 1rem !important;
                font-size: 0.9rem;
                margin: 0.125rem 0;
            }
            
            .navbar-toggler {
                padding: 0.375rem;
            }
            
            /* 超小屏幕优化 */
            .nav-text {
                font-size: 0.85rem;
            }
            
            .navbar-nav {
                gap: 0.125rem;
            }
        }
        
        /* 超宽屏幕优化 */
        @media (min-width: 1400px) {
            .navbar {
                padding: 1rem 0;
            }
            
            .navbar-brand {
                font-size: 1.35rem;
            }
            
            .nav-link {
                padding: 0.75rem 1.25rem !important;
                font-size: 1rem;
            }
            
            .nav-text {
                font-size: 1rem;
            }
        }
        
        /* 导航栏动画效果 */
        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* VIP标识闪光动画 - 统一金色渐变效果（全局样式） */
        @keyframes vipShine {
            0%, 100% {
                box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
                transform: scale(1.05);
            }
        }
        
        .card { 
            transition: all var(--transition-speed) ease; 
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
            border-radius: var(--border-radius);
            border: none;
            margin-bottom: 1.5rem;
            overflow: hidden;
            background-color: white;
        }
        
        .card:hover { 
            transform: translateY(-5px); 
            box-shadow: 0 0.5rem 1.5rem rgba(40, 167, 69, 0.25);
        }
        
        .btn {
            font-weight: 500;
            letter-spacing: 0.03em;
            border-radius: var(--border-radius);
            padding: 0.5rem 1.25rem;
            transition: all 0.2s;
            font-size: 0.875rem;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary:hover, .btn-primary:focus {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 0.5rem 1rem rgba(40, 167, 69, 0.25);
        }
        
        .btn-primary:active {
            animation: pulse 0.4s ease;
        }
        
        /* 确保按钮文字可见 */
        .btn span {
            color: inherit !important;
        }
        
        .btn-outline-warning {
            color: #856404 !important;
            border-color: #ffc107;
        }
        
        .btn-outline-warning:hover {
            color: #fff !important;
            background-color: #ffc107;
            border-color: #ffc107;
        }
        
        .btn-outline-info {
            color: #0c5460 !important;
            border-color: #17a2b8;
        }
        
        .btn-outline-info:hover {
            color: #fff !important;
            background-color: #17a2b8;
            border-color: #17a2b8;
        }
        
        .btn-outline-danger {
            color: #721c24 !important;
            border-color: #dc3545;
        }
        
        .btn-outline-danger:hover {
            color: #fff !important;
            background-color: #dc3545;
            border-color: #dc3545;
        }

        .btn-outline-success,
        a.btn-outline-success,
        a.btn-outline-success:visited {
            color: var(--primary-color) !important;
            border-color: var(--primary-color);
            background-color: transparent;
        }

        .btn-outline-success:hover,
        .btn-outline-success:focus,
        .btn-outline-success:focus-visible,
        .btn-outline-success:active,
        a.btn-outline-success:hover,
        a.btn-outline-success:focus,
        a.btn-outline-success:focus-visible,
        a.btn-outline-success:active {
            color: #fff !important;
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        }
        
        .btn-warning {
            color: #212529 !important;
            background-color: #ffc107;
            border-color: #ffc107;
        }
        
        .btn-warning:hover {
            color: #212529 !important;
            background-color: #e0a800;
            border-color: #d39e00;
        }
        
        /* 按钮加载状态 - 使用伪元素，不修改HTML */
        .btn-loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }
        
        /* 用伪元素创建居中的spinner */
        .btn-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 18px;
            height: 18px;
            margin: -9px 0 0 -9px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: btn-spin 0.8s linear infinite;
        }
        
        @keyframes btn-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .container {
            max-width: 1400px;
            padding: 0 2rem;
            margin: 0 auto;
        }
        
        footer {
            background: var(--dark-color);
            color: white;
            padding: 3rem 0;
            margin-top: 5rem;
        }
        
        .alert {
            border-radius: var(--border-radius);
            border: none;
        }
        
        /* 响应式调整 */
        @media (max-width: 1199.98px) {
            .container {
                max-width: 1140px;
            }
        }
        
        @media (max-width: 991.98px) {
            .container {
                max-width: 960px;
                padding: 0 1.5rem;
            }
            
            .navbar {
                padding: 0.75rem 0;
            }
            
            :root {
                --dkfile-navbar-height: 70px;
            }
            
            body {
                padding-top: var(--dkfile-navbar-height);
            }
        }
        
        @media (max-width: 767.98px) {
            .container {
                max-width: 720px;
                padding: 0 1rem;
            }
            
            .btn {
                padding: 0.375rem 0.75rem;
            }
            
            :root {
                --dkfile-navbar-height: 65px;
            }
            
            body {
                padding-top: var(--dkfile-navbar-height);
            }
        }
        
        @media (max-width: 575.98px) {
            .container {
                max-width: 100%;
                padding: 0 1rem;
            }
            
            .navbar-brand {
                font-size: 1.1rem;
            }
            
            :root {
                --dkfile-navbar-height: 60px;
            }
            
            body {
                padding-top: var(--dkfile-navbar-height);
            }
        }
    
