/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-left: 10px;
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover:after {
    width: 100%;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,181.3C960,181,1056,203,1152,202.7C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    background-color: #e55c00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn:hover:before {
    left: 100%;
}

.payment-banner-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 11px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    border: 1px solid var(--white);
}

.payment-banner-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 服务区域样式 - 修复滚动和图片大小 */
.services {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 16px;
}

.services-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.services-scroll {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.service-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
    transition: var(--transition);
}

.service-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover:before {
    transform: scaleX(1);
}

/* 修复图片大小 - 恢复为300x300，但确保响应式 */
.service-icon {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    border-radius: 8px;
}

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

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 滚动点样式 */
.scroll-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-text h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

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

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系我们页面样式 */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
}

.contact-info p strong {
    min-width: 80px;
    display: inline-block;
}

.contact-text {
    color: var(--text-color);
    text-decoration: none;
    padding: 2px 0;
}

.contact-text:hover {
    color: var(--primary-color);
}

/* 在线咨询样式 */
.consultation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.consultation-btn {
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.consultation-btn img {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

.consultation-btn:hover {
    background-color: #0052a3;
    transform: scale(1.1);
}

.consultation-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 250px;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.consultation-popup.active {
    display: block;
}

.consultation-popup h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    font-size: 18px;
}

.qrcode {
    text-align: center;
    margin-bottom: 15px;
}

.qrcode img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: var(--transition);
}

.close-popup:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* 底部样式 */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
    text-align: center;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.footer-column p, .footer-column ul li {
    font-size: 14px;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

.record-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.record-info span, .record-info a {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.record-info a {
    text-decoration: none;
    transition: var(--transition);
}

.record-info a:hover {
    color: var(--white);
}

.police-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: inline-block;
}