/* 预载蓝 · 骨架屏预加载 + 响应式 Bento 布局 */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(14px,3.6vw,16px);line-height:1.6;color:#0f172a;background:#f0f6ff;
}
a{color:#2563eb;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.m-shell{min-height:100vh;display:flex;flex-direction:column}

/* ── 骨架屏预加载层 ── */
@keyframes m-shimmer{
  0%{background-position:-200% 0}
  100%{background-position:200% 0}
}
.m-sk-base{
  background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);
  background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite;
  border-radius:10px;
}
.m-skeleton-screen{
  position:fixed;inset:0;z-index:9999;background:#f0f6ff;
  padding:12px 16px;display:flex;flex-direction:column;gap:14px;
  transition:opacity .35s ease,visibility .35s ease;
}
body.m-ready .m-skeleton-screen{opacity:0;visibility:hidden;pointer-events:none}
.m-sk-bar{
  height:48px;border-radius:12px;
  background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite;
}
.m-sk-pills{display:flex;gap:8px;overflow:hidden}
.m-sk-pills span{
  flex:0 0 72px;height:32px;border-radius:999px;
  background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite;
}
.m-sk-hero{
  height:clamp(160px,42vw,220px);border-radius:16px;
  background:linear-gradient(90deg,#bfdbfe 25%,#dbeafe 50%,#bfdbfe 75%);background-size:200% 100%;animation:m-shimmer 1.2s ease-in-out infinite;
}
.m-sk-block{height:100px;border-radius:14px;background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite}
.m-sk-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m-sk-wide{grid-column:1/-1;height:120px;border-radius:12px;background:linear-gradient(90deg,#bfdbfe 25%,#dbeafe 50%,#bfdbfe 75%);background-size:200% 100%;animation:m-shimmer 1.3s ease-in-out infinite}
.m-sk-grid span:not(.m-sk-wide){height:90px;border-radius:12px;background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite}
.m-sk-row{height:14px;border-radius:6px;background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);background-size:200% 100%;animation:m-shimmer 1.4s ease-in-out infinite}
.m-sk-row.short{width:60%}

/* 内容渐显 */
.m-reveal-root{opacity:0;transform:translateY(8px);transition:opacity .45s ease .1s,transform .45s ease .1s}
body.m-ready .m-reveal-root{opacity:1;transform:none}
.m-reveal{opacity:0;transform:translateY(10px);transition:opacity .4s ease,transform .4s ease}
body.m-ready .m-reveal{opacity:1;transform:none}
body.m-ready .m-reveal:nth-child(2){transition-delay:.05s}
body.m-ready .m-reveal:nth-child(3){transition-delay:.1s}
body.m-ready .m-reveal:nth-child(4){transition-delay:.15s}
body.m-ready .m-reveal:nth-child(5){transition-delay:.2s}

/* 图片占位 */
.m-img-wrap{position:relative;overflow:hidden;background:#dbeafe}
.m-img-sk{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,#dbeafe 25%,#eff6ff 50%,#dbeafe 75%);
  background-size:200% 100%;animation:m-shimmer 1.3s ease-in-out infinite;
  transition:opacity .35s ease;
}
.m-img-wrap img{
  position:relative;z-index:2;width:100%;opacity:0;transition:opacity .4s ease;
}
.m-img-wrap img.loaded,.m-img-wrap img[src=""]{opacity:1}
.m-img-wrap img.loaded+.m-img-sk,.m-img-wrap img.loaded~.m-img-sk,
.m-img-wrap:has(img.loaded) .m-img-sk{opacity:0;pointer-events:none}

/* ── 顶栏 + Pill 导航 ── */
.m-header{
  position:sticky;top:0;z-index:200;
  background:rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(37,99,235,.08);
  box-shadow:0 4px 20px rgba(37,99,235,.06);
}
.m-header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px clamp(12px,4vw,20px);gap:10px;
}
.m-logo{display:flex;align-items:center;min-width:0}
.m-logo img{max-height:clamp(32px,8vw,40px);width:auto;max-width:min(180px,50vw)}
.m-logo-text{
  font-weight:700;font-size:clamp(15px,4vw,17px);color:#1e3a8a;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.m-header-call{
  flex-shrink:0;width:40px;height:40px;border-radius:12px;
  background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff!important;
  display:flex;align-items:center;justify-content:center;font-size:18px;
  box-shadow:0 4px 12px rgba(37,99,235,.35);
}
.m-pill-nav{
  display:flex;gap:8px;padding:0 clamp(12px,4vw,20px) 10px;
  overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.m-pill-nav::-webkit-scrollbar{display:none}
.m-pill{
  flex:0 0 auto;scroll-snap-align:start;
  padding:7px 16px;border-radius:999px;font-size:13px;font-weight:500;
  color:#475569;background:#e2e8f0;white-space:nowrap;transition:all .2s ease;
}
.m-pill.active{
  color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  box-shadow:0 3px 10px rgba(37,99,235,.35);
}

.m-main{flex:1;padding-bottom:calc(20px + env(safe-area-inset-bottom))}

/* ── 幻灯 + 进度条 ── */
.m-hero{position:relative;margin:12px clamp(12px,4vw,20px) 0;border-radius:clamp(14px,4vw,20px);overflow:hidden}
.m-hero-track{position:relative;background:#1e40af}
.m-hero-slide{display:none}
.m-hero-slide.active{display:block}
.m-hero .m-img-wrap img{aspect-ratio:16/10;object-fit:cover;min-height:clamp(140px,38vw,200px)}
.m-hero-bubble{
  position:absolute;left:clamp(12px,3vw,16px);right:clamp(12px,3vw,16px);bottom:clamp(12px,3vw,16px);
  padding:12px 16px;border-radius:14px;
  background:rgba(255,255,255,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.6);box-shadow:0 8px 24px rgba(30,64,175,.15);
}
.m-hero-bubble h2{margin:0;font-size:clamp(15px,4.2vw,18px);font-weight:700;color:#1e3a8a;line-height:1.4}
.m-hero-progress{height:3px;background:rgba(37,99,235,.15)}
.m-hero-progress-bar{
  display:block;height:100%;width:0;background:linear-gradient(90deg,#60a5fa,#2563eb);
  transition:width .1s linear;
}

/* 标语 chip */
.m-chip-row{padding:12px clamp(12px,4vw,20px) 0;display:flex;justify-content:center}
.m-chip{
  display:inline-block;padding:8px 18px;border-radius:999px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;
  font-size:13px;font-weight:600;border:1px solid rgba(37,99,235,.15);
}

.m-eyebrow{
  display:block;font-size:11px;font-weight:700;letter-spacing:.14em;
  color:#3b82f6;margin-bottom:6px;
}
.m-head-row{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;padding:0 clamp(12px,4vw,20px);
}
.m-head-row h2{margin:0;font-size:clamp(17px,4.5vw,20px);font-weight:700;color:#1e3a8a}
.m-head-row a{font-size:13px;color:#2563eb;font-weight:500}

.m-section{padding:20px 0 8px}

/* ── 关于：玻璃卡片 ── */
.m-about-glass{position:relative;padding:24px clamp(12px,4vw,20px);margin-top:8px}
.m-about-bg{
  position:absolute;inset:12px clamp(8px,3vw,16px);border-radius:20px;
  background:linear-gradient(145deg,#1d4ed8 0%,#3b82f6 50%,#60a5fa 100%);
  opacity:.92;
}
.m-about-card{
  position:relative;display:flex;flex-direction:column;gap:14px;
  padding:16px;border-radius:18px;
  background:rgba(255,255,255,.75);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.5);box-shadow:0 12px 40px rgba(30,64,175,.2);
}
@media(min-width:480px){
  .m-about-card{flex-direction:row;align-items:center}
  .m-about-media{flex:0 0 42%}
}
.m-about-media .m-img-wrap{border-radius:12px;overflow:hidden}
.m-about-media img{aspect-ratio:4/3;object-fit:cover;width:100%}
.m-about-copy h2{margin:0 0 8px;font-size:clamp(17px,4.5vw,20px);font-weight:700;color:#1e3a8a}
.m-about-copy p{
  margin:0 0 12px;font-size:14px;color:#475569;line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.m-link-arrow{font-size:14px;font-weight:600;color:#2563eb!important}
.m-link-arrow::after{content:" →"}

/* ── Bento 产品网格 ── */
.m-bento{
  display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(8px,2.5vw,12px);
  padding:0 clamp(12px,4vw,20px);
}
@media(min-width:520px){
  .m-bento{grid-template-columns:repeat(3,1fr)}
  .m-bento-hero{grid-column:span 2;grid-row:span 2}
}
.m-bento-cell{
  display:flex;flex-direction:column;border-radius:clamp(12px,3vw,16px);
  overflow:hidden;background:#fff;border:1px solid rgba(37,99,235,.08);
  box-shadow:0 4px 16px rgba(37,99,235,.06);min-height:0;
  transition:transform .2s ease,box-shadow .2s ease;
}
.m-bento-cell:active{transform:scale(.98)}
.m-bento-hero .m-img-wrap img{aspect-ratio:16/11;object-fit:cover}
.m-bento-cell:not(.m-bento-hero) .m-img-wrap img{aspect-ratio:1;object-fit:cover}
.m-bento-cap{padding:10px 12px 12px;flex:1;display:flex;flex-direction:column;justify-content:flex-end}
.m-bento-cap h3{
  margin:0 0 2px;font-size:clamp(13px,3.5vw,15px);font-weight:600;color:#0f172a;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.m-bento-cap p{
  margin:0;font-size:11px;color:#64748b;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
.m-bento-hero .m-bento-cap h3{font-size:clamp(15px,4vw,17px)}

/* ── 资讯滑卡 ── */
.m-news-rail{
  display:flex;gap:clamp(10px,3vw,14px);padding:4px clamp(12px,4vw,20px) 12px;
  overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.m-news-rail::-webkit-scrollbar{display:none}
.m-news-card{
  flex:0 0 clamp(240px,72vw,280px);scroll-snap-align:start;
  display:flex;flex-direction:column;border-radius:16px;overflow:hidden;
  background:#fff;border:1px solid rgba(37,99,235,.08);
  box-shadow:0 6px 20px rgba(37,99,235,.08);
}
.m-news-card .m-img-wrap img{aspect-ratio:16/10;object-fit:cover}
.m-news-card-body{padding:12px 14px 14px;flex:1}
.m-news-card-body time{display:block;font-size:11px;color:#64748b;margin-bottom:4px}
.m-news-card-body h3{
  margin:0 0 6px;font-size:15px;font-weight:600;color:#0f172a;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.m-news-card-body p{
  margin:0;font-size:12px;color:#64748b;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ── 列表：瀑布卡片 ── */
.m-banner .m-img-wrap img{max-height:clamp(120px,32vw,180px);width:100%;object-fit:cover}
.m-list-head{padding:18px clamp(12px,4vw,20px) 8px}
.m-list-head h1{margin:0;font-size:clamp(19px,5vw,22px);font-weight:700;color:#1e3a8a}
.m-waterfall{padding:8px clamp(12px,4vw,20px) 20px;display:flex;flex-direction:column;gap:12px}
.m-wf-card{
  display:flex;align-items:flex-start;gap:12px;padding:14px;
  background:#fff;border-radius:14px;border:1px solid rgba(37,99,235,.08);
  box-shadow:0 3px 14px rgba(37,99,235,.05);position:relative;overflow:hidden;
}
.m-wf-dot{
  flex-shrink:0;width:10px;height:10px;margin-top:6px;border-radius:50%;
  background:linear-gradient(135deg,#60a5fa,#2563eb);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.m-wf-body{flex:1;min-width:0}
.m-wf-body h3{margin:0 0 4px;font-size:15px;font-weight:600;color:#0f172a;line-height:1.35}
.m-wf-body p{margin:0 0 4px;font-size:13px;color:#64748b}
.m-wf-body time{font-size:12px;color:#94a3b8}
.m-wf-thumb{flex:0 0 clamp(72px,22vw,88px)}
.m-wf-thumb .m-img-wrap{border-radius:10px;overflow:hidden}
.m-wf-thumb img{aspect-ratio:4/3;object-fit:cover;width:100%}

/* ── 内页 ── */
.m-article{padding:16px clamp(12px,4vw,20px) 28px;background:#fff;margin:12px clamp(12px,4vw,20px);border-radius:16px;box-shadow:0 4px 20px rgba(37,99,235,.06)}
.m-article-top{margin-bottom:16px;padding-bottom:14px;border-bottom:1px dashed #dbeafe}
.m-article-top h1{margin:0;font-size:clamp(19px,5vw,22px);font-weight:700;color:#1e3a8a;line-height:1.35}
.m-article-top time{display:inline-block;margin-top:8px;font-size:13px;color:#64748b}
.m-article-media{margin-bottom:16px;border-radius:14px;overflow:hidden}
.m-article-media img{width:100%;border-radius:14px}
.m-article-content{font-size:15px;line-height:1.75;color:#334155}
.m-article-content img{margin:12px auto;border-radius:10px}
.m-article-content p{margin:0 0 12px}

/* ── 页脚 + FAB ── */
.m-footer{margin-top:auto;padding:24px clamp(12px,4vw,20px) calc(72px + env(safe-area-inset-bottom))}
.m-footer-inner{
  padding:20px;border-radius:16px;text-align:center;
  background:linear-gradient(145deg,#1e3a8a,#2563eb);color:#bfdbfe;font-size:13px;
}
.m-footer-brand{font-size:16px;font-weight:700;color:#fff;margin:0 0 6px}
.m-footer p{margin:4px 0}
.m-footer a{color:#dbeafe}
.m-fab{
  position:fixed;right:clamp(14px,4vw,20px);bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:180;width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff!important;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(37,99,235,.45);
}
.m-fab-ring{
  position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(59,130,246,.4);
  animation:m-fab-pulse 2s ease-out infinite;
}
@keyframes m-fab-pulse{
  0%{transform:scale(1);opacity:.8}
  100%{transform:scale(1.35);opacity:0}
}
.m-fab-icon{font-size:22px;position:relative;z-index:1}
.m-empty{padding:40px 16px;text-align:center;color:#64748b}

@media(min-width:640px){
  .m-shell{max-width:640px;margin:0 auto}
  .m-skeleton-screen{max-width:640px;left:50%;transform:translateX(-50%);right:auto;width:100%}
  body.m-ready .m-skeleton-screen{transform:translateX(-50%)}
}
