/* ============================================
   MedicalEscort — styles
   视觉系统：克制专业医疗蓝；信任感优先
   ============================================ */
:root {
    --navy: #0e2a47;
    --navy-2: #123a5e;
    --blue: #2563eb;
    --blue-d: #1d4ed8;
    --sky: #eef4fb;
    --ink: #1a2433;
    --mut: #5a6b80;
    --line: #dfe7f0;
    --bg: #ffffff;
    --ok: #15803d;
    --err: #b91c1c;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(14, 42, 71, .08);
    --shadow-lg: 0 24px 60px rgba(14, 42, 71, .18);
    --max: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans", "Noto Sans", "Microsoft YaHei", sans-serif;
    color: var(--ink); background: var(--bg); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.section { padding: 84px 0; }
.section-kicker {
    color: var(--blue); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: .8rem; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.section-sub { color: var(--mut); max-width: 720px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; font-weight: 600; border: 1.5px solid transparent;
    padding: 12px 26px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: rgba(255,255,255,.92); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- 顶栏 ---------- */
.header {
    position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.14rem; color: var(--navy); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 1rem;
}
.brand-name span { color: var(--blue); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .94rem; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 19px; } .nav-toggle span:nth-child(3) { top: 25px; }

/* 语言切换 */
.lang-wrap { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px; background: #fff;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 600; color: var(--navy);
}
.lang-btn:hover { border-color: var(--blue); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 168px; z-index: 80;
}
.lang-menu li { padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: .92rem; color: var(--ink); }
.lang-menu li:hover { background: var(--sky); color: var(--blue); }
.lang-menu li.active { background: var(--sky); color: var(--blue); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,26,44,.72), rgba(10,26,44,.86)), url("assets/img/hero.jpg") center/cover no-repeat;
}
.hero-inner { position: relative; padding: 110px 0 120px; }
.hero-content { max-width: 700px; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px; padding: 6px 16px; font-size: .85rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.16; margin-bottom: 18px; }
.hero-sub { font-size: 1.06rem; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: rgba(255,255,255,.85); font-size: .92rem; }

/* ---------- 信任条 ---------- */
.trust-strip { background: var(--sky); border-block: 1px solid var(--line); padding: 34px 0; }
.trust-title { font-weight: 700; color: var(--navy); margin-bottom: 14px; font-size: .95rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust-list li { color: var(--mut); font-size: .9rem; font-weight: 600; }
.trust-note { margin-top: 14px; color: var(--mut); font-size: .78rem; max-width: 860px; }

/* ---------- 为什么/支柱 ---------- */
.why { background: #fff; }
.pillar { padding: 26px 24px; }
.pillar-icon { font-size: 1.7rem; }
.pillar h3 { color: var(--navy); font-size: 1.05rem; margin: 12px 0 8px; }
.pillar p { color: var(--mut); font-size: .93rem; }

/* ---------- 服务 ---------- */
.services { background: linear-gradient(180deg, #f7fafd, #fff); }
.svc img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.svc-body { padding: 20px 22px 24px; }
.svc-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.08rem; }
.svc-body p { color: var(--mut); font-size: .93rem; }

/* ---------- 画廊 ---------- */
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.gal-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption {
    position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 10px;
    background: linear-gradient(transparent, rgba(10,26,44,.78)); color: #fff; font-size: .85rem; font-weight: 600;
}
.gal-vtitle { margin-top: 46px; color: var(--navy); font-size: 1.1rem; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.video-card {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: #000; padding: 0; box-shadow: var(--shadow); transition: transform .2s ease;
}
.video-card:hover { transform: translateY(-3px); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .9; }
.vc-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%; background: rgba(37, 99, 235, .92); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 4px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.vc-title {
    position: absolute; inset-inline: 0; bottom: 0; padding: 22px 12px 10px; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-size: .84rem; font-weight: 600;
}
.gal-note { margin-top: 16px; color: var(--mut); font-size: .8rem; }

/* ---------- 城市/价格 ---------- */
.city img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pricing { background: var(--sky); }
.price-note { margin-top: 26px; color: var(--mut); font-size: .92rem; max-width: 780px; }
.pricing .card { padding: 24px; background: #fff; }
.pricing h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 10px; }
.pricing p { color: var(--mut); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    margin-top: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary { padding: 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; position: relative; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; color: var(--blue); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 20px; color: var(--mut); font-size: .95rem; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.ct-list { margin: 20px 0; display: grid; gap: 10px; color: var(--ink); font-size: .95rem; }
.ct-privacy { color: var(--mut); font-size: .8rem; }
.contact-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: #fbfdff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.form-status { margin-top: 12px; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 54px 0 30px; }
.footer .brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer .brand-name span { color: #7aa7ff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.62); max-width: 520px; margin-top: 10px; }
.footer-copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- 跟随聊天图标的「免费咨询」按钮（图标 + 文字，非底部横条） ---------- */
.consult-fab {
    display: none; position: fixed; right: 16px; bottom: 86px; z-index: 60;
    align-items: center; gap: 8px;
    background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
    padding: 11px 15px; border-radius: 999px; box-shadow: var(--shadow-lg);
    text-decoration: none; line-height: 1;
}
.consult-fab .cf-ic { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.consult-fab:active { transform: translateY(1px); }

/* ---------- Lightbox（图片/视频浮窗） ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 30, .92);
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
/* hidden 属性必须赢过上面的 display:flex，否则浮窗永久显示挡住页面 */
.lightbox[hidden] { display: none !important; }
.lb-stage { max-width: min(1100px, 94vw); width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage iframe { max-width: 100%; max-height: 82vh; border-radius: 12px; background: #000; }
.lb-stage iframe { width: min(1100px, 92vw); aspect-ratio: 16/9; border: 0; }
.lb-close {
    position: absolute; top: 18px; right: 24px; background: rgba(255,255,255,.12); color: #fff;
    border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
    color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem;
}
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-nav:hover { background: rgba(255,255,255,.25); }

/* ---------- SSO 弹窗 ---------- */
.modal {
    position: fixed; inset: 0; z-index: 210; background: rgba(8, 18, 30, .6);
    display: flex; align-items: center; justify-content: center; padding: 22px;
}
.modal[hidden] { display: none !important; }
.modal-panel {
    position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
    width: min(420px, 94vw); max-height: 88vh; overflow: auto; padding: 26px 22px 18px;
}
.modal-close {
    position: absolute; top: 10px; right: 12px; border: 0; background: var(--sky);
    width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; color: var(--navy);
}
.sso-note { margin-top: 14px; color: var(--mut); font-size: .8rem; text-align: center; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.sso-loading { display: flex; align-items: center; justify-content: center; padding: 34px; color: var(--mut); gap: 10px; }
.sso-loading::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite;
}

/* ============================================
   响应式 — 移动端优先
   base = 移动端样式；min-width 渐进增强到平板 / 桌面
   ============================================ */

/* —— 移动端基础（<600px）—— */
.container { padding: 0 18px; }
.section { padding: 56px 0; }
.hero-inner { padding: 70px 0 82px; }
.hero-cta { flex-direction: column; align-items: stretch; }
.hero-cta .btn { width: 100%; }
.form-row { grid-template-columns: 1fr; }
.contact-form { padding: 22px 18px; }
.btn { min-height: 44px; }
.nav-toggle { display: block; width: 44px; height: 44px; }

/* 头部：移动端仅保留 品牌 + 语言 + 汉堡；操作项收进滑下菜单 */
.nav-links {
    position: fixed; left: 0; right: 0; top: 66px; z-index: 55;
    background: #fff; flex-direction: column; gap: 0; margin-left: 0;
    padding: 6px 18px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
.nav-links li { width: 100%; }
.nav-links a {
    display: block; padding: 14px 4px; font-size: 1rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.nav-links li:last-child a, .nav-links .mobile-only:last-child a { border-bottom: 0; }

/* 移动端菜单内的操作项（Sign in / Case / 预约） */
.mobile-only { display: block; }
.desktop-only { display: none !important; }
.nav-links .m-menu-link {
    display: flex; align-items: center; justify-content: center; width: 100%;
    padding: 14px 16px; margin-top: 8px; font-size: 1rem; font-weight: 600;
    border: 0; border-radius: 10px; background: transparent; color: var(--navy); cursor: pointer;
}
.nav-links .m-menu-cta { background: var(--blue); color: #fff; }
.nav-links .m-menu-signin { background: var(--sky); color: var(--navy); border: 1.5px solid var(--line); }
.nav-links .mobile-only:first-of-type { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }

/* 移动端：跟随聊天图标的「免费咨询」按钮（默认显示） */
.consult-fab { display: inline-flex; }

/* Lightbox 移动端内边距收敛，iframe 满宽 */
.lightbox { padding: 14px; }
.lb-stage iframe { width: 100%; }

/* —— 平板（≥600px）—— */
@media (min-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .gal-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: row; align-items: center; }
    .hero-cta .btn { width: auto; }
    .consult-fab { display: none; }
}

/* —— 桌面（≥960px）：恢复横向导航与多列布局 —— */
@media (min-width: 960px) {
    .container { padding: 0 22px; }
    .section { padding: 84px 0; }
    .hero-inner { padding: 110px 0 120px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
    .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 44px; }
    .contact-form { padding: 28px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
    .btn { min-height: 0; }

    .nav-links {
        position: static; flex-direction: row; gap: 22px; margin-left: auto;
        padding: 0; border: 0; box-shadow: none; transform: none; opacity: 1;
        pointer-events: auto; background: transparent; z-index: auto;
    }
    .nav-links li { width: auto; }
    .nav-links a {
        display: inline; padding: 0; font-size: .94rem; color: var(--ink); border: 0;
    }
    .nav-links a:hover { color: var(--blue); }
    .mobile-only { display: none !important; }
    .desktop-only { display: inline-flex !important; }
    .nav-toggle { display: none; }
    .consult-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .gal-item img { transition: none; }
}
:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 2px; border-radius: 6px; }

/* 隐蔽 SEO 子链：极小字号、低对比，可被爬虫抓取（不用 display:none/visibility:hidden，避免被判隐藏文本） */
.seo-links{margin-top:18px;font-size:9px;letter-spacing:.02em;color:#b6bfc9;opacity:.75}
.seo-links a{color:#b6bfc9;text-decoration:none}
