/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 应用区域 */
.apps-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header h2 i {
    color: #6a11cb;
    margin-right: 10px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.app-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-header {
    padding: 25px;
    background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
}

.app-title {
    flex: 1;
}

.app-title h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.app-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

.app-body {
    padding: 25px;
}

.app-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.app-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.app-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    background: linear-gradient(90deg, #5a0cb9 0%, #1c68f0 100%);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.download-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* 筛选区域 */
.filter-section {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 18px;
    margin-top: 30px;
}

.filter-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #6a11cb;
    color: #6a11cb;
}

.filter-btn.active {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-color: transparent;
}

/* 使用说明 */
.instructions {
    margin-bottom: 60px;
    padding: 30px;
    background: #f8f9ff;
    border-radius: 20px;
}

.instructions h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.instructions h2 i {
    color: #6a11cb;
    margin-right: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.step p {
    color: #555;
    line-height: 1.7;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    border-radius: 20px;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 50px 40px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #6a11cb;
    transform: translateY(-5px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #6a11cb;
}

.footer-section ul li a i {
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.app-info {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.app-info p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.download-options {
    margin-top: 20px;
}

.download-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    cursor: pointer;
}

.download-options a {
    color: #6a11cb;
    text-decoration: none;
}

.download-options a:hover {
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 25px;
    border-top: 1px solid #eee;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(90deg, #5a0cb9 0%, #1c68f0 100%);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f2f6;
    color: #555;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .stats {
        justify-content: center;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* 欢迎弹窗样式 */
.welcome-modal .modal-content {
    max-width: 450px;
}

.welcome-content {
    text-align: center;
}

.welcome-icon {
    font-size: 4rem;
    color: #6a11cb;
    margin-bottom: 20px;
}

.welcome-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.welcome-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.welcome-action {
    margin: 25px 0;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-decoration: none;
}

.welcome-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 15px;
}

.close-welcome-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .welcome-modal .modal-content {
        max-width: 90%;
    }
}
