/* 引入霞鹜文楷字体 */
@font-face {
    font-family: 'LXGW WenKai';
    src: url('path/to/LXGWWenKai-Regular.ttf'); /* 请将此路径替换为你实际存放字体文件的路径 */
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'LXGW WenKai', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f9f9f9;
    font-size: 18px; /* 调大全局字号 */
}
/* 统一标题样式 */
.tabcontent h2 {
    font-size: 24px;
    color: #07c160;
    margin-bottom: 30px;
    text-align: center;
}
.tab {
    /* 顶部选项卡样式优化 */
    .tab {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid #eee;
        backdrop-filter: blur(5px);
    }
    .tab button {
        background-color: inherit;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 16px 24px;
        font-size: 20px;
        color: #333;
        transition: all 0.3s ease;
        position: relative;
        margin: 0 5px;
    }
    .tab button:hover {
        color: #07c160;
    }
    .tab button.active {
        color: #07c160;
        font-weight: 600;
    }
    .tab button.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #07c160;
        transition: transform 0.3s ease;
    }
    .tab button:hover::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #07c160;
        transform: scaleX(0.6);
    }
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
}
.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 20px; /* 调大选项卡按钮字号 */
    color: #333;
    transition: color 0.3s ease;
}
.tab button:hover {
    color: #07c160;
}
.tab button.active {
    color: #07c160;
    font-weight: 600;
}
/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 网站介绍内容样式 */
#intro h2 {
    font-size: 24px; /* 调大标题字号 */
    color: #07c160;
}

#intro p {
    line-height: 1.6; /* 调整段落行高，增强可读性 */
}

/* 搜索框样式 */
.search-box {
    text-align: center;
    margin: 40px 0;
}

.search-form input[type="text"] {
    padding: 12px 15px;
    width: 333px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 18px; /* 调大搜索框输入字号 */
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    border-color: #07c160;
}

.search-form button {
    padding: 12px 25px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px; /* 调大搜索按钮字号 */
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.search-form button:hover {
    background-color: #06a853;
}

/* 搜索选项卡样式 */
.search-tab {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-tab .tablinks {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 20px; /* 调大搜索选项卡按钮字号 */
    color: #666;
    transition: color 0.3s ease;
}

.search-tab .tablinks.active {
    color: #07c160;
    font-weight: 600;
    border-bottom: 2px solid #07c160;
}

.search-tab .tablinks:hover {
    color: #07c160;
}

/* 链接列表样式 */
#links ul {
    list-style-type: none;
    padding: 0;
}

/* 添加笔记内容样式 */
#notes {
    text-align: center;
    padding: 20px 0;
}

#notes h2 {
    font-size: 24px;
    color: #07c160;
    margin-bottom: 30px;
}
.nano-search {
    text-align: center;
    margin-top: 40px;
}

.nano-search img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nano-search img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}
#notes a:hover img {
    transform: scale(1.02);
}

#links li {
    margin-bottom: 10px;
}

#links a {
    color: #666; /* 调整为与搜索选项卡一致的颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px; /* 调整字体大小 */
}

#links a:hover {
    color: #07c160; /* 鼠标悬停时颜色 */
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 其他链接列表样式 */
#others ul {
    list-style-type: none;
    padding: 0;
    display: flex; /* 横向排列 */
}

#others li {
    margin-right: 20px; /* 调整间距 */
}

#others a {
    color: #666; /* 调整为与搜索选项卡一致的颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px; /* 调整字体大小 */
}

#others a:hover {
    color: #07c160; /* 鼠标悬停时颜色 */
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}
/* 其他资源卡片样式 */
#others .links-container ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

#others .links-container li {
    margin: 0;
}
.resource-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: linear-gradient(145deg, #f8fff9, #efffef);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(7, 193, 96, 0.08);
    transition: all 0.3s ease;
    height: 150px;  /* 增加高度以容纳图标 */
    border: 1px solid rgba(7, 193, 96, 0.1);
}

.resource-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-icon {
    width: 40px;
    height: 40px;
    margin-top: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.resource-card:hover .resource-icon {
    opacity: 1;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(7, 193, 96, 0.15);
    border-color: rgba(7, 193, 96, 0.3);
    background: linear-gradient(145deg, #f0fff2, #e8ffe9);
}

.resource-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #07c160;
}

.resource-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-desc {
    color: #07c160;
}.links-container {
    margin: 40px 0;
}

.links-container ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.links-container li {
    margin: 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.links-container li:hover {
    transform: translateY(-2px);
}

.links-container a {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    text-align: center;
}

.links-container a:hover {
    color: #07c160;
}

.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-link a {
    color: #07c160;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border: 1px solid #07c160;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background-color: #07c160;
    color: #fff;
}
/* 底部版权样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 14px;
    color: #666;
    backdrop-filter: blur(5px);
    z-index: 999;
}

footer a {
    color: #07c160;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #06a853;
}

/* 为了防止内容被固定定位的footer遮挡，给container添加底部间距 */
.container {
    margin-bottom: 60px;
}