/* DLUFL MidHub theme — original Nezha pink-purple (#ed145b / #3E216A) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
  --dl-blue: #ed145b;          /* 哪吒粉紫主色（原站 pink） */
  --dl-blue-deep: #3e216a;     /* 深紫 */
  --dl-blue-mid: #bb3d91;      /* 粉紫过渡 */
  --dl-blue-soft: #fce8f0;
  --dl-accent: #ed145b;
  --dl-ink: #191d3d;
  --dl-muted: #637587;
  --dl-line: #e8e2ee;
  --dl-paper: #f7f4f9;
  --dl-white: #fff;
  --dl-max: 1180px;
  --dl-hero-h: clamp(260px, 34vw, 520px);         /* 仅首页轮播 */
  --dl-page-hero-h: clamp(220px, 28vw, 400px);    /* 内页：对齐西财高度 */
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* SSR 正文仅给源代码/爬虫；视觉隐藏，避免 JS 水合前闪一下 */
#mh-ssr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.dl-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dl-ink);
  background: var(--dl-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.dl-wrap { width: min(100% - 32px, var(--dl-max)); margin-inline: auto; }

/* Topbar */
.dl-topbar {
  background: var(--dl-blue-deep);
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.dl-topbar-inner {
  display: flex; justify-content: flex-end; align-items: center; gap: 18px;
  min-height: 36px;
}
.dl-topbar a { color: rgba(255,255,255,.92); }
.dl-topbar a:hover { color: #fff; }
.dl-top-phone {
  display: inline-flex; align-items: center; gap: 6px;
}

/* Header */
.dl-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--dl-line);
  backdrop-filter: blur(8px);
}
.dl-header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 82px;
}
.dl-brand { flex-shrink: 0; }
.dl-logo {
  height: 54px !important; width: auto !important;
  max-width: min(58vw, 360px);
  object-fit: contain; object-position: left center;
}
.dl-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dl-nav-item { position: relative; }
.dl-nav-item > a {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 11px; font-size: 14px; font-weight: 600;
  color: var(--dl-ink); line-height: 1.15;
}
.dl-nav-item > a small {
  font-size: 10px; font-weight: 400; color: var(--dl-muted);
  margin-top: 2px; letter-spacing: .02em;
}
.dl-nav-item:hover > a,
.dl-nav-item.is-active > a { color: var(--dl-blue); }
.dl-nav-item.is-active > a small { color: var(--dl-blue); }
.dl-sub {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 140px; background: #fff; border: 1px solid var(--dl-line);
  box-shadow: 0 10px 28px rgba(62, 33, 106, .14); padding: 8px 0; z-index: 20;
}
.dl-nav-item:hover .dl-sub { display: block; }
.dl-sub a {
  display: block; padding: 8px 16px; font-size: 13px; white-space: nowrap;
  color: var(--dl-ink);
}
.dl-sub a:hover, .dl-sub a.is-active { color: var(--dl-blue); background: var(--dl-blue-soft); }

.dl-burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--dl-line);
  background: #fff; border-radius: 4px; cursor: pointer;
}
.dl-burger span {
  display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--dl-blue-deep);
}
.dl-mobile-nav {
  display: none; border-top: 1px solid var(--dl-line); background: #fff; padding: 12px 16px 20px;
}
.dl-mobile-nav.is-open { display: block; }
.dl-mobile-nav > a {
  display: block; padding: 10px 4px; font-weight: 600; border-bottom: 1px solid var(--dl-line);
}
.dl-mobile-nav .sub { padding: 4px 0 8px 12px; }
.dl-mobile-nav .sub a { display: block; padding: 6px 4px; font-size: 13px; color: var(--dl-muted); }

/* Hero — full-bleed cinematic */
/* Hero — 同西财：完整图 contain + 同图模糊铺底，高度不变 */
.dl-hero { background: #2a1748; }
.dl-hero-frame {
  position: relative; width: 100%; height: var(--dl-hero-h); overflow: hidden;
  background: #2a1748;
}
.dl-hero-slides { position: absolute; inset: 0; }
.dl-hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s ease; pointer-events: none;
}
.dl-hero-slide.is-active {
  opacity: 1; pointer-events: auto; z-index: 1;
}
.dl-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: blur(18px) saturate(1.05) brightness(.88);
  transform: scale(1.12);
  display: block;
}
.dl-hero-fg {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  display: block;
}
.dl-hero-nav {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 28px; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.dl-hero-nav:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.05); }
.dl-hero-prev { left: 18px; }
.dl-hero-next { right: 18px; }
.dl-hero-dots {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dl-hero-dots button {
  width: 28px; height: 3px; border: 0; border-radius: 2px; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, width .2s;
}
.dl-hero-dots button.is-active { background: #fff; width: 40px; }
.dl-hero-progress {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.15);
}
.dl-hero-progress i {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ed145b, #bb3d91, #fff);
}

/* Video focus — cinematic split */
.dl-video-sec {
  position: relative; overflow: hidden;
  padding: 72px 0; color: #fff;
}
.dl-video-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(.35) saturate(1.1);
  transform: scale(1.08);
}
.dl-video-sec::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(62,33,106,.94) 0%, rgba(62,33,106,.78) 42%, rgba(237,20,91,.42) 100%);
}
.dl-video-panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
.dl-video-media {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.dl-video-media video,
.dl-video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.dl-video-media video {
  opacity: 0; pointer-events: none;
}
.dl-video-media video.is-playing {
  opacity: 1; pointer-events: auto; position: relative; z-index: 2;
}
.dl-video-play {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}
.dl-video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.dl-video-play span {
  display: block; width: 0; height: 0; margin-left: 28px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--dl-blue-deep);
}
.dl-video-copy { max-width: 420px; }
.dl-video-kicker {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}
.dl-video-copy h2 {
  margin: 0 0 16px; font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; font-weight: 700;
}
.dl-video-copy p {
  margin: 0 0 22px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.8;
}
.dl-video-cta {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border: 1px solid rgba(255,255,255,.55);
  color: #fff; font-weight: 600; font-size: 14px;
  transition: background .2s, border-color .2s;
}
.dl-video-cta:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Sections */
.dl-section { padding: 56px 0; }
.dl-section.is-soft { background: var(--dl-paper); }
.dl-sec-head { text-align: center; margin-bottom: 28px; }
.dl-sec-head h2 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  color: var(--dl-blue-deep); font-weight: 700;
}
.dl-sec-head p { margin: 0 auto; max-width: 720px; color: var(--dl-muted); font-size: 15px; }

/* SQA — 四卡同高对齐（不受全局 img{height:auto} 影响） */
.dl-sqa-intro {
  max-width: 920px; margin: 0 auto 28px; color: var(--dl-muted); font-size: 15px; text-align: justify;
}
.dl-sqa-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  align-items: stretch;
}
.dl-sqa-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--dl-line);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.dl-sqa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(62, 33, 106, .14);
}
.dl-sqa-media {
  display: block; position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; background: #e8e2ee; flex: 0 0 auto;
}
.dl-sqa-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
  display: block;
}
.dl-sqa-card > span:last-child,
.dl-sqa-card .dl-sqa-label {
  display: block; padding: 14px 12px; text-align: center; font-weight: 600; font-size: 15px;
  color: var(--dl-blue-deep); flex: 1 0 auto;
}

/* Partners */
.dl-partner-intro {
  max-width: 860px; margin: 0 auto 24px; text-align: center; color: var(--dl-muted); font-size: 14px;
}
.dl-partner-track-wrap { overflow: hidden; }
.dl-partner-track {
  display: flex; gap: 16px; width: max-content;
  animation: dl-marquee 40s linear infinite;
}
.dl-partner-track:hover { animation-play-state: paused; }
.dl-partner-item {
  width: 200px; height: 120px; background: #fff; border: 1px solid var(--dl-line);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.dl-partner-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes dl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.dl-more {
  display: inline-block; margin-top: 20px; color: var(--dl-blue); font-weight: 600; font-size: 14px;
}

/* 内页 Banner — 对齐西财：限高 + cover 铺满，方便阅读标题 */
.dl-page-hero {
  position: relative;
  width: 100%;
  height: var(--dl-page-hero-h);
  overflow: hidden;
  background: #2a1748;
  color: #fff;
}
.dl-page-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.dl-page-hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(42, 23, 72, .72) 100%);
  padding: 28px 0 32px;
  pointer-events: none;
}
.dl-page-hero h1 {
  margin: 0 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
}
.dl-page-hero .crumb { font-size: 13px; opacity: .88; margin-bottom: 6px; }
.dl-page-hero .crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.dl-page-body { padding: 36px 0 64px; background: var(--dl-paper); }
.dl-page-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start;
}
.dl-side-nav {
  background: #fff; border: 1px solid var(--dl-line); padding: 0; overflow: hidden;
}
.dl-side-title {
  background: linear-gradient(90deg, #bb3d91 0%, #3e216a 100%);
  color: #fff; padding: 14px 16px; font-weight: 700; font-size: 15px;
}
.dl-side-nav ul { list-style: none; margin: 0; padding: 0; }
.dl-side-nav li a {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--dl-line); font-size: 14px;
}
.dl-side-nav li.is-active a,
.dl-side-nav li a:hover { color: var(--dl-blue); background: var(--dl-blue-soft); }
.dl-page-main { min-width: 0; }
.dl-article {
  background: #fff; border: 1px solid var(--dl-line); padding: 28px 26px;
  font-size: 15px; line-height: 1.8;
}
.dl-article img { margin: 12px auto; }
.dl-article p { margin: 0 0 1em; }

/* Apply form */
.dl-apply-panel { background: #fff; border: 1px solid var(--dl-line); padding: 28px 26px; }
.dl-apply-panel h2 {
  margin: 0 0 8px; font-family: var(--font-display); color: var(--dl-blue-deep); font-size: 26px;
}
.dl-form-lead { margin: 0 0 20px; color: var(--dl-muted); font-size: 14px; }
.dl-form label {
  display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600;
}
.dl-form label span { color: var(--dl-accent); }
.dl-form input,
.dl-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--dl-line); border-radius: 2px; font: inherit;
}
.dl-form textarea { min-height: 100px; resize: vertical; }
.dl-form button[type="submit"] {
  margin-top: 8px; border: 0;
  background: linear-gradient(90deg, #ed145b 0%, #bb3d91 100%);
  color: #fff;
  padding: 12px 28px; font-weight: 600; cursor: pointer; border-radius: 2px;
}
.dl-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #d01050 0%, #3e216a 100%);
}
.dl-form-msg { margin-top: 12px; font-size: 14px; }
.dl-form-msg.is-ok { color: #1a7f3c; }
.dl-form-msg.is-err { color: #c0392b; }

/* Footer */
.dl-footer {
  background: linear-gradient(120deg, #3e216a 0%, #2a1748 55%, #191d3d 100%);
  color: rgba(255,255,255,.88); padding: 48px 0 0; font-size: 14px;
}
.dl-footer-grid {
  display: grid; grid-template-columns: 1.55fr .85fr .85fr 1.2fr; gap: 28px; padding-bottom: 32px;
}
.dl-footer h4 {
  margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 700;
}
.dl-footer ul { list-style: none; margin: 0; padding: 0; }
.dl-footer li { margin: 0 0 8px; }
.dl-footer a { color: rgba(255,255,255,.82); }
.dl-footer a:hover { color: #fff; }
.dl-footer-about .dl-footer-desc {
  margin: 14px 0 0; opacity: .86; font-size: 13px; line-height: 1.85; text-align: justify;
}
.dl-footer-logo {
  height: 48px; width: auto; max-width: 280px;
  object-fit: contain;
  opacity: .95;
}
.dl-ico {
  display: inline-flex; color: #ed145b; margin-top: 2px; flex-shrink: 0;
}
.dl-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-contact-item {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  margin: 0 !important; line-height: 1.55;
}
.dl-contact-label {
  display: block; font-size: 12px; opacity: .72; margin-bottom: 2px; font-weight: 500;
}
.dl-contact-val {
  display: block; color: rgba(255,255,255,.92); word-break: break-word;
}
a.dl-contact-val { text-decoration: none; }
a.dl-contact-val:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dl-footer-qr {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
}
.dl-footer-qr > .dl-ico { display: none; }
.dl-footer-qr img {
  width: 108px; height: 108px; object-fit: contain; flex: 0 0 auto;
  background: #fff; padding: 6px; border-radius: 8px;
}
.dl-footer-qr div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-footer-qr strong { color: #fff; font-size: 14px; font-weight: 700; }
.dl-footer-qr span { font-size: 12px; opacity: .72; line-height: 1.4; }
.dl-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; opacity: .75;
}
.dl-copy a { color: inherit; }

@media (max-width: 960px) {
  .dl-nav { display: none; }
  .dl-burger { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .dl-video-panel { grid-template-columns: 1fr; gap: 24px; }
  .dl-video-copy { max-width: none; }
  .dl-sqa-cards { grid-template-columns: 1fr 1fr; }
  .dl-page-layout { grid-template-columns: 1fr; }
  .dl-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .dl-footer-about .dl-footer-desc {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; text-align: left;
  }
}

/* 手机端 Banner：桌面 blur+contain 在竖屏难看，改为 cover 铺满 */
@media (max-width: 767px) {
  :root {
    --dl-hero-h: clamp(168px, 48vw, 240px);
    --dl-page-hero-h: clamp(140px, 38vw, 200px);
  }
  .dl-hero-bg { display: none !important; }
  .dl-hero-fg {
    object-fit: cover;
    object-position: center center;
  }
  .dl-hero-dots { bottom: 14px; }
  .dl-page-hero-overlay { padding: 18px 0 20px; }
  .dl-page-hero h1 { font-size: clamp(22px, 6vw, 28px); }
}

.dl-dock { display: none; }

@media (max-width: 560px) {
  .dl-sqa-cards { grid-template-columns: 1fr; }
  .dl-hero-nav { display: none; }
  .dl-video-sec { padding: 48px 0; }

  body.dl-body { padding-bottom: 64px; }

  /* 手机底部：联系优先、去长文墙、链接横排 */
  .dl-footer { padding: 28px 0 0; font-size: 13px; }
  .dl-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
  }
  .dl-footer-about { order: 0; }
  .dl-footer-contact { order: 1; }
  .dl-footer-nav { order: 2; }
  .dl-footer-quick { order: 3; }
  .dl-footer-about .dl-footer-desc { display: none; }
  .dl-footer-logo { height: 40px; max-width: 220px; }
  .dl-footer h4 { margin: 0 0 10px; font-size: 15px; }
  .dl-contact-list { gap: 10px; margin: 0 0 12px; }
  .dl-footer-qr { margin-top: 8px; padding: 10px; }
  .dl-footer-qr img { width: 88px; height: 88px; }
  .dl-footer-nav ul,
  .dl-footer-quick ul {
    display: flex; flex-wrap: wrap; gap: 8px 4px;
  }
  .dl-footer-nav li,
  .dl-footer-quick li { margin: 0; }
  .dl-footer-nav a,
  .dl-footer-quick a {
    display: inline-block;
    padding: 7px 12px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }
  .dl-copy {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 0 16px;
  }

  /* 参考原站：底部固定快捷栏 */
  .dl-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    height: 56px;
    background: linear-gradient(90deg, #ed145b 0%, #bb3d91 100%);
    box-shadow: 0 -4px 18px rgba(62, 33, 106, .28);
  }
  .dl-dock-item {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 600;
    padding: 0; font-family: inherit;
  }
  .dl-dock-ico { display: flex; line-height: 0; opacity: .95; }
}
