/* ========================================
   详情页样式 - 黑色主题高级配色
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* 粉紫蓝梦幻配色 */
    --primary: #EC4899;
    --primary-light: #F472B6;
    --accent: #A855F7;
    
    /* 背景色系统 */
    --bg-dark: #0A0A0F;
    --bg-gradient-start: #1A1A24;
    --bg-gradient-end: #F9FAFB;
    
    /* 文字色系统 */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-dark: #1F2937;
    
    /* 边框系统 */
    --border-primary: rgba(255, 255, 255, 0.08);
    
    /* 精致渐变 */
    --gradient-primary: linear-gradient(135deg, #EC4899 0%, #A855F7 50%, #6366F1 100%);
    --gradient-accent: linear-gradient(135deg, #F472B6 0%, #A855F7 100%);
}

/* 全局 - 优雅配色 */
body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   项目英雄区 - 与主页一致的背景
   ======================================== */
.project-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    font-size: 0.9375rem;
    position: relative;
    z-index: 2;
}

.project-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.project-breadcrumb a:hover {
    color: var(--text-primary);
}

.project-breadcrumb span {
    color: var(--text-secondary);
    opacity: 0.5;
}

.project-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.project-title {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-title::before {
    content: '';
    display: none;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid var(--border-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.meta-icon {
    font-size: 1.125rem;
    opacity: 0.8;
}

/* ========================================
   项目展示
   ======================================== */
.project-showcase {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.showcase-video {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.showcase-video:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 60px 120px -20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.video-placeholder {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FF6B9D;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 25px 80px rgba(255, 107, 157, 0.5);
    background: white;
}

.play-button span {
    padding-left: 5px;
}

/* ========================================
   项目信息
   ======================================== */
.project-info {
    padding: 6rem 0;
    background: var(--bg-gradient-end);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
}

.info-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease backwards;
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }
.info-section:nth-child(4) { animation-delay: 0.4s; }

.section-title-mini {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1F2937;
    display: block;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 1rem;
}

.section-title-mini::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.project-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    font-weight: 400;
}

/* ========================================
   创意亮点
   ======================================== */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.highlight-card {
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: transparent;
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-card h3 {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1F2937;
    letter-spacing: -0.01em;
}

.highlight-card p {
    color: #4B5563;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   制作时间线
   ======================================== */
.process-timeline {
    position: relative;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    animation: slideInLeft 0.6s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.15);
}

.timeline-content {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937;
    letter-spacing: -0.01em;
}

.timeline-content p {
    color: #4B5563;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.timeline-duration {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========================================
   画廊网格
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
}

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

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

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

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

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

/* ========================================
   侧边栏
   ======================================== */
.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInRight 0.8s ease backwards;
}

.sidebar-card:nth-child(1) { animation-delay: 0.1s; }
.sidebar-card:nth-child(2) { animation-delay: 0.2s; }
.sidebar-card:nth-child(3) { animation-delay: 0.3s; }
.sidebar-card:nth-child(4) { animation-delay: 0.4s; }

.sidebar-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.sidebar-card h3 {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1F2937;
    letter-spacing: -0.01em;
}

/* 项目数据 */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    background: var(--gradient-primary);
    transform: translateX(4px);
}

.stat-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #EC4899;
}

.stat-item:hover .stat-label {
    color: white;
}

.stat-item:hover .stat-value {
    color: white;
}

/* 技术标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: -0.01em;
}

.tech-tag:nth-child(2n) {
    background: var(--gradient-accent);
}

.tech-tag:nth-child(3n) {
    background: linear-gradient(135deg, #10B981, #059669);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 服务列表 */
.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.service-list li:hover {
    color: var(--primary);
    padding-left: 0.75rem;
}

/* CTA卡片 */
.cta-card {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.cta-button {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ========================================
   相关项目
   ======================================== */
.related-projects {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.related-projects .section-title {
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid var(--border-primary);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.related-image svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image svg {
    transform: scale(1.05);
}

.related-info {
    padding: 1.75rem;
}

.related-info h3 {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.related-card:hover .related-info h3 {
    color: var(--primary-light);
}

.related-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.related-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.related-card:hover .related-tag {
    background: var(--primary-light);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
}
