/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #F9F2E6;
    color: #3A3A3A;
    line-height: 1.6;
    padding-top: 80px; /* 为固定导航留出空间 */
}
a {
    color: #3A3A3A;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
    width: 100%;
}

/* ===== 浮动导航栏 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #F9F2E6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #917050;
    flex-wrap: wrap;
}
.logo img {
    height: 50px;
    width: auto;
}
.nav {
    display: flex;
    gap: 30px;
    font-size: 18px;
    font-weight: 500;
}
.nav a {
    color: #917050;
    transition: color 0.3s;
}
.nav a:hover,
.nav a.active {
    color: #C96C47;
}
.nav a.active {
    font-weight: 600;
}

/* ===== 底部通用 ===== */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #749688;
    border-bottom: 2px solid #749688;
}
.footer-column {
    flex: 1 1 200px;
    min-width: 180px;
}
.footer-column h3 {
    color: #917050;
    margin-bottom: 15px;
    font-size: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: #3A3A3A;
    transition: color 0.3s;
}
.footer-column ul li a:hover {
    color: #C96C47;
}
.footer-column .phone-link {
    font-size: 24px;
    font-weight: 600;
    color: #C96C47 !important;
}
.copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #ddd;
}
.copyright .beian {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* ===== 悬浮联系按钮 ===== */
.float-contact-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.float-contact-btn .btn-body {
    width: 64px;
    height: 64px;
    background: #C96C47;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(201, 108, 71, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    padding: 6px;
}
.float-contact-btn .btn-body .icon {
    font-size: 24px;
    margin-bottom: 2px;
}
.float-contact-btn .btn-body .label {
    font-size: 12px;
    letter-spacing: 1px;
}
.float-contact-btn:hover .btn-body {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(201, 108, 71, 0.6);
    background: #b85a35;
}
.float-contact-btn .tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.float-contact-btn:hover .tooltip {
    opacity: 1;
}

/* ===== 通用轮播样式 ===== */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 12px;
    background: #ddd;
}
.carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}
.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.carousel-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dots span.active {
    background: #C96C47;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    .nav {
        gap: 15px;
        font-size: 16px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 8px;
    }
    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        flex: 1 1 auto;
        width: 100%;
    }
    .float-contact-btn {
        right: 12px;
    }
    .float-contact-btn .btn-body {
        width: 52px;
        height: 52px;
    }
    .float-contact-btn .btn-body .icon {
        font-size: 20px;
    }
    .float-contact-btn .btn-body .label {
        font-size: 10px;
    }
    .float-contact-btn .tooltip {
        display: none;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    .nav {
        font-size: 14px;
        gap: 10px;
    }
    .float-contact-btn {
        right: 8px;
    }
    .float-contact-btn .btn-body {
        width: 44px;
        height: 44px;
    }
    .float-contact-btn .btn-body .icon {
        font-size: 16px;
    }
    .float-contact-btn .btn-body .label {
        font-size: 8px;
    }
}