/* ============================================================
   韩林源 · 一卡一资讯 v42  2026-11-21
   响应式：PC 左导航+内容，手机折叠导航+底部菜单
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --brand:#2563ff;--brand2:#4f8bff;--brandDk:#1a4fd6;
  --ink:#16213b;--sub:#5b6b88;--mute:#93a1b8;
  --line:#e8eef8;--bg:#f5f8fd;--card:#fff;
  --shadow:0 6px 24px rgba(30,70,150,.07);
  --radius:16px;
}
html{-webkit-text-size-adjust:100%}
body.hne-body{
  background:var(--bg);color:var(--ink);
  font:15px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;padding-bottom:0;
}
a{color:inherit;text-decoration:none}
.hne-wrap{max-width:1240px;margin:0 auto;padding:0 20px}

/* ---------- 顶部 ---------- */
.hne-top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.hne-top-in{height:66px;display:flex;align-items:center;gap:26px}
.hne-logo{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.5px;flex:none}
.hne-logo-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand2),var(--brand));color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;box-shadow:0 4px 12px rgba(37,99,255,.28)}
.hne-logo small{display:block;font-size:10px;font-weight:500;color:var(--mute);letter-spacing:1px;line-height:1}
.hne-nav{display:flex;gap:4px;margin-left:8px;flex:1}
.hne-nav a{padding:8px 14px;border-radius:9px;color:var(--sub);font-size:14px;font-weight:600;transition:.18s}
.hne-nav a:hover{background:#f0f5ff;color:var(--brand)}
.hne-top-cta{flex:none;background:var(--brand);color:#fff;padding:9px 20px;border-radius:10px;font-size:14px;font-weight:700;box-shadow:0 4px 14px rgba(37,99,255,.25);transition:.18s}
.hne-top-cta:hover{background:var(--brandDk);transform:translateY(-1px)}
.hne-menu-btn{display:none;background:none;border:0;width:34px;height:34px;flex-direction:column;gap:5px;align-items:center;justify-content:center;cursor:pointer}
.hne-menu-btn span{width:20px;height:2px;background:var(--ink);border-radius:2px}

/* ---------- 面包屑 ---------- */
.hne-crumb-bar{background:#fff;border-bottom:1px solid var(--line)}
.hne-crumb{padding-top:12px;padding-bottom:12px;color:var(--mute);font-size:13px;display:flex;gap:8px;align-items:center}
.hne-crumb a:hover{color:var(--brand)}
.hne-crumb strong{color:var(--sub);font-weight:600}

/* ---------- 布局 ---------- */
.hne-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;padding-top:24px;padding-bottom:56px;align-items:start}

/* ---------- 左侧导航 ---------- */
.hne-side{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);position:sticky;top:90px;overflow:hidden}
.hne-side-hd{padding:16px 18px 12px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.hne-side-hd strong{font-size:15px;color:var(--ink)}
.hne-side-hd span{font-size:11px;color:var(--mute);background:#f2f6fd;padding:3px 9px;border-radius:20px}
.hne-side-search{padding:12px 14px}
.hne-side-search input{width:100%;height:36px;border:1px solid var(--line);border-radius:9px;padding:0 12px;font-size:13px;color:var(--ink);background:#fafcff;outline:none;transition:.18s}
.hne-side-search input:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(37,99,255,.08)}
.hne-side-tree{max-height:calc(100vh - 220px);overflow-y:auto;padding:0 8px 14px}
.hne-side-tree::-webkit-scrollbar{width:6px}
.hne-side-tree::-webkit-scrollbar-thumb{background:#dbe4f5;border-radius:4px}
.hne-side-grp-t{padding:12px 10px 6px;font-size:12px;font-weight:700;color:var(--brand);letter-spacing:.5px;display:flex;justify-content:space-between}
.hne-side-grp-t em{font-style:normal;color:var(--mute);font-weight:500}
.hne-side-grp ul{list-style:none}
.hne-side-link{display:block;padding:7px 10px;border-radius:8px;font-size:13px;color:var(--sub);transition:.15s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hne-side-link:hover{background:#f0f5ff;color:var(--brand)}
.hne-side-link.hne-on{background:linear-gradient(135deg,#eaf1ff,#f2f6ff);color:var(--brand);font-weight:700;box-shadow:inset 3px 0 0 var(--brand)}
.hne-side-none{padding:24px;text-align:center;color:var(--mute);font-size:13px}

/* ---------- 主内容 ---------- */
.hne-main{min-width:0}

/* Hero */
.hne-hero{border-radius:var(--radius);overflow:hidden;background:linear-gradient(135deg,#1e40af 0%,#2563ff 45%,#4f8bff 100%);position:relative;box-shadow:0 10px 34px rgba(30,70,180,.2);margin-bottom:20px}
.hne-hero:before{content:"";position:absolute;right:-60px;top:-80px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%)}
.hne-hero:after{content:"";position:absolute;right:60px;bottom:-120px;width:260px;height:260px;border-radius:50%;border:40px solid rgba(255,255,255,.07)}
.hne-hero-in{position:relative;z-index:2;padding:38px 40px;color:#fff}
.hne-hero-badge{display:inline-block;padding:5px 14px;border-radius:20px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);font-size:12px;font-weight:600;margin-bottom:14px;backdrop-filter:blur(4px)}
.hne-hero h1{font-size:32px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.hne-hero p{font-size:14px;line-height:1.8;color:rgba(255,255,255,.9);max-width:620px}
.hne-hero p strong{color:#fff;font-weight:700}
.hne-hero-stat{display:flex;gap:26px;margin-top:22px}
.hne-hero-stat span{font-size:13px;color:rgba(255,255,255,.85)}
.hne-hero-stat b{font-size:22px;font-weight:800;color:#fff;margin-right:5px;letter-spacing:-.5px}

/* 分类筛选 */
.hne-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.hne-fbtn{border:1px solid var(--line);background:#fff;color:var(--sub);padding:8px 15px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;transition:.18s;font-family:inherit}
.hne-fbtn em{font-style:normal;color:var(--mute);font-size:11px;margin-left:3px}
.hne-fbtn:hover{border-color:var(--brand2);color:var(--brand)}
.hne-fbtn.hne-fon{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(37,99,255,.22)}
.hne-fbtn.hne-fon em{color:rgba(255,255,255,.75)}

/* 卡片网格 */
.hne-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hne-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:.22s;display:block}
.hne-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(30,70,150,.14);border-color:#cfe0ff}
.hne-card-img{position:relative;aspect-ratio:288/188;background:#f0f4fb;overflow:hidden}
.hne-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}
.hne-card:hover .hne-card-img img{transform:scale(1.04)}
.hne-card-cat{position:absolute;left:10px;top:10px;background:rgba(20,35,70,.72);color:#fff;font-size:11px;padding:3px 9px;border-radius:6px;backdrop-filter:blur(3px)}
.hne-card-body{padding:14px 15px 13px}
.hne-card-body h3{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hne-card-body p{font-size:12px;color:var(--mute);line-height:1.6;height:38px;overflow:hidden;margin-bottom:10px}
.hne-card-ft{display:flex;justify-content:space-between;align-items:center;color:var(--brand);font-size:12px;font-weight:600}
.hne-card-ft i{font-style:normal;font-size:18px;line-height:1}

/* 分页 */
.hne-pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:28px}
.hne-pg{min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--sub);border-radius:9px;font-size:13px;font-weight:600;transition:.15s}
.hne-pg:hover{border-color:var(--brand2);color:var(--brand)}
.hne-pg.cur{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(37,99,255,.22)}
.hne-pg-dot{display:inline-flex;align-items:center;padding:0 4px;color:var(--mute)}

/* ---------- 详情页 ---------- */
.hne-article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:38px 42px 42px}
.hne-art-cat{display:inline-block;color:var(--brand);background:#eef4ff;font-size:12px;font-weight:700;padding:5px 13px;border-radius:20px;margin-bottom:16px}
.hne-art-head h1{font-size:27px;font-weight:800;line-height:1.45;letter-spacing:-.5px;color:var(--ink);margin-bottom:14px}
.hne-art-meta{display:flex;gap:18px;color:var(--mute);font-size:12px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.hne-art-fig{margin:24px 0;text-align:center}
.hne-art-fig img{width:288px;height:188px;object-fit:cover;border-radius:12px;box-shadow:0 8px 24px rgba(30,70,150,.12)}
.hne-art-fig figcaption{font-size:12px;color:var(--mute);margin-top:10px}
.hne-lead{font-size:15px;line-height:1.9;color:#3d4c68;background:#f7faff;border-left:3px solid var(--brand);padding:16px 20px;border-radius:0 10px 10px 0;margin:22px 0 28px}
.hne-dims{display:flex;flex-direction:column;gap:6px}
.hne-dim{display:flex;gap:18px;padding:20px 0;border-bottom:1px dashed var(--line)}
.hne-dim-ico{flex:none;width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,#eaf1ff,#dbe8ff);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800}
.hne-dim-txt h2{font-size:17px;font-weight:800;color:var(--ink);margin-bottom:8px;display:flex;align-items:center;gap:9px}
.hne-dim-txt h2 span{font-size:12px;color:var(--brand);background:#eef4ff;padding:2px 8px;border-radius:6px;font-weight:700}
.hne-dim-txt p{font-size:14px;line-height:1.9;color:#4b5a76}
.hne-cta{margin:30px 0;background:linear-gradient(135deg,#1e40af,#2563ff);border-radius:14px;padding:22px 26px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 8px 24px rgba(30,70,180,.2)}
.hne-cta strong{display:block;font-size:17px;margin-bottom:4px}
.hne-cta span{font-size:12px;color:rgba(255,255,255,.82)}
.hne-cta-btn{display:flex;gap:10px;flex:none}
.hne-cta-btn a{padding:10px 20px;background:#fff;color:var(--brand);border-radius:9px;font-size:14px;font-weight:700;white-space:nowrap}
.hne-cta-btn a.ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.4)}
.hne-faq h2,.hne-rel h2{font-size:19px;font-weight:800;color:var(--ink);margin:28px 0 16px;padding-left:13px;border-left:4px solid var(--brand)}
.hne-faq details{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;overflow:hidden;background:#fcfdff}
.hne-faq summary{padding:14px 18px;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;list-style:none;display:flex;justify-content:space-between}
.hne-faq summary::-webkit-details-marker{display:none}
.hne-faq summary:after{content:"+";color:var(--brand);font-size:18px;font-weight:500}
.hne-faq details[open] summary:after{content:"−"}
.hne-faq details p{padding:0 18px 16px;font-size:13px;line-height:1.85;color:#4b5a76}
.hne-rel-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.hne-rel-grid a{padding:11px 14px;background:#f7faff;border:1px solid var(--line);border-radius:9px;font-size:13px;color:var(--sub);display:flex;justify-content:space-between;transition:.15s}
.hne-rel-grid a:hover{border-color:var(--brand2);color:var(--brand)}
.hne-rel-grid a i{font-style:normal;color:var(--brand)}
.hne-rel-all{display:inline-block;margin-top:16px;color:var(--brand);font-size:13px;font-weight:700}

/* ---------- 底部 ---------- */
.hne-foot{background:#fff;border-top:1px solid var(--line);padding:28px 0}
.hne-foot-links{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;margin-bottom:12px}
.hne-foot-links a{color:var(--sub);font-size:13px}
.hne-foot-links a:hover{color:var(--brand)}
.hne-foot p{text-align:center;color:var(--mute);font-size:12px}

/* 底部菜单（手机） */
.hne-tabbar{display:none}

/* 404 */
.hne-404{max-width:600px;margin:100px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:60px 30px}
.hne-404 h1{font-size:22px;margin-bottom:16px}
.hne-404 a{color:var(--brand)}

/* ============================================================
   响应式：≤1024 收紧网格
   ============================================================ */
@media(max-width:1024px){
  .hne-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hne-hero-in{padding:32px 30px}
}

/* ============================================================
   手机 ≤640：单列 + 折叠导航 + 底部菜单
   ============================================================ */
@media(max-width:640px){
  body.hne-body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
  .hne-wrap{padding:0 14px}
  .hne-top-in{height:56px;gap:12px}
  .hne-logo{font-size:16px}
  .hne-logo-mark{width:32px;height:32px;font-size:17px}
  .hne-nav{display:none;position:absolute;top:56px;left:0;right:0;background:#fff;flex-direction:column;margin:0;padding:8px 14px 14px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
  .hne-nav.hne-open{display:flex}
  .hne-nav a{padding:11px 14px}
  .hne-top-cta{display:none}
  .hne-menu-btn{display:flex;margin-left:auto}
  .hne-crumb{padding-top:10px;padding-bottom:10px;font-size:12px;flex-wrap:wrap}

  .hne-layout{display:block;padding-top:14px;padding-bottom:30px}
  /* 左侧导航：手机上变为顶部可折叠卡片 */
  .hne-side{position:static;margin-bottom:16px;border-radius:12px}
  .hne-side-hd{padding:12px 14px}
  .hne-side-tree{max-height:210px}
  .hne-side-grp ul{display:grid;grid-template-columns:repeat(2,1fr);column-gap:4px}

  .hne-hero-in{padding:26px 22px}
  .hne-hero h1{font-size:24px}
  .hne-hero p{font-size:13px}
  .hne-hero-stat{gap:16px;flex-wrap:wrap}
  .hne-hero-stat b{font-size:18px}

  .hne-filter{gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .hne-fbtn{flex:none;white-space:nowrap}

  .hne-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hne-card-body{padding:11px 11px 10px}
  .hne-card-body h3{font-size:13px}
  .hne-card-body p{font-size:11px;height:34px}
  .hne-card-ft{font-size:11px}

  .hne-pager{margin-top:20px}
  .hne-pg{min-width:34px;height:34px;font-size:12px}

  .hne-article{padding:22px 18px 26px;border-radius:12px}
  .hne-art-head h1{font-size:21px}
  .hne-dim{gap:12px;padding:16px 0}
  .hne-dim-ico{width:38px;height:38px;font-size:18px;border-radius:11px}
  .hne-dim-txt h2{font-size:16px}
  .hne-dim-txt p{font-size:13px}
  .hne-cta{flex-direction:column;align-items:flex-start;padding:18px}
  .hne-cta-btn{width:100%}
  .hne-cta-btn a{flex:1;text-align:center}
  .hne-rel-grid{grid-template-columns:1fr}
  .hne-foot{padding-bottom:20px}
  .hne-foot-links{gap:12px}

  /* 底部菜单 5 项平分、贴底、无 transform */
  .hne-tabbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;width:100%;
    height:calc(56px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
    background:#fff;border-top:1px solid var(--line);
    box-shadow:0 -3px 16px rgba(30,70,150,.08);z-index:100;
  }
  .hne-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;color:var(--mute);font-weight:600}
  .hne-tabbar a.hne-tb-on{color:var(--brand)}
  .hne-tb-ico{font-size:19px;line-height:1;font-weight:400}
}
