/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

:root {
    --primary-color: #42b983;
    --primary-light: #e9f5ef;
    --secondary-color: #34495e;
    --text-color: #2c3e50;
    --text-light: #4e6e8e;
    --border-color: #eaecef;
    --bg-color: #fff;
    --bg-light: #f8f8f8;
    --shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.1);
    --header-height: 64px; /* 定义header高度变量 */
}

html {
    scroll-padding-top: var(--header-height); /* 为整个页面添加滚动内边距 */
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 顶部搜索区域 */
header {
    background-color: var(--bg-color);
    padding: 15px 25px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: var(--header-height); /* 使用变量确保一致性 */
}

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

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 185, 131, 0.2);
}

#searchButton {
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #3da776;
}

/* 搜索结果计数器 */
.search-results-count {
    width: 100%;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 14px;
    display: none;
}

/* 搜索结果导航 */
.search-nav {
    display: flex;
    width: 100%;
    margin-top: 8px;
    gap: 10px;
}

.search-nav button {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-nav button:hover {
    background-color: var(--primary-light);
}

/* 手机端搜索样式优化 */
@media screen and (max-width: 768px) {
    .search-container {
        padding: 0 10px;
    }
    
    #searchInput {
        width: calc(100% - 70px);
        font-size: 14px;
        padding: 8px 12px;
    }
    
    #searchButton {
        width: 60px;
        padding: 8px 0;
        margin-left: 10px;
        font-size: 14px;
    }
    
    .search-results-count {
        font-size: 13px;
        margin-top: 5px;
        text-align: center;
    }
    
    .search-nav {
        margin-top: 5px;
        justify-content: center;
    }
    
    .search-nav button {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* 主内容区布局 */
.main-content {
    display: flex;
    margin-top: var(--header-height); /* 使用变量 */
    width: 100%;
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    background-color: var(--bg-color);
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: var(--header-height); /* 使用变量 */
    left: 0;
    height: calc(100vh - var(--header-height)); /* 使用变量 */
    overflow-y: auto;
    z-index: 90;
}

.sidebar h2 {
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 18px;
}

.menu {
    list-style: none;
}

.menu li {
    margin: 2px 0;
}

.menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 15px;
}

.menu a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-left-color: var(--primary-color);
}

.menu a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 二级菜单样式 */
.has-submenu > a {
    position: relative;
}

.has-submenu > a:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.has-submenu.active > a:after {
    content: "-";
}

.submenu {
    display: none;
    list-style: none;
    background-color: #f9f9f9;
    overflow: hidden;
}

.has-submenu.active .submenu {
    display: block;
}

.submenu a {
    padding-left: 40px;
    font-size: 14px;
}

/* 内容区域样式 */
.content {
    flex: 1;
    padding: 30px 30px 60px; /* 修改：将左右内边距调整为30px */
    margin-left: 300px;
    min-height: calc(100vh - var(--header-height)); /* 使用变量 */
}

.content h1 {
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 28px;
    font-weight: 600;
}

.introduction {
    background-color: var(--primary-light);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    color: var(--text-color);
    line-height: 1.7;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: var(--text-color);
    margin: 35px 0 20px;
    padding-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-top: 20px;
}

section h3 {
    color: var(--text-color);
    margin: 25px 0 15px;
    font-size: 18px;
    font-weight: 600;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    padding-top: 10px;
}

section p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

section ul, section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

section li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* 高亮搜索结果 */
.highlight {
    background-color: rgba(255, 220, 40, 0.4);
    padding: 2px 4px;
    border-radius: 2px;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list .article-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.5;
}

.article-list .article-link i {
    margin-right: 10px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.article-list li:hover {
    background-color: var(--primary-light);
}

.article-list li:hover .article-link {
    color: var(--primary-color);
    padding-left: 25px;
}

.article-list li:hover .article-link i {
    transform: scale(1.2);
}

/* 文章分类表格样式 */
.article-categories {
    margin: 30px 0;
    background-color: var(--bg-color);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-categories h3 {
    margin-top: 0;
    padding: 20px;
    background-color: var(--primary-light);
    color: var(--text-color);
    font-size: 18px;
    text-align: center;
    border-left: none;
}

.category-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: var(--primary-light);
}

.category-content {
    padding: 20px;
}

.tab-content {
    display: none;
}

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

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-table th {
    padding: 12px 15px;
    background-color: #f5f7fa;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
}

.article-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.article-table tr:hover {
    background-color: #f9f9f9;
}

.article-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.article-link:hover {
    color: var(--primary-color);
}

.view-more {
    text-align: center;
    padding: 10px 0 25px 0;
}

/* 图片相关样式 */
.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

figure {
    margin: 25px 0;
    text-align: center;
}

figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* 可滚动长图容器样式 */
.scrollable-image-container {
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 15px;
    max-width: 600px; /* 限制最大宽度 */
    width: 90%; /* 响应式宽度 */
}

.image-title {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.image-scroll-box {
    height: 650px; /* 增加高度 */
    overflow-y: auto; /* 允许垂直滚动 */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    position: relative;
    background: #f9f9f9;
    padding: 5px;
}

.scrollable-image {
    width: 100%;
    display: block;
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

/* 美化滚动条样式 */
.image-scroll-box::-webkit-scrollbar {
    width: 10px;
}

.image-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.image-scroll-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.image-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #3da776;
}

.image-link {
    display: inline-block;
    position: relative;
    margin: 20px 0;
    text-decoration: none;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-link:hover .zoom-hint {
    opacity: 1;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.gallery-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-item span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
}

/* 链接相关样式 */
.page-link, .external-link, .icon-link, .download-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s;
}

.page-link:hover, .external-link:hover, .icon-link:hover, .download-link:hover {
    color: #3da776;
    border-bottom-color: #3da776;
}

.external-link::after {
    content: "\f08e";
    font-family: FontAwesome;
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: super;
}

.icon-link i, .download-link i {
    margin-right: 5px;
}

.button-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 10px 0;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button-link:hover {
    background-color: #3da776;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .sidebar {
        width: 250px;
    }
    
    .content {
        margin-left: 250px;
    }
    
    .image-gallery {
        flex-direction: column;
    }
    
    .interactive-grid,
    .resources-grid {
        grid-gap: 20px; /* 修改：在较小屏幕上减小间距 */
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .content {
        margin-left: 0;
        padding: 20px 15px; /* 修改：在移动设备上左右内边距更小 */
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .interactive-grid,
    .resources-grid {
        grid-gap: 15px; /* 修改：在移动设备上进一步减小网格间距 */
    }
}

/* 文章表格样式 - 优化版 */
.article-table-simple {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-table-simple th {
    padding: 15px 20px;
    background-color: var(--primary-light);
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.article-table-simple td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-table-simple tr:last-child td {
    border-bottom: none;
}

.article-table-simple tr:hover {
    background-color: var(--primary-light);
}

.article-table-simple .article-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.article-table-simple .article-title i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.article-table-simple .article-title:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.article-table-simple .article-title:hover i {
    transform: scale(1.2);
}

/* 漫画财审9宫格导航样式 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin: 30px 0;
}

.comic-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.comic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comic-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #f5f5f5;
    border-bottom: 2px solid var(--primary-light);
}

.comic-title {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

.comic-title:hover {
    color: var(--primary-color);
}

/* 交互系统四宫格样式 */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin: 30px auto;
    max-width: 70%; /* 修改：从80%减小到70%，进一步缩小尺寸 */
}

.interactive-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 调整阴影更加柔和 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border: 1px solid #e0e0e0; /* 添加浅灰色边框 */
}

/* 创建长方形容器 - 与资料文库一致 */
.interactive-item::before {
    content: "";
    display: block;
    padding-top: 65%; /* 16:10比例的长方形，与资料文库一致 */
}

.interactive-item:hover {
    transform: translateY(-3px); /* 减小悬停上移距离 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* 悬停时阴影更加明显但仍然柔和 */
}

/* 内容容器，绝对定位填充整个长方形 */
.interactive-item-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.interactive-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-bottom: none; /* 移除重复的底部边框 */
}

.interactive-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

.interactive-title {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.interactive-item:hover .interactive-title {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 900px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .comic-grid {
        grid-template-columns: 1fr;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.qrcode-content {
    position: relative;
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 30px;
    width: auto;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

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

.qrcode-content h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 20px;
}

.qrcode-content p {
    margin: 15px 0;
    color: var(--text-light);
}

.qrcode-image {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border: 1px solid var(--border-color);
    padding: 5px;
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* 资料文库四宫格样式 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin: 30px auto;
    max-width: 70%; /* 修改：从80%减小到70%，进一步缩小尺寸 */
}

.resources-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 调整阴影更加柔和 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border: 1px solid #e0e0e0; /* 添加浅灰色边框 */
}

/* 创建长方形容器 */
.resources-item::before {
    content: "";
    display: block;
    padding-top: 65%; /* 16:10比例的长方形 */
}

.resources-item:hover {
    transform: translateY(-3px); /* 减小悬停上移距离 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* 悬停时阴影更加明显但仍然柔和 */
}

/* 内容容器，绝对定位填充整个长方形 */
.resources-item-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.resources-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-bottom: none; /* 移除重复的底部边框 */
}

.resources-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

.resources-title {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.resources-item:hover .resources-title {
    color: #d4a017; /* 不同的悬停文字颜色 */
}

/* 响应式调整 */
@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* CPA题库六宫格样式 */
.cpa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 使用3列布局，形成六宫格 */
    grid-gap: 20px;
    margin: 30px auto;
    max-width: 85%; /* 略宽于四宫格，以便更好地容纳3列 */
}

.cpa-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border: 1px solid #e0e0e0;
}

/* 创建长方形容器 */
.cpa-item::before {
    content: "";
    display: block;
    padding-top: 65%; /* 16:10比例的长方形 */
}

.cpa-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* 内容容器，绝对定位填充整个长方形 */
.cpa-item-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.cpa-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-bottom: none;
}

.cpa-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

.cpa-title {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.cpa-item:hover .cpa-title {
    color: #4e6e8e; /* 深蓝色调悬停文字颜色 */
}

/* 响应式调整 */
@media (max-width: 900px) {
    .cpa-grid {
        grid-template-columns: repeat(2, 1fr); /* 在中等屏幕上改为2列 */
    }
}

@media (max-width: 600px) {
    .cpa-grid {
        grid-template-columns: 1fr; /* 在小屏幕上改为1列 */
    }
}

/* 平台二宫格样式 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
    max-width: 70%; /* 修改：从80%减小到70%，与资料文库一致 */
    margin: 35px auto;
}

.platform-item {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 调整：更柔和的阴影效果 */
    border: 1px solid #e0e0e0; /* 修改：与资料文库一致的边框颜色 */
    text-decoration: none;
    color: inherit;
}

.platform-item:hover {
    transform: translateY(-3px); /* 修改：减小悬停上移距离，与资料文库一致 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* 修改：与资料文库一致的悬停阴影 */
}

.platform-item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.platform-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.platform-image::before {
    content: "";
    display: block;
    padding-top: 65%; /* 修改：16:10比例的长方形，与资料文库一致 */
}

.platform-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
    transition: transform 0.5s ease;
}

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

.platform-title {
    padding: 14px 12px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    height: 45px; /* 修改：调整高度，使其与资料文库更接近 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0; /* 修改：与资料文库一致的边框颜色 */
    font-weight: 500;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.platform-item:hover .platform-title {
    color: #d4a017; /* 修改：与资料文库一致的悬停文字颜色 */
    background-color: var(--bg-color); /* 保持背景颜色不变 */
}

/* 平台标签 */
.platform-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.platform-item:hover .platform-tag {
    background-color: rgba(0, 0, 0, 0.75);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        grid-gap: 20px;
    }
    
    .platform-title {
        height: 45px;
        font-size: 15px;
        padding: 10px;
    }
}

/* 账号使用规范滚动文字框样式 */
.scrollable-text-container {
    max-height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

.text-scroll-box {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.text-scroll-box::-webkit-scrollbar {
    width: 8px;
}

.text-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.text-scroll-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.text-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-scroll-box h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.text-scroll-box h4:first-child {
    margin-top: 0;
}

.text-scroll-box p {
    margin: 10px 0 5px;
    color: #333;
}

.text-scroll-box ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.text-scroll-box li {
    margin: 5px 0;
    color: #555;
    line-height: 1.6;
}

/* 可滚动框中的图片样式 */
.scroll-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 实务课程板块的可滚动文字容器样式 */
#practical-procedure .scrollable-text-container,
#practical-control .scrollable-text-container,
#practical-consolidated .scrollable-text-container,
#practical-cashflow .scrollable-text-container,
#practical-ipo .scrollable-text-container {
    max-height: 90vh;
    margin: 20px 0;
}

#practical-procedure .text-scroll-box,
#practical-control .text-scroll-box,
#practical-consolidated .text-scroll-box,
#practical-cashflow .text-scroll-box,
#practical-ipo .text-scroll-box {
    max-height: 90vh;
    padding-right: 20px;
}

/* 实质性程序滚动框特定样式 */
#practical-procedure .text-scroll-box {
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e50;
}

#practical-procedure .text-scroll-box h4 {
    font-size: 18px;
    color: #42b983;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecef;
}

#practical-procedure .text-scroll-box h4:first-child {
    margin-top: 0;
}

#practical-procedure .text-scroll-box p {
    margin: 12px 0;
    text-indent: 0;
    color: #34495e;
}

#practical-procedure .text-scroll-box ul {
    margin: 12px 0 12px 25px;
    padding: 0;
}

#practical-procedure .text-scroll-box li {
    margin: 8px 0;
    color: #34495e;
    position: relative;
    list-style-type: none;
    padding-left: 20px;
}

#practical-procedure .text-scroll-box li::before {
    content: "•";
    color: #42b983;
    font-weight: bold;
    position: absolute;
    left: 0;
}

#practical-procedure .text-scroll-box img {
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#practical-procedure .text-scroll-box a {
    color: #42b983;
    text-decoration: none;
    border-bottom: 1px dashed #42b983;
    transition: all 0.3s ease;
}

#practical-procedure .text-scroll-box a:hover {
    color: #3da776;
    border-bottom-style: solid;
}

/* 强调文本样式 */
#practical-procedure .text-scroll-box strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 序号列表样式 */
#practical-procedure .text-scroll-box ol {
    margin: 12px 0 12px 25px;
    padding: 0;
    counter-reset: item;
}

#practical-procedure .text-scroll-box ol li {
    counter-increment: item;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

#practical-procedure .text-scroll-box ol li::before {
    content: counter(item) ".";
    color: #42b983;
    font-weight: 600;
    position: absolute;
    left: 0;
}

/* 滚动条样式优化 */
#practical-procedure .text-scroll-box::-webkit-scrollbar {
    width: 8px;
}

#practical-procedure .text-scroll-box::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 4px;
}

#practical-procedure .text-scroll-box::-webkit-scrollbar-thumb {
    background: #42b983;
    border-radius: 4px;
}

#practical-procedure .text-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #3da776;
}

/* 侧边固定栏 */
.floating-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-item {
    width: 60px;
    height: 60px;
    background-color: var(--bg-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.floating-item i {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.floating-item:hover {
    transform: translateX(-5px);
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.floating-item span {
    font-size: 13px;
    line-height: 1.2;
    padding: 0 2px;
}

/* 手机端侧边栏样式优化 */
@media screen and (max-width: 768px) {
    .floating-sidebar {
        position: fixed;
        bottom: 0 !important; /* 强制置底 */
        left: 0;
        right: 0;
        top: auto;
        transform: none !important; /* 移除所有transform */
        width: 100%;
        height: 60px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        z-index: 1000;
        gap: 0;
        margin: 0;
    }

    .floating-item {
        width: 25%;
        height: 100%;
        margin: 0;
        padding: 5px;
        border-radius: 0;
        background: none;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .floating-item i {
        font-size: 20px;
        margin-bottom: 3px;
        color: var(--text-color);
    }

    .floating-item span {
        font-size: 12px;
        margin: 0;
        color: var(--text-color);
        white-space: nowrap;
        text-align: center;
        display: block;
        line-height: 1.2;
    }

    .floating-item:hover {
        transform: none;
        background: var(--primary-light);
    }

    /* 添加底部内边距，避免内容被固定导航栏遮挡 */
    .content {
        padding-bottom: calc(60px + 20px);
    }

    /* 返回顶部按钮位置调整 */
    .back-to-top {
        bottom: 75px;
        right: 15px;
    }

    /* 移除在其他媒体查询中可能存在的冲突样式 */
    .floating-sidebar {
        right: auto;
        top: auto;
        bottom: 0;
        transform: none;
        gap: 0;
    }
}

/* 添加侧边栏显示/隐藏功能 */
.floating-sidebar.hidden {
    transform: translateY(100%) !important;
}

.floating-sidebar {
    transition: transform 0.3s ease;
}

/* 添加显示/隐藏触发区域 */
.sidebar-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    .sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        z-index: 1001;
    }
}

/* 二维码弹窗样式补充 */
.qrcode-modal.teacher-modal .qrcode-content,
.qrcode-modal.wechat-modal .qrcode-content {
    padding: 30px;
    max-width: 340px;
    background-color: var(--bg-color);
    border-radius: 16px;
}

.qrcode-modal.teacher-modal .qrcode-image,
.qrcode-modal.wechat-modal .qrcode-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background-color: white;
}

.qrcode-modal h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.qrcode-modal p {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 15px;
}

@media screen and (max-width: 768px) {
    .floating-sidebar {
        right: 15px;
        top: auto;
        bottom: 90px;
        transform: none;
        gap: 12px;
    }
    
    .floating-item {
        width: 50px;
        height: 50px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .floating-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .qrcode-modal.teacher-modal .qrcode-content,
    .qrcode-modal.wechat-modal .qrcode-content {
        padding: 20px;
        max-width: 300px;
    }
    
    .qrcode-modal.teacher-modal .qrcode-image,
    .qrcode-modal.wechat-modal .qrcode-image {
        width: 200px;
        height: 200px;
    }
}

/* 提示框样式 */
.notice-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
    position: relative;
}

.notice-box::before {
    content: "📌";
    margin-right: 10px;
    font-size: 18px;
}

.notice-box.warning {
    background-color: #fff7e6;
    border-left-color: #ffab2b;
}

.notice-box.warning::before {
    content: "⚠️";
}

.notice-box.info {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
}

.notice-box.info::before {
    content: "ℹ️";
}

.notice-box.success {
    background-color: #f6ffed;
    border-left-color: #52c41a;
}

.notice-box.success::before {
    content: "✅";
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .notice-box {
        margin: 15px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 会员权益宫格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.grid-item {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.grid-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.grid-title {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
    font-weight: 500;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.text-scroll-box .copyright-warning {
    background-color: #fff8f8;
    border-left: 4px solid #ff4444;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.text-scroll-box .copyright-warning h4 {
    color: #ff4444;
    margin-top: 0;
}

.text-scroll-box .copyright-warning strong {
    color: #d32f2f;
}

.text-scroll-box .copyright-warning ul {
    margin-bottom: 10px;
}

.text-scroll-box .copyright-warning li {
    color: #333;
    line-height: 1.6;
}

.icp-float {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.icp-float a:hover {
    color: #0078ff;
    text-decoration: underline;
} 