        :root {
            /* 现代配色方案 */
            --primary-50: #eef2ff;
            --primary-100: #e0e7ff;
            --primary-200: #c7d2fe;
            --primary-300: #a5b4fc;
            --primary-400: #818cf8;
            --primary-500: #6366f1;
            --primary-600: #4f46e5;
            --primary-700: #4338ca;
            --primary-800: #3730a3;
            --primary-900: #312e81;
            
            /* 强调色 */
            --accent-50: #fdf4ff;
            --accent-100: #fae8ff;
            --accent-200: #f5d0fe;
            --accent-300: #f0abfc;
            --accent-400: #e879f9;
            --accent-500: #d946ef;
            --accent-600: #c026d3;
            
            /* 成功/警告/错误 */
            --success-500: #22c55e;
            --warning-500: #f59e0b;
            --error-500: #ef4444;
            
            /* 中性色 */
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
            
            /* 100元 - 中国红 */
            --rmb-100-main: #C8161D;
            --rmb-100-light: #FEECEC;
            
            /* 50元 - 墨绿 */
            --rmb-50-main: #1F7552;
            --rmb-50-light: #E6F4EE;
            
            /* 20元 - 棕黄 */
            --rmb-20-main: #A97C50;
            --rmb-20-light: #F8F0E6;
            
            /* 10元 - 藏青蓝 */
            --rmb-10-main: #1E3A6C;
            --rmb-10-light: #E8EEF8;
            
            /* 5元 - 紫红 */
            --rmb-5-main: #7A2F8F;
            --rmb-5-light: #F3EAF7;
            
            /* 1元 - 橄榄绿 */
            --rmb-1-main: #5B7C4A;
            --rmb-1-light: #EEF4E9;
            
            /* 默认主色 */
            --primary-color: var(--rmb-10-main);
            --primary-light: var(--rmb-10-light);
            
            --bg-color: var(--gray-50);
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-bg-hover: rgba(255, 255, 255, 0.95);
            --text-color: var(--gray-800);
            --text-secondary: var(--gray-500);
            --text-muted: var(--gray-400);
            
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
            --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
            --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
            --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
            
            --border-radius-sm: 8px;
            --border-radius-md: 10px;
            --border-radius-lg: 14px;
            --border-radius-xl: 20px;
            
            --transition-fast: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            
            --sidebar-width: 230px;
            
            /* 玻璃态效果 */
            --glass-bg: rgba(255, 255, 255, 0.6);
            --glass-blur: 20px;
            --glass-border: rgba(255, 255, 255, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: 
                radial-gradient(ellipse at 20% 10%, rgba(30, 58, 108, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 70%),
                linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f0f4f8 100%);
            background-attachment: fixed;
            color: var(--text-color);
            line-height: 1.6;
            padding: 0;
            margin: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .app-container {
            display: flex;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }

        .sidebar {
            width: var(--sidebar-width);
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.5);
            padding: 0.9rem 1rem;
            padding-bottom: 0.5rem;
            overflow-y: auto;
            flex-shrink: 0;
            box-shadow: 
                2px 0 15px rgba(0, 0, 0, 0.03), 
                inset -1px 0 0 rgba(255, 255, 255, 0.4);
            min-height: 0;
        }

        /* 侧边栏自定义滚动条 */
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.2), rgba(30, 58, 108, 0.35));
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.35), rgba(30, 58, 108, 0.5));
        }

        .sidebar h3 {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.6rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .category-item {
            margin-bottom: 0.2rem;
        }

        .category-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.45rem 0.7rem;
            color: var(--text-color);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition-base);
            font-size: 1rem;
            font-weight: 500;
        }

        .category-link:hover,
        .category-link.active {
            background-color: var(--primary-light);
            color: var(--primary-color);
            font-weight: 600;
            transform: translateX(3px);
            box-shadow: 0 2px 8px rgba(154, 17, 21, 0.1);
        }

        /* 第一个分类的样式 - 去掉闪烁特效 */
        .category-item:first-child > .category-link {
            border-left-color: var(--rmb-10-main);
        }

        .category-link .expand-icon {
            font-size: 0.7rem;
            transition: transform 0.25s ease;
            opacity: 0.7;
        }

        .category-link.expanded .expand-icon {
            transform: rotate(90deg);
        }

        .sub-category-list {
            list-style: none;
            padding-left: 1rem;
            margin: 0.2rem 0 0.45rem;
            display: none;
        }

        .sub-category-list.show {
            display: block;
        }

        .sub-category-item {
            margin-bottom: 0.1rem;
        }

        .sub-category-link {
            display: block;
            padding: 0.4rem 0.6rem;
            color: #475569;
            text-decoration: none;
            border-radius: 8px;
            transition: var(--transition-normal);
            font-size: 0.95rem;
            font-weight: 500;
        }

        .sub-category-link:hover,
        .sub-category-link.active {
            background-color: rgba(30, 58, 108, 0.08);
            color: var(--primary-color);
            font-weight: 600;
            transform: translateX(3px);
        }

        /* 所有普通分类统一左边框 + 淡蓝底 */
        .category-link {
            border-left: 3px solid rgba(30, 58, 108, 0.18);
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.03), rgba(30, 58, 108, 0.05));
            border-radius: 0 8px 8px 0;
        }
        .category-link:hover,
        .category-link.active {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.08), rgba(30, 58, 108, 0.12));
            color: var(--rmb-10-main);
            border-left-color: var(--rmb-10-main);
            box-shadow: 0 2px 8px rgba(30, 58, 108, 0.12);
            transform: translateX(3px);
        }

        .category-item .sub-category-list {
            background: rgba(30, 58, 108, 0.02);
            border-left: 2px solid rgba(30, 58, 108, 0.18);
            margin-left: 0.3rem;
            padding-left: 0.9rem;
            border-radius: 0 0 8px 0;
        }

        .admin-category > .category-link {
            background: linear-gradient(135deg, #ffebee 0%, rgba(154, 17, 21, 0.1) 100%);
            border-left: 4px solid #9a1115;
            color: #9a1115;
            font-weight: 700;
            border-radius: 0 8px 8px 0;
            box-shadow: 0 1px 3px rgba(154, 17, 21, 0.08);
        }

        .admin-category > .category-link:hover,
        .admin-category > .category-link.active {
            background: linear-gradient(135deg, rgba(154, 17, 21, 0.12) 0%, rgba(154, 17, 21, 0.18) 100%);
            color: #9a1115;
            border-left-color: #9a1115;
            transform: translateX(4px);
            box-shadow: 0 3px 10px rgba(154, 17, 21, 0.2);
        }

        .admin-category .sub-category-list {
            background: #ffebee;
            border-left: 3px solid rgba(154, 17, 21, 0.28);
            margin-left: 0.4rem;
            padding-left: 1rem;
            border-radius: 0 0 8px 0;
            margin-top: 0.3rem;
            margin-bottom: 0.5rem;
        }

        .admin-category .sub-category-link {
            color: #9a1115;
            font-weight: 600;
            border-radius: 6px;
        }

        .admin-category .sub-category-link:hover,
        .admin-category .sub-category-link.active {
            background: linear-gradient(135deg, rgba(154, 17, 21, 0.1), rgba(154, 17, 21, 0.16));
            color: #9a1115;
            transform: translateX(5px);
        }

        .main-content {
            flex: 1;
            padding: 0.5rem 0.8rem;
            padding-bottom: 0.5rem;
            position: relative;
            min-height: 0;
            overflow-y: auto;
        }

        /* 自定义滚动条样式 - 简洁美观 */
        .main-content::-webkit-scrollbar {
            width: 6px;
        }

        .main-content::-webkit-scrollbar-track {
            background: transparent;
        }

        .main-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.2), rgba(30, 58, 108, 0.35));
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .main-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.35), rgba(30, 58, 108, 0.5));
        }

        /* Firefox滚动条样式 */
        .main-content {
            scrollbar-width: thin;
            scrollbar-color: rgba(30, 58, 108, 0.3) transparent;
        }

        .container {
            width: 100%;
            min-height: 100%;
            display: flex;
            flex-direction: column;
        }

        .feature-container {
            display: grid;
            grid-template-columns: repeat(6, 1fr) !important;
            grid-auto-flow: row dense;
            gap: 0.35rem;
            margin: 0.3rem 0;
            margin-bottom: 1rem;
            align-content: start;
        }

        .wechat-link {
            position: relative;
            display: inline-block;
        }
        .wechat-qr {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 300px;
            z-index: 9999;
            border: 1px solid #ddd;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            margin-bottom: 10px;
        }
        .wechat-link:hover .wechat-qr {
            display: block;
        }
        .donate-qr {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            margin-bottom: 10px;
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 0 10px rgba(0,0,0,0.12);
            border-radius: 8px;
            padding: 10px;
            gap: 10px;
            white-space: nowrap;
        }
        .wechat-link:hover .donate-qr {
            display: flex;
        }
        .donate-qr-img {
            width: 200px;
            height: 200px;
            object-fit: contain;
            background: #fff;
            border-radius: 4px;
        }
        .donate-anim {
            color: #e53e3e;
            animation: donatePulse 1.6s ease-in-out infinite;
        }
        @keyframes donatePulse {
            0%, 100% { color: #e53e3e; text-shadow: 0 0 3px rgba(229,62,62,.35); }
            50% { color: #f0b90b; text-shadow: 0 0 12px rgba(240,185,11,.75); }
        }
        p {
            margin-bottom :  0;
        }

        .header {
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            padding: 0.35rem 1.2%;
            box-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.02),
                0 1px 0 rgba(255, 255, 255, 0.6) inset;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
            gap: 1.2rem;
        }

        .header h1 i {
            font-size: 1.3em;
            background: linear-gradient(135deg, #1E3A6C, #1F7552, #C8161D);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header h1 {
            color: var(--gray-800);
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0;
            letter-spacing: 0.2px;
            white-space: nowrap;
            flex-shrink: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .header h1 i {
            font-size: 1.3em;
            background: linear-gradient(135deg, var(--rmb-10-main), var(--primary-900));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-center-content {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            flex: 0 1 auto;
            max-width: 420px;
            min-width: 280px;
            margin-right: auto;
            margin-left: 2.5rem;
        }

        .header-search-box {
            position: relative;
            flex: 0 1 auto;
            width: 320px;
            min-width: 260px;
        }

        #feature-search {
            width: 100%;
            padding: 0.5rem 4rem 0.5rem 1rem;
            border: 1px solid var(--gray-200);
            border-radius: var(--border-radius-md);
            font-size: 0.875rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
            color: var(--gray-800);
            transition: var(--transition-fast);
            box-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        #feature-search:focus {
            outline: none;
            border-color: var(--rmb-10-main);
            box-shadow: 
                0 0 0 4px rgba(30, 58, 108, 0.25),
                0 2px 8px rgba(30, 58, 108, 0.15),
                0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .header-search-box i.fa-search {
            position: absolute;
            right: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            display: none;
        }

        .search-clear-btn {
            position: absolute;
            right: 2.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            font-size: 0.85rem;
            padding: 0.25rem;
            display: none;
            z-index: 10;
            border-radius: 50%;
            transition: var(--transition-fast);
        }

        .search-clear-btn:hover {
            color: var(--gray-600);
            background: var(--gray-100);
        }

        .search-hint {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.65rem;
            color: var(--gray-400);
            background: var(--gray-100);
            padding: 0.15rem 0.5rem;
            border-radius: var(--border-radius-sm);
            user-select: none;
            font-weight: 500;
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-shrink: 0;
        }

        .user-info {
            color: var(--text-secondary);
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .user-info i {
            color: var(--rmb-10-main);
        }

        .auth-btn {
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, var(--rmb-10-main), #253b6b);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            transition: var(--transition-base);
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            box-shadow: 0 2px 6px rgba(30, 58, 108, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .auth-btn:hover {
            background: linear-gradient(135deg, #1a3562, #152d52);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(30, 58, 108, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            color: white;
        }

        .auth-btn.logout {
            background: linear-gradient(135deg, var(--rmb-10-main), #253b6b);
        }

        .auth-btn.logout:hover {
            background: linear-gradient(135deg, #1a3562, #152d52);
            box-shadow: 0 4px 12px rgba(30, 58, 108, 0.3);
        }

        .header-btn {
            border-radius: 15px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.25s ease;
            height: 34px;
            display: inline-flex;
            align-items: center;
            padding: 0 0.9rem;
        }

        .header-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
        }

        .user-profile-btn {
            text-decoration: none;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.9rem;
            border-radius: 20px;
            background: linear-gradient(135deg, var(--rmb-10-light), rgba(30, 58, 108, 0.08));
            border: 1px solid rgba(30, 58, 108, 0.15);
            transition: var(--transition-base);
            box-shadow: 0 2px 6px rgba(30, 58, 108, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            height: 34px;
        }

        .user-profile-btn:hover {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.1), rgba(30, 58, 108, 0.18));
            box-shadow: 0 4px 12px rgba(30, 58, 108, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
            transform: translateY(-2px);
            border-color: rgba(30, 58, 108, 0.3);
        }

        .user-profile-btn .avatar {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--rmb-10-main), #152d52);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.75rem;
            font-weight: bold;
            border: 2px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 4px rgba(30, 58, 108, 0.25);
            transition: var(--transition-base);
        }

        .user-profile-btn:hover .avatar {
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(30, 58, 108, 0.35);
        }

        .user-profile-btn .username {
            font-weight: 600;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .user-profile-btn .admin-badge {
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--rmb-10-main), #152d52);
            padding: 3px 10px;
            border-radius: 12px;
            margin-left: 4px;
            box-shadow: 0 2px 4px rgba(30, 58, 108, 0.3);
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 0.5rem;
            width: 100%;
        }

        .page-intro {
            text-align: center;
            margin-bottom: 1rem;
            padding: 1rem 0.5rem;
        }

        .page-intro h2 {
            font-size: 1.1rem;
            color: var(--text-color);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .page-intro p {
            color: var(--text-secondary);
            font-size: 0.85rem;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--border-radius-lg);
            padding: 0.6rem 0.6rem 0.45rem;
            text-align: center;
            transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s cubic-bezier(.34,1.56,.64,1), background .25s cubic-bezier(.34,1.56,.64,1), border-color .25s, opacity .22s ease, filter .22s;
            text-decoration: none;
            color: var(--text-color);
            box-shadow: 
                0 1px 3px rgba(0, 0, 0, 0.03),
                0 1px 0 rgba(255, 255, 255, 0.8) inset;
            border: 1px solid rgba(255, 255, 255, 0.6);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.2rem;
            position: relative;
            overflow: hidden;
            min-height: 120px;
            height: auto;
            width: 100%;
            cursor: pointer;
            /* 入场动画 stagger */
            opacity: 0;
            transform: translateY(8px);
            animation: cardFadeIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
            animation-delay: calc(var(--card-idx, 0) * 28ms);
        }

        /* 筛选隐藏态 — display:none 才能真正从 grid 移除，不占位 */
        .feature-card.hidden-by-filter {
            display: none !important;
        }
        @keyframes cardFadeIn{
            to{opacity:1;transform:translateY(0)}
        }

        .feature-card:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 14px 32px rgba(30, 58, 108, 0.12),
                0 4px 12px rgba(30, 58, 108, 0.08),
                0 0 0 1px rgba(30, 58, 108, 0.1) inset;
            border-color: rgba(30, 58, 108, 0.25);
            z-index: 50;
        }

        .feature-card.is-admin-tool {
            background: linear-gradient(145deg, #fff7f7 0%, #fff5f5 100%) !important;
            border: 3px solid var(--rmb-100-main) !important;
            box-shadow: 0 2px 8px rgba(200, 22, 29, 0.12), 0 4px 16px rgba(200, 22, 29, 0.08);
            position: relative;
            overflow: hidden;
            transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s cubic-bezier(.34,1.56,.64,1), background .25s cubic-bezier(.34,1.56,.64,1);
            height: 132px;
        }

        .feature-card.is-admin-tool::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(200, 22, 29, 0.015) 0%, rgba(200, 22, 29, 0.04) 100%);
            pointer-events: none;
        }

        .feature-card.is-admin-tool.authorized {
            background: linear-gradient(145deg, #fff7f7 0%, #fff5f5 100%) !important;
        }

        .feature-card.is-admin-tool:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 14px rgba(200, 22, 29, 0.2), 0 10px 28px rgba(200, 22, 29, 0.15);
            border: 3px solid var(--rmb-100-main) !important;
            background: linear-gradient(145deg, #fff0f0 0%, #fff5f5 100%) !important;
        }

        .feature-card.is-admin-tool .icon {
            color: var(--rmb-100-main);
            background: linear-gradient(135deg, rgba(200, 22, 29, 0.1), rgba(200, 22, 29, 0.2));
            border: 1px solid rgba(200, 22, 29, 0.25);
            transition: var(--transition-base);
        }

        .feature-card.is-admin-tool:hover .icon {
            background: linear-gradient(135deg, rgba(200, 22, 29, 0.15), rgba(200, 22, 29, 0.28));
            transform: scale(1.1);
            color: var(--rmb-100-main);
            border-color: var(--rmb-100-main);
            box-shadow: 0 2px 8px rgba(200, 22, 29, 0.2);
        }

        .feature-card.is-admin-tool h2 {
            color: var(--rmb-100-main);
            font-weight: 700;
        }

        .feature-card.is-admin-tool:hover h2 {
            color: var(--rmb-100-main);
            transform: scale(1.02);
        }

        .feature-card .title-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 6px 4px 2px;
            width: 100%;
        }

        .feature-card .icon {
            font-size: 1.3rem;
            color: var(--rmb-10-main);
            transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s cubic-bezier(.34,1.56,.64,1), border-color .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s cubic-bezier(.34,1.56,.64,1);
            z-index: 1;
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(30, 58, 108, 0.06);
            border-radius: var(--border-radius-md);
            border: 1px solid rgba(30, 58, 108, 0.15);
            box-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .feature-card:hover .icon {
            transform: scale(1.1);
            background: rgba(30, 58, 108, 0.1);
            border-color: rgba(30, 58, 108, 0.25);
            box-shadow: 
                0 3px 8px rgba(30, 58, 108, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        /* 第五套人民币配色 - 图标背景色 */


        .feature-card h2 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--gray-800);
            margin: 0;
            transition: var(--transition-normal);
            z-index: 1;
            text-align: center;
            line-height: 1.3;
            letter-spacing: -0.1px;
        }

        .feature-card:hover h2 {
            color: var(--primary-700);
        }

        .feature-desc {
            color: var(--gray-500);
            font-size: 0.78rem;
            text-align: left;
            z-index: 1;
            line-height: 1.35;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
            padding: 0 2px 16px;
            position: relative;
            cursor: help;
            opacity: 0.85;
            width: 100%;
        }

        .feature-card:hover .feature-desc {
            opacity: 1;
        }

        @media (max-width: 1600px) {
            .feature-container { grid-template-columns: repeat(6, 1fr) !important; }
        }
        @media (max-width: 1400px) {
            .feature-container { grid-template-columns: repeat(6, 1fr) !important; }
        }
        @media (max-width: 1200px) {
            .feature-container { grid-template-columns: repeat(5, 1fr) !important; }
        }
        @media (max-width: 992px) {
            .feature-container { grid-template-columns: repeat(4, 1fr) !important; }
        }
        @media (max-width: 768px) {
            .feature-container { grid-template-columns: repeat(3, 1fr) !important; }
        }
        @media (max-width: 576px) {
            .feature-container { grid-template-columns: repeat(2, 1fr) !important; }
        }
        @media (max-width: 320px) {
            .feature-container { grid-template-columns: 1fr !important; }
        }

        .feature-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-light);
            transform: scale(0);
            transition: var(--transition-base);
            z-index: 0;
        }

        .hot-tag {
            position: absolute;
            top: 6px;
            right: 6px;
            background: linear-gradient(135deg, #ff6b6b, #ee0979);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: bold;
            z-index: 20;
            box-shadow: 0 2px 6px rgba(238, 9, 121, 0.35);
            letter-spacing: 0.5px;
            backdrop-filter: blur(4px);
            animation: pulse 2.4s infinite;
        }
        
        .pinned-tag {
            top: 6px;
            right: 6px;
            background: linear-gradient(135deg, #f6d365, #fda085);
            box-shadow: 0 2px 6px rgba(253, 160, 133, 0.35);
            animation: none;
            color: #6e3410;
        }
        
        .hot-tag.with-pinned {
            top: 22px;
        }
        
        .hot-tag i {
            font-size: 8px;
        }
        
        .skill-tag {
            position: absolute;
            top: 6px;
            right: 6px;
            background: linear-gradient(135deg, #8B5CF6, #7C3AED);
            color: white;
            padding: 2px 7px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: bold;
            z-index: 20;
            box-shadow: 0 1px 3px rgba(139, 92, 246, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 2px;
            cursor: pointer;
        }
        
        .admin-tag {
            position: absolute;
            top: 42px;
            right: 6px;
            background: linear-gradient(135deg, #EF4444, #DC2626);
            color: white;
            padding: 2px 7px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: bold;
            z-index: 20;
            box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
        }

        /* 权限/访问级别标签 — 左下角 */
        .perm-tag {
            position: absolute;
            bottom: 6px;
            left: 6px;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            z-index: 20;
            pointer-events: none;
            line-height: 1.4;
            letter-spacing: 0.3px;
        }
        .perm-public {
            background: #DCFCE7;
            color: #15803D;
            box-shadow: none;
            border: 1px solid #BBF7D0;
        }
        .perm-user {
            background: #DBEAFE;
            color: #1D4ED8;
            box-shadow: none;
            border: 1px solid #BFDBFE;
        }
        .perm-auth {
            background: #FCE7F3;
            color: #BE185D;
            box-shadow: none;
            border: 1px solid #FBCFE8;
        }

        .perm-granted {
            background: #DCFCE7;
            color: #15803D;
            box-shadow: none;
            border: 1px solid #BBF7D0;
        }

        .card-footer {
            position: absolute;
            bottom: 4px;
            left: 6px;
            right: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
        }

        .visit-count {
            display: flex;
            align-items: center;
            gap: 3px;
            background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
            color: white;
            padding: 2px 6px;
            border-radius: var(--border-radius-sm);
            font-size: 9px;
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        }

        .visit-count i {
            font-size: 8px;
            opacity: 0.9;
        }

        .like-button {
            display: flex;
            align-items: center;
            gap: 2px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
            color: var(--gray-500);
            padding: 2px 5px;
            border-radius: var(--border-radius-sm);
            font-size: 9px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-fast);
            border: 1px solid var(--gray-200);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .like-button:hover {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.12));
            color: var(--error-500);
            border-color: rgba(239, 68, 68, 0.3);
            transform: translateY(-1px);
        }

        .like-button.liked {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.18));
            color: var(--error-500);
            border-color: rgba(239, 68, 68, 0.4);
        }

        .like-button.liked:hover {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.25));
        }

        .like-button i {
            font-size: 11px;
            transition: transform 0.2s ease;
        }

        .like-button:hover i {
            transform: scale(1.2);
        }

        .like-button:active i {
            transform: scale(0.9);
        }

        .comment-button {
            display: flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
            color: var(--rmb-10-main);
            padding: 3px 8px;
            border-radius: var(--border-radius-sm);
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-fast);
            border: 1px solid var(--rmb-10-light);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .comment-button:hover {
            background: linear-gradient(135deg, rgba(30, 58, 108, 0.08), rgba(30, 58, 108, 0.12));
            color: var(--primary-800);
            border-color: rgba(30, 58, 108, 0.3);
            transform: translateY(-1px);
        }

        .comment-button i {
            font-size: 11px;
            transition: transform 0.2s ease;
        }

        .comment-button:hover i {
            transform: scale(1.2);
        }

        .hot-feature {
            border: 3px solid #FF4D4F;
            box-shadow: 0 4px 16px rgba(255, 77, 79, 0.35);
        }

        .hot-feature.authorized {
            border: 3px solid #4CAF50;
            box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
        }

        .hot-tag {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: #FF4D4F;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
            z-index: 10;
            box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
        }

        .admin-tag {
            position: absolute;
            top: 3px;
            right: 3px;
            background: linear-gradient(135deg, var(--rmb-100-main), #A01418);
            color: white;
            padding: 2px 10px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            z-index: 10;
            box-shadow: 0 2px 6px rgba(200, 22, 29, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.25);
            letter-spacing: 0.3px;
        }

        .hot-feature::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #FF4D4F, #FF7875);
            border-radius: 8px 8px 0 0;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .feature-card:hover::before {
            transform: scale(1);
        }

        .permission-badge {
            position: absolute;
            top: 6px;
            left: 6px;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 9px;
            font-weight: 600;
            z-index: 20;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
            letter-spacing: 0.3px;
        }

        .permission-badge.red {
            background: linear-gradient(135deg, #f44336, #d32f2f);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .permission-badge.public {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .permission-badge.user {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .permission-badge.none {
            background: linear-gradient(135deg, #9ca3af, #6b7280);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .permission-badge.none.locked {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .permission-badge.granted {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: white;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .feature-card.authorized {
            background-color: #e8f5e9;
            border: 2px solid #4CAF50;
        }

        .feature-card.unauthorized {
            background-color: #ffebee;
            border: 1px solid #f44336;
        }

        .footer {
            text-align: center;
            padding: 0.4rem 3%;
            color: var(--text-secondary);
            font-size: 0.78rem;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
            flex-shrink: 0;
            z-index: 100;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-links {
            margin-bottom: 0.2rem;
            display: flex;
            justify-content: center;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: var(--transition-base);
            font-size: 0.75rem;
        }

        .footer-links a:hover {
            color: var(--rmb-10-main);
        }

        .footer-info {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.3rem 1rem;
        }

        .footer-info span {
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 0.5rem;
                padding: 0.7rem 3%;
                text-align: center;
            }

            .header-search-box {
                width: 100%;
                max-width: 100%;
                order: 3;
            }

            .user-actions {
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
            }

            .header h1 {
                font-size: 1.2rem;
            }
        }
        .flash-message {
            position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999;
            padding: 1rem 1.5rem; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            min-width: 300px; max-width: 500px; text-align: center; font-weight: 500;
            animation: flashFadeIn 0.3s ease-out;
        }
        .flash-success { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); color: #2e7d32; border-left: 4px solid #4CAF50; }
        .flash-danger, .flash-warning { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); color: #c62828; border-left: 4px solid #f44336; }
        .flash-info { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); color: #1565c0; border-left: 4px solid #2196F3; }
        @keyframes flashFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
    
/* ===== fix: 原生 select 黑色方块 ===== */
select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;padding-right:24px}
select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563EB' d='M6 8L1 3h10z'/%3E%3C/svg%3E")}
        /* ==================== 暗黑模式 ==================== */
        @media (prefers-color-scheme: dark) {
            :root {
                --rmb-100-main: #e74c3c;
                --rmb-50-main: #2ecc71;
                --rmb-20-main: #d4a574;
                --rmb-10-main: #5dade2;
                --rmb-5-main: #a569bd;
                --rmb-1-main: #82e0aa;
                --primary-color: var(--rmb-10-main);
                --bg-color: #0f172a;
                --card-bg: rgba(30, 41, 59, 0.85);
                --card-bg-hover: rgba(51, 65, 85, 0.95);
                --text-color: #e2e8f0;
                --text-secondary: #94a3b8;
                --text-muted: #64748b;
                --gray-50: #1e293b;
                --gray-100: #334155;
                --gray-300: #475569;
                --gray-500: #94a3b8;
                --gray-800: #e2e8f0;
                --gray-900: #f1f5f9;
            }
            body {
                background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
                color: var(--text-color);
            }
            .header {
                background: rgba(15, 23, 42, 0.85);
                border-bottom: 1px solid rgba(148, 163, 184, 0.15);
            }
            .sidebar {
                background: rgba(15, 23, 42, 0.75);
                border-right: 1px solid rgba(148, 163, 184, 0.1);
            }
            .sidebar .category-title, .sidebar .sb-count {
                color: var(--text-secondary);
            }
            .feature-card {
                background: rgba(30, 41, 59, 0.7) !important;
                border: 1px solid rgba(148, 163, 184, 0.15) !important;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
            }
            .feature-card:hover {
                background: rgba(51, 65, 85, 0.9) !important;
                border-color: rgba(93, 173, 226, 0.4) !important;
            }
            .feature-card h2 { color: #f1f5f9 !important; }
            .feature-card .feature-desc { color: #94a3b8 !important; }
            .category-link { color: var(--text-secondary); }
            .category-link:hover, .category-link.active {
                background-color: rgba(93, 173, 226, 0.15);
                color: #5dade2;
            }
            .sub-category-link { color: #94a3b8; }
            .sub-category-link:hover, .sub-category-link.active { color: #5dade2; background: rgba(93, 173, 226, 0.1); }
            .footer { background: rgba(15, 23, 42, 0.9); color: #64748b; }
        }
