/* ======================
   企业级应用市场样式
   配色方案：蓝白主题
   ====================== */

/* 全局变量 */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E8F0FE;
    --secondary-color: #5C6AC4;
    --success-color: #43B581;
    --warning-color: #FAA61A;
    --danger-color: #F04747;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-hover: #F1F3F4;
    --border-color: #DADCE0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo i {
    font-size: 24px;
}

/* 导航栏搜索框 */
.nav-search-form {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.nav-search-wrapper {
    position: relative;
    width: 100%;
}

.nav-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    z-index: 2;
}

.nav-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    background: var(--bg-secondary);
    transition: all 0.3s;
    color: var(--text-primary);
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.nav {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-link.admin-link {
    color: var(--primary-color);
}

/* 轮播图样式 - 现代化设计 */
.banner-section {
    margin-top: 0;
    background: var(--bg-secondary);
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease-out;
}

.banner-slide.active img {
    transform: scale(1.05);
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-slide a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(92, 106, 196, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

.banner-slide a:hover::before {
    opacity: 1;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.5) 40%, 
        rgba(0, 0, 0, 0.2) 70%, 
        transparent 100%);
    backdrop-filter: blur(8px);
    color: white;
    padding: 40px 40px 25px;
    text-align: left;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-caption h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
    line-height: 1.3;
}

.banner-caption p {
    font-size: 0.95rem;
    max-width: 600px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    font-weight: 400;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.8;
}

.banner-prev:hover,
.banner-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
    opacity: 1;
}

.banner-prev:active,
.banner-next:active {
    transform: translateY(-50%) scale(1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
}

.banner-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-indicators .indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* 轮播图响应式设计 */
@media (max-width: 768px) {
    .banner-section {
        padding: 12px;
    }
    
    .banner-slider {
        height: 200px;
        border-radius: 12px;
    }
    
    .banner-caption h2 {
        font-size: 1.2rem;
    }
    
    .banner-caption p {
        font-size: 0.85rem;
    }
    
    .banner-caption {
        padding: 30px 20px 15px;
    }
    
    .banner-prev,
    .banner-next {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .banner-indicators {
        bottom: 12px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .banner-indicators .indicator {
        width: 6px;
        height: 6px;
    }
    
    .banner-indicators .indicator.active {
        width: 18px;
    }
}


/* 分类导航 */
.categories-section {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.category-tab {
    padding: 8px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.category-tab:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* 精选应用 */
.featured-section {
    padding: 32px 0;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--warning-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.featured-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-card-content {
    display: flex;
    gap: 24px;
    align-items: center;
}

.featured-icon img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.featured-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.featured-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.featured-meta i {
    color: var(--warning-color);
}

.featured-meta .price {
    color: var(--primary-color);
    font-weight: 600;
}

/* 应用列表 */
.apps-section {
    padding: 32px 0 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.app-count {
    color: var(--text-muted);
    font-size: 14px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.app-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}

.app-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.app-icon {
    position: relative;
}

.app-icon img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

/* 应用状态标签 */
.app-badges {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.badge-cracked {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
    color: white;
}

.badge-menu {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.app-category {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 12px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.app-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

/* 空状态 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-results p {
    font-size: 16px;
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 10px;
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* 应用详情页 */
.app-detail-section {
    padding: 40px 0;
}

/* 状态突出显示区域 */
.app-status-highlight {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    color: white;
}

.status-tags {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.status-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.status-tag i {
    font-size: 32px;
    opacity: 0.9;
}

.status-tag.cracked i {
    color: #FFD700;
}

.status-tag.menu i {
    color: #87CEEB;
}

.status-tag strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-tag small {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.modifications-preview {
    margin-top: 16px;
}

.modifications-preview h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modifications-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.mod-tag:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.mod-tag.more {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* 首页应用卡片状态标签 */
.app-status-tags {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.status-tag.cracked {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    color: white;
}

.status-tag.menu {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.status-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 修改功能预览 */
.app-modifications-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.app-modifications-preview .mod-tag {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #4facfe;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
}

.app-modifications-preview .mod-tag:hover {
    background: rgba(79, 172, 254, 0.2);
}

.mod-more {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 更新日期 */
.app-update-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0;
}

.app-update-date i {
    color: var(--primary);
}

.app-header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 32px;
}

.app-header-icon img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.app-header-info {
    flex: 1;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.app-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.app-header-meta {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.meta-group {
    text-align: center;
}

.meta-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.meta-value i {
    color: var(--primary-color);
}

.rating-large {
    font-size: 20px;
}

.rating-large strong {
    font-size: 28px;
}

.rating-max {
    color: var(--text-muted);
    font-size: 14px;
}

.meta-divider {
    width: 1px;
    background: var(--border-color);
}

.app-header-actions {
    display: flex;
    gap: 12px;
}

/* 截图展示 */
.screenshots-section {
    margin-bottom: 32px;
}

.detail-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.screenshots-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
}

.screenshot-item {
    flex-shrink: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    height: 400px;
    width: auto;
    display: block;
}

/* 详细内容区域 */
.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.detail-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.detail-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--success-color);
    margin-top: 4px;
}

.update-info {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.update-version {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.update-date {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 13px;
    margin-left: 8px;
}

.update-log {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 侧边栏 */
.sidebar-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.price-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.related-apps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.related-app-item:hover {
    background: var(--primary-light);
}

.related-app-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.related-app-info {
    flex: 1;
}

.related-app-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.related-app-rating {
    font-size: 12px;
    color: var(--text-muted);
}

.related-app-rating i {
    color: var(--warning-color);
}

.related-app-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}

/* 截图模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 13px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .nav-search-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .category-tabs {
        justify-content: flex-start;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-header-meta {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-nav button {
        padding: 12px 16px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .app-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

