/* ============================================================
   公共样式模块 common.css
   被引用的页面：index / about / news / news-list / download / apply
   包含：基础重置、固定头部（顶栏 + 导航 + 下拉 + 汉堡）、
        内页标题区、正文容器、通用提示浮层与弹窗、页脚、备案栏
   页面专属样式请放在各自 assets/css/<page>.css
   ============================================================ */
  /* ===== Reset & Base ===== */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; color: #333; line-height: 1.6; background: #fff; padding-top: 128px; }
  a { text-decoration: none; color: inherit; }
  img { display: block; max-width: 100%; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

  /* ===== 固定头部（顶栏 + 导航）===== */
  .site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.07); }

  /* ===== Top Bar ===== */
  .top-bar { background: #0a1a3a; color: #fff; font-size: 13px; }
  .top-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 7px 20px; }
  .top-bar .info { display: flex; gap: 24px; }
  .top-bar .info span { display: flex; align-items: center; gap: 6px; font-size: 15px; }
  .top-bar .actions { display: flex; gap: 10px; }
  .top-bar .btn-top { background: #1e50a0; color: #fff; padding: 5px 16px; border-radius: 3px; font-size: 15px; }

  /* ===== Header / Nav ===== */
  .header { background: #fff; border-bottom: 1px solid #eee; position: relative; z-index: 30; }
  .header .container { position: relative; display: flex; justify-content: space-between; align-items: center; height: 80px; }
  /* 汉堡按钮 */
  .nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #333; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo-block { display: flex; align-items: center; }
  .logo-img { height: 54px; width: auto; display: block; }
  .nav { display: flex; gap: 28px; font-size: 14px; color: #333; }
  .nav a:hover { color: #1e50a0; }
  .nav a.active { color: #1e50a0; font-weight: 600; }
  /* 悬停蓝色指示条 */
  .nav > a, .nav-item > a { position: relative; }
  .nav > a::after, .nav-item > a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
    background: #1e50a0; transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
  }
  .nav > a:hover::after, .nav-item > a:hover::after, .nav > a.active::after, .nav-item:hover > a::after { transform: scaleX(1); }
  /* 下拉菜单 */
  .nav-item { position: relative; }
  .nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
  .nav-item .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; opacity: .55; }
  .nav-sub {
    position: absolute; top: 100%; left: -12px; margin-top: 12px;
    transform: translateY(6px);
    min-width: 104px; background: #fff; border: 1px solid #eee;
    box-shadow: 0 10px 28px rgba(0,0,0,.12); padding: 6px 0;
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 20;
  }
  .nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-sub a { display: block; padding: 9px 12px; font-size: 13px; color: #333; white-space: nowrap; }
  .nav-sub a + a { border-top: 1px solid #f5f5f5; }
  .nav-sub a:hover { background: #f2f6fd; color: #1e50a0; }

  /* ===== 页面标题区 ===== */
  .page-title-section { background: #0a1a3a url('https://www.hrtefair.com/template/six/assets/hero-1.jpg') center center / cover no-repeat; }
  .page-title-section > .container {
    display: flex; align-items: center; justify-content: center;
    min-height: 150px; padding-top: 20px; padding-bottom: 20px;
  }
  .page-title {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 36px; font-weight: 600; letter-spacing: 0.5px; color: #fff; text-align: center;
  }

  /* ===== 正文区 ===== */
  .post-section { padding: 40px 0 60px; background: #fff; }


  /* ===== Footer ===== */
  .footer { background: #0a1a3a; color: rgba(255,255,255,0.7); padding: 40px 0; font-size: 13px; }
  .footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
  .footer p { font-size: 15px; margin-bottom: 6px; }
  .footer .qr { width: 100px; height: 100px; background: #fff; padding: 4px; margin: 0; display: flex; align-items: center; justify-content: center; }
  .footer .qr img { width: 100%; height: 100%; object-fit: contain; }
  .footer .qr + p { text-align: left; }

  /* ===== Bottom Bar ===== */
  .bottom-bar { background: #061228; color: rgba(255,255,255,0.5); font-size: 14px; text-align: center; padding: 10px 0; }


  /* ===== 通用 UI 组件：提示浮层 + 弹窗（配合 common.js 的 SiteUI）===== */
  /* ===== 提示浮层（对齐参考页 layer.msg）===== */
  .layer-msg {
    position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%);
    z-index: 9999; display: flex; align-items: center; gap: 8px;
    max-width: 80vw; padding: 12px 20px; border-radius: 4px;
    background: rgba(0,0,0,.72); color: #fff; font-size: 15px; line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,.18); opacity: 0; transition: opacity .18s;
  }
  .layer-msg.show { opacity: 1; }
  .layer-msg .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 20px; text-align: center; }
  .layer-msg.icon-0 .ico { background: #f0a020; }
  .layer-msg.icon-2 .ico { background: #e02020; }

  /* ===== 成功弹窗（对齐参考页 layer.open type:1）===== */
  .layer-shade { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.3); }
  .layer-dialog {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 9999; width: 400px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.28); overflow: hidden;
  }
  .layer-dialog .hd {
    position: relative; height: 42px; padding: 0 40px 0 16px; line-height: 42px;
    border-bottom: 1px solid #eee; background: #f8f8f8; font-size: 15px; color: #333;
  }
  .layer-dialog .hd .close {
    position: absolute; top: 0; right: 0; width: 42px; height: 42px;
    background: none; border: none; cursor: pointer; font-size: 18px; color: #999;
  }
  .layer-dialog .hd .close:hover { color: #333; }


  /* ===== Responsive（公共）===== */
  @media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 14px 28px rgba(0,0,0,.10); padding: 6px 0; max-height: calc(100vh - 130px); overflow-y: auto; z-index: 40; }
    .nav.open { display: flex; }
    .nav > a, .nav-item > a { padding: 12px 20px; }
    .nav-item { width: 100%; }
    .nav > a::after, .nav-item > a::after { display: none; }
    .nav-sub { position: static; min-width: 0; margin: 0; padding: 0 0 0 14px; opacity: 1; visibility: visible; transform: none; border: none; border-left: 2px solid #1e50a0; box-shadow: none; }
    .nav-sub a { padding: 10px 20px; }
    .top-bar .container { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .page-title { font-size: 26px; }
    .page-title-section > .container { min-height: 110px; }
    .post-section { padding: 24px 0 36px; }
    .footer .container { grid-template-columns: repeat(2, 1fr); }
  }
