/* 项目详情页面样式 */

/* 项目英雄区域 */
.project-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 107, 255, 0.05) 0%, transparent 100%),
        radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.05) 0%, transparent 100%);
}

.project-hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.project-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.project-type {
    display: inline-block;
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.project-tags span {
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-hero-image img {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.project-hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 项目概述区域 */
.project-overview {
    padding: 6rem 0;
    background-color: white;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 项目功能特色区域 */
.project-features {
    padding: 6rem 0;
    background-color: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.project-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(74, 107, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-top: auto;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* 项目详情区域 */
.project-details {
    padding: 6rem 0;
    background-color: white;
}

.details-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(74, 107, 255, 0.05);
}

.accordion-header h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 0;
}

.accordion-header i {
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 1000px;
}

.accordion-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin-bottom: 0;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-feature {
    background-color: rgba(74, 107, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.detail-feature h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-feature p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* 技术实现区域 */
.project-tech {
    padding: 6rem 0;
    background-color: #f8f9ff;
}

.tech-content {
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.tech-icon i {
    color: white;
    font-size: 1.2rem;
}

.tech-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tech-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 应用展示区域 */
.project-gallery {
    padding: 6rem 0;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 项目CTA区域 */
.project-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.qrcode {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .project-hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .project-hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .project-tags,
    .project-links {
        justify-content: center;
    }
    
    .tech-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tech-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .project-hero-image img {
        max-width: 90%;
        transform: perspective(1000px) rotateY(0deg);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .detail-features {
        grid-template-columns: 1fr;
    }
    
    .accordion-header {
        padding: 1.2rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 1.2rem;
    }
    
    .project-overview,
    .project-features,
    .project-details,
    .project-tech,
    .project-gallery,
    .project-cta {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .qrcode {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .project-hero-content h1 {
        font-size: 2rem;
    }
    
    .project-type {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .project-links .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .detail-item h4 {
        font-size: 1rem;
    }
    
    .tech-info h3 {
        font-size: 1.2rem;
    }
    
    .gallery-caption {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .project-overview,
    .project-features,
    .project-details,
    .project-tech,
    .project-gallery,
    .project-cta {
        padding: 3rem 0;
    }
}

/* 添加小屏幕设备的优化 */
@media (max-width: 400px) {
    .project-hero-content h1 {
        font-size: 1.7rem;
    }
    
    .project-hero {
        padding-top: 100px;
    }
    
    .project-tags span {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .qrcode {
        width: 150px;
        height: 150px;
    }
    
    .feature-list li {
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }
    
    .feature-list li::before {
        top: 8px;
        width: 5px;
        height: 5px;
    }
}