:root {
    --bg-primary: #f1f5f9; 
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[v-cloak] { opacity: 0 !important; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased; /* 让字体渲染更精致 */
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
    ⚡ 正在加载组件（包含全屏 Loader、动态骨架屏 与 呼吸文字）
   ========================================================================== */

/* 1. 全屏加载遮罩层 */
.first-load-shimmer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(241, 245, 249, 0.96); 
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; /* 修复隐藏时的事件穿透风险 */
    opacity: 1;
    visibility: visible;
}

.first-load-shimmer-overlay.fade-out-complete {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 2. 核心旋转能量圈 */
.quantum-spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid rgba(0, 120, 212, 0.15); /* 统一改用 #0078D4 调和透明度 */
    border-top-color: #0078D4; /* 统一改用 #0078D4 */
    border-radius: 50%;
    animation: quantum-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 3. 加载文字 */
.shimmer-loading-text {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 16px 0 0 0; /* 规范 margin 简写 */
    letter-spacing: 0.5px;
    animation: pulse-text 1.5s infinite ease-in-out;
}

@keyframes quantum-spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse-text { 
    0%, 100% { opacity: 0.6; } 
    50% { opacity: 1; } 
}

/* 4. 骨架屏流光闪烁矩阵 */
.skeleton-matrix-item {
    pointer-events: none;
    background: #ffffff !important;
}

.category-card-title-skeleton,
.sk-matrix-icon,
.sk-matrix-line {
    position: relative;
    overflow: hidden;
    background: #f1f5f9 !important;
}

.category-card-title-skeleton::after,
.sk-matrix-icon::after,
.sk-matrix-line::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s ease-in-out infinite;
    content: '';
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.category-card-title-skeleton { width: 120px; height: 20px; border-radius: 4px; margin-bottom: 12px; }
.sk-matrix-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 8px; }
.sk-matrix-line { width: 60%; height: 10px; border-radius: 4px; margin: 0 auto; }


/* ==========================================================================
    布局、导航栏与卡片主体
   ========================================================================== */

.nav-brand-text-shimmer {
    font-size: 1.15rem; 
    font-weight: 700;
    background: linear-gradient(
        110deg, 
        #0f172a 0%, 
        #0f172a 45%, 
        #ffffff 50%, 
        #0f172a 55%, 
        #0f172a 100%
    );
    background-size: 300% 100%;
    background-position: 100% 0;
    background-clip: text; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    animation: textShine 5s ease-in-out infinite;
}

@keyframes textShine {
    0% { background-position: 100% 0; }
    18% { background-position: 0% 0; }
    100% { background-position: 0% 0; }
}

.nav-brand-logo-wrap { width: 32px; height: 32px; flex-shrink: 0; }
.nav-brand-logo { height: 100%; width: 100%; object-fit: contain; border-radius: 6px; }

/* 升级：加入了高级感毛玻璃半透明效果 */
.navbar-wrapper { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.navbar { max-width: 1000px; width: 92%; height: 60px; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; -webkit-tap-highlight-color: transparent !important; transition: opacity 0.2s ease; }
.logo:hover { opacity: 0.8; }
.logo:focus, .logo:active { outline: none !important; background-color: transparent !important; box-shadow: none !important; }
.nav-links { display: flex; align-items: center; gap: 12px; }

.container { max-width: 1000px; width: 92%; margin: 0 auto; padding: 24px 0; }

/* 升级：主搜索框增加了丝滑的聚焦呼吸发光效果 */
.main-search-card { 
    background: #ffffff; 
    border: 1px solid var(--border-color); 
    border-radius: 50px; 
    padding: 10px 22px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 24px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-search-card:focus-within {
    border-color: #0078D4; /* 统一改用 #0078D4 */
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.04); /* 特调 #0078D4 呼吸阴影 */
}
.main-search-input { flex: 1; border: none; outline: none; font-size: 0.95rem; background: transparent; color: var(--text-primary); }
.main-search-input::placeholder { color: #94a3b8; }
.main-search-clear { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.main-search-clear:hover { color: var(--text-primary); }

.category-horizontal-bar { width: 100%; margin-bottom: 20px; }
.category-scroll-container { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.category-scroll-container::-webkit-scrollbar { display: none; }

/* 升级：优化分类按钮交互 */
.category-btn { 
    padding: 7px 16px; 
    border: 1px solid var(--border-color); 
    background: #ffffff; 
    border-radius: 30px; 
    font-size: 0.88rem; 
    font-weight: 500;
    color: #475569;
    cursor: pointer; 
    white-space: nowrap; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-btn:hover:not(.active) { background: #f8fafc; border-color: #cbd5e1; color: var(--text-primary); }
.category-btn:active { transform: scale(0.97); }
.category-btn.active { background: #0078D4; color: white; border-color: #0078D4; box-shadow: 0 4px 10px rgba(0, 120, 212, 0.2); } /* 统一改用 #0078D4 */

.mega-stream-wrapper { display: flex; flex-direction: column; gap: 24px; }

.mega-links-container-card { 
    background: #ffffff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.02), 0 4px 12px -2px rgba(15, 23, 42, 0.01); 
}

/* 升级：去掉廉价的虚线，改用大厂常用的轻量实线，更显沉稳 */
.category-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.category-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.category-card-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.grid-layout-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }

.matrix-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; border-radius: var(--radius-md); text-decoration: none; background: transparent; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); text-align: center; cursor: pointer; }
.matrix-item:hover { background: #f8fafc; transform: translateY(-2px); }
.matrix-icon-avatar { width: 48px; height: 48px; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 10px; transition: all 0.2s; }
.matrix-item:hover .matrix-icon-avatar { background: #e2e8f0; transform: scale(1.02); }
.matrix-item-title { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
    ⚡ 基础通用按钮组与全局交互（增强反冲手感）
   ========================================================================== */
.btn { 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 500; 
    cursor: pointer; 
    font-size: 0.85rem; 
    border: none; 
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover { filter: brightness(0.96); transform: translateY(-0.5px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary-global { background-color: #0078D4; color: white; box-shadow: 0 4px 10px rgba(0, 120, 212, 0.15); } /* 统一改用 #0078D4 */
.btn-primary-global:hover { box-shadow: 0 6px 14px rgba(0, 120, 212, 0.25); }

.btn-sub { background-color: #f1f5f9; color: #475569; border: 1px solid var(--border-color); }
.btn-sub:hover { background-color: #e2e8f0; color: var(--text-primary); }

.btn-edit-action { background: #f0f6fe; color: #0078D4; border: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 0.78rem; font-weight: 500; transition: all 0.2s; } /* 统一改用 #0078D4 调和底色 */
.btn-edit-action:hover { background: #0078D4; color: white; }
.btn-danger-action { background: #fef2f2; color: #ef4444; border: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 0.78rem; font-weight: 500; transition: all 0.2s; }
.btn-danger-action:hover { background: #ef4444; color: white; }

/* 列表卡片内部操作按钮组（预览 & 下载）的高级特调 UI */
.btn-action-preview-card,
.btn-action-download-card {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    font-weight: 500;
    color: #005a9e !important;           /* 配合 #0078D4 的高质感深蓝（微软经典深蓝） */
    background: #f0f6fe !important;       /* 柔和轻盈的淡蓝底色 */
    border: 1px solid #cfe4fa !important; /* 轻柔微边框 */
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 120, 212, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-preview-card:hover,
.btn-action-download-card:hover {
    background: #0078D4 !important;       /* 实色背景激活 */
    color: #ffffff !important;            /* 文字反白 */
    border-color: #0078D4 !important;
    box-shadow: 0 4px 10px rgba(0, 120, 212, 0.16);
    transform: translateY(-1px);          /* 微微上浮 */
}

.btn-action-preview-card:active,
.btn-action-download-card:active {
    transform: translateY(0) scale(0.96);
}

/* ==========================================================================
    ✨ 弹窗与确认框核心样式区（赋予普通弹窗大厂顺滑动画）
   ========================================================================== */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(15, 23, 42, 0.2); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    opacity: 0;
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal { 
    background: white; 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.02); 
    max-width: 500px; 
    width: 90%; 
    box-sizing: border-box; 
    transform: scale(0.95) translateY(6px);
    animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }

.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.form-control { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; font-size: 0.9rem; transition: all 0.2s; color: var(--text-primary); }
.form-control:focus { border-color: #0078D4; box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1); } /* 统一改用 #0078D4 */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; padding-bottom: 4px; overflow-x: auto; }

/* 💡 核心改良：Tab按钮采用 inline-flex，强迫图标和文字在轴心绝对居中对齐，告别错位 */
.tab-btn { 
    padding: 6px 12px; 
    background: none; 
    border: none; 
    font-size: 0.88rem; 
    font-weight: 500; 
    cursor: pointer; 
    color: var(--text-muted); 
    white-space: nowrap; 
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: #0078D4; font-weight: 600; border-bottom: 2px solid #0078D4; } /* 统一改用 #0078D4 */

.hamburger-container { position: relative; display: inline-block; }
.hamburger-menu { position: absolute; right: 0; top: 110%; background: white; border: 1px solid var(--border-color); border-radius: 8px; padding: 4px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); display: flex; flex-direction: column; min-width: 130px; z-index: 1050; transform-origin: top right; animation: modalScaleIn 0.15s ease-out forwards; }
.hamburger-menu button { padding: 8px 12px; background: none; border: none; font-size: 0.85rem; font-weight: 500; text-align: left; cursor: pointer; color: #475569; transition: all 0.15s; }
.hamburger-menu button:hover { background-color: #f1f5f9; color: var(--text-primary); border-radius: 6px; }

/* 全局轻量通知（Toast）区域 */
.toast-container { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 999999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: 90%; max-width: 400px; }
.toast { background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: white; padding: 10px 22px; border-radius: 50px; font-size: 0.88rem; font-weight: 500; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15); text-align: center; pointer-events: auto; animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes toast-in { 0% { opacity: 0; transform: translateY(-15px) scale(0.93); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.footer { text-align: center; padding: 40px 0; font-size: 0.8rem; color: var(--text-muted); margin-top: 40px; border-top: 1px solid #e2e8f0; }

/* 流媒体高级预览弹窗特调 UI 样式 */
.preview-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.preview-modal-box { background: #ffffff; border-radius: var(--radius-lg); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.04); width: 90%; max-width: 760px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.94) translateY(8px); animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards; }
.preview-modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; background: #f8fafc; }
.preview-modal-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 82%; }
.preview-modal-close { background: #e2e8f0; border: none; width: 28px; height: 28px; border-radius: 50%; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.2s ease; }
.preview-modal-close:hover { background: #cbd5e1; color: var(--text-primary); transform: rotate(90deg); }
.preview-modal-body { padding: 20px; overflow-y: auto; display: flex; align-items: center; justify-content: center; background: #fafafa; min-height: 180px; }
.preview-img-wrapper img { max-width: 100%; max-height: 55vh; border-radius: var(--radius-md); box-shadow: 0 8px 20px rgba(0,0,0,0.06); object-fit: contain; }
.preview-video-wrapper, .preview-audio-wrapper { width: 100%; display: flex; justify-content: center; }
.preview-video-wrapper video { width: 100%; max-height: 55vh; border-radius: var(--radius-md); background: #000000; box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.preview-audio-wrapper audio { width: 100%; max-width: 480px; }
.preview-text-wrapper { width: 100%; background: #ffffff; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); text-align: center; }

@keyframes modalFadeIn { to { opacity: 1; } }
@keyframes modalScaleIn { to { transform: scale(1) translateY(0); } }

/* 纯数据驱动自定义确认框样式 */
.custom-confirm-mask { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 999999; opacity: 0; animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.custom-confirm-box { background: #ffffff; border-radius: var(--radius-md); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); width: 90%; max-width: 380px; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.92) translateY(4px); animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards; }
.confirm-header { padding: 20px 20px 8px 20px; }
.confirm-header h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.confirm-body { padding: 0 20px 20px 20px; }
.confirm-body p { margin: 0; font-size: 0.88rem; color: #475569; line-height: 1.5; }
.confirm-footer { padding: 14px 20px; background: #f8fafc; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }
.confirm-footer button { padding: 7px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: none; transition: background 0.15s ease; }
.confirm-footer .btn-cancel { background: #ffffff; color: #475569; border: 1px solid var(--border-color); }
.confirm-footer .btn-cancel:hover { background: #f1f5f9; }
.confirm-footer .btn-danger { background: #ef4444; color: #ffffff; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15); }
.confirm-footer .btn-danger:hover { background: #dc2626; }

/* ==========================================================================
    📱 移动端自适应加固区（✨ 已深度重构优化预览尺寸）
   ========================================================================== */
@media (max-width: 768px) {
    .modal-overlay { padding: 12px; box-sizing: border-box; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
    .modal { width: 100% !important; max-width: 100% !important; padding: 18px 20px 22px 20px !important; border-radius: 14px !important; }
    
    /* ⚡ 手机端高级预览弹窗尺寸精准优化：加大加宽，视觉表现更饱满 */
    .preview-modal-box { 
        width: 92% !important;        /* 增大横向占比，充分利用手机屏幕 */
        max-width: 540px !important;  /* 提高宽度硬性上限，兼容大屏手机 */
        max-height: 80vh !important;  /* 提高可用高度上限，告别矮胖呆板 */
        border-radius: 16px !important; 
    }
    .preview-modal-body { 
        padding: 16px !important;     /* 适度宽敞的内边距 */
        min-height: 140px !important; 
    }
    .preview-img-wrapper img, .preview-video-wrapper video { 
        max-height: 50vh !important;  /* 预览内容视口高度由 35% 提高到 50%，看图看视频更爽朗 */
    }
    .preview-text-wrapper {
        font-size: 0.85rem !important;
        padding: 14px !important;
    }

    .custom-confirm-box { width: 85% !important; border-radius: 14px !important; }
    .tabs { display: flex !important; overflow-x: auto !important; white-space: nowrap !important; gap: 6px !important; padding-bottom: 8px !important; margin-bottom: 16px !important; -webkit-overflow-scrolling: touch; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 6px 12px !important; font-size: 0.82rem !important; flex-shrink: 0 !important; }
    .modal table { display: block !important; overflow-x: auto !important; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .modal th, .modal td { padding: 8px 6px !important; font-size: 0.8rem !important; }
    .hamburger-menu { right: 0 !important; margin-top: 4px !important; }
}

@media (max-width: 600px) {
    .container { padding: 16px 0; }
    .mega-links-container-card { padding: 20px 14px; border-radius: var(--radius-md); }
    .category-card-header { margin-bottom: 16px; padding-bottom: 10px; }
    .category-card-title { font-size: 0.98rem; }
    .grid-layout-matrix { grid-template-columns: repeat(4, 1fr) !important; gap: 14px 8px; }
    .matrix-item { padding: 10px 4px; }
    .matrix-icon-avatar { width: 44px; height: 44px; font-size: 1.35rem; margin-bottom: 6px; }
    .matrix-item-title { font-size: 0.78rem; }
    .sk-matrix-icon { width: 44px; height: 44px; margin-bottom: 6px; }
}

/* ==========================================================================
    🎨 仅针对顶部分类与列表引用的阿里云图标（Iconfont）进行显色（纯净追加）
   ========================================================================== */

/* 图标过渡动效 */
.category-btn .iconfont, .matrix-item .iconfont, .mega-links-container-card .iconfont {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

/* 全部资源（位置/地球图标）- 商务蓝（同步为全新的 #0078D4 主题色） */
.icon-kkpigweizhi { color: #0078D4 !important; } 
/* 图片 / 相册 - 活力橙 */
.icon-kkpigtupian { color: #f97316 !important; }
/* 音乐 / 音频 - 调性紫 */
.icon-kkpigyinle { color: #a855f7 !important; }
/* 视频 / 电影 - 珊瑚红 */
.icon-kkpigshipin { color: #f43f5e !important; }
/* 办公 / 文档 - 经典天蓝 */
.icon-kkpigbangong { color: #0284c7 !important; }
/* 压缩包 / 打包 - 琥珀黄 */
.icon-kkpigyasuobao { color: #d97706 !important; }
/* 软件 / 应用 - 翡翠绿 */
.icon-kkpigyingyongchangjing { color: #10b981 !important; }

/* 触控反馈：当鼠标悬停或分类按钮激活时图标微放大 */
.category-btn:hover .iconfont,
.category-btn.active .iconfont,
.matrix-item:hover .iconfont {
    transform: scale(1.12);
}

/* ==========================================================================
    🎨 阿里云图标（Iconfont）全局通用排版与间距特调（✨ 完美修复字图标挤压）
   ========================================================================== */

.iconfont {
    font-family: "iconfont" !important;
    font-size: 1.1rem; 
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 核心修复：改用 inline-flex 并精准居中，彻底解决图标与文字上下不对齐的顽疾 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    
    /* 基础动效统一过渡 */
    transition: color 0.2s ease, transform 0.2s ease;
}

/* 🔥 通用超级间距控制 */
.iconfont + * {
    margin-left: 0.35rem !important;
}

/* 反向安全网 */
* + .iconfont {
    margin-left: 0.35rem !important;
}

/* ── 触控交互反馈 ── */
.category-btn:hover .iconfont,
.category-btn.active .iconfont,
.matrix-item:hover .iconfont,
.btn:hover .iconfont {
    transform: scale(1.1); /* 悬停时图标轻微放大，手感更丝滑 */
}