/* Tailwind 配置 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .lyric-line-active {
        @apply bg-primary/10 border-l-4 border-primary;
    }
    .btn-hover {
        @apply transition-all duration-300 hover:shadow-lg transform hover:-translate-y-0.5 active:translate-y-0;
    }
    .card-effect {
        @apply bg-white rounded-xl shadow-md hover:shadow-lg transition-all duration-300;
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-out forwards;
    }
    .animate-slide-up {
        animation: slideUp 0.5s ease-out forwards;
    }
    .animate-pulse-soft {
        animation: pulseSoft 2s infinite ease-in-out;
    }
    .scale-hover {
        @apply transition-transform duration-300 hover:scale-105;
    }
}


.logo-icon{
    display: inline-block;
    vertical-align: text-bottom;
    width: 32px;
    height: 32px;
    background: url(https://stusic.pic.jhsycm.cn/ame/ame-pic/amemusic-home-logo/20250820/%E5%B7%A8%E6%A0%B8%E9%9F%B3%E4%B9%90%E3%80%8Clogo%E3%80%8D%E6%A0%87%E8%AF%86-%E6%8B%B7%E8%B4%9D-new-lan.png) no-repeat;
    background-size: auto;
    background-size: 100% 100%;
    margin-right: 0px;
    margin-bottom: -2px;

}

/* 自定义颜色配置 */
:root {
    --primary: #165DFF;
    --secondary: #FF7D00;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --red-500: #EF4444;
    --green-500: #22C55E;
    --yellow-500: #EAB308;
    --blue-500: #3B82F6;
}

/* 全局样式 */
.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}
body {
    background-color: var(--gray-50);
    color: var(--dark);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* -------------- 核心：移动端屏蔽层样式 -------------- */
/* 移动端屏蔽容器（默认隐藏，JS检测后显示） */
#mobileBlocker {
    display: none;
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 99999; /* 最高层级，覆盖所有内容 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}
/* 移动端图标样式 */
#mobileBlocker .blocker-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
/* 移动端标题样式 */
#mobileBlocker .blocker-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}
/* 移动端提示文本样式 */
#mobileBlocker .blocker-desc {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 300px;
    line-height: 1.5;
}

/* 基础动画定义 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes pulseSoft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* -------------- 1. 所有按钮样式 -------------- */
#helpBtn,
#aboutBtn {
    color: var(--gray-600);
    transition: color 0.3s ease;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#helpBtn:hover,
#aboutBtn:hover {
    color: var(--primary);
}
#helpBtn i,
#aboutBtn i {
    margin-right: 0.25rem;
}

#clearLyrics,
#splitLines {
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: color 0.3s ease;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#clearLyrics:hover {
    color: var(--red-500);
}
#splitLines:hover {
    color: var(--primary);
}
#clearLyrics i,
#splitLines i {
    margin-right: 0.25rem;
}

#loadLyrics {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#loadLyrics i {
    margin-right: 0.25rem;
}

#audioFile + label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

#audioFile {
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}
#audioFile::-webkit-file-upload-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}
#audioFile::-webkit-file-upload-button:hover {
    background-color: rgba(22, 93, 255, 0.2);
}

#prevLine,
#nextLine {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#prevLine:hover,
#nextLine:hover {
    background-color: var(--gray-200);
}
#prevLine i,
#nextLine i {
    margin-right: 0.25rem;
}

#addTimestamp {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#addTimestamp i {
    margin-right: 0.25rem;
}

#copyLRC {
    font-size: 0.875rem;
    color: var(--primary);
    transition: color 0.3s ease;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#copyLRC:hover {
    color: rgba(22, 93, 255, 0.8);
}
#copyLRC i {
    margin-right: 0.25rem;
}

#downloadLRC {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#downloadLRC i {
    margin-right: 0.25rem;
}

#closeHelp,
#closeAbout {
    color: var(--gray-500);
    transition: color 0.3s ease;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}
#closeHelp:hover,
#closeAbout:hover {
    color: var(--gray-700);
}
#closeHelp i,
#closeAbout i {
    font-size: 1.25rem;
}

/* -------------- 2. 颜色样式与过渡动画 -------------- */
.text-primary {
    color: var(--primary);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.text-primary:hover {
    text-shadow: 0 0 8px rgba(22, 93, 255, 0.3);
}
.bg-primary {
    background-color: var(--primary);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.bg-primary:hover {
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.4);
}
.bg-primary\/10 {
    background-color: rgba(22, 93, 255, 0.1);
    transition: background-color 0.3s ease;
}
.bg-primary\/50 {
    background-color: rgba(22, 93, 255, 0.5);
}
.border-primary {
    border-color: var(--primary);
    transition: border-color 0.3s ease;
}

.text-secondary {
    color: var(--secondary);
    transition: color 0.3s ease;
}
.bg-secondary {
    background-color: var(--secondary);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.bg-secondary:hover {
    transform: translateY(-2px);
}

.text-dark {
    color: var(--dark);
    transition: color 0.3s ease;
}
.bg-dark {
    background-color: var(--dark);
    transition: background-color 0.3s ease;
}

.text-light {
    color: var(--light);
    transition: color 0.3s ease;
}
.bg-light {
    background-color: var(--light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* -------------- 3. 通用过渡动画 -------------- */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.transform {
    transform: translateZ(0);
}

/* -------------- 4. 交互元素基础动画 -------------- */
button, 
.btn,
input[type="button"],
input[type="submit"],
a[href] {
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
button::after,
.btn::after,
input[type="button"]::after,
input[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
button:active::after,
.btn:active::after,
input[type="button"]:active::after,
input[type="submit"]:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.hover\:-translate-y-0.5:hover {
    transform: translateY(-0.125rem);
}
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* -------------- 5. 输入框/文本域样式 -------------- */
input, textarea, select {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
    transform: translateY(-1px);
}

#lyricsInput {
    width: 100%;
    height: 16rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    resize: none;
    outline: none;
}
#lrcOutput {
    width: 100%;
    height: 12rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: var(--gray-50);
    resize: none;
    outline: none;
    font-size: 0.875rem;
    readonly: true;
}

/* -------------- 6. 音频播放器样式 -------------- */
#audioPlayer {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}
#currentTime {
    text-align: center;
    font-size: 1.25rem;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}



/* -------------- 7. 歌词编辑区样式 -------------- */
#lyricsEditor {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.5rem;
}
#lyricsEditor .text-gray-500 {
    color: var(--gray-500);
    text-align: center;
    padding: 2.5rem 0;
}
#lyricsEditor .text-gray-500 i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* -------------- 8. 模态框样式 -------------- */
#helpModal,
#aboutModal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}
#helpModal.flex,
#aboutModal.flex {
    display: flex;
}
#helpModal .bg-white,
#aboutModal .bg-white {
    position: relative;
    z-index: 1000;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
#helpModal .max-w-2xl {
    max-width: 42rem;
    width: 100%;
}
#helpModal .max-h-\[90vh\] {
    max-height: 90vh;
    overflow-y: auto;
}
#aboutModal .max-w-md {
    max-width: 28rem;
    width: 100%;
}
#helpModal .p-6,
#aboutModal .p-6 {
    padding: 1.5rem;
}
#helpModal .border-b {
    border-bottom: 1px solid var(--gray-100);
}
#helpModal .text-xl,
#aboutModal .text-xl {
    font-size: 1.25rem;
    font-weight: 600;
}
#helpModal .space-y-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 1rem;
}
#helpModal .font-semibold {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
#helpModal .list-decimal {
    list-style-type: decimal;
    padding-left: 1.25rem;
    gap: 0.5rem;
}
#helpModal .list-disc {
    list-style-type: disc;
    padding-left: 1.25rem;
    gap: 0.5rem;
}
#helpModal kbd {
    padding: 0.25rem 0.5rem;
    background-color: var(--gray-100);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
}
#aboutModal .text-center {
    text-align: center;
}


#aboutModal .text-33r{
 text-align: left;
 margin-bottom: 0.4rem;
}

#aboutModal .inline-flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
}
#aboutModal .text-3xl {
    font-size: 1.875rem;
}

#aboutModal .bg-gray-100  {
--tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));

}


#aboutModal .bg-gray-200 {
--tw-bg-opacity: 1;
    background-color: #165dff;
    border-radius: 0.5rem;
    margin-bottom: 10px;
    width: 80px;

}

#aboutModal .bg-txt-200 {
--tw-bg-opacity: 1;
    color: #fff;

}




/* -------------- 9. 通知提示框样式 -------------- */
#notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    background-color: var(--red-500);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    transform: translateY(5rem);
    opacity: 0;
    visibility: hidden;
}
#notification.translate-y-0.opacity-100 {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
#notification.translate-y-20.opacity-0 {
    transform: translateY(5rem);
    opacity: 0;
    visibility: hidden;
}
#notificationIcon {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* -------------- 10. 滚动条样式 -------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    transition: all 0.3s ease;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
    width: 8px;
    height: 8px;
}

/* -------------- 11. 布局样式 -------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lg\:col-span-2 {
    grid-column: span 2 / span 2;
}
.gap-8 {
    gap: 2rem;
}
.gap-2 {
    gap: 0.5rem;
}
.space-y-6 {
    gap: 1.5rem;
}
.space-y-4 {
    gap: 1rem;
}
.flex {
    display: flex;
}
.justify-between {
    justify-content: space-between;
}
.items-center {
    align-items: center;
}
.space-x-2 {
    gap: 0.5rem;
}
.space-x-4 {
    gap: 1rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mt-4 {
    margin-top: 1rem;
}

/* -------------- 12. 顶部导航栏样式 -------------- */
header {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
header .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}
.md\:text-2xl {
    font-size: 1.5rem;
}

.text-2xy  {
 margin-right: 8px;

 }

/* -------------- 13. 响应式样式（仅桌面端生效，移动端被屏蔽） -------------- */
@media (max-width: 767px) {
    /* 移动端隐藏所有工具内容（通过屏蔽层覆盖，此处冗余保障） */
    header, main, #helpModal, #aboutModal, #notification {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .card-effect {
        transition: all 0.5s ease-out;
    }
    .card-effect:hover {
        transform: translateY(-5px);
    }
    .navbar {
        transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    }
    .navbar.scrolled {
        background-color: var(--light);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}


.fa-pc {

     font-size: 100px;
    }

 #mobileBlocker i.fa-mobile {
            animation: pulse 2s infinite;
            font-size: 6rem;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        /* 屏蔽层文本优化 */
        #mobileBlocker p {
            line-height: 1.8;
            margin-top: 0.5rem;
            text-align: center;
            max-width: 280px;
        }
        /* 确保logo-icon样式（避免图标缺失） */
        .logo-icon {
            width: 24px;
            height: 24px;
            background: url('https://stusic.pic.jhsycm.cn/ame/ame-pic/amemusic-home-logo/20250820/favicon.ico') no-repeat center;
            background-size: contain;
            display: inline-block;
        }

   #mobileBlocker.fa-tx   {

       box-shadow: 0 4px 6px -1px rgb(0, 0, 0);

        }
        
   #mobileBlocker i.fa-mobile {
            animation: pulse 2s infinite; /* 图标呼吸动画 */
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        /* 优化文本可读性 */
        #mobileBlocker p {
            line-height: 1.8;
            margin-top: 0.5rem;
        }

@media (min-width: 1024px) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .text-primary:hover {
        text-shadow: 0 0 8px rgba(22, 93, 255, 0.4);
    }
    .bg-primary:hover {
        box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
        transform: translateY(-2px);
    }
    .card-effect {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .card-effect:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .nav-item {
        position: relative;
    }
    .nav-item::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }
    .nav-item:hover::after {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .animate-float {
        transition: transform 0.6s ease-in-out;
    }
    .animate-float:hover {
        transform: translateY(-10px) rotate(1deg);
    }
    .parallax-bg {
        transition: transform 0.1s ease-out;
    }
}

/* -------------- 14. 加载状态动画 -------------- */
.loading {
    position: relative;
    overflow: hidden;
}
.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}