/* 洗乐蜂自助洗车官网 - 自定义样式 */

:root {
    --primary: #ff8000;
    --primary-hover: #e67300;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* 轮播Banner样式 */
.carousel-item {
    height: 650px;
    max-height: 90vh;
}

.carousel-item img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(255, 128, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 128, 0, 0.6);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators button {
    background-color: rgba(255, 128, 0, 0.6);
    height: 3px;
}

.carousel-indicators button.active {
    background-color: var(--primary);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 390px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

/* 导航栏样式 */
.navbar {
    padding: 10px 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

/* 主横幅区域 */
.hero-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.hero-section h1 {
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* 卡片样式 */
.card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 特色图标样式 */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 128, 0, 0.3);
}

.card:hover .feature-icon i {
    transform: scale(1.1);
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* 会员卡片样式 */
.card.border-primary {
    border-width: 2px !important;
}

/* 社交图标 */
.btn-outline-primary.rounded-circle {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 表单样式 */
.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 页脚样式 */
footer {
    background-color: #212529;
}

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

/* 响应式优化 */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* 滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 图片缩放效果 */
.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* 主题颜色样式 */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* 充值卡片样式 */
.discount-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.discount-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 128, 0, 0.15);
}

.discount-card .card-header {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
}

.discount-card .recommended-badge {
    background-color: #ff4500;
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.discount-card .card-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.discount-card .card-bonus {
    color: #ff4500;
    font-weight: bold;
}

.discount-card .card-footer {
    background-color: rgba(255, 128, 0, 0.1);
}

/* 充值优惠版块样式 */
.benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    transition: all 0.3s ease;
}

.benefit-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.benefit-item:hover {
    background-color: rgba(255, 128, 0, 0.1);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
}

.qr-container {
    transition: all 0.3s ease;
}

.qr-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 流程步骤样式 */
.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(255, 128, 0, 0.2);
}

/* 先清除所有步骤的竖线 */
.flow-steps .d-flex::after {
    display: none;
}

/* 只为非最后一个步骤添加竖线 */
.flow-steps .d-flex.mb-3::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    height: 25px;
    width: 2px;
    background-color: var(--primary);
    opacity: 0.5;
    display: block;
}

.flow-steps .d-flex {
    position: relative;
}

.flow-steps .step-content {
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.flow-steps .d-flex:hover .step-content {
    background-color: rgba(255, 128, 0, 0.1);
}

.flow-steps .d-flex:hover .step-number {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .flow-steps .d-flex.mb-3::after {
        height: 35px;
    }
}

/* 二维码悬浮显示 */
.qrcode-hover-container {
    position: relative;
    display: inline-block;
}

.qrcode-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-bottom: 15px;
}

.qrcode-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.qrcode-popover img {
    border: 1px solid #eee;
    border-radius: 4px;
}

.qrcode-hover-container:hover .qrcode-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
} 