/*
 * Move2模板 - 现代简约设计
 * CSS样式表
 */

:root {
    /* 主题色配置 */
    --primary-color: #18242e;      /* 主色调：深蓝灰色 */
    --secondary-color: #2a4158;    /* 次色调：中蓝灰色 */
    --accent-color: #ff6b6b;       /* 强调色：红色 */
    --text-color: #333;            /* 文本色：深灰 */
    --text-light: #777;            /* 浅文本：中灰 */
    --text-lighter: #aaa;          /* 更浅文本：浅灰 */
    --light-bg: #f8f9fa;           /* 浅背景色 */
    --card-bg: #fff;               /* 卡片背景色 */
    --border-color: #e8e8e8;       /* 边框色：浅灰 */
    --hover-bg: #f2f2f2;           /* 悬停背景：更浅的灰 */
    --shadow-sm: rgba(0, 0, 0, 0.05);  /* 浅阴影色 */
    --shadow-md: rgba(0, 0, 0, 0.1);   /* 中阴影色 */
    --shadow-lg: rgba(0, 0, 0, 0.15);  /* 深阴影色 */

    /* 暗黑模式颜色 */
    --dark-primary: #0f1620;         /* 暗色主色调 */
    --dark-secondary: #1c2c3c;       /* 暗色次色调 */
    --dark-accent: #ff6b6b;          /* 暗色强调色 */
    --dark-text: #e1e1e1;            /* 暗色文本 */
    --dark-text-light: #aaa;         /* 暗色浅文本 */
    --dark-bg: #121212;              /* 暗色背景 */
    --dark-card-bg: #1e1e1e;         /* 暗色卡片背景 */
    --dark-border: #383838;          /* 暗色边框 */
    --dark-hover-bg: #2c2c2c;        /* 暗色悬停背景 */
}

/* 全局样式 */
body {
    font-family: 'Nunito', 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 暗黑模式 */
body.dark-mode {
    --text-color: var(--dark-text);
    --text-light: var(--dark-text-light);
    --light-bg: var(--dark-bg);
    --card-bg: var(--dark-card-bg);
    --border-color: var(--dark-border);
    --hover-bg: var(--dark-hover-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

/* 顶部导航栏 */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px var(--shadow-sm);
    padding: 0.8rem 0;
    position: static; /* 改为静态定位，不再固定 */
    z-index: 1010;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.dark-mode .site-header {
    background-color: var(--dark-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.header-brand a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-color);
}

.header-brand i {
    color: #ff7f50;
    background: linear-gradient(45deg, #ff7f50, #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 1px rgba(255, 127, 80, 0.3));
    animation: pulse 2s infinite;
}

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

.header-search {
    flex: 0 0 300px;
    margin: 0 1rem;
}

.header-search .form-control {
    border-radius: 20px 0 0 20px;
    padding-left: 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dark-mode .header-search .form-control {
    background-color: var(--dark-secondary);
    border-color: var(--dark-border);
}

.header-search .form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
}

.btn-search {
    border-radius: 0 20px 20px 0;
    background-color: var(--accent-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateX(2px);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.header-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.header-nav .nav-link:hover:after,
.header-nav .nav-link.active:after {
    width: 70%;
}

.header-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.header-nav .nav-link:hover i,
.header-nav .nav-link.active i {
    transform: scale(1.1);
}

.header-user {
    display: flex;
    align-items: center;
}

.btn-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dark-mode .btn-theme {
    background-color: var(--dark-secondary);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.btn-theme:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* 移动端头部 */
.mobile-header {
    background-color: var(--primary-color);
    padding: 0.8rem 1rem;
    position: static; /* 改为静态定位，不再固定 */
    z-index: 1010;
    box-shadow: 0 2px 5px var(--shadow-md);
    margin-bottom: 15px;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-brand {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-toggle, .mobile-search-btn {
    color: #ffffff;
    font-size: 1.4rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle i,
.mobile-search-btn i {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    display: block;
    line-height: 1;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* 主容器 */
.main-container {
    /* display: flex; */
    flex-wrap: wrap;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

/* 侧边导航栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--card-bg);
    color: var(--text-color);
    z-index: 1050;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 1px 0 5px var(--shadow-sm);
    overflow-y: auto;
}

.dark-mode .sidebar {
    background-color: var(--dark-card-bg);
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
}

/* 移动设备侧边栏默认收起 */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        padding-top: 60px; /* 为移动端固定头部留出空间 */
        width: 100% !important;
    }
}

/* 侧边栏内部样式 */
.sidebar-container {
    padding: 1.5rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.sidebar-logo i {
    color: #ff7f50;
    background: linear-gradient(45deg, #ff7f50, #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 1px rgba(255, 127, 80, 0.3));
    animation: pulse 2s infinite;
}

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

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--hover-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.dark-mode .sidebar-close {
    background-color: var(--dark-hover-bg);
}

.sidebar-search {
    margin-bottom: 1.5rem;
}

.sidebar-search .form-control {
    border-radius: 20px 0 0 20px;
    padding-left: 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sidebar-search .form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
}

.sidebar-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
}

.sidebar-menu {
    margin-bottom: 1.5rem;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.sidebar-menu .nav-link i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
}

.dark-mode .sidebar-menu .nav-link:hover,
.dark-mode .sidebar-menu .nav-link.active {
    background-color: var(--dark-hover-bg);
}

.sidebar-categories {
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.category-list {
    max-height: 350px;
    overflow-y: auto;
}

.sidebar-categories .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.sidebar-categories .nav-link i {
    margin-right: 0.8rem;
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

.category-count {
    margin-left: auto;
    background-color: var(--hover-bg);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.dark-mode .category-count {
    background-color: var(--dark-hover-bg);
}

.sidebar-categories .nav-link:hover,
.sidebar-categories .nav-link.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
}

.dark-mode .sidebar-categories .nav-link:hover,
.dark-mode .sidebar-categories .nav-link.active {
    background-color: var(--dark-hover-bg);
}

.sidebar-theme {
    margin-bottom: 1.5rem;
}

.theme-options {
    padding: 0 0.5rem;
}

.sidebar-theme .btn-theme {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background-color: var(--hover-bg);
    color: var(--text-color);
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark-mode .sidebar-theme .btn-theme {
    background-color: var(--dark-hover-bg);
}

.sidebar-theme .btn-theme i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-theme .btn-theme:hover {
    background-color: var(--accent-color);
    color: white;
}

.sidebar-footer {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.dark-mode .sidebar-footer {
    border-color: var(--dark-border);
}

/* 主内容 */
.page-wrapper {
    margin-left: 250px;
    transition: margin 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0; /* 移除顶部填充 */
}

@media (max-width: 767.98px) {
    .page-wrapper {
        margin-left: 0;
        padding-top: 0;
    }
}

@media (min-width: 768px) {
    .page-wrapper {
        padding-left: 15px;
    }
}

.main-content {
    flex: 1;
    padding: 0;
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
}

/* 内容区域容器 */
.content-container {
    padding: 1.5rem;
}

/* 主要内容区块通用样式 */
.content-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 1px 3px var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .content-section {
    background-color: var(--dark-card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title h2 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.section-more {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.section-more i {
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.section-more:hover {
    color: var(--accent-color);
}

.section-more:hover i {
    transform: translateX(3px);
}

/* 卡片样式 */
.movie-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
}

.dark-mode .movie-card {
    background-color: var(--dark-card-bg);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    padding-top: 145%; /* 2:3比例 */
    overflow: hidden;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-img-top {
    transform: scale(1.05);
}

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.movie-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 2;
}

.movie-rating i {
    color: #ffc107;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.card-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.card-text i {
    margin-right: 0.3rem;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 450px;
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.25;
    filter: blur(8px);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
}

.hero-poster {
    flex: 0 0 200px;
    margin-right: 2rem;
}

@media (max-width: 767.98px) {
    .hero-poster {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

.hero-poster img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-details {
    flex: 1;
}

.hero-details h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .hero-details h1 {
        font-size: 1.7rem;
    }
}

.hero-meta {
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

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

@media (max-width: 767.98px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-actions .btn {
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.hero-actions .btn i {
    margin-right: 0.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .footer {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.dark-mode .copyright {
    border-color: var(--dark-border);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    border: none;
    z-index: 100;
}

.back-to-top:hover {
    background-color: #e64444;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .header-inner {
        gap: 1rem;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .header-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .content-section {
        padding: 1rem;
    }

    .section-title h2 {
        font-size: 1.1rem;
    }
}

/* 懒加载图片效果 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 导航样式优化 */
.sidebar-menu .nav-link,
.sidebar-categories .nav-link {
    position: relative;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    padding: 12px 15px;
}

.sidebar-menu .nav-link:before,
.sidebar-categories .nav-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 8px;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.sidebar-menu .nav-link:hover:before,
.sidebar-categories .nav-link:hover:before,
.sidebar-menu .nav-link.active:before,
.sidebar-categories .nav-link.active:before {
    width: 100%;
}

.sidebar-menu .nav-link i,
.sidebar-categories .nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.sidebar-menu .nav-link:hover i,
.sidebar-categories .nav-link:hover i,
.sidebar-menu .nav-link.active i,
.sidebar-categories .nav-link.active i {
    transform: scale(1.1);
}

/* 面包屑导航样式优化 */
.breadcrumb {
    padding: 12px 15px;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.dark-mode .breadcrumb {
    background-color: rgba(255, 255, 255, 0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    font-family: "Bootstrap Icons";
    content: "\F231";
}

.breadcrumb-item a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* 侧边栏标题样式 */
.sidebar-heading {
    position: relative;
    padding-left: 12px;
    margin-bottom: 15px;
}

.sidebar-heading:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 页脚导航样式 */
.footer-links a {
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.footer-links a i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.footer-links a:hover i {
    transform: translateY(-50%) translateX(3px);
}

/* 首页图标特殊样式 */
.nav-link i.bi-house-heart-fill {
    color: #ff6b6b;
    background: linear-gradient(120deg, #ff6b6b, #ff8e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px rgba(255, 107, 107, 0.3));
}

/* 分类图标样式 */
.sidebar-categories .nav-link i {
    background: linear-gradient(120deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px rgba(79, 172, 254, 0.3));
    transition: all 0.3s ease;
}

/* 夜间模式图标样式 */
.btn-theme i.bi-moon-stars-fill {
    color: #a18cd1;
    background: linear-gradient(120deg, #a18cd1, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px rgba(161, 140, 209, 0.3));
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0% {
    opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.dark-mode .btn-theme i.bi-sun-fill {
    color: #f9d423;
    background: linear-gradient(120deg, #f9d423, #ff4e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(249, 212, 35, 0.5));
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 分类图标随机颜色 */
.category-list li:nth-child(4n+1) .nav-link i {
    background: linear-gradient(120deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-list li:nth-child(4n+2) .nav-link i {
    background: linear-gradient(120deg, #84fab0, #8fd3f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-list li:nth-child(4n+3) .nav-link i {
    background: linear-gradient(120deg, #fa709a, #fee140);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-list li:nth-child(4n+4) .nav-link i {
    background: linear-gradient(120deg, #30cfd0, #330867);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 搜索按钮图标动画 */
.btn-search i {
    transition: all 0.3s ease;
}

.btn-search:hover i {
    transform: scale(1.2);
    animation: spin 0.5s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* 侧边栏关闭按钮特效 */
.sidebar-close i {
    transition: all 0.3s ease;
}

.sidebar-close:hover i {
    transform: rotate(90deg);
    color: #ff6b6b;
}