/* ============================================================
   悠梦庭品牌门户 · 蓝白科技风（umt.css v1）
   原则：白底天青、深墨蓝字、蓝色渐变高光；大气留白、卡片轻浮起
   ============================================================ */
:root {
  --ink: #0b2545;          /* 主文字：深墨蓝 */
  --ink2: #35507a;         /* 次文字 */
  --mut: #7d93b8;          /* 弱文字 */
  --pri: #1257e0;          /* 主蓝 */
  --pri2: #38b6ff;         /* 亮青 */
  --bg: #ffffff;
  --bg2: #f4f8ff;          /* 分区浅蓝底 */
  --line: #dbe7fb;
  --grad: linear-gradient(135deg, #1257e0 0%, #38b6ff 100%);
  --shadow: 0 10px 34px rgba(18, 87, 224, .10);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.7 "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 按钮 ---------- */
.but { display: inline-block; padding: 10px 26px; border-radius: 999px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease; }
.but:hover { transform: translateY(-2px); }
.but.pri { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(18,87,224,.32); }
.but.line { border: 1.5px solid var(--pri); color: var(--pri); background: #fff; }
.but.line:hover { background: #eef5ff; }
.but.ghost { border: 1.5px solid rgba(18,87,224,.35); color: var(--pri); padding: 7px 20px; font-size: 14px; }
.but.small { padding: 8px 18px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.topnav { position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.navin { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.brand svg { flex: none; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink2); }
.links a:hover { color: var(--pri); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(56,182,255,.20), transparent 60%),
    radial-gradient(760px 420px at 12% 108%, rgba(18,87,224,.14), transparent 62%),
    linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(18,87,224,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,87,224,.05) 1px, transparent 1px);
  background-size: 42px 42px; }
.heroin { position: relative; padding: 92px 22px 78px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: 2px; line-height: 1.25; }
.hsub { margin: 18px auto 0; max-width: 780px; color: var(--ink2); font-size: clamp(15px, 1.6vw, 19px); }
.hbtns { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hbtns .but { padding: 13px 34px; font-size: 17px; }
.hstats { margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hst { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px; padding: 16px 8px; backdrop-filter: blur(6px); }
.hst b { display: block; font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hst span { font-size: 13px; color: var(--mut); }

/* ---------- 分区 ---------- */
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg2); }
.stitle { text-align: center; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: 1px; }
.stitle::after { content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0; border-radius: 4px; background: var(--grad); }
.ssub { text-align: center; color: var(--ink2); margin: 18px auto 44px; max-width: 680px; }

/* ---------- 产品卡 ---------- */
.pgird { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(18,87,224,.4); }
.picon { font-size: 30px; }
.pcard h3 { margin: 14px 0 10px; font-size: 21px; }
.pcard p { color: var(--ink2); font-size: 14.5px; min-height: 88px; }
.plis { list-style: none; margin: 12px 0; }
.plis li { font-size: 13.5px; color: var(--ink2); padding: 4px 0 4px 20px; position: relative; }
.plis li::before { content: "✓"; position: absolute; left: 0; color: var(--pri); font-weight: 700; }
.ptag { margin-top: auto; align-self: flex-start; font-size: 12.5px; color: var(--pri);
  background: #eaf2ff; border: 1px solid #cfe2ff; border-radius: 999px; padding: 4px 12px; }

/* ---------- 优势网格 ---------- */
.agrid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acell { background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #1257e0, #38b6ff) 1; border-radius: 12px; padding: 22px; }
.acell b { font-size: 17px; display: block; margin-bottom: 8px; }
.acell p { color: var(--ink2); font-size: 14px; }

/* ---------- 流程 ---------- */
.fstep { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); }
.fs i { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--grad);
  color: #fff; font-style: normal; font-weight: 800; font-size: 18px; align-items: center; justify-content: center; }
.fs b { display: block; margin: 12px 0 6px; font-size: 17px; }
.fs p { color: var(--ink2); font-size: 13.5px; }

/* ---------- 首页资讯区 ---------- */
.nlist { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.nitem { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  transition: transform .16s ease, border-color .16s ease; }
.nitem:hover { transform: translateY(-3px); border-color: rgba(18,87,224,.4); }
.ncat { display: inline-block; font-size: 12px; color: var(--pri); background: #eaf2ff; border-radius: 6px; padding: 1px 8px; margin-right: 10px; }
.ndate { font-size: 12.5px; color: var(--mut); }
.ntitle { margin: 8px 0 6px; font-size: 17px; font-weight: 700; }
.nsum { color: var(--ink2); font-size: 13.5px; }
.nmore { text-align: center; margin-top: 34px; }
.nnone { grid-column: 1/-1; text-align: center; color: var(--mut); padding: 30px 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 14px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.faq details p { margin-top: 10px; color: var(--ink2); font-size: 14.5px; }

/* ---------- 资讯列表页 ---------- */
.npage { padding: 60px 0 84px; }
.ctabs { display: flex; gap: 10px; justify-content: center; margin: 34px 0 36px; flex-wrap: wrap; }
.ct { padding: 7px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); font-size: 14.5px; background: #fff; }
.ct.on { background: var(--grad); color: #fff; border-color: transparent; }
.nrows { max-width: 860px; margin: 0 auto; }
.nrow { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.nmeta { display: flex; gap: 14px; align-items: center; color: var(--mut); font-size: 13px; }
.nmeta i { font-style: normal; }
.nrow h2 { margin: 10px 0 8px; font-size: 20px; }
.nrow h2 a:hover { color: var(--pri); }
.more { font-size: 14px; color: var(--pri); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 36px; }
.pager a, .pager b { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; padding: 0 10px; }
.pager b { background: var(--grad); color: #fff; border-color: transparent; }
.pager .ptotal { color: var(--mut); font-size: 13px; margin-left: 10px; border: none; }

/* ---------- 详情页 ---------- */
.dpage { padding: 46px 0 84px; }
.dgrid { display: grid; grid-template-columns: 1fr 280px; gap: 44px; align-items: start; }
.crumb { font-size: 13px; color: var(--mut); margin-bottom: 14px; }
.crumb a:hover { color: var(--pri); }
.dtitle { font-size: clamp(22px, 3vw, 30px); line-height: 1.45; }
.dmeta { display: flex; gap: 14px; align-items: center; color: var(--mut); font-size: 13.5px; margin: 14px 0 6px; }
.dmeta i { font-style: normal; }
.dsum { margin: 16px 0; padding: 14px 18px; background: var(--bg2); border-left: 3px solid var(--pri);
  border-radius: 0 10px 10px 0; color: var(--ink2); font-size: 14.5px; }
.dbody { margin-top: 20px; font-size: 16px; }
.dbody h2 { font-size: 21px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--pri); }
.dbody h3 { font-size: 18px; margin: 24px 0 10px; }
.dbody h4 { font-size: 16px; margin: 20px 0 8px; }
.dbody p { margin: 12px 0; color: #1d3a5f; }
.dbody ul, .dbody ol { margin: 12px 0 12px 26px; }
.dbody li { margin: 6px 0; }
.dbody blockquote { margin: 14px 0; padding: 12px 18px; background: var(--bg2); border-left: 3px solid var(--pri2); border-radius: 0 10px 10px 0; }
.dbody a { color: var(--pri); text-decoration: underline; }
.dbody code { background: #edf3ff; padding: 2px 7px; border-radius: 6px; font-size: 14px; }
.dbody strong { color: #0a1f3d; }
.dnav { display: flex; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14px; }
.dnav .next { text-align: right; }
.dnav a { color: var(--pri); }
.dside { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.dside h4 { font-size: 16px; margin-bottom: 12px; }
.slis { list-style: none; }
.slis li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.slis a:hover { color: var(--pri); }
.slis time { color: var(--mut); font-size: 12px; }
.dside .but { margin-top: 16px; display: block; text-align: center; }
.nempty { text-align: center; padding: 110px 22px; }
.nempty h1 { font-size: 64px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nempty p { margin: 14px 0 26px; color: var(--ink2); }

/* ---------- 页脚 ---------- */
.foot { background: #0a2043; color: #cdd9ef; padding: 62px 0 26px; }
.fgrid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 34px; }
.fbrand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.fdes { font-size: 13.5px; color: #9db2d8; max-width: 360px; }
.fcol h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.fcol a, .fcol .f24 { display: block; font-size: 14px; color: #a9bcdf; padding: 4px 0; }
.fcol a:hover { color: #fff; }
.fcontact { margin-top: 8px; font-size: 13px; }
.fcontact a { display: inline; margin-right: 12px; color: #7fb2ff; }
.copy { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #8ba1c9; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .pgird, .fstep { grid-template-columns: repeat(2, 1fr); }
  .agrid { grid-template-columns: repeat(2, 1fr); }
  .dgrid { grid-template-columns: 1fr; }
  .dside { position: static; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
}
@media (max-width: 560px) {
  .pgird, .fstep, .agrid, .nlist { grid-template-columns: 1fr; }
  .hstats { grid-template-columns: repeat(2, 1fr); }
  .navin { gap: 14px; }
  .hero h1 { letter-spacing: 1px; }
  .fgrid { grid-template-columns: 1fr; }
}
