/* style.css - 应用哥商店样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* 简洁头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.3;
}

.header h1 a {
    color: #4a5568;
    text-decoration: none;
}

.header h1 a:hover {
    color: #667eea;
}

.header .slogan {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 20px;
}

/* 搜索框 */
.search-box {
    margin: 20px auto 0 auto;
    max-width: 600px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: white;
    color: #333;
    border: 2px solid #e2e8f0;
    height: 56px;
    line-height: normal;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-btn {
    padding: 0 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    height: 56px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1);
}

/* 主内容区域 */
.main-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

/* 应用头部 */
.app-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f7fafc;
}

.app-icon-box {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    font-size: 2.5rem;
}

.app-title {
    flex: 1;
}

.app-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
    margin-bottom: 8px;
}

.app-developer {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 5px;
}

.app-category {
    display: inline-block;
    background: #edf2f7;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

/* 下载按钮区域（标题右侧） */
.download-section {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.download-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
    color: white;
    text-decoration: none;
}

.download-note {
    font-size: 0.75rem;
    color: #718096;
    text-align: right;
    max-width: 180px;
    line-height: 1.3;
}

/* 应用信息 */
.app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}

.info-label {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.rating-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #f6ad55;
    font-size: 1.2rem;
}

/* 应用描述 */
.description-section {
    margin-bottom: 35px;
}

.description-title {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

/* 应用特性 */
.features-section {
    margin-bottom: 35px;
}

.features-title {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4a5568;
}

.feature-item:before {
    content: "✓";
    color: #48bb78;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 相关应用推荐 */
.related-apps {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f7fafc;
}

.related-title {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    display: block;
}

.related-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.related-app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.related-app-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.related-app-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.related-app-category {
    font-size: 0.9rem;
    color: #718096;
}

.related-app-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f6ad55;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 1000px;
}

.footer a {
    color: white;
    text-decoration: none;
}

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

.footer-links {
    margin-top: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
    font-size: 0.9rem;
}

/* 加载动画 */
.loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .app-icon-box {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .app-name {
        font-size: 2.2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input, .search-btn {
        width: 100%;
        height: 52px;
    }
    
    .app-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-section {
        margin-left: 0;
        margin-top: 15px;
        align-items: center;
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .download-note {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .app-name {
        font-size: 1.8rem;
    }
    
    .download-btn {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

/* 悬停效果 */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* 404页面样式 */
.error-container {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 40px auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 20px;
    line-height: 1;
}

.error-message {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.error-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #718096;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* 图标样式 */
.icon {
    font-size: 1.2em;
    vertical-align: middle;
}

.icon-download:before {
    content: "↓";
}

.icon-search:before {
    content: "🔍";
}

.icon-home:before {
    content: "🏠";
}

.icon-app:before {
    content: "📱";
}

.icon-star:before {
    content: "★";
}

.icon-file:before {
    content: "📄";
}

.icon-check:before {
    content: "✓";
}

.icon-thumbs-up:before {
    content: "👍";
}

.icon-external:before {
    content: "↗";
}