/* ================== 复刻 22.html 风格 ================== */

/* 1. 全局背景 */
body, #app, .layout-container {
    background-color: #f4f6f9 !important;
}

/* 2. 顶部统计卡片 (和 22.html 一致) */
.overview-box .item {
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
    border: none !important;
    padding: 24px !important;
    transition: all 0.3s ease !important;
}

.overview-box .item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* 3. 图标容器美化 (去掉蓝底，换成 22.html 的淡色底) */
.overview-box .icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    background: transparent !important; /* 清除原主题背景 */
    box-shadow: none !important;
}

/* 图标本体大小 */
.overview-box .icon i {
    font-size: 24px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: inherit !important; /* 继承父级颜色 */
}

/* 分别上色 (对应 22.html 的 icon-bg-blue 等) */
/* 第1个：蓝色 */
.overview-box .ant-col:nth-child(1) .icon { background: rgba(59, 130, 246, 0.1) !important; color: #3b82f6 !important; }
/* 第2个：紫色 */
.overview-box .ant-col:nth-child(2) .icon { background: rgba(139, 92, 246, 0.1) !important; color: #8b5cf6 !important; }
/* 第3个：绿色 (这里是你的剩余流量) */
.overview-box .ant-col:nth-child(3) .icon { background: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
/* 第4个：橙色 */
.overview-box .ant-col:nth-child(4) .icon { background: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }


/* 4. 【重点】快速导入按钮美化 (复刻 22.html) */
/* 选中快速导入区域的所有按钮 */
.quick-import-box button, 
.quick-import-box .ant-btn {
    border: none !important;
    color: white !important;
    padding: 0 20px !important; /* 这里的 padding 影响按钮胖瘦 */
    height: 38px !important;    /* 增加高度 */
    border-radius: 50px !important; /* 胶囊形状 */
    font-weight: 500 !important;
    margin: 5px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s !important; /* 添加动效 */
    
    /* 确保图标和文字对齐 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* 鼠标放上去放大的特效 */
.quick-import-box button:hover,
.quick-import-box .ant-btn:hover {
    transform: scale(1.05) !important; /* 放大 1.05 倍 */
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

/* 5. 给按钮分别上渐变色 (按顺序模拟 22.html) */

/* 第1个按钮 (复制)：绿色渐变 */
.quick-import-box button:nth-of-type(1),
.quick-import-box .ant-btn:nth-of-type(1) {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
}

/* 第2个按钮 (二维码)：蓝色渐变 */
.quick-import-box button:nth-of-type(2),
.quick-import-box .ant-btn:nth-of-type(2) {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* 第3个按钮：深色渐变 (Clash) */
.quick-import-box button:nth-of-type(3),
.quick-import-box .ant-btn:nth-of-type(3) {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%) !important;
}

/* 第4个按钮：紫色渐变 (Surge) */
.quick-import-box button:nth-of-type(4),
.quick-import-box .ant-btn:nth-of-type(4) {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%) !important;
}

/* 第5个按钮：蓝色渐变 (Shadowrocket) */
.quick-import-box button:nth-of-type(5),
.quick-import-box .ant-btn:nth-of-type(5) {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}


/* 6. 其他卡片圆角 */
.use-shadow, .plan-card, .ant-card {
    border-radius: 20px !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

/* 隐藏页脚 */
.footer { display: none !important; }
/* ================== 🌊 清爽气泡水流 (剩余流量版) ================== */

/* 1. 容器：变为“装满水的盒子”，且强制让内容靠右对齐 */
.ant-progress-inner {
    height: 18px !important; /* 调整高度，使其更清爽 */
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    
    /* 清爽的蓝色水流背景 */
    background: linear-gradient(90deg, #7bc1ff 0%, #8bc8ff 100%) !important;
    
    /* 【关键】让内部的“已用进度条”靠右，从而把蓝色留在左边 */
    display: flex !important;
    flex-direction: row-reverse !important;
}

/* 2. 气泡特效：在蓝色区域产生稀疏小气泡 */
.ant-progress-inner::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    /* 制作稀疏的小气泡：两种大小的圆点交错 */
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 60px 40px, 90px 70px; /* 控制气泡的稀疏程度 */
    animation: bubbles-move 4s linear infinite !important;
}

/* 3. 进度条：变为“白色空气遮罩” (代表已用流量) */
.ant-progress-bg {
    height: 100% !important;
    background-color: #f1f9ff !important; /* 必须与你的卡片背景色一致 */
    border-radius: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 4. 水面分界线：清爽的微光边缘 */
.ant-progress-bg::after {
    content: "" !important;
    position: absolute !important;
    left: 0; /* 在白色遮罩的左侧，即水面位置 */
    top: 0; bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: -2px 0 10px rgba(0, 242, 254, 0.8) !important;
}

/* --- 动画定义 --- */

/* 气泡缓缓漂浮动画 */
@keyframes bubbles-move {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 60px -40px, 90px -70px;
    }
}