/*
 * 北海明珠官网页脚｜左右均衡白色标识版 V11
 * - 修正桌面端左侧、导航、联系区和二维码区比例，避免右侧被挤出屏幕
 * - 品牌 Logo 统一转为亮白色，适配深蓝页脚
 * - 四组导航、服务联系与 2×2 二维码在同一屏内均衡展示
 * - 继续使用国内常见中文系统字体，不加载外部字体文件
 * - 页脚上方五项服务优势栏保留
 * - 手机端原三按钮底部栏保持不变
 */
:root{
  --footer-navy:#08264f;
  --footer-navy-deep:#061a37;
  --footer-white:#ffffff;
  --footer-text:rgba(255,255,255,.96);
  --footer-muted:rgba(232,240,250,.78);
  --footer-soft:rgba(220,232,247,.60);
  --footer-accent:#dcecff;
  --footer-accent-strong:#ffffff;
  --footer-line:rgba(220,234,250,.15);
  --footer-card:rgba(255,255,255,.045);
}
.footer-shell{width:min(1720px,calc(100% - 64px));margin:0 auto;box-sizing:border-box}
.site-footer *, .footer-benefit-strip *{box-sizing:border-box}

/* 统一使用国内常见中文字体 */
.site-footer,
.footer-benefit-strip,
.mobile-bottom-nav,
.footer-license-modal{
  font-family:"Microsoft YaHei","PingFang SC","HarmonyOS Sans SC","Source Han Sans SC","Noto Sans CJK SC","WenQuanYi Micro Hei",Arial,sans-serif;
}

/* 页脚上方五项服务优势 */
.footer-benefit-strip{background:#f8f4ed;border-top:1px solid #ece3d4;border-bottom:1px solid #e8decd}
.footer-benefit-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:90px}
.footer-benefit-item{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0;padding:15px 18px;border-right:1px solid #e6dccb;color:#163153}
.footer-benefit-item:last-child{border-right:0}
.footer-benefit-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid rgba(31,88,151,.24);border-radius:50%;color:#285f9c;background:#f9fcff}
.footer-benefit-icon .site-icon{width:21px;height:21px}
.footer-benefit-item>span:last-child{display:flex;flex-direction:column;min-width:0}
.footer-benefit-item strong{font-size:15px;line-height:1.35;white-space:nowrap}
.footer-benefit-item small{margin-top:3px;color:#8491a1;font-size:11px;line-height:1.35;white-space:nowrap}

/* 主页脚 */
.site-footer{position:relative;background:linear-gradient(135deg,var(--footer-navy) 0%,var(--footer-navy-deep) 72%,#04142c 100%);color:#fff;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 88% 12%,rgba(58,116,181,.18),transparent 34%),linear-gradient(115deg,transparent 59%,rgba(255,255,255,.018))}

/* 桌面端四区固定边界：品牌 / 导航 / 服务联系 / 二维码 */
.footer-showcase-grid--complete{
  position:relative;
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 280px 300px !important;
  gap:clamp(18px,1.45vw,26px);
  align-items:start;
  width:100%;
  min-width:0;
  padding:32px 0 24px;
}
.footer-showcase-grid--complete>section,
.footer-showcase-grid--complete>div{min-width:0}
.footer-brand-panel{min-width:0;padding-right:10px}
.footer-logo{display:inline-flex;max-width:100%;text-decoration:none}
.footer-logo img{display:block;width:235px;max-width:100%;max-height:82px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1);opacity:.96}
.footer-brand-panel p{max-width:250px;margin:18px 0 0;color:var(--footer-muted);font-size:14px;line-height:1.82}
.footer-brand-socials{display:flex;gap:9px;margin-top:18px}
.footer-brand-socials span{width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(230,241,255,.28);border-radius:50%;color:var(--footer-accent);background:rgba(255,255,255,.035)}
.footer-brand-socials .site-icon{width:14px;height:14px}

/* 四组完整导航：左侧更醒目 */
.footer-navigation-cluster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,1.5vw,26px);min-width:0;padding:1px 4px 0}
.footer-nav-column{min-width:0}
.footer-nav-column h3,.footer-info-panel>h3,.footer-follow-panel>h3{
  margin:0 0 15px;
  color:var(--footer-white);
  font-size:17px;
  font-weight:700;
  letter-spacing:.035em;
  white-space:nowrap;
}
.footer-showcase-links{display:grid;gap:1px}
.footer-showcase-links a{position:relative;display:flex;align-items:center;min-height:30px;padding-left:12px;color:var(--footer-muted);font-size:13px;line-height:1.4;text-decoration:none;white-space:nowrap;transition:color .2s ease,transform .2s ease}
.footer-showcase-links a::before{content:"";position:absolute;left:0;width:4px;height:4px;border-radius:50%;background:var(--footer-accent);opacity:.78}
.footer-showcase-links a:hover{color:#fff;transform:translateX(2px)}

/* 服务与联系：缩窄、紧凑、亮白 */
.footer-info-panel{min-width:0;padding:1px 0 0 22px;border-left:1px solid var(--footer-line)}
.footer-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:11px}
.footer-time-grid p{margin:0;padding:8px 9px;border:1px solid rgba(225,237,252,.13);border-radius:8px;background:var(--footer-card)}
.footer-time-grid small{display:block;color:var(--footer-soft);font-size:9px}
.footer-time-grid strong{display:block;margin-top:3px;color:var(--footer-text);font-size:11px;font-weight:650;white-space:nowrap}
.footer-info-row{display:grid;grid-template-columns:23px minmax(0,1fr);gap:7px;padding:9px 0;border-top:1px solid var(--footer-line)}
.footer-info-row>span{color:var(--footer-accent);padding-top:2px}
.footer-info-row>span .site-icon{width:15px;height:15px}
.footer-info-row>div{display:flex;flex-direction:column;min-width:0}
.footer-info-row small{color:var(--footer-soft);font-size:9px;line-height:1.45}
.footer-info-row strong{margin-top:2px;color:var(--footer-text);font-size:11px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}
.footer-info-address a{margin-top:4px;color:var(--footer-accent);font-size:10px;text-decoration:none}
.footer-info-address a:hover{color:#fff}
.footer-info-phone a{color:#fff;text-decoration:none;font-family:"Microsoft YaHei","PingFang SC","HarmonyOS Sans SC","Source Han Sans SC","Noto Sans CJK SC",Arial,sans-serif;font-size:18px;font-weight:750;line-height:1.3;letter-spacing:.015em;white-space:nowrap;font-variant-numeric:tabular-nums}
.footer-info-phone .footer-info-secondary-phone{margin-top:4px;color:var(--footer-accent);font-family:inherit;font-size:12px;font-weight:650}
.footer-booking-compact{appearance:none;display:inline-flex;align-items:center;gap:7px;margin-top:7px;padding:8px 14px;border:1px solid rgba(226,239,255,.38);border-radius:999px;background:rgba(255,255,255,.055);color:#fff;font:inherit;font-size:11px;cursor:pointer}
.footer-booking-compact .site-icon{width:14px;height:14px}
.footer-booking-compact:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.72)}

/* 二维码区域：完整预留，但缩小视觉占比 */
.footer-follow-panel{min-width:0;padding:1px 0 0 22px;border-left:1px solid var(--footer-line)}
.footer-follow-panel>p{margin:-7px 0 11px;color:var(--footer-soft);font-size:9px;line-height:1.5}
.footer-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.footer-qr-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:7px 5px;border:1px solid rgba(225,237,252,.12);border-radius:8px;background:var(--footer-card);color:var(--footer-muted);text-decoration:none;transition:border-color .2s ease,background .2s ease}
.footer-qr-item:hover{border-color:rgba(224,238,255,.42);background:rgba(255,255,255,.075)}
.footer-qr-item img,.footer-qr-placeholder{display:grid;place-items:center;width:66px;height:66px;padding:4px;border-radius:5px;background:#fff;object-fit:contain}
.footer-qr-placeholder{box-sizing:border-box;border:1px dashed #cbd4df;background:rgba(255,255,255,.95);color:#91a4bb}
.footer-qr-placeholder .site-icon{width:29px;height:29px}
.footer-qr-item strong{max-width:100%;margin-top:5px;color:var(--footer-muted);font-size:9px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.footer-qr-item.is-empty strong{color:rgba(230,240,252,.52)}

.footer-qualification-line{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:9px 16px;padding:12px 0;border-top:1px solid var(--footer-line);color:var(--footer-muted)}
.footer-qualification-line>span{color:#fff;font-size:10px;font-weight:700;letter-spacing:.06em}
.footer-qualification-line button{appearance:none;display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:var(--footer-muted);font:inherit;font-size:9px;cursor:pointer}
.footer-qualification-line button:hover{color:#fff}
.footer-qualification-line .site-icon{width:12px;height:12px;color:var(--footer-accent)}
.footer-bottom-row{position:relative;display:flex;justify-content:center;align-items:center;gap:14px;min-height:44px;border-top:1px solid var(--footer-line);color:rgba(235,243,252,.48);font-size:10px;text-align:center}

/* 白色 Logo：保留透明背景，仅把原蓝金图形统一转为亮白 */
.footer-logo img[src]{color:#fff}

@media(min-width:1700px){
  .footer-showcase-grid--complete{grid-template-columns:280px minmax(0,1fr) 295px 315px !important}
  .footer-logo img{width:250px}
  .footer-brand-panel p{max-width:270px}
}

/* 资质弹窗 */
.footer-license-modal[hidden]{display:none!important}
.footer-license-modal{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:24px}
.footer-license-mask{position:absolute;inset:0;background:rgba(1,10,23,.8);backdrop-filter:blur(6px)}
.footer-license-modal article{position:relative;z-index:1;width:min(760px,100%);max-height:90vh;overflow:auto;padding:28px;border-radius:16px;background:#fff;color:#17243a;box-shadow:0 28px 80px rgba(0,0,0,.35);text-align:center}
.footer-license-modal h3{margin:0 42px 18px;font-size:22px}
.footer-license-modal article>img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#f5f7fa}
.footer-license-modal article>a{display:inline-flex;margin-top:16px;padding:10px 20px;border-radius:7px;background:#0d3d75;color:#fff;text-decoration:none;font-size:13px}
.footer-license-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:#edf1f6;color:#26354c;font-size:24px;cursor:pointer}
.mobile-bottom-nav{display:none}

@media(max-width:1500px) and (min-width:1101px){
  .footer-shell{width:min(1440px,calc(100% - 44px))}
  .footer-showcase-grid--complete{grid-template-columns:220px minmax(0,1fr) 235px 250px !important;gap:18px;padding-top:29px}
  .footer-logo img{width:205px;max-height:72px}
  .footer-brand-panel p{max-width:215px;font-size:12px}
  .footer-navigation-cluster{gap:14px;padding-inline:0}
  .footer-nav-column h3,.footer-info-panel>h3,.footer-follow-panel>h3{font-size:15px}
  .footer-showcase-links a{font-size:11px;min-height:27px;padding-left:10px}
  .footer-info-panel,.footer-follow-panel{padding-left:16px}
  .footer-qr-item img,.footer-qr-placeholder{width:60px;height:60px}
  .footer-benefit-item{padding-inline:10px}.footer-benefit-item strong{font-size:13px}.footer-benefit-item small{font-size:10px}
}

@media(max-width:1100px) and (min-width:769px){
  .footer-shell{width:min(1000px,calc(100% - 38px))}
  .footer-benefit-grid{grid-template-columns:repeat(3,1fr)}
  .footer-benefit-item:nth-child(3){border-right:0}.footer-benefit-item:nth-child(n+4){border-top:1px solid #e7ddcc}
  .footer-showcase-grid--complete{grid-template-columns:220px minmax(0,1fr) !important;gap:24px 28px;padding-top:28px}
  .footer-navigation-cluster{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .footer-info-panel{grid-column:1/2;padding-left:0;border-left:0;border-top:1px solid var(--footer-line);padding-top:18px}
  .footer-follow-panel{grid-column:2/3;padding-left:20px;border-left:1px solid var(--footer-line);border-top:1px solid var(--footer-line);padding-top:18px}
  .footer-qr-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .footer-qr-item img,.footer-qr-placeholder{width:58px;height:58px}
}

/* 手机端保持原三按钮底部栏，不改交互 */
@media(max-width:768px){
  .footer-benefit-strip,.site-footer{display:none!important}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
  .mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:90;display:grid;grid-template-columns:repeat(3,1fr);min-height:calc(64px + env(safe-area-inset-bottom,0px));padding:5px 8px env(safe-area-inset-bottom,0px);background:rgba(255,255,255,.97);border-top:1px solid #dfe6f0;box-shadow:0 -8px 28px rgba(15,41,75,.1);backdrop-filter:blur(16px)}
  .mobile-bottom-nav .mobile-nav-item{appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;border:0;border-radius:11px;background:transparent;color:#44536a;text-decoration:none;font:inherit;cursor:pointer}
  .mobile-bottom-nav .mobile-nav-item:active{background:#edf3fb}
  .mobile-nav-icon{width:28px;height:28px;display:grid;place-items:center;color:#1c5ca8}.mobile-nav-icon .site-icon{width:20px;height:20px}
  .mobile-nav-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.mobile-nav-copy strong{font-size:12px;line-height:1.35;color:#182d49;white-space:nowrap}.mobile-nav-copy small{font-size:8px;color:#8090a5;white-space:nowrap}
}
@media(max-width:420px){.mobile-bottom-nav .mobile-nav-item{gap:4px}.mobile-nav-icon{width:24px;height:24px}.mobile-nav-copy strong{font-size:11px}.mobile-nav-copy small{display:none}}
@media(prefers-reduced-motion:reduce){.footer-showcase-links a,.footer-qr-item{transition:none!important;transform:none!important}}

/* V12｜二维码悬浮预览与点击放大 */
.footer-qr-item{
  position:relative;
  width:100%;
  font-family:inherit;
}
button.footer-qr-item{
  appearance:none;
  -webkit-appearance:none;
  cursor:zoom-in;
  text-align:center;
}
.footer-qr-thumb{
  transition:transform .24s ease,box-shadow .24s ease;
  transform:translateZ(0);
}
.footer-qr-item.has-image:hover,
.footer-qr-item.has-image:focus-visible{
  z-index:12;
  border-color:rgba(229,241,255,.55);
  background:rgba(255,255,255,.09);
  box-shadow:0 12px 28px rgba(0,8,24,.24);
  outline:none;
}
.footer-qr-item.has-image:hover .footer-qr-thumb,
.footer-qr-item.has-image:focus-visible .footer-qr-thumb{
  transform:scale(1.06);
  box-shadow:0 8px 22px rgba(0,11,31,.22);
}
.footer-qr-hover-preview{
  display:none;
}
@media (hover:hover) and (min-width:769px){
  .footer-qr-hover-preview{
    position:absolute;
    right:calc(100% + 14px);
    top:50%;
    z-index:30;
    display:flex;
    width:176px;
    padding:12px;
    flex-direction:column;
    align-items:center;
    gap:8px;
    border:1px solid rgba(218,233,251,.52);
    border-radius:13px;
    background:rgba(255,255,255,.98);
    box-shadow:0 20px 52px rgba(0,10,30,.38);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate(10px,-50%) scale(.94);
    transform-origin:right center;
    transition:opacity .18s ease,visibility .18s ease,transform .18s ease;
  }
  .footer-qr-hover-preview::after{
    content:"";
    position:absolute;
    left:100%;
    top:50%;
    width:12px;
    height:12px;
    background:#fff;
    border-top:1px solid rgba(218,233,251,.52);
    border-right:1px solid rgba(218,233,251,.52);
    transform:translate(-6px,-50%) rotate(45deg);
  }
  .footer-qr-hover-preview img{
    display:block;
    width:146px!important;
    height:146px!important;
    padding:0!important;
    border-radius:8px!important;
    object-fit:contain;
    background:#fff;
  }
  .footer-qr-hover-preview em{
    position:relative;
    z-index:1;
    color:#34506f;
    font-style:normal;
    font-size:11px;
    line-height:1.35;
    white-space:nowrap;
  }
  .footer-qr-item.has-image:hover .footer-qr-hover-preview,
  .footer-qr-item.has-image:focus-visible .footer-qr-hover-preview{
    opacity:1;
    visibility:visible;
    transform:translate(0,-50%) scale(1);
  }
}

.footer-qr-modal[hidden]{display:none!important}
.footer-qr-modal{
  position:fixed;
  inset:0;
  z-index:280;
  display:grid;
  place-items:center;
  padding:24px;
  font-family:"Microsoft YaHei","PingFang SC","HarmonyOS Sans SC","Source Han Sans SC","Noto Sans CJK SC",Arial,sans-serif;
}
.footer-qr-modal-mask{
  position:absolute;
  inset:0;
  background:rgba(2,14,32,.78);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.footer-qr-modal article{
  position:relative;
  z-index:1;
  width:min(420px,calc(100vw - 40px));
  padding:30px 32px 28px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#f6f9fd 100%);
  color:#102b4e;
  text-align:center;
  box-shadow:0 28px 90px rgba(0,7,24,.45);
  animation:footerQrModalIn .22s ease-out both;
}
.footer-qr-modal-close{
  position:absolute;
  right:14px;
  top:13px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#edf3fa;
  color:#274462;
  font:400 25px/1 Arial,sans-serif;
  cursor:pointer;
}
.footer-qr-modal-close:hover{background:#dfeaf6;color:#0c2f58}
.footer-qr-modal-kicker{
  display:block;
  margin-bottom:7px;
  color:#54769c;
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
}
.footer-qr-modal h3{
  margin:0 36px 18px;
  color:#102b4e;
  font-size:24px;
  line-height:1.35;
}
.footer-qr-modal-image-wrap{
  width:260px;
  height:260px;
  max-width:100%;
  margin:0 auto;
  padding:12px;
  border:1px solid #dce6f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(16,43,78,.12);
}
.footer-qr-modal-image-wrap img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:8px;
}
.footer-qr-modal p{
  margin:16px 0 0;
  color:#6a7f97;
  font-size:12px;
  line-height:1.65;
}
.footer-qr-modal a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  margin-top:16px;
  padding:10px 18px;
  border-radius:999px;
  background:#0d3d75;
  color:#fff;
  font-size:13px;
  text-decoration:none;
}
.footer-qr-modal a:hover{background:#092f5e}
.footer-qr-modal-open{overflow:hidden}
@keyframes footerQrModalIn{
  from{opacity:0;transform:translateY(14px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media(max-width:1100px) and (min-width:769px){
  .footer-qr-hover-preview{right:calc(100% + 10px);width:156px;padding:10px}
  .footer-qr-hover-preview img{width:128px!important;height:128px!important}
}
@media(max-width:768px){
  .footer-qr-modal{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .footer-qr-thumb,.footer-qr-hover-preview,.footer-qr-modal article{transition:none!important;animation:none!important}
}
