/* public/css/header-wip-3.css */
/* WIP — 从 header.html 第 3 个 inline <style> 抽出
 * 内容:全局 layui-layer 弹窗样式 + mobile media query (~4KB)
 * 计划:docs/2026-05-28-header-wip-sandbox-plan.md
 * Cascade 位置:header-wip.html 末尾
 * 注:coming-soon-layer 死代码已删,留全局 layui + mobile 样式
 */

  /* Global layui-layer popup styles */
  .layui-layer {
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  .layui-layer-shade {
    background: rgba(0, 0, 0, 0.45) !important;
  }
  .layui-layer-title {
    background: #ffffff !important;
    color: #2b2f36 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 16px 20px !important;
  }
  .layui-layer-content {
    padding: 18px 20px 6px 20px !important;
    font-size: 14px !important;
    color: #2b2f36 !important;
    line-height: 1.65 !important;
    background: #ffffff !important;
  }
  /* Bare toast (layer.msg — no title/buttons): the asymmetric 18px/6px padding above
     pushes the single line below center. Symmetric vertical padding re-centers it.
     Scoped to .layui-layer-msg so alert/confirm/page dialogs keep their padding. */
  .layui-layer-msg .layui-layer-content {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .layui-layer-dialog .layui-layer-content {
    text-align: center !important;
    overflow: visible !important;
  }
  /* Dialog/msg icon: flow it inline so it aligns with the text. Current layui builds use
     the FONT icon .layui-layer-face (not the old sprite .layui-layer-ico), so target both.
     line-height:1 is required for the font icon — otherwise it inherits .layui-layer-content's
     line-height:1.65 and the <i> inflates to ~52px, clipping/misaligning in the toast box. */
  .layui-layer-dialog .layui-layer-content .layui-layer-ico,
  .layui-layer-dialog .layui-layer-content .layui-layer-face {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    line-height: 1 !important;
  }
  .layui-layer-setwin .layui-layer-close {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    color: #9aa1a9 !important;
    font-size: 18px !important;
    transition: all .2s ease !important;
  }
  .layui-layer-setwin .layui-layer-close:hover {
    color: #2b2f36 !important;
    background: #f5f7fa !important;
    border-radius: 50% !important;
  }
  .layui-layer-btn {
    padding: 16px 0 20px 0 !important;
    text-align: center !important;
    border-top: none !important;
    background: #ffffff !important;
  }
  .layui-layer-btn a {
    display: block !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 !important;
    margin: 0 28px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all .2s ease !important;
  }
  .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(90deg, #1FA2FF 0%, #0061FF 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 97, 255, 0.25) !important;
  }
  .layui-layer-btn .layui-layer-btn0:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 97, 255, 0.32) !important;
  }
  .layui-layer-btn .layui-layer-btn0:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 97, 255, 0.22) !important;
  }
  .layui-layer-btn .layui-layer-btn1 {
    background: #f5f6f8 !important;
    color: #4a4f57 !important;
    box-shadow: none !important;
  }
  .layui-layer-btn .layui-layer-btn1:hover {
    background: #eceff3 !important;
  }
  .layui-layer-btn .layui-layer-btn0,
  .layui-layer-btn .layui-layer-btn1 {
    min-width: 180px;
  }

  /* === Mobile right corner cleanup: keep ONLY language switcher; hide hamburger and other nav === */
  @media (max-width: 768px) {
    .head_box {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    .head_left {
      display: flex !important;
    }

    .hr-new.head_right {
      display: inline-flex !important;
      gap: 0 !important;
    }

    /* Show ONLY the language switcher in head_right */
    .hr-new.head_right .lang-switch-container,
    .hr-new.head_right .lang-switch-container.head_rnav {
      display: inline-flex !important;
    }

    /* Hide everything else: nav items, buttons, score/avatar, hamburger */
    .hr-new.head_right .plugins.head_rnav,
    .hr-new.head_right .tools.head_rnav,
    .hr-new.head_right .pricing.head_rnav,
    .hr-new.head_right .tutorial.head_rnav,
    .hr-new.head_right .canvas.head_rnav,
    .hr-new.head_right .ai-flow.head_rnav,
    .hr-new.head_right .profile.head_rnav,
    .hr-new.head_right .profile-menu,
    .hr-new.head_right .download-windows-btn,
    .hr-new.head_right .try-tools-btn,
    .mobile-nav-entry,
    .mobile-nav-toggle {
      display: none !important;
    }
  }

