/**
 * Explore Detail Page Styles
 * 探索详情页样式
 */

/* ==================== Page Container ==================== */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== Page Title ==================== */
.detail-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
    .detail-page-title {
        font-size: 2.25rem;
    }
}

/* ==================== Breadcrumb - Centered ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 32px;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover:not(.breadcrumb-current) {
    color: #FD9169;
}

.breadcrumb-separator {
    color: #6b7280;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #FD9169;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-dropdown {
    position: relative;
}

.breadcrumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    color: #9ca3af;
}

.breadcrumb-btn:hover {
    background: rgba(253, 145, 105, 0.1);
    color: #FD9169;
}

.breadcrumb-btn svg {
    transition: transform 0.3s ease;
}

/* ==================== Detail Layout - 6:4 ==================== */
.detail-layout {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

/* ==================== Image Section ==================== */
.detail-image-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: floatImage 6s ease-in-out infinite;
}

.detail-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.detail-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #fff;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==================== Info Section - 无背景容器 ==================== */
.detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==================== 独立卡片 - 每个有独立背景和飘动 ==================== */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 每个卡片独立飘动动画 */
.info-card-1 { animation: floatCard1 5s ease-in-out infinite; }
.info-card-2 { animation: floatCard2 5.5s ease-in-out infinite; }
.info-card-3 { animation: floatCard3 6s ease-in-out infinite; }
.info-card-4 { animation: floatCard4 4.5s ease-in-out infinite; }

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ==================== Tags ==================== */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(253, 145, 105, 0.15);
    border: 1px solid rgba(253, 145, 105, 0.3);
    border-radius: 20px;
    color: #FD9169;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.detail-tags .tag:hover {
    background: rgba(253, 145, 105, 0.25);
}

/* ==================== Meta Info ==================== */
.detail-meta {
    /* 内部容器无需额外背景 */
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.meta-value {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== Description ==================== */
.detail-description {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== Action Buttons ==================== */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-btn.primary {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    color: #fff;
    animation: floatBtn 3s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(253, 145, 105, 0.4);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(253, 145, 105, 0.5);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(253, 145, 105, 0.4);
}

@keyframes floatBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==================== Back Link ==================== */
.detail-back {
    margin-top: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #FD9169;
}

/* ==================== Thumbnail Gallery ==================== */
.detail-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn:hover {
    border-color: rgba(253, 145, 105, 0.5);
}

.thumbnail-btn.active {
    border-color: #FD9169;
    box-shadow: 0 0 0 2px rgba(253, 145, 105, 0.3);
}

/* ==================== Category Dropdown Menu ==================== */
.cat-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 600px;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cat-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.cat-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-dropdown-menu a:hover {
    background: rgba(253, 145, 105, 0.15);
    color: #e5e7eb;
}

.cat-dropdown-menu a.active {
    background: rgba(253, 145, 105, 0.2);
    color: #FD9169;
}

/* 移动端下拉菜单 - 单列 + 线条隔断 + 滚动条 */
@media screen and (max-width: 767px) {
    .cat-dropdown-menu {
        min-width: 200px;
        max-width: 90vw;
        max-height: 60vh;
        overflow-y: auto;
        grid-template-columns: 1fr;
        padding: 8px;
    }
    .cat-dropdown-menu a {
        padding: 12px 16px;
        font-size: 0.85rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }
    .cat-dropdown-menu a:last-child {
        border-bottom: none;
    }
}

/* ==================== Inspiration Section (More Pages) ==================== */
.inspiration-section {
    margin-top: 60px;
    padding: 40px 0;
}

.inspiration-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.inspiration-wrapper {
    overflow: hidden;
    position: relative;
}

.inspiration-marquee {
    display: flex;
    gap: 16px;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.inspiration-marquee:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 关键: 自适应宽度，不切割图片 */
.inspiration-item {
    flex-shrink: 0;
    height: 280px;
    width: fit-content;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    text-decoration: none;
}

.inspiration-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(253, 145, 105, 0.3);
}

.inspiration-item img {
    height: 100%;
    width: auto;
    display: block;
}

.inspiration-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inspiration-item:hover .inspiration-caption {
    opacity: 1;
}

.inspiration-caption span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== Responsive ==================== */
@media screen and (max-width: 1050px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 767px) {
    .page-container {
        padding: 0 16px;
    }
    
    .detail-page-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .detail-image-section {
        padding: 16px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .detail-thumbnails {
        gap: 8px;
    }
    
    .thumbnail-btn {
        width: 60px;
        height: 60px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .inspiration-item {
        height: 200px;
    }
}
