/* 全局样式 */
:root {
    --primary-color: #2a6496;
    --secondary-color: #1d4b75;
    --text-color: #333;
    --light-color: #f9f9f9;
    --white-color: #ffffff;
    --gray-color: #ddd;
    --dark-gray: #666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 12px 30px;
    font-size: 18px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
    font-size: 18px;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* 导航栏 */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(42, 100, 150, 0.7), rgba(42, 100, 150, 0.7)), url('../images/bg-home.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-btns {
    margin-top: 30px;
}

.hero-btns .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 18px;
}

/* 服务部分 */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.service-content li {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

/* 关于我们 */
.about-section {
    background-color: var(--white-color);
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-content h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 14px;
    color: var(--dark-gray);
}

/* 为什么选择我们 */
.why-us {
    background-color: #f0f7ff;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature p {
    color: var(--dark-gray);
}

/* 客户评价 */
.testimonials {
    background-color: var(--white-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--dark-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--dark-gray);
}

.rating {
    color: #ffc107;
    margin-top: 5px;
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 20px;
    width: 30px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--dark-gray);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 100, 150, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-column li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright p a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.copyright p a:hover {
    color: var(--white-color);
    text-decoration: underline;
}
/* 服务流程样式 */
.process {
    padding: 80px 0;
    background-color: #f8f9fa; /* 浅灰色背景 */
}

.process-steps {
    display: flex; /* 关键属性：启用弹性布局 */
    justify-content: space-between; /* 均匀分布步骤 */
    flex-wrap: wrap; /* 允许在小屏幕换行 */
    margin-top: 50px;
    position: relative;
}

/* 步骤之间的连接线 */
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #2a6496;
    z-index: 1;
}

.process-step {
    position: relative;
    width: 22%; /* 4个步骤平分宽度 */
    text-align: center;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #2a6496;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    border: 5px solid #f8f9fa; /* 与背景同色形成"镂空"效果 */
}

.process-step h3 {
    color: #2a6496;
    margin-bottom: 15px;
    font-size: 20px;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .process-step {
        width: 48%; /* 平板设备显示2列 */
        margin-bottom: 40px;
    }
    
    .process-steps::before {
        display: none; /* 小屏幕隐藏连接线 */
    }
}

@media (max-width: 576px) {
    .process-step {
        width: 100%; /* 手机单列显示 */
    }
}

/* 企业文化横向布局 */
.culture-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.culture-item {
    width: 23%; /* 4项平分宽度留间隙 */
    text-align: center;
    padding: 30px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.culture-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.culture-item i {
    font-size: 40px;
    color: #2a6496;
    margin-bottom: 20px;
    display: block;
}

.culture-item h3 {
    color: #2a6496;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .culture-item {
        width: 48%; /* 平板双列布局 */
    }
}

@media (max-width: 576px) {
    .culture-item {
        width: 100%; /* 手机单列布局 */
    }
}

/* 横向时间轴改进版 */
.timeline-container {
    display: flex;
    padding: 40px 0;
    position: relative;
    scrollbar-width: none; /* 隐藏滚动条 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 平滑滚动 */
}

.timeline-container::-webkit-scrollbar {
    display: none; /* 隐藏Webkit滚动条 */
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2a6496, #4a8fd6);
    z-index: 1;
}

.timeline-item {
    flex: 0 0 280px;
    margin-right: 20px;
    position: relative;
    padding-top: 40px;
    scroll-snap-align: start; /* 滚动对齐 */
}

.timeline-item[data-current="true"] .timeline-date {
    background: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.3);
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 20px;
    background: #2a6496;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    color: #2a6496;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 响应式改进 */
@media (max-width: 768px) {
    .timeline-item {
        flex: 0 0 220px;
        padding-top: 35px;
    }
    .timeline-content {
        height: auto;
        min-height: 180px;
    }
}

/* 预约表单样式 */
.appointment-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.appointment-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    margin: 0 -15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a6496;
    box-shadow: 0 0 0 3px rgba(42,100,150,0.1);
    background-color: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    padding: 12px 40px;
    font-size: 18px;
    background-color: #2a6496;
    border: none;
}

.form-submit .btn:hover {
    background-color: #1d4b75;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .appointment-form-container {
        padding: 30px 20px;
    }
    
    .form-group {
        flex: 100%;
    }
}

/* 表单验证样式 */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.map-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#baidu-map {
    width: 100%;
    height: 400px;
}

.map-info {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.map-info p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.map-info i {
    color: #2a6496;
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #baidu-map {
        height: 300px;
    }
    
    .map-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .map-info .btn {
        margin-top: 15px;
    }
}