.text-balance {
    text-wrap: balance;
}
.card-hover {
    transition: all 2800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-color: transparent;
    background-position: 0% 0%;
    background-size: 200% 200%;
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 25px 50px -12px rgba(196, 47, 176, 0.25), 0 15px 30px -10px rgba(196, 47, 176, 0.15);
    border-color: rgba(196, 47, 176, 0.4);
    background-position: 100% 100%;
}
.card-hover .fa {
    transition: all 2800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-hover:hover .fa {
    transform: scale(1.1) rotate(2deg);
    color: rgba(196, 47, 176, 0.9);
}
.version-badge {
    transition: all 2800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
}
.version-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 20px -5px rgba(196, 47, 176, 0.25), 0 8px 8px -4px rgba(196, 47, 176, 0.15);
    border-color: rgba(196, 47, 176, 0.4);
    background-color: rgba(196, 47, 176, 0.15);
}
.btn-effect {
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 47, 176, 0.2), transparent);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.btn-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(196, 47, 176, 0.1);
    transform: translate(-50%, -50%);
    transition: width 1.2s, height 1.2s;
    z-index: -1;
}
.btn-effect:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(196, 47, 176, 0.3), 0 10px 15px -5px rgba(196, 47, 176, 0.2);
    border-color: rgba(196, 47, 176, 0.5);
}
.btn-effect:hover::before {
    left: 100%;
}
.btn-effect:hover::after {
    width: 300px;
    height: 300px;
}
.btn-effect:active {
    transform: translateY(0) scale(1);
    transition-duration: 100ms;
}
.btn-effect img {
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-effect:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* 基础样式 - 自适应主题 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    scroll-behavior: smooth;
}

/* 主题切换按钮动画 */
#themeToggle {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 图标基础样式 - 添加过渡效果 */
#themeToggle i {
    transition: transform 0.6s ease-in-out;
    transform-origin: center;
}

/* 深色模式下的月亮图标 - 水平镜面翻转动画 */
:root.dark #themeToggle:hover .fa-moon-o {
    transform: scaleX(-1);
}

/* 浅色模式下的太阳图标 - 旋转动画 */
:root.light #themeToggle:hover .fa-sun-o {
    transform: rotate(360deg);
}

/* 滚动条样式 - 适配深色/浅色模式 */
:root.dark ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
:root.dark ::-webkit-scrollbar-thumb {
    background-color: #C42FB0;
    border-radius: 2px;
}
:root.dark ::-webkit-scrollbar-track {
    background-color: #181825;
}

:root.light ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
:root.light ::-webkit-scrollbar-thumb {
    background-color: #9C27B0;
    border-radius: 2px;
}
:root.light ::-webkit-scrollbar-track {
    background-color: #E2E8F0;
}
