/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1e88e5;
    text-decoration: none;
}

/* 顶部信息栏 */
.top-info {
    background-color: #f5f5f5;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-info span {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
}

.top-info i {
    margin-right: 5px;
    color: #1e88e5;
}

/* 导航栏 */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 10px 15px;
}

.logo {
    height: 40px;
}

.navbar-nav > li > a {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: #f5f5f5;
    color: #1e88e5;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background-color: #1e88e5;
    color: #fff;
}

/* 轮播图 */
.carousel {
    margin-bottom: 30px;
}

.carousel-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.carousel-caption h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
}

/* 公司简介 */
.about-us {
    padding: 50px 0;
    background-color: #fff;
}

.about-us h2 {
    margin-bottom: 20px;
    color: #1e88e5;
    font-weight: 600;
}

.about-us p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.feature-item i {
    margin-right: 5px;
    color: #1e88e5;
}

/* 服务项目 */
.services {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1e88e5;
    font-weight: 600;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #1e88e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 32px;
    color: #fff;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.service-item p {
    color: #666;
    font-size: 14px;
}

/* 装修案例 */
.cases {
    padding: 50px 0;
    background-color: #fff;
}

.case-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-img {
    position: relative;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-item:hover .case-img img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.case-overlay p {
    font-size: 14px;
}

/* 装修知识 */
.knowledge {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.knowledge-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.knowledge-content h3 {
    margin-bottom: 15px;
    color: #1e88e5;
    font-weight: 600;
}

.knowledge-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: #1e88e5;
    font-weight: 500;
}

.read-more:hover {
    color: #1565c0;
}

.read-more i {
    margin-left: 5px;
}

/* 在线预约 */
.appointment {
    padding: 50px 0;
    background-color: #fff;
}

#appointment-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

#appointment-form .form-group {
    margin-bottom: 20px;
}

#appointment-form label {
    margin-bottom: 5px;
    font-weight: 500;
}

#appointment-form .btn-primary {
    background-color: #1e88e5;
    border-color: #1e88e5;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
}

#appointment-form .btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

.appointment-info {
    padding: 30px;
}

.appointment-info h3 {
    margin-bottom: 30px;
    color: #1e88e5;
    font-weight: 600;
}

.process-step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-right: 20px;
}

.step-content h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer h3 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #1e88e5;
}

.footer p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: #1e88e5;
}

.footer-contact li {
    margin-bottom: 15px;
    list-style: none;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 10px;
    color: #1e88e5;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1e88e5;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1565c0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-info {
        text-align: center;
    }
    
    .top-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .carousel-img {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .about-us,
    .services,
    .cases,
    .knowledge,
    .appointment {
        padding: 30px 0;
    }
    
    .service-item,
    .case-item,
    .knowledge-item {
        margin-bottom: 20px;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

/* 懒加载图片样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 表单验证样式 */
.form-control:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}

.has-error .form-control {
    border-color: #d9534f;
}

.has-error .help-block {
    color: #d9534f;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 136, 229, 0.3);
    border-radius: 50%;
    border-top-color: #1e88e5;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}