/* NanShare 主样式文件 */

/* 全局主题变量 */
:root {
    color-scheme: dark;
    --v-theme-background: 17,24,39;
    --v-theme-surface: 22,29,44;
    --v-theme-primary: 61,111,213;
    --v-theme-secondary: 138,141,147;
    --v-theme-error: 255,76,81;
    --v-theme-info: 22,177,255;
    --v-theme-success: 86,202,0;
    --v-theme-warning: 255,180,0;
    --v-theme-side-bar: 17,24,39;
    --v-theme-side-bar-hover: 48,53,66;
    --v-theme-navitem: 25,32,47;
    --v-theme-card-bg: 23,29,43;
    --v-theme-config-card: 37,43,58;
    --v-theme-on-background: 231,227,252;
    --v-theme-on-surface: 231,227,252;
}

/* 应用容器 */
.v-application {
    background: rgb(var(--v-theme-background)) !important;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(var(--v-theme-background));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: loadingFadeOut 0.5s ease-out 0.3s forwards;
}

@keyframes loadingFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(61,111,213,0.2);
    border-top: 5px solid rgb(61,111,213);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(139,92,246,0.3);
    border-top: 3px solid rgb(139,92,246);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

/* 侧边栏样式 */
.magic-sidebar {
    background: rgb(var(--v-theme-side-bar)) !important;
    border-right: 1px solid rgba(231,227,252,0.12);
    position: relative;
    overflow: hidden;
}

/* 侧边栏背景光效 */
.magic-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(61,111,213,0.05) 0%, transparent 70%);
    animation: sidebarGlow 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sidebarGlow {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(10%, 10%);
        opacity: 0.6;
    }
}

.magic-sidebar .logo-wrapper {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(231,227,252,0.12);
}

.magic-sidebar .logo-image {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.magic-sidebar .logo-image:hover {
    transform: scale(1.02);
    box-shadow: none;
}

/* 菜单分类 */
.menu-category {
    margin: 16px 0;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.category-line {
    flex: 1;
    height: 1px;
    background: rgba(231,227,252,0.12);
}

.category-title {
    padding: 0 12px;
    font-size: 12px;
    color: rgba(231,227,252,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 菜单项 */
.menu-item {
    position: relative;
    margin: 4px 8px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
}

.item-icon {
    margin-right: 12px;
    font-size: 28px !important;
    color: rgba(231,227,252,0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(231,227,252,0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover {
    background: rgb(var(--v-theme-side-bar-hover));
    transform: translateX(4px);
}

.menu-item:hover .item-icon {
    transform: scale(1.15);
    color: rgba(231,227,252,0.9);
}

.menu-item.active {
    background: rgb(var(--v-theme-navitem));
}

.menu-item.active .item-icon {
    color: rgb(61,111,213);
    transform: scale(1.15);
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

.menu-item.active .item-title {
    color: rgb(231,227,252);
    font-weight: 600;
}

/* 悬浮效果 */
.hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(61,111,213,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-item:hover .hover-effect {
    opacity: 1;
}

/* 顶部应用栏 */
.fixed-header {
    backdrop-filter: blur(10px) !important;
    background-color: rgba(var(--v-theme-background), 0.7) !important;
    border-bottom: 1px solid rgba(231,227,252,0.12);
}

/* PWA 安全区域适配 - 避免顶部被状态栏遮挡 */
.safe-area-top {
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
}

/* 强制安全区域 */
.v-application {
    padding-top: env(safe-area-inset-top, 0px);
}

.v-app-bar.fixed-header {
    top: 0 !important;
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
}

.v-navigation-drawer {
    padding-top: env(safe-area-inset-top, 0px) !important;
}

@media screen and (display-mode: standalone) {
    /* PWA 独立模式 */
    .v-app-bar.fixed-header {
        padding-top: max(20px, env(safe-area-inset-top, 20px)) !important;
    }
    
    .v-navigation-drawer {
        padding-top: max(20px, env(safe-area-inset-top, 20px)) !important;
    }
}

/* 主内容区 */
.app-container {
    background: rgb(var(--v-theme-background));
    min-height: calc(100vh - 64px);
}

/* 统计卡片 */
.stat-cards {
    margin-bottom: 24px;
}

.stat-card {
    background: rgb(var(--v-theme-config-card)) !important;
    border: 1px solid rgba(231,227,252,0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 卡片光效 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--v-theme-on-surface),0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-color: rgba(61,111,213,0.3);
}

.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(var(--v-theme-config-card), 0.8) !important;
}

/* 主卡片 */
.main-card {
    background: rgb(var(--v-theme-config-card)) !important;
    border: 1px solid rgba(231,227,252,0.12);
    border-radius: 16px;
    height: 100%;
}

.title-bar {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(231,227,252,0.12);
    font-size: 18px;
    font-weight: 600;
    color: rgb(var(--v-theme-on-surface));
}

/* 媒体统计 */
.media-stats .v-card-text {
    padding: 24px;
}

/* 状态卡片 */
.status-card .v-list-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(231,227,252,0.06);
}

.status-card .v-list-item:last-child {
    border-bottom: none;
}

/* 日志样式 */
.log-container {
    background: rgba(0,0,0,0.95);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    max-height: 500px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 8px;
    padding: 4px 0;
}

.log-info { color: #00aaff; }
.log-warn { color: #ffaa00; }
.log-error { color: #ff5555; }
.log-success { color: #00ff00; }

/* 响应式设计 */
@media (max-width: 1200px) {
    /* 中等屏幕：显示汉堡菜单，侧边栏可收起 */
    .v-app-bar .v-btn[aria-label="menu"] {
        display: flex !important;
    }
}

@media (min-width: 1201px) {
    /* 宽屏：隐藏汉堡菜单，侧边栏常驻 */
    .v-app-bar .v-btn[aria-label="menu"] {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .stat-cards .v-col {
        margin-bottom: 16px;
    }
    
    .main-card {
        margin-bottom: 16px;
    }
    
    .title-bar {
        padding: 16px 20px 12px;
        font-size: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(var(--v-theme-scrollbar), 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--v-theme-scrollbar), 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-theme-scrollbar), 0.5);
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-enter-active, .slide-leave-active {
    transition: transform 0.3s ease;
}

.slide-enter-from {
    transform: translateX(-100%);
}

.slide-leave-to {
    transform: translateX(100%);
}

/* 卡片悬浮效果 */
.card-hover-no-margin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* 页面内容淡入动画 */
.app-container {
    animation: pageContentFadeIn 0.5s ease-out;
}

@keyframes pageContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片交错淡入动画 */
.stat-card,
.main-card,
.config-card {
    animation: cardFadeIn 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

.main-card:nth-child(1) { animation-delay: 0.3s; }
.main-card:nth-child(2) { animation-delay: 0.35s; }

.config-card:nth-child(1) { animation-delay: 0.1s; }
.config-card:nth-child(2) { animation-delay: 0.15s; }
.config-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 侧边栏菜单项淡入动画 */
.menu-item {
    animation: menuItemSlideIn 0.4s ease-out backwards;
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }
.menu-item:nth-child(7) { animation-delay: 0.35s; }
.menu-item:nth-child(8) { animation-delay: 0.4s; }
.menu-item:nth-child(9) { animation-delay: 0.45s; }
.menu-item:nth-child(10) { animation-delay: 0.5s; }
.menu-item:nth-child(11) { animation-delay: 0.55s; }

@keyframes menuItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo淡入动画 */
.logo-image {
    animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 版本号淡入动画 */
.version-container {
    animation: versionSlideUp 0.6s ease-out 0.3s backwards;
}

@keyframes versionSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 网络速度和系统状态样式 */
.network-speed, .system-stat {
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--v-theme-on-surface));
}

/* 等高行 */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*="v-col"] {
    display: flex;
    flex-direction: column;
}

.row-equal-height .v-card {
    flex: 1;
}

/* redia原有组件样式 */
.usage-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usage-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-text {
    font-size: 14px;
    font-weight: 500;
    color: rgb(var(--v-theme-on-surface));
}

.plugin-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(61,111,213,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.config-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(86,202,0);
    flex-shrink: 0;
}

.config-name {
    font-size: 14px;
    font-weight: 500;
    color: rgb(var(--v-theme-on-surface));
}

/* 确保卡片内容正确显示 */
.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(var(--v-theme-config-card), 0.8) !important;
    border: 1px solid rgba(231,227,252,0.12);
    border-radius: 16px;
}

/* 修复菜单项样式 */
.menu-items {
    padding: 0 8px;
}

.menu-item {
    margin: 4px 0;
}

/* 移除分类标题样式，因为不再使用分类 */
.menu-category .category-header {
    display: none;
}
/* App图标样式 - 确保favicon也有圆角 */
link[rel="shortcut icon"],
link[rel="apple-touch-icon"] {
    border-radius: 20%;
}

/* 插件图标样式优化 */
.plugin-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(61,111,213,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.plugin-icon img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

/* 确保所有图片都有合适的圆角 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 侧边栏logo容器优化 */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/* 移动端适配 */
@media (max-width: 768px) {
    /* 仪表盘标题 */
    .dashboard h2 {
        font-size: 24px !important;
        margin-bottom: 16px !important;
    }
    
    /* 卡片间距调整 */
    .stat-cards .v-col {
        margin-bottom: 12px;
    }
    
    .stat-card {
        height: 140px !important;
        padding: 16px !important;
    }
    
    .main-card {
        height: auto !important;
        min-height: 160px;
        margin-bottom: 16px;
        padding: 16px !important;
    }
    
    /* 标题字体调整 */
    .stat-card h3,
    .main-card h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    /* 最近缓存记录标题 - 排除plugin-name */
    .dashboard h3:not(.plugin-name) {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    /* 配置卡片标题对齐修复 */
    .dashboard .config-card .plugin-name {
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* 配置项间距 */
    .config-item {
        padding: 8px 0 !important;
    }
    
    /* 使用情况网格 */
    .usage-grid {
        gap: 8px !important;
    }
    
    /* 侧边栏移动端适配 */
    .magic-sidebar {
        width: 210px !important;
    }
    
    .magic-sidebar .logo-wrapper {
        padding: 12px !important;
    }
    
    .magic-sidebar .logo-image {
        max-width: 100% !important;
        width: calc(100% - 24px) !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .magic-sidebar .item-title {
        font-size: 15px !important;
    }
    
    .magic-sidebar .item-icon {
        font-size: 28px !important;
    }
    
    .magic-sidebar .item-content {
        padding: 10px 12px !important;
    }
    
    /* 应用栏移动端适配 */
    .v-app-bar {
        padding-top: 0 !important;
    }
    
    /* 主内容区移动端适配 */
    .app-container {
        padding: 16px !important;
    }
    
    /* 消息提示移动端适配 */
    .v-snackbar {
        margin: 8px !important;
        z-index: 99999 !important;
    }
    
    /* 对话框移动端适配 */
    .v-dialog {
        margin: 16px !important;
    }
    
    /* 配置卡片移动端适配 - 修复图标和文字对齐 */
    .config-card .card-header {
        min-height: 40px;
    }
    
    .config-card .plugin-icon {
        width: 40px;
        height: 40px;
    }
    
    .config-card .plugin-icon img {
        width: 28px;
        height: 28px;
    }
    
    .config-card .plugin-name {
        font-size: 15px;
        height: 40px;
    }
    
    /* 禁用卡片动画以提升性能 */
    .stat-card,
    .main-card,
    .config-card,
    .menu-item {
        animation: none !important;
    }
    
    /* 简化悬停效果 */
    .stat-card:hover,
    .config-card:hover {
        transform: translateY(-2px) scale(1);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .dashboard h2 {
        font-size: 20px !important;
    }
    
    .stat-card {
        height: 120px !important;
        padding: 12px !important;
    }
    
    .stat-card h3,
    .main-card h3 {
        font-size: 14px !important;
    }
    
    .usage-text,
    .config-name {
        font-size: 13px !important;
    }
    
    .app-container {
        padding: 12px !important;
    }
    
    .magic-sidebar .logo-image {
        max-width: 100% !important;
        width: calc(100% - 24px) !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* 缓存管理页面移动端优化 */
    .cache-item {
        padding: 10px 12px !important;
        margin-bottom: 6px !important;
    }
    
    .cache-item .v-chip {
        height: 18px !important;
        font-size: 10px !important;
    }
    
    .cache-item .v-btn {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}


/* ========== 日志样式 ========== */

/* 日志表格容器 */
.table-container {
    height: 100%;
    overflow-y: auto;
}

/* 日志表格 */
.logs-table {
    background: transparent !important;
}

.logs-table tbody tr {
    border-bottom: 1px solid rgba(231,227,252,0.06);
}

.logs-table tbody tr:hover {
    background: rgba(var(--v-theme-on-surface),0.03) !important;
}

.logs-table td {
    border-bottom: none !important;
    font-size: 14px;
}

/* 日志级别标签 */
.logs-table .v-chip {
    font-weight: 500;
    min-width: 70px;
    justify-content: center;
}

/* 日志弹窗 */
.log-dialog .v-overlay__content {
    border-radius: 20px !important;
    max-height: calc(100vh - 48px) !important;
    margin: 24px auto !important;
    transition-duration: 0.25s !important;
}

.log-dialog .v-overlay__scrim {
    background: rgba(0, 0, 0, 0.7) !important;
}

.log-dialog-card {
    background: rgb(var(--v-theme-background)) !important;
    border-radius: 20px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.log-dialog-title {
    border-bottom: 1px solid rgba(231,227,252,0.08);
}

.log-table-container {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 200px;
}

/* 日志工具栏 */
.log-toolbar {
    border-bottom: 1px solid rgba(231,227,252,0.08);
    padding-bottom: 12px !important;
}

/* 侧边栏日志页面卡片 */
.logs-page-card {
    background: rgb(var(--v-theme-background)) !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.logs-page-card .v-card-title {
    border-bottom: 1px solid rgba(231,227,252,0.08);
}

/* 移动端日志弹窗适配 */
@media (max-width: 768px) {
    /* 移动端全屏弹窗 */
    .log-dialog .v-overlay__content {
        border-radius: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    .log-dialog-card {
        border-radius: 0 !important;
        height: 100vh !important;
    }
    
    /* 移动端安全区域 */
    .log-dialog-title {
        padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
    }
    
    .log-table-container {
        height: calc(100vh - 180px - env(safe-area-inset-top, 0px)) !important;
    }
    
    /* 工具栏居中对称 */
    .log-toolbar .d-flex {
        justify-content: center !important;
    }
    
    .log-toolbar .v-btn-group {
        margin-right: 0 !important;
    }
    
    .logs-table td {
        font-size: 12px;
        padding: 8px 12px !important;
    }
    
    .logs-table .v-chip {
        font-size: 11px;
        min-width: 60px;
    }
    
    .logs-table .d-flex {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .logs-table .d-inline-flex {
        min-width: auto !important;
    }
    
    .logs-page-card .px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* ========== 配置卡片样式 ========== */

.config-card {
    position: relative;
    background: rgba(var(--v-theme-config-card), 0.8) !important;
    border: 1px solid rgba(231,227,252,0.12);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 卡片光效 */
.config-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--v-theme-on-surface),0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.config-card:hover::after {
    opacity: 0;
}

.config-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(231,227,252,0.12);
}

.config-card.media-card:hover,
.config-card.cloud-card:hover {
    border-color: rgba(231,227,252,0.12) !important;
    background: rgba(var(--v-theme-config-card), 0.8) !important;
}

.config-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 48px;
}

.config-card .plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.config-card .plugin-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

.config-card .plugin-icon .v-img {
    width: 40px !important;
    height: 40px !important;
    flex: none;
}

.config-card .plugin-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 48px;
}

.config-card .card-divider {
    height: 1px;
    background: rgba(231,227,252,0.12);
    margin: 12px 0;
}

.config-card .config-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.config-card .config-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.config-card .config-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--v-theme-on-surface),0.3);
    flex-shrink: 0;
}

.config-card .config-dot.active {
    background: #56CA00;
    box-shadow: 0 0 8px rgba(86,202,0,0.5);
}

.config-card .config-name {
    font-size: 14px;
    color: rgba(var(--v-theme-on-surface),0.85);
}

/* 仪表盘配置卡片 */
.config-card.media-card,
.config-card.cloud-card {
    display: flex;
    flex-direction: column;
}

.config-card.media-card .config-list,
.config-card.cloud-card .config-list {
    flex: none;
}

/* 霓虹边框 */
.neon-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.neon-border.neon-purple {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.neon-border.neon-blue {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* 卡片光晕 */
.card-glow {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.05;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.config-card:hover .card-glow {
    opacity: 0.1;
}

.purple-glow {
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
}

.blue-glow {
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
}

.neon-border.neon-cyan {
    background: linear-gradient(90deg, #00BCD4, #26C6DA);
    box-shadow: 0 0 10px rgba(0,188,212,0.5);
}

.cyan-glow {
    background: radial-gradient(circle, #00BCD4 0%, transparent 70%);
}


/* ========== 浅色主题样式 ========== */
.v-theme--light {
    --v-theme-background: 244,245,250;
    --v-theme-surface: 255,255,255;
    --v-theme-side-bar: 255,255,255;
    --v-theme-side-bar-hover: 240,242,248;
    --v-theme-navitem: 248,249,252;
    --v-theme-card-bg: 255,255,255;
    --v-theme-config-card: 245,245,245;
    --v-theme-on-background: 47,43,61;
    --v-theme-on-surface: 47,43,61;
    --v-theme-scrollbar: 208,208,208;
}

/* 浅色主题侧边栏 */
.v-theme--light .magic-sidebar {
    background: rgb(255,255,255) !important;
    border-right: 1px solid rgba(47,43,61,0.12);
}

.v-theme--light .magic-sidebar .logo-wrapper {
    border-bottom: 1px solid rgba(47,43,61,0.12);
}

.v-theme--light .magic-sidebar .logo-image {
    box-shadow: none;
    background: transparent;
}

/* 浅色主题菜单项 */
.v-theme--light .menu-item .item-icon {
    color: rgba(47,43,61,0.7);
}

.v-theme--light .menu-item .item-title {
    color: rgba(47,43,61,0.9);
}

.v-theme--light .menu-item:hover {
    background: rgb(240,242,248);
}

.v-theme--light .menu-item:hover .item-icon {
    color: rgba(47,43,61,0.9);
}

.v-theme--light .menu-item.active {
    background: rgb(238,242,255);
}

.v-theme--light .menu-item.active .item-icon {
    color: rgb(61,111,213);
}

.v-theme--light .menu-item.active .item-title {
    color: rgb(47,43,61);
}

/* 浅色主题顶部栏 */
.v-theme--light .fixed-header {
    background-color: rgba(244,245,250, 0.85) !important;
    border-bottom: 1px solid rgba(47,43,61,0.12);
}

/* 浅色主题卡片 */
.v-theme--light .stat-card,
.v-theme--light .main-card,
.v-theme--light .glass-card,
.v-theme--light .config-card {
    background: rgb(255,255,255) !important;
    border: 1px solid rgba(47,43,61,0.12);
}

.v-theme--light .stat-card:hover,
.v-theme--light .main-card:hover,
.v-theme--light .config-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* 浅色主题标题栏 */
.v-theme--light .title-bar {
    border-bottom: 1px solid rgba(47,43,61,0.12);
    color: rgb(47,43,61);
}

/* 浅色主题分类标题 */
.v-theme--light .category-line {
    background: rgba(47,43,61,0.12);
}

.v-theme--light .category-title {
    color: rgba(47,43,61,0.6);
}

/* 浅色主题文字颜色 */
.v-theme--light .usage-text,
.v-theme--light .config-name,
.v-theme--light .network-speed,
.v-theme--light .system-stat {
    color: rgb(47,43,61) !important;
}

.v-theme--light h2,
.v-theme--light h3 {
    color: rgb(47,43,61) !important;
}

/* 浅色主题注释和说明文字 - 增强对比度 */
.v-theme--light .text-caption,
.v-theme--light .text-body-2,
.v-theme--light .v-list-item-subtitle,
.v-theme--light [class*="text-grey"],
.v-theme--light .text-secondary {
    color: rgba(47,43,61,0.85) !important;
}

/* 浅色主题小字体说明 */
.v-theme--light .text-sm,
.v-theme--light small,
.v-theme--light .subtitle,
.v-theme--light .description {
    color: rgba(47,43,61,0.8) !important;
}

/* 浅色主题卡片内的副标题 */
.v-theme--light .v-card-subtitle,
.v-theme--light .stat-card .subtitle,
.v-theme--light .config-card .description {
    color: rgba(47,43,61,0.8) !important;
}

/* 浅色主题表单标签和提示 */
.v-theme--light .v-label,
.v-theme--light .v-messages,
.v-theme--light .v-input__details {
    color: rgba(47,43,61,0.8) !important;
}

/* 浅色主题禁用状态文字 */
.v-theme--light .v-btn--disabled,
.v-theme--light .text-disabled {
    color: rgba(47,43,61,0.4) !important;
}

/* 浅色主题 - 所有辅助文字 */
.v-theme--light .text-medium-emphasis {
    color: rgba(47,43,61,0.8) !important;
}

.v-theme--light .text-high-emphasis {
    color: rgba(47,43,61,0.95) !important;
}

.v-theme--light .text-low-emphasis {
    color: rgba(47,43,61,0.6) !important;
}

/* 浅色主题 - 输入框提示文字 */
.v-theme--light .v-field__input::placeholder,
.v-theme--light .v-text-field input::placeholder,
.v-theme--light .v-textarea textarea::placeholder {
    color: rgba(47,43,61,0.6) !important;
    opacity: 1 !important;
}

/* 浅色主题 - 表单帮助文字 */
.v-theme--light .v-input__append,
.v-theme--light .v-input__prepend,
.v-theme--light .v-field__append-inner,
.v-theme--light .v-field__prepend-inner {
    color: rgba(47,43,61,0.7) !important;
}

/* 浅色主题 - 所有说明性文字 */
.v-theme--light p,
.v-theme--light span:not(.v-btn__content):not(.v-chip__content) {
    color: inherit;
}

/* 浅色主题 - 确保所有灰色文字可见 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.5)"],
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.6)"],
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.7)"] {
    color: rgba(47,43,61,0.75) !important;
}

/* 浅色主题 - 监控卡片标签 */
.v-theme--light .monitor-label {
    color: rgba(47, 43, 61, 0.7) !important;
}

.v-theme--light .monitor-subtitle {
    color: rgba(47, 43, 61, 0.65) !important;
}

/* 浅色主题 - 网络速度和系统状态 */
.v-theme--light .network-speed,
.v-theme--light .system-stat {
    color: rgba(47, 43, 61, 0.9) !important;
}

/* 浅色主题日志 */
.v-theme--light .logs-page-card,
.v-theme--light .log-dialog-card {
    background: rgb(255,255,255) !important;
}

.v-theme--light .logs-table tbody tr {
    border-bottom: 1px solid rgba(47,43,61,0.08);
}

.v-theme--light .logs-table tbody tr:hover {
    background: rgba(0,0,0,0.02) !important;
}

.v-theme--light .log-dialog-title,
.v-theme--light .logs-page-card .v-card-title {
    border-bottom: 1px solid rgba(47,43,61,0.08);
}

.v-theme--light .log-toolbar {
    border-bottom: 1px solid rgba(47,43,61,0.08);
}

/* 浅色主题滚动条 */
.v-theme--light ::-webkit-scrollbar-track {
    background: rgba(208,208,208, 0.2);
}

.v-theme--light ::-webkit-scrollbar-thumb {
    background: rgba(189,189,189, 0.5);
}

.v-theme--light ::-webkit-scrollbar-thumb:hover {
    background: rgba(158,158,158, 0.7);
}

/* 浅色主题加载动画 */
.v-theme--light .loading {
    background: rgb(244,245,250);
}

/* 浅色主题配置卡片 */
.v-theme--light .config-card .plugin-name {
    color: rgb(47,43,61);
}

.v-theme--light .config-card .config-name {
    color: rgba(47,43,61,0.85);
}

.v-theme--light .config-card .card-divider {
    background: rgba(47,43,61,0.12);
}

.v-theme--light .config-card .config-dot {
    background: rgba(47,43,61,0.3);
}

/* 浅色主题提示信息 */
.v-theme--light [style*="background: rgba(61,111,213,0.1)"],
.v-theme--light [style*="background: rgba(86,202,0,0.1)"],
.v-theme--light [style*="background: rgba(255,180,0,0.1)"] {
    border: 1px solid rgba(47,43,61,0.08);
}

/* 浅色主题输入框 */
.v-theme--light .v-field--variant-outlined .v-field__outline {
    --v-field-border-opacity: 0.2;
}

/* 浅色主题渐变线 */
.v-theme--light [style*="background: linear-gradient"] {
    opacity: 0.8;
}

/* 浅色主题版本号 */
.v-theme--light .version-container {
    background: rgba(0,0,0,0.06);
}

.v-theme--light .version-container .version-text {
    color: rgba(47,43,61,0.6);
}

.v-theme--light .sidebar-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
}

.v-theme--light .sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}


/* ========== 顶部栏按钮动画和样式 ========== */

/* 按钮容器 */
.header-actions {
    animation: headerSlideIn 0.6s ease-out;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 图标按钮 - 简洁现代 */
.header-icon-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.header-icon-btn .v-icon {
    font-size: 24px !important;
    transition: color 0.2s ease;
}

/* 深色主题按钮 */
.v-theme--dark .header-icon-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.v-theme--dark .header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

.v-theme--dark .header-icon-btn:active {
    background: rgba(255, 255, 255, 0.16) !important;
}

/* 浅色主题按钮 */
.v-theme--light .header-icon-btn {
    background: rgba(47, 43, 61, 0.05) !important;
    color: rgba(47, 43, 61, 0.7) !important;
}

.v-theme--light .header-icon-btn:hover {
    background: rgba(47, 43, 61, 0.1) !important;
    color: rgba(47, 43, 61, 0.9) !important;
}

.v-theme--light .header-icon-btn:active {
    background: rgba(47, 43, 61, 0.14) !important;
}

/* 分隔线 */
.header-divider {
    width: 1px;
    height: 20px;
    margin: 0 4px;
}

.v-theme--dark .header-divider {
    background: rgba(255, 255, 255, 0.1);
}

.v-theme--light .header-divider {
    background: rgba(47, 43, 61, 0.1);
}

/* 全局消息提示 - 确保在对话框之上 */
.v-snackbar {
    z-index: 99999 !important;
}

/* 全局遮罩修复 - Vuetify 暗色主题 scrim 默认用 on-surface（白色），改为黑色 */
.v-overlay__scrim {
    background: black !important;
}

/* 下拉菜单 - 贴合右边缘 */
.v-menu > .v-overlay__content {
    overflow: hidden;
    border-radius: 12px !important;
}

.v-menu .v-overlay__content {
    box-shadow: none !important;
}

.elegant-menu {
    min-width: 15rem;
    overflow: hidden;
    padding: 0 8px 8px;
    border-radius: 12px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.v-theme--dark .elegant-menu {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.v-theme--light .elegant-menu {
    border: 1px solid rgba(47, 43, 61, 0.12);
}

.elegant-menu-item {
    border-radius: 8px !important;
    margin-bottom: 1px;
    transition: background 0.15s ease;
}

.elegant-menu-item:hover {
    background-color: rgba(var(--v-theme-on-surface), 0.04) !important;
}

/* 菜单图标 */
.menu-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.primary-icon {
    background: rgba(61, 111, 213, 0.12);
    color: rgb(61, 111, 213);
}

.info-icon {
    background: rgba(22, 177, 255, 0.12);
    color: rgb(22, 177, 255);
}

.error-icon {
    background: rgba(255, 76, 81, 0.12);
    color: rgb(255, 76, 81);
}

.success-icon {
    background: rgba(86, 202, 0, 0.12);
    color: rgb(86, 202, 0);
}

.warning-icon {
    background: rgba(255, 180, 0, 0.12);
    color: rgb(255, 180, 0);
}

/* 菜单项标题 */
.elegant-menu-item .v-list-item-title {
    font-weight: 500;
    font-size: 14px;
}

/* 图标脉冲动画 - 用于健康状态指示 */
@keyframes iconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.pulse-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-actions {
        gap: 2px;
    }
    
    .header-icon-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    
    .header-icon-btn .v-icon {
        font-size: 22px !important;
    }
    
    .header-divider {
        height: 18px;
    }
    
    .elegant-menu {
        min-width: 13rem;
    }
    
    .menu-icon-wrapper {
        width: 30px;
        height: 30px;
    }
}


/* ========== 侧边栏布局优化 ========== */

/* 侧边栏整体布局 */
.magic-sidebar .v-navigation-drawer__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 菜单滚动区域 */
.sidebar-menu-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--v-theme-on-surface),0.2) transparent;
}

.sidebar-menu-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--v-theme-on-surface),0.2);
    border-radius: 2px;
}

.sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-theme-on-surface),0.3);
}

/* 版本号容器 */
.version-container {
    background: rgba(var(--v-theme-on-surface),0.08);
    border-radius: 20px;
}

.version-container .version-text {
    color: rgba(var(--v-theme-on-surface),0.5);
    font-size: 13px;
    font-weight: 500;
}

/* 浅色主题版本号 */
.v-theme--light .version-container {
    background: rgba(0,0,0,0.06);
}

.v-theme--light .version-container .version-text {
    color: rgba(47,43,61,0.5);
}

.v-theme--light .sidebar-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
}

.v-theme--light .sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}


/* ========== 仪表盘监控网格样式 ========== */

/* 监控网格：PC端 4列，平板 2列，手机 1列 */
.dash-monitor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

@media (max-width: 960px) {
    .dash-monitor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dash-monitor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .dash-monitor-grid {
        grid-template-columns: 1fr;
    }
}

/* 监控项卡片 */
.dash-monitor-item {
    background: rgba(var(--v-theme-config-card), 0.8);
    border: 1px solid rgba(231,227,252,0.1);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dash-monitor-item:hover {
    border-color: rgba(231,227,252,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 监控项头部：图标 + 标题 + 百分比 */
.dash-monitor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dash-monitor-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-monitor-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--v-theme-on-surface),0.85);
    flex: 1;
}

.dash-monitor-percent {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.dash-monitor-value {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(var(--v-theme-on-surface),0.7);
    white-space: nowrap;
}

.v-theme--light .dash-monitor-value {
    color: rgba(47,43,61,0.7);
}

/* 进度条 */
.dash-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(var(--v-theme-on-surface),0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    position: relative;
}

.dash-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--v-theme-on-surface),0.15), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== 环形进度图样式 ===== */
.dash-monitor-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-monitor-ring-card .dash-monitor-header {
    width: 100%;
}

.dash-ring-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dash-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 4px auto 8px;
    z-index: 1;
}

.dash-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dash-ring-bg {
    fill: none;
    stroke: rgba(var(--v-theme-on-surface),0.06);
    stroke-width: 5;
}

.dash-ring-fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.dash-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.dash-ring-percent {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1;
}

.dash-ring-unit {
    font-size: 11px;
    font-weight: 500;
    color: rgba(var(--v-theme-on-surface),0.45);
}

/* 增强网络卡片 */
.dash-net-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
    z-index: 1;
    position: relative;
}

.dash-net-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(var(--v-theme-on-surface),0.03);
    border-radius: 8px;
}

.dash-net-arrow {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-net-label {
    font-size: 10px;
    color: rgba(var(--v-theme-on-surface),0.4);
    line-height: 1;
}

.dash-net-speed {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--v-theme-on-surface),0.85);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

/* 浅色主题适配 */
.v-theme--light .dash-ring-bg {
    stroke: rgba(47,43,61,0.08);
}

.v-theme--light .dash-ring-unit {
    color: rgba(47,43,61,0.45);
}

.v-theme--light .dash-net-label {
    color: rgba(47,43,61,0.4);
}

.v-theme--light .dash-net-speed {
    color: rgba(47,43,61,0.85);
}

.v-theme--light .dash-net-stat {
    background: rgba(47,43,61,0.04);
}

/* 移动端环形图缩小 */
@media (max-width: 600px) {
    .dash-ring-container {
        width: 64px;
        height: 64px;
        margin: 2px auto 6px;
    }
    
    .dash-ring-percent {
        font-size: 18px;
    }
    
    .dash-ring-unit {
        font-size: 10px;
    }
}

/* 详情行 */
.dash-monitor-detail {
    display: flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 0;
    gap: 2px;
}

.dash-detail-label {
    color: rgba(var(--v-theme-on-surface),0.45);
    margin-right: 4px;
    flex-shrink: 0;
    font-size: 11px;
}

.dash-detail-value {
    color: rgba(var(--v-theme-on-surface),0.8);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    margin-left: auto;
}

/* 网络行 */
.dash-net-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.dash-net-item {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 11px;
    background: rgba(var(--v-theme-on-surface),0.03);
    border-radius: 6px;
    padding: 5px 8px;
}

.dash-net-item .dash-detail-label {
    margin-right: 4px;
}

.dash-net-item .dash-detail-value {
    margin-left: auto;
}

/* 缓存记录样式 */
.dash-cache-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.dash-cache-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-cache-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(var(--v-theme-on-surface),0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-cache-meta {
    font-size: 11px;
    color: rgba(var(--v-theme-on-surface),0.4);
    margin-top: 2px;
}

/* 浅色主题 - 仪表盘监控 */
.v-theme--light .dash-monitor-item {
    background: rgba(var(--v-theme-config-card), 0.9);
    border-color: rgba(47,43,61,0.1);
}

.v-theme--light .dash-monitor-item:hover {
    border-color: rgba(47,43,61,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.v-theme--light .dash-monitor-title {
    color: rgba(47,43,61,0.85);
}

.v-theme--light .dash-progress-track {
    background: rgba(47,43,61,0.08);
}

.v-theme--light .dash-detail-label {
    color: rgba(47,43,61,0.5);
}

.v-theme--light .dash-detail-value {
    color: rgba(47,43,61,0.85);
}

.v-theme--light .dash-net-item {
    background: rgba(47,43,61,0.04);
}

.v-theme--light .dash-cache-name {
    color: rgba(47,43,61,0.85);
}

.v-theme--light .dash-cache-meta {
    color: rgba(47,43,61,0.5);
}

/* 移动端适配 */
@media (max-width: 600px) {
    .dash-monitor-item {
        padding: 12px;
    }
    
    .dash-monitor-icon {
        width: 28px;
        height: 28px;
    }
    
    .dash-monitor-icon .v-icon {
        font-size: 16px !important;
    }
    
    .dash-monitor-title {
        font-size: 12px;
    }
    
    .dash-monitor-percent {
        font-size: 14px;
    }
    
    .dash-net-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .dash-detail-label,
    .dash-detail-value {
        font-size: 10px;
    }
    
    .dash-cache-name {
        font-size: 12px;
    }
}



/* ========== 系统监控卡片样式 ========== */

.system-monitor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(61, 111, 213, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-monitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3D6FD5, #8B5CF6, #00BCD4);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.system-monitor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(61, 111, 213, 0.2);
    border-color: rgba(61, 111, 213, 0.5) !important;
}

/* 监控网格 */
.monitor-grid {
    margin: 0 -8px;
}

.monitor-grid .v-col {
    padding: 8px;
}

/* 监控项 */
.monitor-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.monitor-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 监控图标包装器 */
.monitor-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cpu-icon {
    background: rgba(255, 180, 0, 0.15);
}

.memory-icon {
    background: rgba(156, 39, 176, 0.15);
}

.disk-icon {
    background: rgba(255, 76, 81, 0.15);
}

.network-icon {
    background: rgba(86, 202, 0, 0.15);
}

.monitor-item:hover .monitor-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.monitor-item:hover .cpu-icon {
    box-shadow: 0 0 16px rgba(255, 180, 0, 0.4);
}

.monitor-item:hover .memory-icon {
    box-shadow: 0 0 16px rgba(156, 39, 176, 0.4);
}

.monitor-item:hover .disk-icon {
    box-shadow: 0 0 16px rgba(255, 76, 81, 0.4);
}

.monitor-item:hover .network-icon {
    box-shadow: 0 0 16px rgba(86, 202, 0, 0.4);
}

/* 监控内容 */
.monitor-content {
    flex: 1;
    min-width: 0;
}

.monitor-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.monitor-value {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.monitor-value-sm {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.monitor-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.network-stats {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.network-stats .d-flex {
    display: flex !important;
    align-items: center !important;
}

/* 移动端网络统计居中 */
@media (max-width: 600px) {
    .network-stats {
        align-items: center;
    }
}

/* 浅色主题监控卡片 */
.v-theme--light .system-monitor-card {
    border-color: rgba(61, 111, 213, 0.2) !important;
}

.v-theme--light .system-monitor-card:hover {
    border-color: rgba(61, 111, 213, 0.4) !important;
    box-shadow: 0 12px 40px rgba(61, 111, 213, 0.15);
}

.v-theme--light .monitor-item {
    background: rgba(47, 43, 61, 0.03);
    border-color: rgba(47, 43, 61, 0.08);
}

.v-theme--light .monitor-item:hover {
    background: rgba(47, 43, 61, 0.05);
    border-color: rgba(47, 43, 61, 0.15);
}

.v-theme--light .monitor-label {
    color: rgba(47, 43, 61, 0.6);
}

.v-theme--light .monitor-value,
.v-theme--light .monitor-value-sm {
    color: rgba(47, 43, 61, 0.95);
}

.v-theme--light .monitor-subtitle {
    color: rgba(47, 43, 61, 0.5);
}

/* 移动端监控卡片适配 */
@media (max-width: 768px) {
    .monitor-item {
        padding: 12px;
    }
    
    .monitor-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .monitor-icon-wrapper .v-icon {
        font-size: 20px !important;
    }
    
    .monitor-value {
        font-size: 16px;
    }
    
    .monitor-value-sm {
        font-size: 12px;
    }
    
    .monitor-label {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .monitor-grid .v-col {
        padding: 6px;
    }
    
    .monitor-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
    }
    
    .monitor-content {
        width: 100%;
    }
}


/* ========== 浅色主题 - 强制修复所有注释文字 ========== */

/* 浅色主题 - 所有内联样式的灰色文字 */
.v-theme--light div[style*="color: rgba(var(--v-theme-on-surface)"],
.v-theme--light span[style*="color: rgba(var(--v-theme-on-surface)"],
.v-theme--light p[style*="color: rgba(var(--v-theme-on-surface)"] {
    color: rgba(47,43,61,0.8) !important;
}

/* 浅色主题 - 配置项说明 */
.v-theme--light .config-item div,
.v-theme--light .config-item span {
    color: rgba(47,43,61,0.85) !important;
}

/* 浅色主题 - 缓存记录说明 */
.v-theme--light .config-item div[style*="font-size: 12px"] {
    color: rgba(47,43,61,0.75) !important;
}

/* 浅色主题 - 表单字段说明 */
.v-theme--light .v-field__field,
.v-theme--light .v-field__input,
.v-theme--light .v-field-label {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 对话框和卡片中的说明文字 */
.v-theme--light .v-card-text,
.v-theme--light .v-dialog .v-card-text {
    color: rgba(47,43,61,0.85) !important;
}

/* 浅色主题 - 列表项说明 */
.v-theme--light .v-list-item-title,
.v-theme--light .v-list-item-subtitle {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 所有小号字体 */
.v-theme--light [style*="font-size: 11px"],
.v-theme--light [style*="font-size: 12px"],
.v-theme--light [style*="font-size: 13px"] {
    color: rgba(47,43,61,0.8) !important;
}

/* 浅色主题 - Vuetify 默认的 medium-emphasis */
.v-theme--light .v-input--density-default .v-field__input,
.v-theme--light .v-input--density-default .v-label {
    color: rgba(47,43,61,0.85) !important;
}

/* 浅色主题 - 确保所有文本输入可见 */
.v-theme--light input,
.v-theme--light textarea,
.v-theme--light select {
    color: rgba(47,43,61,0.95) !important;
}

/* 浅色主题 - API 设置页面的所有文字 */
.v-theme--light .v-expansion-panel-text,
.v-theme--light .v-expansion-panel-title {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 开关和复选框标签 */
.v-theme--light .v-switch__label,
.v-theme--light .v-checkbox__label,
.v-theme--light .v-radio__label {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 表格文字 */
.v-theme--light .v-table td,
.v-theme--light .v-table th {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 提示信息 */
.v-theme--light .v-alert__content {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 选项卡文字 */
.v-theme--light .v-tab {
    color: rgba(47,43,61,0.7) !important;
}

.v-theme--light .v-tab--selected {
    color: rgba(47,43,61,0.95) !important;
}

/* 浅色主题 - 菜单项文字 */
.v-theme--light .v-menu .v-list-item {
    color: rgba(47,43,61,0.9) !important;
}


/* ========== 浅色主题 - 终极修复：覆盖所有内联白色文字样式 ========== */

/* 强制覆盖所有白色半透明文字 - 0.4 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.4)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.4)"] {
    color: rgba(47,43,61,0.65) !important;
}

/* 强制覆盖所有白色半透明文字 - 0.5 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.5)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.5)"] {
    color: rgba(47,43,61,0.7) !important;
}

/* 强制覆盖所有白色半透明文字 - 0.6 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.6)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.6)"] {
    color: rgba(47,43,61,0.75) !important;
}

/* 强制覆盖所有白色半透明文字 - 0.7 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.7)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.7)"] {
    color: rgba(47,43,61,0.8) !important;
}

/* 强制覆盖所有白色半透明文字 - 0.8 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.8)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.8)"] {
    color: rgba(47,43,61,0.85) !important;
}

/* 强制覆盖所有白色半透明文字 - 0.9 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.9)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.9)"] {
    color: rgba(47,43,61,0.9) !important;
}

/* 强制覆盖所有白色文字 - 1.0 透明度 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),1)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),1)"],
.v-theme--light [style*="color: white"],
.v-theme--light [style*="color:white"],
.v-theme--light [style*="color: #fff"],
.v-theme--light [style*="color:#fff"],
.v-theme--light [style*="color: #ffffff"],
.v-theme--light [style*="color:#ffffff"] {
    color: rgba(47,43,61,0.95) !important;
}

/* 浅色主题 - 版本号文字 */
.v-theme--light .version-text {
    color: rgba(47,43,61,0.7) !important;
}

/* 浅色主题 - 信息提示框内的文字 */
.v-theme--light div[style*="background: rgba(61,111,213,0.1)"] div,
.v-theme--light div[style*="background: rgba(255,180,0,0.1)"] div,
.v-theme--light div[style*="background: rgba(86,202,0,0.1)"] div {
    color: rgba(47,43,61,0.85) !important;
}

/* 浅色主题 - code 标签 */
.v-theme--light code {
    background: rgba(47,43,61,0.1) !important;
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 空状态提示 */
.v-theme--light div[style*="text-align: center"] p {
    color: rgba(47,43,61,0.7) !important;
}

/* 浅色主题 - 所有 span 标签（除了按钮内容） */
.v-theme--light span:not(.v-btn__content):not(.v-chip__content):not(.v-icon) {
    color: inherit !important;
}

/* 浅色主题 - 确保继承正确的颜色 */
.v-theme--light .v-card-text span,
.v-theme--light .v-list-item span,
.v-theme--light .v-expansion-panel-text span {
    color: rgba(47,43,61,0.85) !important;
}


/* ========== 浅色主题 - 工具箱页面内联样式修复 ========== */

/* 浅色主题 - 白色半透明背景修复（内联样式） */
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.02)"],
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.03)"],
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.04)"],
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.05)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.02)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.03)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.04)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.05)"] {
    background: rgba(47,43,61,0.04) !important;
}

.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.06)"],
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.08)"],
.v-theme--light [style*="background: rgba(var(--v-theme-on-surface),0.1)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.06)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.08)"],
.v-theme--light [style*="background:rgba(var(--v-theme-on-surface),0.1)"] {
    background: rgba(47,43,61,0.06) !important;
}

/* 浅色主题 - 白色半透明边框修复（内联样式） */
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.05)"],
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.06)"],
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.08)"],
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.1)"],
.v-theme--light [style*="border:1px solid rgba(var(--v-theme-on-surface),0.05)"],
.v-theme--light [style*="border:1px solid rgba(var(--v-theme-on-surface),0.06)"],
.v-theme--light [style*="border:1px solid rgba(var(--v-theme-on-surface),0.08)"],
.v-theme--light [style*="border:1px solid rgba(var(--v-theme-on-surface),0.1)"] {
    border-color: rgba(47,43,61,0.12) !important;
}

.v-theme--light [style*="border-bottom: 1px solid rgba(var(--v-theme-on-surface)"],
.v-theme--light [style*="border-top: 1px solid rgba(var(--v-theme-on-surface)"] {
    border-color: rgba(47,43,61,0.1) !important;
}

.v-theme--light [style*="border: 1px dashed rgba(var(--v-theme-on-surface)"] {
    border-color: rgba(47,43,61,0.15) !important;
}

/* 浅色主题 - 白色半透明文字 0.35（之前遗漏） */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.35)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.35)"] {
    color: rgba(47,43,61,0.55) !important;
}

/* 浅色主题 - 白色半透明文字 0.85 */
.v-theme--light [style*="color: rgba(var(--v-theme-on-surface),0.85)"],
.v-theme--light [style*="color:rgba(var(--v-theme-on-surface),0.85)"] {
    color: rgba(47,43,61,0.9) !important;
}

/* 浅色主题 - 分享 STRM 日志页 CSS 类覆盖 */
.v-theme--light .strm-logs-header {
    background: rgba(47,43,61,0.04) !important;
    color: rgba(47,43,61,0.6) !important;
}

.v-theme--light .strm-log-item {
    background: rgba(47,43,61,0.02) !important;
    border-color: rgba(47,43,61,0.08) !important;
}

.v-theme--light .strm-log-item:hover {
    background: rgba(61,111,213,0.06) !important;
    border-color: rgba(61,111,213,0.15) !important;
}

.v-theme--light .strm-log-url {
    color: rgba(47,43,61,0.85) !important;
}

.v-theme--light .strm-log-stats {
    color: rgba(47,43,61,0.6) !important;
}

.v-theme--light .strm-log-time {
    color: rgba(47,43,61,0.5) !important;
}

.v-theme--light .strm-log-error {
    background: rgba(255,76,81,0.08) !important;
}

/* 文件夹浏览器 hover 项 */
.folder-browse-item:hover {
    background: rgba(61,111,213,0.15) !important;
}

.v-theme--light .folder-browse-item {
    background: rgba(47,43,61,0.03) !important;
}

.v-theme--light .folder-browse-item:hover {
    background: rgba(61,111,213,0.1) !important;
}

/* 浅色主题 - details/summary 元素 */
.v-theme--light details summary {
    color: rgba(47,43,61,0.6) !important;
}

/* 浅色主题 - 弹窗底部操作栏背景 */
.v-theme--light [style*="background: rgba(0,0,0,0.05)"] {
    background: rgba(47,43,61,0.04) !important;
}


/* ========== 工具箱样式 ========== */

/* 工具箱卡片 */
.toolbox-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(231,227,252,0.12);
    background: rgba(var(--v-theme-config-card), 0.8);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toolbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--v-theme-on-surface),0.06), transparent);
    transition: left 0.5s;
}

.toolbox-card:hover::before {
    left: 100%;
}

.toolbox-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    border-color: var(--tool-color, rgba(231,227,252,0.25));
}

.toolbox-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.toolbox-card:hover .toolbox-card-icon {
    transform: scale(1.08);
}

.toolbox-card-info {
    flex: 1;
    min-width: 0;
}

.toolbox-card-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(231,227,252,0.95);
    margin-bottom: 4px;
}

.toolbox-card-desc {
    font-size: 13px;
    color: rgba(231,227,252,0.5);
    line-height: 1.5;
}

/* 工具箱卡片交错淡入动画 */
.toolbox-card {
    animation: toolboxCardFadeIn 0.45s ease-out backwards;
}

.v-col:nth-child(1) .toolbox-card { animation-delay: 0.05s; }
.v-col:nth-child(2) .toolbox-card { animation-delay: 0.1s; }
.v-col:nth-child(3) .toolbox-card { animation-delay: 0.15s; }
.v-col:nth-child(4) .toolbox-card { animation-delay: 0.2s; }
.v-col:nth-child(5) .toolbox-card { animation-delay: 0.25s; }

@keyframes toolboxCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 面包屑导航 */
.toolbox-breadcrumb {
    padding: 4px 0 12px;
}

/* 浅色主题 - 工具箱卡片 */
.v-theme--light .toolbox-card {
    background: rgba(var(--v-theme-config-card), 0.9);
    border-color: rgba(47,43,61,0.12);
}

.v-theme--light .toolbox-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.v-theme--light .toolbox-card-title {
    color: rgba(47,43,61,0.95);
}

.v-theme--light .toolbox-card-desc {
    color: rgba(47,43,61,0.55);
}

/* 移动端 - 工具箱卡片 */
@media (max-width: 768px) {
    .toolbox-card {
        padding: 16px 14px;
        animation: none !important;
    }

    .toolbox-card-icon {
        width: 48px;
        height: 48px;
    }

    .toolbox-card-icon img {
        width: 28px !important;
        height: 28px !important;
    }

    .toolbox-card-title {
        font-size: 15px;
    }

    .toolbox-card-desc {
        font-size: 12px;
    }

    .toolbox-card:hover {
        transform: translateY(-2px);
    }
}

/* ==================== 识别测试弹窗 ==================== */
.recognize-dialog .v-overlay__content {
    border-radius: 20px !important;
    max-height: calc(100vh - 48px) !important;
    margin: 24px auto !important;
}

.recognize-card {
    border-radius: 20px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.recognize-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
}

.recognize-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.recognize-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recognize-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.recognize-btn {
    border-radius: 10px;
    padding: 0 24px;
}

/* 识别结果布局 - PC端横排 */
.recognize-result-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* 海报 */
.recognize-poster {
    flex-shrink: 0;
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
}

/* 信息区 */
.recognize-info {
    flex: 1;
    min-width: 0;
}

.recognize-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.recognize-season {
    font-size: 13px;
    opacity: 0.7;
    vertical-align: top;
}

.recognize-year {
    opacity: 0.6;
    font-size: 14px;
    margin-top: 2px;
}

.recognize-overview {
    opacity: 0.7;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recognize-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recognize-word-chip {
    word-break: break-all;
}

/* 识别结果包裹容器 - 让日志显示在海报/标签之后 */
.recognize-result-sections {
    display: flex;
    flex-direction: column;
}

.recognize-result-sections > .recognize-log-result {
    order: 2;
    margin-top: 16px;
}

.recognize-result-sections > div:not(.recognize-log-result) {
    order: 1;
}

/* 识别结果日志风格展示 */
.recognize-log-result {
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.v-theme--dark .recognize-log-result {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--light .recognize-log-result {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

.recognize-log-result .log-field-name {
    color: #56CA00;
    font-weight: 600;
}

.recognize-log-result .log-field-label {
    opacity: 0.5;
}

.recognize-log-result .log-field-value {
    color: #FFB400;
}

.recognize-log-result .log-field-null {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.v-theme--light .recognize-log-result .log-field-null {
    color: rgba(0, 0, 0, 0.25);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .recognize-dialog .v-overlay__content {
        margin: 16px !important;
        max-height: calc(100vh - 32px) !important;
        border-radius: 16px !important;
    }

    .recognize-header {
        padding: 12px 16px;
        font-size: 16px;
    }

    .recognize-body {
        padding: 14px 16px;
    }

    /* 移动端竖排布局 */
    .recognize-result-layout {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .recognize-poster {
        width: 120px;
    }

    .recognize-info {
        width: 100%;
        text-align: center;
    }

    .recognize-title {
        font-size: 17px;
    }

    .recognize-tags {
        justify-content: center;
    }

    .recognize-overview {
        text-align: left;
    }

    .recognize-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .recognize-btn {
        padding: 0 20px;
    }

    .recognize-log-result {
        font-size: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .recognize-dialog .v-overlay__content {
        margin: 12px !important;
        max-height: calc(100vh - 24px) !important;
    }

    .recognize-poster {
        width: 100px;
    }

    .recognize-title {
        font-size: 16px;
    }

    .recognize-overview {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .recognize-log-result {
        font-size: 11px;
        padding: 10px;
    }
}


/* ========== 浅色主题 - 深色背景内联样式修复 ========== */

/* 浅色主题 - rgba(0,0,0,0.2) 配置区块背景（工具箱助手页面大量使用） */
.v-theme--light [style*="background: rgba(0,0,0,0.2)"],
.v-theme--light [style*="background:rgba(0,0,0,0.2)"] {
    background: rgba(47,43,61,0.05) !important;
    border: 1px solid rgba(47,43,61,0.08);
}

/* 浅色主题 - rgba(0,0,0,0.3) code 块背景 */
.v-theme--light [style*="background: rgba(0,0,0,0.3)"],
.v-theme--light [style*="background:rgba(0,0,0,0.3)"] {
    background: rgba(47,43,61,0.08) !important;
}

/* 浅色主题 - rgba(0,0,0,0.1) 折叠区域背景 */
.v-theme--light [style*="background: rgba(0,0,0,0.1)"],
.v-theme--light [style*="background:rgba(0,0,0,0.1)"] {
    background: rgba(47,43,61,0.05) !important;
}

/* 浅色主题 - rgba(0,0,0,0.03) 弹窗输入区域背景 */
.v-theme--light [style*="background: rgba(0,0,0,0.03)"],
.v-theme--light [style*="background:rgba(0,0,0,0.03)"] {
    background: rgba(47,43,61,0.03) !important;
}

/* 浅色主题 - 白色半透明边框 0.2 */
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.2)"],
.v-theme--light [style*="border:1px solid rgba(var(--v-theme-on-surface),0.2)"] {
    border-color: rgba(47,43,61,0.12) !important;
}

/* 浅色主题 - 弹窗底部分隔线 border-top/border-bottom with rgba(var(--v-theme-on-surface),0.1) */
.v-theme--light [style*="border-bottom: 1px solid rgba(var(--v-theme-on-surface),0.1)"],
.v-theme--light [style*="border-top: 1px solid rgba(var(--v-theme-on-surface),0.1)"] {
    border-color: rgba(47,43,61,0.1) !important;
}

/* 浅色主题 - TMDB 详情弹窗错误回退背景 */
.v-theme--light [style*="background:linear-gradient(135deg,#1a1a2e,#16213e)"],
.v-theme--light [style*="background: linear-gradient(135deg,#1a1a2e,#16213e)"] {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9) !important;
}

/* 浅色主题 - 弹窗图片遮罩渐变（TMDB 详情弹窗底部文字遮罩） */
.v-theme--light [style*="background:linear-gradient(transparent,rgba(0,0,0,0.8))"],
.v-theme--light [style*="background: linear-gradient(transparent,rgba(0,0,0,0.8))"] {
    background: linear-gradient(transparent, rgba(0,0,0,0.65)) !important;
}

/* 浅色主题 - 错误/警告状态背景 */
.v-theme--light [style*="background: rgba(255,76,81,0.08)"] {
    background: rgba(255,76,81,0.06) !important;
    border-color: rgba(255,76,81,0.15) !important;
}

.v-theme--light [style*="background: rgba(255,76,81,0.1)"] {
    background: rgba(255,76,81,0.06) !important;
}

/* 浅色主题 - 成功状态背景 */
.v-theme--light [style*="background: rgba(86,202,0,0.08)"] {
    background: rgba(86,202,0,0.06) !important;
    border-color: rgba(86,202,0,0.15) !important;
}

/* 浅色主题 - monospace 代码块（webhook 配置等） */
.v-theme--light [style*="font-family: monospace"][style*="background: rgba(0,0,0"] {
    background: rgba(47,43,61,0.06) !important;
    color: rgba(47,43,61,0.9) !important;
    border: 1px solid rgba(47,43,61,0.1);
}

/* 浅色主题 - 搜索结果卡片边框 */
.v-theme--light [style*="border: 1px solid rgba(var(--v-theme-on-surface),0.08)"] {
    border-color: rgba(47,43,61,0.1) !important;
}

/* 浅色主题 - opacity 样式的文字（TMDB 弹窗副标题等） */
.v-theme--light .text-white {
    color: white !important;
}

/* 浅色主题 - v-card-actions 底部栏背景 rgba(0,0,0,0.05) */
.v-theme--light .v-card-actions[style*="background: rgba(0,0,0,0.05)"],
.v-theme--light [style*="background: rgba(0,0,0,0.05)"] {
    background: rgba(47,43,61,0.03) !important;
}

/* 浅色主题 - 弹窗标题栏渐变背景保持可见 */
.v-theme--light .v-card-title[style*="background: linear-gradient(135deg"] {
    color: white !important;
}
.v-theme--light .v-card-title[style*="background: linear-gradient(135deg"] span,
.v-theme--light .v-card-title[style*="background: linear-gradient(135deg"] .v-icon {
    color: white !important;
}


/* ========== TMDB 看板样式 ========== */

/* 卡片网格布局 */
.tmdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 4px;
}

@media (min-width: 960px) {
    .tmdb-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
}

@media (min-width: 1280px) {
    .tmdb-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

/* 卡片容器 */
.tmdb-card-wrapper {
    animation: tmdbCardFadeIn 0.4s ease-out backwards;
}

.tmdb-card-wrapper:nth-child(1) { animation-delay: 0.02s; }
.tmdb-card-wrapper:nth-child(2) { animation-delay: 0.04s; }
.tmdb-card-wrapper:nth-child(3) { animation-delay: 0.06s; }
.tmdb-card-wrapper:nth-child(4) { animation-delay: 0.08s; }
.tmdb-card-wrapper:nth-child(5) { animation-delay: 0.10s; }
.tmdb-card-wrapper:nth-child(6) { animation-delay: 0.12s; }
.tmdb-card-wrapper:nth-child(7) { animation-delay: 0.14s; }
.tmdb-card-wrapper:nth-child(8) { animation-delay: 0.16s; }
.tmdb-card-wrapper:nth-child(9) { animation-delay: 0.18s; }
.tmdb-card-wrapper:nth-child(10) { animation-delay: 0.20s; }
.tmdb-card-wrapper:nth-child(11) { animation-delay: 0.22s; }
.tmdb-card-wrapper:nth-child(12) { animation-delay: 0.24s; }

@keyframes tmdbCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片主体 */
.tmdb-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(var(--v-theme-config-card), 0.6);
    border: 1px solid rgba(231,227,252,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tmdb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-color: rgba(61,111,213,0.3);
}

/* 海报区域 */
.tmdb-card-poster {
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* 2:3 比例 */
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.tmdb-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tmdb-card:hover .tmdb-card-img {
    transform: scale(1.05);
}

.tmdb-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* 类型角标 */
.tmdb-card-badge-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 3;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.badge-movie {
    background: rgba(33, 150, 243, 0.65);
}

.badge-tv {
    background: rgba(76, 175, 80, 0.65);
}

/* 评分角标 */
.tmdb-card-badge-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(var(--v-theme-on-surface),0.85);
    z-index: 3;
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0.75;
}

/* Hover 遮罩层 - MP 风格渐变 */
.tmdb-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(45, 55, 72, 0) 0%,
        rgba(45, 55, 72, 0.4) 40%,
        rgba(45, 55, 72, 0.92) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.tmdb-card:hover .tmdb-card-overlay {
    opacity: 1;
}

.tmdb-card-overlay-content {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.tmdb-card:hover .tmdb-card-overlay-content {
    transform: translateY(0);
}

.tmdb-card-overlay-year {
    font-size: 12px;
    font-weight: 600;
    color: rgba(var(--v-theme-on-surface),0.8);
    margin-bottom: 2px;
}

.tmdb-card-overlay-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 4px;
}

.tmdb-card-overlay-desc {
    font-size: 11px;
    color: rgba(var(--v-theme-on-surface),0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.tmdb-card-overlay-actions {
    display: flex;
    justify-content: flex-end;
}

/* 卡片底部信息 */
.tmdb-card-info {
    padding: 8px 10px;
}

.tmdb-card-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--v-theme-on-surface), 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.tmdb-card-year {
    font-size: 11px;
    color: rgba(var(--v-theme-on-surface), 0.5);
    margin-top: 2px;
}

/* 标签页按钮 */
.tmdb-tab-btn {
    transition: all 0.25s ease !important;
}

.tmdb-tab-btn:hover {
    transform: translateY(-1px);
}

/* 骨架屏 */
.tmdb-skeleton {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(var(--v-theme-config-card), 0.6);
    border: 1px solid rgba(231,227,252,0.08);
}

.tmdb-skeleton-img {
    width: 100%;
    padding-bottom: 150%;
    background: linear-gradient(
        110deg,
        rgba(var(--v-theme-on-surface),0.04) 8%,
        rgba(var(--v-theme-on-surface),0.08) 18%,
        rgba(var(--v-theme-on-surface),0.04) 33%
    );
    background-size: 200% 100%;
    animation: tmdbShimmer 1.5s linear infinite;
}

.tmdb-skeleton-text {
    padding: 10px;
}

.tmdb-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(
        110deg,
        rgba(var(--v-theme-on-surface),0.04) 8%,
        rgba(var(--v-theme-on-surface),0.08) 18%,
        rgba(var(--v-theme-on-surface),0.04) 33%
    );
    background-size: 200% 100%;
    animation: tmdbShimmer 1.5s linear infinite;
    margin-bottom: 6px;
}

.tmdb-skeleton-line.short {
    height: 10px;
}

@keyframes tmdbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 详情弹窗 */
.tmdb-detail-card {
    overflow: hidden;
}

.tmdb-detail-backdrop {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.tmdb-detail-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-detail-backdrop-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.tmdb-detail-backdrop-info {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 60px;
    z-index: 2;
}

.tmdb-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(4px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 浅色主题适配 */
.v-theme--light .tmdb-card {
    background: rgba(var(--v-theme-on-surface),0.9);
    border-color: rgba(47,43,61,0.1);
}

.v-theme--light .tmdb-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border-color: rgba(61,111,213,0.3);
}

.v-theme--light .tmdb-skeleton {
    background: rgba(var(--v-theme-on-surface),0.9);
    border-color: rgba(47,43,61,0.1);
}

.v-theme--light .tmdb-skeleton-img,
.v-theme--light .tmdb-skeleton-line {
    background: linear-gradient(
        110deg,
        rgba(0,0,0,0.04) 8%,
        rgba(0,0,0,0.08) 18%,
        rgba(0,0,0,0.04) 33%
    );
    background-size: 200% 100%;
    animation: tmdbShimmer 1.5s linear infinite;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .tmdb-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .tmdb-card-overlay-desc {
        display: none;
    }

    .tmdb-card-badge-type,
    .tmdb-card-badge-rating {
        font-size: 10px;
        padding: 1px 5px;
    }

    .tmdb-card-info {
        padding: 6px 8px;
    }

    .tmdb-card-title {
        font-size: 12px;
    }

    .tmdb-detail-backdrop {
        height: 200px;
    }
}

/* ==================== 移动端底部导航栏 ==================== */
.footer-nav-container {
    position: fixed;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.footer-nav-card {
    pointer-events: auto;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    padding: 4px 6px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 58px;
}

.footer-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
}

.footer-nav-btn:active {
    transform: scale(0.92);
}

.footer-nav-btn-active {
    background: rgba(var(--v-theme-primary), 0.12);
}

.footer-nav-label {
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

/* 移动端底栏时主内容区底部留白 */
.mobile-has-footer .app-container {
    padding-bottom: 80px !important;
}

/* 浅色主题下底栏边框调整 */
.v-theme--light .footer-nav-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ========== 添加订阅弹窗样式 ========== */
.sub-add-title {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sub-add-content {
    padding: 16px 20px;
}
.sub-add-actions {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .sub-add-dialog .v-overlay__content {
        margin: 8px !important;
        max-height: calc(100vh - 16px) !important;
    }
    .sub-add-title {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
    .sub-add-content {
        padding: 12px !important;
    }
    .sub-add-actions {
        padding: 10px 12px !important;
    }
}
