:root {
    --main-bg-color: #f5f5f5;
    --header-height: 66px;
    --header-opacity: 0.77;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--main-bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 顶部导航样式 - 只保留基础样式 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, var(--header-opacity));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    height: 40px;
    margin: 13px 20px;
}

/* 删除原有的菜单相关样式 */
/* 删除 .menu, .menu-toggle 等相关样式 */

/* 保留其他样式 */
/* QR码提示样式 */
.qr-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #333;
    font-size: 12px;
}

.qr-code {
    width: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* 胸部样式 */
.chest {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;  /* 增加上下间距到40px */
    margin: 0;
    background: rgba(0, 0, 0, 0.02);
}

.chest-logo {
    width: 84px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: 0.3s;
    margin-bottom: 15px;  /* 增加与关注按钮的间距 */
}

.chest-logo:hover {
    transform: scale(1.05);
}

/* 关注区域 */
.follow-section {
    text-align: center;
    padding: 0;
    margin: 0;
}

/* 按钮基础样式 */
.follow-btn, .more-readers-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, #1FA2FF, #12CBC4);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(31, 162, 255, 0.3);
    margin: 0;
}

/* 渐变背景动画 */
.follow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #FF416C, #FF4B2B, #8E2DE2);
    transition: all 0.7s ease;
    z-index: -1;
    border-radius: 30px;
}

/* 悬停效果 */
.follow-btn:hover::before {
    left: 0;
}

/* 按钮悬停效果 */
.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
}

/* 次要按钮样式 */
.more-readers-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.more-readers-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 按钮点击效果 */
.follow-btn:active, .more-readers-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 按钮内部光效果 */
.follow-btn::after, .more-readers-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    animation: buttonShine 2s infinite;
}

@keyframes buttonShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

.chest-description {
    color: #333;
    font-size: 14px;
    margin-top: 25px;
    text-align: center;
    line-height: 1.6;
    margin: 10px 0;
}

/* 二维码卡片样式 */
.qr-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 90%;
    cursor: pointer;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qr-card:hover .qr-code {
    width: 200px;  /* 鼠标悬浮在卡片上时二维码变大 */
    margin: 15px auto;  /* 增加变大后的间距 */
}

.qr-tip {
    color: #333;
    font-size: 12px;
    margin-bottom: 15px;
}

.qr-code {
    width: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* 移除原来的二维码悬浮效果 */
.qr-code:hover {
    width: initial;  /* 移除原来的悬浮效果 */
}

/* 更多读者按钮区域 */
.readers-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.more-readers-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-align: center;
    min-width: 200px;
}

.more-readers-btn.secondary {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.more-readers-btn:hover {
    transform: translateY(-2px);
}

.more-readers-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.more-readers-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* 在移动端调整按钮样式 */
@media (max-width: 768px) {
    .more-readers-btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 180px;
    }
}

.chest-tip {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.6;
}

/* 腰部样式 */
.waist {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.02);
}

/* 更新卡片样式 */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 280px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

.card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 腿部样式 */
.leg {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96e6a1);
    padding: 20px 0;
    margin: 50px 0;
    text-align: center;
    color: white;
}

.leg-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leg-topics {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.leg-topics-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.leg-topic {
    font-size: 20px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.leg-topic:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .leg-topics-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .leg-topic {
        font-size: 16px;
        padding: 8px 20px;
    }
}

/* 页脚样式 */
.footer {
    background: #f8f8f8;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.footer-description {
    color: #666;
    line-height: 1.8;
}

.footer-line {
    margin-bottom: 10px;
}

.footer-copyright {
    margin-top: 20px;
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .footer {
        padding: 30px 0;
        margin-top: 30px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-line {
        margin-bottom: 8px;
    }

    .footer-copyright {
        margin-top: 15px;
        font-size: 12px;
    }
}

/* 底部样式 */
.bottom {
    background: #1a1a1a;
    color: #666;
    text-align: center;
    padding: 15px 0;
}

/* 在移动端调整字体大小 */
@media (max-width: 768px) {
    .bottom {
        display: none;
    }
    .qr-tip {
        display: none;
    }
    .footer-title {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    .qr-card {
        display: none;
    }

    /* 调整腰部间距 */
    .waist {
        padding: 10px 20px;  /* 移动端也保持相同间距 */
    }
}

/* LOGO链接样式 */
.logo-link {
    display: block;
    height: var(--header-height);
    float: left;
}

/* 跑马灯容器样式 */
.marquee-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    overflow: hidden;
    white-space: nowrap;
    height: 20px;  /* 添加固定高度 */
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    color: white;
    font-size: 14px;
    white-space: nowrap;  /* 确保文字不换行 */
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* 在移动端调整跑马灯 */
@media (max-width: 768px) {
    /* 调整跑马灯 */
    .marquee-container {
        width: calc(100% - 120px);  /* 减去左右两边的空间 */
        left: 50%;
        transform: translate(-50%, -50%);  /* 保持居中 */
        margin: 0 auto;
    }
    
    .marquee {
        font-size: 12px;
        animation-duration: 20s;
    }

    /* 调整胸部间距 */
    .chest {
        padding: 40px 0;  /* 移动端保持相同间距 */
    }

    /* 调整腰部间距 */
    .waist {
        padding: 10px 20px;  /* 移动端也保持相同间距 */
    }

    /* ... 其他移动端样式保持不变 ... */
}

/* 评论区样式 */
.comments-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.comments-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%; /* 3倍容器宽度 */
}

.comment-item {
    width: 33.333%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    background: #fff;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* 头像背景色 */
.avatar-blue { background: linear-gradient(45deg, #2196F3, #4CAF50); }
.avatar-pink { background: linear-gradient(45deg, #FF4081, #FF6B6B); }
.avatar-purple { background: linear-gradient(45deg, #9C27B0, #673AB7); }

.comment-content {
    flex: 1;
}

.comment-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .comments-container {
        margin: 20px 20px; /* 修改为左右各20px的边距 */
        width: calc(100% - 40px); /* 考虑左右边距后的宽度 */
        max-width: none; /* 移除最大宽度限制 */
        border-radius: 8px;
    }

    .comment-item {
        padding: 15px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .comment-text {
        font-size: 13px;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .comments-container {
        max-width: 1000px; /* 限制最大宽度，避免在大屏幕上过宽 */
    }
}

/* 课程网格样式 */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-item {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: none;
    max-width: 400px;
    margin: 0 auto;
}

.course-item.active {
    display: block;
    animation: fadeInUp 0.5s forwards;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

.course-item h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.course-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .course-item {
        padding: 15px;
    }
    
    .course-item h3 {
        font-size: 18px;
    }
    
    .course-item p {
        font-size: 13px;
    }
}

/* 读者卡片样式 */
.reader-cards {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 160px;
}

.reader-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    display: none;
    box-sizing: border-box;
}

.reader-card.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.reader-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reader-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

.reader-card h3 .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #333;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin-left: 8px;
}

.reader-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .reader-cards {
        height: 180px;
    }
    
    .reader-card {
        padding: 15px;
    }
    
    .reader-card h3 {
        font-size: 16px;
    }
    
    .reader-card p {
        font-size: 13px;
    }
}

/* 写真区样式 */
.photos-section {
    width: 100%;
    padding: 20px 0;
    margin-top: var(--header-height);
    background-color: var(--main-bg-color);
}

.photos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* 使用 flex 布局 */
    justify-content: center; /* 水平居中 */
    gap: 30px; /* 图片之间的间距 */
}

.photo-item {
    flex: 0 0 300px; /* 固定宽度 */
    aspect-ratio: 1/1; /* 保持正方形 */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .photos-section {
        padding: 10px 0;
    }

    .photos-container {
        padding: 0 15px;
        gap: 10px;
    }

    .photo-item {
        flex: 0 0 calc((100% - 20px) / 3); /* 考虑间距的宽度计算 */
        aspect-ratio: 1/1;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .photos-container {
        max-width: 1000px; /* 限制最大宽度 */
    }
}

/* 图片见证相册样式 */
.gallery-section {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.02);
}

.gallery-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    display: flex;
    transition: transform 1s ease;
}

.gallery-slide {
    min-width: 100%;
    transition: opacity 1s ease;
    opacity: 0;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-arrow:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.gallery-thumbs {
    position: absolute;
    top: 20px;
    right: 0;
    overflow: hidden;
}

.thumbs-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.thumb-item {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.thumb-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片放大查看 */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: block;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.modal-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-arrow:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    transform: translateY(-50%) scale(1.1);
}

.modal-arrow svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gallery-container {
        width: 60%;  /* 手机端保持相同宽度 */
    }
    
    .gallery-wrapper {
        gap: 10px;
    }
    
    .gallery-track {
        width: 100%;
    }
    
    .gallery-arrow {
        width: 36px;
        height: 36px;
    }
    
    .thumb-item {
        width: 80px;
        height: 45px;
    }
    
    .modal-arrow {
        width: 36px;
        height: 36px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* 写真放大模态框样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2000;
    cursor: pointer;
}

.photo-modal.active {
    display: flex;
    opacity: 1;
}

.photo-modal-content {
    margin: auto;
    width: 50%;
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
    cursor: default;  /* 内容区域不显示关闭指针 */
}

.photo-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;  /* 确保按钮在最上层 */
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .photo-modal-content {
        width: 80%;  /* 手机端保持相同宽度 */
    }
    
    .photo-modal-close {
        top: -50px;
        right: 10px;
    }
}

/* 电光效果样式 */
.photo-item.center {
    position: relative;
    overflow: hidden;
}

.photo-item.center::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

/* 增加中间图片的突出效果 */
.photo-item.center {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.photo-item.center:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

/* 图片加载动画 */
.photo-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid transparent;
    border-top-color: #2196F3;
    border-right-color: #00BCD4;
    border-bottom-color: #4CAF50;
    border-left-color: #FFC107;
    border-radius: 50%;
    animation: loadingRotate 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item.loading::after {
    opacity: 1;
}

@keyframes loadingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 图片加载状态处理 */
.photo-item img {
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item img.loaded {
    opacity: 1;
}

/* 模态框电光特效 */
.photo-modal-content.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: modalShine 0.8s ease forwards;
    z-index: 1;
}

@keyframes modalShine {
    to {
        left: 200%;
    }
}

/* 图片见证区加载动画 */
.gallery-slide.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid transparent;
    border-top-color: #2196F3;
    border-right-color: #00BCD4;
    border-bottom-color: #4CAF50;
    border-left-color: #FFC107;
    border-radius: 50%;
    animation: galleryLoading 1s linear infinite;
    z-index: 2;
    opacity: 1;  /* 确保加载动画可见 */
}

@keyframes galleryLoading {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 图片见证区图片加载状态 */
.gallery-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide img.loaded {
    不透明度：1;
}

/* 修改宽度设置 */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 60%;  /* 未打开时宽度 */
    padding: 0 20px;
}

@Media（最大宽度：768px）{
    .gallery-container {
        width: 60%;  /* 手机端保持相同宽度 */
    }
    
    .gallery-modal .modal-content {
        width: 80%;  /* 手机端保持相同宽度 */
    }
}

/* 加载动画白色背景 */
.gallery-slide.loading {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    min-value: 200px;
    border-radius: 10px;
}

/* 确保加载动画至少显示0.3秒 */
.gallery-slide.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    animation: loadingMinduration 0.3s linear forwards;
}

@keyframes loadingMinduration {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 加强加载动画效果 */
.gallery-slide.loading {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    min-value: 200px;
    border-radius: 10px;
}

.gallery-slide.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid transparent;
    border-top-color: #2196F3;
    border-right-color: #00BCD4;
    border-bottom-color: #4CAF50;
    border-left-color: #FFC107;
    border-radius: 50%;
    animation: galleryLoading 1s linear infinite;
    z-index: 2;
}

@keyframes galleryLoading {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 电脑端样式 */
@media screen and (min-width: 769px) {
    /* 隐藏手机端元素 */
    .header,
    .mobile-content,
    .follow-section,
    .follow-btn,
    .more-readers-btn,
    .chest-description,
    .qr-card,
    .qr-tip,
    .qr-code {
        display: none !important;
    }

    /* 显示电脑端标题 */
    .desktop-title {
        display: block;
        text-align: center;
        padding: 20px 0;
        font-size: 24px;
        font-weight: bold;
        color: #333;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    /* 电脑端内容样式 */
    .desktop-content {
        display: block;
        text-align: center;
        padding: 80px 0 20px;
    }

    .desktop-content .chest-logo {
        width: 84px;
        margin: 0;
    }

    /* 调整内容区域的上边距 */
    body {
        padding-top: 64px;
    }
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
    /* 隐藏电脑端元素 */
    .desktop-title,
    .desktop-content {
        display: none !important;
    }

    /* 显示手机端元素 */
    .header,
    .mobile-content,
    .follow-section,
    .follow-btn,
    .chest-description,
    .qr-card,
    .qr-tip,
    .qr-code {
        display: block;
    }
}

Google 翻译
原文
提供更好的翻译建议
