/* 我的故事页面样式：简体中文, 桌面端 */

/* 桌面端断点 */
@media (min-width: 769px) {

    /* 隐藏移动端页眉 */
    .mobile-header {
        display: none;
    }

    /* 桌面端整体布局 - 使用fixed布局 */
    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;
    }

    /* 侧边栏导航区域 */
    .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;
    }

    /* 主内容区域 - 使用flexbox布局 */
    .main-content {
        margin-left: 0px;
        padding: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 图片画廊区域 */
    .gallery-section {
        height: 60vh;
        max-height: 700px;
        margin: 40px 0;
        padding: 0 40px;
    }

    .gallery-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .gallery-slides {
        position: relative;
        width: 400%; /* 12张图片 ÷ 3张显示 = 4组 */
        height: 100%;
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
    }

        .gallery-slides .slide {
        width: calc(100% / 12);
        height: 100%;
        position: relative;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .gallery-slides .slide img {
        width: 100%;
        height: 100%; /* 让图片占满整个slide */
        object-fit: cover;
        border-radius: 8px;
        aspect-ratio: 3/4;
    }

    /* 图片说明覆盖在图片上方 */
    .slide-info {
        position: absolute; /* 改为绝对定位 */
        bottom: 40px; /* 距离底部的位置 */
        left: 30px;
        right: 20px;
        color: #FFFFFF; /* 改为白色文字 */
        text-align: left; /* 左对齐或根据需要调整 */
        z-index: 5; /* 确保在图片上方 */
        padding: 10px;
        border-radius: 4px;
    }

    .slide-info h3 {
        font-size: 28px;
        font-weight: 600;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: var(--font-zh-cn);
        color: #FFFFFF; /* 白色标题 */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 添加阴影增强可读性 */
    }

    .slide-info p {
        font-size: 20px;
        margin: 0;
        line-height: 1.4;
        font-family: var(--font-zh-cn);
        color: #FFFFFF; /* 白色正文 */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* 添加阴影增强可读性 */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
    }

    /* 桌面端轮播控制 - 每次移动25%显示下3张 */
    .gallery-slides[data-current="1"] { transform: translateX(0%); }
    .gallery-slides[data-current="2"] { transform: translateX(-25%); }
    .gallery-slides[data-current="3"] { transform: translateX(-50%); }
    .gallery-slides[data-current="4"] { transform: translateX(-75%); }

    /* 导航按钮桌面端样式 */
    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.8);
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
    }

    .gallery-nav:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-nav.prev {
        left: 30px;
    }

    .gallery-nav.next {
        right: 30px;
    }

    /* 指示器桌面端样式 - 4个点对应4组图片 */
    .gallery-dots {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 15px;
        z-index: 10;
    }

    .gallery-dots .dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .gallery-dots .dot.active,
    .gallery-dots .dot:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.3);
    }

    /* 文章区域桌面端适配 */
    .story-article-section {
        flex: 1; /* 占据剩余空间 */
        padding: 60px 40px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .story-article h1 {
        font-size: 48px;
        margin-bottom: 40px;
        text-align: center;
        font-family: var(--font-zh-cn);
        font-weight: 600;
        color: #000;
    }

    .article-content {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .article-content p {
        font-size: 24px;
        line-height: 1.8;
        max-width: 3000px;
        margin: 0 auto;
        text-indent: 2em;
        font-family: var(--font-zh-cn);
        color: #333;
        text-align: justify;
    }

    /* 页脚区域 */
    .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;
    }

    /* 微信弹窗样式 */
    .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;
    }
}