/* 一哔音乐 - 自定义样式补充（参考 Mp3cut 的 style.css 风格） */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 文本截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #f1f1f1, #e8e8e8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #c1c1c1, #a8a8a8);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #a8a8a8, #888888);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(-45deg, #8b5cf6, #ec4899, #3b82f6, #06b6d4);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 卡片悬停 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 浮动动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 文档型页面正文排版 */
.prose-doc h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose-doc h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose-doc p {
    color: #4b5563;
    line-height: 1.85;
    margin-bottom: 0.75rem;
}

.prose-doc a {
    color: #7c3aed;
    text-decoration: underline;
}

.prose-doc a:hover {
    color: #5b21b6;
}

/* 响应式：移动端导航可横向滚动 */
.nav-scroll::-webkit-scrollbar {
    height: 4px;
}
