/* ==================== 模板详情页样式 ==================== */

/* 面包屑导航 - 科技风设计 */
.breadcrumb-section {
    padding: 24px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.breadcrumb-section .container {
    max-width: 1440px;
    position: relative;
    z-index: 1;
}

.breadcrumb-section .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-section .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-section .breadcrumb a::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0.8;
}

.breadcrumb-section .breadcrumb a:nth-child(3)::before {
    content: '\f07b';
}

.breadcrumb-section .breadcrumb a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.breadcrumb-section .breadcrumb i {
    font-size: 10px;
    color: #ffffff;
    margin: 0 2px;
}

/* 面包屑 SVG 图标强制白色 */
.breadcrumb-section .breadcrumb svg {
    color: #ffffff !important;
}

.breadcrumb-section .breadcrumb svg path {
    fill: #ffffff !important;
}

.breadcrumb-section .breadcrumb span {
    color: #ffffff;
    font-weight: 600;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-section .breadcrumb span::before {
    content: '\f15b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0.9;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 16px 0;
    }
    
    .breadcrumb-section .breadcrumb {
        font-size: 13px;
        padding: 10px 16px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .breadcrumb-section .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-section .breadcrumb a,
    .breadcrumb-section .breadcrumb span {
        flex-shrink: 0;
        padding: 3px 10px;
        font-size: 13px;
    }
    
    .breadcrumb-section .breadcrumb span {
        max-width: 200px;
    }
}

/* 详情主体 */
.template-detail-section {
    padding: 50px 0;
    background: #fff;
}

.template-detail-section .container {
    max-width: 1440px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    align-items: start;
}

/* 左侧图片预览轮播 */
.preview-image-carousel {
    position: relative;
    width: 100%;
}

.preview-image {
    width: 100%;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    max-height: 700px;
}

.preview-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 图片悬停提示 */
.image-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 2px 16px;
    /* border-radius: 20px; */
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 1;
  }
  
  .preview-image-carousel:hover .image-hint {
    opacity: 0;
    visibility: hidden;
  }
  
  .image-hint i {
    font-size: 12px;
  }

/* 轮播按钮 - 默认隐藏，毛玻璃效果 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

/* 箭头图标强制白色 */
.carousel-btn i {
    color: #fff !important;
}

/* SVG 图标强制白色（Font Awesome） */
.carousel-btn svg {
    color: #fff !important;
}

.carousel-btn svg path {
    fill: #fff !important;
}

/* 悬浮时显示按钮 */
.preview-image-carousel:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    transform: translateY(-50%) scale(0.95);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.preview-image-carousel:hover .carousel-indicators {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #fff;
    border-color: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 右侧信息 */
.template-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    /* margin-bottom: 20px; */
}

.template-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.template-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.template-stats span i {
    color: #3b82f6;
}

/* 完整宽度的模板介绍 */
.template-description-full {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.template-description-full h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.template-description-full p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* 模板规格表格 */
.template-specs {
    margin-bottom: 30px;
}

.template-specs table {
    width: 100%;
}

.template-specs tr {
    border-bottom: 1px solid #f0f0f0;
}

.template-specs tr:last-child {
    border-bottom: none;
}

.template-specs td {
    padding: 12px 0;
    font-size: 14px;
}

.spec-label {
    color: #666;
    width: 100px;
}

.spec-value {
    color: #333;
}

/* 标签区域 */
.template-tags-section {
    margin-bottom: 30px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.detail-tag:hover {
    background: #3b82f6;
    color: white;
}

.detail-tag i {
    font-size: 12px;
}

/* 操作按钮 */
.template-actions-large {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-preview-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    background: #3b82f6;
    color: white;
    min-width: 200px;
}

.btn-preview-large:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-preview-large i {
    font-size: 18px;
}

/* 相关推荐区域 */
.related-templates-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.related-templates-section .container {
    max-width: 1440px;
}

.section-title {
    /* display: flex; */
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.section-title i {
    color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 轮播按钮在中等屏幕上稍小 */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 12px;
    }
    
    .carousel-next {
        right: 12px;
    }
}

@media (max-width: 640px) {
    .template-actions-large {
        flex-direction: column;
    }
    
    /* 移动端轮播控制器 */
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 12px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 20px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-hint {
      font-size: 12px;
      padding: 6px 12px;
      bottom: 12px;
    }
  }