/* 全局样式样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

/* 全局变量 - 平静蓝色调系统 */
:root {
    --primary-color: #4A90E2; /* 主蓝色（平静的天蓝色） */
    --primary-light: #E8F4F8; /* 浅蓝背景色 */
    --secondary-color: #4A6FA5; /* 深蓝辅助色 */
    --light-color: #F0F7FF; /* 超浅蓝背景 */
    --white-color: #FFFFFF; /* 白色 */
    --text-color: #2C3E50; /* 深色文字（与蓝色搭配更清晰） */
    --shadow: 0 2px 10px rgba(74, 144, 226, 0.15); /* 蓝色系阴影 */
    --radius: 8px;
}

/* 基础样式 */
body {
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: #3A80D2; /* 深一点的蓝色 */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* 证书展示区样式 */
.certificates {
    padding: 80px 0;
    background-color: var(--white-color);
}

.certificate-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.certificate-item {
    text-align: center;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.certificate-item img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.certificate-item p {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 16px;
}

/* Banner样式 */
.banner {
    background: linear-gradient(rgba(74, 144, 226, 0.8), rgba(74, 144, 226, 0.6)), url("../images/banner-bg.jpg") center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-align: center;
    padding-top: 80px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

.certificate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--primary-color);
    font-size: 18px;
}

.certificate i {
    font-size: 24px;
}

/* 咨询师样式 */
.consultant {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.consultant-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.consultant-img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-light);
}

.consultant-info h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.consultant-info .title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.consultant-info .desc {
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 服务列表样式 */
.services {
    padding: 80px 0;
    background-color: var(--white-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.service-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    text-align: center;
}

.service-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.service-header .duration {
    font-size: 14px;
    opacity: 0.9;
}

.service-body {
    padding: 20px;
    text-align: center;
}

.service-body p {
    margin-bottom: 15px;
    font-size: 14px;
}

.service-body .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.service-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.buy-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.buy-btn:hover {
    background-color: var(--primary-color);
}

/* 联系方式样式 */
.contact {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.contact-content {
    display: flex;
    gap: 40px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-map {
    flex: 1;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* 支付弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white-color);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.order-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--primary-light);
}

.order-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-info p span:first-child {
    color: var(--secondary-color);
}

.order-info p span:last-child {
    font-weight: 500;
}

.pay-code {
    text-align: center;
    margin-bottom: 20px;
}

.pay-code h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.pay-code img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.confirm-btn {
    text-align: center;
}
/* 客服咨询入口样式 */
.customer-service {
    align-items: center;
}

.service-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.start-chat-btn {
    margin-top: 10px;
    padding: 6px 15px;
    font-size: 14px;
}

/* 留言板样式 */
.message-board {
    padding: 80px 0;
    background-color: var(--white-color);
}

.message-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* 聊天弹窗样式 */
.chat-modal-content {
    width: 90%;
    max-width: 450px;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h3 {
    font-size: 18px;
    margin-bottom: 3px;
    color: var(--white-color);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
}

.bot-message {
    align-self: flex-start;
    background-color: #e9e9eb;
    color: var(--text-color);
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.message-time {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-container {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    height: 50px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #8064b7;
}

/* 页脚样式 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .banner h2 {
        font-size: 32px;
    }

    .banner p {
        font-size: 18px;
    }

    .consultant-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}