:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    opacity: 0;
    transition: opacity 0.5s ease-in;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.loaded {
    opacity: 1;
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    transition: transform 0.3s ease;
}

/* 添加隐藏类 */
header.nav-hidden {
    transform: translateY(-100%);
}

nav {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 添加导航内容容器 */
.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    float: right;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0 1.5rem;
    position: relative;
}

/* 添加分隔线 */
.nav-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #ddd;
    opacity: 0.8;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

/* 添加悬停动画 */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    height: calc(100vh - 60px);
}

.cta-button, .download-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 添加悬停效果 */
.cta-button::before, .download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover::before, .download-button:hover::before {
    left: 100%;
}

.cta-button:hover, .download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    background-color: #c0392b;
}

.cta-button:active, .download-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* 添加脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

main {
    flex: 1;
    margin-top: 60px;
    padding-top: 20px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #a38ee1 0%, #a530d6 50%, #c0392b 100%);
    color: white;
    margin-top: 0;
    border-radius: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background: linear-gradient(135deg, #a38ee1 0%, #a530d6 50%, #2c3e50 100%);
    color: rgba(255,255,255,0.7);
    padding: 2rem;
    margin-top: auto;
    text-align: center;
}

footer p {
    margin: 1rem 0;
}

footer nav {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

footer nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    footer nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 修改轮播图样式 */
#slider {
    margin-top: 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    border-radius: 0 0 15px 15px;
}

.slider-container {
    width: 1200px;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
    height: 500px;
    border-radius: 0 0 15px 15px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 50px;
    left: 50px;
    transform: none;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.slide-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 2;
}

.prev {
    left: 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: white;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 修改移动端样式 */
@media screen and (max-width: 1200px) {
    .slider-container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 1rem;
        font-size: 1.8rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -80%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 0;
        transition: right var(--transition-speed);
        z-index: 999;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 1.2rem;
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }

    .nav-menu a:hover, .nav-menu a.active {
        background-color: var(--background-color);
    }

    .nav-menu a.active {
        color: var(--primary-color);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

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

    .slide img {
        height: 300px;
    }

    .slide-text {
        bottom: 30px;
        left: 20px;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .links-grid {
        justify-content: center;
    }

    #slider {
        padding: 0;
    }

    .slider-container {
        max-width: 100%;
        height: 300px;
    }

    .prev, .next {
        padding: 12px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }

    #friend-links .links-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }

    .video-container {
        width: 95%;
        margin: 1.5rem auto;
    }
}

/* 优化滚动条样式 */
.nav-menu::-webkit-scrollbar {
    width: 3px;
}

.nav-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 修改友情链接样式 */
#friend-links {
    text-align: center;
    background: white;
    margin-top: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#friend-links h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

#friend-links .links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

#friend-links .links-grid a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: var(--background-color);
}

#friend-links .links-grid a:hover {
    color: var(--primary-color);
    background: #f0f0f0;
}

/* 修改页脚布局为两列 */
.footer-content {
    grid-template-columns: repeat(2, 1fr);
}

/* 添加友情链接样式 */
.friend-links {
    margin: 1rem 0;
}

.friend-links h3 {
    margin-bottom: 1rem;
    color: #fff;
}

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

.links-grid a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.links-grid a:hover {
    color: #fff;
}

/* 修改视频播放器样式 */
.video-container {
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#promo-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
}

/* 自定义视频控件样式 */
video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
}

video::-webkit-media-controls-panel {
    padding: 0 10px;
}

/* 首页新闻列表样式 */
#news {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    margin: 2rem auto;
}

#news h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.news-list {
    width: 1100px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

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

.news-thumb {
    flex: 0 0 300px;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.news-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
    line-height: 1.4;
}

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

.news-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .news-thumb {
        flex: none;
        width: 100%;
        height: 0;
        padding-bottom: 83.33%; /* 保持300:250的比例 */
        position: relative;
    }

    .news-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-content {
        padding: 0;
    }

    .news-title {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 1140px) {
    .news-list {
        width: 100%;
        padding: 0 1rem;
    }

    #news {
        padding: 2rem 0;
    }
}

/* 文章列表页样式 */
.article-list {
    display: flex;
        flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-item {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.article-thumb {
    flex: 0 0 300px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

/* 文章列表页移动端样式 */
@media screen and (max-width: 768px) {
    .article-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .article-thumb {
        flex: none;
        width: 100%;
        height: 0;
        padding-bottom: 60%;
        position: relative;
    }

    .article-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .article-category {
        z-index: 1;
    }

    .article-content {
        padding: 1rem 0;
    }
}

/* 添加新的断点 */
@media screen and (max-width: 1040px) {
    .news-list {
        width: 100%;
        padding: 0 1rem;
    }
}

/* 页面加载动画样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
        justify-content: center;
        align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader p {
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.circular {
    animation: rotate 2s linear infinite;
    height: 50px;
    width: 50px;
    position: relative;
}

.path {
    stroke: var(--primary-color);
    stroke-dasharray: 89, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* 修改文章列表页样式 */
#articles {
    padding: 2rem;
    max-width: 1200px;
    margin: 80px auto 0; /* 调整顶部边距，为导航栏留出空间 */
}

#articles h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* 文章列表头部样式 */
.article-header {
        display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 文章分类样式 - 重置和基础样式 */
.article-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0; /* 添加padding: 0 */
}

/* 分类按钮基础样式 */
.category {
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 文章列表头部专用样式 - 确保优先级更高 */
.article-header .article-categories {
    margin: 0;
    padding: 0;
}

.article-header .category {
    height: 40px !important;
    line-height: 40px;
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

/* 搜索框样式 */
.article-search {
    display: flex;
    gap: 1rem;
    min-width: 300px;
    height: 40px;
}

.article-search input[type="text"] {
    flex: 1;
    height: 40px;
    padding: 0 1rem;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.article-search input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.article-search button {
    height: 40px;
    padding: 0 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.article-search button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-search {
        width: 100%;
        min-width: auto;
    }
}

/* 文章分类动画效果 */
.article-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
    opacity: 0;
}

.category span {
    position: relative;
    z-index: 1;
}

.category:hover::before,
.category.active::before {
    width: 300%;
    height: 300%;
    opacity: 1;
}

.category:hover,
.category.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.category.active {
    background: var(--primary-color);
}

.category.active::before {
    opacity: 0;
}

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

    .category {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem; /* 添加底部边距 */
}

.article-item {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

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

.article-thumb {
    position: relative;
    height: 250px;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.article-content {
    padding: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.article-title {
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

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

.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-views {
    color: #666;
    font-size: 0.9rem;
}

/* 阅读全文按钮动画效果 */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 25px;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

.read-more::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
    padding-right: 30px;
}

.read-more:hover::before {
    width: calc(100% - 30px);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .read-more {
        font-size: 0.9rem;
    }
}

/* 分页样式 */
.pagination {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination .pageinfo {
    color: #666;
    margin-right: 1rem;
}

.pagination .pageinfo strong {
    color: var(--primary-color);
    margin: 0 0.3rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover:not(.nopage) {
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

.pagination .curpage {
    background: var(--primary-color);
    color: white !important;
}

.pagination .nopage {
    color: #999;
    cursor: not-allowed;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination .pageinfo {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 添加新的断点 */
@media screen and (max-width: 1240px) { /* 1200px + 左右padding */
    #articles {
        max-width: 100%;
        padding: 1rem;
    }
}

/* 添加导航激活状态样式 */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .nav-menu a.active {
        background-color: var(--background-color);
    }
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* 确保内容区域有足够的高度 */
}

/* 修改导航栏样式 */
@media screen and (max-width: 1240px) {
    .nav-container {
        max-width: 100%;
    }
}

/* 文章详情页样式 */
.article-detail {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 2rem;
}

.article-info {
    position: relative;
    text-align: center;
}

.article-info h1 {
    font-size: 2rem;
        margin: 1rem 0;
    line-height: 1.4;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    margin: 0 1rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-detail {
        padding: 1rem;
    }

    .article-info h1 {
        font-size: 1.5rem;
    }
}

.article-cover {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info h1 {
        font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.article-summary {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin: 0 auto;
}

.image-caption {
    text-align: center;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.notice-box h4 {
    color: #856404;
        margin-bottom: 1rem;
}

.notice-box p {
    color: #856404;
    margin-bottom: 0.5rem;
}

.article-tags {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--background-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 文章导航样式 */
.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* 基础样式 */
.article-navigation > span {
    flex: 1;
    display: flex;
}

.article-navigation > span > a,
.article-navigation > a {
    flex: 1;
    padding: 1.5rem;
    background: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-color);
}

/* 纯文本的禁用状态样式 */
.article-navigation > span:not(:has(a)) {
    padding: 1.5rem;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

/* 链接的悬停效果 */
.article-navigation > a::before,
.article-navigation > span > a::before {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.article-navigation > a:first-of-type::before,
.article-navigation > span:first-child > a::before {
    left: 0;
    transform: translateX(-100%);
}

.article-navigation > a:last-of-type::before,
.article-navigation > span:last-child > a::before {
    right: 0;
    transform: translateX(100%);
}

.article-navigation > a:hover::before,
.article-navigation > span > a:hover::before {
    transform: translateX(0);
}

.article-navigation > a:hover,
.article-navigation > span > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
    color: var(--primary-color);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .article-navigation > span:not(:has(a)),
    .article-navigation > span > a,
    .article-navigation > a {
        padding: 1rem;
    }
}

/* 修改面包屑导航样式 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 1rem 2rem;
    color: #666;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.breadcrumb .separator {
    color: #999;
    margin: 0 0.3rem;
}

/* 调整文章列表和文章详情页的上边距 */
#articles {
    margin-top: 1rem;
}

.article-detail {
    margin-top: 1rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .breadcrumb {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }

    #articles, .article-detail {
        margin-top: 0;
    }
}

/* 新闻列表底部按钮样式 */
.news-more {
    text-align: center;
    margin-top: 2rem;
}

.more-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
        font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.more-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.more-button:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .news-more {
        margin-top: 1.5rem;
    }

    .more-button {
        width: 100%;
        max-width: 300px;
    }
}

/* 搜索结果页样式 */
.search-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.search-info {
    color: #666;
    margin: 1rem 0;
}

.result-count {
    color: var(--primary-color);
    font-weight: 500;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-box button {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2);
}

.result-list {
    display: flex;
        flex-direction: column;
    gap: 2rem;
}

.result-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.result-thumb {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-item:hover .result-thumb img {
    transform: scale(1.05);
}

.result-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.result-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.result-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.highlight {
    background: #fdeaea;
    color: #e74c3c;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.result-meta {
    margin-top: auto;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    gap: 2rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .result-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .result-thumb {
        flex: none;
        width: 100%;
        height: 0;
        padding-bottom: 66.67%;
    }

    .result-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .result-title {
        font-size: 1.1rem;
    }

    .result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 修改搜索结果页样式 */
#search-results {
    min-height: calc(100vh - 60px - 20px - 200px); /* 减去header高度、padding-top和footer高度 */
}

/* 会员卡片样式 */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-header {
    padding: 2rem;
        text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    }

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
        margin-bottom: 1rem;
}

.price {
    color: var(--primary-color);
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
}

.price .period {
    font-size: 1rem;
    color: #666;
}

.card-body {
    padding: 2rem;
}

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

.features li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
}

.features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.card-footer {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.buy-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .membership-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .card.popular {
        transform: none;
    }

    .card.popular:hover {
        transform: translateY(-10px);
    }
}

/* 移动端适配 */
@media screen and (max-width: 1240px) { /* 1200px + 左右padding */
    .article-detail {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* 文章正文中的图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.article-content img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 图片容器样式 */
.article-content p:has(img) {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

/* 图片标题样式 */
.article-content img[title] {
    margin-bottom: 0.5rem;
}

.article-content img[title]::after {
    content: attr(title);
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-content img {
        margin: 1rem auto;
    }
}

/* 搜索结果页样式 */
.yzm-title {
    margin-bottom: 2rem;
}

.yzm-title h2 {
    font-size: 1.5rem;
    color: #333;
}

.result-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.top-flag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-style: normal;
}

.result-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-tags a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f5f5f5;
    color: #666;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.result-tags a:hover {
    background: var(--primary-color);
    color: white;
}

#page {
    margin-top: 3rem;
    text-align: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .yzm-title h2 {
        font-size: 1.2rem;
    }
    
    .result-tags {
        margin-top: 0.5rem;
    }
}

/* 搜索结果页标题样式 */
.search-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* 页面主标题样式 */
body > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Logo文字样式 */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
} 