/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap'); */

@font-face {
    font-family: 'LXGW WenKai';
    src: url('../fonts/LXGWWenKai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+F900-FAFF, U+2F800-2FA1F;
}

/* 以下为 index.html 内联样式自动分离 */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f1f1f1;
    --accent-color: #0270ff;
    --dark-bg: #121212;
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --border-radius: 10px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-standard: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-main: 'LXGW WenKai', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --aplayer-sticky-bg-alpha: 0.8; /* 当前播放置顶项背景透明度 (0~1) */
}
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: var(--dark-bg);
    font-family: 'LXGW WenKai', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
    cursor: url('../img/mouse.png'), auto;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 1;
}
.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--overlay-bg);
}
.content {
    text-align: center;
    color: var(--primary-color);
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.logo img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-standard);
}

.title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: 3px;
}

/* 导航栏样式 - 现代化美化版 */
.navigation {
    margin: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.nav-item {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.nav-item:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.nav-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover:before {
    width: 100%;
}

/* 当前项目指示器 */
.nav-item.active {
    color: var(--accent-color);
    font-weight: 600;
    opacity: 1;
}

.nav-item.active:before {
    width: 100%;
}

.hitokoto {
    margin: 2rem auto;
    font-style: normal;
    opacity: 0.9;
    max-width: 600px;
    padding: 0 1rem;
}

.hitokoto-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.hitokoto-from {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center; /* 修改为居中显示 */
    font-style: italic;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.avatar img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-normal);
}

.avatar img:hover {
    transform: scale(1.1);
}

.name {
    font-size: 2rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bio {
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面区块 */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s ease, backdrop-filter 0.4s ease;
    visibility: hidden;
    
    /* 毛玻璃效果 */
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section:target {
    transform: translateY(0);
    visibility: visible;
}

/* 当没有hash时，确保所有section都隐藏 */
.section {
    transform: translateY(100%);
    visibility: hidden;
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
     display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    letter-spacing: 0.3px;
    opacity: 0.8;
    z-index: 1000;
    padding: 0.5rem;
}

.back-btn:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(-3px);
}

.back-btn:active {
    transform: translateX(-1px);
    transition: all 0.1s ease;
}

.back-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-2px);
}

.back-btn span {
    font-weight: 500;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    color: var(--primary-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

/* 返回按钮布局优化已整合到上方section样式中 */
/* 所有返回按钮相关样式已完成优化 */

.section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    /* 移除底部内边距，因为不再需要下划线空间 */
    /* padding-bottom: 1rem; */
    display: inline-block;
}

/* 移除标题下划线
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}
*/

.about-content {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.about-avatar {
    flex: 1;
    text-align: center;
}

.about-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.about-info {
    flex: 2;
    min-width: 300px;
}

.about-info h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.about-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.about-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
    display: inline-block;
}

.about-social a:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

/* 留言板样式 */
.guestbook-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.guestbook-notice {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.loading-message {
    color: var(--primary-color);
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

/* Giscus 容器样式 */
.giscus-container {
    width: 100%;
    min-height: 300px;
    margin: 1rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

/* 确保noscript标签在禁用JavaScript时正确显示 */
.giscus-container noscript {
    color: var(--primary-color);
    text-align: center;
    display: block;
    padding: 2rem 0;
}

/* Giscus暗色主题自定义 */
.giscus-frame {
    border: none !important;
    width: 100% !important;
    min-height: 300px !important;
    background: transparent !important;
}

/* 修复Giscus框架加载问题 */
.giscus {
    width: 100% !important;
    margin: 0 !important;
}

/* 更好的暗色主题支持 */
.giscus-frame {
    color-scheme: dark;
    background-color: transparent !important;
}



/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* 移除黑色背景 */
    /* background-color: rgba(0, 0, 0, 0.7); */
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    z-index: 10;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    /* 添加文本阴影增加可读性 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* 响应式设计优化 */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-avatar {
        margin-bottom: 1rem;
    }

    .skill-tags {
        justify-content: center;
    }

    .content {
        padding: 1.5rem;
        width: 95%;
    }

    .title {
        font-size: 1.8rem;
    }

    /* 导航在平板上保持横向 */
    .navigation {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-bottom: 0.8rem;
    }

    .social-links {
        gap: 1rem;
    }
    

    
    /* 优化滚动区域 */
    .section {
        padding-bottom: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-avatar img {
        width: 150px;
        height: 150px;
    }

    .hitokoto-text {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 0.8rem 0;
        font-size: 0.8rem;
    }
    
    /* 移动端导航调整为纵向排列 */
    .navigation {
        flex-direction: column;
        gap: 1rem;
        border-bottom: none;
        max-width: 100%;
    }
    
    .nav-item {
        padding: 0.4rem 0;
        /* 移除底部边框 */
        /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
        width: 50%;
    }
    
    .nav-item.active {
        /* 移除底部边框宽度 */
        /* border-bottom-width: 2px; */
    }
    
    /* 调整移动端间距 */
    .content {
        padding: 1rem;
    }
    
    .hitokoto {
        margin: 1.5rem auto;
    }
    
    /* 改进滚动体验 */
    .section::-webkit-scrollbar {
        width: 4px;
    }
}

/* 现代化加载屏幕 */
#global-loading {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: opacity 0.4s ease-out;
}

#global-loading.hide {
  opacity: 0;
  pointer-events: none;
}

/* 为移动端优化动画性能 */
@media (prefers-reduced-motion: reduce) {
  .modern-loader * {
    animation-duration: 0.1s !important;
    animation-iteration-count: 1 !important;
  }
}

/* 响应式加载动画 */
@media screen and (max-width: 480px) {
  .modern-loader {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 1.5rem !important;
  }
  
  .loader-center {
    width: 35px !important;
    height: 35px !important;
  }
  
  .loader-logo {
    font-size: 12px !important;
  }
  
  .loading-text {
    font-size: 1rem !important;
  }
  
  .loading-progress {
    width: 150px !important;
  }
}

.ripple-effect {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(74, 137, 220, 0.25);
  transform: scale(0);
  animation: ripple-animate 0.6s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
}
@keyframes ripple-animate {
  to {
    transform: scale(6);
    opacity: 0;
  }
}

a, button, .nav-item, .back-btn {
  cursor: url('/assets/img/mouse.png'), auto !important;
}

/* 简化的按钮交互效果 */
.nav-item,
.nav-link-item,
.back-btn {
    cursor: pointer;
}

/* 移除复杂的连锁效果，保持简洁 */
/* 按钮基础样式已在上方定义 */

/* ====== 友链板块样式 ====== */
.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: flex-start;
}
.friend-item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--primary-color);
  box-shadow: var(--shadow-standard);
  min-width: 220px;
  max-width: 320px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 0.5rem;
}
.friend-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.friend-item img {
  margin-right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #fff;
}
.friend-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.friend-desc {
  font-size: 0.95em;
  color: #bdbdbd;
  opacity: 0.85;
}
.friend-submit {
  background: rgba(255,255,255,0.04);
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem 1rem 1rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-standard);
  max-width: 400px;
}
.friend-submit h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 500;
}
#friend-link-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#friend-link-form input,
#friend-link-form textarea {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: var(--primary-color);
  font-size: 1rem;
  outline: none;
  transition: background var(--transition-fast);
}
#friend-link-form input:focus,
#friend-link-form textarea:focus {
  background: rgba(255,255,255,0.18);
}
#friend-link-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  margin-top: 0.5rem;
}
#friend-link-form button:hover {
  background: #357ab8;
  transform: translateY(-2px) scale(1.04);
}
#friend-link-result {
  margin-top: 0.5rem;
  color: #6cf;
  font-size: 0.98rem;
}
@media screen and (max-width: 768px) {
  .friends-list {
    flex-direction: column;
    align-items: stretch;
  }
  .friend-item {
    max-width: 100%;
    min-width: 0;
  }
  .friend-submit {
    max-width: 100%;
  }
}

.avatar-round { border-radius: 50%; }
.mb-05 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 2rem; }
.friend-result { margin-top: 0.5rem; color: #6cf; }

/* 个人导航板块样式 */
.navigation-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    opacity: 0.9;
}

.navigation-categories {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-category:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.nav-category h3 {
    color: var(--primary-color);
    margin: 0 0 1.2rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-category h3 i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.nav-links {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

.nav-link-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link-item:hover:before {
    width: 100%;
}

.nav-link-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-link-item:hover .nav-name {
    color: var(--accent-color);
}

.nav-link-item:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.nav-icon {
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-link-item:hover .nav-icon {
    transform: scale(1.1);
    opacity: 1;
}

.emoji-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 20px;
    background: transparent;
    border: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-link-item:hover .emoji-icon {
    transform: scale(1.1);
    opacity: 1;
}

.nav-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.nav-link-item:hover .nav-name {
    color: var(--accent-color);
}

.nav-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.nav-link-item:hover .nav-desc {
    opacity: 1;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .navigation-categories {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .nav-category {
        padding: 1.2rem;
    }
    
    .nav-links {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .nav-link-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
        padding: 3px;
    }
    
    .emoji-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    /* 修改主页面导航样式，在平板上改为网格布局 */
    .navigation {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 90%;
        max-width: 450px;
        padding: 0.5rem 0;
    }
    
    .nav-item {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }
    
    .nav-item:hover {
        transform: translateY(-1px);
    }
    
    .back-btn {
        top: 1.5rem;
        left: 1.5rem;
        font-size: 0.95rem;
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .back-btn:hover {
        transform: translateX(-2px);
    }
    
    .back-btn i {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }
    
    .nav-link-item {
        padding: 0.7rem;
        gap: 0.6rem;
    }
    
    .nav-icon {
        width: 30px;
        height: 30px;
        padding: 2px;
    }
    
    .emoji-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .nav-category h3 {
        font-size: 1.1rem;
    }
    
    /* 移动端导航恢复为纵向单列居中 */
    .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0;
    }
    .nav-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        min-width: unset;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-item:hover {
        transform: translateY(-1px);
    }
    
    .back-btn {
        top: 1rem;
        left: 1rem;
        font-size: 0.9rem;
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .back-btn:hover {
        transform: translateX(-2px);
    }
    
    .back-btn i {
        font-size: 0.9rem;
    }
    
    /* 移动端section内边距调整 */
    .section {
        padding: 1.5rem 1rem;
    }
    
    .about-container {
        padding: 1.5rem 1rem;
    }
    
    /* 移动端按钮触摸优化 */
    .nav-item,
    .nav-link-item,
    .back-btn {
        min-height: 44px; /* 触摸友好的最小高度 */
        -webkit-tap-highlight-color: transparent;
    }
}

/* Sakana Widget 自定义样式 */
#sakana-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    pointer-events: none;
}

#sakana-widget .sakana-widget-app {
    pointer-events: auto;
    transition: all 0.3s ease;
}

#sakana-widget .sakana-widget-app:hover {
    transform: scale(1.05);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    #sakana-widget {
        bottom: 15px;
        right: 15px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }
}

@media screen and (max-width: 480px) {
    #sakana-widget {
        bottom: 10px;
        right: 10px;
        transform: scale(0.7);
    }
}

/* 暗色主题适配 */
#sakana-widget .sakana-widget-controls {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
}

#sakana-widget .sakana-widget-controls button {
    color: #fff !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

#sakana-widget .sakana-widget-controls button:hover {
    background: rgba(74, 137, 220, 0.3) !important;
    border-radius: 4px !important;
}

/* 确保小组件不会被其他元素遮挡 */
#sakana-widget {
    isolation: isolate;
}

/* APlayer 使用默认样式，移除进度条自定义以恢复原布局 */

/* 歌词区域：仅在非固定/非迷你模式下显示，避免固定迷你模式出现空白占位 */
/* 移除歌词区域强制显示/隐藏，遵循 APlayer 默认 */

/* 歌词高亮样式 */
.aplayer .aplayer-info .aplayer-lrc .aplayer-lrc-contents p.aplayer-lrc-current {
    color: #4a89dc !important;
    font-weight: bold !important;
}

/* 移除固定/迷你样式与配色覆盖，回退到 APlayer 默认 */

/* 播放列表样式（展开时） */
/* 播放列表样式恢复默认 */

/* 歌词可读性增强 */
/* 歌词样式恢复默认 */

/* 移动端适配：缩放迷你播放器，避免遮挡 */
/* 移除自定义移动端定位，使用默认 */

/* ===== APlayer 高对比度配色（仅视觉，不改布局） ===== */
.aplayer,
.aplayer .aplayer-info,
.aplayer .aplayer-list {
    color: #fff;
}

/* 固定迷你播放器与列表背景加深提亮对比 */
.aplayer.aplayer-fixed .aplayer-body,
.aplayer .aplayer-list {
    background: rgba(0, 0, 0, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 标题与作者文案提亮 */
.aplayer .aplayer-title { color: rgba(255,255,255,0.95) !important; }
.aplayer .aplayer-author { color: rgba(255,255,255,0.75) !important; }

/* 控制按钮与音量图标对比度 */
.aplayer .aplayer-icon path, .aplayer .aplayer-icon svg { fill: #ffffff !important; }
.aplayer .aplayer-icon:hover path, .aplayer .aplayer-icon:hover svg { fill: var(--accent-color) !important; }

/* 进度条与音量条配色（仅颜色） */
.aplayer .aplayer-bar-wrap .aplayer-bar { background: rgba(255,255,255,0.25) !important; }
.aplayer .aplayer-controller .aplayer-time { color: rgba(255,255,255,0.8) !important; }
.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded { background: rgba(255,255,255,0.35) !important; }
.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played { background: var(--accent-color) !important; }
.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb { background: var(--accent-color) !important; }
.aplayer .aplayer-volume-bar { background: rgba(255,255,255,0.25) !important; }
.aplayer .aplayer-volume .aplayer-volume-bar .aplayer-volume { background: var(--accent-color) !important; }

/* 列表可读性 */
.aplayer .aplayer-list ol li { color: rgba(255,255,255,0.92) !important; border-color: rgba(255,255,255,0.08) !important; }
.aplayer .aplayer-list ol li:hover { background: rgba(255,255,255,0.08) !important; }
.aplayer .aplayer-list ol li.aplayer-list-light { background: rgba(0,0,0,var(--aplayer-sticky-bg-alpha)) !important; border-left: 3px solid var(--accent-color) !important; }
.aplayer .aplayer-list .aplayer-list-index,
.aplayer .aplayer-list .aplayer-list-author { color: rgba(255,255,255,0.7) !important; }

/* 让播放列表可滚动，支持 Sticky 置顶当前曲目 */
.aplayer .aplayer-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* 当前播放曲目置顶（视觉置顶，不改变原有顺序） */
.aplayer .aplayer-list ol li.aplayer-list-light {
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: saturate(1.1);
}

/* 悬停时稍微提高可见性 */
.aplayer .aplayer-list ol li.aplayer-list-light:hover {
    background: rgba(0,0,0, calc(var(--aplayer-sticky-bg-alpha) + 0.1)) !important;
}

/* 歌词可读性 */
.aplayer .aplayer-lrc p { color: rgba(255,255,255,0.9) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.aplayer .aplayer-lrc p.aplayer-lrc-current { color: var(--accent-color) !important; }