:root {
  --dzr-red: #981b1e;
  --dzr-red-strong: #b20f14;
  --dzr-red-soft: #fff2f1;
  --dzr-gold: #c98a24;
  --dzr-gold-soft: #fff8eb;
  --dzr-ink: #172033;
  --dzr-text: #3f495b;
  --dzr-muted: #7b8494;
  --dzr-border: #e8ebf0;
  --dzr-bg: #f6f7f9;
  --dzr-white: #fff;
  --dzr-radius: 12px;
  --dzr-shadow: 0 6px 24px rgba(23, 32, 51, 0.06);
}

html {
  scrollbar-color: #cfd4dd #f6f7f9;
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: #f6f7f9; }
html::-webkit-scrollbar-thumb { border-radius: 8px; background: #cfd4dd; }

body.dzr-v2 {
  background: var(--dzr-bg);
  color: var(--dzr-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.dzr-v2 a { color: inherit; }
.dzr-v2 a:hover { color: var(--dzr-red); }
.dzr-v2 .site-content { padding-top: 0; }
.dzr-v2 .container { max-width: 1380px; }
.dzr-v2 .float-box { display: none !important; }

/* Header */
.dzr-header {
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--dzr-border);
  box-shadow: none;
  z-index: 1000;
}
.dzr-header__container,
.dzr-header__inner { height: 100%; }
.dzr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dzr-header__brand { flex: 0 0 auto; }
.dzr-header__brand img { width: auto; max-width: 184px; height: 42px; object-fit: contain; }
.dzr-nav { flex: 1 1 auto; min-width: 0; }
.dzr-nav .nav-list { display: flex; justify-content: center; gap: 8px; }
.dzr-nav .menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 16px;
  color: var(--dzr-ink);
  font-weight: 500;
  white-space: nowrap;
}
.dzr-nav .menu-item.active > a,
.dzr-nav .menu-item > a:hover { color: var(--dzr-red); }
.dzr-nav .menu-item.active > a::after {
  position: absolute;
  right: 16px;
  bottom: 10px;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--dzr-red);
  content: "";
}
.dzr-nav .sub-menu { border: 1px solid var(--dzr-border); border-radius: 10px; box-shadow: var(--dzr-shadow); }
.dzr-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dzr-header__search,
.dzr-user-entry .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--dzr-ink);
}
.dzr-user-entry .login-btn { gap: 6px; padding: 0 12px; }
.dzr-member-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--dzr-red);
  border-radius: 9px;
  color: var(--dzr-red) !important;
  font-weight: 600;
}
.dzr-member-entry:hover { background: var(--dzr-red); color: #fff !important; }
.dzr-burger { border: 0; background: transparent; }
.dzr-v2 .header-gap { height: 72px; }

/* Shared */
.dzr-shell { padding: 28px 0 52px; }
.dzr-card {
  background: var(--dzr-white);
  border: 1px solid var(--dzr-border);
  border-radius: var(--dzr-radius);
  box-shadow: var(--dzr-shadow);
}
.dzr-section { margin-top: 18px; }
.dzr-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dzr-section__title { margin: 0; color: var(--dzr-ink); font-size: 22px; font-weight: 700; }
.dzr-more { color: var(--dzr-muted); font-size: 14px; }
.dzr-breadcrumb { margin-bottom: 16px; color: var(--dzr-muted); font-size: 14px; }
.dzr-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--dzr-red-soft);
  color: var(--dzr-red);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.dzr-category-chip[data-dzr-category="三会一课"],
.dzr-category-chip[data-dzr-category="党员大会"],
.dzr-category-chip[data-dzr-category="入党申请"] {
  border-color: #f7d3d0;
  background: #fff1f0;
  color: #b42318;
}
.dzr-category-chip[data-dzr-category="发展党员"] {
  border-color: #ccebd7;
  background: #eefaf2;
  color: #247a45;
}
.dzr-category-chip[data-dzr-category="组织生活会"],
.dzr-category-chip[data-dzr-category="组织生活"] {
  border-color: #f1dbad;
  background: #fff6e8;
  color: #a86111;
}
.dzr-category-chip[data-dzr-category="专题重点"] {
  border-color: #cfe0fa;
  background: #eef5ff;
  color: #2c65aa;
}
.dzr-category-chip[data-dzr-category="思想汇报"] {
  border-color: #e2d3f4;
  background: #f7f0ff;
  color: #7549a6;
}
.dzr-category-chip[data-dzr-category="主题党日"] {
  border-color: #c9ece4;
  background: #edf9f7;
  color: #19796c;
}
.dzr-category-chip[data-dzr-category="总结汇报"] {
  border-color: #d8e5f7;
  background: #e3efff;
  color: #285f9d;
}
.dzr-category-chip[data-dzr-category="心得体会"] {
  border-color: #d5ece0;
  background: #e1f5e9;
  color: #27754f;
}
.dzr-category-chip[data-dzr-category="换届选举"] {
  border-color: #e4daf3;
  background: #eee5fb;
  color: #68419c;
}
.dzr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--dzr-red);
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
}
.dzr-btn:hover { background: var(--dzr-red-strong); }

/* Home */
.dzr-home-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 24px 34px;
  background: linear-gradient(135deg, #7f1115, #b91a1d 68%, #8e1518);
  color: #fff;
  text-align: center;
}
.dzr-home-hero::before,
.dzr-home-hero::after {
  position: absolute;
  width: 330px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  content: "";
  transform: rotate(-10deg);
}
.dzr-home-hero::before { left: -130px; bottom: -95px; }
.dzr-home-hero::after { right: -120px; bottom: -85px; transform: rotate(11deg); }
.dzr-home-hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.dzr-home-hero__eyebrow { display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 12px; padding: 0 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); font-size: 13px; letter-spacing: .5px; }
.dzr-home-hero h1 { margin: 0; color: #fff; font-size: 46px; font-weight: 800; letter-spacing: 1px; }
.dzr-home-hero p { margin: 14px 0 22px; font-size: 18px; color: rgba(255,255,255,.88); }
.dzr-hero-search form {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}
.dzr-hero-search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; color: var(--dzr-ink); }
.dzr-hero-search button { flex: 0 0 110px; height: 42px; border: 0; border-radius: 8px; background: var(--dzr-red); color: #fff; font-weight: 600; }
.dzr-hotwords { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: rgba(255,255,255,.9); font-size: 14px; }
.dzr-hotwords a { color: #fff; }
.dzr-hotwords__label { flex: 0 0 auto; white-space: nowrap; }
.dzr-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: -1px; padding: 20px; }
.dzr-category-card { display: flex; align-items: center; gap: 12px; min-height: 112px; padding: 14px; border: 1px solid var(--dzr-border); border-radius: 10px; background: #fff; }
.dzr-category-card i { flex: 0 0 36px; color: var(--dzr-red); font-size: 28px; text-align: center; }
.dzr-category-card strong { display: block; margin-bottom: 4px; color: var(--dzr-ink); font-size: 16px; }
.dzr-category-card span { display: block; color: var(--dzr-muted); font-size: 12px; line-height: 1.5; }
.dzr-category-card__copy { min-width: 0; }
.dzr-category-card__subcats { overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.dzr-category-card__subcats > span { display: inline; }
.dzr-category-card__subcats > span + span::before { color: #b5bdc9; content: " · "; }
.dzr-category-card__count { display: block; margin-top: 6px; color: var(--dzr-red); font-size: 11px; font-weight: 600; line-height: 1.3; }
.dzr-category-card__count-parts,
.dzr-topic-banner__count-parts { display: none !important; }
.dzr-home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, .95fr); gap: 18px; }
.dzr-list-card { padding: 20px; }
.dzr-doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 76px; padding: 9px 0; border-bottom: 1px solid var(--dzr-border); }
.dzr-doc-row:last-child { border-bottom: 0; }
.dzr-doc-row__content { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; color: inherit; }
.dzr-doc-row__body { min-width: 0; }
.dzr-doc-row__title { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--dzr-ink); font-size: 15px; line-height: 1.4; }
.dzr-doc-row__title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzr-file-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 46px; overflow: hidden; border-radius: 8px; background: #e8f1ff; box-shadow: inset 0 0 0 1px rgba(66, 117, 198, .10); }
.dzr-file-icon::before { position: absolute; inset: 4px 4px 4px 6px; border-radius: 5px; background: linear-gradient(145deg, #2f80d9, #155cc0); clip-path: polygon(0 0, 72% 0, 100% 25%, 100% 100%, 0 100%); content: ""; }
.dzr-file-icon::after { position: absolute; top: 4px; right: 4px; border-top: 10px solid rgba(255,255,255,.60); border-left: 10px solid transparent; content: ""; }
.dzr-file-icon > span { position: relative; z-index: 1; margin-top: 4px; color: #fff; font-family: Arial, sans-serif; font-size: 20px; font-weight: 800; line-height: 1; }
.dzr-file-icon--word { color: #fff; }
.dzr-doc-row__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--dzr-muted); font-size: 12px; line-height: 1.35; }
.dzr-doc-row__meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dzr-doc-row__meta i { color: #9aa3b2; }
.dzr-access { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dzr-access--paid { color: var(--dzr-red); }
.dzr-access--member { color: #b7791f; }
.dzr-access--free { color: #3d8b61; }
.dzr-doc-row__download,
.dzr-archive-item__download { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 68px; height: 34px; padding: 0 12px; border: 1px solid #f0d3cf; border-radius: 8px; background: var(--dzr-red-soft); color: var(--dzr-red) !important; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.dzr-doc-row__download:hover,
.dzr-archive-item__download:hover { border-color: var(--dzr-red); background: var(--dzr-red); color: #fff !important; }
.dzr-topic-card { overflow: hidden; padding: 20px; }
.dzr-topic-banner { padding: 24px; border-radius: 10px; background: linear-gradient(135deg, #a4181b, #d73b26); color: #fff; }
.dzr-topic-banner h3 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.dzr-topic-banner p { margin: 0 0 8px; color: rgba(255,255,255,.86); }
.dzr-topic-banner__count { display: block; margin: 0 0 16px; color: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; }
.dzr-topic-banner a { display: inline-flex; padding: 8px 14px; border-radius: 7px; background: #fff; color: var(--dzr-red); font-weight: 600; }
.dzr-free-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid #ccebd7; border-radius: 10px; background: #f3fbf5; color: inherit; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.dzr-free-card:hover { border-color: #79c39d; background: #eaf8ee; transform: translateY(-1px); }
.dzr-free-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #dcf3e4; color: #2f9460; font-size: 17px; }
.dzr-free-card__body { min-width: 0; }
.dzr-free-card__body strong { display: block; color: #27754f; font-size: 15px; line-height: 1.2; }
.dzr-free-card__body span { display: block; overflow: hidden; margin-top: 4px; color: var(--dzr-muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dzr-free-card__arrow { color: #2f9460; font-size: 16px; }
.dzr-benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; }
.dzr-benefit-item { display: flex; align-items: center; gap: 12px; }
.dzr-benefit-item i { color: var(--dzr-gold); font-size: 26px; }
.dzr-benefit-item strong { display: block; color: var(--dzr-ink); }
.dzr-benefit-item span { color: var(--dzr-muted); font-size: 12px; }

@media (min-width: 992px) {
  .dzr-benefit-item { justify-content: center; }
}

/* Category list */
.dzr-category-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.dzr-category-head__title { display: flex; align-items: center; gap: 18px; }
.dzr-category-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: var(--dzr-red-soft); color: var(--dzr-red); font-size: 30px; }
.dzr-category-head h1 { margin: 0 0 6px; color: var(--dzr-ink); font-size: 30px; }
.dzr-category-head p { margin: 0; color: var(--dzr-muted); }
.dzr-category-search { flex: 0 1 360px; }
.dzr-category-search form { display: flex; align-items: stretch; overflow: hidden; height: 44px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; }
.dzr-category-search input { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 14px; border: 0; background: transparent; line-height: normal; box-sizing: border-box; }
.dzr-category-search input:focus { outline: 2px solid #1769c2; outline-offset: -2px; }
.dzr-category-search button { display: inline-flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 42px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--dzr-red); box-sizing: border-box; }
.dzr-home-collection-head { justify-content: flex-end; margin-bottom: 10px; }
.dzr-home-collection-nav { margin: 0 0 16px; padding-bottom: 18px; border-bottom: 1px solid var(--dzr-border); }
.dzr-home-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dzr-collection-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 90px; padding: 13px 14px; border: 1px solid var(--dzr-border); border-radius: 11px; background: #fff; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.dzr-collection-card[type="button"] { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.dzr-collection-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(34,45,66,.07); }
.dzr-collection-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
.dzr-collection-card__content { min-width: 0; }
.dzr-collection-card__content strong { display: block; margin-bottom: 5px; font-size: 16px; line-height: 1.2; }
.dzr-collection-card__content > span { display: -webkit-box; overflow: hidden; color: var(--dzr-muted); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dzr-collection-card--red { border-color: #f5d8d5; background: #fffafa; }
.dzr-collection-card--red .dzr-collection-card__icon { background: #ffe8e5; color: #c7352c; }
.dzr-collection-card--red strong { color: #b42318; }
.dzr-collection-card--red.is-active { border-color: #e85b51; box-shadow: inset 0 -3px 0 #d92d25; }
.dzr-collection-card--blue { border-color: #d8e5f7; background: #fbfdff; }
.dzr-collection-card--blue .dzr-collection-card__icon { background: #e3efff; color: #387bc2; }
.dzr-collection-card--blue strong { color: #285f9d; }
.dzr-collection-card--blue.is-active { border-color: #78aee8; box-shadow: inset 0 -3px 0 #4d8fd4; }
.dzr-collection-card--green { border-color: #d5ece0; background: #fbfefc; }
.dzr-collection-card--green .dzr-collection-card__icon { background: #e1f5e9; color: #329267; }
.dzr-collection-card--green strong { color: #27754f; }
.dzr-collection-card--green.is-active { border-color: #79c39d; box-shadow: inset 0 -3px 0 #43a978; }
.dzr-collection-card--purple { border-color: #e4daf3; background: #fdfbff; }
.dzr-collection-card--purple .dzr-collection-card__icon { background: #eee5fb; color: #7950b4; }
.dzr-collection-card--purple strong { color: #68419c; }
.dzr-collection-card--purple.is-active { border-color: #a98bd4; box-shadow: inset 0 -3px 0 #8254b6; }
.dzr-home-collection-panel[hidden] { display: none; }
.dzr-home-collection-status { padding: 24px 0; color: var(--dzr-muted); font-size: 13px; text-align: center; }
.dzr-home-collection-status.is-error { color: var(--dzr-red); }
.dzr-home-collection-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-top: 10px; padding: 0 15px; border: 1px solid #efcfcc; border-radius: 7px; background: var(--dzr-red-soft); color: var(--dzr-red); font-size: 12px; font-weight: 600; cursor: pointer; }
.dzr-free-zone[hidden] { display: none; }
.dzr-free-zone__head { align-items: flex-start; }
.dzr-free-zone__head .dzr-more { flex: 0 0 auto; white-space: nowrap; }
.dzr-free-zone__intro { margin: 6px 0 0; color: var(--dzr-muted); font-size: 13px; }
.dzr-free-zone__list { margin-top: 4px; }
.dzr-home-page.is-free-page .dzr-home-hero,
.dzr-home-page.is-free-page .dzr-shell > :not(#dzr-free-zone) { display: none; }
.dzr-home-page.is-free-page .dzr-free-zone { display: block; margin-top: 0; }
.dzr-home-page.is-free-page .dzr-free-zone__head { margin-bottom: 18px; }
.dzr-home-page.is-free-page .dzr-free-zone__head h1 { font-size: 28px; }
html.dzr-free-request .dzr-home-page .dzr-home-hero,
html.dzr-free-request .dzr-home-page .dzr-shell > :not(#dzr-free-zone) { display: none; }
html.dzr-free-request .dzr-home-page .dzr-free-zone { display: block; margin-top: 0; }
.dzr-category-navigation { overflow: hidden; }
.dzr-category-navigation__subnav { border-top: 1px solid var(--dzr-border); }
.dzr-tabs { display: flex; align-items: center; overflow-x: auto; gap: 6px; padding: 10px 18px; border-bottom: 0; white-space: nowrap; }
.dzr-tabs,
.dzr-sort,
.dzr-hotwords { scrollbar-width: none; }
.dzr-tabs::-webkit-scrollbar,
.dzr-sort::-webkit-scrollbar,
.dzr-hotwords::-webkit-scrollbar { display: none; }
.dzr-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 7px; color: var(--dzr-ink); }
.dzr-tabs a.active,
.dzr-tabs a:hover { background: var(--dzr-red); color: #fff; }
.dzr-sort { display: flex; gap: 24px; padding: 10px 22px; border-bottom: 1px solid var(--dzr-border); }
.dzr-sort a { padding: 10px 0; color: var(--dzr-muted); }
.dzr-sort a.active { border-bottom: 2px solid var(--dzr-red); color: var(--dzr-red); }
.dzr-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-top: 18px; }
.dzr-archive-list { padding: 0 22px; }
.dzr-archive-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 0; padding: 16px 0; border-bottom: 1px solid var(--dzr-border); }
.dzr-archive-item:last-child { border-bottom: 0; }
.dzr-archive-item__icon { display: flex; align-items: center; justify-content: center; }
.dzr-archive-item__body { min-width: 0; }
.dzr-archive-item h2 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 7px; color: var(--dzr-ink); font-size: 16px; line-height: 1.45; }
.dzr-archive-item h2 a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzr-archive-item__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; color: var(--dzr-muted); font-size: 12px; line-height: 1.35; }
.dzr-archive-item__meta > span:not(.dzr-chip):not(.dzr-access) { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dzr-archive-item__meta i { color: #9aa3b2; }
.dzr-archive-item__views-label { display: none; }
.dzr-archive-item__meta .dzr-category-chip { min-height: 24px; padding: 0 9px; font-size: 12px; }
.dzr-archive-item p { overflow: hidden; margin: 0; color: var(--dzr-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dzr-archive-item__download { align-self: start; margin-top: 2px; }
.dzr-pagination { margin: 0; padding: 24px 0 28px; }
.dzr-category-page .dzr-pagination__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dzr-category-page .dzr-pagination__list > li { display: block; margin: 0; list-style: none; }
.dzr-category-page .dzr-pagination__list > li > a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--dzr-border); border-radius: 8px; background: #fff; color: var(--dzr-text); line-height: 1; text-decoration: none; box-sizing: border-box; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.dzr-category-page .dzr-pagination__list > li > a[href]:hover { border-color: #d9a6a2; background: var(--dzr-red-soft); color: var(--dzr-red); }
.dzr-category-page .dzr-pagination__list > li > a:not([href]) { background: #f7f8fa; color: #a1a9b5; cursor: default; }
.dzr-category-page .dzr-pagination__list > li.page-active > a { border-color: var(--dzr-red); background: var(--dzr-red); color: #fff; font-weight: 700; }
.dzr-list-aside { position: sticky; top: var(--dzr-list-aside-sticky-top, 92px); align-self: start; }
.dzr-sidebar-card { margin-bottom: 16px; padding: 20px; }
.dzr-sidebar-card h3 { margin: 0 0 14px; color: var(--dzr-ink); font-size: 18px; }
.dzr-rank-list { margin: 0; padding: 0; list-style: none; }
.dzr-rank-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--dzr-border); }
.dzr-rank-list li:last-child { border-bottom: 0; }
.dzr-rank-list b { color: var(--dzr-red); }

/* Article */
.dzr-reading-progress { position: fixed; top: 72px; left: 0; z-index: 1001; width: 0; height: 3px; background: var(--dzr-red); }
.dzr-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; max-width: 1260px; margin: 0 auto; }
.dzr-article-header { padding: 30px 38px 24px; }
.dzr-article-header__layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.dzr-article-header__content { min-width: 0; }
.dzr-article-header h1 { margin: 0 0 14px; color: var(--dzr-ink); font-size: 32px; line-height: 1.35; }
.dzr-article-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--dzr-muted); font-size: 14px; }
.dzr-article-tags { display: flex; gap: 8px; margin-top: 14px; }
.dzr-article-header__actions { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 168px; width: 168px; }
.dzr-article-header__actions small { margin-top: 8px; color: var(--dzr-muted); font-size: 12px; line-height: 1.3; text-align: center; }
.dzr-article-download,
.dzr-article-top { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 15px; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; }
.dzr-article-download--primary { border: 1px solid #159447; background: #159447; color: #fff; }
.dzr-article-download--primary:hover { border-color: #107c3b; background: #107c3b; }
.dzr-article-download--outline { border: 1px solid #159447; color: #159447; }
.dzr-article-download--outline:hover { background: #effaf3; }
.dzr-article-top { border: 1px solid #d6dbe3; color: #5f6978; }
.dzr-article-top:hover { border-color: #aeb6c2; background: #f7f8fa; color: #343d4a; }
.dzr-download-slot { height: 0; margin: 0; }
.dzr-v2 .dzr-download-slot .dowx_doc_box { display: none !important; }
.dzr-article-body { margin-top: 14px; padding: 30px 38px; }
.dzr-article-body .entry-content { max-width: 820px; margin: 0 auto; color: #252d3b; font-size: 17px; line-height: 1.9; }
.dzr-article-body .entry-content h1 { font-size: 24px !important; line-height: 1.45 !important; }
.dzr-article-body .entry-content h2,
.dzr-article-body .entry-content h3 { color: var(--dzr-red); line-height: 1.55; }
.dzr-article-body .entry-content p { margin: 0 0 1.15em; }
.dzr-article-side { position: relative; }
.dzr-article-side__sticky { position: sticky; top: 92px; align-self: start; }
.dzr-article-popular { margin-bottom: 0; }
.dzr-article-side__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--dzr-border); }
.dzr-article-side__actions .dzr-article-download,
.dzr-article-side__actions .dzr-article-top { width: 100%; padding-right: 8px; padding-left: 8px; }
.dzr-toc { margin: 0; padding: 0; list-style: none; }
.dzr-toc li { margin: 0 0 6px; }
.dzr-toc a { display: block; padding: 8px 10px; border-left: 2px solid transparent; color: var(--dzr-text); }
.dzr-toc a.active { border-left-color: var(--dzr-red); background: var(--dzr-red-soft); color: var(--dzr-red); }
.dzr-related-text { margin: 0; padding: 0; list-style: none; }
.dzr-related-text li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 0;
  border-bottom: 1px solid var(--dzr-border);
}
.dzr-related-text a { min-width: 0; line-height: 1.5; }
.dzr-related-word-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8f1ff;
  box-shadow: inset 0 0 0 1px rgba(66, 117, 198, .10);
}
.dzr-related-word-icon::before {
  position: absolute;
  inset: 3px 3px 3px 4px;
  border-radius: 4px;
  background: linear-gradient(145deg, #2f80d9, #155cc0);
  clip-path: polygon(0 0, 72% 0, 100% 25%, 100% 100%, 0 100%);
  content: "";
}
.dzr-related-word-icon::after {
  position: absolute;
  top: 3px;
  right: 3px;
  border-top: 7px solid rgba(255, 255, 255, .60);
  border-left: 7px solid transparent;
  content: "";
}
.dzr-related-word-icon > span {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.dzr-article-nav-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; overflow: hidden; }
.dzr-article-nav-v2 > span { padding: 18px 22px; background: #fff; }

/* VIP / membership */
.dzr-vip-hero { padding: 34px 24px 24px; text-align: center; }
.dzr-vip-hero h1 { margin: 0; color: var(--dzr-ink); font-size: 34px; }
.dzr-vip-hero p { margin: 10px 0 0; color: var(--dzr-muted); font-size: 16px; }
.dzr-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dzr-plan-card { position: relative; padding: 24px; text-align: center; }
.dzr-plan-card.is-recommended { border-color: var(--dzr-red); }
.dzr-plan-badge { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 0 8px 0 8px; background: var(--dzr-gold-soft); color: var(--dzr-gold); font-size: 12px; }
.dzr-plan-card h2 { margin: 0; color: var(--dzr-ink); font-size: 20px; }
.dzr-plan-price { margin: 14px 0 6px; color: var(--dzr-red); font-size: 42px; font-weight: 800; }
.dzr-plan-price small { font-size: 18px; }
.dzr-plan-duration { color: var(--dzr-ink); }
.dzr-plan-limit { min-height: 42px; margin: 8px 0 16px; color: var(--dzr-muted); }
.dzr-plan-features { margin: 16px 0; padding: 16px 0 0; border-top: 1px solid var(--dzr-border); list-style: none; text-align: left; }
.dzr-plan-features li { margin: 9px 0; }
.dzr-plan-features i { margin-right: 8px; color: var(--dzr-red); }
.dzr-plan-card .dzr-btn { width: 100%; }
.dzr-vip-note { margin-top: 14px; padding: 14px 18px; border-color: #f1dfbe; background: var(--dzr-gold-soft); color: #7b5a22; }
.dzr-faq { margin-top: 14px; padding: 8px 18px; }
.dzr-faq details { border-bottom: 1px solid var(--dzr-border); }
.dzr-faq details:last-child { border-bottom: 0; }
.dzr-faq summary { padding: 16px 0; color: var(--dzr-ink); font-weight: 600; cursor: pointer; }
.dzr-faq p { padding: 0 0 16px; color: var(--dzr-muted); }

/* Mobile bottom navigation */
.dzr-mobile-nav { display: none; }

/* V2 site-wide sticky navigation */
.dzr-v2 .dzr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dzr-white);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.08);
}
.dzr-v2 .site { overflow: visible; }
.dzr-v2 .header-gap { display: none; height: 0 !important; }

@media (max-width: 991px) {
  body.dzr-v2 { padding-bottom: 70px; }
  .dzr-v2 .container { width: 100%; padding-right: 16px; padding-left: 16px; }
  .dzr-header { height: 64px; }
  .dzr-nav,
  .dzr-member-entry,
  .dzr-burger { display: none !important; }
  .dzr-header__brand img { max-width: 170px; height: 38px; }
  .dzr-header__actions { gap: 4px; }
  .dzr-header__search { min-width: 38px; }
  .dzr-v2 .header-gap { height: 64px; }
  .dzr-reading-progress { top: 64px; }
  .dzr-home-hero { padding: 32px 16px 24px; text-align: left; }
  .dzr-home-hero__eyebrow { margin-bottom: 8px; font-size: 11px; }
  .dzr-home-hero h1 { font-size: 30px; line-height: 1.35; }
  .dzr-home-hero p { margin: 8px 0 16px; font-size: 15px; }
  .dzr-hero-search form { padding: 4px; }
  .dzr-hero-search input { height: 42px; font-size: 14px; }
  .dzr-hero-search button { flex-basis: 72px; height: 40px; }
  .dzr-hotwords { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dzr-shell { padding: 14px 0 28px; }
  .dzr-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .dzr-category-card { min-height: 108px; padding: 11px 10px; }
  .dzr-category-card > span { display: block; }
  .dzr-category-card__subcats { margin-top: 2px; font-size: 10px !important; }
  .dzr-category-card__count { margin-top: 5px; font-size: 10px; }
  .dzr-home-grid,
  .dzr-list-layout,
  .dzr-article-layout { grid-template-columns: 1fr; }
  .dzr-home-grid { gap: 12px; }
  .dzr-doc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 10px 0; }
  .dzr-doc-row__content { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .dzr-file-icon { flex-basis: 36px; width: 36px; height: 40px; border-radius: 7px; }
  .dzr-file-icon::before { inset: 3px 3px 3px 5px; border-radius: 4px; }
  .dzr-file-icon::after { top: 3px; right: 3px; border-top-width: 8px; border-left-width: 8px; }
  .dzr-file-icon > span { margin-top: 3px; font-size: 17px; }
  .dzr-doc-row__title { font-size: 14px; }
  .dzr-doc-row__meta { gap: 5px 10px; margin-top: 5px; font-size: 11px; }
  .dzr-doc-row__download,
  .dzr-archive-item__download { min-width: 60px; height: 32px; padding: 0 9px; font-size: 12px; }
  .dzr-free-card { margin-top: 12px; padding: 10px; }
  .dzr-free-card__body strong { font-size: 14px; }
  .dzr-free-card__body span { font-size: 11px; }
  .dzr-benefit-strip { grid-template-columns: repeat(2, 1fr); }
  .dzr-category-head { display: block; padding: 20px; }
  .dzr-category-head__title { align-items: flex-start; }
  .dzr-category-head h1 { font-size: 25px; }
  .dzr-category-search { margin-top: 16px; }
  .dzr-home-collection-head { margin-bottom: 8px; }
  .dzr-home-collection-nav { margin: 0 0 14px; padding-bottom: 14px; }
  .dzr-home-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dzr-collection-card { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; min-height: 76px; padding: 10px; }
  .dzr-collection-card__icon { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
  .dzr-collection-card__content strong { margin-bottom: 3px; font-size: 14px; }
  .dzr-collection-card__content > span { font-size: 11px; -webkit-line-clamp: 2; }
  .dzr-category-page .dzr-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 8px; margin: 0; padding: 12px; white-space: normal; }
  .dzr-category-page .dzr-tabs a { justify-content: center; min-height: 38px; padding: 0 5px; border: 1px solid transparent; background: #f7f8fa; font-size: 13px; white-space: nowrap; }
  .dzr-category-page .dzr-tabs a.active { border-color: var(--dzr-red); background: var(--dzr-red); color: #fff; }
  .dzr-category-page .dzr-sort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 8px; padding: 12px; border-bottom: 0; }
  .dzr-category-page .dzr-sort a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 8px; border: 1px solid var(--dzr-border); border-radius: 7px; background: #fff; color: var(--dzr-muted); white-space: nowrap; }
  .dzr-category-page .dzr-sort a.active { border: 1px solid #e6b7b3; background: var(--dzr-red-soft); color: var(--dzr-red); font-weight: 600; }
  .dzr-list-layout { margin-top: 12px; }
  .dzr-list-aside { position: static; display: none; }
  .dzr-archive-list { padding: 0 14px; }
  .dzr-category-page .dzr-archive-item { grid-template-columns: 36px minmax(0, 1fr) 60px; align-items: start; gap: 10px; padding: 16px 0; }
  .dzr-category-page .dzr-archive-item__icon { grid-column: 1; grid-row: 1; }
  .dzr-category-page .dzr-archive-item__body { grid-column: 2 / 4; grid-row: 1; }
  .dzr-category-page .dzr-archive-item__download { position: relative; z-index: 1; grid-column: 3; grid-row: 1; align-self: start; }
  .dzr-category-page .dzr-archive-item h2 { display: block; min-height: 43px; margin-bottom: 0; padding-right: 70px; font-size: 15px; line-height: 1.45; }
  .dzr-category-page .dzr-archive-item h2 a { display: -webkit-box; overflow: hidden; white-space: normal; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .dzr-category-page .dzr-archive-item__meta { display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: start; gap: 7px 14px; margin-top: 7px; margin-bottom: 0; font-size: 11px; }
  .dzr-category-page .dzr-archive-item__meta > span { display: inline-flex; align-items: center; gap: 0; min-width: 0; min-height: 24px; }
  .dzr-category-page .dzr-archive-item__meta > span i { margin-right: 4px; }
  .dzr-category-page .dzr-archive-item__views-label { display: inline; }
  .dzr-category-page .dzr-archive-item__meta .dzr-category-chip { justify-self: start; min-height: 24px; padding: 0 8px; font-size: 11px; }
  .dzr-category-page .dzr-archive-item__meta .dzr-access { justify-self: start; }
  .dzr-archive-item p { display: none; }
  .dzr-pagination { padding: 20px 0 24px; }
  .dzr-category-page .dzr-pagination__list { gap: 6px; }
  .dzr-category-page .dzr-pagination__list > li > a { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12px; }
  .dzr-article-header { padding: 22px 18px 18px; }
  .dzr-article-header__layout { grid-template-columns: 1fr; gap: 16px; }
  .dzr-article-header h1 { margin-bottom: 16px; font-size: 22px; line-height: 1.5; }
  .dzr-article-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #f8f9fb;
    font-size: 12px;
  }
  .dzr-article-meta > span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dzr-article-meta > span i {
    flex: 0 0 14px;
    width: 14px;
    margin-right: 6px;
    color: #8c98a9;
    text-align: center;
  }
  .dzr-article-tags { flex-wrap: wrap; margin-top: 12px; }
  .dzr-article-tags:empty { display: none; }
  .dzr-article-header__actions {
    align-items: center;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--dzr-border);
  }
  .dzr-article-header__actions .dzr-article-download { width: 180px; min-width: 0; }
  .dzr-article-header__actions small { width: 180px; }
  .dzr-related-text li { gap: 0; }
  .dzr-related-word-icon {
    flex-basis: 28px;
    margin-right: 14px;
    background: linear-gradient(145deg, #2f80d9, #155cc0);
    box-shadow: 0 2px 6px rgba(21, 92, 192, .18);
  }
  .dzr-related-word-icon::before { display: none; }
  .dzr-related-word-icon::after {
    top: 0;
    right: 0;
    border-top-width: 7px;
    border-left-width: 7px;
  }
  .dzr-related-word-icon > span { margin-top: 0; }
  .dzr-article-body { padding: 24px 18px; }
  .dzr-article-body .entry-content { font-size: 17px; line-height: 1.86; }
  .dzr-article-body .entry-content h1 { font-size: 20px !important; }
  .dzr-article-side { display: block; margin-top: 14px; }
  .dzr-article-side__sticky { position: static; }
  .dzr-article-nav-v2 { grid-template-columns: 1fr; }
  .dzr-vip-hero { padding: 22px 14px 12px; text-align: left; }
  .dzr-vip-hero h1 { font-size: 28px; }
  .dzr-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dzr-plan-card { padding: 18px 12px; }
  .dzr-plan-card h2 { font-size: 17px; }
  .dzr-plan-price { font-size: 34px; }
  .dzr-plan-features { display: none; }
  .dzr-plan-card .dzr-btn { min-height: 38px; padding: 0 10px; }
  .dzr-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
    border-top: 1px solid var(--dzr-border);
    background: rgba(255,255,255,.98);
  }
  .dzr-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dzr-muted); font-size: 12px; }
  .dzr-mobile-nav i { font-size: 20px; }
  .dzr-mobile-nav a.active { color: var(--dzr-red); }
}

@media (max-width: 420px) {
  .dzr-header__brand img { max-width: 150px; }
  .dzr-category-card strong { font-size: 15px; }
  .dzr-plan-limit { min-height: 36px; font-size: 13px; }
}

/* Homepage polish: keep the legacy theme from overriding V2 components. */
.dzr-v2 .dzr-nav .sub-menu {
  min-width: 132px !important;
  width: max-content;
  margin-top: 6px !important;
  padding: 6px 0 !important;
  border-radius: 10px;
}
.dzr-v2 .dzr-nav .sub-menu::before {
  left: 50% !important;
  margin-left: -10px;
}
.dzr-v2 .dzr-nav .sub-menu .menu-item > a {
  min-height: 0 !important;
  height: auto !important;
  padding: 7px 14px !important;
  line-height: 20px !important;
  text-align: center !important;
  justify-content: center;
  white-space: nowrap;
}
.dzr-v2 .dzr-nav .sub-menu li {
  padding: 0 !important;
  text-align: center;
}
.dzr-v2 .dzr-nav .sub-menu li a:hover {
  transform: none;
  background: var(--dzr-red-soft) !important;
}

.dzr-v2 .dzr-hero-search form {
  box-sizing: border-box;
  align-items: center;
}
.dzr-v2 .dzr-hero-search input {
  box-sizing: border-box;
  height: 46px;
  margin: 0 !important;
  line-height: normal;
  outline: 0;
}
.dzr-v2 .dzr-hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}
.dzr-v2 .dzr-hero-search button i { margin-right: 5px; }

.dzr-v2 .dzr-category-card {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.dzr-v2 .dzr-category-card i { flex: 0 0 auto; }
.dzr-v2 .dzr-category-card > span {
  width: 100%;
  text-align: center;
}
.dzr-v2 .dzr-category-card strong { margin-bottom: 0; }

.dzr-v2 .dzr-chip {
  justify-content: center;
  text-align: center;
}
.dzr-v2 .dzr-doc-row__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 14px;
  line-height: 1.35;
  text-align: left;
}
.dzr-v2 .dzr-doc-row__date,
.dzr-v2 .dzr-doc-row__views { display: inline-flex; }
.dzr-v2 .dzr-doc-row__views { font-size: 12px; }
.dzr-v2 .dzr-topic-card {
  display: flex;
  flex-direction: column;
}
.dzr-v2 .dzr-topic-card .dzr-rank-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.dzr-v2 .dzr-topic-card .dzr-rank-list li {
  flex: 1 1 auto;
  align-items: center;
  min-height: 0;
}

/* Footer: three clear layers — brand, notice, then links and copyright. */
.dzr-v2 .footer {
  border-top: 0;
  background: linear-gradient(135deg, #536b84 0%, #415a74 56%, #344d68 100%);
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}
.dzr-v2 .footer a { color: rgba(255, 255, 255, .80); }
.dzr-v2 .footer a:hover { color: #f4c45f; }
.dzr-v2 .dzr-footer-inner { padding: 30px 32px 24px; }
.dzr-v2 .dzr-footer-top,
.dzr-v2 .dzr-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.dzr-v2 .footer .cs-footer-logo {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
}
.dzr-v2 .footer .cs-footer-logo .footlogoimg {
  width: auto;
  max-width: 238px;
  max-height: 62px;
  margin: 0;
  object-fit: contain;
}
.dzr-v2 .footer .dzr-footer-qr {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.dzr-v2 .footer .dzr-footer-qr-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 76px;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.dzr-v2 .footer .dzr-footer-qr-card img {
  display: block;
  width: 76px;
  height: 76px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.dzr-v2 .footer .dzr-footer-divider {
  height: 1px;
  margin: 25px 0 20px;
  background: rgba(255, 255, 255, .20);
}
.dzr-v2 .footer .dzr-footer-notice p,
.dzr-v2 .footer .dzr-footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, .70);
  font-size: 14px;
  line-height: 1.6;
}
.dzr-v2 .footer .dzr-footer-notice p i { margin-right: 8px; color: #f4b942; }
.dzr-v2 .footer .dzr-footer-bottom { margin-top: 22px; align-items: baseline; }
.dzr-v2 .footer .dzr-footer-links,
.dzr-v2 .footer .dzr-footer-copyright { min-width: 0; }
.dzr-v2 .footer .dzr-footer-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-size: 14px; line-height: 1.6; }
.dzr-v2 .footer .dzr-footer-label { color: rgba(255, 255, 255, .72); white-space: nowrap; }
.dzr-v2 .footer .dzr-footer-link-list { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 16px; font-size: 14px; }
.dzr-v2 .footer .dzr-footer-link-list a { color: rgba(255, 255, 255, .72); }
.dzr-v2 .footer .dzr-footer-copyright p { text-align: right; color: rgba(255, 255, 255, .66); }

/* User card: keep the account summary structured and the two retained actions easy to scan. */
.dzr-v2 .dzr-user-entry .header__dropdown {
  overflow: hidden;
  width: min(380px, calc(100vw - 24px));
  max-width: 380px;
  border-radius: 14px;
  border: 1px solid var(--dzr-border);
  box-shadow: 0 18px 44px rgba(23, 32, 51, .18);
}
.dzr-v2 .dzr-user-entry .header-box {
  margin: 0;
  padding: 0;
  color: var(--dzr-text);
}
.dzr-v2 .dzr-user-entry .refresh-header-top {
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, #fffaf8 0%, #fff 100%);
}
.dzr-v2 .dzr-user-entry .header-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dzr-border);
}
.dzr-v2 .dzr-user-entry .header-top img {
  float: none !important;
  width: 52px;
  height: 52px;
  margin: 1px 0 0;
  border: 2px solid #f3dede;
  background: var(--dzr-red-soft);
  box-shadow: 0 5px 14px rgba(152, 27, 30, .12);
}
.dzr-v2 .dzr-user-entry .dzr-user-summary {
  display: flex;
  min-width: 0;
  padding-top: 1px;
  flex-direction: column;
  gap: 7px;
}
.dzr-v2 .dzr-user-entry .dzr-user-summary__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 24px;
  gap: 8px;
}
.dzr-v2 .dzr-user-entry .user-names {
  float: none !important;
  max-width: 120px;
  color: var(--dzr-ink) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzr-v2 .dzr-user-entry .wp-VIP {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 0 !important;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid #ffd9bf;
  background: #fff0e6;
  color: #d65a16 !important;
  font-size: 11px !important;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}
.dzr-v2 .dzr-user-entry .dzr-user-summary__status {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid #f1e4dc;
  border-radius: 8px;
  background: #fffdfb;
  white-space: nowrap;
}
.dzr-v2 .dzr-user-entry .dzr-user-summary__status span {
  flex: 0 0 auto;
  color: var(--dzr-muted);
  font-size: 11px;
  line-height: 18px;
}
.dzr-v2 .dzr-user-entry .dzr-user-summary__status strong {
  overflow: hidden;
  color: #b85b2a;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzr-v2 .dzr-user-entry .header-top p {
  margin: 0 !important;
  color: var(--dzr-muted);
  font-size: 11px;
  line-height: 16px;
}
.dzr-v2 .dzr-user-entry .header-top p strong {
  color: #d65a16 !important;
  font-weight: 700;
}
.dzr-v2 .dzr-user-entry .header-top .logout {
  position: static;
  align-self: start;
  min-width: 42px;
  padding: 6px 8px;
  border: 1px solid var(--dzr-border);
  border-radius: 8px;
  background: #f7f8fa;
  color: var(--dzr-muted) !important;
  line-height: 1.2;
}
.dzr-v2 .dzr-user-entry .header-top .logout:hover { background: var(--dzr-red-soft); }
.dzr-v2 .dzr-user-entry .header-bottom {
  padding: 16px 20px 20px;
  background: #fff;
}
.dzr-v2 .dzr-user-entry .dzr-user-actions__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dzr-v2 .dzr-user-entry .dzr-user-actions__heading strong {
  color: var(--dzr-ink);
  font-size: 14px;
  line-height: 20px;
}
.dzr-v2 .dzr-user-entry .dzr-user-actions__heading span {
  color: var(--dzr-muted);
  font-size: 11px;
  line-height: 18px;
}
.dzr-v2 .dzr-user-entry .header-bottom ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0 !important;
}
.dzr-v2 .dzr-user-entry .header-bottom li {
  float: none !important;
  display: block;
  flex: none;
  width: auto;
}
.dzr-v2 .dzr-user-entry .header-bottom li a {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 10px;
  border: 1px solid var(--dzr-border);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--dzr-text) !important;
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.dzr-v2 .dzr-user-entry .header-bottom li a:hover {
  border-color: #f0c9c8;
  background: var(--dzr-red-soft);
  color: var(--dzr-red) !important;
  transform: translateY(-1px);
}
.dzr-v2 .dzr-user-entry .header-bottom li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border-radius: 9px;
  background: var(--dzr-red-soft) !important;
  color: var(--dzr-red);
  font-size: 19px;
  line-height: 1;
}
.dzr-v2 .dzr-user-entry .header-bottom li a:hover i {
  background: #fff !important;
}
.dzr-v2 .dzr-user-entry .dzr-user-action__copy {
  display: block;
  min-width: 0;
}
.dzr-v2 .dzr-user-entry .dzr-user-action__copy strong {
  display: block;
  overflow: hidden;
  color: var(--dzr-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzr-v2 .dzr-user-entry .dzr-user-action__copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--dzr-muted);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .dzr-v2 .dzr-doc-row__meta { display: flex; }
  .dzr-v2 .dzr-footer-inner { padding: 22px 16px 18px; }
  .dzr-v2 .dzr-footer-top,
  .dzr-v2 .dzr-footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  .dzr-v2 .footer .cs-footer-logo .footlogoimg { max-width: 205px; max-height: 52px; }
  .dzr-v2 .footer .dzr-footer-qr { justify-content: flex-start; flex-wrap: wrap; gap: 14px 16px; width: 100%; }
  .dzr-v2 .footer .dzr-footer-qr-card { flex-basis: 76px; }
  .dzr-v2 .footer .dzr-footer-divider { margin: 20px 0 16px; }
  .dzr-v2 .footer .dzr-footer-notice.cs-footer-text { display: block; width: 100%; }
  .dzr-v2 .footer .dzr-footer-notice p,
  .dzr-v2 .footer .dzr-footer-copyright p { text-align: left; font-size: 13px; }
  .dzr-v2 .footer .dzr-footer-bottom { margin-top: 18px; gap: 9px; }
  .dzr-v2 .footer .dzr-footer-notice p,
  .dzr-v2 .footer .dzr-footer-links,
  .dzr-v2 .footer .dzr-footer-link-list { font-size: 13px; }
  .dzr-v2 .footer .dzr-footer-links { gap: 2px 10px; }
  .dzr-v2 .footer .dzr-footer-link-list { gap: 2px 12px; }
}

/* Mobile homepage polish: keep every compact module readable at narrow widths. */
@media (max-width: 991px) {
  .dzr-v2 .dzr-home-hero { text-align: center; }
  .dzr-v2 .dzr-home-hero__eyebrow {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 8px;
    white-space: nowrap;
  }
  .dzr-v2 .dzr-home-hero h1 { text-align: center; }
  .dzr-v2 .dzr-home-hero p {
    max-width: 340px;
    margin: 8px auto 16px;
    line-height: 1.6;
    text-align: center;
  }
  .dzr-v2 .dzr-hotwords {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    overflow: visible;
    white-space: normal;
    text-align: center;
  }
  .dzr-v2 .dzr-hotwords > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .dzr-v2 .dzr-hotwords__label { margin: 0 6px 6px 0; }
  .dzr-v2 .dzr-hotwords a {
    display: inline-flex;
    margin: 0 4px 6px;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    background: rgba(255, 255, 255, .08);
  }

  .dzr-v2 .dzr-doc-row__meta {
    display: grid !important;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: start;
    gap: 7px 14px;
    margin-top: 7px;
  }
  .dzr-v2 .dzr-doc-row__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 24px;
  }
  .dzr-v2 .dzr-doc-row__meta > span i { margin-right: 4px; }

  .dzr-v2 .dzr-file-icon {
    border: 1px solid #0d4f9f;
    background: linear-gradient(145deg, #367fd7, #0b4ea8) !important;
    box-shadow: 0 3px 8px rgba(20, 84, 169, .22);
  }
  .dzr-v2 .dzr-file-icon::before {
    display: none;
  }
  .dzr-v2 .dzr-file-icon::after {
    border-top-color: rgba(255, 255, 255, .86);
  }

  .dzr-v2 .dzr-topic-card .dzr-rank-list li,
  .dzr-v2 .dzr-rank-list li {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0;
    column-gap: 16px;
  }
  .dzr-v2 .dzr-rank-list li b {
    width: 28px;
    min-width: 28px;
    margin: 0;
    overflow: visible;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
  }
  .dzr-v2 .dzr-rank-list li a {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
  }

  .dzr-v2 .dzr-benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .dzr-v2 .dzr-benefit-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
    min-height: 88px;
    padding: 12px 9px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fbfcfd;
  }
  .dzr-v2 .dzr-benefit-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding-top: 0;
    border-radius: 9px;
    background: var(--dzr-gold-soft);
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
  }
  .dzr-v2 .dzr-benefit-item > span {
    display: block;
    min-width: 0;
  }
  .dzr-v2 .dzr-benefit-item > span > strong {
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
  }
  .dzr-v2 .dzr-benefit-item > span > span {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.5;
    word-break: break-word;
  }

  .dzr-v2 .footer .dzr-footer-qr {
    display: grid !important;
    grid-template-columns: repeat(3, 84px);
    justify-content: center;
    gap: 0 16px;
    overflow: visible;
  }
  .dzr-v2 .footer .dzr-footer-qr-card {
    width: 84px;
    min-width: 84px;
    margin: 0;
    gap: 7px;
  }
  .dzr-v2 .footer .dzr-footer-qr-card img {
    width: 84px;
    height: 84px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .24);
  }
}

/* Search results: the homepage warm-red identity, a readable body snippet, and the shared V2 footer. */
.dzr-search-page .dzr-shell { padding-top: 24px; }
.dzr-search-page .dzr-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.dzr-search-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,430px); gap: 28px; align-items: center; padding: 30px 34px; border-radius: var(--dzr-radius); background: linear-gradient(135deg,#7f1115 0%,#b91a1d 62%,#8e1518 100%); color: #fff; }
.dzr-search-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; margin-bottom: 10px; padding: 0 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.10); font-size: 12px; }
.dzr-search-hero h1 { margin: 0; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.4; }
.dzr-search-hero__keyword { padding: 0 2px; background: transparent; color: #ffe4a5; font: inherit; }
.dzr-search-hero p { margin: 8px 0 0; color: rgba(255,255,255,.80); font-size: 14px; }
.dzr-search-hero__form form { display: flex; align-items: center; padding: 4px; border-radius: 10px; background: #fff; }
.dzr-search-hero__form input { flex: 1; min-width: 0; height: 42px; margin: 0 !important; padding: 0 13px; border: 0; color: var(--dzr-ink); outline: 0; }
.dzr-search-hero__form button { display: inline-flex; flex: 0 0 88px; align-items: center; justify-content: center; gap: 5px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: var(--dzr-red); color: #fff; font-size: 14px; font-weight: 600; }
.dzr-search-hero__form button:hover { background: var(--dzr-red-strong); }
.dzr-search-results { margin-top: 18px; padding: 0 24px; }
.dzr-search-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 14px; border-bottom: 1px solid var(--dzr-border); }
.dzr-search-results__head h2 { margin: 0; color: var(--dzr-ink); font-size: 20px; }
.dzr-search-results__head span { color: var(--dzr-muted); font-size: 13px; }
.dzr-search-result { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--dzr-border); }
.dzr-search-result__icon { display: flex; padding-top: 2px; }
.dzr-search-result__body { min-width: 0; }
.dzr-search-result h3 { margin: 0 0 7px; color: var(--dzr-ink); font-size: 16px; line-height: 1.45; }
.dzr-search-result h3 a:hover { color: var(--dzr-red); }
.dzr-search-hit { padding: 0 2px; border-radius: 2px; background: #fff1b9; color: #b42318; font: inherit; font-weight: 700; }
.dzr-search-result__snippet { display: -webkit-box; overflow: hidden; margin: 0; color: var(--dzr-text); font-size: 13px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dzr-search-result__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; color: var(--dzr-muted); font-size: 12px; }
.dzr-search-result__meta > span:not(.dzr-chip) { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dzr-search-result__meta i { color: #9aa3b2; }
.dzr-search-result__meta b { display: none; font: inherit; }
.dzr-search-result__meta .dzr-category-chip { min-height: 24px; padding: 0 9px; font-size: 12px; }
.dzr-search-result__access { display: inline-flex; align-items: center; gap: 5px; min-width: 68px; min-height: 34px; margin-top: 3px; padding: 0 10px; border: 1px solid #f0d3cf; border-radius: 8px; background: var(--dzr-red-soft); color: var(--dzr-red) !important; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dzr-search-result__access:hover { border-color: var(--dzr-red); background: var(--dzr-red); color: #fff !important; }
.dzr-search-page .dzr-pagination { padding-bottom: 28px; }
.dzr-search-page .dzr-pagination__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dzr-search-page .dzr-pagination__list > li { display: block; margin: 0; list-style: none; }
.dzr-search-page .dzr-pagination__list > li > a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--dzr-border); border-radius: 8px; background: #fff; color: var(--dzr-text); line-height: 1; }
.dzr-search-page .dzr-pagination__list > li.page-active > a { border-color: var(--dzr-red); background: var(--dzr-red); color: #fff; font-weight: 700; }
.dzr-search-empty { margin-top: 18px; padding: 54px 24px; text-align: center; }
.dzr-search-empty > i { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--dzr-red-soft); color: var(--dzr-red); font-size: 22px; }
.dzr-search-empty h2 { margin: 16px 0 8px; color: var(--dzr-ink); font-size: 21px; }
.dzr-search-empty p { margin: 0 0 20px; color: var(--dzr-muted); }
@media (max-width:991px) {
  .dzr-search-page .dzr-shell { padding-top: 14px; padding-bottom: 76px; }
  .dzr-search-page .dzr-breadcrumb { margin-bottom: 10px; font-size: 12px; }
  .dzr-search-hero { display: block; padding: 22px 16px 16px; border-radius: 10px; }
  .dzr-search-hero__eyebrow { margin-bottom: 8px; font-size: 11px; }
  .dzr-search-hero h1 { font-size: 22px; }
  .dzr-search-hero p { margin-top: 6px; font-size: 12px; }
  .dzr-search-hero__form { margin-top: 15px; }
  .dzr-search-hero__form input { height: 40px; font-size: 14px; }
  .dzr-search-hero__form button { flex-basis: 76px; height: 38px; }
  .dzr-search-results { margin-top: 12px; padding: 0 14px; }
  .dzr-search-results__head { padding: 16px 0 12px; }
  .dzr-search-results__head h2 { font-size: 17px; }
  .dzr-search-results__head span, .dzr-search-result__access { display: none; }
  .dzr-search-result { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 15px 0; }
  .dzr-search-result h3 { display: block; min-height: 43px; margin-bottom: 7px; font-size: 15px; line-height: 1.45; }
  .dzr-search-result h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .dzr-search-result__snippet { -webkit-line-clamp: 2; font-size: 12px; line-height: 1.65; }
  .dzr-search-result__meta { display: grid; grid-template-columns: max-content max-content; gap: 7px 14px; margin-top: 8px; font-size: 11px; }
  .dzr-search-result__meta > span { display: inline-flex; align-items: center; min-height: 24px; }
  .dzr-search-result__meta > span i { margin-right: 4px; }
  .dzr-search-result__meta b { display: inline; }
  .dzr-search-result__meta .dzr-category-chip { min-height: 24px; padding: 0 8px; font-size: 11px; }
  .dzr-search-page .dzr-pagination { padding: 20px 0 24px; }
  .dzr-search-page .dzr-pagination__list { gap: 6px; }
  .dzr-search-page .dzr-pagination__list > li > a { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12px; }
  .dzr-search-empty { margin-top: 12px; padding: 38px 18px; }
}
