/* 红色主题定义 */
:root {
    --primary-red: #dc3545;
    --dark-red: #c82333;
    --light-red: #e9ecef;
    --text-red: #dc3545;
    --bg-light: #f8f9fa;
    --text-dark: #343a40;
    --text-muted: #6c757d;
}

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 红色背景类 */
.bg-red {
    background-color: var(--primary-red) !important;
}

/* 红色文本类 */
.text-red {
    color: var(--text-red) !important;
}

/* 红色按钮样式 */
.btn-red {
    background-color: var(--primary-red);
    color: white;
    border: none;
}

.btn-red:hover {
    background-color: var(--dark-red);
    color: white;
}

/* 红色边框按钮样式 */
.btn-outline-red {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: white;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-left: 1rem;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

/* 轮播图样式 */
.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    bottom: 30%;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Hero 区域样式 */
.hero-about, .hero-products, .hero-routes, .hero-contact {
    background: linear-gradient(rgba(220, 53, 69, 0.8), rgba(220, 53, 69, 0.8));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 50px;
    margin-top: 70px;
}

.hero-about h1, .hero-products h1, .hero-routes h1, .hero-contact h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 欢迎区域样式 */
.welcome {
    padding: 80px 0;
}

.welcome h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* 产品展示样式 */
.products {
    padding: 80px 0;
}

.products h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-red);
    font-weight: bold;
}

/* 线路卡片样式 */
.routes {
    padding: 80px 0;
}

.routes h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.route-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.route-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.route-content {
    flex: 1;
}

.route-content h5 {
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.route-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* 关于我们内容样式 */
.about-content {
    padding: 80px 0;
}

.about-content h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* 服务卡片样式 */
.services {
    padding: 80px 0;
}

.services h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-card h5 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: bold;
}

/* 产品过滤样式 */
.products-filter {
    padding: 20px 0;
    margin-top: 70px;
}

/* 产品列表样式 */
.products-grid {
    padding: 40px 0;
}

.product-rating {
    margin-bottom: 10px;
}

/* 线路详情样式 */
.routes-list {
    padding: 80px 0;
}

.route-detail {
    background-color: white;
}

.route-detail h2 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.route-meta {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.itinerary {
    list-style: none;
    padding: 0;
}

.itinerary li {
    margin-bottom: 0.5rem;
    padding-left: 25px;
    position: relative;
}

.itinerary li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.route-includes {
    margin-top: 1.5rem;
}

.route-includes h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* 定制线路表单样式 */
.custom-route {
    padding: 80px 0;
}

.custom-route h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.custom-route-form {
    background-color: white;
}

/* 联系信息卡片样式 */
.contact-info {
    padding: 80px 0;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: bold;
}

/* 联系表单样式 */
.contact-form {
    padding: 80px 0;
}

.contact-form h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

/* 地图区域样式 */
.map {
    padding: 80px 0;
}

.map h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.map-container {
    overflow: hidden;
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .hero-about h1, .hero-products h1, .hero-routes h1, .hero-contact h1 {
        font-size: 2.5rem;
    }
    
    .route-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 80vh;
    }
    
    .carousel-caption {
        bottom: 20%;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-about h1, .hero-products h1, .hero-routes h1, .hero-contact h1 {
        font-size: 2rem;
    }
    
    .welcome, .products, .routes, .about-content, .services, .products-grid, .routes-list, .custom-route, .contact-info, .contact-form, .map {
        padding: 60px 0;
    }
    
    .route-card {
        flex-direction: column;
    }
    
    .route-img {
        width: 100%;
        height: 250px;
    }
    
    .route-detail {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 0.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-about, .hero-products, .hero-routes, .hero-contact {
        padding: 80px 0 30px;
    }
    
    .hero-about h1, .hero-products h1, .hero-routes h1, .hero-contact h1 {
        font-size: 1.8rem;
    }
    
    .welcome, .products, .routes, .about-content, .services, .products-grid, .routes-list, .custom-route, .contact-info, .contact-form, .map {
        padding: 40px 0;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* 滚动动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 动态输入框样式 */
.inputBox {
    position: relative;
    margin-bottom: 1.5rem;
}

.inputBox input,
.inputBox select,
.inputBox textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: white;
    border-radius: 5px;
    outline: none;
    color: var(--text-dark);
    font-size: 1em;
    transition: 0.5s;
}

.inputBox textarea {
    resize: vertical;
    min-height: 100px;
}

.inputBox label {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 15px;
    pointer-events: none;
    font-size: 1em;
    color: rgba(0, 0, 0, 0.5);
    transition: 0.5s;
    z-index: 5;
}

.inputBox input:valid~label,
.inputBox input:focus~label,
.inputBox select:valid~label,
.inputBox select:focus~label,
.inputBox textarea:valid~label,
.inputBox textarea:focus~label {
    color: #28a745;
    transform: translateX(15px) translateY(-12px);
    font-size: 0.65em;
    padding: 0 5px;
    background: white;
    letter-spacing: 0.1em;
    z-index: 10;
}

.inputBox input:valid,
.inputBox input:focus,
.inputBox select:valid,
.inputBox select:focus,
.inputBox textarea:valid,
.inputBox textarea:focus {
    border: 1px solid #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

/* 表单焦点样式 */
.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* 按钮焦点样式 */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* 卡片阴影效果 */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 图片圆角样式 */
.rounded {
    border-radius: 0.5rem !important;
}

/* 文本加粗样式 */
.fw-bold {
    font-weight: 700 !important;
}

/* 文本颜色样式 */
.text-green {
    color: #28a745 !important;
}

/* 绿色主题变量 */
:root {
    --primary-green: #28a745;
    --dark-green: #218838;
    --light-green: #d4edda;
}

/* 间距样式 */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

/* 响应式图片 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 居中对齐 */
.text-center {
    text-align: center !important;
}

/* 弹性布局 */
.d-flex {
    display: flex !important;
}

/* 网格布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-4, .col-lg-6, .col-lg-8, .col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 媒体查询断点 */
@media (min-width: 576px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}