/* ===== Culture Detail Page Specific Styles ===== */

/* Loading 状态 */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-purple, #852d88);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #999;
    font-size: 0.95rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.main-content {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--primary-purple);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-pink);
}

.detail-header {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-info {
    padding: 2rem;
}

.detail-title {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.detail-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-content {
    padding: 1.5rem;
    background-color: #fff;
    margin: 2rem auto;
    /* display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem; */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-main {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.content-main p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-main h2 {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-purple);
}

.content-main h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 1rem;
}

.content-main img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.content-main ul,
.content-main ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-main li {
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.6;
}

.content-main blockquote {
    border-left: 4px solid var(--primary-pink);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0 10px 10px 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-card h4 {
    font-size: 1.1rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.travel-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.travel-tips li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.travel-tips li:last-child {
    border-bottom: none;
}

.travel-tips li i {
    color: var(--primary-purple);
    flex-shrink: 0;
}

.travel-tips li span {
    color: #555;
    font-size: 0.9rem;
}

.sidebar-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
}

.sidebar-link:last-child {
    margin-bottom: 0;
}

.sidebar-link:hover .sidebar-title {
    color: var(--primary-purple);
}

.detail-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.detail-tags span {
    display: inline-block;
    background: #f5f0ff;
    color: var(--primary-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.related-culture {
    margin-top: 3rem;
}

.related-culture h3 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-category {
    font-size: 0.8rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.related-card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.related-card-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 5%;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .detail-image {
        height: 250px;
    }

    .content-main {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}