﻿/* ============================================
   微动民宿&喫茶 - 自定义样式（明亮温馨风格）
   ============================================ */

/* CSS变量 - 明亮温馨配色 */
:root {
    --hotel-primary: #c4956a;
    --hotel-secondary: #e8c9a0;
    --hotel-accent: #d4a574;
    --hotel-dark: #6b5344;
    --hotel-light: #ffffff;
    --hotel-cream: #fdf8f3;
    --hotel-warm-bg: #fefcf9;
    --hotel-text: #5a4a3a;
    --hotel-muted: #9a8b7a;
    --hotel-border: #f0e6d8;
    --hotel-gold: #e0b878;
    --hotel-shadow: 0 2px 12px rgba(196, 149, 106, 0.08);
    --hotel-shadow-hover: 0 8px 25px rgba(196, 149, 106, 0.12);
    --hotel-radius: 12px;
    --hotel-transition: all 0.3s ease;
}

/* 全局样式 */
body {
    font-family: 'Noto Serif SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, serif;
    color: var(--hotel-text);
    line-height: 1.8;
    background-color: var(--hotel-warm-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
    font-weight: 600;
    color: var(--hotel-dark);
    letter-spacing: 0.5px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* 导航栏 */
.navbar {
    padding: 0.8rem 0;
    transition: var(--hotel-transition);
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hotel-border);
    box-shadow: 0 2px 10px rgba(196, 149, 106, 0.06);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-family: 'Noto Serif SC', serif;
    color: var(--hotel-dark) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--hotel-transition);
    position: relative;
    color: var(--hotel-text) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--hotel-dark) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hotel-dark), transparent);
    border-radius: 2px;
}

.dropdown-menu {
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius);
    box-shadow: var(--hotel-shadow-hover);
    background: var(--hotel-light);
}

.dropdown-item {
    color: var(--hotel-text);
    transition: var(--hotel-transition);
}

.dropdown-item:hover {
    background: var(--hotel-cream);
    color: var(--hotel-primary);
}

/* Hero区域 */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(180, 140, 100, 0.35), rgba(210, 170, 130, 0.25)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(120, 80, 50, 0.15) 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    color: #ffffff;
    letter-spacing: 3px;
    font-weight: 700;
}

.hero-subtitle {
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.45), 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
    color: #ffffff !important;
    font-weight: 400;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面头部 */
.page-header {
    min-height: 320px;
    background: linear-gradient(135deg, rgba(180, 140, 100, 0.4), rgba(210, 170, 130, 0.3)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    margin-top: 64px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hotel-gold), transparent);
}

.page-header h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.page-header p {
    color: #ffffff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), 0 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* 四栏特色卡片 */
.feature-card-home {
    transition: var(--hotel-transition);
    background: var(--hotel-light);
    border: 1px solid var(--hotel-border);
    overflow: hidden;
    border-radius: var(--hotel-radius);
}

.feature-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--hotel-shadow-hover);
    border-color: var(--hotel-secondary);
}

.feature-card-home .card-img-top {
    transition: transform 0.5s ease;
}

.feature-card-home:hover .card-img-top {
    transform: scale(1.08);
}

.feature-card-home .card-body {
    padding: 1.5rem 1rem;
}

.feature-card-home h5 {
    color: var(--hotel-dark);
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif SC', serif;
}

.feature-card-home i {
    color: var(--hotel-primary);
}

/* 特色服务卡片 */
.feature-card {
    background: var(--hotel-light);
    border-radius: var(--hotel-radius);
    transition: var(--hotel-transition);
    border: 1px solid var(--hotel-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hotel-shadow-hover);
    border-color: var(--hotel-secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.25);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

/* 房型卡片 */
.room-card {
    border-radius: var(--hotel-radius) !important;
    overflow: hidden;
    transition: var(--hotel-transition);
    background: var(--hotel-light);
    border: 1px solid var(--hotel-border) !important;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hotel-shadow-hover);
    border-color: var(--hotel-secondary) !important;
}

.room-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.room-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(60, 35, 20, 0.2));
    pointer-events: none;
}

.room-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-img-wrapper img {
    transform: scale(1.08);
}

.room-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(196, 149, 106, 0.3);
}

/* 价格样式 */
.price-text {
    color: var(--hotel-primary);
    font-weight: 600;
    font-size: 1.4rem;
    font-family: 'Noto Serif SC', serif;
}

.price-tag {
    color: var(--hotel-primary);
    font-weight: 600;
    font-size: 1.3rem;
    font-family: 'Noto Serif SC', serif;
}

/* 自定义按钮 */
.btn-hotel {
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    color: #ffffff;
    border: none;
    border-radius: var(--hotel-radius);
    font-weight: 500;
    transition: var(--hotel-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', serif;
    box-shadow: 0 4px 12px rgba(196, 149, 106, 0.25);
}

.btn-hotel:hover {
    background: linear-gradient(135deg, var(--hotel-accent), var(--hotel-primary));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 149, 106, 0.35);
}

.btn-hotel:active {
    transform: translateY(0);
}

.btn-outline-dark {
    border-color: var(--hotel-primary);
    color: var(--hotel-primary);
    border-radius: var(--hotel-radius);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.btn-outline-dark:hover {
    background: var(--hotel-primary);
    border-color: var(--hotel-primary);
    color: #ffffff;
}

/* 评价卡片 */
.review-card {
    border-radius: var(--hotel-radius) !important;
    transition: var(--hotel-transition);
    background: var(--hotel-light);
    border: 1px solid var(--hotel-border) !important;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hotel-shadow-hover);
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    color: var(--hotel-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section a {
    position: relative;
    z-index: 2;
}

.cta-section .btn-light {
    background: #ffffff;
    color: var(--hotel-primary);
    border: none;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(107, 83, 68, 0.2);
}

.cta-section .btn-light:hover {
    background: var(--hotel-cream);
    color: var(--hotel-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 83, 68, 0.25);
}

/* 成功图标 */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 3rem;
    color: #2e7d32;
}

/* 酒店主题颜色类 */
.bg-hotel-subtle {
    background-color: rgba(196, 149, 106, 0.08) !important;
}

.text-hotel {
    color: var(--hotel-primary) !important;
}

.bg-hotel {
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent)) !important;
}

/* 联系信息 */
.contact-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.25);
}

.contact-icon i {
    font-size: 1.3rem;
    color: #ffffff;
}

/* 统计图标 */
.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--hotel-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.3rem;
    color: var(--hotel-primary);
}

/* 团队头像 */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.8rem;
    font-family: 'Noto Serif SC', serif;
}

/* 房间详情图片 */
.room-detail-img img {
    transition: transform 0.5s ease;
    border-radius: var(--hotel-radius);
}

.room-detail-img:hover img {
    transform: scale(1.03);
}

/* 表单样式增强 */
.form-control:focus,
.form-select:focus {
    border-color: var(--hotel-secondary);
    box-shadow: 0 0 0 0.2rem rgba(196, 149, 106, 0.15);
}

.form-control,
.form-select {
    border-radius: var(--hotel-radius);
    border-color: var(--hotel-border);
    background: var(--hotel-light);
}

/* 页脚 */
footer {
    margin-top: 0 !important;
    background: linear-gradient(180deg, #fdf8f3, #f5ebe0);
    color: var(--hotel-text);
    border-top: 1px solid var(--hotel-border);
}

footer a {
    color: var(--hotel-muted) !important;
    transition: var(--hotel-transition);
}

footer a:hover {
    color: var(--hotel-primary) !important;
}

footer h5 {
    color: var(--hotel-dark);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.bg-dark {
    background: linear-gradient(180deg, var(--hotel-primary), var(--hotel-accent)) !important;
}

/* 徽章样式 */
.badge.bg-hotel {
    background: linear-gradient(135deg, var(--hotel-primary), var(--hotel-accent)) !important;
    color: #ffffff;
}

.badge.bg-light {
    background: var(--hotel-cream) !important;
    color: var(--hotel-dark) !important;
}

/* 分隔线装饰 */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hotel-gold), transparent);
    margin: 0 auto 2rem;
}

/* 章节标题样式 */
.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Noto Serif SC', serif;
    color: var(--hotel-dark);
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hotel-gold), transparent);
    border-radius: 2px;
}

/* bg-light 调整为暖色调 */
.bg-light {
    background-color: var(--hotel-cream) !important;
}

/* 卡片通用样式 */
.card {
    background: var(--hotel-light);
    border-color: var(--hotel-border);
}

.card-body {
    color: var(--hotel-text);
}

.card-title {
    color: var(--hotel-dark);
    font-family: 'Noto Serif SC', serif;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .page-header {
        min-height: 200px;
    }

    .room-img-wrapper {
        height: 180px;
    }

    .price-text {
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-section .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hotel-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--hotel-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hotel-primary);
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 卡片阴影 */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(139, 90, 43, 0.06) !important;
}

/* 文字色调 */
.text-muted {
    color: var(--hotel-muted) !important;
}

/* 列表组样式 */
.list-group-item {
    background: var(--hotel-light);
    border-color: var(--hotel-border);
    color: var(--hotel-text);
}

/* 面包屑 */
.breadcrumb {
    background: var(--hotel-cream);
    border-radius: var(--hotel-radius);
    padding: 0.75rem 1rem;
}

.breadcrumb a {
    color: var(--hotel-primary);
}

.breadcrumb .active {
    color: var(--hotel-muted);
}
