/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.main-title {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sub-title {
    text-align: center;
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

/* 应用卡片样式 */
.applet-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.applet-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.applet-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 1rem;
}

.applet-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.applet-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background-color: #f0f5ff;
    border-radius: 2rem;
    transition: all 0.2s ease;
    border: 1px solid #d1e0ff;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.project-link:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .applet-title {
        font-size: 1.25rem;
    }
    
    .project-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* 联系方式区域样式 */
.contact-section {
    background: white;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-section-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* 联系方式容器样式调整 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 联系卡片样式调整 */
.contact-card {
    background: #f8f9fa;
    border-radius: 0.8rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid #eee;
}

.contact-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 0.8rem;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* 按钮样式 */
.join-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
    width: 100%;
    cursor: pointer;
}

.join-button:hover {
    background: #1d4ed8;
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    color: #dc2626;
    padding: 2rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
} 

.qr-code-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 0.5rem;
    object-fit: cover;
}

@media (max-width: 768px) {
    .qr-code-container {
        gap: 0.5rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
} 

/* 项目展示图片样式 */
.project-images.swiper {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 450px;
}

.swiper-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
}

.swiper-slide .project-image {
    display: block;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .project-images.swiper {
        height: 300px;
    }
    
    .swiper-slide .project-image {
        max-height: 300px;
    }
} 

/* 图片缩放相关样式 */
.project-image, .qr-code {
    cursor: zoom-in;
}

/* 确保查看器在最上层 */
.viewer-container {
    z-index: 1050;
}

/* 自定义查看器主题 */
.viewer-toolbar {
    background-color: rgba(0, 0, 0, 0.5);
}

.viewer-button {
    color: #fff;
}

.viewer-button:hover {
    color: #2563eb;
}

/* 单个联系方式的特殊样式 */
.single-contact {
    max-width: 300px;
    margin: 0 auto;
}

.single-contact .join-button {
    width: auto;
    min-width: 200px;
    max-width: 80%;
    margin: 10px auto;
}

/* 当只有一个联系方式时，调整容器布局 */
.contact-container:has(.single-contact) {
    display: block;
} 