/* 仓库页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --border-color: #E5E5E7;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-secondary);
}

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

/* 仓库头部 */
.repo-header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.repo-info {
    margin-bottom: 40px;
}

.repo-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.repo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.repo-url {
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'Monaco', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.repo-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 一键添加按钮 */
.quick-add-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.add-btn {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.add-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.cydia-btn {
    background: rgba(139, 69, 19, 0.3);
    color: white;
}

.cydia-btn:hover {
    background: rgba(139, 69, 19, 0.5);
    transform: translateY(-2px);
}

.sileo-btn {
    background: rgba(52, 199, 89, 0.3);
    color: white;
}

.sileo-btn:hover {
    background: rgba(52, 199, 89, 0.5);
    transform: translateY(-2px);
}

.zebra-btn {
    background: rgba(255, 59, 48, 0.3);
    color: white;
}

.zebra-btn:hover {
    background: rgba(255, 59, 48, 0.5);
    transform: translateY(-2px);
}

/* 包列表区域 */
.packages-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.package-card {
    background: var(--background-primary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.package-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.package-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Monaco', monospace;
    margin-bottom: 5px;
}

.package-version {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.package-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.package-compatibility {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.compat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compat-item i {
    color: var(--success-color);
}

.package-actions {
    display: flex;
    gap: 15px;
}

.download-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.more-info-btn {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.more-info-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 手动添加说明 */
.manual-add-section {
    background: var(--background-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.manual-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.manual-steps {
    display: grid;
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    padding-top: 8px;
    position: relative;
}

.repo-url-code {
    background: var(--background-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    display: inline-block;
    margin: 8px 0;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* 支持信息 */
.support-section {
    background: var(--background-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    text-align: center;
}

.support-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--background-secondary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.support-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.support-link i {
    font-size: 1.2rem;
}

/* 页脚 */
.repo-footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.repo-footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .repo-header {
        padding: 40px 0;
    }
    
    .repo-title {
        font-size: 2rem;
    }
    
    .quick-add-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .add-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .packages-section {
        padding: 60px 0;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        padding: 25px;
    }
    
    .package-actions {
        flex-direction: column;
    }
    
    .support-links {
        flex-direction: column;
        align-items: center;
    }
    
    .support-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .repo-header {
        padding: 30px 0;
    }
    
    .repo-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .manual-add-section,
    .support-section {
        padding: 25px;
    }
    
    .package-compatibility {
        flex-direction: column;
        gap: 10px;
    }
}