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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f1f2f6;
}

header {
    background: linear-gradient(135deg, #ff4757, #ff7f50);
    color: #333;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
     color:  #ffffff;  /* 例如 #666666 */
}

/* 文件柜图标复 */
.tool-item i.fa-cabinet-filing {
    /* 使用其他合适的图标 */
    font-family: "Font Awesome 6 Free";
    content: "\f07b"; /* 使用文件夹图标 */
    color: #ffa502;
}

/* 可以替换为 */
.tool-item i.fa-folder {
    color: #ffa502;
}

/* 响应式调整 */
@media (max-width: 768px) {
    nav ul {
        justify-content: space-around;
    }
    
    nav ul li a {
        padding: 0.8rem 1rem;
    }
    
    nav ul li a i {
        font-size: 1.2rem;
    }
    
    nav ul li a span {
        font-size: 0.8rem;
    }
}

/* 添加导航项动画效果 */
@keyframes navItemFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li {
    animation: navItemFade 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}

.contact-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.social-links {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.social-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.social-item:hover {
    transform: translateY(-5px);
}

.social-item i {
    font-size: 1.5rem;
    color: #6e8efb;
}

.social-item a {
    color: #6e8efb;
    text-decoration: none;
}

.social-item a:hover {
    text-decoration: underline;
}

.douyin-link {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #fe2c55;
    color: white !important;
    border-radius: 5px;
    font-size: 0.9rem;
}

.douyin-link:hover {
    background: #e62a4d;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
    align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

/* 工具区域样式 */
.tools-section {
    padding: 3rem 2rem;
    background: #f9f9f9;
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.tool-category {
    background: white;
    border-radius: 20px;
    margin: 2rem auto;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.tool-category h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(241, 242, 246, 0.5);
    border-radius: 10px;
}

.tool-category h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

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

.tool-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 默认状态下的渐变边框 */
.tool-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #dd9898, #ff7402, #fffb00, #48ff00, 
        #00ffd5, #7f8fdd, #b286e2, #ec9ddb, #ee7e7e);
    background-size: 400%;
    z-index: -1;
    filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 悬停状态 */
.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tool-item:hover::before {
    opacity: 1;
    animation: glowing 20s linear infinite;
}

/* 发光动画 */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* 适配暗色模式 */
@media (prefers-color-scheme: dark) {
    .tool-item:hover {
        box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    }
}

/* 移动端优化 */
@media screen and (max-width: 480px) {
    .tool-item::before {
        filter: blur(3px); /* 减小模糊半径 */
    }
    
    .tool-item:hover {
        transform: translateY(-1px); /* 减小上移距离 */
    }
}

.tool-item i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #ff4757;
    transition: all 0.3s ease;
}

.tool-item:hover i {
    transform: scale(1.1);
}

.tool-item span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #2f3542;
    margin-top: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.tool-category h3 {
    color: #2f3542;
    margin: 2rem 0 1.5rem 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-category h3 i {
    color: #ff4757;
}

.tool-item i.fa-weixin { color: #07C160; }
.tool-item i.fa-qq { color: #12B7F5; }
.tool-item i.fa-steam { color: #171a21; }
.tool-item i.fa-film { color: #E50914; }
.tool-item i.fa-music { color: #1DB954; }
.tool-item i.fa-book-open { color: #FF6B6B; }
.tool-item i.fa-search { color: #4285F4; }
.tool-item i.fa-file { color: #FFA502; }
.tool-item i.fa-robot { color: #575FCF; }

.tool-item:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .tool-item {
        padding: 1rem;
        min-height: 100px;
    }

    .tool-item i {
        font-size: 1.5rem;
    }

    .tool-item span {
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
footer {
    background: #2f3542;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 联系方式容器样式 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 单个联系方式项样 */
.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 图标样式 */
.contact-item i {
    font-size: 1.2rem;
    color: #ff4757;
}

/* 文字样式 */
.contact-item span,
.contact-item a {
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
}

/* 链接悬停效果 */
.contact-item a:hover {
    color: #ff4757;
    text-decoration: none;
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 响应式整 */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    align-items: center;
        gap: 1rem;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 特定社交平台图标颜色 */
.contact-item i.fa-weixin { color: #07C160; }
.contact-item i.fa-qq { color: #12B7F5; }
.contact-item i.fa-tiktok { color: #ff0050; }
.contact-item i.fa-weibo { color: #E6162D; }
.contact-item i.fa-telegram { color: #0088cc; }

/* 添加一些新的图标样式 */
.tool-item i.fa-weixin {
    color: #07C160;
}

.tool-item i.fa-steam {
    color: #171a21;
}

.tool-item i.fa-car {
    color: #4A90E2;
}

/* 为软件工具分类添加特殊样式 */
.tool-category:nth-child(odd) {
    background: linear-gradient(to right bottom, white, #f8f9fa);
}

.tool-category:nth-child(even) {
    background: linear-gradient(to right bottom, #f8f9fa, white);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-category {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 分类特殊样式 */
.tool-category:nth-child(2) {
    background: linear-gradient(to right bottom, #ffffff, #f8f9fa);
}

/* 优化工 */
.tool-item:hover {
    background: white;
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 添加滚动行为相关样式 */
html {
    scroll-behavior: smooth;
}

/* 确保footer滚动足够的空间 */
footer {
    scroll-margin-top: 2rem; /* 确保滚动到footer时有适当的上边距 */
}

/* 优化导航链接的活跃状态 */
nav ul li a.active {
    color: #ff4757;
}

/* 添加滚动指示器 */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ff4757;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(255,71,87,0.3);
}

.scroll-indicator.visible {
    opacity: 1;
}

/* 添加当前位置指示器 */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ff4757;
    transition: width 0.3s;
}

nav ul li a.active::after {
    width: 100%;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ff4757;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255,71,87,0.3);
    z-index: 1000;
}

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

.back-to-top:hover {
    background: #ff6b81;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255,71,87,0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 首页导航项特殊效果 */
nav ul li a.scroll-to-top {
    position: relative;
    overflow: hidden;
}

nav ul li a.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,71,87,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

nav ul li a.scroll-to-top:hover::before {
    transform: translateX(0);
}

/* 当页面在顶部时，首页导航项的特殊样式 */
nav ul li a.scroll-to-top.active {
    color: #ff4757;
}

nav ul li a.scroll-to-top.active i {
    transform: scale(1.1);
}

/* 优化移动显示 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* 暗色模式样式 */
.dark-mode {
    background-color: #1a1b1e !important;
    color: #e0e0e0 !important;
}

/* 头部暗色模式 */
.dark-mode header {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: #ffffff;
}

/* 导航栏暗色模式 */
.dark-mode nav {
    background-color: #2d2f34 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dark-mode nav ul li a {
    color: #e0e0e0 !important;
}

.dark-mode nav ul li a:hover {
    background: rgba(255,255,255,0.05);
}

/* 工具区域暗色模式 */
.dark-mode .tools-section {
    background-color: #1a1b1e !important;
}

.dark-mode .tool-category {
    background-color: #2d2f34 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.dark-mode .tool-category:nth-child(odd) {
    background: linear-gradient(to right bottom, #2d2f34, #32343a) !important;
}

.dark-mode .tool-category:nth-child(even) {
    background: linear-gradient(to right bottom, #32343a, #2d2f34) !important;
}

.dark-mode .tool-item {
    background-color: #3a3d44 !important;
    color: #e0e0e0 !important;
    border: 1px solid #454950;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dark-mode .tool-item:hover {
    background-color: #454950 !important;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}

.dark-mode .tool-item span {
    color: #e0e0e0;
}

/* 标题暗色模式 */
.dark-mode h2,
.dark-mode h3 {
    color: #e0e0e0 !important;
}

.dark-mode .tool-category h3 {
    background: rgba(0,0,0,0.2);
}

/* 页脚暗色模式 */
.dark-mode footer {
    background-color: #2d2f34 !important;
}

.dark-mode .contact-item {
    background: rgba(255,255,255,0.05);
}

.dark-mode .contact-item:hover {
    background: rgba(255,255,255,0.08);
}

/* 返回顶部按钮暗色模式 */
.dark-mode .back-to-top {
    background: #6366f1;
    box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}

.dark-mode .back-to-top:hover {
    background: #818cf8;
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}


.tool-item i.fa-bookmark { color: #e44545; }

.dark-mode .tool-item i.fa-bookmark { color: #ffffff; }




/* 图标颜色保持不变，让它们更醒目 */
.dark-mode .tool-item i.fa-weixin { color: #07C160; }
.dark-mode .tool-item i.fa-qq { color: #12B7F5; }
.dark-mode .tool-item i.fa-steam { color: #ffffff; }
.dark-mode .tool-item i.fa-film { color: #E50914; }
.dark-mode .tool-item i.fa-music { color: #1DB954; }
.dark-mode .tool-item i.fa-book-open { color: #FF6B6B; }
.dark-mode .tool-item i.fa-search { color: #4285F4; }
.dark-mode .tool-item i.fa-file { color: #FFA502; }
.dark-mode .tool-item i.fa-robot { color: #818cf8; }

/* 平滑过渡 */
body,
header,
nav,
.tool-category,
.tool-item,
footer,
h2,
h3,
.back-to-top {
    transition: all 0.3s ease;
}

/* 响应式计优 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tool-item {
        padding: 1.2rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }
}

/* 手机设备 (小 768px) */
@media (max-width: 768px) {
    /* 导航栏调整 */
    .nav-container {
        padding: 0 1rem;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }

    nav ul li a {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    nav ul li a i {
        font-size: 1.2rem;
    }

    /* 头部调整 */
    header {
        padding: 2rem 0;
    }

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

    .subtitle {
        font-size: 1rem;
    }

    /* 工具区域调整 */
    .tools-section {
        padding: 2rem 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .tool-item {
        padding: 1rem;
        min-height: 90px;
    }

    .tool-item i {
        font-size: 1.5rem;
    }

    .tool-item span {
        font-size: 0.85rem;
    }

    /* 分类标题调整 */
    .tool-category h3 {
        font-size: 1.1rem;
        margin: 1rem 0 1rem 0.5rem;
    }

    /* 页脚调 */
    .contact-info {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
}

/* 小屏手机 (小 480px) */
@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-item {
        min-height: 80px;
    }

    nav ul li a span {
        font-size: 0.7rem;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* 横屏模式优 */
@media (max-height: 480px) and (orientation: landscape) {
    header {
        padding: 1rem 0;
    }

    nav ul {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* 大屏设备优化 */
@media (min-width: 1440px) {
    .tools-section,
    .nav-container,
    .footer-content {
        max-width: 1400px;
        margin: 0 auto;
    }

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

/* 确保内容不会太宽 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 添加摸设备的优化 */
@media (hover: none) {
    .tool-item:hover {
        transform: none;
    }

    .contact-item:hover {
        transform: none;
    }
}

/* 搜索包装器 */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box i {
    color: #ff4757;
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

#toolSearch {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

/* 搜索结果样式 */
.search-result {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result.active {
    display: block;
}

.search-result-item {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #fff3f3;
    color: #ff4757;
}

.search-result-item.no-result {
    color: #ff4757;
    text-align: center;
    cursor: default;
}

/* 工具高亮效果 */
.tool-item.highlight {
    animation: highlight-pulse 1.5s ease-in-out;
    background-color: #fff3f3;
    border-color: #ff4757;
}

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

/* 暗色模式适配 */
.dark-mode .search-box,
.dark-mode .search-result {
    background: #2d2f34;
}

.dark-mode #toolSearch {
    color: #e0e0e0;
}

.dark-mode .search-result-item {
    border-bottom-color: #3a3d44;
}

.dark-mode .search-result-item:hover {
    background-color: #3a3d44;
    color: #ff4757;
}

/* 时钟容器样式 */
.clock-container {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* 时钟表盘样式 */
.clock-face {
    width: 80px;
    height: 80px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 指针样式 */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 4px;
    transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hour-hand {
    width: 2px;
    height: 20px;
    background: #ff4757;
    margin-left: -1px;
}

.minute-hand {
    width: 2px;
    height: 25px;
    background: #2f3542;
    margin-left: -1px;
}

.second-hand {
    width: 1px;
    height: 30px;
    background: #ff6b81;
    margin-left: -0.5px;
}

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 日期器样式 */
.date-container {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#gregorianDate {
    font-size: 1.2rem;
    font-weight: 500;
}

#lunarDate {
    font-size: 1rem;
    opacity: 0.95;
}

#weekDay {
    font-size: 1rem;
    opacity: 0.9;
}

#digitalTime {
    font-size: 1.1rem;
    font-family: 'Monaco', monospace;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* 天气信息样 */
.weather-info {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 标题区域样式 */
.header-content {
    position: relative;
    z-index: 0;
    padding-top: 3rem;
}

/* 响应调 */
@media (max-width: 1024px) {
    .clock-container {
        transform: translateY(-50%) scale(0.9);
        transform-origin: left center;
    }
    
    .weather-info {
        transform: translateY(-50%) scale(0.9);
        transform-origin: right center;
    }
}

@media (max-width: 768px) {
    .clock-container, .weather-info {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        margin: 1rem auto;
        width: fit-content;
    }
    
    header {
        padding-top: 1rem;
    }
    
    .header-content {
        padding-top: 1rem;
    }
}

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

/* 工具分类样式 */
.tool-category {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tool-category h3 {
    color: #2f3542;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.tool-category h3 i {
    margin-right: 0.8rem;
    color: #ff4757;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* 工具项样式 */
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #2f3542;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tool-item i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #ff4757;
}

.tool-item span {
    font-size: 0.9rem;
    text-align: center;
}

/* 特定图标颜色 */
.tool-item i.fa-file { color: #ffa502; }
.tool-item i.fa-exchange-alt { color: #2ed573; }
.tool-item i.fa-cloud-upload-alt { color: #1e90ff; }
.tool-item i.fa-folder { color: #ffa502; }
.tool-item i.fa-images { color: #20bf6b; }
.tool-item i.fa-video { color: #ff4757; }
.tool-item i.fa-search { color: #2f3542; }
.tool-item i.fa-book { color: #ff6b81; }
.tool-item i.fa-play-circle { color: #ff4757; }
.tool-item i.fa-gamepad { color: #5352ed; }
.tool-item i.fa-palette { color: #2ed573; }
.tool-item i.fa-robot { color: #1e90ff; }
.tool-item i.fa-desktop { color: #2f3542; }
.tool-item i.fa-tools { color: #ff4757; }

/* 暗色模式适配 */
.dark-mode .tool-category {
    background: #2d2d2d;
}

.dark-mode .tool-category h3 {
    color: #ffffff;
}

.dark-mode .tool-item {
    background: #363636;
    color: #ffffff;
}

.dark-mode .tool-item:hover {
    background: #454950;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 响应式布 */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

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

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .tool-item {
        padding: 1rem;
    }

    .tool-item i {
        font-size: 1.5rem;
    }

    .tool-item span {
        font-size: 0.8rem;
    }
}

/* 搜索框样式 */
.search-wrapper {
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box i {
    color: #2f3542;
    margin-right: 0.8rem;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #2f3542;
}

/* 搜索结果样式 */
.search-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.search-result.active {
    display: block;
}

.search-result-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.search-result-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 暗色模式搜索框适配 */
.dark-mode .search-box,
.dark-mode .search-result {
    background: #2d2d2d;
}

.dark-mode .search-box input {
    background: transparent;
    color: #ffffff;
}

.dark-mode .search-box i {
    color: #ffffff;
}

.dark-mode .search-result-item:hover {
    background: #363636;
}

/* 具高亮动 */
@keyframes highlight {
    0% { background: rgba(255,71,87,0.2); }
    100% { background: #f8f9fa; }
}

.tool-item.highlight {
    animation: highlight 2s ease;
}

.dark-mode .tool-item.highlight {
    animation: highlightDark 2s ease;
}

@keyframes highlightDark {
    0% { background: rgba(255,71,87,0.2); }
    100% { background: #363636; }
} 

html {
    scroll-behavior: smooth;
}

/* 为了防止导航栏遮挡内容，给每个分类添加上边距 */
.tool-category {
    scroll-margin-top: 70px; /* 根导航栏高度调整 */
} 

/* 响应式布局调整 */
@media screen and (max-width: 768px) {
    /* 整体缩放 */
    html {
        font-size: 14px; /* 基础字体缩 */
    }

    /* 导栏调整 */
    .nav-container {
        padding: 0 0.5rem;
    }

    nav ul {
    display: flex;
        flex-wrap: wrap; /* 允许换行 */
        justify-content: center;
        gap: 0.3rem;
        padding: 0.3rem;
    }

    nav ul li {
        flex: 0 0 calc(20% - 0.3rem); /* 每行5个项目 */
        padding: 0.3rem;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    display: flex;
        flex-direction: column;
    align-items: center;
        text-align: center;
    }

    nav ul li a i {
        font-size: 1rem;
        margin: 0 0 0.2rem 0;
    }

    /* 工具网格调整 */
    .tools-grid {
        grid-template-columns: repeat(4, 1fr); /* 每行4个工具 */
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .tool-item {
        padding: 0.8rem 0.5rem;
    }

    .tool-item i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .tool-item span {
        font-size: 0.7rem;
    }

    /* 分类标题调整 */
    .tool-category h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .tool-category {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* 更小屏幕的调整 */
@media screen and (max-width: 480px) {
    nav ul li {
        flex: 0 0 calc(25% - 0.3rem); /* 每行4个项 */
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr); /* 每行3个工具 */
    }

    .tool-item {
        padding: 0.6rem 0.4rem;
    }
}

/* 超小屏幕的调整 */
@media screen and (max-width: 360px) {
    nav ul li {
        flex: 0 0 calc(33.33% - 0.3rem); /* 每行3个项目 */
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr); /* 每行2个工具 */
    }
}

/* 搜索框响应式调整 */
@media screen and (max-width: 768px) {
    .search-box {
        padding: 0.5rem 0.8rem;
    }

    .search-box input {
        font-size: 0.9rem;
    }

    .search-result-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
} 

/* 移动端布局 */
@media screen and (max-width: 768px) {
    /* 确保时钟和天气板块都被隐藏 */
    .clock-container,
    .weather-container,
    .header-widgets,  /* 添加父容器 */
    #weather-widget,  /* 添加气组件ID */
    .weather-info {   /* 添加天气信类 */
        display: none !important; /* 使用!important确保隐 */
    }

    /* 调整标题布局 */
    header {
        display: block;
        padding: 1rem;
    }

    .header-content {
        text-align: center;
        padding: 0.5rem;
    }

    .header-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

.special-menu-items .theme-toggle {
    position: relative;
}

/* 主题切换图标的定位和显示 */
.special-menu-items .sun-icon,
.special-menu-items .moon-icon {
    position: absolute;     /* 绝对定位 */
    top: 50%;              /* 垂直居中 */
    left: 50%;             /* 水平居中 */ 
    transform: translate(-70%, -50%);  /* 精确居中定位 */
    opacity: 1 !important; /* 强制显示,防止被其他样式覆盖 */
    margin: 0 11px;        /* 水平间距 */
    
}

/* 可以通过暗色模式来控制图标的颜色或其他样式 */
.dark-mode .special-menu-items .sun-icon {
    color: #fff;
}

.dark-mode .special-menu-items .moon-icon {
    color: #fff;
}

/* 更小屏幕的优化 */
@media screen and (max-width: 360px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }
} 

/* 移动端导航栏布局 */
@media screen and (max-width: 768px) {
    /* 导航栏容器 */
    nav {
        position: sticky;
        top: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0;
    }

    /* 导航列表 - 两五个局 */
    nav ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* 5列 */
        grid-template-rows: repeat(2, auto);    /* 2行 */
        gap: 0.5rem;
        padding: 0.5rem;
        margin: 0;
    }

    /* 导航项目样式 */
    nav ul li {
        padding: 0;
    }

    nav ul li a {
    display: flex;
        flex-direction: column;
    align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
        white-space: nowrap; /* 防止文字换行 */
    }

    nav ul li a i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    /* 确保第二行对齐 */
    nav ul li:nth-child(n+6) {
        margin-top: 0;
    }
}

/* 更小屏幕的优化 */
@media screen and (max-width: 360px) {
    nav ul li a {
        font-size: 0.75rem;
    }

    nav ul li a i {
        font-size: 1.1rem;
    }
} 

/* 工具项基础样式 */
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #2f3542;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tool-item i {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ff4757;
}

.tool-item span {
    font-size: 0.9rem;
    text-align: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .tool-item {
        padding: 0.8rem 0.5rem;
    }

    .tool-item i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .tool-item span {
        font-size: 0.8rem;
    }
}

/* 暗色模式适配 */
.dark-mode .tool-item {
    background: #2d2d2d;
    color: #ffffff;
}

.dark-mode .tool-item:hover {
    background: #363636;
} 

/* 特别为AI PPT工添加的样式 */
.tool-item .fa-file-powerpoint {
    color: #ff4757; /* 保持与其他图标一致的颜色 */
}

/* 如果需要特别的悬停效果 */
.tool-item:hover .fa-file-powerpoint {
    color: #ff6b81; /* 悬停时的颜色变化 */
} 

/* 标题布局 */
.header-content {
    text-align: center;
}

.header-content h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    /*color: #333;  /* 默认黑色 */
    transition: all 0.5s ease;
}

/* 音乐图标样式 */
.radio-icon {
    cursor: pointer;
    display: inline-block;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.radio-icon.playing i {
    animation: spin 2s linear infinite;
}

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

/* 播放时的动画效果 */
.radio-icon.playing i {
    animation: spin 2s linear infinite;
}

/* 播放标题文字颜色变化 */
h1#mainTitle.playing {
    animation: titleColorChange 2s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 图标颜色动画 */
@keyframes iconColorChange {
    0% { color: #ff4757; }   /* 色 */
    25% { color: #2ecc71; }  /* 绿色 */
    50% { color: #3498db; }  /* 蓝色 */
    75% { color: #f1c40f; }  /* 黄色 */
    100% { color: #ff4757; } /* 回到红色 */
}

/* 标题颜色动画 - 只在红色和白色之间切换 */
@keyframes titleColorChange {
    0% { color: #ff4757; }   /* 红色 */
    50% { color: #ffffff; }  /* 白色 */
    100% { color: #ff4757; } /* 回到红色 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .radio-icon {
        margin-left: 0.8rem;
    }
    .radio-icon i {
        font-size: 1.5rem;
    }
}

/* 雪花样式 */
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    z-index: 9999; /* 确保在最顶层 */
    pointer-events: none;
    animation: snowfall linear infinite;
}

/* 雪花飘落动画 */
@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg) translateX(0);
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(15px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(0);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(-15px);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(0);
    }
}

/* 开关按钮样式 */
.snow-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.snow-toggle i {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.snow-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.snow-toggle.active i {
    color: #3498db;
}

/* 小容器样式 */
.dog-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dog-sprite {
    animation: dogWalk 20s linear infinite;
}

.dog-body {
    width: 40px;
    height: 20px;
    background: white;
    border-radius: 20px;
    position: relative;
    box-shadow: 
        -2px -2px 4px rgba(255,255,255,0.5) inset,
        2px 2px 4px rgba(0,0,0,0.1) inset;
    /* 添加毛发效 */
    &::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: white;
        border-radius: 22px;
        filter: blur(2px);
        opacity: 0.7;
    }
}

.dog-head {
    width: 20px;
    height: 15px;
    background: white;
    border-radius: 50%;
    position: absolute;
    right: -10px;
    top: -5px;
}

.dog-head::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    top: 5px;
    right: 4px;
    animation: blink 4s infinite;
}

/* 眨眼动画 */
@keyframes blink {
    0%, 96%, 98% {
        transform: scaleY(1);
    }
    97% {
        transform: scaleY(0.1);
    }
}

.dog-ear {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    right: -5px;
    top: -10px;
}

.dog-tail {
    width: 15px;
    height: 8px;
    background: white;
    border-radius: 4px;
    position: absolute;
    left: -10px;
    top: 5px;
    transform-origin: right;
    animation: tailWag 0.5s infinite;
    /* 添加毛发效果 */
    &::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: white;
        border-radius: 6px;
        filter: blur(1px);
        opacity: 0.8;
    }
}

.dog-leg {
    width: 4px;
    height: 10px;
    background: white;
    position: absolute;
    bottom: -8px;
    border-radius: 2px;
    transform-origin: top;
}

.leg1 { left: 5px; animation: frontLegMove 0.5s infinite; }
.leg2 { left: 15px; animation: backLegMove 0.5s infinite; }
.leg3 { right: 15px; animation: frontLegMove 0.5s infinite; }
.leg4 { right: 5px; animation: backLegMove 0.5s infinite; }

@keyframes tailWag {
    0%, 100% { 
        transform: rotate(-10deg) scaleX(0.9); 
    }
    50% { 
        transform: rotate(10deg) scaleX(1.1); 
    }
}

@keyframes frontLegMove {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

@keyframes backLegMove {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes dogWalk {
    0% { transform: translateX(-50vw) rotateY(0deg); }
    49% { transform: translateX(50vw) rotateY(0deg); }
    50% { transform: translateX(50vw) rotateY(180deg); }
    99% { transform: translateX(-50vw) rotateY(180deg); }
    100% { transform: translateX(-50vw) rotateY(0deg); }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .dog-container .dog-sprite {
        font-size: 2rem;
    }
}

/* 收藏按钮样式 */
.favorite-toggle {
    position: fixed;
    right: 20px;
    top: 70px;  /* 在花按下方 */
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.favorite-toggle i {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.favorite-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.favorite-toggle.active i {
    color: #ff6b81;
}

/* 工具卡片收藏按钮 */
.tool-item {
    position: relative;
}

.tool-item .favorite-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #ddd;  /* 默认浅灰色 */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.tool-item .favorite-heart:hover {
    transform: scale(1.1);
}

.tool-item .favorite-heart.active {
    color: #ff6b81;  /* 点击后变为红色 */
}

/* 移除了 .active 的样式，这样爱心就始终保持灰色 */

/* 暗色模式下的样式 */
.dark-mode .favorite-heart {
    color: #fff;
}

.dark-mode .favorite-heart.active {
    color: #ff6b81;
}

/* 收藏列表样式 */
.favorite-list {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    width: 400px; /* 默认宽度 */
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.favorite-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color, #333);
}

/* 修改关闭按钮样式 */
.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 12px 15px; /* 增加左右内边距 */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 调整内容布局 */
    transition: all 0.3s ease;
}

.favorite-item span {
    flex-grow: 1;
    margin: 0 10px;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出显示省略号 */
}

.remove-favorite {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

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

.tools-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 800px;
    padding: 0 1rem;
    gap: 3rem;
}

.tools-header h2 {
    margin: 0;
    text-align: center;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.snow-btn i {
    color: #3498db;
}

.favorite-btn i {
    color: #ff4757;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .tools-header {
        padding: 0 0.5rem;
    }

    .control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .control-btn i {
        font-size: 0.9rem;
    }
    
    .control-btn span {
        display: none; /* 在移动端隐藏按钮文字，只显示图标 */
    }
}

/* 按钮暗色模式 */
.dark-mode .control-btn {
    background: #2d2f34;
    color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dark-mode .control-btn:hover {
    background: #3a3c42;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-mode .control-btn.active {
    background: #3a3c42;
}

/* 保持图标颜色不变 */
.dark-mode .snow-btn i {
    color: #3498db;
}

.dark-mode .favorite-btn i {
    color: #ff4757;
}
/* 按钮容器样式 */
.header-buttons {
    display: flex;
    gap: 10px;  /* 按钮之间的间距 */
}

/* 添加工具按钮样式 */
.add-tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;  /* 绿色背景 */
    color: white;
    cursor: pointer;
    text-decoration: none;  /* 移除下划线 */
    transition: background-color 0.3s;
}

.add-tool-btn:hover {
    background: #45a049;
}

.add-tool-btn i {
    font-size: 14px;
}


.copyright {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

.copyright p {
    margin: 5px 0;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}


.tool-item svg {
    vertical-align: middle;
    width: 24px;
    height: 24px;
    margin: 0 5px;
    /* 如果需要可以添加过渡效果 */
    transition: transform 0.2s;
}

/* 如果需要悬停效果 */
.tool-item:hover svg {
    transform: scale(1.1);
}

#mainTitle {
    color: white; /* 确保标题颜色为白色 */
}



@media (max-width: 768px) {
    .mobile-logo {
        display: block !important;
    }
    .desktop-logo {
        display: none !important;
    }
}

.favorite-item i:not(.fa-times) {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--icon-color, #666);
}

/* 手机端适配 */
@media screen and (max-width: 480px) {
    .favorite-list {
        width: 90%; /* 使用百分比宽度 */
        height: auto;
        max-height: 90vh;
        padding: 15px;
        margin: 10px;
    }

    .favorite-header {
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    .favorite-header h3 {
        font-size: 16px;
    }

    .favorite-item {
        padding: 10px;
        margin-bottom: 8px;
    }

    .favorite-item span {
        font-size: 14px;
    }

    .close-btn {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }

    .remove-favorite {
        width: 20px;
        height: 20px;
    }

    /* 确保内容不会溢出屏幕 */
    .favorite-content {
        max-height: calc(90vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* 为iOS添加平滑滚动 */
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
    .favorite-list {
        width: 95%;
        padding: 12px;
    }

    .favorite-item {
        padding: 8px;
    }

    .favorite-item span {
        font-size: 13px;
    }
}

