/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 图片查看器样式 ===== */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer.active {
    display: flex;
    opacity: 1;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.image-viewer-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-viewer-close svg {
    width: 24px;
    height: 24px;
}

/* ===== 全局样式结束 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tokyo Night 配色主题 */
    --tokyo-night-bg: #1a1b26;
    --tokyo-night-bg-dark: #16161e;
    --tokyo-night-bg-highlight: #292e42;
    --tokyo-night-terminal-black: #414868;
    --tokyo-night-fg: #c0caf5;
    --tokyo-night-fg-dark: #a9b1d6;
    --tokyo-night-fg-gutter: #3b4261;
    --tokyo-night-dark3: #545c7e;
    --tokyo-night-comment: #565f89;
    --tokyo-night-dark5: #737aa2;
    --tokyo-night-blue0: #3d59a1;
    --tokyo-night-blue: #7aa2f7;
    --tokyo-night-cyan: #7dcfff;
    --tokyo-night-blue1: #2ac3de;
    --tokyo-night-blue2: #0db9d7;
    --tokyo-night-blue5: #89ddff;
    --tokyo-night-blue6: #b4f9f8;
    --tokyo-night-blue7: #394b70;
    --tokyo-night-magenta: #bb9af7;
    --tokyo-night-magenta2: #ff007c;
    --tokyo-night-purple: #9d7cd8;
    --tokyo-night-orange: #ff9e64;
    --tokyo-night-yellow: #e0af68;
    --tokyo-night-green: #9ece6a;
    --tokyo-night-green1: #73daca;
    --tokyo-night-green2: #41a6b5;
    --tokyo-night-teal: #1abc9c;
    --tokyo-night-red: #f7768e;
    --tokyo-night-red1: #db4b4b;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 黑夜模式 */
.dark body {
    background: linear-gradient(135deg, #1a1b26 0%, #16161e 50%, #1a1b26 100%);
    color: #ffffff;
}

/* 浅色模式 */
.light body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: #1f2937;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.dark .navbar.scrolled {
    background: linear-gradient(135deg,
            rgba(41, 46, 66, 0.7) 0%,
            rgba(30, 35, 50, 0.6) 50%,
            rgba(41, 46, 66, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(122, 162, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.light .navbar.scrolled {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(248, 250, 252, 0.8) 50%,
            rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 导航栏隐藏/显示动画 */
.navbar {
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 导航药丸 */
.nav-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(122, 162, 247, 0.3);
    background: rgba(15, 18, 30, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    gap: 2.5rem;
}

.light .nav-pills {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.nav-link {
    color: #c0caf5;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s ease;
}

.light .nav-link {
    color: #1f2937;
}

.nav-link:hover {
    color: #7dcfff;
}

.light .nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #7dcfff;
}

.light .nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #7aa2f7, #7dcfff);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.light .nav-link::after {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active::after {
    animation: pulseLine 1.5s ease-in-out infinite;
}

@keyframes pulseLine {

    0%,
    100% {
        transform: scaleX(0.8);
        opacity: 0.8;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* 右上角控制区 */
.nav-controls {
    position: absolute;
    top: 0.25rem;
    right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 主题切换按钮 */
.theme-toggle {
    padding: 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    color: #7dcfff;
}

.dark .theme-toggle:hover {
    background: rgba(41, 46, 66, 0.5);
}

.light .theme-toggle:hover {
    background: rgba(239, 68, 68, 0.1);
}

.theme-toggle .moon-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.theme-toggle .sun-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: none;
}

.light .theme-toggle .moon-icon {
    display: none;
}

.light .theme-toggle .sun-icon {
    display: block;
    color: #eab308;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    padding: 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    background: transparent;
}

.dark .mobile-menu-toggle:hover {
    background: rgba(41, 46, 66, 0.5);
}

.light .mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle .hamburger-icon,
.mobile-menu-toggle .close-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.dark .mobile-menu-toggle {
    color: #c0caf5;
}

.light .mobile-menu-toggle {
    color: #1f2937;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.open .hamburger-icon {
    display: none;
}

.mobile-menu-toggle.open .close-icon {
    display: block;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    margin-top: 1rem;
    border-radius: 1rem;
    padding: 0.5rem;
    overflow: hidden;
}

.mobile-nav.show {
    display: block;
}

.dark .mobile-nav {
    background: rgba(26, 27, 38, 0.95);
    border: 1px solid rgba(122, 162, 247, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.light .mobile-nav {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    border-radius: 0.75rem;
}

.dark .mobile-nav-link {
    color: #c0caf5;
}

.light .mobile-nav-link {
    color: #1f2937;
}

.dark .mobile-nav-link:hover {
    background: rgba(41, 46, 66, 0.5);
}

.light .mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark .mobile-nav-link.active {
    background: rgba(41, 46, 66, 0.7);
    color: #7dcfff;
}

.light .mobile-nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* ===== 主内容区 ===== */
.main-content {
    padding-top: 7rem;
    padding-bottom: 3rem;
    min-height: 100vh;
}

/* ===== 主页 Hero Section ===== */
.hero-section {
    margin-bottom: 6rem;
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.profile-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 4px solid #7aa2f7;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.signature {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7aa2f7 0%, #bb9af7 50%, #7dcfff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7aa2f7;
    animation: gradientShift 3s ease infinite;
    background-position: 0% 50%;
}

.signature .typing-line1,
.signature .typing-line2 {
    display: inline;
}

/* 打字机效果 */
#typing-text::after,
.typing-line2::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.light .signature {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb;
}

@keyframes gradientRevealLTR {
    0% {
        background-position: -200% center;
        opacity: 0;
    }

    100% {
        background-position: 0% center;
        opacity: 1;
    }
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #c0caf5;
}

.light .quote {
    color: #4b5563;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(122, 162, 247, 0.4);
    color: #7dcfff;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.dark .cta-button:hover {
    background: rgba(41, 46, 66, 0.5);
}

.light .cta-button {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.4);
}

.light .cta-button:hover {
    background: rgba(219, 234, 254, 0.5);
}

.cta-button svg {
    width: 1rem;
    height: 1rem;
}

/* ===== 卡片样式 ===== */
.section {
    margin-bottom: 3rem;
}

.card {
    background: linear-gradient(135deg,
            rgba(41, 46, 66, 0.7) 0%,
            rgba(30, 35, 50, 0.6) 50%,
            rgba(41, 46, 66, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(122, 162, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.light .card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(248, 250, 252, 0.8) 50%,
            rgba(255, 255, 255, 0.85) 100%);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(122, 162, 247, 0.5),
            transparent);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(122, 162, 247, 0.5);
}

.light .card:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.dark .home-card {
    background: #161621 !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(122, 162, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.light .home-card {
    background: #f9fafb;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #7aa2f7, #7dcfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7aa2f7;
}

.light .section-title {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb;
}

.card-section {
    margin-bottom: 2rem;
}

.card-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #7dcfff;
}

.light .card-subtitle {
    color: #2563eb;
}

.card-date {
    font-size: 0.75rem;
    color: #7dcfff;
    float: right;
    margin-left: 1rem;
    opacity: 0.8;
}

.light .card-date {
    color: #6b7280;
}

.card-text {
    font-size: 0.95rem;
    color: #c0caf5;
    line-height: 1.65;
}

.light .card-text {
    color: #374151;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: #c0caf5;
}

.light .info-item {
    color: #1f2937;
}

.info-icon {
    font-size: 1.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badges img {
    height: 2rem;
}

/* ===== 关于页面 ===== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #7aa2f7, #7dcfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7aa2f7;
}

.light .page-header h1 {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #a9b1d6;
    margin-top: 0.5rem;
}

.light .page-subtitle {
    color: #6b7280;
}

/* 备用域名链接特殊样式 */
.page-subtitle .about-link {
    color: #7dcfff;
    text-decoration: none;
    font-weight: 500;
}

/* 关于页面内容区域 - prose风格 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.75;
}

.about-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #c0caf5;
    border-bottom: none;
}

.about-content h2:not(.blue-title) {
    color: #c0caf5;
}

.light .about-content h2:not(.blue-title) {
    color: #1f2937;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    position: relative;
    border-left: 2px solid rgba(122, 162, 247, 0.2);
    margin-left: 0.5rem;
}

.about-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #c0caf5;
    line-height: 1.75;
}

.light .about-content li {
    color: #1f2937;
}

.about-content p {
    margin: 1rem 0;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    line-height: 1.75;
    color: #c0caf5;
    position: relative;
}

.light .about-content p {
    color: #1f2937;
}

/* 为连续段落添加左侧竖线 */
.about-content .p-wrapper {
    position: relative;
    border-left: 2px solid rgba(122, 162, 247, 0.2);
    padding-left: 0;
    margin: 1.5rem 0 1.5rem 0.5rem;
}

.about-content .p-wrapper p {
    margin-left: 0;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #c0caf5;
    line-height: 1.75;
}

.light .about-content .p-wrapper p {
    color: #1f2937;
}

.about-content .p-wrapper p:last-child {
    margin-bottom: 0;
}

.about-content hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid rgba(122, 162, 247, 0.2);
}

.about-content .about-link {
    color: #7dcfff;
    text-decoration: none;
}

.light .about-content .about-link {
    color: #2563eb;
}

.card-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-with-bg {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.large-card {
    grid-column: 1 / -1;
}

.card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(1.1);
}

.dark .card-with-bg:hover .card-bg-image {
    opacity: 0.25;
    transform: scale(1);
}

.light .card-with-bg:hover .card-bg-image {
    opacity: 0.15;
    transform: scale(1);
}

.card-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #7dcfff;
}

.light .card-title {
    color: #2563eb;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.card-info-text {
    font-size: 1rem;
    color: #c0caf5;
}

.light .card-info-text {
    color: #1f2937;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1;
}

.device-item {
    margin-bottom: 0;
}

.device-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #c0caf5;
    margin-bottom: 0.25rem;
}

.light .device-name {
    color: #1f2937;
}

.device-specs {
    list-style: none;
    margin-left: 0.25rem;
    color: #a9b1d6;
}

.light .device-specs {
    color: #6b7280;
}

.device-specs li {
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
}

.device-spec {
    margin-left: 0.25rem;
    font-size: 0.8125rem;
    color: #a9b1d6;
}

.light .device-spec {
    color: #6b7280;
}

/* 诗歌卡片 */
.poem-card {
    grid-column: 1 / -1;
    text-align: center;
}

/* 关于页面特殊卡片 */
.about-section-card {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.friends .about-section-card {
    box-shadow: none;
}

.about-section-card .card-title {
    font-size: 1.375rem;
}

/* 本站历史时间轴 */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(41, 46, 66, 0.3);
    border: 1px solid rgba(122, 162, 247, 0.2);
    transition: all 0.3s ease;
}

.light .history-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(156, 163, 184, 0.2);
}

.history-item:hover {
    transform: translateX(5px);
    border-color: rgba(122, 162, 247, 0.4);
}

.light .history-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.history-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7dcfff;
    min-width: 80px;
    text-align: center;
}

.light .history-date {
    color: #3b82f6;
}

.history-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #c0caf5;
    margin-bottom: 0.25rem;
}

.light .history-content h3 {
    color: #1f2937;
}

.history-content p {
    font-size: 0.95rem;
    color: #a9b1d6;
}

.light .history-content p {
    color: #6b7280;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

/* 版权链接样式 - 历史记录中使用 */
.history-content a.copyright-link {
    color: #7dcfff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline;
}

.light .history-content a.copyright-link {
    color: #2563eb;
}

.history-content a.copyright-link:hover {
    color: #7aa2f7;
}

.light .history-content a.copyright-link:hover {
    color: #3b82f6;
}

.friend-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(41, 46, 66, 0.3);
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
}

.light .friend-link-card {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.friend-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(122, 162, 247, 0.2);
}

.light .friend-link-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.friend-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(122, 162, 247, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
}

.light .friend-avatar {
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.friend-link-card:hover .friend-avatar {
    transform: scale(1.1);
    border-color: #7dcfff;
}

.light .friend-link-card:hover .friend-avatar {
    border-color: #3b82f6;
}

.friend-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c0caf5;
    text-align: center;
}

.light .friend-name {
    color: #1f2937;
}

.friend-link-card:hover .friend-name {
    color: #7dcfff;
}

.light .friend-link-card:hover .friend-name {
    color: #2563eb;
}

/* 申请友链样式 */
.friend-link-apply {
    padding: 1rem;
}

.my-link-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apply-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #bb9af7;
    margin-bottom: 0.5rem;
}

.light .apply-subtitle {
    color: #7c3aed;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(41, 46, 66, 0.3);
    border: 1px solid rgba(122, 162, 247, 0.15);
    transition: all 0.3s ease;
}

.light .info-row {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(156, 163, 184, 0.2);
}

.info-row:hover {
    background: rgba(41, 46, 66, 0.5);
    border-color: rgba(122, 162, 247, 0.3);
}

.light .info-row:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.info-label {
    font-weight: 600;
    color: #7aa2f7;
    min-width: 50px;
}

.light .info-label {
    color: #2563eb;
}

.info-value {
    color: #c0caf5;
}

.light .info-value {
    color: #1f2937;
}

.info-link {
    color: #7dcfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.light .info-link {
    color: #2563eb;
}

.info-link:hover {
    color: #bb9af7;
    text-decoration: underline;
}

.light .info-link:hover {
    color: #7c3aed;
}

.info-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(122, 162, 247, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
}

.light .info-avatar {
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.info-avatar:hover {
    transform: scale(1.1);
    border-color: #7dcfff;
}

.light .info-avatar:hover {
    transform: scale(1.1);
    border-color: #3b82f6;
}

.poem-intro {
    margin-bottom: 1.5rem;
}

.poem-intro p {
    font-style: italic;
    color: #a9b1d6;
    font-size: 1.125rem;
}

.light .poem-intro p {
    color: #6b7280;
}

.poem-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.75;
    color: #c0caf5;
}

.light .poem-content {
    color: #1f2937;
}

.poem-content p {
    font-size: 1.125rem;
}

.poem-highlight {
    font-size: 1.25rem;
    font-weight: bold;
    padding-top: 0.5rem;
    background: linear-gradient(90deg, #7aa2f7, #7dcfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7aa2f7;
}

.light .poem-highlight {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb;
}

.poem-author {
    margin-top: 1.5rem;
    text-align: right;
}

.poem-author p {
    font-style: italic;
    color: #737aa2;
    font-size: 0.875rem;
}

.light .poem-author p {
    color: #9ca3af;
}

/* ===== 留言页面 ===== */
.guestbook-section {
    position: relative;
}

.guestbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Waline 容器样式 */
.waline-container {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    max-width: 800px;
    margin: 0 auto;
}

.light .waline-container {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.guestbook-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7dcfff;
}

.light .guestbook-title {
    color: #2563eb;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.message-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.message-info {
    margin-bottom: 1rem;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.author-name {
    font-weight: bold;
    color: #7dcfff;
}

.light .author-name {
    color: #2563eb;
}

.author-gender {
    font-size: 1rem;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #737aa2;
}

.light .message-meta {
    color: #6b7280;
}

.message-content {
    color: #c0caf5;
    line-height: 1.75;
}

.light .message-content {
    color: #1f2937;
}

.message-content p {
    white-space: pre-wrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 1.5rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #c0caf5;
    margin-bottom: 0.5rem;
}

.light .empty-title {
    color: #1f2937;
}

.empty-subtitle {
    color: #a9b1d6;
    margin-bottom: 0.5rem;
}

.light .empty-subtitle {
    color: #6b7280;
}

.empty-info {
    color: #737aa2;
    font-size: 0.875rem;
}

.light .empty-info {
    color: #9ca3af;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7aa2f7, #7dcfff);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.4);
    transition: all 0.3s ease;
    z-index: 30;
}

.light .back-to-top {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(122, 162, 247, 0.6);
}

.light .back-to-top:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== 文章页面 ===== */
.blog-section {
    min-height: 50vh;
}

/* ===== 页脚 ===== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(122, 162, 247, 0.2);
    margin-top: 3rem;
}

.dark .footer {
    color: #a9b1d6;
}

.light .footer {
    color: #6b7280;
    border-color: rgba(37, 99, 235, 0.2);
}

.footer p {
    font-size: 0.875rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {

    /* 导航栏 */
    .navbar {
        padding: 1rem 0;
    }

    .nav-content {
        justify-content: space-between;
        padding: 0 0.75rem;
    }

    .nav-pills {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 5rem;
        left: 0.5rem;
        right: 0.5rem;
        z-index: 35;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-controls {
        position: static;
        gap: 0.5rem;
    }

    /* 主内容区 */
    .main-content {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Hero Section */
    .hero-section {
        margin-bottom: 2rem;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 8rem;
        height: 8rem;
        border-width: 4px;
    }

    .signature {
        font-size: 1.75rem;
    }

    .quote {
        font-size: 1rem;
    }

    /* 卡片 */
    .section {
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

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

    .card-subtitle {
        font-size: 1.125rem;
    }

    .card-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 关于页面 */
    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .large-card {
        grid-column: auto;
    }

    .poem-card {
        grid-column: auto;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-info-text,
    .device-name {
        font-size: 1rem;
    }

    .device-spec,
    .device-specs li {
        font-size: 0.8125rem;
    }

    /* 留言页面 */
    .guestbook-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .guestbook-title {
        font-size: 1.25rem;
    }

    .message-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .message-author {
        flex-wrap: wrap;
    }

    .message-content {
        font-size: 1rem;
    }

    /* 空状态 */
    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .empty-title {
        font-size: 1.125rem;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    .back-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* 页脚 */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .info-item {
        font-size: 1rem;
    }

    /* 首页卡片网格 */
    .grid {
        grid-template-columns: 1fr;
    }

    .col-start-1,
    .col-start-2,
    .col-start-3,
    .col-start-4,
    .col-start-5,
    .col-start-6,
    .col-start-7 {
        grid-column-start: auto;
    }

    /* 社交图标按钮 */
    .bg-gray-200,
    .bg-gray-700 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .w-10.h-10 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .w-10.h-10 svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* 技能图标 */
    [role="img"] i {
        font-size: 1.25rem !important;
    }

    /* 进度条 */
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }

    /* 按钮 */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {

    /* 导航栏 */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-content {
        padding: 0 0.5rem;
    }

    .theme-toggle,
    .mobile-menu-toggle {
        padding: 0.5rem;
    }

    .theme-toggle .moon-icon,
    .theme-toggle .sun-icon,
    .mobile-menu-toggle .hamburger-icon,
    .mobile-menu-toggle .close-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* 主内容区 */
    .main-content {
        padding-top: 4.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Hero Section */
    .hero-section {
        margin-bottom: 1.5rem;
    }

    .profile-avatar {
        width: 7rem;
        height: 7rem;
        border-width: 3px;
    }

    .signature {
        font-size: 1.5rem;
    }

    .quote {
        font-size: 0.9375rem;
    }

    .cta-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .cta-button svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    /* 卡片 */
    .card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .card-subtitle {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }

    .card-text {
        font-size: 0.9375rem;
        line-height: 1.55;
    }

    /* 关于页面 */
    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.625rem;
    }

    .page-subtitle {
        font-size: 0.9375rem;
    }

    .card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .card-info-text,
    .device-name {
        font-size: 0.9375rem;
    }

    /* 诗歌卡片 */
    .poem-intro p,
    .poem-content p {
        font-size: 1rem;
    }

    .poem-highlight {
        font-size: 1.125rem;
        padding-top: 0.375rem;
    }

    .poem-author p {
        font-size: 0.8125rem;
    }

    /* 留言页面 */
    .guestbook-title {
        font-size: 1.125rem;
    }

    .message-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .message-info {
        margin-bottom: 0.75rem;
    }

    .author-name {
        font-size: 0.9375rem;
    }

    .message-meta {
        font-size: 0.6875rem;
        gap: 0.75rem;
    }

    .message-content {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* 空状态 */
    .empty-state {
        padding: 2.5rem 0.75rem;
    }

    .empty-icon {
        font-size: 2.5rem;
    }

    .empty-title {
        font-size: 1rem;
    }

    .empty-subtitle,
    .empty-info {
        font-size: 0.8125rem;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .back-to-top svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    /* 页脚 */
    .footer {
        padding: 1.25rem 0;
        margin-top: 1.5rem;
    }

    .footer p {
        font-size: 0.8125rem;
    }

    /* 其他 */
    .badges img {
        height: 1.5rem;
    }

    .info-icon {
        font-size: 1.25rem;
    }

    /* 移动端导航菜单 */
    .mobile-nav {
        top: 4.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .mobile-nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .signature {
        font-size: 1.375rem;
    }

    .profile-avatar {
        width: 4.5rem;
        height: 4.5rem;
    }

    .page-header h1 {
        font-size: 1.375rem;
    }

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

    .card-title {
        font-size: 1rem;
    }

    .about-content h2 {
        font-size: 1.25rem;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== 自定义动画 ===== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* ===== 文章页面样式 ===== */
.article-container {
    max-width: 56rem;
    margin: 0 auto;
}

.article-card {
    background: linear-gradient(135deg,
            rgba(41, 46, 66, 0.7) 0%,
            rgba(30, 35, 50, 0.6) 50%,
            rgba(41, 46, 66, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(122, 162, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.light .article-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(248, 250, 252, 0.8) 50%,
            rgba(255, 255, 255, 0.85) 100%);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .article-card {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-card {
        padding: 3rem;
    }
}

/* 文章标题 */
.article-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #7dcfff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.light .article-title {
    color: #2563eb;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .article-title {
        font-size: 3rem;
    }
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #c0caf5;
    margin-bottom: 1rem;
}

.light .article-meta {
    color: #4b5563;
}

@media (min-width: 768px) {
    .article-meta {
        font-size: 1rem;
    }
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-icon {
    width: 1rem;
    height: 1rem;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.article-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    background: rgba(122, 162, 247, 0.2);
    color: #7dcfff;
    border: 1px solid rgba(122, 162, 247, 0.3);
}

.light .article-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

/* 文章摘要 */
.article-summary {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(41, 46, 66, 0.5);
}

.light .article-summary {
    background: rgba(243, 244, 246, 0.5);
}

.article-summary p {
    font-size: 1.125rem;
    font-style: italic;
    color: #c0caf5;
}

.light .article-summary p {
    color: #374151;
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(41, 46, 66, 0.5);
    color: #c0caf5;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.light .back-button {
    background: rgba(229, 231, 235, 0.5);
    color: #1f2937;
}

.back-button:hover {
    background: rgba(122, 162, 247, 0.5);
    color: #7dcfff;
}

.light .back-button:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.back-button svg {
    width: 1rem;
    height: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Markdown 内容样式 - 匹配 tao-main 风格 */
.article-content {
    max-width: none;
    line-height: 1.75;
}

/* 标题样式 */
.article-content h1 {
    font-size: 2.25em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
    color: #7dcfff;
}

.light .article-content h1 {
    color: #2563eb;
}

.article-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
    color: #7dcfff;
}

.light .article-content h2 {
    color: #2563eb;
}

.article-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
    color: #c0caf5;
}

.light .article-content h3 {
    color: #1f2937;
}

.article-content h4 {
    font-size: 1.125em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5555556;
    color: #c0caf5;
}

.light .article-content h4 {
    color: #1f2937;
}

.article-content h5 {
    font-size: 1em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5555556;
    color: #c0caf5;
}

.light .article-content h5 {
    color: #1f2937;
}

.article-content h6 {
    font-size: 0.875em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5555556;
    color: #c0caf5;
}

.light .article-content h6 {
    color: #1f2937;
}

/* 段落 */
.article-content p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #c0caf5;
}

.light .article-content p {
    color: #1f2937;
}

/* 列表 */
.article-content ul,
.article-content ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
    color: #c0caf5;
}

.light .article-content ul,
.light .article-content ol {
    color: #1f2937;
}

.article-content li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.article-content ul>li {
    position: relative;
    padding-left: 0.375em;
    list-style-type: disc;
}

.article-content ol>li {
    position: relative;
    padding-left: 0.375em;
    list-style-type: decimal;
}

/* 引用 */
.article-content blockquote {
    font-weight: 500;
    font-style: italic;
    color: #a9b1d6;
    border-left-width: 0.25rem;
    border-left-style: solid;
    border-left-color: rgba(122, 162, 247, 0.5);
    quotes: "\201C" "\201D" "\2018" "\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.light .article-content blockquote {
    color: #6b7280;
    border-left-color: rgba(37, 99, 235, 0.4);
}

/* 链接 */
.article-content a {
    color: #7aa2f7;
    text-decoration: underline;
    font-weight: 500;
}

.light .article-content a {
    color: #2563eb;
}

.article-content a:hover {
    color: #7dcfff;
}

.light .article-content a:hover {
    color: #1d4ed8;
}

/* 图片 */
.article-content img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

/* 表格 */
.article-content table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
    border-collapse: collapse;
}

.article-content thead {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.light .article-content thead {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.article-content thead th {
    color: #c0caf5;
    font-weight: 600;
    vertical-align: bottom;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
}

.light .article-content thead th {
    color: #1f2937;
}

.article-content tbody tr {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.light .article-content tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.article-content tbody td {
    vertical-align: baseline;
    padding-top: 0.5714286em;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
    color: #c0caf5;
}

.light .article-content tbody td {
    color: #1f2937;
}

/* 水平线 */
.article-content hr {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-width: 1px;
    border-top-style: solid;
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-top: 3em;
    margin-bottom: 3em;
}

.light .article-content hr {
    border-color: rgba(0, 0, 0, 0.1);
}

/* 强调 */
.article-content strong {
    font-weight: 600;
    color: #7dcfff;
}

.light .article-content strong {
    color: #1d4ed8;
}

.article-content em {
    font-style: italic;
}

/* 行内代码样式 */
.article-content :not(pre)>code {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background-color: rgba(110, 118, 129, 0.4);
    color: #e5e7eb;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.light .article-content :not(pre)>code {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

/* 代码块样式 */
.article-content .code-block-wrapper {
    margin: 1.5em 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #1a1b26;
    border: 1px solid #414868;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.light .article-content .code-block-wrapper {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content .code-block-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #292e42;
    border-bottom: 1px solid #414868;
}

.light .article-content .code-block-toolbar {
    background-color: #e5e7eb;
    border-bottom-color: #d1d5db;
}

.article-content .code-block-language {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9aa5ce;
    font-family: 'Segoe UI', 'Microsoft YaHei', '微软雅黑', sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.light .article-content .code-block-language {
    color: #4b5563;
}

.article-content .code-block-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.3);
    border-radius: 0.375rem;
    color: #7aa2f7;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.light .article-content .code-block-copy-btn {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.article-content .code-block-copy-btn:hover {
    background-color: rgba(125, 203, 255, 0.15);
    border-color: rgba(125, 203, 255, 0.5);
    color: #7dcfff;
    box-shadow: 0 0 8px rgba(125, 203, 255, 0.2);
}

.light .article-content .code-block-copy-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #1d4ed8;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.article-content .code-block-copy-btn:active {
    transform: scale(0.98);
}

.article-content .code-block-copy-btn .copy-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.article-content .code-block-copy-btn .copy-text {
    font-size: 0.75rem;
}

.article-content pre {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    display: block;
    flex: 1;
}

.article-content pre code {
    background-color: transparent;
    padding: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #c0caf5;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    border: none;
    border-radius: 0;
    display: block;
    margin: 0;
    flex: 1;
}

/* Highlight.js 主题覆盖 - 使用 GitHub Dark 风格 */
.article-content pre code.hljs {
    background: #1a1b26;
    padding: 1rem;
}

.light .article-content pre code.hljs {
    background: #f8f9fa;
}

.article-content .hljs {
    color: #c0caf5;
    background: #1a1b26;
}

.light .article-content .hljs {
    color: #1f2937;
    background: #f8f9fa;
}

.article-content .hljs-comment,
.article-content .hljs-quote {
    color: #565f89;
    font-style: italic;
}

.light .article-content .hljs-comment,
.light .article-content .hljs-quote {
    color: #6b7280;
}

.article-content .hljs-keyword,
.article-content .hljs-selector-tag,
.article-content .hljs-subst {
    color: #f7768e;
}

.light .article-content .hljs-keyword,
.light .article-content .hljs-selector-tag,
.light .article-content .hljs-subst {
    color: #ef4444;
}

.article-content .hljs-number,
.article-content .hljs-literal,
.article-content .hljs-variable,
.article-content .hljs-template-variable,
.article-content .hljs-tag .hljs-attr {
    color: #ff9e64;
}

.light .article-content .hljs-number,
.light .article-content .hljs-literal,
.light .article-content .hljs-variable,
.light .article-content .hljs-template-variable,
.light .article-content .hljs-tag .hljs-attr {
    color: #f97316;
}

.article-content .hljs-string,
.article-content .hljs-doctag {
    color: #9ece6a;
}

.light .article-content .hljs-string,
.light .article-content .hljs-doctag {
    color: #22c55e;
}

.article-content .hljs-title,
.article-content .hljs-section,
.article-content .hljs-selector-id {
    color: #7dcfff;
    font-weight: bold;
}

.light .article-content .hljs-title,
.light .article-content .hljs-section,
.light .article-content .hljs-selector-id {
    color: #0ea5e9;
}

.article-content .hljs-type,
.article-content .hljs-class .hljs-title {
    color: #e0af68;
}

.light .article-content .hljs-type,
.light .article-content .hljs-class .hljs-title {
    color: #eab308;
}

.article-content .hljs-tag,
.article-content .hljs-name,
.article-content .hljs-attribute {
    color: #9aa5ce;
    font-weight: normal;
}

.light .article-content .hljs-tag,
.light .article-content .hljs-name,
.light .article-content .hljs-attribute {
    color: #64748b;
}

.article-content .hljs-regexp,
.article-content .hljs-link {
    color: #7dcfff;
}

.light .article-content .hljs-regexp,
.light .article-content .hljs-link {
    color: #0ea5e9;
}

.article-content .hljs-symbol,
.article-content .hljs-bullet {
    color: #7aa2f7;
}

.light .article-content .hljs-symbol,
.light .article-content .hljs-bullet {
    color: #3b82f6;
}

.article-content .hljs-built_in,
.article-content .hljs-builtin-name {
    color: #bb9af7;
}

.light .article-content .hljs-built_in,
.light .article-content .hljs-builtin-name {
    color: #a855f7;
}

.article-content .hljs-meta {
    color: #565f89;
}

.light .article-content .hljs-meta {
    color: #9ca3af;
}

.article-content .hljs-deletion {
    background: #f7768e;
}

.light .article-content .hljs-deletion {
    background: #fecaca;
}

.article-content .hljs-addition {
    background: #9ece6a;
}

.light .article-content .hljs-addition {
    background: #bbf7d0;
}

.article-content .hljs-emphasis {
    font-style: italic;
}

.article-content .hljs-strong {
    font-weight: bold;
}

/* 代码块自定义滚动条 */
.article-content pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.article-content pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.light .article-content pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.article-content pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.light .article-content pre::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.article-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.light .article-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 分类筛选器 - Tokyo Night 主题 */
.category-filter {
    margin-bottom: 1.5rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(41, 46, 66, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 162, 247, 0.2);
}

.light .category-buttons {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(122, 162, 247, 0.3);
    background: rgba(41, 46, 66, 0.5);
    color: #a9b1d6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light .category-btn {
    background: rgba(255, 255, 255, 0.7);
    color: #475569;
    border: 1px solid rgba(156, 163, 184, 0.3);
}

.category-btn:hover {
    background: rgba(122, 162, 247, 0.2);
    color: #7dcfff;
}

.light .category-btn:hover {
    background: rgba(241, 245, 249, 0.8);
    color: #334155;
}

.category-btn.active {
    background: #7aa2f7;
    color: #ffffff;
    border-color: #7aa2f7;
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.4);
}

.light .category-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.category-btn .count {
    margin-left: 0.25rem;
    opacity: 0.75;
    font-size: 0.75rem;
}

/* 搜索框样式 */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.search-wrapper .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #7dd3fc;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.light .search-wrapper .search-icon {
    color: #0ea5e9;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    border: 2px solid rgba(125, 211, 252, 0.3);
    background: rgba(41, 45, 62, 0.8);
    outline: none;
    font-size: 0.95rem;
    color: #c0caf5;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.light .search-input {
    background: #ffffff;
    border: 2px solid rgba(14, 165, 233, 0.3);
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: #565f89;
    transition: color 0.3s ease;
}

.light .search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    background: rgba(41, 45, 62, 0.95);
    border-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.search-input:focus + .search-icon,
.search-input:focus ~ .search-icon {
    color: #7dd3fc;
}

.light .search-input:focus {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.light .search-input:focus + .search-icon,
.light .search-input:focus ~ .search-icon {
    color: #0ea5e9;
}

.search-input:focus::placeholder {
    color: #787c99;
}

.light .search-input:focus::placeholder {
    color: #cbd5e1;
}

/* 文章卡片动画 */
.card-grid .card {
    transition: all 0.3s ease;
}

.card-grid .card.hidden {
    display: none;
}

.card-grid .card.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章目录样式 */
.article-wrapper {
    display: flex;
    gap: 2rem;
    position: relative;
}

.article {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
}

.article-toc {
    position: fixed;
    left: 0;
    top: 15%;
    transform: translateY(0);
    width: 250px;
    max-height: 75vh;
    padding-left: 1.5rem;
    padding-right: 1rem;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.light .article-toc {
    background: transparent;
}

.toc-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c0caf5;
}

.light .toc-header {
    color: #1f2937;
}

.toc-icon {
    width: 18px;
    height: 18px;
}

/* 目录内容区域 - 可滚动 */
.toc-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c0caf5;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.light .toc-link {
    color: #1f2937;
}

.toc-number {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 500;
    color: #7aa2f7;
}

.light .toc-number {
    color: #2563eb;
}

.toc-link:hover {
    color: #c0caf5;
    background: rgba(255, 255, 255, 0.05);
}

.light .toc-link:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.05);
}

.toc-link.active {
    color: #7aa2f7;
    background: rgba(122, 162, 247, 0.1);
}

.light .toc-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.toc-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #7aa2f7;
    border-radius: 0 2px 2px 0;
}

.light .toc-link.active::before {
    background: #2563eb;
}

.toc-level-1 {
    padding-left: 0;
}

.toc-level-2 {
    padding-left: 0.5rem;
}

.toc-level-3 {
    padding-left: 1.5rem;
}

.toc-level-4 {
    padding-left: 2.5rem;
}

/* 响应式设计 - 移动端显示目录 */
@media (max-width: 1024px) {
    .article-wrapper {
        flex-direction: column;
    }

    .article {
        margin-left: 0;
        order: 2;
    }

    .article-toc {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        max-height: none;
        padding: 1.5rem;
        margin-bottom: 2rem;
        order: 1;
    }

    .toc-content {
        overflow-y: visible;
    }
}

/* 目录滚动条样式 */
.article-toc::-webkit-scrollbar {
    width: 4px;
}

.article-toc::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.article-toc::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 返回按钮样式 - 固定在顶部 */
.toc-back-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #c0caf5;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    background: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.2);
}

.light .toc-back-btn {
    color: #1f2937;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.toc-back-btn:hover {
    background: rgba(122, 162, 247, 0.2);
    border-color: rgba(122, 162, 247, 0.3);
    color: #c0caf5;
}

.light .toc-back-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1f2937;
}

.toc-back-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* 评论区按钮样式 - 固定在底部，与返回按钮对称 */
.toc-comments-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #c0caf5;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
    background: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.2);
}

.light .toc-comments-btn {
    color: #1f2937;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.toc-comments-btn:hover {
    background: rgba(122, 162, 247, 0.2);
    border-color: rgba(122, 162, 247, 0.3);
    color: #c0caf5;
}

.light .toc-comments-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1f2937;
}

.toc-comments-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* 目录上方的文章标题 - 固定在顶部 */
.toc-article-title {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #c0caf5;
    line-height: 1.4;
    word-wrap: break-word;
}

.light .toc-article-title {
    color: #1f2937;
}

/* 隐藏 Waline 反应区域 */
.wl-reaction {
    display: none !important;
}

/* 默认隐藏留言编辑器，防止加载时闪烁 */
.wl-comment {
    display: none !important;
}

/* 当添加了显示类时才显示 */
.wl-comment.show-editor {
    display: block !important;
}

/* 文章页评论框始终显示 */
.article-comments .wl-comment {
    display: block !important;
}

/* 文章页隐藏切换按钮 */
.article-comments .toggle-comment-btn {
    display: none !important;
}

/* 文章页隐藏评论列表标题 */
.article-comments .guestbook-title {
    display: none !important;
}

/* 文章页评论头部居中 */
.article-comments .guestbook-header {
    display: none !important;
}

/* 留言编辑器切换按钮样式 */
.toggle-comment-btn {
    padding: 0.6rem 1.3rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.dark .toggle-comment-btn {
    background: #3B82F6;
}

/* Waline 留言组件样式适配 */
.wl-card-item {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.dark .wl-card-item {
    background: rgba(26, 27, 38, 0.6);
    border-color: rgba(122, 162, 247, 0.2);
}

.light .wl-card-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(156, 163, 184, 0.3);
}

.wl-panel {
    border-radius: 1rem;
}

.dark .wl-panel {
    background: rgba(26, 27, 38, 0.5);
    border-color: rgba(122, 162, 247, 0.2);
}

.light .wl-panel {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(156, 163, 184, 0.3);
}

.wl-content {
    color: #c0caf5;
}

.light .wl-content {
    color: #1f2937;
}

.wl-header-item input,
.wl-editor {
    color: #c0caf5;
    background: rgba(41, 46, 66, 0.5);
    border-color: rgba(122, 162, 247, 0.3);
}

.light .wl-header-item input,
.light .wl-editor {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(156, 163, 184, 0.3);
}

.wl-header-item input:focus,
.wl-editor:focus {
    border-color: #7aa2f7;
}

.light .wl-header-item input:focus,
.light .wl-editor:focus {
    border-color: #3b82f6;
}

.wl-btn {
    border-radius: 0.5rem;
    background: #7aa2f7;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.light .wl-btn {
    background: #3b82f6;
}

.wl-btn:hover {
    background: #7dcfff;
}

.light .wl-btn:hover {
    background: #1d4ed8;
}

/* 隐藏底部RSS订阅区域 */
.wl-meta-foot {
    display: none !important;
}

/* 修复评论列表间距问题 */
.wl-list,
.wl-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wl-item {
    margin-bottom: 1rem !important;
}

/* 修复回复评论中 @ 名称的样式 */
.wl-content span[data-id],
.wl-content a[data-id] {
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    position: relative !important;
    top: 0 !important;
}

/* 修复 wl-reply-to 容器使其不换行 */
.wl-reply-to {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    float: none !important;
}

.wl-reply-to a {
    display: inline !important;
    vertical-align: middle !important;
}

.wl-reply-to span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* 修复 wl-reply-to 的兄弟 div 不换行 */
.wl-reply-to + div {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    float: none !important;
}

.wl-reply-to + div p {
    vertical-align: middle !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保编辑按钮可见 */
.wl-edit {
    display: inline-block !important;
    visibility: visible !important;
}

/* 修复回复内容整体布局 */
.wl-content {
    line-height: 1.6;
    overflow: hidden;
}

.wl-content p {
    margin: 0;
    display: inline;
}

.wl-content br {
    display: none;
}

/* 修复 @ 元素的父级样式 */
.wl-content {
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .waline-container {
        padding: 1rem;
        border-radius: 1rem;
    }
}

/* 友链申请格式说明样式 */
.friend-link-format-container {
    max-width: 800px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.format-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.format-line {
    width: 30px;
    height: 2px;
    background-color: #40a9ff;
}

.format-text {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.dark .format-text {
    color: #e0e6ed;
}

.friend-link-format-box {
    background-color: #e8f4ff;
    border-left: 5px solid #3498db;
    padding: 1rem;
    border-radius: 8px;
    color: #34495e;
    line-height: 1.1;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dark .friend-link-format-box {
    background-color: rgba(122, 162, 247, 0.12);
    color: #e0e6ed;
}

.friend-link-format-box p {
    margin-bottom: 0.5rem;
}

.friend-link-format-label {
    font-weight: 500;
    color: #2980b9;
}

.dark .friend-link-format-label {
    color: #5dade2;
}

.friend-link-format-link {
    color: #2980b9;
    text-decoration: none;
}

.dark .friend-link-format-link {
    color: #5dade2;
}

/* 卡片外部块元素左右更窄 */
.friends .card,
.friends .about-section-card {
    max-width: 800px !important;
    margin-left: auto;
    margin-right: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: none !important;
}

.friends .card:hover,
.friends .about-section-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.friend-links-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.friend-links-wrapper .card-title {
    display: none;
}

.friend-links-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.friend-links-header .format-line {
    width: 30px;
    height: 2px;
    background-color: #40a9ff;
}

.friend-links-header .format-text {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.dark .friend-links-header .format-text {
    color: #e0e6ed;
}

/* 文章留言板样式 */
.article-comments {
    margin-top: 3rem;
}

.article-comments .comments-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.article-comments .format-line {
    width: 30px;
    height: 2px;
    background-color: #40a9ff;
}

.article-comments .format-text {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.dark .article-comments .format-text {
    color: #e0e6ed;
}

/* 代码块内容包装器和行号样式 */
.article-content .code-content-wrapper {
    display: flex;
    position: relative;
}

.article-content .code-line-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem 0.75rem 1rem 0.75rem;
    user-select: none;
    counter-reset: line;
    border-right: 1px solid #414868;
    margin-right: 1rem;
}

.article-content .code-line-number {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #9aa5ce;
    text-align: right;
}

.light .article-content .code-line-numbers {
    border-right-color: #d1d5db;
}

.light .article-content .code-line-number {
    color: #4b5563;
}

/* Hero区域新增样式 */
.hero-desc {
    font-size: 1.75rem;
    color: var(--tokyo-night-cyan);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--tokyo-night-dark5);
    margin-bottom: 2rem;
}

.light .hero-desc {
    color: #3b82f6;
}

.light .hero-subtext {
    color: #6b7280;
}

.hero-actions {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #111827;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Dark mode support */
.dark .btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.dark .btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.dark .btn-secondary {
    color: #e5e7eb;
    border: 2px solid #60a5fa;
}

.dark .btn-secondary:hover {
    background: #60a5fa;
    border-color: #60a5fa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Tailwind-like utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.w-5 {
    width: 1.25rem;
}

.w-10 {
    width: 2.5rem;
}

.w-14 {
    width: 3.5rem;
}

.w-full {
    width: 100%;
}

.h-5 {
    height: 1.25rem;
}

.h-10 {
    height: 2.5rem;
}

.h-14 {
    height: 3.5rem;
}

.h-full {
    height: 100%;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-3 {
    gap: 0.75rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-600 {
    background-color: #4b5563;
}

/* Dark mode for gray utilities */
.dark .bg-gray-50 {
    background-color: #1f2937;
}

.dark .bg-gray-800 {
    background-color: #1f2937;
}

.dark .bg-gray-200 {
    background-color: #374151;
}

.dark .bg-gray-300 {
    background-color: #4b5563;
}

.dark .bg-gray-600 {
    background-color: #374151;
}

.dark .bg-gray-700 {
    background-color: #4b5563;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

/* Dark mode for text utilities */
.dark .text-gray-900 {
    color: #f3f4f6;
}

.dark .text-gray-700 {
    color: #e5e7eb;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .text-gray-500 {
    color: #9ca3af;
}

.dark .text-gray-400 {
    color: #9ca3af;
}

.dark .text-gray-300 {
    color: #d1d5db;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

h2.blue-title,
.blue-title {
    color: #2563EB !important;
}

.light h2.blue-title,
.light .blue-title,
body:not(.dark) h2.blue-title,
body:not(.dark) .blue-title {
    color: #2563EB !important;
}

.dark h2.blue-title,
.dark .blue-title {
    color: #7DCFFF !important;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.row-span-2 {
    grid-row: span 2;
}

.row-span-4 {
    grid-row: span 4;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-1 {
    grid-column: span 1;
}

.col-start-1 {
    grid-column-start: 1;
}

.col-start-2 {
    grid-column-start: 2;
}

.col-start-3 {
    grid-column-start: 3;
}

.col-start-4 {
    grid-column-start: 4;
}

.col-start-5 {
    grid-column-start: 5;
}

.col-start-6 {
    grid-column-start: 6;
}

.col-start-7 {
    grid-column-start: 7;
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.select-none {
    user-select: none;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.space-x-1 {
    margin-left: -0.25rem;
}

.space-x-1 > * {
    margin-left: 0.25rem;
}

@media (min-width: 640px) {
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sm\:gap-4 {
        gap: 1rem;
    }

    .sm\:col-span-4 {
        grid-column: span 4;
    }

    .sm\:p-4 {
        padding: 1rem;
    }

    .sm\:p-6 {
        padding: 1.5rem;
    }

    .sm\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .sm\:mb-16 {
        margin-bottom: 4rem;
    }

    .sm\:mb-20 {
        margin-bottom: 5rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .md\:col-span-3 {
        grid-column: span 3;
    }

    .md\:col-span-2 {
        grid-column: span 2;
    }

    .md\:col-span-1 {
        grid-column: span 1;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (max-width: 768px) {
    .hero-desc {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .col-span-3,
    .col-span-4,
    .col-span-1,
    .row-span-2,
    .row-span-4 {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* 手机端两行显示打字效果 */
    .signature .typing-line2 {
        display: block;
        margin-top: 0.25rem;
    }

    /* 手机端文章卡片日期 */
    .card-date {
        display: block;
        float: none;
        margin-top: 0.5rem;
        text-align: right;
    }
}

/* ===== 音乐播放器样式 ===== */
.music-player-card {
    border-radius: 1.25rem;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 专辑封面 */
.dark .music-album {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.light .music-album {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

/* 歌曲信息 */
.music-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-album {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-detail {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.125rem;
}

.music-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.dark .music-time {
    color: rgba(255, 255, 255, 0.8);
}

.light .music-time {
    color: #6b7280;
}

.music-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

/* 进度条 */
.progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.light .progress-track {
    background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #3b82f6;
    transition: width 0.1s linear;
    pointer-events: none;
}

.dark .progress-fill {
    background: #60a5fa;
}

.progress-track:hover .progress-fill {
    background: #2563eb;
}

.dark .progress-track:hover .progress-fill {
    background: #3b82f6;
}

@media (max-width: 640px) {
    .progress-track {
        height: 8px;
        border-radius: 4px;
    }
}

/* 音量条 */
.volume-track {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.light .volume-track {
    background: rgba(0, 0, 0, 0.1);
}

.volume-fill {
    height: 100%;
    border-radius: 3px;
    background: #3b82f6;
    pointer-events: none;
}

.dark .volume-fill {
    background: #60a5fa;
}

.volume-track:hover .volume-fill {
    background: #2563eb;
}

.dark .volume-track:hover .volume-fill {
    background: #3b82f6;
}

@media (max-width: 640px) {
    .volume-track {
        width: 80px;
        height: 8px;
        border-radius: 4px;
    }
}

/* 控制按钮 */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.dark .ctrl-btn {
    background: none;
    color: white;
}

.light .ctrl-btn {
    background: none;
    color: #4b5563;
}

.ctrl-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.dark .ctrl-btn:hover {
    background: none;
    opacity: 0.7;
}

.light .ctrl-btn:hover {
    background: none;
    opacity: 0.7;
}

/* 循环按钮激活状态 */
.loop-active {
    color: #3b82f6 !important;
    background: none !important;
}

.dark .loop-active {
    color: #60a5fa !important;
    background: none !important;
}

.ctrl-btn i {
    font-size: 1rem;
}

/* 播放按钮 - 参照查看文章按钮 */
.dark .play-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.light .play-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.play-btn {
    width: 3rem;
    height: 3rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
}

.dark .play-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.light .play-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.play-btn i {
    font-size: 1.5rem;
}

/* 音量控制 */
.music-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.music-volume button {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
}

.music-volume button:hover {
    opacity: 1;
}

.music-volume button img {
    width: 1rem;
    height: 1rem;
}

.music-volume input {
    width: 12rem;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* 音量按钮 */
.dark .vol-btn {
    background: none;
    color: white;
}

.light .vol-btn {
    background: none;
    color: #4b5563;
}

.vol-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dark .vol-btn:hover {
    background: none;
    opacity: 0.7;
}

.light .vol-btn:hover {
    background: none;
    opacity: 0.7;
}

.dark .vol-btn[data-muted="true"] {
    color: #f87171;
    background: none;
}

.light .vol-btn[data-muted="true"] {
    color: #ef4444;
    background: none;
}

.dark .vol-btn[data-muted="true"]:hover {
    background: none;
}

.light .vol-btn[data-muted="true"]:hover {
    background: none;
}

/* 播放列表侧边栏 */
.playlist-sidebar {
    display: none;
    position: fixed;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 280px;
    max-height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    z-index: 100;
    animation: sidebarSlideIn 0.25s ease;
}

@keyframes sidebarSlideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.dark .playlist-sidebar {
    background: #161621;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(122, 162, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.light .playlist-sidebar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.playlist-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid;
}

.dark .playlist-sidebar-header {
    border-color: rgba(122, 162, 247, 0.15);
}

.light .playlist-sidebar-header {
    border-color: #e5e7eb;
}

.playlist-sidebar-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.dark .playlist-sidebar-header span {
    color: #c0caf5;
}

.light .playlist-sidebar-header span {
    color: #1e293b;
}

.playlist-sidebar-header span i {
    color: #2563eb;
}

.dark .playlist-sidebar-header span i {
    color: #7aa2f7;
}

.playlist-sidebar-close {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.dark .playlist-sidebar-close {
    background: rgba(122, 162, 247, 0.15);
    color: #7aa2f7;
}

.light .playlist-sidebar-close {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.playlist-sidebar-close:hover {
    transform: scale(1.1);
}

.dark .playlist-sidebar-close:hover {
    background: rgba(122, 162, 247, 0.25);
    color: #bbc3f0;
}

.light .playlist-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1e293b;
}

.playlist-sidebar-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.playlist-sidebar-items::-webkit-scrollbar {
    width: 3px;
}

.playlist-sidebar-items::-webkit-scrollbar-thumb {
    border-radius: 2px;
}

.dark .playlist-sidebar-items::-webkit-scrollbar-thumb {
    background: rgba(122, 162, 247, 0.3);
}

.light .playlist-sidebar-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

.playlist-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .playlist-sidebar-item:hover {
    background: rgba(122, 162, 247, 0.08);
}

.light .playlist-sidebar-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.playlist-sidebar-item.playing {
    background: #3579F3;
}

.dark .playlist-sidebar-item.playing {
    background: #3579F3;
}

.playlist-sidebar-item-index {
    width: 1.25rem;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.5;
}

.dark .playlist-sidebar-item-index {
    color: #565f89;
}

.light .playlist-sidebar-item-index {
    color: #94a3b8;
}

.playlist-sidebar-item.playing .playlist-sidebar-item-index {
    opacity: 1;
    color: #ffffff !important;
}

.dark .playlist-sidebar-item.playing .playlist-sidebar-item-index {
    color: #ffffff !important;
}

.playlist-sidebar-item.playing .playlist-sidebar-item-index i {
    animation: pulse 1.5s ease-in-out infinite;
}

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

.playlist-sidebar-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .playlist-sidebar-item-title {
    color: #c0caf5;
}

.light .playlist-sidebar-item-title {
    color: #374151;
}

.playlist-sidebar-item.playing .playlist-sidebar-item-title {
    color: #ffffff;
}

.dark .playlist-sidebar-item.playing .playlist-sidebar-item-title {
    color: #ffffff;
}

.playlist-sidebar-item-artist {
    font-size: 0.75rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-sidebar-item.playing .playlist-sidebar-item-artist {
    color: rgba(255, 255, 255, 0.9);
}

.dark .playlist-sidebar-item.playing .playlist-sidebar-item-artist {
    color: rgba(255, 255, 255, 0.9);
}

.dark .playlist-sidebar-item-artist {
    color: #565f89;
}

.light .playlist-sidebar-item-artist {
    color: #9ca3af;
}

/* 音量滑块 - 歌手信息行专用 */
.music-info .music-volume-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.dark .music-info .music-volume-inline input {
    background: rgba(255, 255, 255, 0.3);
}

.light .music-info .music-volume-inline input {
    background: rgba(0, 0, 0, 0.15);
}

.music-info .music-volume-inline input {
    width: 80px;
    height: 3px;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
}

.dark .music-info .music-volume-inline input::-webkit-slider-thumb {
    background: white;
}

.light .music-info .music-volume-inline input::-webkit-slider-thumb {
    background: #667eea;
}

.music-info .music-volume-inline input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.dark .music-info .music-volume-inline input::-moz-range-thumb {
    background: white;
}

.light .music-info .music-volume-inline input::-moz-range-thumb {
    background: #667eea;
}

.music-info .music-volume-inline input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.vol-btn[data-muted="true"] {
    color: #f87171;
    background: rgba(248, 113, 113, 0.2);
}

.vol-btn[data-muted="true"]:hover {
    background: rgba(248, 113, 113, 0.3);
}

.music-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.music-volume input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

/* 播放列表样式 */
#playlist {
    animation: slideUpFade 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dark #playlist {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%) !important;
}

/* 播放列表项 */
#playlistItems > div {
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.8125rem;
    margin: 0.125rem 0.25rem;
}

#playlistItems > div:hover {
    background: linear-gradient(135deg, rgba(53, 121, 243, 0.1) 0%, rgba(53, 121, 243, 0.15) 100%);
    color: #3579F3;
}

#playlistItems > div.playing {
    background: #3579F3 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(53, 121, 243, 0.35);
    font-weight: 500;
}

#playlistItems > div.playing::before {
    content: '▶';
    font-size: 0.5rem;
    margin-right: 0.25rem;
}

.dark #playlistItems > div {
    color: #e2e8f0;
}

.dark #playlistItems > div:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #a5b4fc;
}

/* 滚动条美化 */
#playlistItems::-webkit-scrollbar {
    width: 4px;
}

#playlistItems::-webkit-scrollbar-track {
    background: transparent;
}

#playlistItems::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

#playlistItems::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.dark .music-player-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

@media (max-width: 640px) {
    .music-player-card {
        padding: 1rem;
    }
    .music-album {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    .music-title {
        font-size: 0.875rem;
    }
    .ctrl-btn {
        width: 2rem;
        height: 2rem;
    }
    .play-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}