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

/* 根元素和基础字体 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* 英雄区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
    margin: 0;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.app-screenshots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.screenshot-left,
.screenshot-right {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.screenshot-left img,
.screenshot-right img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.screenshot-left img:hover,
.screenshot-right img:hover {
    transform: translateY(-5px);
}

.qrcode-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.qrcode {
    width: 200px;
    height: 200px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.qrcode:hover {
    transform: scale(1.05);
}

.qrcode-center p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
}

/* 主要内容区域 */
.main {
    padding: 0;
    margin: 0;
}

/* 介绍区域 */
.intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 项目区域 */
.projects h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 项目卡片 */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 项目标签 */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

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

/* 即将到来卡片 */
.coming-soon {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f1f5f9 100%);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.coming-soon .project-content {
    text-align: center;
}

.coming-soon h3 {
    color: var(--text-secondary);
    font-style: italic;
}

/* 项目详情页面样式 */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 项目详情网格 */
.project-details {
    margin-bottom: 4rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.detail-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.detail-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 截图画廊 */
.project-screenshots {
    margin-bottom: 4rem;
}

.project-screenshots h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    text-align: center;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.02);
}

.screenshot-item p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 下载区域 */
.project-download {
    margin-bottom: 4rem;
}

.download-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.download-card h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.qrcode-container {
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    display: block;
}

.qrcode-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.close {
    position: absolute;
    top: -2rem;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin: 0;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main {
        padding: 0 !important;
        margin: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .app-screenshots {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .screenshot-left {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .screenshot-right {
        order: 2;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .qrcode-center {
        order: 3;
    }
    
    .qrcode {
        width: 180px;
        height: 180px;
    }
    
    .qrcode-center p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 2rem 0;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .projects h2 {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
}
