/* ========================================
   TK云大师 - 案例详情页样式
   参考华为云案例详情页设计
   ======================================== */

/* 详情页主容器 */
.detail-page {
    min-height: 100vh;
    background: var(--color-background);
    padding-top: 100px;
    position: relative;
}

/* Hero Banner区域 */
.detail-hero-banner {
    background: linear-gradient(135deg, rgba(29, 29, 66, 0.8), rgba(21, 21, 45, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

/* 背景媒体（图片/视频） */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-media img,
.hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.9);
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.6) 100%);
}

.detail-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7000ff, #18cae6, #7000ff);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 关键数据卡片 */
.key-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2.5rem 0;
}

.key-stat-item {
    text-align: center;
}

.key-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #18cae6;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.key-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* CTA按钮 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid rgba(24, 202, 230, 0.5);
    border-radius: 4px;
    color: #18cae6;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    background: rgba(24, 202, 230, 0.1);
    border-color: #18cae6;
    transform: translateY(-2px);
}

/* 详情主内容区 */
.detail-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* 内容区块 */
.detail-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-content {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.section-content p {
    margin: 0 0 1rem 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* 信息标签 */
.info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(24, 202, 230, 0.1);
    border: 1px solid rgba(24, 202, 230, 0.3);
    border-radius: 20px;
    color: #18cae6;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* 列表样式 */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

.detail-list li::before {
    content: '●';
    color: #18cae6;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* 解决方案子标题 */
.solution-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
}

.solution-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 侧边栏信息卡片 */
.sidebar-card {
    background: rgba(29, 29, 66, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.sidebar-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.sidebar-info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-info-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

/* 两栏布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.detail-main-content {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 120px;
}

/* 图片画廊 */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(24, 202, 230, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 灯箱 */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay.active { display: flex; pointer-events: auto; }

.lightbox-content {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: transform 0.2s ease;
    cursor: grab;
}

.lightbox-img.grabbing {
    cursor: grabbing;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    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;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close { top: -56px; right: 0; transform: none; }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: rgba(24, 202, 230, 0.25);
    border-color: rgba(24, 202, 230, 0.4);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: -48px; right: 8px; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .detail-page {
        padding-top: 80px;
    }
    
    .detail-hero-banner {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-main-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .key-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .key-stat-number {
        font-size: 2.5rem;
    }
    
    .detail-content-wrapper {
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-content {
        font-size: 0.95rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .key-stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .sidebar-card {
        padding: 1.25rem;
    }
}
