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

.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
}

.menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.drawer-content.open {
    left: 0;
}

.menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

body.dark-mode .menu-toggle-btn {
    background-color: rgba(30, 30, 30, 0.7);
    color: #e0e0e0;
}

body.dark-mode .menu-toggle-btn:hover {
    background-color: rgba(30, 30, 30, 0.9);
}

.drawer-content {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: manipulation;
}

.drawer-content::-webkit-scrollbar {
    display: none;
}

.drawer-content.open {
    left: 0;
}

body.dark-mode .drawer-content {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

body.dark-mode .drawer-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header h3 {
    margin: 0;
    color: inherit;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
}

.drawer-items {
    padding: 20px;
}

.drawer-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 6px;
    border: none;
    background: none;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: inherit;
}

.drawer-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .drawer-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 父菜单项样式 */
.parent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.arrow-icon.rotate {
    transform: rotate(-90deg);
}

/* 子菜单样式 */
.drawer-menu-item {
    margin-bottom: 10px;
}

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sub-menu.open {
    max-height: none;
}

.sub-item {
    padding-left: 32px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.sub-parent-item {
    padding-left: 32px;
    font-size: 14px;
    opacity: 0.9;
}

.sub-menu .sub-menu .sub-item {
    padding-left: 48px;
    font-size: 13px;
    opacity: 0.7;
}

.sub-menu .sub-menu .sub-parent-item {
    padding-left: 48px;
    font-size: 13px;
    opacity: 0.8;
}

body.dark-mode .sub-item {
    opacity: 0.7;
}

.sub-item:hover {
    opacity: 1;
}

/* 覆盖原有的navbar样式 */
.navbar {
    display: none;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

#homepage .main-content {
    display: block;
}

#homepage .footer {
    display: none;
}

.page {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
}

.page.active {
    display: block;
}

.homepage-content {
    display: none;
}

.white-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #f5f5f5;
    transition: opacity 2s ease-in-out;
}

.white-background.slide-out {
    opacity: 0;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

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

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), rgba(248, 249, 250, 1));
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 1440px;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 48px;
    color: #333;
    margin: 0;
}

.brand-slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #666;
    margin: 12px 0 0 0;
}

.brand-guide {
    position: absolute;
    top: calc(50% - 200px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
    z-index: 3;
}

.brand-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-guide-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #333333;
    margin: 0;
}

.brand-guide-divider {
    width: 80%;
    height: 1px;
    background-color: #333333;
    margin-top: 8px;
}

.scroll-guide {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    text-align: center;
    z-index: 3;
}

.scroll-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-guide-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.scroll-guide-arrow {
    font-size: 12px;
    color: #666666;
    margin-top: 6px;
    animation: float 1s ease-in-out infinite;
}

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

.main-content {
    min-height: 100vh;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* 滚动时的样式变化 */
body.scrolled .main-content {
    background-color: #f8f9fa;
}

body.scrolled .hero-section {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.brand-content {
    text-align: center;
    max-width: 1440px;
    width: 100%;
    padding: 0 20px;
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 48px;
    color: #333;
    margin: 0;
}

.brand-slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #666;
    margin: 12px 0 0 0;
}

/* 品牌引导模块 */
.brand-guide {
    position: absolute;
    top: calc(50% - 200px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
    z-index: 3;
}

.brand-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-guide-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: #333333;
    margin: 0;
}

.brand-guide-divider {
    width: 80%;
    height: 1px;
    background-color: #333333;
    margin-top: 8px;
}

/* 操作引导模块 */
.scroll-guide {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    text-align: center;
    z-index: 3;
}

.scroll-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-guide-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.scroll-guide-arrow {
    font-size: 12px;
    color: #666666;
    margin-top: 6px;
    animation: float 1s ease-in-out infinite;
}

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

body.dark-mode .brand-name {
    color: #e0e0e0;
}

body.dark-mode .brand-slogan {
    color: #999;
}

body.dark-mode .brand-guide-text {
    color: #e0e0e0;
}

body.dark-mode .brand-guide-divider {
    background-color: #e0e0e0;
}

body.dark-mode .scroll-guide-text {
    color: #999;
}

body.dark-mode .scroll-guide-arrow {
    color: #999;
}

body.dark-mode .gradient-overlay {
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0), rgba(30, 30, 30, 1));
}

/* 响应式适配 */
@media (max-width: 767px) {
    .brand-guide-text {
        font-size: 18px;
    }
    .scroll-guide-text {
        font-size: 12px;
    }
}

#backgroundImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-mode #backgroundImage {
    filter: brightness(70%);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-background.active {
    opacity: 1;
    z-index: -1;
}

.video-background.slide-left-out {
    transform: translateX(-100%);
    opacity: 0;
}

.video-background.slide-left-in {
    transform: translateX(0);
    opacity: 1;
}

.video-background.slide-right-out {
    transform: translateX(100%);
    opacity: 0;
}

.video-background.slide-right-in {
    transform: translateX(0);
    opacity: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background-2 {
    transform: translateX(100%);
}

.page {
    background-color: transparent;
}

body.dark-mode .page {
    background-color: #1a1a1a;
}

body.dark-mode .video-background video {
    filter: brightness(70%);
}

.background-controls {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.background-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

body.dark-mode .control-btn {
    background-color: rgba(30, 30, 30, 0.7);
    color: #e0e0e0;
}

body.dark-mode .control-btn:hover {
    background-color: rgba(30, 30, 30, 0.9);
}

.nav-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: transform 0.3s;
    color: inherit;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.navbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2rem 0.5rem;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(221, 221, 221, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#homepage .navbar-center {
    display: none;
}



.navbar-right {
    display: flex;
    align-items: center;
}

.settings-btn {
    padding: 0.5rem 1rem;
    background: #ddd;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.settings-btn:hover {
    background: #bbb;
}

.main-content {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .main-content {
    background-color: #1a1a1a;
}

.main-content::-webkit-scrollbar {
    display: none;
}

.top-menu-container {
    position: relative;
    z-index: 1005;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    margin-left: 100px;
}

body.dark-mode .top-menu-container {
    background-color: rgba(30, 30, 30, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.top-menu {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.top-menu-item {
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: inherit;
}

.top-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

body.dark-mode .top-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 1s;
}

body.dark-mode .top-menu-dropdown {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.top-menu-item:hover .top-menu-dropdown.level-2,
.top-menu-item .top-menu-dropdown.level-2:hover {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.top-menu-item:hover .top-menu-dropdown,
.top-menu-item .top-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.top-menu-dropdown.level-3 {
    left: 100%;
    top: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 1s;
}

.dropdown-item.level-2-item {
    position: relative;
}

.dropdown-item.level-2-item:hover .top-menu-dropdown.level-3 {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.dropdown-item.level-2-item .top-menu-dropdown.level-3 {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 1s;
}

.top-menu-dropdown.level-3 {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 1s;
}

.dropdown-section {
    margin-bottom: 16px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: bold;
    color: inherit;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .dropdown-section h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.fadeIn,
.animate__fadeIn {
    animation: fadeIn 1s ease forwards;
}

.fadeOut,
.animate__fadeOut {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.content-module {
    will-change: opacity, transform;
}

.sidebar {
    width: 200px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 1rem;
    transition: background-color 0.3s;
}

body.dark-mode .sidebar {
    background-color: #333;
}

body.dark-mode .main-content {
    background-color: #1a1a1a;
}

.category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .category-title {
    color: #e0e0e0;
}

.sub-category {
    position: relative;
}

.sub-category-title {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.sub-category-title:hover {
    background-color: #e0e0e0;
}

body.dark-mode .sub-category-title:hover {
    background-color: #444;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #333;
}

.content-area {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 180px);
    overflow: hidden;
}

.content-module {
    display: none;
}

.content-module.active {
    display: block;
}

.content-module h2 {
    margin-bottom: 1.5rem;
    color: #333;
    transition: color 0.3s;
    padding-left: 60px;
}

body.dark-mode .content-module h2 {
    color: #e0e0e0;
}

.content-module p {
    color: #666;
    transition: color 0.3s;
}

body.dark-mode .content-module p {
    color: #999;
}

.wallpaper-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding-bottom: 2rem;
}

.wallpaper-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    cursor: pointer;
}

.wallpaper-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.wallpaper-card:active {
    transform: translateY(-4px) scale(0.98);
}

.wallpaper-cover {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, background-color 0.3s;
}

.wallpaper-card:hover .wallpaper-cover {
    transform: scale(1.08);
}

.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(221, 221, 221, 0.3);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.footer p {
    margin: 0;
}

/* 设置面板 */
.settings-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.settings-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-panel-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #ddd;
    transition: border-color 0.3s;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.settings-body {
    display: flex;
    height: 400px;
}

.settings-sidebar {
    width: 200px;
    border-right: 1px solid #ddd;
    padding: 1rem 0;
    transition: border-color 0.3s;
}

.sidebar-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-item:hover {
    background-color: #f0f0f0;
}

.sidebar-item.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.settings-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.setting-item {
    margin-bottom: 2rem;
}

.setting-item h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.theme-options {
    display: flex;
    gap: 1rem;
}

.theme-option {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.theme-option:hover {
    background: #e0e0e0;
}

.theme-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 深色模式 */
body.dark-mode {
    color: #e0e0e0;
    background-color: #1a1a1a;
}

body.dark-mode .navbar {
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

body.dark-mode .navbar-left .site-name {
    color: #e0e0e0;
}



body.dark-mode .settings-btn {
    background: #333;
    color: #fff;
}

body.dark-mode .settings-btn:hover {
    background: #444;
}

body.dark-mode .wallpaper-card {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .wallpaper-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .wallpaper-cover {
    background-color: #333;
    filter: brightness(70%);
}

body.dark-mode .footer {
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(51, 51, 51, 0.3);
    color: #999;
}

body.dark-mode .settings-panel-content {
    background-color: #1e1e1e;
}

body.dark-mode .settings-header {
    border-bottom: 1px solid #333;
}

body.dark-mode .settings-header h2 {
    color: #e0e0e0;
}

body.dark-mode .close-btn {
    color: #999;
}

body.dark-mode .close-btn:hover {
    color: #e0e0e0;
}

body.dark-mode .settings-sidebar {
    border-right: 1px solid #333;
}

body.dark-mode .sidebar-item:hover {
    background-color: #333;
}

body.dark-mode .sidebar-item.active {
    background-color: #444;
}

body.dark-mode .setting-item h4 {
    color: #e0e0e0;
}

body.dark-mode .theme-option {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .theme-option:hover {
    background: #444;
}

body.dark-mode .theme-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.download-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    position: relative;
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.download-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 44px;
    cursor: pointer;
    z-index: 10;
}

body.dark-mode .download-modal-content {
    background-color: #1e1e1e;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    animation: zoomIn 0.3s ease forwards;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #ddd;
    transition: border-color 0.3s;
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    transition: color 0.3s;
}

body.dark-mode .modal-header h2 {
    color: #e0e0e0;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}


.about-modal-body {
    display: flex;
    height: 60vh;
    padding: 0;
}

.about-sidebar {
    width: 200px;
    border-right: 1px solid #ddd;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

body.dark-mode .about-sidebar {
    border-right: 1px solid #333;
    background-color: #222;
}

.about-sidebar-item {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.about-sidebar-item:hover {
    background-color: #e0e0e0;
}

body.dark-mode .about-sidebar-item:hover {
    background-color: #333;
}

.about-sidebar-item.active {
    background-color: #007bff;
    color: white;
}

.about-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.about-content-item {
    display: none;
}

.about-content-item.active {
    display: block;
}

.modal-body p {
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .modal-body p {
    color: #999;
}

.download-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.download-link {
    padding: 0.8rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #0069d9;
}

body.dark-mode .download-link {
    background-color: #0069d9;
}

body.dark-mode .download-link:hover {
    background-color: #0056b3;
}

body.dark-mode .modal-image {
    filter: brightness(70%);
}

.wallpaper-name {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

body.dark-mode .wallpaper-name {
    color: #999;
}


@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-center {
        margin: 0 1rem;
    }

    .main-content {
        padding: 1rem;
        gap: 1rem;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .drawer-items {
        padding: 16px;
    }

    .drawer-item {
        padding: 12px 16px;
        margin-bottom: 8px;
    }

    .sub-item {
        padding-left: 24px;
        margin-bottom: 6px;
    }

    .sub-menu .sub-menu .sub-item {
        padding-left: 36px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .about-content {
        padding: 16px;
    }

    .main-content {
        padding: 16px;
    }

    .wallpaper-cover {
        height: 0;
        padding-bottom: 56.25%; 
    }

    .settings-panel-content {
        width: 95%;
        max-height: 90vh;
    }

    .settings-body {
        flex-direction: column;
        height: auto;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        display: flex;
        overflow-x: auto;
    }

    .sidebar-item {
        white-space: nowrap;
        border-right: 1px solid #ddd;
    }

    body.dark-mode .settings-sidebar {
        border-bottom: 1px solid #333;
    }

    body.dark-mode .sidebar-item {
        border-right: 1px solid #333;
    }

    /* 简介界面手机端适配 */
    .about-modal-body {
        flex-direction: column;
        height: 70vh;
        max-height: 70vh;
        display: flex;
    }

    .about-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        flex-direction: row;
        overflow-x: auto;
        flex-shrink: 0;
    }

    .about-sidebar-item {
        white-space: nowrap;
        border-right: 1px solid #ddd;
    }

    .about-content {
        padding: 1.5rem;
        flex: 1;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .about-content::-webkit-scrollbar {
        display: none;
    }

    body.dark-mode .about-sidebar {
        border-bottom: 1px solid #333;
    }

    body.dark-mode .about-sidebar-item {
        border-right: 1px solid #333;
    }

    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .about-content h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* 喵呜~ */