/* 禁止浏览器自动夜间模式强行反色（网站本身是固定配色）*/
html{color-scheme:only light}
/* ===== 手机适配补丁（≤760px / 触屏）===== */
@media(max-width:760px){
  /* 首页顶栏：保留 中文|EN 语言切换 */
  .bar nav .lang a{display:inline-block;font-size:13px}
  .bar nav .lang{margin-right:4px;gap:7px}
  /* 首页顶栏：内容滚到下面时不再和 logo 重叠 */
  .bar{background:linear-gradient(180deg,rgba(24,4,8,.9),rgba(24,4,8,.62) 62%,rgba(24,4,8,0))}
  body.light .bar{background:linear-gradient(180deg,rgba(250,247,242,.96),rgba(250,247,242,.72) 62%,rgba(250,247,242,0))}
  body.menu-open .bar{background:none}
  /* 首页统计页右上角句子：居中、可换行、不压住航线节点 */
  .s-cap{left:6vw;right:6vw;top:auto;bottom:var(--capb,40%);max-width:none;text-align:center;font-size:clamp(15px,4.2vw,19px);line-height:1.5;text-wrap:balance;white-space:normal}
  html[lang="en"] .s-cap{left:6vw;right:6vw;max-width:none;font-size:clamp(14px,3.9vw,18px);letter-spacing:.01em}
  /* 子页面：展开的菜单底部留出空间，避免被 WhatsApp 悬浮按钮挡住 */
  .top .nav{padding-bottom:96px}
  /* 联系页：标签放在内容上方，英文标签/长邮箱不再挤在一起 */
  /* 英文长段落在手机上不做两端对齐（避免词间距被拉大） */
  html[lang="en"] .fill{font-size:clamp(16px,4.3vw,19px);line-height:1.75;text-align:justify;text-align-last:left;hyphens:auto;-webkit-hyphens:auto;text-wrap:pretty}
  /* 联系页：长邮箱/网址允许换行 */
}
/* 首页「企业与教育特别服务」票面：手机上缩小，一屏横向可见两张 */
@media(max-width:760px){
  .rtrack{gap:14px}
  .rtrack .tk{width:calc((100vw - 12vw - 14px)/2)!important}
  .rtrack .tk-main{padding:16px 14px 14px;min-height:0}
  .rtrack .tk-main .c{font-size:11px;letter-spacing:.06em;padding-right:30px;line-height:1.5}
  .rtrack .tk-main h3{font-size:24px;margin:6px 0 2px}
  .rtrack .tk-main .en{font-size:11px;letter-spacing:.1em}
  .rtrack .tk-main .d{font-size:12px;margin-top:8px;line-height:1.5}
  .rtrack .tk-ico{width:24px;height:24px;right:12px;top:14px}
  .rtrack .tk-days{flex-wrap:wrap;gap:6px 6px;padding-top:12px}
  .rtrack .tk-days i+i{margin-left:6px}
  .rtrack .tk-days i+i::before{width:6px}
  .rtrack .tk-days b{margin-left:0;flex-basis:100%;font-size:12px;letter-spacing:.02em;white-space:nowrap}
  .rtrack .tk-stub{padding:14px 8px 16px;gap:2px}
  .rtrack .tk-stub s{font-size:11px}
  .rtrack .tk-stub strong{font-size:18px}
  .rtrack .tk-stub em{font-size:11px}
  .rtrack .tk-stub .wa-btn{margin-top:8px;width:38px;height:38px}
  .rtrack .tk-stub .wa-btn .wa-ic{width:20px;height:20px}
}
/* 触屏没有悬停：图片说明直接显示 */
@media(hover:none){
  .ph .cp{translate:0 0!important}
}

/* 子页面顶栏：语言切换放在菜单按钮左边，不用先打开菜单 */
.top .m-lang{display:none}
@media(max-width:900px){
  .top .m-lang{display:inline-flex;align-items:center;gap:8px;margin-left:auto;margin-right:2px;font-size:13px;letter-spacing:.05em}
  .top .m-lang a{padding:12px 3px;opacity:.55;white-space:nowrap}
  .top .m-lang a.lgon{opacity:1;pointer-events:none}
  .top .m-lang i{display:block;width:1px;height:12px;background:currentColor;opacity:.4}
  .top .m-lang + .burger{margin-left:0}
  .top .nav .lang{display:none}
}

/* 手机浏览器夜间模式会把"没有自己背景色"的页面底色变黑，导致深蓝标题看不见：给主体区域显式铺上和页面一致的底色 */
@media(max-width:900px){main{background-color:inherit}.top.dk{background:rgba(26,4,4,.95)}}

/* 服务与优惠页：手机上卡片收成一行三个，点一下在页面中央弹出完整信息 */
@media(max-width:760px){
  .dgs,.pss,.tks{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:30px;align-items:stretch;position:relative;z-index:0;isolation:isolate}
  .dgs .dg:hover,.pss .ps:hover{transform:none}
  /* 小加号标记 */
  .dgs .dg,.pss .ps,.tks .tk-in{position:relative}
  .dgs .dg::after,.pss .ps::after,.tks .tk-in::after{content:"+";position:absolute;right:6px;top:6px;width:18px;height:18px;border-radius:50%;font:400 14px/17px sans-serif;text-align:center;background:rgba(255,255,255,.16);color:#f1d9ab;z-index:1;pointer-events:none}
  .pss .ps::after{background:rgba(110,16,22,.09);color:var(--maroon)}

  /* 收起状态：统一字号（标题字号由脚本按最长的标题自动统一） */
  .dgs .dg{padding:14px 10px 12px;border-radius:12px;cursor:pointer}
  .dgs .dg .ico{width:26px;height:26px;margin-bottom:10px}
  .dgs .dg small,.dgs .dg p,.dgs .dg .pr s,.dgs .dg .pr em,.dgs .dg .wa-btn,.dgs .dg .pr > div a{display:none}
  .dgs .dg h3,.pss .ps h3,.tks .tk-main h3{font-size:var(--tf,15px);line-height:1.3;margin:0 0 6px;overflow-wrap:normal;word-break:normal;hyphens:manual;-webkit-hyphens:manual}
  .dgs .dg .pr{padding-top:0;margin-top:auto}
  .dgs .dg .pr strong{font-size:13px!important;line-height:1.35;display:block}
  .pss .ps{padding:14px 10px 12px;gap:6px;border-radius:12px;cursor:pointer}
  .pss .ps .ico{width:26px;height:26px;margin-bottom:4px}
  .pss .ps h3{margin:0}
  .pss .ps p,.pss .ps .go{display:none}
  .tks .tk{display:flex}
  .tks .tk-in{flex:1;grid-template-rows:1fr auto;cursor:pointer}
  .tks .tk-main{padding:12px 10px 10px;min-height:86px;justify-content:flex-end}
  .tks .tk-main .c,.tks .tk-main .en,.tks .tk-main .d,.tks .tk-main .tk-days,.tks .tk-main .tk-ico{display:none}
  .tks .tk-main h3{margin:0}
  .tks .tk-stub{padding:10px 6px 12px}
  .tks .tk-stub s,.tks .tk-stub em,.tks .tk-stub .wa-btn,.tks .tk-stub .tk-save{display:none}
  .tks .tk-stub strong{font-size:14px}
}

/* 教育文化之旅：照片一行三张，点一下在页面中央弹出大图和说明 */
@media(max-width:760px){
  .pg-trips .flt{gap:8px;margin:44px 0 20px}
  .pg-trips .chip{padding:9px 16px;font-size:14px;letter-spacing:.04em}
  .pg-trips .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-bottom:20px;position:relative;z-index:0;isolation:isolate}
  .pg-trips .ph{aspect-ratio:1/1;border-radius:12px}
  .pg-trips .ph::after{content:"+";position:absolute;right:6px;top:6px;width:18px;height:18px;border-radius:50%;font:400 14px/17px sans-serif;text-align:center;background:rgba(0,0,0,.42);color:#f1d9ab;pointer-events:none;z-index:2}
  .pg-trips .ph .cp{padding:28px 8px 7px;translate:0 0!important}
  .pg-trips .ph .cp b,.pg-trips .ph .cp i{display:none}
  .pg-trips .ph .cp em{font-size:10px;letter-spacing:.16em;margin:0;color:#f1d9ab}
  /* 弹出的大图：做成居中的卡片 */
  .pg-trips .lb{padding:18px}
  .pg-trips .lb img{width:min(100%,420px);max-width:none;height:auto;max-height:60vh;object-fit:cover;border-radius:16px 16px 0 0;box-shadow:none}
  .pg-trips .lb p{width:min(100%,420px);box-sizing:border-box;margin:0;padding:14px 18px 16px;background:#2a0b0f;border-radius:0 0 16px 16px;text-align:left;font-size:14.5px;line-height:1.65}
  .pg-trips .lb .x{top:14px;right:14px;width:44px;height:44px;background:rgba(255,255,255,.14)}
  .pg-trips .lb .ct{top:26px;left:20px}
}

/* —— 点击后的中央弹窗 —— */
.m-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:20px;animation:mFade .22s ease}
.m-modal .m-back{position:absolute;inset:0;background:rgba(14,3,5,.76);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.m-modal .m-box{position:relative;width:min(100%,400px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;-webkit-overflow-scrolling:touch;border-radius:18px;animation:mPop .3s cubic-bezier(.2,.9,.3,1)}
.m-modal .m-x{position:absolute;top:10px;right:10px;z-index:6;width:34px;height:34px;border:none;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:22px;line-height:32px;text-align:center;cursor:pointer;padding:0}
.m-modal .m-one{display:block!important;margin:0!important}
.m-modal .dg::after,.m-modal .ps::after,.m-modal .tk-in::after{display:none!important}
.m-modal .dg{background:linear-gradient(160deg,#52101a,#2c060b);cursor:default}
.m-modal .dg,.m-modal .ps{padding:26px 22px 22px}
.m-modal .dg .ico,.m-modal .ps .ico{width:42px;height:42px}
.m-modal .dg small,.m-modal .dg p,.m-modal .dg .pr s{display:block}
.m-modal .dg .pr em{display:inline}
.m-modal .dg .pr > div a{display:inline}
.m-modal .dg .wa-btn{display:inline-flex}
.m-modal .dg h3{font-size:26px;margin:6px 0 6px}
.m-modal .dg .pr{padding-top:20px}
.m-modal .dg .pr strong{font-size:24px!important}
.m-modal .ps{gap:10px}
.m-modal .ps h3{font-size:22px}
.m-modal .ps p{display:block}
.m-modal .ps .go{display:inline-flex}
.m-modal .tk-in{display:grid;grid-template-columns:1fr}
.m-modal .tk-main{padding:26px 22px 20px;min-height:230px;justify-content:flex-start}
.m-modal .tk-main .c,.m-modal .tk-main .en,.m-modal .tk-main .d{display:block}
.m-modal .tk-main .tk-days{display:flex}
.m-modal .tk-main .tk-ico{display:block}
.m-modal .tk-main h3{font-size:34px;margin:10px 0 2px}
.m-modal .tk-stub{padding:22px 20px}
.m-modal .tk-stub s,.m-modal .tk-stub em{display:block}
.m-modal .tk-stub .wa-btn{display:inline-flex}
.m-modal .tk-stub strong{font-size:30px}
@keyframes mFade{from{opacity:0}to{opacity:1}}
@keyframes mPop{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}}

/* 菜单展开时盖在所有浮层之上（WhatsApp 按钮、子导航都不再压住菜单） */
@media(max-width:900px){
  .top{z-index:900}
  .pg-trips .lb{z-index:3000}
  body:has(.nav.open) .subnav,body:has(.nav.open) .wa-float{visibility:hidden}
}

/* 联系我们：手机上拆成几张横向的小票（公司+地址 / 电话+邮箱 / 网站），只保留"复制" */
.grp{display:contents}
@media(max-width:760px){
  .pg-contact .bp{display:block;background:none;box-shadow:none;border-radius:0;max-width:none;transform:none!important}
  .pg-contact .bp .main{padding:0;overflow:visible;background:none;border-radius:0}
  .pg-contact .bp .main::before,.pg-contact .bp .bar,.pg-contact .stub{display:none}
  /* 起点—终点：放在深色底上，翻牌改成浅色 */
  .pg-contact .route{justify-content:center;gap:14px;margin:0 0 26px;flex-wrap:nowrap}
  .pg-contact .route .p small{color:rgba(255,255,255,.7)}
  .pg-contact .flap .f{background:#f3dfb4;color:#2a0808;font-size:clamp(17px,5vw,22px);box-shadow:none}
  .pg-contact .flap .f::after{background:rgba(42,8,8,.35)}
  .pg-contact .route .arrow{min-width:28px}
  .pg-contact .route .arrow::before{border-top-color:rgba(243,223,180,.7)}
  .pg-contact .route .arrow svg{color:#f3dfb4}
  .pg-contact .rows{gap:14px}
  /* 一张票：左边内容，右边"复制"，中间一条竖向虚线 + 上下缺口 */
  .pg-contact .grp{position:relative;display:block;background-color:#fbf5ea;border-radius:16px;color:var(--ink);box-shadow:0 26px 36px -24px rgba(0,0,0,.85);
    background-image:repeating-linear-gradient(180deg,rgba(184,147,90,.8) 0 6px,transparent 6px 12px);background-repeat:no-repeat;background-size:2px 100%;background-position:calc(100% - 84px) 0}
  .pg-contact .grp::before,.pg-contact .grp::after{content:"";position:absolute;right:84px;width:20px;height:20px;margin-right:-10px;border-radius:50%;background:#1a0404;z-index:2}
  .pg-contact .grp::before{top:-10px}
  .pg-contact .grp::after{bottom:-10px}
  .pg-contact .cr{display:grid;grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:auto auto;column-gap:0;row-gap:3px;align-content:center;align-items:center;padding:14px 0 14px 18px;min-height:102px;box-sizing:border-box;border-radius:0;background:none}
  .pg-contact .cr:hover{background:none;padding-left:18px}
  .pg-contact .cr span.k{grid-column:1;grid-row:1;font-size:12px;letter-spacing:.14em;padding-right:10px}
  .pg-contact .cr .v{grid-column:1;grid-row:2;padding-right:10px;font-size:var(--cf,13px);line-height:1.45;overflow-wrap:anywhere}
  .pg-contact .cr .v:not(.long){white-space:nowrap;overflow-wrap:normal}
  .pg-contact .cr .v.long{font-size:calc(var(--cf,13px) - 1.5px);line-height:1.4}
  .pg-contact .cr .cp{grid-column:2;grid-row:1 / span 2;justify-self:center;align-self:center;padding:9px 16px;font-size:13px}
}
