/* ============================================================================
   动力舟 · 首页「全域媒体资源」四大入口板块  —— v2  宽屏大图版
   ----------------------------------------------------------------------------
   风格参考 : 追觅那种「整张大图 + 文字压在图上」的宽屏 Banner
   排布     : 桌面 2 列 × 2 行，每张 16:9 宽屏；平板 2 列；手机 1 列
   位置     : 首页公告条之后
   配套模板 : addons/ruanwen/view/index/index.html  里的 <section class="dz-res">
   样式文件 : public/assets/addons/ruanwen/css/dlzo-resources.css  (本文件)
   ----------------------------------------------------------------------------
   回滚方法 : ① 删掉本文件
              ② 删掉 layout/default.html 里那一行 <link>
              ③ 删掉 index.html 里的 <section class="dz-res"> … </section> 整段
              ④ 清空 runtime/temp/*
   ============================================================================ */


/* ── ① 调色板 & 尺寸：想微调只改这一段 ─────────────────────────────────── */

:root{
  --dz-res-cols: 2;            /* ★ 一行几张（桌面） */
  --dz-res-gap: 24px;          /* 卡片间距 */
  --dz-res-ratio: 16 / 9;      /* ★ 每张图的宽高比，追觅那种宽屏就是 16/9 */
  --dz-res-tall: 400px;        /* 卡片最小高度，保证图够大够「顶」 */
  --dz-res-accent: #2BC4C4;    /* 与首屏、「服务优势」板块同色 */
  --dz-res-title: #1b2437;
  /* 遮罩分两层：
     ① 整体轻压一层 → 让浅色图（自媒体/海外媒体）也能托住白字
     ② 左下角重点压 → 文字所在的角落最深，深色图不受影响 */
  --dz-res-scrim:
      linear-gradient(180deg,
        rgba(5,12,26,.00)  0%,
        rgba(5,12,26,.07) 38%,
        rgba(5,12,26,.54) 70%,
        rgba(5,12,26,.87) 100%),
      linear-gradient(104deg,
        rgba(5,12,26,.60)  0%,
        rgba(5,12,26,.32) 30%,
        rgba(5,12,26,.03) 54%,
        rgba(5,12,26,0)   68%);
}

/* 板块外壳：干净的浅底，让大图自己顶上去 */
.dz-res{
  background:#ffffff;
  padding:56px 0 60px;
}

/* ── ② 标题区（比 v1 更大更重）──────────────────────────────────────── */

.dz-res-head{ text-align:center; margin-bottom:34px; }
.dz-res-head h2{
  font-size:34px; font-weight:800; line-height:1.28;
  letter-spacing:.01em;
  color:var(--dz-res-title);
  margin:0 0 8px;
}
.dz-res-head .dz-res-en{
  display:block;
  font-size:12px; letter-spacing:.36em; font-weight:600;
  color:#c3cbd9; text-transform:uppercase;
  margin:0 0 15px;
}
.dz-res-head .dz-res-bar{
  display:block; width:44px; height:4px; margin:0 auto;
  border-radius:4px;
  background:linear-gradient(90deg,var(--dz-res-accent),#4f8ef7);
}

/* ── ③ 宽屏大图卡片 ───────────────────────────────────────────────────── */

.dz-res-grid{
  display:grid;
  grid-template-columns:repeat(var(--dz-res-cols), minmax(0,1fr));
  gap:var(--dz-res-gap);
}

.dz-res-card{
  position:relative;
  display:block;
  aspect-ratio:var(--dz-res-ratio);
  min-height:var(--dz-res-tall);
  border-radius:20px;
  overflow:hidden;
  text-decoration:none !important;
  background:#0b1424;
  box-shadow:0 10px 30px rgba(12,30,60,.13);
  transition:transform .34s cubic-bezier(.2,.7,.3,1), box-shadow .34s;
  isolation:isolate;
}
.dz-res-card:hover{
  transform:translateY(-7px);
  box-shadow:0 26px 56px rgba(12,40,80,.26);
}

/* 图片铺满整张卡 */
.dz-res-pic{ position:absolute; inset:0; z-index:0; }
.dz-res-pic img{
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  display:block;
  transform:scale(1.001);
  transition:transform .8s cubic-bezier(.2,.7,.3,1);
}
.dz-res-card:hover .dz-res-pic img{ transform:scale(1.06); }

/* 遮罩：底部深色渐变，保证文字任何时候都清晰 */
.dz-res-pic::after{
  content:''; position:absolute; inset:0;
  background:var(--dz-res-scrim);
  transition:opacity .34s;
}
/* 悬停时加一层青色描边 + 内发光 */
.dz-res-card::after{
  content:''; position:absolute; inset:0; z-index:3;
  border-radius:inherit;
  border:1.5px solid rgba(43,196,196,0);
  box-shadow:inset 0 0 44px rgba(43,196,196,0);
  transition:border-color .34s, box-shadow .34s;
  pointer-events:none;
}
.dz-res-card:hover::after{
  border-color:rgba(43,196,196,.72);
  box-shadow:inset 0 0 44px rgba(43,196,196,.22);
}

/* 文字压在图上的左下角 */
.dz-res-tx{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:0 40px 34px;
  color:#fff;
}

/* 英文小标（追觅那种品牌小字的位置） */
.dz-res-kicker{
  display:block;
  font-size:11.5px; font-weight:700;
  letter-spacing:.24em; text-transform:uppercase;
  color:#7de8e8;
  text-shadow:0 1px 10px rgba(0,0,0,.55);
  margin-bottom:11px;
}

.dz-res-tx h3{
  font-size:31px; font-weight:800; line-height:1.22;
  letter-spacing:.01em;
  color:#fff;
  margin:0 0 10px;
  text-shadow:0 2px 20px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.40);
}

.dz-res-tx p{
  font-size:14.5px; line-height:1.62;
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 12px rgba(0,0,0,.50);
  margin:0;
  max-width:32em;
}

/* 「了解详情」胶囊按钮：平时半透明，悬停变实心青色 */
.dz-res-more{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:18px;
  padding:9px 20px;
  border-radius:999px;
  font-size:13.5px; font-weight:600;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.42);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  transition:background .3s, border-color .3s, color .3s;
}
.dz-res-card:hover .dz-res-more{
  background:var(--dz-res-accent);
  border-color:var(--dz-res-accent);
  color:#04222a;
}
/* 纯 CSS 小箭头，不依赖图标字体 */
.dz-res-more i{
  display:block; width:7px; height:7px;
  border-top:1.9px solid currentColor;
  border-right:1.9px solid currentColor;
  transform:rotate(45deg);
  transition:transform .3s;
}
.dz-res-card:hover .dz-res-more i{ transform:translateX(4px) rotate(45deg); }

/* ── ④ 响应式 ─────────────────────────────────────────────────────────── */

/* 平板：仍然是 2 列，但图变小、字变小 */
@media (max-width:1199px){
  :root{ --dz-res-tall:320px; }
  .dz-res-head h2{ font-size:29px; }
  .dz-res-tx{ padding:0 28px 26px; }
  .dz-res-tx h3{ font-size:25px; }
  .dz-res-tx p{ font-size:13.5px; }
}

/* 小平板 / 大屏手机：改成上下两张一列，图更高更完整 */
@media (max-width:991px){
  :root{ --dz-res-gap:16px; --dz-res-tall:0px; }
  .dz-res{ padding:42px 0 46px; }
  .dz-res-grid{ grid-template-columns:1fr; }
  .dz-res-card{ aspect-ratio:16 / 10; min-height:250px; }
  .dz-res-head h2{ font-size:24px; }
  .dz-res-head .dz-res-en{ letter-spacing:.28em; }
  .dz-res-tx{ padding:0 24px 22px; }
  .dz-res-tx h3{ font-size:22px; }
  .dz-res-kicker{ font-size:10.5px; margin-bottom:8px; }
  .dz-res-more{ margin-top:14px; padding:8px 17px; font-size:13px; }
}

/* 手机 */
@media (max-width:575px){
  .dz-res{ padding:32px 0 36px; }
  .dz-res-head h2{ font-size:20px; }
  .dz-res-card{ aspect-ratio:4 / 3; min-height:0; border-radius:16px; }
  .dz-res-tx{ padding:0 18px 18px; }
  .dz-res-tx h3{ font-size:19px; margin-bottom:7px; }
  .dz-res-tx p{ font-size:12.5px; line-height:1.55; }
  .dz-res-kicker{ font-size:10px; letter-spacing:.18em; margin-bottom:6px; }
  .dz-res-more{ margin-top:11px; padding:7px 15px; font-size:12.5px; }
}
