/* ==========================================================================
   基础变量定义
   ========================================================================== */

/* 颜色系统 */
:root {
    /* 主色调 - 粉色系 */
    --color-primary: #ff8ac1;      /* 主色 - 柔和粉色 */
    --color-primary-light: #ff9eb0;    /* 主色浅 - 浅粉色 */
    --color-primary-dark: #ffa8c7;     /* 主色深 - 可爱深粉色 */
    
    /* 中性色 */
    --color-white: #ffffff;        /* 白色 */
    --color-black: #000000;        /* 黑色 */
    --color-gray-100: #f8f9fa;     /* 浅灰1 */
    --color-gray-200: #e9ecef;     /* 浅灰2 */
    --color-gray-300: #dee2e6;     /* 浅灰3 */
    --color-gray-400: #ced4da;     /* 浅灰4 */
    --color-gray-500: #adb5bd;     /* 中灰1 */
    --color-gray-600: #6c757d;     /* 中灰2 */
    --color-gray-700: #495057;     /* 中灰3 */
    --color-gray-800: #343a40;     /* 中灰4 */
    --color-gray-900: #212529;     /* 深灰1 */
    
    /* 功能色 */
    --color-accent: #ffb3e6;       /* 强调色 - 可爱粉色 */
    --color-accent-light: #a2c2c9;  /* 强调色浅 - 浅蓝色 */
    --color-accent-dark: #7686d5;   /* 强调色深 - 深蓝色 */
    
    /* 背景色 */
    --bg-primary: #ffedf3;         /* 主背景 - 浅粉色 */
    --bg-secondary: #ffffff;       /* 次背景 - 白色 */
    --bg-tertiary: #f8f9fa;        /* 第三背景 - 浅灰 */
    
    /* 文本色 */
    --text-primary: #000000;       /* 主文本 - 黑色 */
    --text-secondary: #495057;     /* 次文本 - 中灰 */
    --text-muted: #6c757d;         /* 弱文本 - 中灰2 */
    --text-accent: #814bb3;        /* 强调文本 - 紫色 */
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(155, 81, 224, 0.15);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.2);
    
    /* 过渡动画 */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 30px;
    
    /* 字体 - 优先渲染优化 */
    --font-family-primary: 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Yu Gothic', sans-serif;
    --font-family-secondary: 'JNRfont_n', 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Yu Gothic', sans-serif;
    --font-family-accent: 'MRT-marukoiasu-kananomi', 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Yu Gothic', sans-serif;
    --font-family-english: 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Yu Gothic', sans-serif;
    --font-family-japanese: 'keifont', 'Source Han Sans JP', 'Source Han Sans TC', 'Noto Sans CJK JP', 'Noto Sans CJK TC', 'Yu Gothic', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    
    
    /* 背景样式 */
    --bg-image: none;
    --bg-size: cover;
    --bg-position: center;
    --bg-repeat: no-repeat;
    --bg-attachment: fixed;
    --bg-overlay: rgba(255, 255, 255, 0.1);
    
    /* 预定义背景 */
    --bg-sakura: url('pictures/anime_background.jpg');
    --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 深色主题 */
[data-theme="dark"] {
    /* 主色调 - 深色系 */
    --color-primary: #5a7ba8;      /* 主色 - 柔和深蓝 */
    --color-primary-light: #8fa0c9;    /* 主色浅 - 柔和浅蓝 */
    --color-primary-dark: #4d6b9e;     /* 主色深 - 深蓝 */
    
    /* 功能色 - 深色主题 */
    --color-accent: #8fa0c9;       /* 强调色 - 柔和浅蓝 */
    --color-accent-light: #a2c2c9;  /* 强调色浅 - 浅蓝 */
    --color-accent-dark: #4d6b9e;   /* 强调色深 - 深蓝 */
    
    /* 背景色 */
    --bg-primary: #1e1e2f;         /* 主背景 - 深色 */
    --bg-secondary: #30295d;       /* 次背景 - 深色卡片 */
    --bg-tertiary: #2d2a3d;        /* 第三背景 - 深色背景 */
    
    /* 文本色 */
    --text-primary: #ffffff;       /* 主文本 - 白色 */
    --text-secondary: #e9ecef;     /* 次文本 - 浅灰 */
    --text-muted: #adb5bd;         /* 弱文本 - 中灰 */
    --text-accent: #7686d5;        /* 强调文本 - 浅蓝 */
    
    /* 阴影 */
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* 深色模式下的头部和页脚样式 - 统一优化 */
[data-theme="dark"] header,
[data-theme="dark"] footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] footer {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

/* 预定义背景样式 */
[data-bg="sakura"] {
    --bg-image: var(--bg-sakura);
    --bg-overlay: rgba(255, 237, 243, 0.8);
}

[data-bg="gradient1"] {
    --bg-image: var(--bg-gradient-1);
    --bg-overlay: transparent;
}

[data-bg="gradient2"] {
    --bg-image: var(--bg-gradient-2);
    --bg-overlay: transparent;
}

/* 自定义字体定义 - 优先渲染优化 */
@font-face {
    font-family: 'BoBoHei';
    src: url('../fonts/BoBoHei.woff2') format('woff2'),
         url('../fonts/BoBoHei.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* 字体加载优化 */
    ascent-override: 100%;
    descent-override: 0%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'JNRfont_n';
    src: url('../fonts/JNRfont_n.woff2') format('woff2'),
         url('../fonts/JNRfont_n.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* 字体加载优化 */
    ascent-override: 95%;
    descent-override: 5%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'MRT-marukoiasu-kananomi';
    src: url('../fonts/MRT-marukoiasu-kananomi.woff2') format('woff2'),
         url('../fonts/MRT-marukoiasu-kananomi.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* 字体加载优化 */
    ascent-override: 90%;
    descent-override: 10%;
    line-gap-override: 0%;
}

/* keifont 字体定义 - 优先渲染优化 */
@font-face {
    font-family: 'keifont';
    src: url('../fonts/keifont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* 字体加载优化 */
    ascent-override: 100%;
    descent-override: 0%;
    line-gap-override: 0%;
}

/* ==========================================================================
   基础样式重置
   ========================================================================== */

/* 全局重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: var(--bg-image);
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    background-repeat: var(--bg-repeat);
    background-attachment: var(--bg-attachment);
    z-index: 1;
}

/* 背景叠加层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
    pointer-events: none;
}

/* 移动端背景层级调整 */
@media (max-width: 900px) {
    body::before {
        z-index: -2;
    }
}

/* 链接样式 */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* 按钮重置 */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 输入框重置 */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* 图片懒加载优化 */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 图片默认占位符 */
img:not([src]) {
    opacity: 0;
    background: linear-gradient(135deg, #f5f5f5, #e9ecef, #f5f5f5);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.2rem;
}

/* 图片加载完成后的样式 */
img[src] {
    opacity: 1;
}

/* 图片加载动画效果 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 图片加载优化 - 低性能设备 */
@media (prefers-reduced-motion: reduce) {
    img:not([src]) {
        animation: none;
        background: #f5f5f5;
    }
}

/* 统一的图片边框模板 - 可爱扁平化设计 */
.image-frame {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #f5f5f5, #ffffff, #f5f5f5);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    box-shadow:
        0 4px 15px rgba(245, 245, 245, 0.3),
        0 2px 8px rgba(255, 255, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: fit-content;
    height: fit-content;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.image-frame:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 138, 193, 0.4),
        0 4px 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.image-frame img {
    border-radius: 16px;
    display: block;
    position: relative;
    z-index: 2;
}

/* 圆形图片边框模板 */
.image-frame.circle {
    border-radius: 50%;
    padding: 6px;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
    width: fit-content;
    height: fit-content;
}

.image-frame.circle img {
    border-radius: 50%;
    aspect-ratio: 1/1;  /* 确保图片宽高比保持1:1 */
    object-fit: cover;
}

/* 特殊排除样式 - 社交链接、头像和文章图片 */
.image-frame:not(.avatar .image-frame):not(.friend-icon .image-frame):not(.post-image .image-frame) {
    /* 保持原有样式 */
}

.image-frame:not(.post-image .image-frame)::before {
    /* 保持原有样式 */
}

.image-frame:not(.post-image .image-frame):hover {
    /* 保持原有样式 */
}

/* 深色模式图片边框模板 (排除social links、头像和文章图片) */
[data-theme="dark"] .image-frame:not(.avatar .image-frame):not(.friend-icon .image-frame):not(.post-image .image-frame) {
    background: linear-gradient(135deg, #d8d8d8, #f0f0f0, #d8d8d8);
    background-size: 200% 200%;
    box-shadow:
        0 4px 15px rgba(216, 216, 216, 0.3),
        0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .image-frame:not(.avatar .image-frame):not(.friend-icon .image-frame)::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

[data-theme="dark"] .image-frame:not(.avatar .image-frame):not(.friend-icon .image-frame):not(.post-image .image-frame):hover {
    box-shadow:
        0 8px 25px rgba(216, 216, 216, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* ==========================================================================
   导航样式
   ========================================================================== */

/* 主导航容器 */
nav {
    display: flex;
    justify-content: flex-end;
    top: 0;
    position: sticky;
    color: var(--text-muted);
}

.nav-list {
    display: flex;
    position: relative;
    gap: var(--spacing-md);
    color: var(--text-muted);
}

/* 导航列表基础样式 */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1000;
}

/* 导航项基础样式 */
nav li {
    position: relative;
    margin: 0 var(--spacing-sm);
    background: var(--color-primary) !important;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xs) var(--spacing-md);
}

/* 导航链接基础样式 */
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-family-primary);
}

/* 导航链接图标 */
nav a i {
    margin-right: var(--spacing-xs);
}


nav a:hover::before {
    left: 100%;
}

/* 图标动画效果 */
nav a i {
    transition: var(--transition-base);
    display: inline-block;
}

nav a:hover i {
    transform: rotate(360deg) scale(1.2);
    filter: brightness(1.2);
}

/* 下拉箭头动画 */
nav a .dropdown-arrow {
    transition: var(--transition-base);
    display: inline-block;
}

nav a:hover .dropdown-arrow {
    transform: rotate(180deg) scale(1.1);
}

/* 下拉菜单样式 */
nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    color: var(--accent-text);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
    pointer-events: none; /* 默认不响应鼠标事件 */
}

nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* 悬停时响应鼠标事件 */
}

/* 确保下拉菜单内部的链接可以正常点击 */
nav ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 10px;
    pointer-events: auto;
}

/* 确保所有链接都有正确的指针事件 */
nav ul ul a,
nav ul ul li {
    pointer-events: auto;
    cursor: pointer;
}


nav ul ul::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

nav ul ul li {
    margin: 0;
    width: 100%;
    display: block;
}

nav ul ul a {
    color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
    padding: 10px 20px;
    border-radius: 0;
    font-size: 1rem;
    display: block;
    white-space: nowrap;
    transition: var(--transition);
    justify-content: flex-start;
}


/* 游戏子菜单悬停效果 */
nav ul ul li:nth-child(1) a:hover {/* Minecraft */
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9), rgba(255, 138, 193, 0.7));
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

nav ul ul li:nth-child(1) a {/* Minecraft 基础样式 */
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

nav ul ul li.has-dropdown a {/* 确保下拉菜单父级可点击 */
    pointer-events: auto;
    cursor: pointer;
    position: relative;
}

nav ul ul li.has-dropdown:hover > ul,
nav ul ul li.has-dropdown:focus-within > ul {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 确保Minecraft子菜单项可以正常点击 */
nav ul ul li.has-dropdown {
    position: relative;
}

nav ul ul li.has-dropdown > a {
    position: relative;
    z-index: 1003;
    cursor: pointer;
}

nav ul ul li:nth-child(2) a:hover {/* 游戏子项 */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.7));
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

nav ul ul li:nth-child(3) a:hover {/* 游戏子项 */
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.9), rgba(245, 87, 108, 0.7));
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

/* 友链子菜单悬停效果 */
nav ul ul li:nth-child(1).friend-link a:hover {/* 致星极客 */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 159, 67, 0.7));
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

nav ul ul li:nth-child(2).friend-link a:hover,
nav ul ul li:nth-child(3).friend-link a:hover,
nav ul ul li:nth-child(4).friend-link a:hover {/* 友链其他项 */
    background: linear-gradient(135deg, rgba(114, 152, 163, 0.9), rgba(55, 71, 64, 0.7));
    box-shadow: 0 8px 25px rgba(114, 152, 163, 0.3);
}

/* 背景图片子菜单悬停效果 */
nav ul ul li:nth-child(1) a:hover {/* 无背景 */
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.9), rgba(64, 64, 64, 0.7));
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.3);
}

nav ul ul li:nth-child(2) a:hover {/* 樱花背景 */
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(255, 192, 203, 0.7));
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
}

nav ul ul li:nth-child(3) a:hover {/* 风景背景1 */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.7));
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

nav ul ul li:nth-child(4) a:hover {/* 风景背景2 */
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.9), rgba(245, 87, 108, 0.7));
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

nav ul ul li:nth-child(5) a:hover {/* 我的背景1 */
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(80, 227, 194, 0.7));
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

nav ul ul li:nth-child(6) a:hover {/* 我的背景2 */
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.9), rgba(255, 107, 157, 0.7));
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.3);
}

nav ul ul li:nth-child(7) a:hover {/* 我的背景3 */
    background: linear-gradient(135deg, rgba(155, 81, 224, 0.9), rgba(129, 75, 179, 0.7));
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.3);
}

/* 子菜单图标动画 */
nav ul ul a i {
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul ul a:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* 子菜单下拉箭头动画 */
nav ul ul a .dropdown-arrow {
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul ul a:hover .dropdown-arrow {
    transform: rotate(180deg) scale(1.1);
}

/* 添加悬停时的边框动画 */
nav ul ul a {
    position: relative;
    overflow: hidden;
}

nav ul ul a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

nav ul ul a:hover::before {
    left: 100%;
}

nav ul ul a i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    nav ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        display: none;
        min-width: auto;
    }
    
    nav ul li:hover > ul {
        display: block;
    }
    
    nav ul ul::before {
        display: none;
    }
    
    nav ul ul a {
        color: white;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    nav ul ul a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .blog-container {
        flex-direction: column;
    }
    
    main, aside {
        width: 100%;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
}

/* 特殊可爱元素应用字体 */
.logo h1,
nav a,
.post-title,
.widget-title,
.footer-section h3,
.read-more,
.tag-cloud a,
.post-category,
.social-links a,
.categories-list a {
    font-family: var(--font-family-primary);
}


/* 下拉菜单箭头样式 */
.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* 标签云样式 */
.tag-cloud-list {
    list-style: none;
}

/* 深色文字样式 */
.dark-text {
    color: hwb(0 28% 0%);
    font-weight: bold;
}

/* 粉色文字样式 - 浅色模式 */
.pink-text {
    color: #ffd1dc;
}

/* 喵~文字样式 - 根据主题变换 */
.meow-text {
    color: #ff69b4;  /* 柔和的粉色，保持辨识度但不刺眼 */
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 深色模式喵~文字样式 */
[data-theme="dark"] .meow-text {
    color: #87ceeb;  /* 柔和的天蓝色，在深色背景下依然清晰但不刺眼 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 喵~文字弹跳动画 */
.meow-bounce {
    animation: meowBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center center;
}

@keyframes meowBounce {
    0% {
        transform: scale(1) rotate(0deg) translateY(0);
        filter: brightness(1);
    }
    20% {
        transform: scale(1.3) rotate(-8deg) translateY(-5px);
        filter: brightness(1.2);
    }
    40% {
        transform: scale(1.1) rotate(6deg) translateY(-3px);
        filter: brightness(1.1);
    }
    60% {
        transform: scale(1.2) rotate(-4deg) translateY(-2px);
        filter: brightness(1.15);
    }
    80% {
        transform: scale(1.05) rotate(2deg) translateY(-1px);
        filter: brightness(1.05);
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        filter: brightness(1);
    }
}

/* 确保动画优先级足够高 */
.logo h1 .meow-text {
    animation-fill-mode: both;
    will-change: transform, filter;
}

/* 下拉菜单图标样式 */
.dropdown-icon {
    color: white;
}

/* 友链图标样式 */
.friend-icon {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 2px;
}

/* 友链图标边框模板 */
.friend-icon .image-frame {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    margin: 0;
    padding: 2px;
}

/* 学校信息样式 */
.school-info {
    color: var(--light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

/* 学校信息容器 */
.school-info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 138, 193, 0.2);
    box-shadow: 0 4px 15px rgba(155, 81, 224, 0.1);
}

/* 学校信息行 */
.school-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 学校信息项 */
.school-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 138, 193, 0.2);
    min-width: 140px;
    justify-content: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.school-info-item:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 138, 193, 0.2);
    box-shadow: 0 6px 15px rgba(255, 138, 193, 0.3);
    border-color: rgba(255, 138, 193, 0.4);
}

.school-info-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.school-info-item:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

.school-info-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* 深色模式适配 */
[data-theme="dark"] .school-info-container {
    background: rgba(30, 30, 47, 0.6);
    border-color: rgba(118, 134, 213, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .school-info-item {
    background: rgba(118, 134, 213, 0.1);
    border-color: rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .school-info-item:hover {
    background: rgba(118, 134, 213, 0.2);
    box-shadow: 0 6px 15px rgba(118, 134, 213, 0.3);
    border-color: rgba(118, 134, 213, 0.5);
}

[data-theme="dark"] .school-info-item i {
    color: var(--color-accent);
}

[data-theme="dark"] .school-info-item span {
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .school-info-container {
        padding: 12px;
        margin: 12px 0;
    }
    
    .school-info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .school-info-item {
        width: 100%;
        justify-content: center;
        min-width: auto;
        flex: none;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .school-info-container {
        padding: 10px;
        margin: 10px 0;
    }
    
    .school-info-item {
        padding: 6px 12px;
    }
    
    .school-info-item i {
        font-size: 1rem;
    }
    
    .school-info-item span {
        font-size: 0.85rem;
    }
}

/* 无下划线链接 */
.no-decoration {
    text-decoration: none;
}

/* 运行时间文本样式 */
.runtime-text {
    color: #9b51e0;
    font-weight: bold;
}

/* JNR字体样式 */
.jnr-font {
    font-family: 'JNRfont_n', 'BoBoHei', 'Yu Gothic', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* DeepSeek链接样式 */
.deepseek-link {
    color: #7aa0ff;
    text-decoration: none;
}

/* 樱花飘落动画容器 */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    will-change: transform;
}

/* 樱花飘落动画 */
.sakura {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #ffb3d1, #ffc6d9);
    border-radius: 50% 0% 50% 50%;
    opacity: 0;
    z-index: 1;
    animation: fall linear forwards;
    box-shadow: 0 0 6px rgba(255, 182, 193, 0.4);
    backdrop-filter: brightness(1.1);
    -webkit-backdrop-filter: brightness(1.1);
    transition: opacity 0.3s ease;
}

.sakura::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
}

/* 统一动画效果 - 优化性能 */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(-50px) rotate(45deg) scale(1);
    }
    90% {
        opacity: 0.3;
        transform: translateY(90vh) rotate(315deg) scale(0.8);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 通用过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.2s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* 性能优化：使用CSS变量控制樱花效果 */
:root {
    --sakura-count: 20;
    --sakura-interval: 300ms;
    --sakura-duration-min: 5s;
    --sakura-duration-max: 15s;
    --sakura-size-min: 5px;
    --sakura-size-max: 20px;
    --sakura-opacity-min: 0.3;
    --sakura-opacity-max: 0.8;
}

/* 深色模式樱花效果 */
[data-theme="dark"] .sakura {
    background: radial-gradient(circle at 30% 30%, #ff8fa3, #ffb3d1);
    box-shadow: 0 0 8px rgba(255, 143, 163, 0.6);
}

/* 减少动画效果的性能影响 */
@media (prefers-reduced-motion: reduce) {
    .sakura-container {
        display: none;
    }
    
    .sakura {
        animation: none;
    }
}

/* 低性能设备优化 - 合并到现有媒体查询中 */
@media (max-width: 768px) {
    :root {
        --sakura-count: 10;
        --sakura-interval: 500ms;
    }
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
    padding: 20px 0;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: white;
    margin-right: 10px;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        filter: brightness(1.1);
    }
}

.logo h1 {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    text-shadow: 0 0 0.5px var(--accent-color), 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* 动画装饰元素 */
.anime-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    bottom: 10%;
    right: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    bottom: 50%;
    left: 10%;
    animation-delay: 2s;
}

.decoration-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}
.decoration-4 {
    bottom: 40%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 主要内容区域 */
.blog-container {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    gap: 30px;
}

/* 电脑端post卡片本身高度压缩 */
@media (min-width: 769px) {
    .post-card {
        margin-bottom: 25px; /* 减少卡片间距 */
    }
    
    .post-content {
        padding: 8px;
    }
    
    .post-title {
        margin-bottom: 6px;
        font-size: 1.2rem;
        padding-left: 12px;
    }
    
    .post-title::before {
        font-size: 0.9rem;
    }
    
    .post-meta {
        margin-bottom: 8px;
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .post-meta span {
        padding: 2px 4px;
        font-size: 0.75rem;
        gap: 2px;
    }
    
    .post-meta i {
        font-size: 0.9rem;
        margin-right: 4px;
    }
    
    .post-excerpt {
        margin-bottom: 8px;
        padding: 8px;
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .post-excerpt::before {
        top: -6px;
        padding: 3px 5px;
        font-size: 0.65rem;
    }
    
    .read-more {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .read-more i {
        font-size: 0.9rem;
    }
    
    /* 压缩图片区域 */
    .post-image {
        max-height: 180px;
        min-height: 30px;
    }
    
    .post-category {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .post-category::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 138, 193, 0.1), rgba(255, 138, 193, 0.05));
        border-radius: 20px;
        z-index: -1;
    }
}

main {
    flex: 7;
}

aside {
    flex: 3;
}

/* 文章卡片样式 */
.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.1);
    border: 1px solid rgba(255, 138, 193, 0.2);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

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

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(155, 81, 224, 0.25);
    border-color: rgba(255, 138, 193, 0.4);
}

/* 深色模式文章卡片 */
[data-theme="dark"] .post-card {
    background: rgba(30, 30, 47, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-card::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
    background-size: 200% 100%;
}

[data-theme="dark"] .post-card:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-header {
    position: relative;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 15px 15px 0 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 60px;
    max-height: 400px;
    overflow: hidden;
}

.post-image::before {
    content: '📷';
    font-size: 2rem;
    opacity: 0.5;
    position: absolute;
    z-index: -1;
}

/* 文章图片边框模板 */
.post-image .image-frame {
    width: 100%;
    height: 100%;
    border-radius: 15px 15px 0 0;
    margin: 0;
    background: linear-gradient(135deg, #e6e6e6, #f2f2f2, #d0d0d0);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 4px;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

/* 电脑端post图片自适应调整 */
@media (min-width: 769px) {
    .post-image {
        max-height: 180px;
        min-height: 30px;
    }
    
    .post-image .image-frame {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .post-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/* 深色模式文章图片边框 */
[data-theme="dark"] .post-image .image-frame {
    background: linear-gradient(135deg, #606060, #808080, #606060);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 138, 193, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: category-bounce 2s ease-in-out infinite;
    z-index: 100;
}

@keyframes category-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 深色模式分类标签 */
[data-theme="dark"] .post-category {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 4px 15px rgba(118, 134, 213, 0.3);
}

.post-content {
    padding: 12px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 16px;
}

.post-title::before {
    content: "\f13d";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.post-card:hover .post-title {
    color: var(--color-accent);
    transform: translateX(5px);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 10px;
    background: rgba(255, 138, 193, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.post-meta span:hover {
    background: rgba(255, 138, 193, 0.2);
    transform: translateY(-2px);
}

.post-meta i {
    margin-right: 8px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.post-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 138, 193, 0.2);
}

.post-excerpt::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* 深色模式文章内容 */
[data-theme="dark"] .post-title {
    color: var(--color-accent);
}

[data-theme="dark"] .post-title::before {
    filter: brightness(0.8);
}

[data-theme="dark"] .post-meta {
    background: rgba(118, 134, 213, 0.1);
    border-left-color: var(--color-accent);
}

[data-theme="dark"] .post-meta span {
    background: rgba(30, 30, 47, 0.8);
}

[data-theme="dark"] .post-meta i {
    color: var(--color-accent);
}

[data-theme="dark"] .post-excerpt {
    background: rgba(30, 30, 47, 0.6);
    border-color: rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .post-excerpt::before {
    background: rgba(30, 30, 47, 0.9);
}

.read-more {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 193, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.read-more i {
    margin-left: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.read-more:hover i {
    transform: translateX(8px) rotate(45deg);
}

/* 深色模式阅读更多按钮 */
[data-theme="dark"] .read-more {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 4px 15px rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .read-more:hover {
    box-shadow: 0 8px 25px rgba(118, 134, 213, 0.4);
}

/* 侧边栏样式 */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.1);
    border: 1px solid rgba(255, 138, 193, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 20px 20px 0 0;
}

.sidebar-widget:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(155, 81, 224, 0.2);
    border-color: rgba(255, 138, 193, 0.4);
}

/* 深色模式侧边栏 */
[data-theme="dark"] .sidebar-widget {
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar-widget::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

[data-theme="dark"] .sidebar-widget:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.widget-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent)) 1;
    padding-bottom: 12px;
    position: relative;
}

.widget-title i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.widget-title:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* 深色模式标题 */
[data-theme="dark"] .widget-title {
    color: var(--color-accent);
    border-image: linear-gradient(90deg, var(--color-accent), var(--color-primary)) 1;
}

[data-theme="dark"] .widget-title i {
    color: var(--color-accent);
}

/* 关于我部分 */
.about-me {
    text-align: center;
    position: relative;
}

.sidebar-widget.about-me.reveal {
    background: linear-gradient(135deg, rgba(255, 138, 193, 0.1), rgba(129, 75, 179, 0.1));
    border: 2px solid rgba(255, 138, 193, 0.3);
}

.about-me::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.8;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* 深色模式关于我 */
[data-theme="dark"] .sidebar-widget.about-me.reveal {
    background: linear-gradient(135deg, rgba(118, 134, 213, 0.2), rgba(71, 59, 161, 0.2));
    border: 2px solid rgba(118, 134, 213, 0.4);
}

[data-theme="dark"] .about-me::before {
    content: '🌙';
}
/* 头像默认样式 - 浅色模式粉色 */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;  /* 完美圆形 */
    object-fit: cover;   /* 确保图片填充整个容器 */
    border: 4px solid #ff8ac1 !important;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 179, 230, 0.6);
    position: relative;
    display: block;
    cursor: pointer;
    min-height: 60px;
    overflow: hidden;  /* 确保内容不会溢出圆形边界 */
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
}

/* 移动端头像优化 */
@media (max-width: 768px) {
    .avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;  /* 移动端也保持完美圆形 */
        aspect-ratio: 1/1;
        object-fit: cover;   /* 确保图片正确填充 */
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;  /* 移动端也保持完美圆形 */
        aspect-ratio: 1/1;
        object-fit: cover;   /* 确保图片正确填充 */
    }
}

/* 头像悬停效果 */
.avatar:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 30px rgba(255, 179, 230, 0.8);
    border-color: #ffb3d1 !important;
}

/* 头像点击后样式 - 浅色模式蓝色 */
.avatar.clicked {
    border-color: #5a7ba8 !important;
    box-shadow: 0 8px 25px rgba(90, 123, 168, 0.5) !important;
}

/* 深色模式头像点击后样式 - 粉色 */
[data-theme="dark"] .avatar.clicked {
    border-color: #ff8ac1 !important;
    box-shadow: 0 8px 20px rgba(255, 138, 193, 0.5);
}

/* 深色模式头像默认样式 - 蓝色 */
[data-theme="dark"] .avatar {
    border-color: #5a7ba8 !important;
    box-shadow: 0 8px 25px rgba(90, 123, 168, 0.5) !important;
}

/* 名字容器默认样式 - 浅色模式粉色 */
.name-container {
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: #ff8ac1 !important;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    background: rgba(255, 138, 193, 0.2);
    border-radius: 15px;
    cursor: pointer;
}

/* 名字容器点击后样式 - 浅色模式蓝色 */
.name-container.clicked {
    color: #5a7ba8 !important;
    background: rgba(90, 123, 168, 0.1);
    box-shadow: 0 8px 20px rgba(90, 123, 168, 0.3);
}

/* 深色模式名字容器默认样式 - 粉色 */
[data-theme="dark"] .name-container {
    color: #ff8ac1 !important;
    background: rgba(255, 138, 193, 0.15);
}

/* 深色模式名字容器点击后样式 - 蓝色 */
[data-theme="dark"] .name-container.clicked {
    color: #5a7ba8 !important;
    background: rgba(90, 123, 168, 0.1);
    box-shadow: 0 8px 20px rgba(90, 123, 168, 0.3);
}

.avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-me:hover .avatar {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 138, 193, 0.4);
}

/* 深色模式头像 */
[data-theme="dark"] .avatar {
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .avatar::after {
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary), var(--color-accent));
}

[data-theme="dark"] .about-me:hover .avatar {
    box-shadow: 0 12px 30px rgba(118, 134, 213, 0.4);
}

.name-container {
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 15px;
}

.name-container:hover {
    transform: translateY(-3px);
    background: rgba(255, 138, 193, 0.2);
    box-shadow: 0 8px 20px rgba(255, 138, 193, 0.2);
}

.about-text {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    font-family: var(--font-family-primary) !important;
}

.about-text::before {
    content: '💭';
    position: absolute;
    top: -10px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.about-me-hr {
    border: none;
    border-top: 2px dashed var(--color-primary);
    margin: 20px 0;
    opacity: 0.6;
}

/* 深色模式文本 */
[data-theme="dark"] .name-container {
    color: var(--color-accent);
    background: rgba(118, 134, 213, 0.1);
}

[data-theme="dark"] .name-container:hover {
    background: rgba(118, 134, 213, 0.2);
    box-shadow: 0 8px 20px rgba(118, 134, 213, 0.2);
}

[data-theme="dark"] .about-text {
    color: var(--text-secondary);
    background: rgba(30, 30, 47, 0.6);
    border-left-color: var(--color-accent);
}

[data-theme="dark"] .about-text::before {
    background: rgba(30, 30, 47, 0.9);
}

[data-theme="dark"] .about-me-hr {
    border-top-color: var(--color-accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 193, 0.3);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
}

.social-links a img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%) brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-links a:hover::before {
    transform: translateX(100%);
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(255, 138, 193, 0.4);
}

/* 深色模式社交链接 */
[data-theme="dark"] .social-links a {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 4px 15px rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .social-links a:hover {
    box-shadow: 0 12px 25px rgba(118, 134, 213, 0.4);
}

[data-theme="dark"] .social-links a img {
    filter: grayscale(100%) brightness(0) invert(1);
}

.social-links a:hover img {
    filter: grayscale(0%) brightness(1) invert(0);
}

[data-theme="dark"] .social-links a:hover img {
    filter: grayscale(0%) brightness(1) invert(0);
}

/* 移动端社交链接优化 */
@media (max-width: 768px) {
    .social-links {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
        border-radius: 50%;
        aspect-ratio: 1/1;
        flex-shrink: 0;
        object-fit: cover;   /* 确保图标正确填充 */
    }
    
    .social-links a i {
        font-size: 1.2rem;
    }
    
    .social-links a img {
        width: 20px;
        height: 20px;
        filter: grayscale(100%) brightness(0) invert(1);
        transition: all 0.3s ease;
    }
}

/* 更小屏幕的进一步优化 */
@media (max-width: 480px) {
    .social-links {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        max-width: 35px;
        max-height: 35px;
        aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
        object-fit: cover;   /* 确保图标正确填充 */
    }
    
    .social-links a i {
        font-size: 1rem;
    }
    
    .social-links a img {
        width: 18px;
        height: 18px;
        filter: grayscale(100%) brightness(0) invert(1);
        transition: all 0.3s ease;
    }
}

/* 分类和标签样式 */
.sidebar-widget.reveal{
    background-color: var(--card-bg);
}

.categories-list {
    list-style: none;
    counter-reset: category-counter;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 138, 193, 0.2);
    box-shadow: 0 4px 15px rgba(155, 81, 224, 0.1);
}

.categories-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 138, 193, 0.3);
    position: relative;
    padding-left: 45px;
    transition: all 0.3s ease;
    animation: category-slide 0.5s ease-out forwards;
    opacity: 0;
    display: flex;
    align-items: center;
}

.categories-list li::before {
    counter-increment: category-counter;
    content: counter(category-counter);
    position: absolute;
    left: 8px;
    top: 40%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 138, 193, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
}

.categories-list li:hover {
    transform: translateX(8px);
    background: rgba(255, 138, 193, 0.05);
    border-radius: 12px;
    padding-left: 60px;
}

.categories-list li:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 6px 16px rgba(255, 138, 193, 0.4);
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 5px 0;
    width: 100%;
    margin-left: 10px;
    font-size: 1.4rem;
}

.categories-list a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.categories-list span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(255, 138, 193, 0.2);
    transition: all 0.3s ease;
}

.categories-list li:hover span {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 138, 193, 0.3);
}

@keyframes category-slide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 为分类项添加不同的动画延迟 */
.categories-list li:nth-child(1) { animation-delay: 0.1s; }
.categories-list li:nth-child(2) { animation-delay: 0.2s; }
.categories-list li:nth-child(3) { animation-delay: 0.3s; }
.categories-list li:nth-child(4) { animation-delay: 0.4s; }
.categories-list li:nth-child(5) { animation-delay: 0.5s; }
.categories-list li:nth-child(6) { animation-delay: 0.6s; }
.categories-list li:nth-child(7) { animation-delay: 0.7s; }
.categories-list li:nth-child(8) { animation-delay: 0.8s; }

/* 深色模式分类列表 */
[data-theme="dark"] .categories-list {
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .categories-list li {
    border-bottom-color: rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .categories-list li:hover {
    background: rgba(118, 134, 213, 0.1);
}

[data-theme="dark"] .categories-list a {
    color: var(--color-accent);
}

[data-theme="dark"] .categories-list a:hover {
    color: var(--color-primary);
}

[data-theme="dark"] .categories-list span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 3px 10px rgba(118, 134, 213, 0.2);
}

[data-theme="dark"] .categories-list li:hover span {
    box-shadow: 0 5px 15px rgba(118, 134, 213, 0.3);
}

/* 移动端分类列表对齐优化 */
@media (max-width: 768px) {
    .categories-list li {
        padding-left: 40px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .categories-list li::before {
        left: 6px;
        top: 40%;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
        object-fit: cover;   /* 确保内容正确填充 */
    }
    
    .categories-list a {
        margin-left: 8px;
        font-size: 1.1rem;
    }
}

/* 更小屏幕的进一步优化 */
@media (max-width: 480px) {
    .categories-list li {
        padding-left: 35px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .categories-list li::before {
        left: 5px;
        top: 40%;
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
        object-fit: cover;   /* 确保内容正确填充 */
    }
    
    .categories-list a {
        margin-left: 6px;
        font-size: 1rem;
    }
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 138, 193, 0.2);
    box-shadow: 0 4px 15px rgba(155, 81, 224, 0.1);
    position: relative;
    overflow: hidden;
    justify-content: center;
    row-gap: 15px;
}


.tag-cloud a {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 138, 193, 0.2);
    position: relative;
    overflow: hidden;
    animation: tag-float 3s ease-in-out infinite;
    display: inline-block;
}

.tag-cloud a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.tag-cloud a:hover::before {
    left: 100%;
}

.tag-cloud a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 138, 193, 0.3);
    border-color: rgba(255, 138, 193, 0.4);
}

@keyframes tag-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 为标签添加不同的动画延迟 */
.tag-cloud a:nth-child(1) { animation-delay: 0s; }
.tag-cloud a:nth-child(2) { animation-delay: 0.1s; }
.tag-cloud a:nth-child(3) { animation-delay: 0.2s; }
.tag-cloud a:nth-child(4) { animation-delay: 0.3s; }
.tag-cloud a:nth-child(5) { animation-delay: 0.4s; }
.tag-cloud a:nth-child(6) { animation-delay: 0.5s; }
.tag-cloud a:nth-child(7) { animation-delay: 0.6s; }
.tag-cloud a:nth-child(8) { animation-delay: 0.7s; }
.tag-cloud a:nth-child(9) { animation-delay: 0.8s; }
.tag-cloud a:nth-child(10) { animation-delay: 0.9s; }

/* 深色模式标签云 */
[data-theme="dark"] .tag-cloud {
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .tag-cloud::before {
    background: rgba(30, 30, 47, 0.9);
}

[data-theme="dark"] .tag-cloud a {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 4px 12px rgba(118, 134, 213, 0.2);
}

[data-theme="dark"] .tag-cloud a:hover {
    box-shadow: 0 8px 20px rgba(118, 134, 213, 0.3);
    border-color: rgba(118, 134, 213, 0.4);
}
/*主题切换平滑过渡和基础样式优化*/
body, .post-card, .sidebar-widget {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*去除超链接下划线 - 与前面链接样式合并优化*/
a {
    text-decoration: none;
    transition: var(--transition-base);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    color: white;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    color: white;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links ul li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: 10px;
    width: 16px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-text);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-top: 10px;
}

.footer-hr-bold {
    border: none;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

.footer-hr {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

/* 汉堡菜单激活状态（转为红色叉） */
.menu-toggle.active span:nth-child(1) {
    background: var(--color-primary);
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    background: var(--color-primary);
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    background: var(--color-primary);
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 900px) {

    body {
        overflow-x: hidden;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    nav {
        display: none;
        width: 100%;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}
@media (max-width: 1024px) and (min-width: 768px) {
        .header-content {
            flex-direction: column;
            text-align: center;
        }
        .blog-container {
            flex-direction: column;
        }
        main, aside {
            width: 100%;
        }
        .post-card {
            margin-bottom: 20px;
        }
        nav {
            width: 100%;
            justify-content: center;
            margin-top: 15px;
            display: block !important; /* 确保导航菜单显示 */
        }
        nav ul {
            flex-wrap: wrap;
            justify-content: center;
        }
        nav li {
            margin: 5px;
        }
        nav a {
            font-size: 1rem;
            padding: 6px 10px;
        }
        nav ul ul {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            background: transparent;
            padding-left: 20px;
            display: none;
            min-width: auto;
        }
        nav ul li:hover > ul {
            display: block;
        }
        nav ul ul::before {
            display: none;
        }
        nav ul ul a {
            color: white;
            padding: 8px 15px;
            font-size: 0.9rem;
        }
        nav ul ul a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
}


/* 确保移动端菜单可以正常交互 */
@media (max-width: 900px) {
    nav.active {
        pointer-events: auto;
    }
    
    nav ul ul {
        pointer-events: auto;
    }
    
    nav a, nav ul ul a {
        pointer-events: auto;
        cursor: pointer;
    }
}



/* 导航菜单增强样式 */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
        z-index: 1003;
    }
    
    nav {
        display: none;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background: rgba(var(--primary-color), 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        -moz-backdrop-filter: blur(10px) !important;
        -ms-backdrop-filter: blur(10px) !important;
        position: fixed;
        top: 140px;
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        z-index: 1002;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        padding: 20px;
        pointer-events: auto;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-height: calc(100vh - 160px);
        overflow-y: auto;
    }
    
    nav.active {
        pointer-events: auto;
    }
    
    nav ul {
        pointer-events: auto;
    }
    
    nav li {
        pointer-events: auto;
    }
    
    nav a {
        pointer-events: auto;
        cursor: pointer;
    }
    
    nav.active {
        display: block;
        transform: translateX(-50%) translateY(0);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    
    /* 菜单项居中对齐 */
    nav li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    nav.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    nav.active li:nth-child(1) { transition-delay: 0.1s; }
    nav.active li:nth-child(2) { transition-delay: 0.2s; }
    nav.active li:nth-child(3) { transition-delay: 0.3s; }
    nav.active li:nth-child(4) { transition-delay: 0.4s; }
    nav.active li:nth-child(5) { transition-delay: 0.5s; }
    nav.active li:nth-child(6) { transition-delay: 0.6s; }
    nav.active li:nth-child(7) { transition-delay: 0.7s; }
    nav.active li:nth-child(8) { transition-delay: 0.8s; }
    
    nav li a {
        display: block;
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 20px;
        border-radius: 25px;
        font-size: 1.1rem;
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(0.5px);
        -webkit-backdrop-filter: blur(0.5px);
        -moz-backdrop-filter: blur(0.5px);
        -ms-backdrop-filter: blur(0.5px);
        background: rgba(255, 138, 193, 0.01);
        border: 1px solid rgba(255, 138, 193, 0.04);
    }
    
    nav li a:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(10px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
    }
    
    
    /* 下拉菜单圆角美化 */
    nav ul ul {
        border-radius: 20px;
        margin-top: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 300px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        -webkit-backdrop-filter: blur(15px);
        -moz-backdrop-filter: blur(15px);
        -ms-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    nav ul ul a {
        border-radius: 20px;
        margin: 5px 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        -moz-backdrop-filter: blur(10px);
        -ms-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.25);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    nav ul ul a:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(8px) scale(1.02);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    
    nav li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    nav li a:hover::before {
        left: 100%;
    }
    
    nav li a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 下拉菜单移动端样式 */
    nav ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(var(--primary-color), 0.25) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -moz-backdrop-filter: none !important;
        -ms-backdrop-filter: none !important;
        padding: 15px 0;
        display: none;
        margin-top: 10px;
        border-radius: 20px;
        z-index: 1004;
        pointer-events: auto;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 200px;
    }
    
    nav ul ul li {
        margin: 0;
        width: 100%;
        display: block;
        pointer-events: auto;
    }
    
    nav ul ul a {
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
        padding: 12px 30px;
        font-size: 1rem;
        border-radius: 20px;
        margin: 0 auto;
        transition: all 0.3s ease;
        display: block;
        pointer-events: auto;
        cursor: pointer;
        background: rgba(var(--primary-color), 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -moz-backdrop-filter: none !important;
        -ms-backdrop-filter: none !important;
        border: 1px solid rgba(var(--primary-color), 0.15) !important;
        width: 80%;
        max-width: 280px;
        text-align: center;
    }
    
    nav ul ul a:hover {
        background: rgba(var(--primary-color), 0.15) !important;
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
        transform: translateX(8px);
        border-color: rgba(var(--primary-color), 0.25) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 修复Minecraft三级菜单移动端显示问题 */
    nav ul ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(var(--primary-color), 0.22) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        -moz-backdrop-filter: blur(10px) !important;
        -ms-backdrop-filter: blur(10px) !important;
        padding: 15px 0;
        display: none;
        margin-top: 10px;
        border-radius: 20px;
        z-index: 1005;
        pointer-events: auto;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 150px;
    }
    
    nav ul ul ul li {
        margin: 0;
        width: 100%;
        display: block;
        pointer-events: auto;
    }
    
    nav ul ul ul a {
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
        padding: 12px 30px;
        font-size: 1rem;
        border-radius: 20px;
        margin: 0 auto;
        transition: all 0.3s ease;
        display: block;
        pointer-events: auto;
        cursor: pointer;
        background: rgba(var(--primary-color), 0.06) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -moz-backdrop-filter: none !important;
        -ms-backdrop-filter: none !important;
        border: 1px solid rgba(var(--primary-color), 0.12) !important;
        width: 80%;
        max-width: 280px;
        text-align: center;
    }
    
    nav ul ul ul a:hover {
        background: rgba(var(--primary-color), 0.12) !important;
        color: white;  /* 白色，在浅色和深色模式下都清晰可见 */
        transform: translateX(8px);
        border-color: rgba(var(--primary-color), 0.2) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul ul::before {
        display: none;
    }
}

/* 移动端菜单主题适配 */
@media (max-width: 900px) {
    nav#main-nav {
        /* 浅色主题默认样式 */
        background: rgba(var(--primary-color), 0.15) !important;
        border: 1px solid rgba(var(--primary-color), 0.2) !important;
    }
    
    /* 深色主题增强 */
    [data-theme="dark"] nav#main-nav {
        background: rgba(var(--primary-color), 0.2) !important;
        border: 1px solid rgba(var(--primary-color), 0.3) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    }
    
    /* 菜单项主题适配 */
    nav#main-nav li a {
        background: rgba(var(--primary-color), 0.05) !important;
        border: 1px solid rgba(var(--primary-color), 0.08) !important;
    }
    
    [data-theme="dark"] nav#main-nav li a {
        background: rgba(var(--primary-color), 0.12) !important;
        border: 1px solid rgba(var(--primary-color), 0.18) !important;
    }
    
    /* 菜单项悬停效果主题适配 */
    nav#main-nav li a:hover {
        background: rgba(var(--primary-color), 0.15) !important;
        border-color: rgba(var(--primary-color), 0.2) !important;
        transform: translateX(10px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    [data-theme="dark"] nav#main-nav li a:hover {
        background: rgba(var(--primary-color), 0.3) !important;
        border-color: rgba(var(--primary-color), 0.35) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* 菜单关闭动画 - 优化 */
nav.closing {
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
}

nav.closing li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* ==========================================================================
   关于我模块样式
   ========================================================================== */

.about-me-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.1);
    border: 1px solid rgba(255, 138, 193, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 20px 20px 0 0;
}

.about-me-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(155, 81, 224, 0.2);
    border-color: rgba(255, 138, 193, 0.4);
}

/* 深色模式关于我模块 */
[data-theme="dark"] .about-me-section {
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-me-section::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

[data-theme="dark"] .about-me-section:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.about-me-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-me-sidebar {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* 深色模式关于我文本 */
[data-theme="dark"] .about-me-sidebar {
    color: var(--text-primary);
}

/* ==========================================================================
   番剧模块样式
   ========================================================================== */

.anime-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.1);
    border: 1px solid rgba(255, 138, 193, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.anime-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 20px 20px 0 0;
}

.anime-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(155, 81, 224, 0.2);
    border-color: rgba(255, 138, 193, 0.4);
}

/* 深色模式番剧模块 */
[data-theme="dark"] .anime-section {
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 134, 213, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .anime-section::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

[data-theme="dark"] .anime-section:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-primary);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent)) 1;
    padding-bottom: 15px;
    position: relative;
}

.section-title i {
    margin-right: 15px;
    font-size: 1.3rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.section-title:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* 深色模式标题 */
[data-theme="dark"] .section-title {
    color: var(--color-accent);
    border-image: linear-gradient(90deg, var(--color-accent), var(--color-primary)) 1;
}

[data-theme="dark"] .section-title i {
    color: var(--color-accent);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 电脑端番剧网格改为2列布局 */
@media (min-width: 769px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.anime-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 138, 193, 0.2);
    position: relative;
    overflow: hidden;
    /* 确保项目大小一致 */
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.anime-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.anime-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 138, 193, 0.3);
    border-color: rgba(255, 138, 193, 0.4);
}

.anime-item:hover::before {
    transform: scaleX(1);
}

/* 深色模式番剧项 */
[data-theme="dark"] .anime-item {
    background: rgba(30, 30, 47, 0.6);
    border: 1px solid rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .anime-item:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.anime-image {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.anime-image::before {
    content: '🎬';
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
}

.anime-image .image-frame {
    width: 120px;
    height: 160px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.anime-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.anime-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.anime-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding: 8px;
    background: rgba(255, 138, 193, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.anime-item:hover .anime-name {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* 深色模式番剧信息 */
[data-theme="dark"] .anime-name {
    color: var(--color-accent);
}

[data-theme="dark"] .anime-desc {
    background: rgba(118, 134, 213, 0.1);
    border-left-color: var(--color-accent);
}

/* ==========================================================================
   角色模块样式
   ========================================================================== */

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 10px;
    /* 确保网格项不会拉伸圆形元素 */
    align-items: center;
    justify-items: center;
    /* 防止网格项溢出容器 */
    width: 100%;
    overflow: hidden;
}

.character-card {
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 138, 193, 0.2);
    /* 确保角色卡不会拉伸圆形元素 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 138, 193, 0.1);
    box-shadow: 0 8px 20px rgba(255, 138, 193, 0.3);
    border-color: rgba(255, 138, 193, 0.4);
}

.character-card:hover::before {
    transform: scaleX(1);
}

.character-avatar {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.character-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.character-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.character-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.character-card:hover .character-title {
    color: var(--color-accent);
    transform: scale(1.1);
}

.character-card:hover .character-subtitle {
    background: rgba(255, 138, 193, 0.2);
    transform: scale(1.05);
}

/* 深色模式角色项 */
[data-theme="dark"] .character-card {
    background: rgba(30, 30, 47, 0.4);
    border: 1px solid rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .character-card:hover {
    background: rgba(118, 134, 213, 0.1);
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .character-card::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

[data-theme="dark"] .character-title {
    color: var(--color-accent);
}

[data-theme="dark"] .character-subtitle {
    background: rgba(118, 134, 213, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .character-card:hover .character-title {
    color: var(--color-primary);
}

[data-theme="dark"] .character-card:hover .character-subtitle {
    background: rgba(118, 134, 213, 0.2);
    color: var(--text-primary);
}

.character-image {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    width: 110px;
    height: 110px;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
    flex-shrink: 0;     /* 防止压缩 */
    box-sizing: border-box;  /* 确保边框计算正确 */
    /* 强制保持正圆的关键属性 */
    max-width: 110px;
    max-height: 110px;
    min-width: 110px;
    min-height: 110px;
}

.character-image::before {
    content: '👤';
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
}

.character-image .image-frame {
    width: 90px;
    height: 90px;
    margin: 0;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
    flex-shrink: 0;     /* 防止压缩 */
    box-sizing: border-box;  /* 确保边框计算正确 */
    /* 强制保持正圆的关键属性 */
    max-width: 90px;
    max-height: 90px;
    min-width: 90px;
    min-height: 90px;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1/1;  /* 确保宽高比保持1:1 */
    flex-shrink: 0;     /* 防止压缩 */
    box-sizing: border-box;  /* 确保边框计算正确 */
    /* 强制保持正圆的关键属性 */
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.character-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.character-series {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 12px;
    display: inline-block;
}

.character-item:hover .character-name {
    color: var(--color-accent);
    transform: scale(1.1);
}

.character-item:hover .character-series {
    background: rgba(255, 138, 193, 0.2);
    transform: scale(1.05);
}

/* 深色模式角色信息 */
[data-theme="dark"] .character-title {
    color: var(--color-accent);
}

[data-theme="dark"] .character-subtitle {
    background: rgba(118, 134, 213, 0.1);
    color: var(--text-secondary);
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .anime-section {
        margin: 25px 0;
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .section-title i {
        margin-right: 10px;
        font-size: 1.1rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 10px;
        max-width: none;
    }
    
    .anime-item {
        padding: 12px;
        min-height: 240px;
    }
    
    .anime-image .image-frame {
        width: 90px;
        height: 120px;
    }
    
    .anime-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .anime-desc {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        padding: 8px;
        /* 确保在小屏幕上网格不会溢出 */
        width: 100%;
        overflow: hidden;
    }
    
    .character-card {
        padding: 10px;
    }
    
    .character-avatar {
        margin-bottom: 10px;
    }
    
    .character-title {
        font-size: 0.9rem;
    }
    
    .character-subtitle {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .anime-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .section-title i {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .anime-item {
        padding: 12px;
    }
    
    .anime-image .image-frame {
        width: 100px;
        height: 140px;
    }
    
    .anime-name {
        font-size: 1rem;
    }
    
    .anime-desc {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 5px;
        /* 确保在最小屏幕上网格不会溢出 */
        width: 100%;
        overflow: hidden;
    }
    
    .character-card {
        padding: 8px;
    }
    
    .character-avatar {
        margin-bottom: 8px;
    }
    
    .character-title {
        font-size: 0.8rem;
    }
    
    .character-subtitle {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
}

/* 关于我模块响应式设计 */
@media (max-width: 768px) {
    .about-me-section {
        margin: 25px 0;
        padding: 20px;
    }
    
    .about-me-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-me-sidebar {
        max-width: none;
        width: 100%;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .name-container {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .about-text {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .social-links {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .about-me-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .name-container {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .about-text {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .social-links {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        max-width: 35px;
        max-height: 35px;
    }
}


/* keifont 字体统一样式 - 优先渲染优化 */
.keifont-text {
    font-family: 'keifont', 'Source Han Sans JP', 'Source Han Sans TC', 'Noto Sans CJK JP', 'Noto Sans CJK TC', 'Yu Gothic', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
    /* 字体加载优化 - 防止布局偏移 */
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 字体优先级优化 */
    font-variant-ligatures: discretionary-ligatures;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* 英语字母字体优化（使用BoBoHei） */
.english-text {
    font-family: 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'PingFang SC', 'Yu Gothic', 'Hiragino Sans GB', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-style: normal;
}

/* 混合文本字体优化（包含中文、英文、日文） */
.mixed-text {
    font-family: 'BoBoHei', 'Source Han Sans CN', 'Source Han Sans SC', 'Source Han Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'keifont', 'Yu Gothic', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: normal;
    font-style: normal;
}

/* 移动端字体优化 */
@media (max-width: 768px) {
    .keifont-text {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .keifont-text {
        font-size: 0.9rem;
        line-height: 1.2;
        font-weight: 500;
    }
}

/* 字体回退策略 - 优先级优化 */
.font-fallback {
    font-family: 'Yu Gothic', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: 500;
}

/* 字体加载状态指示器 - 优先渲染优化 */
.font-loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.font-loaded {
    opacity: 1;
    font-weight: 400;
}



/* 字体预加载优化 */
@font-face {
    font-family: 'SystemFont';
    src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial'), sans-serif;
    font-display: optional;
}

/* 系统字体栈优化 */
.system-font {
    font-family: 'SystemFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-display: optional;
}

/* ==========================================================================
   番剧和角色模态框样式
   ========================================================================== */

/* 番剧模态框 */
.anime-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.anime-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    width: 80vw;
    max-width: 800px;
}

.anime-modal.active .anime-modal-content {
    transform: scale(1);
}

/* 番剧模态框图片区域 */
.anime-modal-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 50vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.anime-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* 番剧模态框信息区域 */
.anime-modal-info {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex: 1;
    max-height: 50vh;
    overflow-y: auto;
}

[data-theme="dark"] .anime-modal-info {
    background: rgba(30, 30, 47, 0.95);
}

.anime-modal-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.anime-modal-title-en {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.anime-modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.anime-modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.anime-modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.anime-modal-meta i {
    color: var(--color-primary);
}

.anime-modal-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.genre-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 番剧模态框操作按钮 */
.anime-modal-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.anime-modal-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.anime-modal-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.anime-modal-favorite-btn {
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.anime-modal-favorite-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.anime-modal-favorite-btn.favorited {
    background: var(--color-primary);
    color: white;
}

.anime-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    /* 移动端增强触摸反馈 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.anime-modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* 角色模态框 */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.character-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    width: 90vw;
    max-width: 600px;
}

.character-modal.active .character-modal-content {
    transform: scale(1);
}

/* 角色模态框图片区域 */
.character-modal-image {
    position: relative;
    width: 40%;
    min-width: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 角色模态框信息区域 */
.character-modal-info {
    flex: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .character-modal-info {
    background: rgba(30, 30, 47, 0.95);
}

.character-modal-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.character-modal-series {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.character-modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.character-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-modal-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.character-modal-meta i {
    color: var(--color-primary);
}

/* 角色模态框操作按钮 */
.character-modal-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.character-modal-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.character-modal-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.character-modal-favorite-btn {
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-modal-favorite-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.character-modal-favorite-btn.favorited {
    background: var(--color-primary);
    color: white;
}

.character-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    /* 移动端增强触摸反馈 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.character-modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .anime-modal-content {
        width: 95vw;
        max-width: none;
    }
    
    .anime-modal-image {
        max-height: 250px;
    }
    
    .anime-modal-info {
        padding: 20px;
    }
    
    .anime-modal-title {
        font-size: 1.5rem;
    }
    
    .anime-modal-title-en {
        font-size: 1rem;
    }
    
    .character-modal-content {
        flex-direction: column;
        width: 95vw;
        max-width: none;
    }
    
    .character-modal-image {
        width: 100%;
        min-width: auto;
        height: 250px;
    }
    
    .character-modal-info {
        padding: 20px;
    }
    
    .character-modal-name {
        font-size: 1.5rem;
    }
    
    .character-modal-actions {
        top: 15px;
        right: 15px;
    }
    
    .anime-modal-actions,
    .character-modal-actions {
        top: 15px;
        right: 15px;
    }
    
    .anime-modal-close,
    .character-modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .anime-modal-close,
    .character-modal-close {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .anime-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }
    
    .anime-modal-image {
        max-height: 200px;
    }
    
    .anime-modal-info {
        padding: 15px;
        max-height: none;
    }
    
    .anime-modal-title {
        font-size: 1.3rem;
    }
    
    .character-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }
    
    .character-modal-image {
        height: 200px;
    }
    
    .character-modal-info {
        padding: 15px;
    }
    
    .character-modal-name {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   歌曲模块样式
   ========================================================================== */

/* 歌曲网格 */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 电脑端歌曲网格改为3列布局 */
@media (min-width: 769px) {
    .song-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 14px;
    }
}

/* 歌曲项 */
.song-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 138, 193, 0.2);
    position: relative;
    overflow: hidden;
    /* 确保项目大小一致 */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.song-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.song-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 138, 193, 0.3);
    border-color: rgba(255, 138, 193, 0.4);
}

.song-item:hover::before {
    transform: scaleX(1);
}

/* 深色模式歌曲项 */
[data-theme="dark"] .song-item {
    background: rgba(30, 30, 47, 0.6);
    border: 1px solid rgba(118, 134, 213, 0.3);
}

[data-theme="dark"] .song-item:hover {
    border-color: rgba(118, 134, 213, 0.5);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* 歌曲图片区域 */
.song-image {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.song-image::before {
    content: '🎵';
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
}

.song-image .image-frame {
    width: 100px;
    height: 100px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 歌曲信息区域 */
.song-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.song-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1.3;
}

.song-artist {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.song-album {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(255, 138, 193, 0.05);
    border-radius: 6px;
    margin-top: auto;
}

.song-item:hover .song-title {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* 深色模式歌曲信息 */
[data-theme="dark"] .song-title {
    color: var(--color-accent);
}

[data-theme="dark"] .song-album {
    background: rgba(118, 134, 213, 0.1);
    color: var(--text-secondary);
}

/* ==========================================================================
   歌曲模态框样式
   ========================================================================== */

/* 歌曲模态框 */
.song-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.song-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    width: 80vw;
    max-width: 800px;
}

.song-modal.active .song-modal-content {
    transform: scale(1);
}

/* 歌曲模态框图片区域 */
.song-modal-image {
    position: relative;
    width: 40%;
    min-width: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 歌曲模态框信息区域 */
.song-modal-info {
    flex: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .song-modal-info {
    background: rgba(30, 30, 47, 0.95);
}

.song-modal-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.song-modal-title-zh {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.song-modal-artist {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-modal-album {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.song-modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.song-modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 138, 193, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.song-modal-meta i {
    color: var(--color-primary);
}

.song-modal-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.genre-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 歌曲模态框操作按钮 */
.song-modal-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.song-modal-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.song-modal-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.song-modal-favorite-btn {
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.song-modal-favorite-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 138, 193, 0.4);
}

.song-modal-favorite-btn.favorited {
    background: var(--color-primary);
    color: white;
}

.song-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 193, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    /* 移动端增强触摸反馈 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.song-modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .song-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 10px;
    }
    
    .song-item {
        padding: 10px;
        min-height: 160px;
    }
    
    .song-image {
        min-height: 110px;
        margin-bottom: 8px;
    }
    
    .song-image .image-frame {
        width: 80px;
        height: 80px;
    }
    
    .song-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .song-artist {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .song-album {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
    
    .song-modal-content {
        width: 95vw;
        max-width: none;
        flex-direction: column;
    }
    
    .song-modal-image {
        width: 100%;
        min-width: auto;
        height: 250px;
    }
    
    .song-modal-info {
        padding: 20px;
    }
    
    /* ==========================================================================
       歌曲播放器样式
       ========================================================================== */
    
    /* 歌曲控制容器 */
    .song-controls {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }
    
    /* 播放按钮 */
    .play-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 138, 193, 0.3);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .play-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .play-btn:hover::before {
        left: 100%;
    }
    
    .play-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 138, 193, 0.4);
    }
    
    .play-btn:active {
        transform: scale(0.95);
    }
    
    .play-btn i {
        font-size: 1rem;
        z-index: 1;
        transition: all 0.3s ease;
    }
    
    /* 进度条容器 */
    .progress-container {
        width: 100%;
        max-width: 180px;
        height: 5px;
        background: rgba(255, 138, 193, 0.2);
        border-radius: 3px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin: 0 6px;
    }
    
    .progress-container:hover {
        height: 6px;
        background: rgba(255, 138, 193, 0.3);
    }
    
    /* 进度条 */
    .progress-bar {
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 3px;
        position: relative;
        overflow: hidden;
    }
    
    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }
    
    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }
        100% {
            transform: translateX(100%);
        }
    }
    
    /* 进度填充 */
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 3px;
        width: 0%;
        transition: width 0.1s linear;
        position: relative;
        overflow: hidden;
    }
    
    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 15px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
        border-radius: 0 3px 3px 0;
        animation: progressShine 1s infinite;
    }
    
    @keyframes progressShine {
        0% {
            opacity: 0.6;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0.6;
        }
    }
    
    /* 时间显示 */
    .time-display {
        font-size: 0.6rem;
        color: var(--text-muted);
        font-weight: 500;
        text-align: center;
        min-width: 50px;
        max-width: 60px;
        background: rgba(255, 138, 193, 0.1);
        padding: 1px 2px;
        border-radius: 3px;
        border: 1px solid rgba(255, 138, 193, 0.2);
        transition: all 0.3s ease;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        box-sizing: border-box;
        line-height: 1;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .time-display:hover {
        background: rgba(255, 138, 193, 0.15);
        border-color: rgba(255, 138, 193, 0.3);
    }
    
    /* 深色模式播放器样式 */
    [data-theme="dark"] .play-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 4px 15px rgba(118, 134, 213, 0.3);
    }
    
    [data-theme="dark"] .play-btn:hover {
        box-shadow: 0 6px 20px rgba(118, 134, 213, 0.4);
    }
    
    [data-theme="dark"] .progress-container {
        background: rgba(118, 134, 213, 0.2);
    }
    
    [data-theme="dark"] .progress-container:hover {
        background: rgba(118, 134, 213, 0.3);
    }
    
    [data-theme="dark"] .time-display {
        background: rgba(118, 134, 213, 0.1);
        border-color: rgba(118, 134, 213, 0.2);
        color: var(--text-secondary);
    }
    
    [data-theme="dark"] .time-display:hover {
        background: rgba(118, 134, 213, 0.15);
        border-color: rgba(118, 134, 213, 0.3);
    }
    
    /* 移动端播放器优化 */
    @media (max-width: 768px) {
        .play-btn {
            width: 36px;
            height: 36px;
        }
        
        .play-btn i {
            font-size: 0.8rem;
        }
        
        .time-display {
            font-size: 0.6rem;
            min-width: 75px;
            padding: 2px 5px;
        }
        
        .progress-container {
            height: 3px;
            max-width: 160px;
        }
        
        .progress-container:hover {
            height: 4px;
        }
        
        .song-controls {
            max-width: 260px;
            gap: 5px;
        }
        
        .playlist-controls {
            gap: 8px;
            margin-bottom: 16px;
            padding: 10px 12px;
        }
        
        .playlist-btn {
            width: 32px;
            height: 32px;
        }
        
        .playlist-btn i {
            font-size: 0.8rem;
        }
        
        .play-all-btn {
            width: 36px;
            height: 36px;
        }
        
        .play-all-btn i {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 480px) {
        .play-btn {
            width: 32px;
            height: 32px;
        }
        
        .play-btn i {
            font-size: 0.7rem;
        }
        
        .time-display {
            font-size: 0.55rem;
            min-width: 65px;
            padding: 2px 4px;
        }
        
        .progress-container {
            height: 2px;
            max-width: 140px;
        }
        
        .progress-container:hover {
            height: 3px;
        }
        
        .song-controls {
            max-width: 220px;
            gap: 4px;
            margin-top: 8px;
        }
        
        .playlist-controls {
            gap: 6px;
            margin-bottom: 12px;
            padding: 8px 10px;
        }
        
        .playlist-btn {
            width: 28px;
            height: 28px;
        }
        
        .playlist-btn i {
            font-size: 0.7rem;
        }
        
        .play-all-btn {
            width: 32px;
            height: 32px;
        }
        
        .play-all-btn i {
            font-size: 0.8rem;
        }
    }
    
    /* 音频播放动画 - 使用上方已定义的pulse动画 */
    .play-btn.playing {
        animation: pulse 1s infinite;
    }
    
    /* 播放按钮脉冲动画 */
    @keyframes pulse {
        0% {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        50% {
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
        }
        100% {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
    }
    
    /* 播放列表控制 */
    .playlist-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 16px;
        border: 1px solid rgba(255, 138, 193, 0.2);
        box-shadow: 0 4px 15px rgba(155, 81, 224, 0.1);
        transition: all 0.3s ease;
    }
    
    .playlist-controls:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(155, 81, 224, 0.2);
        border-color: rgba(255, 138, 193, 0.4);
    }
    
    /* 播放列表按钮 */
    .playlist-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(255, 138, 193, 0.3);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .playlist-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .playlist-btn:hover::before {
        left: 100%;
    }
    
    .playlist-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(255, 138, 193, 0.4);
    }
    
    .playlist-btn:active {
        transform: scale(0.95);
    }
    
    .playlist-btn i {
        font-size: 0.9rem;
        z-index: 1;
        transition: all 0.3s ease;
    }
    
    .playlist-btn.active {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 6px 18px rgba(255, 138, 193, 0.5);
    }
    
    /* 播放全部按钮 */
    .play-all-btn {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #ff8ac1, #ffb3e6);
        box-shadow: 0 6px 20px rgba(255, 138, 193, 0.4);
    }
    
    .play-all-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 138, 193, 0.5);
    }
    
    .play-all-btn i {
        font-size: 1.1rem;
    }
    
    .play-all-btn.playing {
        animation: pulse 1s infinite;
    }
    
    .play-all-btn.playing i {
        transform: scale(1.1);
    }
    
    /* 正在播放的歌曲高亮 */
    .song-item.playing {
        border: 2px solid var(--color-primary);
        box-shadow: 0 8px 25px rgba(255, 138, 193, 0.3);
        transform: translateY(-5px) scale(1.02);
    }
    
    .song-item.playing .play-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        animation: pulse 2s infinite;
    }
    
    /* 深色模式播放列表控制 */
    [data-theme="dark"] .playlist-controls {
        background: rgba(30, 30, 47, 0.8);
        border: 1px solid rgba(118, 134, 213, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .playlist-controls:hover {
        border-color: rgba(118, 134, 213, 0.5);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    [data-theme="dark"] .playlist-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 4px 12px rgba(118, 134, 213, 0.3);
    }
    
    [data-theme="dark"] .playlist-btn:hover {
        box-shadow: 0 6px 18px rgba(118, 134, 213, 0.4);
    }
    
    [data-theme="dark"] .playlist-btn.active {
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        box-shadow: 0 6px 18px rgba(118, 134, 213, 0.5);
    }
    
    [data-theme="dark"] .play-all-btn {
        background: linear-gradient(135deg, #5a7ba8, #8fa0c9);
        box-shadow: 0 6px 20px rgba(90, 123, 168, 0.4);
    }
    
    [data-theme="dark"] .play-all-btn:hover {
        box-shadow: 0 8px 25px rgba(90, 123, 168, 0.5);
    }
    
    [data-theme="dark"] .song-item.playing {
        border-color: var(--color-accent);
        box-shadow: 0 8px 25px rgba(118, 134, 213, 0.3);
    }
    
    /* 移动端播放列表控制 */
    @media (max-width: 768px) {
        .playlist-controls {
            gap: 8px;
            margin-bottom: 16px;
            padding: 10px 12px;
        }
        
        .playlist-btn {
            width: 36px;
            height: 36px;
        }
        
        .playlist-btn i {
            font-size: 0.9rem;
        }
        
        .play-all-btn {
            width: 44px;
            height: 44px;
        }
        
        .play-all-btn i {
            font-size: 1.1rem;
        }
    }
    
    @media (max-width: 480px) {
        .playlist-controls {
            gap: 6px;
            margin-bottom: 12px;
            padding: 8px 10px;
        }
        
        .playlist-btn {
            width: 32px;
            height: 32px;
        }
        
        .playlist-btn i {
            font-size: 0.8rem;
        }
        
        .play-all-btn {
            width: 38px;
            height: 38px;
        }
        
        .play-all-btn i {
            font-size: 0.9rem;
        }
    }
    
    /* 通知样式 */
    .audio-notification {
        z-index: 10000;
        font-family: var(--font-family-primary);
    }
    
    .song-modal-title {
        font-size: 1.5rem;
    }
    
    .song-modal-title-zh {
        font-size: 1rem;
    }
    
    .song-modal-actions {
        top: 15px;
        right: 15px;
    }
    
    .song-modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   电脑端播放器样式
   ========================================================================== */

/* 电脑端播放器容器 */
@media (min-width: 769px) {
    /* 歌曲控制容器 */
    .song-controls {
        margin-top: 15px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 14px;
        border: 1px solid rgba(255, 138, 193, 0.2);
        box-shadow: 0 3px 12px rgba(155, 81, 224, 0.08);
        transition: all 0.3s ease;
        width: 100%;
        max-width: 400px;
        min-width: 280px;
        overflow: hidden;
    }
    
    .song-controls:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(155, 81, 224, 0.2);
        border-color: rgba(255, 138, 193, 0.4);
    }
    
    /* 播放按钮 - 电脑端 */
    .play-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 3px 12px rgba(255, 138, 193, 0.25);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .play-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .play-btn:hover::before {
        left: 100%;
    }
    
    .play-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 5px 18px rgba(255, 138, 193, 0.35);
    }
    
    .play-btn:active {
        transform: scale(0.92);
    }
    
    .play-btn i {
        font-size: 1.1rem;
        z-index: 1;
        transition: all 0.3s ease;
    }
    
    /* 进度条容器 - 电脑端 */
    .progress-container {
        flex: 1;
        height: 6px;
        background: rgba(255, 138, 193, 0.2);
        border-radius: 3px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        min-width: 120px;
        max-width: 180px;
        flex-shrink: 1;
        margin: 0 6px;
    }
    
    .progress-container:hover {
        height: 8px;
        background: rgba(255, 138, 193, 0.3);
    }
    
    /* 进度条 - 电脑端 */
    .progress-bar {
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 4px;
        position: relative;
        overflow: hidden;
    }
    
    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }
    
    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }
        100% {
            transform: translateX(100%);
        }
    }
    
    /* 进度填充 - 电脑端 */
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 3px;
        width: 0%;
        transition: width 0.1s linear;
        position: relative;
        overflow: hidden;
    }
    
    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 15px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
        border-radius: 0 3px 3px 0;
        animation: progressShine 1s infinite;
    }
    
    @keyframes progressShine {
        0% {
            opacity: 0.6;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0.6;
        }
    }
    
    /* 时间显示 - 电脑端 */
    .time-display {
        font-size: 0.6rem;
        color: var(--text-muted);
        font-weight: 500;
        text-align: center;
        min-width: 55px;
        max-width: 65px;
        background: rgba(255, 138, 193, 0.1);
        padding: 1px 3px;
        border-radius: 4px;
        border: 1px solid rgba(255, 138, 193, 0.2);
        transition: all 0.3s ease;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        box-sizing: border-box;
        line-height: 1;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .time-display:hover {
        background: rgba(255, 138, 193, 0.15);
        border-color: rgba(255, 138, 193, 0.3);
    }
    
    /* 播放列表控制 - 电脑端 */
    .playlist-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 14px;
        border: 1px solid rgba(255, 138, 193, 0.2);
        box-shadow: 0 3px 12px rgba(155, 81, 224, 0.08);
        transition: all 0.3s ease;
    }
    
    .playlist-controls:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(155, 81, 224, 0.15);
        border-color: rgba(255, 138, 193, 0.3);
    }
    
    /* 播放列表按钮 - 电脑端 */
    .playlist-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(255, 138, 193, 0.25);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .playlist-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .playlist-btn:hover::before {
        left: 100%;
    }
    
    .playlist-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 5px 15px rgba(255, 138, 193, 0.35);
    }
    
    .playlist-btn:active {
        transform: scale(0.92);
    }
    
    .playlist-btn i {
        font-size: 0.9rem;
        z-index: 1;
        transition: all 0.3s ease;
    }
    
    .playlist-btn.active {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 6px 18px rgba(255, 138, 193, 0.5);
    }
    
    /* 播放全部按钮 - 电脑端 */
    .play-all-btn {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #ff8ac1, #ffb3e6);
        box-shadow: 0 5px 18px rgba(255, 138, 193, 0.35);
    }
    
    .play-all-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 7px 22px rgba(255, 138, 193, 0.45);
    }
    
    .play-all-btn i {
        font-size: 1.1rem;
    }
    
    /* 正在播放的歌曲高亮 - 电脑端 */
    .song-item.playing {
        border: 2px solid var(--color-primary);
        box-shadow: 0 8px 25px rgba(255, 138, 193, 0.3);
        transform: translateY(-5px) scale(1.02);
    }
    
    .song-item.playing .play-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        animation: pulse 2s infinite;
    }
    
    /* 深色模式电脑端播放器样式 */
    [data-theme="dark"] .song-controls {
        background: rgba(30, 30, 47, 0.8);
        border: 1px solid rgba(118, 134, 213, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .song-controls:hover {
        border-color: rgba(118, 134, 213, 0.5);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    [data-theme="dark"] .play-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 3px 12px rgba(118, 134, 213, 0.25);
    }
    
    [data-theme="dark"] .play-btn:hover {
        box-shadow: 0 5px 18px rgba(118, 134, 213, 0.35);
    }
    
    [data-theme="dark"] .progress-container {
        background: rgba(118, 134, 213, 0.2);
    }
    
    [data-theme="dark"] .progress-container:hover {
        background: rgba(118, 134, 213, 0.3);
    }
    
    [data-theme="dark"] .time-display {
        background: rgba(118, 134, 213, 0.1);
        border-color: rgba(118, 134, 213, 0.2);
        color: var(--text-secondary);
    }
    
    [data-theme="dark"] .time-display:hover {
        background: rgba(118, 134, 213, 0.15);
        border-color: rgba(118, 134, 213, 0.3);
    }
    
    [data-theme="dark"] .playlist-controls {
        background: rgba(30, 30, 47, 0.8);
        border: 1px solid rgba(118, 134, 213, 0.3);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    }
    
    [data-theme="dark"] .playlist-controls:hover {
        border-color: rgba(118, 134, 213, 0.4);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }
    
    [data-theme="dark"] .playlist-btn {
        background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
        box-shadow: 0 3px 10px rgba(118, 134, 213, 0.25);
    }
    
    [data-theme="dark"] .playlist-btn:hover {
        box-shadow: 0 5px 15px rgba(118, 134, 213, 0.35);
    }
    
    [data-theme="dark"] .playlist-btn.active {
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        box-shadow: 0 5px 15px rgba(118, 134, 213, 0.4);
    }
    
    [data-theme="dark"] .play-all-btn {
        background: linear-gradient(135deg, #5a7ba8, #8fa0c9);
        box-shadow: 0 5px 18px rgba(90, 123, 168, 0.35);
    }
    
    [data-theme="dark"] .play-all-btn:hover {
        box-shadow: 0 7px 22px rgba(90, 123, 168, 0.45);
    }
    
    [data-theme="dark"] .song-item.playing {
        border-color: var(--color-accent);
        box-shadow: 0 8px 25px rgba(118, 134, 213, 0.3);
    }
}

@media (max-width: 480px) {
    .song-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 5px;
    }
    
    .song-item {
        padding: 6px;
        min-height: 140px;
    }
    
    .song-image {
        min-height: 90px;
        margin-bottom: 6px;
    }
    
    .song-image .image-frame {
        width: 70px;
        height: 70px;
    }
    
    .song-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .song-artist {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .song-album {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .song-modal-close {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .song-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }
    
    .song-modal-image {
        height: 200px;
    }
    
    .song-modal-info {
        padding: 15px;
    }
    
    .song-modal-title {
        font-size: 1.3rem;
    }
    
    .song-modal-title-zh {
        font-size: 1rem;
    }
}

/* ==========================================================================
   自定义光标样式
   ========================================================================== */

/* 默认光标 */
:root {
    --cursor-default: url('../cur/millennium_base.cur'), auto;
    --cursor-pointer: url('../cur/millennium_link.cur'), pointer;
    --cursor-text: url('../cur/millennium_text.ani'), text;
    --cursor-help: url('../cur/millennium_help_rio.cur'), help;
    --cursor-crosshair: url('../cur/millennium_pen.cur'), crosshair;
    --cursor-move: url('../cur/millennium_move.cur'), move;
    --cursor-not-allowed: url('../cur/millennium_block.cur'), not-allowed;
    --cursor-progress: url('../cur/millennium_loading_v1.ani'), progress;
    --cursor-wait: url('../cur/millennium_loading_v1.ani'), wait;
    --cursor-zoom-in: url('../cur/millennium_alternative.cur'), zoom-in;
    --cursor-zoom-out: url('../cur/millennium_areaselect.cur'), zoom-out;
    --cursor-ns-resize: url('../cur/millennium_NS.cur'), ns-resize;
    --cursor-ew-resize: url('../cur/millennium_EW.cur'), ew-resize;
    --cursor-nwse-resize: url('../cur/millennium_diag1.cur'), nwse-resize;
    --cursor-nesw-resize: url('../cur/millennium_diag2.cur'), nesw-resize;
    --cursor-grab: url('../cur/millennium_background_aris.ani'), grab;
    --cursor-grabbing: url('../cur/millennium_background_aris.ani'), grabbing;
}

/* 全局光标应用 */
body {
    cursor: var(--cursor-default);
}

/* 链接光标 */
a, button, .clickable {
    cursor: var(--cursor-pointer);
}

/* 文本输入光标 */
input, textarea, select {
    cursor: var(--cursor-text);
}

/* 帮助光标 */
[title]:hover, .help-icon {
    cursor: var(--cursor-help);
}

/* 绘图光标 */
.draw-area, .canvas-container {
    cursor: var(--cursor-crosshair);
}

/* 可拖拽元素 */
.draggable, .sortable-handle {
    cursor: var(--cursor-move);
}

/* 禁用状态 */
.disabled, [disabled], .not-allowed {
    cursor: var(--cursor-not-allowed);
}

/* 加载状态 */
.loading, .spinner {
    cursor: var(--cursor-progress);
}

/* 缩放光标 */
.zoom-in:hover, .zoom-in-button {
    cursor: var(--cursor-zoom-in);
}

.zoom-out:hover, .zoom-out-button {
    cursor: var(--cursor-zoom-out);
}

/* 调整大小光标 */
.resizable {
    cursor: var(--cursor-move);
}

.resizable-ns {
    cursor: var(--cursor-ns-resize);
}

.resizable-ew {
    cursor: var(--cursor-ew-resize);
}

.resizable-nwse {
    cursor: var(--cursor-nwse-resize);
}

.resizable-nesw {
    cursor: var(--cursor-nesw-resize);
}

/* 抓取光标 */
.grab {
    cursor: var(--cursor-grab);
}

.grabbing {
    cursor: var(--cursor-grabbing);
}

/* 特定元素光标 */
.post-card:hover, .sidebar-widget:hover, .anime-item:hover, .song-item:hover {
    cursor: var(--cursor-pointer);
}

/* 图片悬停光标 */
.image-frame:hover, .avatar:hover, .post-image:hover {
    cursor: var(--cursor-zoom-in);
}

/* 导航菜单光标 */
nav a, nav li, .menu-toggle {
    cursor: var(--cursor-pointer);
}

/* 社交链接光标 */
.social-links a:hover {
    cursor: var(--cursor-pointer);
}

/* 播放器控制光标 */
.play-btn, .playlist-btn, .play-all-btn {
    cursor: var(--cursor-pointer);
}

/* 进度条光标 */
.progress-container {
    cursor: var(--cursor-pointer);
}

/* 滚动条光标 */
::-webkit-scrollbar-thumb {
    cursor: var(--cursor-pointer);
}

/* 深色模式适配 */
[data-theme="dark"] * {
    /* 深色模式下保持相同的光标样式 */
}

/* 自定义光标动画效果 */
.cursor-glow {
    filter: drop-shadow(0 0 3px rgba(255, 138, 193, 0.8));
}

.cursor-glow-dark {
    filter: drop-shadow(0 0 3px rgba(118, 134, 213, 0.8));
}

/* 光标过渡效果 */
* {
    transition: cursor 0.2s ease;
}

/* 光标跟随效果（可选） */
.cursor-follower {
    position: fixed;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    opacity: 0;
    mix-blend-mode: difference;
}

.cursor-follower.active {
    opacity: 1;
}

/* 响应式光标调整 */
@media (max-width: 768px) {
    :root {
        /* 移动端可以使用更小的光标或保持默认 */
        --cursor-default: auto;
    }
    
    body {
        cursor: auto;
    }
    
    /* 移动端保留重要交互元素的光标 */
    a, button, .clickable {
        cursor: pointer;
    }
}

/* 低性能设备优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none;
    }
    
    .cursor-follower {
        display: none;
    }
}

/* 光标可见性控制 */
.cursor-hidden {
    cursor: none;
}

.cursor-hidden .cursor-follower {
    opacity: 0;
}

/* 备案号突出显示样式 */
.beian-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    color: #333 !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-size: 1.2 !important;
    font-weight: bold !important;
    font-family: "黑体", "Microsoft YaHei", "SimHei", sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid #333 !important;
    letter-spacing: 0.5px !important;
    margin: 0 5px !important;
    z-index: 1000 !important;
}

.beian-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.beian-number:hover::before {
    transform: translateX(100%);
}

.beian-number:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
    border-color: #555;
}

.beian-number i {
    margin-right: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.beian-number:hover i {
    transform: rotate(360deg) scale(1.1);
}

@keyframes beian-glow {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* 深色模式备案号样式 */
[data-theme="dark"] .beian-number {
    background: white;
    color: black !important;
    border-color: #666;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .beian-number:hover {
    background: #f0f0f0;
    border-color: #888;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 移动端备案号优化 */
@media (max-width: 768px) {
    .beian-number {
        font-size: 1rem;
        padding: 5px 14px;
        margin: 2px 0;
    }
    
    .beian-number i {
        font-size: 1rem;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .beian-number {
        font-size: 0.9rem;
        padding: 4px 12px;
    }
    
    .beian-number i {
        font-size: 0.9rem;
        margin-right: 5px;
    }
}
