/* 浅苔青暗调主题 - CSS变量 */
:root {
    /* 核心配色 */
    --primary: #5EEAD4;
    --primary-light: #99F6E4;
    --primary-dark: #2DD4BF;
    --bg: #111C1B;
    --card: #1F2E2D;
    --card-hover: #2A3D3C;
    --text: #D1FAE5;
    --text-muted: #99F6E4;
    --border: rgba(94, 234, 212, 0.2);
    
    /* 功能变量 */
    --main_bg_color: var(--bg);
    --main_text_color: var(--text);
    --item_bg_color: var(--card);
    --item_hover_color: var(--card-hover);
    --gradient: linear-gradient(120deg, #5EEAD4, #2DD4BF 50%, #99F6E4 100%);
    --card_filter: 0px;
    --back_filter: 0px;
    --back_filter_color: transparent;
}

/* 浅色主题 */
[data-theme="Light"] {
    --bg: #F0FDFA;
    --card: #CCFBF1;
    --card-hover: #99F6E4;
    --text: #134E4A;
    --text-muted: #2DD4BF;
    --border: rgba(94, 234, 212, 0.3);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 页面淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 页面加载动画 */
body {
    animation: fadeIn 0.6s ease-out;
}

/* 左侧边栏动画 */
.left {
    animation: fadeInLeft 0.8s ease-out 0.1s both;
}

/* 右侧内容区动画 */
.right {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* 卡片通用动画 */
.left-div,
.projectItem,
.blog-card,
.friend-item,
.skill-tag {
    animation: fadeInScale 0.5s ease-out both;
}

/* 标题动画 */
.welcome,
.blog-header .welcome,
.post-header {
    animation: slideInUp 0.7s ease-out 0.3s both;
}

/* 内容 stagger 动画 */
.projectList .projectItem:nth-child(1) { animation-delay: 0.1s; }
.projectList .projectItem:nth-child(2) { animation-delay: 0.2s; }
.projectList .projectItem:nth-child(3) { animation-delay: 0.3s; }
.projectList .projectItem:nth-child(4) { animation-delay: 0.4s; }

.blog-list .blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-list .blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-list .blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-list .blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-list .blog-card:nth-child(5) { animation-delay: 0.5s; }

.friends-grid .friend-item:nth-child(1) { animation-delay: 0.05s; }
.friends-grid .friend-item:nth-child(2) { animation-delay: 0.1s; }
.friends-grid .friend-item:nth-child(3) { animation-delay: 0.15s; }
.friends-grid .friend-item:nth-child(4) { animation-delay: 0.2s; }
.friends-grid .friend-item:nth-child(5) { animation-delay: 0.25s; }
.friends-grid .friend-item:nth-child(6) { animation-delay: 0.3s; }

.skill-tags .skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-tags .skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-tags .skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-tags .skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-tags .skill-tag:nth-child(5) { animation-delay: 0.25s; }
.skill-tags .skill-tag:nth-child(6) { animation-delay: 0.3s; }

/* 悬停动画增强 */
.projectItem,
.blog-card,
.friend-item,
.skill-tag,
.left-tag-item,
.nav-item,
.filter-tag {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* 按钮点击动画 */
button,
.nav-btn,
.share-btn,
.page-btn {
    transition: transform 0.15s ease, background-color 0.3s ease, color 0.3s ease;
}

button:active,
.nav-btn:active,
.share-btn:active,
.page-btn:active {
    transform: scale(0.95);
}

/* 链接下划线动画 */
a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 图片悬停动画 */
.avatar-img,
.blog-cover,
.friend-avatar img {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

/* 搜索框聚焦动画 */
.search-box input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.search-box input:focus {
    transform: translateY(-2px);
}

/* 页脚淡入 */
footer {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

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

::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* 图标基础样式 */
.icon {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    margin-right: 8px;
}

/* 返回按钮样式（博客和文章详情页共用） */
.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--item_bg_color);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-home:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
}

.back-home svg {
    width: 18px;
    height: 18px;
}

/* 页面背景 */
body {
    min-height: 100vh;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--main_bg_color);
    color: var(--main_text_color);
    position: relative;
    overflow-x: hidden;
}

/* 背景滤镜层 */
.filter {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--back_filter_color);
    backdrop-filter: blur(var(--back_filter));
    z-index: -1;
}

/* 主容器 */
.main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 0 20px;
}

/* ========== 左侧边栏 ========== */
.left {
    width: 230px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    left: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.left::-webkit-scrollbar {
    display: none;
}

/* Logo/头像 */
.logo {
    margin-top: 50px;
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--bg);
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
    position: relative;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
    border: 3px solid var(--primary);
    position: relative;
}

/* 左侧卡片 */
.left-div {
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    background: var(--item_bg_color);
    border: 1px solid var(--border);
    backdrop-filter: blur(var(--card_filter));
}

/* 描述信息 */
.left-des {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-des-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.left-des-item .icon {
    width: 18px;
    height: 18px;
}

/* 标签 */
.left-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.left-tag-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(94, 234, 212, 0.15);
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.left-tag-item:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
}

/* 音乐播放器 */
.left-music {
    padding: 15px;
}

.music-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.music-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.music-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.music-info {
    margin-bottom: 12px;
    text-align: center;
}

.song-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.ctrl-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.ctrl-btn svg {
    width: 16px;
    height: 16px;
}

.play-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
}

.play-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg);
}

.play-btn svg {
    width: 18px;
    height: 18px;
}

/* 迷你播放器样式 */
.mini-player {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-player:hover {
    background: rgba(94, 234, 212, 0.1);
    border-color: var(--primary);
}

.mini-cover {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-song-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mini-btn:hover {
    color: var(--primary);
}

.mini-play-btn {
    color: var(--primary);
}

/* 展开的播放器弹窗 */
.expanded-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: var(--card);
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expanded-player.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.expanded-header h3 {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary);
}

.expanded-content {
    padding: 20px;
    flex-shrink: 0;
}

.expanded-song-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.expanded-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.expanded-text {
    flex: 1;
}

.expanded-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.expanded-artist {
    color: var(--text-secondary);
    font-size: 13px;
}

.expanded-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.expanded-control-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
}

.expanded-control-btn:hover {
    color: var(--primary);
    background: rgba(94, 234, 212, 0.1);
}

.expanded-play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary) !important;
    border: none;
    border-radius: 50%;
    color: var(--bg) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.expanded-play-btn:hover {
    transform: scale(1.05);
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time {
    color: var(--text-secondary);
    font-size: 11px;
    min-width: 35px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.playlist-section {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    padding: 15px 20px;
}

.playlist-section h4 {
    color: var(--text);
    font-size: 14px;
    margin: 0 0 10px 0;
}

.playlist-items {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.playlist-item:hover {
    background: rgba(94, 234, 212, 0.1);
}

.playlist-item.playing {
    background: rgba(94, 234, 212, 0.2);
}

.playlist-item-cover {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 弹窗遮罩层 */
.expanded-player::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.expanded-player.show::before {
    opacity: 1;
    visibility: visible;
}

.left-music .aplayer .aplayer-bar {
    background: var(--border);
    border-radius: 2px;
}

.left-music .aplayer .aplayer-loaded {
    background: var(--border);
    border-radius: 2px;
}

.left-music .aplayer .aplayer-played {
    background: var(--primary) !important;
    border-radius: 2px;
}

.left-music .aplayer .aplayer-thumb {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.left-music .aplayer .aplayer-time {
    color: var(--text-secondary);
    font-size: 11px;
}

.left-music .aplayer .aplayer-icon {
    fill: var(--text);
}

.left-music .aplayer .aplayer-icon:hover {
    fill: var(--primary);
}

.left-music .aplayer .aplayer-list {
    background: var(--card);
    border-top: 1px solid var(--border);
}

.left-music .aplayer .aplayer-list li {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.left-music .aplayer .aplayer-list li:hover {
    background: rgba(94, 234, 212, 0.1);
}

.left-music .aplayer .aplayer-list li.aplayer-list-light {
    background: rgba(94, 234, 212, 0.15);
}

.left-music .aplayer .aplayer-list-index {
    color: var(--text-secondary);
}

.left-music .aplayer .aplayer-list-author {
    color: var(--text-secondary);
}

/* 移动端音乐播放器 */
.mobile-music {
    display: none;
}

.mobile-music .music-player-container {
    background: var(--card);
    border-radius: 13px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.mobile-music .aplayer {
    background: var(--card);
    border-radius: 13px;
    border: none;
    box-shadow: none;
    margin: 0;
}

.mobile-music .aplayer .aplayer-info {
    padding: 10px;
}

.mobile-music .aplayer .aplayer-title {
    color: var(--text);
}

.mobile-music .aplayer .aplayer-author {
    color: var(--text-secondary);
}

.mobile-music .aplayer .aplayer-play {
    background: var(--primary) !important;
}

.mobile-music .aplayer .aplayer-play svg {
    fill: var(--bg) !important;
}

.mobile-music .aplayer .aplayer-played {
    background: var(--primary) !important;
}

.mobile-music .aplayer .aplayer-thumb {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.mobile-music .aplayer .aplayer-icon {
    fill: var(--text);
}

.mobile-music .aplayer .aplayer-list {
    background: var(--card);
    border-top: 1px solid var(--border);
}

.mobile-music .aplayer .aplayer-list li {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

/* ========== 右侧内容区 ========== */
.right {
    width: calc(100% - 230px);
    padding: 20px 0 60px 30px;
    position: relative;
}

/* 移动端Logo */
.index-logo {
    display: none;
}

.index-logo .avatar {
    width: 100px;
    height: 100px;
    font-size: 40px;
}

.index-logo .avatar-img {
    width: 100px;
    height: 100px;
}

/* 欢迎语 */
.welcome {
    font-size: 55px;
    font-weight: 800;
    margin: 30px 0 20px;
    line-height: 1.2;
}

.gradientText {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

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

.description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* 社交图标栏 */
.iconContainer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.iconContainer::-webkit-scrollbar {
    display: none;
}

.iconItem, .switch {
    width: 56px;
    height: 48px;
    border-radius: 12px;
    background: var(--item_bg_color);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.iconItem .icon {
    width: 26px;
    height: 26px;
    margin: 0;
    flex-shrink: 0;
}

.iconItem:hover {
    width: 105px;
    background: var(--item_hover_color);
    transform: translateY(-2px);
}

.iconTip {
    white-space: nowrap;
    font-size: 12px;
    color: var(--primary);
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.iconItem:hover .iconTip {
    opacity: 1;
    display: block;
}

/* 主题切换开关 */
.onoffswitch {
    position: relative;
    width: 36px;
    height: 20px;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    height: 100%;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    height: 100%;
    margin-left: -100%;
    transition: margin 0.3s ease;
    background: linear-gradient(90deg, var(--primary) 50%, #444 50%);
}

.onoffswitch-switch {
    display: block;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    transition: right 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 18px;
}

/* ========== 内容区域 ========== */
content {
    display: block;
    margin-top: 40px;
}

.title {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin: 35px 0 20px;
    color: var(--primary);
}

.title .icon {
    width: 26px;
    height: 26px;
    margin-right: 10px;
}

/* 项目列表 */
.projectList {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.projectItem {
    display: flex;
    background: var(--item_bg_color);
    border-radius: 12px;
    padding: 18px;
    height: 100px;
    width: calc(50% - 10px);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.projectItem:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(94, 234, 212, 0.1);
    border-color: var(--primary);
}

.projectItem.pressed {
    transform: scale(0.95);
}

.projectItemLeft {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: flex 0.3s ease;
}

.projectItemLeft h1 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.projectItemLeft p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.projectItemRight {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.projectIcon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.projectItem:hover .projectIcon {
    transform: rotate(15deg) scale(1.1);
}

.projectItem:hover .projectItemRight {
    width: 40px;
}

/* 技能标签 */
.skill {
    padding: 10px 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 234, 212, 0.3);
}

/* 友链网格 */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 15px;
    background: var(--item_bg_color);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.friend-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(94, 234, 212, 0.15);
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-name {
    font-size: 13px;
    color: var(--text);
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

.friend-item:hover .friend-name {
    color: var(--primary);
}

/* 贪吃蛇贡献图 */
.tanChiShe {
    width: 85%;
    margin: 20px 0;
}

.tanChiShe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 打字机效果 */
#typewriter {
    min-height: 54px;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

#typewriter::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 页脚 - 扁平淡雅风格 */
footer {
    width: 100%;
    padding: 12px 20px 40px;
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.footer-time {
    color: var(--text-secondary);
}

.footer-divider {
    color: var(--border);
    margin: 0 4px;
}

#runtime {
    color: var(--text-secondary);
}

.footer-divider {
    margin: 0 10px;
    color: var(--border);
}

/* ========== xf-MusicPlayer 自定义样式 ========== */
/* 播放器主容器 - 使用更深层的选择器 */
#xf-MusicPlayer,
#xf-MusicPlayer div[class*="player"],
#xf-MusicPlayer div[class*="panel"],
#xf-MusicPlayer div[class*="container"] {
    background: var(--card) !important;
    color: var(--text) !important;
}

/* 播放器所有子元素背景 */
#xf-MusicPlayer * {
    background-color: transparent !important;
}

/* 播放器主要区域 */
#xf-MusicPlayer > div,
#xf-MusicPlayer > div > div {
    background: var(--card) !important;
}

/* 播放列表 */
#xf-MusicPlayer div[class*="list"],
#xf-MusicPlayer ul[class*="list"],
#xf-MusicPlayer div[class*="playlist"] {
    background: var(--card) !important;
    border-color: var(--border) !important;
}

/* 播放列表项 */
#xf-MusicPlayer li,
#xf-MusicPlayer div[class*="item"] {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

#xf-MusicPlayer li:hover,
#xf-MusicPlayer div[class*="item"]:hover {
    background: rgba(94, 234, 212, 0.1) !important;
}

/* 歌曲名和歌手 */
#xf-MusicPlayer span,
#xf-MusicPlayer div[class*="name"],
#xf-MusicPlayer div[class*="title"] {
    color: var(--text) !important;
}

#xf-MusicPlayer div[class*="artist"],
#xf-MusicPlayer div[class*="singer"] {
    color: var(--text-secondary) !important;
}

/* 按钮 */
#xf-MusicPlayer button,
#xf-MusicPlayer div[class*="btn"],
#xf-MusicPlayer i[class*="icon"] {
    color: var(--text) !important;
}

#xf-MusicPlayer button:hover,
#xf-MusicPlayer div[class*="btn"]:hover {
    color: var(--primary) !important;
}

/* 播放按钮 */
#xf-MusicPlayer div[class*="play"][class*="btn"],
#xf-MusicPlayer button[class*="play"] {
    background: var(--primary) !important;
    color: var(--bg) !important;
}

/* 进度条和音量 */
#xf-MusicPlayer div[class*="progress"],
#xf-MusicPlayer div[class*="volume"] {
    background: var(--border) !important;
}

#xf-MusicPlayer div[class*="progress"] div[class*="fill"],
#xf-MusicPlayer div[class*="volume"] div[class*="fill"] {
    background: var(--primary) !important;
}

/* 歌词 */
#xf-MusicPlayer div[class*="lyric"],
#xf-MusicPlayer div[class*="lrc"] {
    color: var(--text) !important;
}

#xf-MusicPlayer div[class*="lyric"][class*="active"],
#xf-MusicPlayer div[class*="lrc"][class*="current"] {
    color: var(--primary) !important;
}

/* iframe 播放器背景 */
#xf-MusicPlayer iframe {
    background: var(--card) !important;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1400px) {
    .main {
        padding: 0 40px;
    }
    
    .projectItem.a {
        width: calc(50% - 10px);
    }
    
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1150px) {
    .main {
        padding: 0 30px;
    }
    
    .projectItem.a {
        width: calc(50% - 10px);
    }
    
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .main {
        padding: 0 20px;
    }
    
    .left {
        display: none;
    }
    
    .right {
        width: 100%;
        padding: 15px 0 70px;
    }
    
    /* 移动端显示右侧音乐播放器 */
    .mobile-music {
        display: block;
    }
    
    .index-logo {
        display: block;
        margin: 20px auto;
    }
    
    .welcome {
        font-size: 36px;
        text-align: center;
    }
    
    .description {
        text-align: center;
        font-size: 16px;
    }
    
    .iconContainer {
        justify-content: center;
    }
    
    .projectItem {
        width: 100%;
        height: auto;
        min-height: 90px;
    }
    
    .projectItem.b {
        width: 100%;
    }
    
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .friend-avatar {
        width: 45px;
        height: 45px;
    }
    
    .friend-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0 15px;
    }
    
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome {
        font-size: 28px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .skill-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}
