/* ========================================
   酒店页面增强样式
   ======================================== */

/* ========== 标题区域美化 ========== */
.section-header-enhanced {
    text-align: center;
    margin-bottom: 5rem;
    padding: 4rem 0 2rem;
    position: relative;
}

/* 顶部标签徽章 */
.section-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.12), 
        rgba(59, 130, 246, 0.08)
    );
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #10b981;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.section-label-badge i {
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 主标题 */
.section-title-main {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, 
        #111827 0%, 
        #10b981 50%, 
        #059669 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite, fadeInUp 1s ease;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 描述文字 */
.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1.2s ease;
}

/* 标题装饰线 */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

.decoration-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.3) 20%,
        rgba(16, 185, 129, 0.6) 50%,
        rgba(16, 185, 129, 0.3) 80%,
        transparent 100%
    );
    position: relative;
}

.decoration-line::before,
.decoration-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    animation: lineGlow 2s ease-in-out infinite;
}

.decoration-line::before {
    left: 0;
}

.decoration-line::after {
    right: 0;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* ========== 酒店区域整体优化 ========== */
.hotels-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #f9fafb 50%,
        #ffffff 100%
    );
    position: relative;
    overflow: hidden;
}

.hotels-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(16, 185, 129, 0.03) 0%, 
        transparent 70%
    );
    pointer-events: none;
}

/* ========== 酒店卡片美化 ========== */
.hotel-item {
    display: flex;
    flex-direction: column;
}

.hotel-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotel-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(59, 130, 246, 0.01));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.hotel-card:hover::before {
    transform: scaleX(1);
    animation: gradientSlide 3s linear infinite;
}

.hotel-card:hover::after {
    opacity: 1;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* 星级评分 */
.hotel-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0;
}

.hotel-rating i {
    color: #fbbf24;
    font-size: 0.95rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    transition: all 0.3s ease;
}

.hotel-card:hover .hotel-rating i {
    transform: scale(1.08) rotate(8deg);
}

.hotel-card:hover .hotel-rating i:nth-child(1) { transition-delay: 0s; }
.hotel-card:hover .hotel-rating i:nth-child(2) { transition-delay: 0.05s; }
.hotel-card:hover .hotel-rating i:nth-child(3) { transition-delay: 0.1s; }
.hotel-card:hover .hotel-rating i:nth-child(4) { transition-delay: 0.15s; }
.hotel-card:hover .hotel-rating i:nth-child(5) { transition-delay: 0.2s; }

/* 酒店标题 */
.hotel-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
    height: auto;
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hotel-card:hover .hotel-title {
    color: #10b981;
}

/* 信息块 */
.info-block {
    margin-bottom: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.04), 
        rgba(59, 130, 246, 0.03),
        rgba(139, 92, 246, 0.02)
    );
    border-radius: 12px;
    border-left: 3px solid #10b981;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-card:hover .info-block::before {
    opacity: 1;
}

.info-block:hover {
    transform: translateX(5px);
    border-left-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.info-block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: #10b981;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.info-block-title i {
    font-size: 0.95rem;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.info-block-content {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* 特色标签 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.1rem 0;
    align-items: flex-start;
    height: auto;
    max-height: 80px;
    overflow: hidden;
    align-content: flex-start;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.12), 
        rgba(59, 130, 246, 0.08)
    );
    color: #059669;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.feature-tag:hover::before {
    left: 100%;
}

/* 价格区域 */
.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.1rem;
    margin-top: auto;
    border-top: 2px solid rgba(16, 185, 129, 0.12);
    gap: 0.8rem;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label-ref {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
}

.hotel-card:hover .price-number {
    transform: scale(1.05);
    color: #059669;
}

.price-unit {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* 预订按钮 */
.book-btn {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    background-size: 200% 100%;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background-position: 100% 0;
}

.book-btn:hover::before {
    width: 300px;
    height: 300px;
}

.book-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.book-btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.book-btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

.book-btn-text {
    font-size: 0.9375rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* ========== 酒店预订弹窗样式 ========== */
.hotel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.hotel-modal .modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #10b981;
}

.modal-form .mb-3 {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.modal-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.modal-form .form-control:focus {
    outline: none;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.modal-form select.form-control {
    cursor: pointer;
}

.modal-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.modal-submit-btn i {
    font-size: 1.25rem;
}

/* ========== 响应式优化 ========== */
@media (max-width: 1200px) {
    .hotel-card {
        padding: 2rem;
    }
    
    .hotel-title {
        font-size: 1.375rem;
        height: 3.85rem;
    }
    
    .info-block {
        height: 115px;
        padding: 1.125rem 1.25rem;
    }
    
    .feature-tags {
        height: 110px;
    }
    
    .price-number {
        font-size: 1.75rem;
    }
    
    .book-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .book-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    /* 平板电脑：2列显示 */
    .hotel-card {
        padding: 2rem;
    }
    
    .hotel-title {
        font-size: 1.375rem;
        height: auto;
        min-height: 3.85rem;
    }
    
    .info-block {
        padding: 1.125rem 1.25rem;
        height: auto;
        min-height: 110px;
    }
    
    .feature-tags {
        height: auto;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    /* 大屏手机：1列显示 */
    .section-header-enhanced {
        padding: 3rem 0 1rem;
        margin-bottom: 3rem;
    }

    .section-label-badge {
        font-size: 0.75rem;
        padding: 0.625rem 1.25rem;
        gap: 0.5rem;
    }

    .section-label-badge i {
        font-size: 1rem;
    }

    .section-title-main {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .decoration-line {
        width: 80px;
    }
    
    .hotel-card {
        padding: 2rem;
    }
    
    .hotel-title {
        font-size: 1.5rem;
        height: auto;
        min-height: auto;
    }
    
    .info-block {
        height: auto;
        min-height: auto;
    }
    
    .info-block-content {
        -webkit-line-clamp: 3;
    }
    
    .feature-tags {
        height: auto;
        min-height: auto;
    }
    
    .price-number {
        font-size: 2rem;
    }
    
    .book-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .section-title-main {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .decoration-line {
        width: 60px;
    }

    .decoration-dot {
        width: 6px;
        height: 6px;
    }
    
    .hotel-title {
        font-size: 1.25rem;
    }
    
    .price-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .book-btn {
        width: 100%;
        justify-content: center;
    }
}
