/* 酷炫全局样式 */
body {
    font-family: "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%) !important;
    background-attachment: fixed;
    color: #2c3e50;
    overflow-x: hidden;
}

.io-black-mode body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%) !important;
    color: #e6e6e6;
}

/* 全局文本高亮效果 */
::selection {
    background: rgba(52, 152, 219, 0.4);
}

/* 调整整体文本颜色以提高可读性 */
body {
    color: #2d3748;
}

.text-muted,
.text-gray,
.overflowClip_1 {
    color: #4a5568 !important;
}

/* 卡片内文字颜色优化 */
.url-card .card {
    color: #2d3748;
}

.io-black-mode .url-card .card {
    color: #e2e8f0;
}

.url-card h3,
.url-card h4,
.url-card h5,
.url-card h6 {
    color: #2d3748 !important;
}

.io-black-mode .url-card h3,
.io-black-mode .url-card h4,
.io-black-mode .url-card h5,
.io-black-mode .url-card h6 {
    color: #e2e8f0 !important;
}

.url-card p,
.url-card .text-muted {
    color: #4a5568 !important;
}

.io-black-mode .url-card p,
.io-black-mode .url-card .text-muted {
    color: #cbd5e0 !important;
}

/* 特定元素文字颜色优化 */
.url-card .text-sm.overflowClip_1 {
    color: #2d3748 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.io-black-mode .url-card .text-sm.overflowClip_1 {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 卡片进入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.url-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.url-card:nth-child(1) { animation-delay: 0.1s; }
.url-card:nth-child(2) { animation-delay: 0.2s; }
.url-card:nth-child(3) { animation-delay: 0.3s; }
.url-card:nth-child(4) { animation-delay: 0.4s; }
.url-card:nth-child(5) { animation-delay: 0.5s; }
.url-card:nth-child(6) { animation-delay: 0.6s; }
.url-card:nth-child(7) { animation-delay: 0.7s; }
.url-card:nth-child(8) { animation-delay: 0.8s; }
.url-card:nth-child(9) { animation-delay: 0.9s; }
.url-card:nth-child(10) { animation-delay: 1.0s; }

/* 按钮涟漪效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* 加载动画样式 */
.loader {
    width: 250px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: helvetica, arial, sans-serif;
    font-weight: 900;
    color: #f1404b;
    letter-spacing: 0.2em
}

.loader::before,
.loader::after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: #f1404b;
    position: absolute;
    animation: load .7s infinite alternate ease-in-out
}

.loader::before {
    top: 0
}

.loader::after {
    bottom: 0
}

@keyframes load {
    0% {
        left: 0;
        height: 30px;
        width: 15px
    }

    50% {
        height: 8px;
        width: 40px
    }

    100% {
        left: 235px;
        height: 30px;
        width: 15px
    }
}
