/* --- 全局样式和变量 --- */
:root {
    --primary-orange: #FF6600;
    --dark-blue: #003366;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    color: var(--dark-blue);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.6em;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin: 20px auto 0;
    border-radius: 2px;
}

.primary-button {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white) !important;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 102, 0, 0.4);
}

/* --- 导航栏 --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-weight: bold; font-size: 1.5em; color: var(--dark-blue); text-decoration: none; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center;}
.nav-links li { margin-left: 35px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-orange); }
/* 精确的CTA按钮样式 */
.nav-links li.nav-cta-button a {
    padding: 10px 22px;
    border-radius: 50px;
    background-color: var(--primary-orange);
    color: var(--white) !important;
    font-weight: bold;
    transition: background-color 0.3s;
}
.nav-links li.nav-cta-button a:hover {
    background-color: #e65c00;
}

/* 移动端汉堡菜单按钮 */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001; /* 确保在菜单之上 */
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-blue);
    transition: all 0.3s ease-in-out;
}

/* 移动端导航菜单样式 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out;
    z-index: 999;
}
.mobile-nav.active {
    left: 0;
}
.mobile-nav a {
    font-size: 2em;
    color: var(--dark-blue);
    text-decoration: none;
    margin: 20px 0;
}

/* 汉堡菜单激活时的动画（变成X） */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 英雄区域 --- */
#hero { padding: 80px 0; background-color: var(--light-gray); }
.hero-content { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-text .tagline { color: var(--primary-orange); font-weight: bold; margin-bottom: 10px; }
.hero-text h1 { font-size: 3.5em; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { font-size: 1.2em; margin-bottom: 30px; color: #555; }
.hero-image { flex-shrink: 0; }
.hero-image .img-placeholder { width: 380px; height: 380px; background-color: #ccc; border-radius: 50%; border: 8px solid var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1); background-size: cover; background-position: center; }

/* 其他区域样式... */
.why-choose-us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.why-card { padding: 30px; }
.why-card .icon { font-size: 4em; color: var(--primary-orange); margin-bottom: 20px; }
.why-card h3 { font-size: 1.8em; margin-bottom: 10px; }
.why-card p { font-size: 1.1em; color: #666; }

#policy-review { background-color: var(--dark-blue); color: var(--white); }
#policy-review h2 { color: var(--white); }
#policy-review h2::after { background: var(--white); }
.policy-review-content { display: flex; align-items: center; gap: 50px; }
.policy-review-text { flex: 1.2; }
.policy-review-text p { font-size: 1.1em; opacity: 0.9; margin-bottom: 20px; }
.policy-review-text ul { list-style: none; padding: 0; }
.policy-review-text ul li { padding-left: 30px; position: relative; margin-bottom: 10px; font-size: 1.1em; }
.policy-review-text ul li::before { content: '✓'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--primary-orange); position: absolute; left: 0; }
.policy-review-cta { flex: 0.8; text-align: center; background-color: rgba(255,255,255,0.1); padding: 40px; border-radius: 15px; }
.policy-review-cta .icon { font-size: 5em; margin-bottom: 20px; }

#about { background-color: var(--light-gray); }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-image .img-placeholder { width: 100%; max-width: 400px; height: 450px; background-color: #ccc; border-radius: 8px; background-size: cover; background-position: center; }
.about-text { flex: 1; }
.about-text h2 { text-align: left; margin: 0 0 20px 0; }
.about-text h2::after { margin: 20px 0 0; }
.credentials { margin-top: 25px; padding-left: 20px; border-left: 3px solid var(--primary-orange); }
.credential-item { display: flex; align-items: center; margin-bottom: 10px; font-weight: bold; }
.credential-item .icon { color: var(--primary-orange); font-size: 1.5em; margin-right: 10px; width: 25px; text-align: center; }

#blog { background-color: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-content { padding: 25px; }
.blog-card-content h3 { font-size: 1.3em; margin-top: 0; min-height: 80px; }
.blog-card-content a { color: var(--primary-orange); text-decoration: none; font-weight: bold; }

#events { background-color: var(--light-gray); text-align: center; }
.event-card { max-width: 800px; margin: 0 auto; background-color: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.event-card .tag { display: inline-block; background-color: var(--primary-orange); color: var(--white); padding: 5px 15px; border-radius: 50px; font-size: 0.9em; margin-bottom: 15px; }
.event-card h3 { font-size: 2em; color: var(--dark-blue); }
.event-info { margin: 20px 0 30px; font-size: 1.1em; color: #555; }

.footer { background-color: #222; color: #bbb; padding: 60px 0 20px; font-size: 0.95em; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-section h4 { color: var(--white); border-bottom: 2px solid var(--primary-orange); padding-bottom: 10px; margin-bottom: 20px; font-size: 1.2em; }
.footer-section a { color: #bbb; text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.3s; }
.footer-section a:hover { color: var(--white); padding-left: 5px; }
.footer-section .wechat-qr { max-width: 150px; margin-top: 10px; }
.compliance { margin-top: 60px; text-align: center; border-top: 1px solid #444; padding-top: 30px; font-size: 0.85em; color: #888; }
.compliance .auth-info { font-weight: bold; color: #ccc; margin-bottom: 10px; }

/* --- 响应式设计 (移动端优化) --- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger-menu { display: block; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-image .img-placeholder { width: 300px; height: 300px; }
    .about-content { flex-direction: column; }
    .about-text h2 { text-align: center; }
    .about-text h2::after { margin: 20px auto 0; }
    .why-choose-us-grid, .blog-grid { grid-template-columns: 1fr; gap: 30px; }
    .policy-review-content { flex-direction: column; text-align: center;}
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 2.5em !important; }
    h2 { font-size: 2em; margin-bottom: 40px;}
    .hero-text h1 { font-size: 2.5em; }
    .hero-image .img-placeholder { width: 250px; height: 250px; }
    .logo { font-size: 1.3em; }
    .policy-review-cta { padding: 30px; }
    .event-card { padding: 30px; }
    .event-card h3 { font-size: 1.6em; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-section h4 { border-bottom: none; }
    .footer-section h4::after { content: ''; display: block; width: 40px; height: 2px; background: var(--primary-orange); margin: 10px auto 0; }
}

/* --- 新增的SEO博客模块样式 --- */
#seo-blog {
    background-color: var(--light-gray);
    padding: 60px 0;
}
.seo-blog-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.seo-blog-container h2 {
    font-size: 2em;
    margin-bottom: 40px;
}
.seo-blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.seo-blog-list li {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seo-blog-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.seo-blog-list li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
}
.seo-blog-list li a:hover {
    color: var(--primary-orange);
}







/* --- 保单体检表单区域样式 (与WPForms方案相同) --- */
#form-policy-review {
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 40px;
    font-size: 1.1em;
    color: #666;
}

.policy-review-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* --- Contact Form 7 样式覆盖 --- */
.ganyan-form p {
    margin-bottom: 25px;
}

.ganyan-form label {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.ganyan-form input[type="text"],
.ganyan-form input[type="email"],
.ganyan-form input[type="tel"] {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    font-size: 1em;
    box-sizing: border-box; /* 确保padding不会撑大宽度 */
    transition: border-color 0.3s;
}

.ganyan-form input[type="text"]:focus,
.ganyan-form input[type="email"]:focus,
.ganyan-form input[type="tel"]:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.ganyan-form small {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

/* 提交按钮样式 */
.ganyan-form input[type="submit"] {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
    -webkit-appearance: none; /* 移除iOS默认样式 */
}

.ganyan-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 102, 0, 0.4);
    background-color: #e65c00;
}

/* CF7 响应消息样式 */
.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-size: 1.1em;
}

/* 成功消息 */
.wpcf7-mail-sent-ok {
    background: #eaf5e8;
    border: 2px solid #5a9d50 !important;
    color: #333;
}

/* 错误/验证消息 */
.wpcf7-validation-errors, .wpcf7-spam-blocked {
    background: #fbeaea;
    border: 2px solid #d9534f !important;
    color: #333;
}
span.wpcf7-not-valid-tip {
    color: #d9534f !important;
    font-size: 0.9em !important;
}




/* --- 页脚 "免费获取方案" 模块微调 --- */

/* 调整页脚网格布局，让最右侧的表单区域更宽一些 */
.footer-content {
    /* 2fr 1fr 1.5fr 2.5fr */
    grid-template-columns: 2fr 1fr 1.5fr 2.5fr;
}

.footer-section h4 + p {
    color: #aaa;
    font-size: 0.9em;
}

/* 优化“联系我”模块的手机号显示 */
.footer-section p[style*="font-size: 1.2em"] {
    letter-spacing: 1px;
}

/* 响应式调整，在中等屏幕下变为2列 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* 在更小的屏幕下变为1列 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}



/* --- 页脚最终版优化样式 --- */

/* 调整页脚网格布局 */
.footer-content {
    grid-template-columns: 2fr 1fr 1.5fr 2.5fr;
    align-items: start; /* 顶部对齐，防止各列高度不一时错乱 */
}

/* “免费获取方案”模块的描述文字样式 */
.footer-section .section-description {
    color: #aaa;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* "联系我" 模块特定样式 */
.footer-contact-info .contact-label {
    color: #bbb;
    margin-bottom: 5px;
    font-size: 0.95em;
}
.footer-contact-info .contact-label i {
    margin-right: 8px;
    color: var(--primary-orange);
    width: 16px;
}

.footer-contact-info .contact-detail {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 1px;
    margin-top: 0;
}

.footer-contact-info .wechat-qr {
    max-width: 140px; /* 调整二维码尺寸 */
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
    border: 3px solid #555;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px; /* 增加行间距 */
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact-info .wechat-qr {
        margin-left: auto;
        margin-right: auto;
    }
}
