/* 应用详情页面样式 */
.nav-brand a {
    text-decoration: none;
    color: inherit;
}

/* 确保详情页面也支持主题变量 */
.app-detail-main {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.app-detail-main {
    padding-top: 80px;
}

/* 应用头部区域 */
.app-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.app-hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
}

.app-icon-large-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.icon-placeholder-large {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-meta {
    flex: 1;
}

.app-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.app-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.app-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.app-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* 应用截图区域 */
.app-screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

/* 原有的截图网格样式（保留用于其他页面） */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 轮播中的截图项目样式会在后面重新定义 */
.screenshots-grid .screenshot-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.screenshots-grid .screenshot-item:hover {
    transform: translateY(-8px);
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* 应用特性区域 */
.app-features {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--feature-bg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--card-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* 应用描述区域 */
.app-description {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.description-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.description-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.description-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.description-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.description-stats {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.stat-label {
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* 版本更新区域 */
.app-updates {
    padding: 80px 0;
    background: var(--bg-primary);
}

.update-timeline {
    max-width: 800px;
    margin: 2rem auto 0;
}

.update-item {
    background: var(--feature-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #2563eb;
}

.update-item:last-child {
    margin-bottom: 0;
}

.update-version {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.update-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.update-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.update-content ul {
    list-style: none;
    padding: 0;
}

.update-content li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.update-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .app-name {
        font-size: 2.5rem;
    }
    
    .app-actions {
        justify-content: center;
    }
    
    .description-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 2rem;
    }
    
    .app-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .icon-placeholder-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* 截图轮播样式 */
.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    flex-shrink: 0;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.screenshot-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.screenshots-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
}

.screenshot-item {
    flex: 0 0 calc(25% - 0.75rem);
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.indicator.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* 图片放大模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    pointer-events: auto;
}

.modal-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.modal-prev {
    margin-left: -60px;
}

.modal-next {
    margin-right: -60px;
}

/* 响应式设计 - 轮播 */
@media (max-width: 1024px) {
    .screenshot-item {
        flex: 0 0 calc(33.333% - 0.67rem);
    }
}

@media (max-width: 768px) {
    .screenshot-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        margin-left: -50px;
    }
    
    .modal-next {
        margin-right: -50px;
    }
}

@media (max-width: 480px) {
    .screenshot-item {
        flex: 0 0 calc(100% - 0rem);
    }
    
    .screenshot-carousel {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .screenshot-container {
        width: 100%;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-close {
        top: -40px;
        width: 36px;
        height: 36px;
    }
    
    .modal-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .modal-prev {
        margin-left: -45px;
    }
    
    .modal-next {
        margin-right: -45px;
    }
}