/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
/* 会话信息样式 */
.session-info {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    border-left: 3px solid #3498db;
}

.session-info small {
    display: flex;
    align-items: center;
    gap: 15px;
}

.session-info i {
    color: #3498db;
    margin-right: 5px;
}

/* 安全提示 */
.security-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #856404;
}

.security-note i {
    color: #f39c12;
    margin-right: 10px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 20px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #5a6268;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 搜索框 */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 20px 0 30px;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #2980b9;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.search-result-item i {
    margin-right: 10px;
    color: #3498db;
}

/* 统计卡片 */
.hotel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 酒店卡片 */
.hotels-section {
    margin-bottom: 50px;
}

.section-desc {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.hotel-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.hotel-header {
    padding: 20px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.hotel-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
    font-size: 0.9rem;
}

.hotel-body {
    padding: 20px;
}

.hotel-body p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hotel-actions {
    display: flex;
    justify-content: flex-end;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-load-more {
    background-color: #2ecc71;
    color: white;
    font-size: 16px;
    padding: 12px 30px;
    margin: 20px auto;
    display: block;
}

.btn-load-more:hover {
    background-color: #27ae60;
}

.btn-load-more:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 酒店信息卡片 */
.hotel-info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hotel-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.hotel-info-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-text {
    color: #7f8c8d;
    font-weight: 500;
}

.hotel-info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.info-item i {
    color: #3498db;
    width: 20px;
}

/* 评论卡片 */
.reviews-container {
    margin-bottom: 30px;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.reviewer-details h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-date {
    color: #95a5a6;
    font-size: 0.9rem;
}

.review-rating {
    text-align: right;
}

.review-rating .score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
    display: block;
    margin-bottom: 5px;
}

.stars-small {
    color: #f1c40f;
    font-size: 0.9rem;
}

.review-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.review-footer {
    color: #95a5a6;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 加载更多区域 */
.load-more-container {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.load-more-info {
    color: #7f8c8d;
    margin-top: 10px;
    font-size: 0.95rem;
}

.no-more {
    color: #95a5a6;
    font-style: italic;
}

/* 加载动画 */
.d-none {
    display: none !important;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示 */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #ffeaea;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

/* 错误页面 */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.error-card {
    text-align: center;
    max-width: 500px;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.error-icon {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-card h1 {
    font-size: 6rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.error-card h2 {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.error-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 页脚 */
footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #7f8c8d;
}

.footer-info {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-info i {
    margin-right: 8px;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    .hotel-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hotel-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .review-rating {
        text-align: left;
    }
}