*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.navbar-custom {
  font-family: inherit;
}

.navbar-custom .dm-navbar-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: min(52vw, 260px);
}

.navbar-custom .dm-navbar-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-custom .dm-navbar-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17, 17, 20, 0.12);
}

footer .footer-site-links,
footer .copyright,
footer .theme-by {
  text-align: center;
}

footer .footer-site-links {
  margin: 0 0 10px;
  font-family: var(--header-font);
}

footer .copyright {
  margin: 0;
}

footer .theme-by {
  margin: 10px 0 0;
}

.intro-header .page-heading h1,
.intro-header .post-heading h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: 0;
}

.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.45;
}

.intro-header .page-heading hr.small {
  margin: 14px auto;
}

.dm-doc-page {
  margin: 0 auto 44px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 17, 20, 0.06);
}

.dm-doc-page > :first-child {
  margin-top: 0;
}

.dm-doc-page > :last-child {
  margin-bottom: 0;
}

.dm-doc-page h2 {
  margin-top: 2rem;
  color: #17171b;
  font-size: 1.42rem;
  line-height: 1.35;
}

.dm-doc-page h3 {
  margin-top: 1.45rem;
  color: #17171b;
  font-size: 1.1rem;
  line-height: 1.4;
}

.dm-doc-page p,
.dm-doc-page li {
  color: #3c4046;
  line-height: 1.8;
}

.dm-doc-page a {
  font-weight: 800;
}

.dm-blog-intro {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 20, 0.05);
}

.dm-blog-intro p {
  margin: 0;
  color: #3c4046;
  line-height: 1.75;
}

.posts-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.post-preview {
  padding: 0;
  border-bottom: 0;
  overflow: visible;
}

.post-preview article {
  padding: 22px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 17, 20, 0.05);
}

.post-preview .post-image {
  display: none !important;
}

.post-preview .post-title {
  margin: 0 0 10px;
  color: #17171b;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: 0;
}

.post-preview .post-subtitle {
  margin-bottom: 10px;
  color: #3c4046;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.post-preview .post-meta {
  margin: 0 0 12px;
  color: #7a7d84;
  font-size: 0.92rem;
  font-style: normal;
}

.post-preview .post-entry {
  color: #3c4046;
  line-height: 1.75;
}

.post-preview .post-read-more {
  color: #d71920;
  white-space: nowrap;
}

.post-preview .blog-tags {
  margin: 14px 0 0;
}

.pagination.main-pager {
  margin-top: 24px;
}

.container-md {
  max-width: 1180px;
}

.dm-landing {
  padding-top: 86px;
}

.dm-hero,
.dm-section {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.dm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(30px, 7vw, 86px);
  align-items: center;
  padding: 58px 0 46px;
}

.dm-kicker {
  margin-bottom: 12px;
  color: #d71920;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.dm-hero h1 {
  margin: 0;
  color: #111114;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.dm-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3c4046;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.65;
}

.dm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.dm-store-btn,
.dm-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none !important;
}

.dm-store-btn {
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 9px 24px;
  color: #fff !important;
  background: #d71920;
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.22);
}

.dm-store-btn span {
  font-size: 0.75rem;
  line-height: 1.05;
  opacity: 0.86;
}

.dm-store-btn strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.dm-link-btn {
  padding: 0 22px;
  color: #17171b !important;
  border: 1px solid #dadce2;
  background: #fff;
}

.dm-hero-phone {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #e8e8ec;
  border-radius: 36px;
  background: #111114;
  box-shadow: 0 26px 70px rgba(17, 17, 20, 0.22);
}

.dm-hero-phone img,
.dm-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.dm-section {
  padding: 68px 0;
}

.dm-section h2 {
  margin-top: 0;
  color: #17171b;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: 0;
}

.dm-section p,
.dm-section li {
  color: #5f6368;
  font-size: 1.05rem;
  line-height: 1.8;
}

.dm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dm-grid-3 article,
.dm-posts article {
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 20, 0.06);
}

.dm-grid-3 article {
  padding: 26px;
}

.dm-grid-3 h2 {
  margin-bottom: 10px;
  color: #d71920;
  font-size: 1.35rem;
}

.dm-band,
.dm-final {
  padding: 58px clamp(18px, 5vw, 52px);
  color: #fff;
  border-radius: 8px;
  background: #17171b;
}

.dm-band h2,
.dm-band p,
.dm-final h2,
.dm-final p {
  color: #fff;
}

.dm-band > div:first-child {
  max-width: 760px;
}

.dm-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.dm-screens figure {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dm-screens figcaption {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.dm-screens figcaption strong {
  color: #fff;
}

.dm-screens figcaption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dm-split,
.dm-final {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
  gap: 42px;
  align-items: center;
}

.dm-check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-check-list li {
  padding: 16px 18px;
  border-left: 4px solid #d71920;
  border-radius: 8px;
  background: #f7f7f8;
}

.dm-trust {
  border-top: 1px solid #ececef;
  border-bottom: 1px solid #ececef;
}

.dm-section-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dm-section-head h2 {
  margin: 0;
}

.dm-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dm-posts article a {
  display: block;
  height: 100%;
  padding: 24px;
  color: inherit;
  text-decoration: none !important;
}

.dm-posts span {
  color: #d71920;
  font-size: 0.88rem;
  font-weight: 800;
}

.dm-posts h3 {
  margin: 10px 0;
  color: #17171b;
  font-size: 1.25rem;
  line-height: 1.35;
}

.dm-final {
  margin-bottom: 56px;
}

.dm-final .dm-store-btn {
  justify-self: end;
}

.ios-app-banner {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid #ececef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(215, 25, 32, 0.12);
}

.ios-app-banner.is-visible {
  display: flex;
}

.ios-app-banner img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.ios-app-banner strong,
.ios-app-banner span {
  display: block;
  line-height: 1.25;
}

.ios-app-banner strong {
  color: #17171b;
  font-size: 0.95rem;
}

.ios-app-banner span {
  color: #5f6368;
  font-size: 0.78rem;
}

.ios-app-banner .ios-app-banner-action {
  margin-left: auto;
  padding: 7px 12px;
  color: #fff;
  border-radius: 999px;
  background: #d71920;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ios-app-banner:active .ios-app-banner-action,
.ios-app-banner.is-opening .ios-app-banner-action {
  color: #fff;
  background: #a90f16;
  transform: scale(0.96);
}

.qb-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 0 20px;
}

.qb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #7a7d84;
  font-size: 0.92rem;
}

.qb-breadcrumb a {
  color: #d71920;
  font-weight: 800;
  text-decoration: none !important;
}

.qb-page-head {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 17, 20, 0.06);
}

.qb-page-head h1,
.qb-question-header h1 {
  margin: 0;
  color: #111114;
  letter-spacing: 0;
}

.qb-page-head p:last-child {
  margin-bottom: 0;
}

.qb-bank-grid,
.qb-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.qb-bank-grid a,
.qb-chapter-grid a,
.qb-question-list a {
  color: inherit;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(17, 17, 20, 0.05);
}

.qb-bank-grid a,
.qb-chapter-grid a {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.qb-bank-grid span,
.qb-kicker {
  color: #d71920;
  font-size: 0.88rem;
  font-weight: 900;
}

.qb-bank-grid strong,
.qb-chapter-grid strong {
  color: #17171b;
  font-size: 1.22rem;
}

.qb-bank-grid em,
.qb-chapter-grid span {
  color: #6b7078;
  font-style: normal;
}

.qb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.qb-stats span {
  padding: 8px 12px;
  color: #17171b;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.92rem;
  font-weight: 800;
}

.qb-question-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.qb-question-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.qb-question-list span {
  color: #d71920;
  font-weight: 900;
}

.qb-question-list strong {
  color: #17171b;
  font-size: 1rem;
  line-height: 1.55;
}

.qb-question-list em {
  color: #7a7d84;
  font-size: 0.88rem;
  font-style: normal;
  text-align: right;
}

.qb-pager {
  align-items: center;
  margin: 22px 0 0;
}

.qb-pager + .qb-question-list {
  margin-top: 18px;
}

.qb-pager-status {
  margin: 0 auto;
}

.qb-pager-status .page-link {
  color: #7a7d84;
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.qb-pager-placeholder {
  min-width: 78px;
}

.qb-question-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.qb-question-header h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.qb-index {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #d71920;
  border-radius: 999px;
  background: #fff0f1;
  font-size: 0.92rem;
  font-weight: 900;
}

.qb-question-image {
  margin: 24px 0;
  padding: 12px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
}

.qb-question-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.qb-options {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.qb-options li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
}

.qb-options li > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #17171b;
  border-radius: 50%;
  background: #f3f4f6;
  font-weight: 900;
}

.qb-options p {
  margin: 0;
}

.qb-options .is-correct {
  border-color: rgba(215, 25, 32, 0.32);
  background: #fff7f7;
}

.qb-options .is-correct > span {
  color: #fff;
  background: #d71920;
}

.qb-answer,
.qb-explanation,
.qb-note {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #fff;
}

.qb-answer h2,
.qb-explanation h2,
.qb-note h2 {
  margin-top: 0;
  color: #17171b;
  font-size: 1.35rem;
}

.qb-correct-answer {
  color: #d71920;
  font-size: 1.4rem;
  font-weight: 900;
}

.qb-question-nav {
  margin-top: 24px;
}

.qb-question-pager {
  align-items: center;
  gap: 10px;
}

.qb-question-pager .page-item.next {
  margin-left: 0;
}

.qb-question-back {
  margin-right: auto;
  margin-left: auto;
}

.qb-question-back .page-link {
  border-color: #dadce2;
  background: #fff;
}

.qb-question-pager .page-link {
  border-radius: 8px;
  letter-spacing: 0;
}

.qb-copyright {
  margin-top: 20px;
  color: #7a7d84;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .dm-hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .dm-hero-phone {
    max-width: 320px;
  }

  .dm-grid-3,
  .dm-posts,
  .dm-split,
  .dm-final {
    grid-template-columns: 1fr;
  }

  .dm-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dm-final .dm-store-btn {
    justify-self: start;
  }
}

@media (max-width: 575px) {
  .navbar-custom .dm-navbar-brand {
    gap: 8px;
    max-width: calc(100vw - 112px);
  }

  .navbar-custom .dm-navbar-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .dm-doc-page {
    padding: 22px 18px;
  }

  .dm-blog-intro,
  .post-preview article {
    padding: 18px;
  }

  .dm-hero,
  .dm-section {
    width: calc(100% - 28px);
  }

  .dm-hero h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .dm-hero-phone {
    display: none;
  }

  .dm-actions,
  .dm-store-btn,
  .dm-link-btn {
    width: 100%;
  }

  .dm-screens {
    grid-template-columns: 1fr;
  }

  .dm-screens figure:nth-child(n + 5) {
    display: none;
  }

  .dm-band,
  .dm-final {
    padding: 42px 18px;
  }

  .qb-bank-grid,
  .qb-chapter-grid {
    grid-template-columns: 1fr;
  }

  .qb-question-header {
    display: grid;
  }

  .qb-question-list a {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .qb-question-list em {
    grid-column: 2;
    text-align: left;
  }

  .qb-question-pager {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .qb-question-pager .page-item,
  .qb-question-back {
    margin: 0;
  }

  .qb-question-pager .page-link {
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .qb-pager-placeholder {
    display: none;
  }
}
