/* 文章页面样式：简体中文, 桌面端 */

/* 桌面端样式 (宽度大于768px) */
@media (min-width: 769px) {
    /* 隐藏移动端页眉 */
    .mobile-header {
        display: none;
    }

    /* 桌面端整体布局 */
    body {
        font-family: var(--font-zh-cn);
        color: var(--color-text);
        background-color: var(--color-bg);
        margin: 0;
    }

    /* 桌面端侧边栏 - fixed定位 */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--color-sidebar-bg);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 150px 20px 20px 20px;
        box-sizing: border-box;
        border-right: 1px solid #e0e0e0;
        overflow-y: auto;
        z-index: 100;
        transform: translateX(0);
    }

    /* 侧边栏导航区域 */
    .sidebar .nav-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* 侧边栏导航链接 */
    .sidebar .nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        font-family: var(--font-zh-cn);
    }

    .sidebar .nav-links li {
        margin-bottom: 15px;
    }

    .sidebar .nav-links a {
        color: #000000;
        text-decoration: none;
        font-size: 24px;
        line-height: 1.5;
        display: block;
        padding: 10px 0;
        text-indent: 1em;
    }

    .sidebar .nav-links a:hover {
        color: #666666;
    }

    /* 子菜单容器 */
    .sidebar .nav-links .has-submenu {
        position: relative;
    }

    .sidebar .nav-links .menu-item-with-arrow {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .sidebar .nav-links .menu-item-with-arrow a {
        flex: 1;
        pointer-events: none;
    }

    /* 箭头图标样式 */
    .sidebar .nav-links .arrow-icon {
        display: inline-block;
        margin-left: 10px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #000000;
        transition: transform 0.3s ease;
        vertical-align: middle;
    }

    /* 展开状态的箭头 */
    .sidebar .nav-links .has-submenu.active .arrow-icon {
        transform: rotate(180deg);
    }

    /* 子菜单样式 */
    .sidebar .nav-links .submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top: 10px;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    /* 展开状态的子菜单 */
    .sidebar .nav-links .has-submenu.active .submenu {
        max-height: 200px;
    }

    .sidebar .nav-links .submenu li {
        margin-bottom: 10px;
    }

    .sidebar .nav-links .submenu a {
        font-size: 18px;
        color: #000000;
        padding: 5px 0;
    }

    .sidebar .nav-links .submenu a:hover {
        color: #000000;
    }

    /* 社交媒体图标容器 */
    .social-icons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin: 20px 0 30px;
        flex-wrap: wrap;
        max-width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        cursor: pointer;
        flex-basis: calc(33.333% - 10px);
    }

    .social-icons img,
    .social-icons svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 主内容区域样式 */
    .main-content {
        margin-left: 0px;
        padding: 40px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background-color: var(--color-bg);
        max-width: none;
    }

    /* 文章页面标题区域 */
    .article-header {
        margin-bottom: 40px;
        text-align: center;
    }

    .article-header h1 {
        font-size: 48px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #000000;
        font-family: var(--font-zh-cn);
    }

    .article-header p {
        font-size: 24px;
        color: #666666;
        line-height: 1.6;
        margin: 0;
        font-family: var(--font-zh-cn);
    }

    /* 文章卡片容器 */
    .article-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 24px;
        margin: 30px 40px;
        padding: 0;
        flex: 1;
    }

    /* 文章卡片样式 */
    .article-card {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        height: 400px;
    }

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    /* 文章卡片图片 */
    .article-image {
        display: flex;
        flex-direction: column;
        padding: 16px 16px 0 16px;
        flex: 2;
        overflow: hidden;
    }

    .article-image img {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        object-fit: cover;
    }

    /* 卡片内容区域 */
    .card-content {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .card-content h3 {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 12px 0;
        color: #000000;
        line-height: 1.4;
        font-family: var(--font-zh-cn);
    }

    .card-content p {
        font-size: 18px;
        color: #666666;
        line-height: 1.6;
        margin: 0;
        font-family: var(--font-zh-cn);
    }

    /* 页脚 - 使用与全局相同的样式 */
    .footer {
        margin-top: auto;
        margin-bottom: -40px;
        padding: 20px 20px 20px 20px;
        text-align: center;
        border-top: 1px solid #e0e0e0;
    }

    .footer p {
        font-size: 12px;
        color: #666666;
        line-height: 0.5;
        margin: 0;
        margin-bottom: 0;
        text-align: center;
        font-family: var(--font-zh-cn);
    }

    /* 微信弹窗样式 */
    .modal {
        position: fixed;
        z-index: 1001;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }

    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
    }

    .modal-content img {
        max-width: 400px;
        height: auto;
        object-fit: contain;
    }

    .close {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
}