@font-face {
    font-family: '兰亭行书';
    src: url('兰亭行书.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: url('background.jpg') center/cover fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow-x: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: auto;
    min-width: 120px;
    max-width: 250px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 20px;
    z-index: 30;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.sidebar-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: '兰亭行书', sans-serif;
    text-align: center;
    flex: 1;
}

.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    background: rgba(64, 64, 64, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    pointer-events: auto;
}

.sidebar-toggle:hover {
    background: rgba(64, 64, 64, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.sidebar-toggle .iconify {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* 侧边栏隐藏样式 */
.sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* 侧边栏隐藏时的按钮样式 */
.sidebar.hidden ~ .sidebar-toggle .iconify {
    transform: rotate(180deg);
}

/* 侧边栏显示时的按钮位置调整 */
.sidebar:not(.hidden) ~ .sidebar-toggle {
    left: 140px;
    background: rgba(64, 64, 64, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.sidebar-item {
    margin-bottom: 5px;
    text-align: center;
}

.sidebar-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 20px 60px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: inherit;
    z-index: -1;
}

.site-title {
    text-align: center;
    margin: 20px 0 10px;
    position: relative;
    z-index: 20;
}

.site-title h1 {
    font-family: '兰亭行书', sans-serif;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    margin: 0;
    font-weight: normal;
}

.search-main-container {
    width: 100%;
    max-width: 600px;
    margin: 10px auto 15px;
    position: relative;
    z-index: 20;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    background: rgba(64, 64, 64, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
    color: white;
    opacity: 0.8;
}

.search-input:focus::placeholder {
    opacity: 0.6;
}

.search-input:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: rgba(64, 64, 64, 0.5);
}

.search-button {
    padding: 15px 30px;
    background: rgba(64, 64, 64, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(64, 64, 64, 0.5);
    transform: translateY(-2px);
}

.columns-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 3px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.2;
}

.footer-signature {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.signature-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signature-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.signature-text:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.signature-button {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.signature-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.wechat-qr {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.wechat-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.footer-signature:hover .wechat-qr {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.toggle-button,
.layout-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: rgb(5, 250, 156);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.toggle-button:hover,
.layout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.toggle-button.active,
.layout-button.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.toggle-button:not(.active),
.layout-button:not(.active) {
    color: #ff6b6b;
}

.toggle-indicator,
.layout-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    transition: all 0.3s ease;
}

.toggle-button.active .toggle-indicator,
.layout-button.active .layout-indicator {
    background: #4CAF50;
}

.toggle-button:not(.active) .toggle-indicator,
.layout-button:not(.active) .layout-indicator {
    background: #ff6b6b;
}

.toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-toggle {
    display: flex;
    justify-content: flex-end;
}

.layout-toggle {
    display: flex;
    justify-content: flex-end;
}





@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px 15px 50px;
    }
    

    
    .toggle-container {
        top: 15px;
        right: 15px;
    }
    
    /* 侧边栏响应式样式 */
    .sidebar {
        width: auto;
        min-width: 100px;
        max-width: 150px;
    }
    
    .main-content {
        margin-left: 120px;
        width: calc(100% - 120px);
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    .search-main-container {
        margin: 10px auto 15px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card {
        height: 65px;
        padding: 8px;
        gap: 8px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
    }
    
    .card-icon .iconify {
        width: 28px;
        height: 28px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-description {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .footer-signature {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .wechat-qr {
        width: 100px;
        height: 100px;
    }
    
    .signature-text,
    .signature-button {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .signature-button {
        width: 35px;
        height: 35px;
    }
    
    .toggle-button,
    .layout-button {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .toggle-indicator,
    .layout-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 10px 40px;
    }
    

    
    .toggle-container {
        top: 10px;
        right: 10px;
    }
    
    /* 小屏幕侧边栏隐藏 */
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px 10px 40px;
    }
    
    .site-title h1 {
        font-size: 1.5rem;
    }
    
    .search-main-container {
        margin: 5px auto 10px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-input,
    .search-button {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .columns-container {
        gap: 15px;
        padding: 0 5px;
    }
    
    .column {
        gap: 8px;
    }
    
    .column-title {
        font-size: 1.1rem;
        padding: 8px 0;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .card {
        height: 60px;
        padding: 6px;
        gap: 6px;
    }
    
    .card-icon {
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    .card-icon .iconify {
        width: 24px;
        height: 24px;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-description {
        font-size: 0.6rem;
    }
    
    .footer-signature {
        bottom: 10px;
        right: 10px;
    }
    
    .wechat-qr {
        width: 80px;
        height: 80px;
    }
    
    .signature-text,
    .signature-button {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    .signature-button {
        width: 30px;
        height: 30px;
    }
    
    .toggle-button,
    .layout-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 65px;
    }
    
    .toggle-indicator,
    .layout-indicator {
        width: 8px;
        height: 8px;
    }
}

/* 音乐播放器容器样式 */
.music-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* 音乐图标样式 */
.music-icon-container {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.music-icon-container:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.music-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* 音乐播放器包装器样式 */
.music-player-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    order: -1;
}

.music-player-wrapper.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* APlayer 样式调整 */
.music-player-wrapper .aplayer {
    max-width: 300px !important;
    width: auto !important;
    margin: 0 !important;
    background: transparent !important;
}

.music-player-wrapper .aplayer .aplayer-body,
.music-player-wrapper .aplayer .aplayer-info,
.music-player-wrapper .aplayer .aplayer-list {
    background: transparent !important;
}

@media (max-width: 768px) {
    .music-container {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    /* APlayer 移动端样式 */
    .music-container {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    .music-icon-container {
        width: 30px;
        height: 30px;
    }
    
    .music-icon {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }
    
    .music-player-wrapper {
        transform: translateY(-20px);
    }
    
    .music-player-wrapper.show {
        transform: translateY(0);
    }
    
    .music-player-wrapper .aplayer {
        max-width: calc(100vw - 40px);
    }
}

