/**
 * @file 项目详情页面的CSS样式
 * @description 提供项目详情页面的视觉样式
 */

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

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-logo:hover {
    color: #0077cc;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0077cc;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0077cc;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主要内容样式 */
.main-content {
    padding: 40px 0;
}

/* 项目标题部分 */
.project-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.project-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

.meta-item i {
    color: #0077cc;
}

/* 项目图片部分 */
.project-images {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}

.project-images.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.image-container {
    display: flex;
    flex-direction: column;
}

.main-image-container {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.main-image:hover {
    transform: scale(1.02);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-image-container {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* 项目描述部分 */
.project-description {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;
}

.project-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #0077cc;
    bottom: 0;
    left: 0;
}

.description-text {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05rem;
}

/* 项目详情部分 */
.project-details {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.6s, transform 0.6s 0.6s;
}

.project-details.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.detail-card {
    background-color: #fff;
    border-radius: 8px;
    padding: a5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.detail-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.detail-text {
    color: #555;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.tech-item {
    background-color: #e9f5ff;
    color: #0077cc;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tech-item:hover {
    background-color: #d0e8ff;
}

/* 相关项目部分 */
.related-projects {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.8s, transform 0.6s 0.8s;
}

.related-projects.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.project-card-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-card-link {
    display: inline-block;
    text-decoration: none;
    color: #0077cc;
    font-weight: 500;
    transition: color 0.3s;
}

.project-card-link:hover {
    color: #0055aa;
}

/* 页脚样式 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.footer-text {
    color: #bbb;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    color: #bbb;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: #0077cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #3a3a3a;
    color: #888;
}

/* 灯箱效果 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ddd;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0077cc;
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0055aa;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .project-title {
        font-size: 2.2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-image {
        height: 80px;
    }
}

/* 返回按钮样式 */
.back-button {
    margin-bottom: var(--space-lg);
    margin-top: 40px;
}

.back-button .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* 项目图片展示样式 */
.project-image {
    padding: var(--space-xl) 0;
}

.image-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition-normal);
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-xl);
}

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

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* 项目导航按钮 */
.project-navigation {
    padding: var(--space-xl) 0;
    background: rgba(0, 102, 255, 0.02);
}

.nav-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .image-container {
        padding: 0 var(--space-md);
    }
}

/* 文章页面样式 */
.article-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(255, 55, 95, 0.05) 100%);
    text-align: center;
}

.article-meta {
    margin-bottom: var(--space-md);
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 102, 255, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: var(--space-sm);
}

.article-date {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.article-content {
    padding: var(--space-xl) 0;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md) 0;
    color: var(--color-dark);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--space-xs);
}

.content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm) 0;
    color: var(--color-dark);
}

.content p {
    margin-bottom: var(--space-md);
    color: var(--color-gray-700);
}

.content ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
    padding-left: 0;
}

.content ul li {
    margin-bottom: var(--space-xs);
    color: var(--color-gray-700);
    position: relative;
}

.content ul li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.content strong {
    color: var(--color-dark);
    font-weight: 600;
}

.related-content {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-200);
}

.related-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.related-link {
    display: block;
    padding: var(--space-md);
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: var(--transition-normal);
}

.related-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
    border-color: var(--color-primary);
}

.link-title {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.link-description {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.5rem;
    }
    
    .content h3 {
        font-size: 1.25rem;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
}

/* 图片画廊样式 */
.project-gallery {
    margin: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 255, 0.8) 0%,
        rgba(255, 55, 95, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    pointer-events: none;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.image-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.image-hint {
    font-size: 1rem;
    font-weight: 500;
}

/* 轮播模态框样式 */
.carousel-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: all 0.3s ease;
    flex-direction: column;
}

.carousel-modal.active {
    display: flex;
    opacity: 1;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.carousel-counter {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    color: #ff375f;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 55, 95, 0.3);
}

.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn.prev {
    left: 40px;
}

.carousel-btn.next {
    right: 40px;
}

.carousel-btn svg {
    pointer-events: none;
}

.modal-close svg {
    pointer-events: none;
}

.carousel-image-container {
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease;
    user-select: none;
}

.carousel-image:active {
    cursor: grabbing;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zoom-level {
    color: #fff;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.carousel-tips {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    max-height: 120px;
}

.carousel-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-thumbnail:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-thumbnail.active {
    border-color: #0066ff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-btn.prev {
        left: 20px;
    }
    
    .carousel-btn.next {
        right: 20px;
    }
    
    .carousel-header {
        padding: 15px 20px;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .carousel-thumbnails {
        padding: 15px 10px;
    }
    
    .carousel-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* AI化妆镜详情页图片样式 */
.makeup-image-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.makeup-image-item {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.makeup-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.makeup-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .makeup-image-container {
        padding: 0 15px;
        margin: 40px auto;
    }
}

@media (max-width: 480px) {
    .makeup-image-container {
        padding: 0 10px;
        margin: 30px auto;
    }
} 