/* 详情页专用样式 */

/* 详情页容器 */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 主内容区域 */
.detail-main {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* 应用头部 */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.app-header-content {
    position: relative;
    z-index: 2;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 3rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.app-title-large {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.app-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.stars-large {
    display: flex;
    gap: 0.25rem;
}

.stars-large i {
    color: rgba(255,255,255,0.4);
    font-size: 1.25rem;
}

.stars-large i.active {
    color: #fbbf24;
}

.rating-text-large {
    font-size: 1.125rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.app-price-large {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.app-price-large.free {
    background: rgba(16, 185, 129, 0.8);
}

.app-category-large {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 操作按钮 */
.app-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-visit {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.btn-share {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-share:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 内容区域 */
.app-content {
    padding: 3rem 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h2 i {
    color: #667eea;
}

.content-section p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* 标签 */
.app-tags-detail {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag-detail {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 截图画廊 */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.screenshot-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.screenshot-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
}

/* 特性列表 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid #667eea;
}

.feature-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h3 i {
    color: #667eea;
}

/* 相关应用 */
.related-app {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.related-app:hover {
    background: #f8fafc;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.related-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-default-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.related-app-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.related-app-info p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* 统计信息 */
.app-stats-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item-sidebar {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
}

.stat-number-sidebar {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.stat-label-sidebar {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 1rem;
    }
    
    .app-header {
        padding: 2rem 1rem;
    }
    
    .app-title-large {
        font-size: 2rem;
    }
    
    .app-meta-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .app-content {
        padding: 2rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .app-icon-large,
    .default-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .default-icon-large {
        font-size: 2rem;
    }
    
    .app-title-large {
        font-size: 1.75rem;
    }
    
    .sidebar-section {
        padding: 1.5rem;
    }
}
