/* 下载页面专用样式 */
body.download-page {
    background-color: #f8fafc;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

* {
    box-sizing: border-box;
}

/* 应用信息卡片 - 新布局 */
.app-info-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    border-left: 4px solid #8b5cf6;
    max-width: 100%;
}

.app-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.app-info-main {
    display: flex;
    flex: 1;
    margin-bottom: 20px;
}

.app-icon-container {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.app-info-card:hover .app-icon-container {
    transform: scale(1.05);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.app-info-card:hover .app-icon {
    transform: scale(1.05);
}

.app-details {
    flex: 1;
    margin-left: 20px;
    min-width: 0;
}

.app-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
    align-items: center;
}

.app-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background-color: #f1f5f9;
    border-radius: 12px;
}

.download-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-download {
    display: inline-block;
    padding: 14px 40px;
    background-color: #8b5cf6;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    min-width: 200px;
    text-align: center;
}

.btn-download:hover {
    background-color: #d946ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.3);
}

/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    user-select: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.image-viewer.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    max-width: 95%;
    max-height: 90%;
}

.image-viewer-content img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.image-viewer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    z-index: 1001;
}

.image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-viewer-prev {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    z-index: 1001;
}

.image-viewer-prev:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-next {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    z-index: 1001;
}

.image-viewer-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1001;
}

/* 应用介绍 */
.section {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
    position: relative;
    border-left: 4px solid #8b5cf6;
}

.section:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #8b5cf6;
}

.app-description {
    line-height: 1.8;
    color: #475569;
    font-size: 16px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    position: relative;
    border-left: 3px solid #8b5cf6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.app-description p {
    margin-bottom: 20px;
    text-align: justify;
}
.app-description img{
    max-width: 96%;
    margin: auto;
    display: block;
    overflow: hidden;
}

.app-description p:last-child {
    margin-bottom: 0;
}

.app-description ul {
    padding-left: 25px;
    margin: 15px 0;
}

.app-description li {
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
}

.app-description li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8b5cf6;
}


/* 相关推荐 */
.related-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 100%;
}

.related-app-item {
    text-align: center;
    transition: transform 0.3s;
    padding: 12px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid transparent;
    min-width: 0;
}

.related-app-item:hover {
    transform: translateY(-3px);
    background-color: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.related-app-icon {
    width: 100%;
    padding-top: 100%;
    position: relative;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-app-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-app-item:hover .related-app-icon img {
    transform: scale(1.05);
}

.related-app-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-app-download {
    display: inline-block;
    padding: 6px 16px;
    background-color: #8b5cf6;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.related-app-download:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 最新推荐列表 */
.latest-apps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-app-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.latest-app-item:hover {
    background-color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
}

.latest-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.latest-app-item:hover .latest-app-icon img {
    transform: scale(1.05);
}

.latest-app-info {
    flex: 1;
    min-width: 0;
}

.latest-app-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.latest-app-item:hover .latest-app-title {
    color: #8b5cf6;
}

.latest-app-meta {
    font-size: 13px;
    color: #64748b;
}

.latest-app-download {
    padding: 7px 18px;
    background-color: #8b5cf6;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.latest-app-download:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Swiper轮播图样式 */
.screenshots-slider {
  position: relative;
  margin-top: 15px;
  padding: 0 20px;
}

/* 视频项样式 */
.video-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.your-video-selector {
  max-width: 100%;
  height: auto;
  max-height: 260px;
}

.swiper-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.screenshot-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 查看大图模态框 */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  width: 90%;
  max-width: 900px;
  height: 90%;
  max-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-swiper {
  width: 100%;
  height: 100%;
}

.lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-swiper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.swiper-button-prev,
.swiper-button-next {
  color: #6b21a8;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
    display: none;
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.lightbox-swiper .swiper-button-prev,
.lightbox-swiper .swiper-button-next {
  color: #333;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
}

.lightbox-swiper img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.screenshots-slider {
  padding: 0;
}

.screenshots-swiper .swiper-slide {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshots-swiper img {
  height: 260px;
  width: auto;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}
/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .related-apps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .app-info-main {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .app-icon-container {
        margin-bottom: 15px;
    }
    
    .app-details {
        text-align: center;
    }
    
    .app-meta-info {
        justify-content: center;
        gap: 12px;
    }
    
    .screenshot {
        height: 220px;
    }
    
    .section {
        padding: 20px;
    }
    
    .screenshot-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .related-apps {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-app-name {
        font-size: 13px;
    }
    
    .related-app-download {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .app-info-card {
        padding: 16px;
        overflow: hidden;
    }
    
    .app-name {
        font-size: 18px;
    }
    
    .section {
        padding: 16px;
        overflow: hidden;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .screenshot {
        height: 160px;
    }
    
    .latest-app-item {
        padding: 12px;
    }
    
    .screenshot-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* 防止所有区块在移动设备上溢出 */
    .app-info-main,
    .app-details,
    .app-description,
    .latest-apps-list {
        overflow: hidden;
        max-width: 100%;
    }
    
    /* 确保元信息不会导致溢出 */
    .app-meta-info span {
        white-space: nowrap;
        font-size: 13px;
    }
}