/* ==================================================
   文化页面 - 现代化卡片设计
   解决显示不完整问题
   ================================================== */

/* 文化项目容器 */
.culture-item {
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

/* 景点/文化卡片基础样式 */
.attraction-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.attraction-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #3b82f6, #10b981);
    background-size: 200% 200%;
    -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.5s ease;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.attraction-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.attraction-card:hover::before {
    opacity: 0.8;
}

/* 图片容器 */
.attraction-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.attraction-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.attraction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.95) saturate(1.1);
}

.attraction-card:hover .attraction-image {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1) saturate(1.2);
}

/* 图片遮罩层 */
.attraction-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(15, 23, 42, 0.3) 60%,
        rgba(15, 23, 42, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.attraction-card:hover .attraction-overlay {
    opacity: 1;
}

/* 徽章容器 */
.attraction-badges {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    z-index: 10;
    flex-wrap: wrap;
}

/* 徽章样式 */
.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.attraction-card:hover .badge-item {
    transform: scale(1.05) translateY(-2px);
}

.badge-hot {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-hot i {
    color: #ef4444;
}

.badge-recommend {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-recommend i {
    color: #3b82f6;
}

.badge-cultural {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-cultural i {
    color: #f59e0b;
}

/* 卡片内容区 */
.attraction-content {
    padding: 2rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* 卡片头部 */
.attraction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.attraction-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.attraction-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 100px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    flex-shrink: 0;
}

.attraction-rating i {
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.rating-score {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #f59e0b;
}

/* 介绍文字 */
.attraction-intro {
    color: #64748b;
    line-height: 1.75;
    font-size: 0.9375rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 特色标签 */
.attraction-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.feature-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-tag > * {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-tag:hover {
    border-color: #10b981;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

.feature-tag:hover::before {
    opacity: 1;
}

.feature-tag:hover > * {
    color: #ffffff;
}

.feature-tag i {
    font-size: 1rem;
    color: #10b981;
}

.feature-tag:hover i {
    color: #ffffff;
}

/* 卡片底部 */
.attraction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 2px solid #f1f5f9;
    margin-top: auto;
}

/* 价格显示 */
.attraction-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
}

.price-unit {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* 预订按钮 */
.btn-book {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.btn-book::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-book:hover::before {
    opacity: 1;
}

.btn-book:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.btn-book i {
    transition: transform 0.3s ease;
}

.btn-book:hover i {
    transform: translateX(4px);
}

/* ========== 响应式设计 ========== */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .culture-item {
        margin-bottom: 3rem;
    }
    
    .attraction-image-wrapper {
        height: 200px;
    }
}

/* 平板横屏 (992px - 1199px) */
@media (max-width: 1199px) {
    .attraction-image-wrapper {
        height: 200px;
    }
    
    .attraction-content {
        padding: 1.75rem 1.5rem;
    }
    
    .attraction-title {
        font-size: 1.375rem;
    }
}

/* 平板竖屏 (768px - 991px) */
@media (max-width: 991px) {
    .culture-item {
        margin-bottom: 2rem;
    }
    
    .attraction-image-wrapper {
        height: 180px;
    }
    
    .attraction-content {
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }
    
    .attraction-title {
        font-size: 1.25rem;
    }
    
    .attraction-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .btn-book {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* 手机端 (576px - 767px) */
@media (max-width: 767px) {
    .culture-item {
        margin-bottom: 1.75rem;
    }
    
    .attraction-card {
        border-radius: 20px;
    }
    
    .attraction-image-wrapper {
        height: 170px;
    }
    
    .attraction-content {
        padding: 1.25rem 1rem;
        gap: 0.875rem;
    }
    
    .attraction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .attraction-rating {
        align-self: flex-start;
    }
    
    .attraction-title {
        font-size: 1.125rem;
    }
    
    .attraction-intro {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
    
    .attraction-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }
    
    .attraction-price {
        justify-content: center;
    }
    
    .btn-book {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .badge-item {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* 小手机 (< 576px) */
@media (max-width: 575px) {
    .attraction-image-wrapper {
        height: 200px;
    }
    
    .attraction-content {
        padding: 1rem 0.875rem;
    }
    
    .attraction-title {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .attraction-features {
        gap: 0.375rem;
    }
    
    .feature-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .feature-tag i {
        font-size: 0.875rem;
    }
    
    .badge-item {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* 触摸设备：优化悬停效果 */
@media (hover: none) {
    .attraction-card:hover {
        transform: none;
    }
    
    .attraction-card:hover .attraction-image {
        transform: scale(1.05);
    }
    
    .feature-tag:hover {
        transform: none;
    }
    
    .btn-book:hover {
        transform: none;
    }
}

/* 降低动效：性能优化 */
@media (prefers-reduced-motion: reduce) {
    .attraction-card,
    .attraction-image,
    .feature-tag,
    .btn-book,
    .badge-item {
        animation: none;
        transition-duration: 0.01ms;
    }
}
