/* 导入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

/* 基础样式 */
body {
    margin: 0;
    padding-top: 60px;
    background-color: #1a1b1f;
    color: #e0e1e6;
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 16px; /* 增加基础字体大小 */
    line-height: 1.8; /* 增加行高使文字更通畅 */
}

/* 顶部导航栏 */
.navbar {
    background-color: rgba(26, 27, 31, 0.95);
    box-shadow: 0 2px 10px rgba(0, 230, 255, 0.1);
    height: 60px;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 195, 188, 0.1);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.search-box {
    display: flex;
    align-items: center;
    width: 400px;
    margin: 0 20px;
    position: relative;
}

.search-box input {
    border-radius: 4px;
    padding: 8px 15px;
    border: 1px solid rgba(240, 195, 188, 0.2);
    background: rgba(var(--bg-rgb), 0.05);
    color: #e0e1e6;
    width: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 1.1rem; /* 增大搜索框字号 */
    padding: 0.8rem 1rem; /* 增加搜索框内边距 */
}

.search-box input::placeholder {
    color: rgba(100, 255, 218, 0.5);
}

.btn-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
}

.btn-search i {
    font-size: 16px;
}

.nav-buttons .btn {
    border-color: #f0c3bc;
    color: #f0c3bc;
    transition: all 0.3s ease;
}

.nav-buttons .btn:hover {
    background-color: rgba(240, 195, 188, 0.1);
}

.nav-buttons .btn-primary {
    background-color: #f0c3bc;
    color: #1a1b1f;
}

/* 左侧菜单 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 220px;
    height: calc(100vh - 60px);
    background-color: rgba(26, 27, 31, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

/* 导航菜单容器 */
.nav.flex-column {
    flex: 1;
    padding: 20px 0;
}

.sidebar .nav-link {
    color: #e0e1e6;
    padding: 12px 20px;
    font-size: 1.1rem; /* 增大导航链接字号 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    font-family: "Microsoft YaHei", sans-serif;
}

.sidebar .nav-link i:first-child {
    width: 24px;
    margin-right: 10px;
    font-size: 18px;
}

.sidebar .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.sidebar .collapse.show + .nav-link .fa-chevron-down,
.sidebar .collapsing + .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar .collapse {
    background-color: rgba(0, 230, 255, 0.05);
}

.sidebar .sub-link {
    padding-left: 54px;
    font-size: 1rem; /* 增大子菜单字号 */
    color: #f0c3bc;
    opacity: 0.8;
}

.sidebar .nav-link:hover {
    color: #f0c3bc;
    background-color: rgba(240, 195, 188, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #f0c3bc;
    background-color: rgba(240, 195, 188, 0.1);
    border-left: 3px solid #f0c3bc;
}

.sidebar .sub-link:hover {
    opacity: 1;
    background-color: rgba(240, 195, 188, 0.05);
    transform: translateX(5px);
}

.sidebar .collapse {
    transition: all 0.3s ease;
}

.nav.flex-column::-webkit-scrollbar,
.collapse::-webkit-scrollbar {
    width: 4px;
}

.nav.flex-column::-webkit-scrollbar-thumb,
.collapse::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    opacity: 0.3;
    border-radius: 2px;
}

.nav.flex-column::-webkit-scrollbar-track,
.collapse::-webkit-scrollbar-track {
    background: transparent;
}

/* 主要内容区域 */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

.section {
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 230, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #64ffda;
    font-weight: 600;
}

.section-desc {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 20px;
}

/* API卡片网格 */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* API卡片样式 */
.api-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border: 2px solid var(--border-color); /* 加粗边框 */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15); /* 增强阴影 */
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(100, 255, 218, 0), 
        rgba(100, 255, 218, 1), 
        rgba(100, 255, 218, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
}

.api-card:hover::before {
    opacity: 1;
}

.api-header {
    padding: 1.2rem; /* 增加内边距 */
    background: rgba(100, 255, 218, 0.05);
    border-bottom: 2px solid var(--border-color); /* 加粗分隔线 */
    display: flex;
    align-items: center;
}

.api-type {
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border: 2px solid var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #64ffda, #00b4d8);
    border-radius: 4px;
    letter-spacing: 1px;
}

.api-body {
    padding: 20px;
}

.cyber-text {
    font-family: "Times New Roman", "Microsoft YaHei", serif;
    font-size: 1.5rem; /* 增大标题字号 */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #64ffda;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.cyber-desc {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 1.1rem; /* 增大描述文字大小 */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.api-footer {
    padding: 1.2rem; /* 增加内边距 */
    border-top: 2px solid var(--border-color); /* 加粗分隔线 */
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cyber-btn {
    background: transparent;
    border: 1px solid #f0c3bc;
    color: #f0c3bc;
    padding: 0.6rem 1.5rem; /* 增加按钮内边距 */
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 1rem; /* 增大按钮文字大小 */
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(100, 255, 218, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    background: rgba(240, 195, 188, 0.1);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.cyber-btn-secondary {
    background: transparent;
    border: 1px solid #8892b0;
    color: #8892b0;
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyber-btn-secondary:hover {
    background: rgba(136, 146, 176, 0.1);
    box-shadow: 0 0 20px rgba(136, 146, 176, 0.1);
}

/* 添加卡片悬停动画 */
@keyframes cyberpulse {
    0% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(100, 255, 218, 0.4),
            0 0 40px rgba(100, 255, 218, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
}

.api-card:hover {
    animation: cyberpulse 2s infinite;
}

/* 响应式整 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .search-box {
        width: 200px;
    }
}

/* 添加收藏按钮样式 */
.favorite-btn {
    position: relative;
    overflow: hidden;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.favorite-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
    color: #8892b0;
}

.favorite-btn:hover i {
    transform: scale(1.2);
}

.favorite-btn.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

.favorite-btn.active i {
    color: #64ffda;
    animation: favoriteAnimation 0.3s ease;
}

/* 收藏按钮动画 */
@keyframes favoriteAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 悬停效果 */
.favorite-btn:hover {
    background: rgba(136, 146, 176, 0.1);
}

.favorite-btn.active:hover {
    background: rgba(100, 255, 218, 0.2);
}

/* 修改导航栏收藏按钮样式 */
#favoritesBtn {
    display: flex;
    align-items: center;
    gap: 5px;
}

#favoritesBtn i {
    color: #64ffda;
}

#favoritesBtn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* 修改导航按钮样式 */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主题切换器式 */
.theme-switcher {
    position: relative;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-switcher:hover .theme-dropdown {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #8892b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
}

.theme-option i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* 主题样式变量 */
:root {
    /* 暗色主题（默认） - 高级深色配色 */
    --bg-color: #1a1f2c;          /* 深邃的藏青色背景 */
    --text-color: #e2e8f0;        /* 柔和的浅灰白色文字 */
    --primary-color: #64b5f6;     /* 清新的天蓝色主色调 */
    --secondary-color: #90caf9;   /* 浅蓝色次要色调 */
    --card-bg: rgba(26, 31, 44, 0.95);
    --header-bg: rgba(26, 31, 44, 0.98);
    --card-text: #ffffff;
    --card-desc: #b0bec5;
    --hover-color: rgba(100, 181, 246, 0.1);
    --border-color: rgba(100, 181, 246, 0.2);
    --nav-active: #64b5f6;
    --nav-hover: rgba(100, 181, 246, 0.1);
}

/* 亮色主题 - 优雅浅色配色 */
[data-theme="light"] {
    --bg-color: #f8fafc;          /* 清爽的浅灰白色背景 */
    --text-color: #334155;        /* 优雅的深灰色文字 */
    --primary-color: #3b82f6;     /* 明亮的蓝色主色调 */
    --secondary-color: #60a5fa;   /* 活力蓝次要色调 */
    --card-bg: #ffffff;
    --header-bg: rgba(248, 250, 252, 0.98);
    --card-text: #1e293b;
    --card-desc: #64748b;
    --hover-color: rgba(59, 130, 246, 0.1);
    --border-color: rgba(59, 130, 246, 0.2);
    --nav-active: #3b82f6;
    --nav-hover: rgba(59, 130, 246, 0.1);
}

/* 护眼主题 - 自然色调 */
[data-theme="eye-care"] {
    --bg-color: #f0f4f8;          /* 柔和的浅蓝灰色背景 */
    --text-color: #2d3748;        /* 深邃的墨灰色文字 */
    --primary-color: #38a169;     /* 清新的绿色主色调 */
    --secondary-color: #48bb78;   /* 自然绿次要色调 */
    --card-bg: #ffffff;
    --header-bg: rgba(240, 244, 248, 0.98);
    --card-text: #2d3748;
    --card-desc: #4a5568;
    --hover-color: rgba(56, 161, 105, 0.1);
    --border-color: rgba(56, 161, 105, 0.2);
    --nav-active: #38a169;
    --nav-hover: rgba(56, 161, 105, 0.1);
}

/* 修改字体样式 */
body {
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 16px; /* 增加基础字体大小 */
    line-height: 1.8; /* 增加行高使文字更通畅 */
}

.cyber-text {
    font-family: "Times New Roman", "Microsoft YaHei", serif;
    font-size: 1.5rem; /* 增大标题字号 */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.navbar-brand {
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 1.4rem; /* 增大品牌名称字号 */
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* 修改卡片样式 */
.api-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border: 2px solid var(--border-color); /* 加粗边框 */
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15); /* 增强阴影 */
}

.api-card .cyber-text {
    font-size: 1.5rem; /* 增大标题字号 */
    margin-bottom: 1rem;
    color: var(--card-text);
}

.api-card .cyber-desc {
    font-size: 1.1rem; /* 增大描述文字大小 */
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
}

/* 修改按钮样式 */
.cyber-btn {
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 1rem; /* 增大按钮文字大小 */
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.5rem; /* 增加按钮内边距 */
}

/* 应用主题变量到具体元素 */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.search-box input {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.nav-buttons .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-buttons .btn:hover {
    background-color: var(--hover-color);
}

.sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    color: var(--text-color);
}

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

.api-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color); /* 加粗边框 */
}

.cyber-text {
    color: var(--card-text);
}

.cyber-desc {
    color: var(--text-color);
}

.api-type {
    background: linear-gradient(90deg, var(--primary-color), var(--nav-active));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-color: var(--border-color);
}

.cyber-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cyber-btn:hover {
    background: var(--hover-color);
}

.favorite-btn {
    border-color: var(--text-color);
}

.favorite-btn i {
    color: var(--text-color);
}

.favorite-btn.active {
    border-color: var(--primary-color);
}

.favorite-btn.active i {
    color: var(--primary-color);
}

/* 主题切换下拉菜单 */
.theme-dropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.theme-option {
    color: var(--text-color);
}

.theme-option:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* 修改滚动条颜色 */
::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* 添加登录相关样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.login-box {
    background: rgba(10, 25, 47, 0.9);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.1);
}

.login-box h2 {
    color: #64ffda;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

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

.login-input {
    padding: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background: rgba(10, 25, 47, 0.5);
    color: #64ffda;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.login-input:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.login-input::placeholder {
    color: rgba(100, 255, 218, 0.5);
}

.login-error {
    color: #ff4d4d;
    font-size: 14px;
    text-align: center;
    margin: 0;
    min-height: 20px;
}

.login-btn {
    padding: 12px;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border: 1px solid #64ffda;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* 添加图标样式 */
.api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem; /* 增加内边距 */
}

.api-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.api-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

/* 修改卡片标题样式以适应图标 */
.api-type {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 图悬停效果 */
.api-card:hover .api-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.api-card:hover .api-icon i {
    animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 修改主题切换下拉菜单中护眼模式的文字颜色 */
[data-theme="eye-care"] .theme-dropdown .theme-option[data-theme="eye-care"] {
    color: #2c3e50; /* 与亮色模式相同的文字颜色 */
}

/* 修改登录/退出样式 */
.nav-buttons .btn-primary {
    background: transparent !important; /* 透明背景 */
    color: #1C1C1C !important; /* 恒定黑色文字 */
    border: 1px solid rgba(28, 28, 28, 0.3); /* 半透明边框 */
}

.nav-buttons .btn-primary:hover {
    background: rgba(28, 28, 28, 0.1) !important; /* 悬停时略微加深背景 */
}

/* 确保他主题选保持原有颜色 */
.theme-option {
    color: var(--text-color);
}

.theme-option:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* 修改主题切换���拉菜单中的���字颜色 */
[data-theme="dark"] .theme-dropdown .theme-option {
    color: #64ffda; /* 在暗色模式下使用色文字 */
}

[data-theme="dark"] .theme-dropdown .theme-option:hover {
    background: rgba(100, 255, 218, 0.1);
    color: #ffffff;
}

/* 修改登录/退出按钮在不同主题下的样式 */
/* 暗色模式 */
[data-theme="dark"] .nav-buttons .btn-primary {
    background: transparent !important;
    color: #64ffda !important;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

[data-theme="dark"] .nav-buttons .btn-primary:hover {
    background: rgba(100, 255, 218, 0.1) !important;
}

/* 亮色模式 */
[data-theme="light"] .nav-buttons .btn-primary {
    background: transparent !important;
    color: #1C1C1C !important;
    border: 1px solid rgba(28, 28, 28, 0.3);
}

[data-theme="light"] .nav-buttons .btn-primary:hover {
    background: rgba(28, 28, 28, 0.1) !important;
}

/* 护眼模式 */
[data-theme="eye-care"] .nav-buttons .btn-primary {
    background: transparent !important;
    color: #1C1C1C !important;
    border: 1px solid rgba(28, 28, 28, 0.3);
}

[data-theme="eye-care"] .nav-buttons .btn-primary:hover {
    background: rgba(28, 28, 28, 0.1) !important;
}

/* 确保护眼模式选项在所有主题下都清晰可见 */
.theme-option[data-theme="eye-care"] {
    color: inherit !important;
}

/* 主题拉菜单的背景色整 */
[data-theme="dark"] .theme-dropdown {
    background: rgba(10, 25, 47, 0.95);
}

[data-theme="light"] .theme-dropdown {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="eye-care"] .theme-dropdown {
    background: rgba(199, 237, 204, 0.95);
}

/* 修品牌名称的基础样式 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 暗模下的品牌样式 */
[data-theme="dark"] .navbar-brand {
    color: #64ffda !important;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.05));
    border: 1px solid rgba(100, 255, 218, 0.2);
}

[data-theme="dark"] .navbar-brand:hover {
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.15), rgba(100, 255, 218, 0.08));
}

/* 亮色模式下的品牌样式 */
[data-theme="light"] .navbar-brand {
    color: #1a73e8 !important;
    text-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
    background: linear-gradient(145deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.05));
    border: 1px solid rgba(26, 115, 232, 0.2);
}

[data-theme="light"] .navbar-brand:hover {
    text-shadow: 0 0 15px rgba(26, 115, 232, 0.4);
    background: linear-gradient(145deg, rgba(26, 115, 232, 0.15), rgba(26, 115, 232, 0.08));
}

/* 护眼模式下的品牌样式 */
[data-theme="eye-care"] .navbar-brand {
    color: #2E5C3E !important;
    text-shadow: 0 0 10px rgba(46, 92, 62, 0.2);
    background: linear-gradient(145deg, rgba(46, 92, 62, 0.1), rgba(46, 92, 62, 0.05));
    border: 1px solid rgba(46, 92, 62, 0.2);
}

[data-theme="eye-care"] .navbar-brand:hover {
    text-shadow: 0 0 15px rgba(46, 92, 62, 0.4);
    background: linear-gradient(145deg, rgba(46, 92, 62, 0.15), rgba(46, 92, 62, 0.08));
}

/* 品牌图标样式 */
.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 5px;
}

/* 添加动画效果 */
@keyframes brandGlow {
    0% { text-shadow: 0 0 10px rgba(var(--brand-glow-color), 0.3); }
    50% { text-shadow: 0 0 20px rgba(var(--brand-glow-color), 0.5); }
    100% { text-shadow: 0 0 10px rgba(var(--brand-glow-color), 0.3); }
}

.navbar-brand:hover i {
    animation: rotate 2s linear infinite;
}

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

/* 添加每日内容样式 */
.daily-content {
    position: relative;
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border-top: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.daily-quote {
    margin-bottom: 20px;
}

.daily-quote h4,
.daily-fortune h4 {
    font-family: "Microsoft YaHei", "Times New Roman", sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.quote-text {
    font-family: "Times New Roman", serif;
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 5px;
    line-height: 1.4;
}

.quote-translation {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
}

.daily-fortune {
    margin-top: 15px;
}

.fortune-bar {
    height: 6px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.fortune-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 85%; /* 可以通过JavaScript动态设置 */
    border-radius: 3px;
    animation: fortuneGlow 2s infinite;
}

.fortune-text {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
}

@keyframes fortuneGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 主题适配 */
[data-theme="dark"] .daily-content {
    --bg-rgb: 10, 25, 47;
    --primary-rgb: 100, 255, 218;
    --accent-color: #00b4d8;
}

[data-theme="light"] .daily-content {
    --bg-rgb: 255, 255, 255;
    --primary-rgb: 26, 115, 232;
    --accent-color: #1a73e8;
}

[data-theme="eye-care"] .daily-content {
    --bg-rgb: 199, 237, 204;
    --primary-rgb: 46, 92, 62;
    --accent-color: #2E5C3E;
}

/* 在 .sidebar .nav-link 样式之后添加 */
.sidebar .nav-link .badge {
    margin-left: auto;
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

/* 修改子菜单样式 */
.sidebar .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .sub-menu .nav-link {
    padding-left: 54px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.sidebar .sub-menu .nav-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.sidebar .sub-menu .nav-link.active {
    color: var(--primary-color);
    background-color: var(--nav-hover);
    border-left: 3px solid var(--primary-color);
}

/* 添加图标动画效果 */
.sidebar .nav-link:hover i:first-child {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* 添加展开/收起动画 */
.sidebar .collapse {
    transition: all 0.3s ease-in-out;
}

.sidebar .nav-link[data-bs-toggle="collapse"] i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.sidebar .nav-link[data-bs-toggle="collapse"][aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* 修改子菜单样式，添加多级菜单支持 */
.sidebar .sub-menu .sub-menu {
    margin-left: 20px;
}

.sidebar .sub-menu .sub-menu .nav-link {
    padding-left: 74px;  /* 增加二级子菜单的缩进 */
    font-size: 13px;     /* 稍微减小字体大小 */
}

/* 添加子菜单图标样式 */
.sidebar .sub-menu .nav-link i:first-child {
    margin-right: 8px;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* 优化子菜单展开/收起动画 */
.sidebar .sub-menu .collapse {
    transition: all 0.2s ease-in-out;
}

/* 添加子菜单hover效果 */
.sidebar .sub-menu .nav-link:hover {
    background-color: var(--nav-hover);
}

/* 优化子菜单active状态 */
.sidebar .sub-menu .nav-link.active {
    background-color: var(--nav-hover);
    border-left: 3px solid var(--primary-color);
    padding-left: 71px;  /* 补偿边框宽度 */
}

/* 子菜单图标动画 */
.sidebar .sub-menu .nav-link:hover i:first-child {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* 添加美食地图样式 */
.food-map-container {
    padding: 40px;  /* 增加内边距 */
    margin: 30px 0;  /* 增加外边距 */
    background: var(--card-bg);
    border-radius: 16px;  /* 增加圆角 */
    border: 1px solid var(--border-color);
}

.food-map-container h2 {
    font-size: 2.2rem;  /* 增大标题字号 */
    margin-bottom: 30px;  /* 增加标题下方间距 */
    color: var(--primary-color);
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.food-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  /* 增加卡片最小宽度 */
    gap: 30px;  /* 增卡片间距 */
    margin-top: 30px;
}

.cuisine-card {
    padding: 25px;  /* 增加内边距 */
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cuisine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
}

.cuisine-image {
    height: 200px;  /* 增加图片高度 */
    object-fit: contain;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    padding: 15px;
}

.cuisine-title {
    font-size: 1.8rem;  /* 增大标题字号 */
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.cuisine-desc {
    font-size: 1.1rem;  /* 增大描述文字字号 */
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
    opacity: 0.9;
}

.cuisine-card:hover .cuisine-title {
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.cuisine-card:hover .cuisine-image {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.cuisine-card:hover .cuisine-btn {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.cuisine-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

/* 添加查看详情按钮 */
.cuisine-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.cuisine-card:hover .cuisine-btn {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .food-map-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .food-map-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .food-map-grid {
        grid-template-columns: 1fr;
    }
    
    .food-map-container {
        padding: 20px;
    }
    
    .cuisine-card {
        padding: 20px;
    }
}

/* 添加加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cuisine-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 添加延迟加载效果 */
.cuisine-card:nth-child(1) { animation-delay: 0.1s; }
.cuisine-card:nth-child(2) { animation-delay: 0.2s; }
.cuisine-card:nth-child(3) { animation-delay: 0.3s; }
.cuisine-card:nth-child(4) { animation-delay: 0.4s; }
.cuisine-card:nth-child(5) { animation-delay: 0.5s; }
.cuisine-card:nth-child(6) { animation-delay: 0.6s; }
.cuisine-card:nth-child(7) { animation-delay: 0.7s; }
.cuisine-card:nth-child(8) { animation-delay: 0.8s; }

/* 修改美食地图容器样式 */
.food-map-container {
    padding: 40px;  /* 增加内边距 */
    margin: 30px 0;  /* 增加外边距 */
    background: var(--card-bg);
    border-radius: 16px;  /* 增加圆角 */
    border: 1px solid var(--border-color);
}

.food-map-container h2 {
    font-size: 2.2rem;  /* 增大标题字号 */
    margin-bottom: 30px;  /* 增加标题下方间距 */
    color: var(--primary-color);
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.food-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  /* 增加卡片最小宽度 */
    gap: 30px;  /* 增加卡片间距 */
    margin-top: 30px;
}

/* 修改菜系卡片样式 */
.cuisine-card {
    padding: 25px;  /* 增加内边距 */
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cuisine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
}

.cuisine-image {
    height: 200px;  /* 增加图片高度 */
    object-fit: contain;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    padding: 15px;
}

.cuisine-title {
    font-size: 1.8rem;  /* 增大标题字号 */
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.cuisine-desc {
    font-size: 1.1rem;  /* 增大描述文字字号 */
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
    opacity: 0.9;
}

/* 修改招牌菜品列表样式 */
.cuisine-signature {
    margin-top: auto;  /* 将招牌菜品列表推到底部 */
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cuisine-signature h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.signature-list li {
    margin-bottom: 12px;  /* 增加列表项间距 */
}

.recipe-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.recipe-link i {
    margin-right: 12px;
    font-size: 14px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.recipe-link:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.recipe-link:hover i {
    transform: translateX(3px);
}

/* 添加响应式调整 */
@media (max-width: 1400px) {
    .food-map-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .food-map-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .food-map-grid {
        grid-template-columns: 1fr;
    }
    
    .food-map-container {
        padding: 20px;
    }
    
    .cuisine-card {
        padding: 20px;
    }
}

/* 添加加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cuisine-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 添加延迟加载效果 */
.cuisine-card:nth-child(1) { animation-delay: 0.1s; }
.cuisine-card:nth-child(2) { animation-delay: 0.2s; }
.cuisine-card:nth-child(3) { animation-delay: 0.3s; }
.cuisine-card:nth-child(4) { animation-delay: 0.4s; }
.cuisine-card:nth-child(5) { animation-delay: 0.5s; }
.cuisine-card:nth-child(6) { animation-delay: 0.6s; }
.cuisine-card:nth-child(7) { animation-delay: 0.7s; }
.cuisine-card:nth-child(8) { animation-delay: 0.8s; }

/* 内容区域样式 */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

/* 导航链接样式 */
.nav-link {
    cursor: pointer;
}

.nav-link.active {
    background-color: var(--nav-hover);
    color: var(--primary-color);
}

/* 菜品详情页样式 */
.recipe-detail-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button .cyber-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-button .cyber-btn:hover {
    transform: translateX(-5px);
    background: rgba(var(--primary-rgb), 0.2);
}

/* 菜品头部信息样式 */
.recipe-header {
    text-align: center;
    padding: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border-radius: 12px;
}

.recipe-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.recipe-meta i {
    color: var(--primary-color);
}

/* 历史渊源样式 */
.recipe-history {
    margin-top: 30px;
    padding: 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
}

.recipe-history h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* 内容区域样式 */
.recipe-content section {
    padding: 30px;
    margin-bottom: 30px;
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.recipe-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* 营养信息样式 */
.nutrition-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.nutrition-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nutrition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.nutrition-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.nutrition-item span {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
}

.nutrition-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 食材列表样 */
.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.main-ingredients, .sub-ingredients {
    padding: 25px;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ingredients-list h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

.ingredients-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.ingredients-list li:hover {
    padding-left: 10px;
    background: rgba(var(--primary-rgb), 0.1);
}

/* 步骤列表样式 */
.steps-list {
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.step-tips {
    padding: 15px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.step-tips i {
    color: var(--primary-color);
}

.step-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.step-image:hover img {
    transform: scale(1.05);
}

/* 大师小贴士样式 */
.chef-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.chef-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-avatar i {
    font-size: 30px;
    color: var(--bg-color);
}

.chef-details h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.chef-details span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.chef-advice {
    position: relative;
    padding: 25px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 12px;
    margin-top: 20px;
}

.chef-advice i {
    color: var(--primary-color);
    font-size: 20px;
}

.chef-advice p {
    margin: 15px 0;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

/* 视频教程链接样式 */
.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.video-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.video-link.bilibili {
    background: rgba(251, 114, 153, 0.1);
    border: 1px solid #FB7299;
    color: #FB7299;
}

.video-link.xiaohongshu {
    background: rgba(255, 60, 95, 0.1);
    border: 1px solid #FF3C5F;
    color: #FF3C5F;
}

.video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* 烹饪技巧列表样式 */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tips-list li:hover {
    padding-left: 10px;
    background: rgba(var(--primary-rgb), 0.1);
}

.tips-list i {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recipe-detail-container {
        margin: 60px auto 30px;
        padding: 20px;
    }

    .recipe-header h1 {
        font-size: 2rem;
    }

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

    .nutrition-grid {
        grid-template-columns: repeat(1, 1fr);
    }

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

    .step-item {
        flex-direction: column;
    }

    .video-container {
        flex-direction: column;
    }
}

/* 添加搜索结果高亮样式 */
.highlight {
    background-color: rgba(var(--primary-rgb), 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

/* 添加动态加载动画 */
.cuisine-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.cuisine-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加加载中动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* 分享按钮样式 */
.share-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.weixin {
    background-color: #07C160;
    color: white;
}

.share-btn.weibo {
    background-color: #E6162D;
    color: white;
}

.share-btn.copy-link {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 添加操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: var(--bg-color);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.share-group {
    position: relative;
}

.share-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 100;
}

.share-group:hover .share-options {
    display: block;
}

/* 相关推荐样式 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
}

.related-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.view-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 10px;
}

.view-more i {
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(5px);
}

/* 评论区样式 */
.comments-section {
    margin-top: 40px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    resize: vertical;
    margin-bottom: 15px;
}

.submit-comment {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.username {
    color: var(--primary-color);
    font-weight: 600;
}

.time {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.like-btn, .reply-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover, .reply-btn:hover {
    color: var(--primary-color);
}

/* 打印样式 */
@media print {
    .action-buttons,
    .comments-section,
    .related-recipes {
        display: none;
    }
}

/* 修复background-clip兼容性问题 */
.api-type {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    -o-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    -ms-text-fill-color: transparent;
    -o-text-fill-color: transparent;
    text-fill-color: transparent;
    color: transparent;
}

/* 修复gradient-bg的background-clip兼容性 */
.gradient-bg {
    background: linear-gradient(145deg, var(--card-bg), rgba(var(--bg-rgb), 0.8));
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
}

/* 添加浏览器前缀以支持backdrop-filter */
.header-blur {
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* 添加浏览器前缀以支持transform */
.transform-effect {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
}

/* 添加浏览器前缀以支持transition */
.transition-effect {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 添加浏览器前缀以支持animation */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-moz-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-ms-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-o-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 添加浏览器前缀以支持box-shadow */
.shadow-effect {
    -webkit-box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    -moz-box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* 添加浏览器前缀以支持user-select */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 添加浏览器前缀以支持appearance */
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 添加浏览器前缀以支持column-count */
.multi-column {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

/* 添加浏览器前缀以支持flex布局 */
.flex-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

/* 添加优雅的过渡效果 */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 移除所有-ms-high-contrast相关属性 */
@media (forced-colors: active) {
    /* 基础样式适配 */
    :root {
        --primary-color: CanvasText;
        --text-color: CanvasText;
        --bg-color: Canvas;
        --border-color: CanvasText;
        --accent-color: Highlight;
    }

    /* 按钮和交互元素适配 */
    .cyber-btn,
    .login-btn,
    .action-btn,
    .nav-buttons .btn {
        forced-color-adjust: none;
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    /* 卡片和容器适配 */
    .api-card,
    .login-box,
    .theme-dropdown {
        forced-color-adjust: none;
        border: 1px solid CanvasText;
        background: Canvas;
    }

    /* 图标和装饰元素适配 */
    .api-icon,
    .nav-icon {
        forced-color-adjust: none;
        color: CanvasText;
    }

    /* 导航栏适配 */
    .navbar,
    .sidebar {
        forced-color-adjust: none;
        background: Canvas;
        border-color: CanvasText;
    }

    /* 输入框适配 */
    .search-box input,
    .login-input {
        forced-color-adjust: none;
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    /* 链接适配 */
    a {
        forced-color-adjust: none;
        color: LinkText;
    }

    a:hover {
        color: HighlightText;
        background: Highlight;
    }

    /* 主题切换按钮适配 */
    .theme-switcher button {
        forced-color-adjust: none;
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    /* 禁用渐变和透明效果 */
    * {
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
    }
}

/* 移除所有-ms-前缀属性 */
* {
    forced-color-adjust: auto;
}

/* 添加现代化的高对比度支持 */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #000000;
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
        --accent-color: #0000ff;
    }
}

/* 其他样式保持不变... */

/* 移动端适配样式 */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .navbar {
        padding: 5px 10px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    /* 搜索框适配 */
    .search-box {
        width: 100%;
        margin: 10px 0;
    }

    .search-box input {
        width: 100%;
        font-size: 14px;
    }

    /* 导航按钮适配 */
    .nav-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-buttons .btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 侧边栏适配 */
    .sidebar {
        position: fixed;
        left: -220px;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
    }

    /* 添加汉堡菜单按钮 */
    .menu-toggle {
        display: block;
        position: fixed;
        left: 10px;
        top: 70px;
        z-index: 1002;
        background: var(--primary-color);
        border: none;
        border-radius: 4px;
        padding: 8px;
        color: var(--bg-color);
    }

    /* 主内容区域适配 */
    .main-content {
        margin-left: 0;
        padding: 10px;
        margin-top: 60px;
    }

    /* 卡片网格适配 */
    .api-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 卡片样式适配 */
    .api-card {
        margin: 0;
    }

    .api-card .cyber-text {
        font-size: 1.2rem;
    }

    .api-card .cyber-desc {
        font-size: 0.9rem;
    }

    /* 按钮适配 */
    .cyber-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* 主题切换按钮适配 */
    .theme-switcher {
        position: static;
    }

    .theme-dropdown {
        right: 0;
        left: auto;
    }

    /* 登录框适配 */
    .login-box {
        width: 90%;
        max-width: none;
        margin: 20px;
        padding: 20px;
    }

    .login-input {
        font-size: 14px;
        padding: 8px;
    }

    /* 每日内容适配 */
    .daily-content {
        padding: 10px;
    }

    .quote-text {
        font-size: 0.9rem;
    }

    .quote-translation {
        font-size: 0.8rem;
    }
}

/* 添加遮罩层样式 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

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