.dd-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #eaf5f1;
}

.dd-hero-bg {
  position: absolute;
  inset: 0;
}

.dd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
}

.dd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 49, 76, 0.96), rgba(9, 49, 76, 0.9) 52%, rgba(9, 49, 76, 0.78));
}

.dd-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.dd-hero-copy {
  max-width: 760px;
}

.dd-kicker {
  margin: 0 0 14px;
  color: #f4a261;
  font-weight: 800;
  letter-spacing: 0;
}

.dd-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 52px;
  line-height: 1.14;
  color: #fff;
}

.dd-lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.dd-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.dd-primary,
.dd-secondary,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.dd-primary,
.header-cta {
  background: #f4a261;
  color: #243a36 !important;
}

.dd-secondary {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
}

.header-cta {
  min-height: 38px;
  margin-left: 14px;
  padding: 0 16px;
  color: #17344c !important;
}

.dd-trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.dd-trust-row span,
.dd-problem-grid div,
.dd-step-grid div,
.dd-relation-card {
  border-radius: 8px;
}

.dd-trust-row span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dd-section {
  padding: 76px 0;
}

.dd-section-head {
  margin-bottom: 28px;
  text-align: center;
}

.dd-section-head p {
  margin: 0 0 8px;
  color: #3f8f84;
  font-weight: 800;
}

.dd-section-head h2,
.dd-relation h2 {
  margin: 0;
  color: #243a36;
  font-size: 34px;
  line-height: 1.35;
}

.dd-problems {
  background: #f7f3ea;
}

.dd-problem-grid,
.dd-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dd-problem-grid div {
  background: #fff;
  border: 1px solid #e2edf0;
  padding: 18px;
  color: #243a36;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(63, 143, 132, 0.08);
}

.dd-step-grid div {
  background: #fff;
  border: 1px solid #e3edf0;
  padding: 24px;
}

.dd-step-grid b {
  display: inline-block;
  margin-bottom: 18px;
  color: #f4a261;
  font-size: 28px;
}

.dd-step-grid h3 {
  margin: 0 0 10px;
  color: #243a36;
  font-size: 20px;
}

.dd-step-grid p,
.dd-relation-card p {
  margin: 0;
  color: #5d707b;
  line-height: 1.8;
}

.dd-relation {
  background: #eaf5f1;
}

.dd-relation-card {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 34px;
  background: #fff;
}

.dd-relation-card > div {
  max-width: 780px;
}

.dd-relation .dd-secondary {
  flex: 0 0 auto;
  border-color: #3f8f84;
  color: #1f5f56 !important;
}

.mobile-cta-bar {
  display: none;
}

@media (max-width: 980px) {
  .dd-hero,
  .dd-hero-inner {
    min-height: 520px;
  }

  .dd-hero h1 {
    font-size: 36px;
  }

  .dd-lead {
    font-size: 16px;
  }

  .dd-problem-grid,
  .dd-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 58px;
  }

  .dd-hero,
  .dd-hero-inner {
    min-height: 500px;
  }

  .dd-hero::after {
    background: linear-gradient(180deg, rgba(9, 49, 76, 0.94), rgba(9, 49, 76, 0.76));
  }

  .dd-hero h1 {
    font-size: 30px;
  }

  .dd-actions a {
    flex: 1;
  }

  .dd-section {
    padding: 48px 0;
  }

  .dd-section-head h2,
  .dd-relation h2 {
    font-size: 24px;
  }

  .dd-problem-grid,
  .dd-step-grid {
    grid-template-columns: 1fr;
  }

  .dd-relation-card {
    display: block;
    padding: 24px;
  }

  .dd-relation-card .dd-secondary {
    margin-top: 18px;
  }

  .mobile-cta-bar {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    box-shadow: 0 -8px 22px rgba(20, 62, 91, 0.16);
  }

  .mobile-cta-bar a {
    padding: 13px 4px;
    text-align: center;
    color: #143e5b;
    font-weight: 800;
    text-decoration: none;
    border-right: 1px solid #e4ecef;
  }

  .mobile-cta-bar a:first-child {
    background: #f4a340;
    color: #143e5b;
  }
}

/* Hide the inherited slideshow image in the rebuilt hero; keep the hero clean and brand-led. */
.dd-hero-bg {
  display: none !important;
}

.dd-hero {
  background: #eaf5f1;
}

.dd-hero::after {
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 162, 97, 0.24), transparent 30%),
    linear-gradient(115deg, #2f7f76 0%, #3f8f84 52%, #eaf5f1 100%) !important;
}

/* Warm brand refresh across legacy template sections. */
body {
  background: #f7f3ea;
  color: #243a36;
}

.header {
  background: #fffaf3;
  box-shadow: 0 8px 24px rgba(63, 143, 132, 0.08);
}

.header .nav li a,
.footer,
.footer a {
  color: #243a36;
}

.header .nav li.active > a,
.header .nav li:hover > a {
  background: #f4a261 !important;
  color: #243a36 !important;
}

/* Brighter Morandi refresh: warmer, cleaner, less gray across the full site. */
:root {
  --dd-ink: #2f403b;
  --dd-muted: #6d7f78;
  --dd-mint: #75b8aa;
  --dd-mint-deep: #5aa093;
  --dd-mint-soft: #e9f6f1;
  --dd-cream: #fff8eb;
  --dd-card: #fffdf8;
  --dd-apricot: #f3b18f;
  --dd-butter: #f5d89f;
  --dd-blue: #8fb9c8;
  --dd-line: #eadfd1;
}

body {
  background: var(--dd-cream) !important;
  color: var(--dd-ink) !important;
}

a {
  color: inherit;
}

.header {
  background: rgba(117, 184, 170, 0.98) !important;
  box-shadow: 0 10px 28px rgba(90, 160, 147, 0.18) !important;
}

.header .nav li.active > a,
.header .nav li:hover > a,
.dd-primary,
.header-cta {
  background: var(--dd-apricot) !important;
  color: #2e332d !important;
}

.dd-hero {
  background: var(--dd-mint-soft) !important;
}

.dd-hero::after {
  background:
    radial-gradient(circle at 76% 14%, rgba(245, 216, 159, 0.46), transparent 26%),
    radial-gradient(circle at 92% 72%, rgba(143, 185, 200, 0.42), transparent 30%),
    linear-gradient(116deg, #5aa093 0%, #75b8aa 50%, #f6e6c8 100%) !important;
}

.dd-kicker,
.dd-step-grid b,
.dd-section-head p {
  color: #f7c28f !important;
}

.dd-problems,
.dd-section,
.index-recommended,
.index-news,
.index-teacher,
.index-institute {
  background: var(--dd-cream) !important;
}

.dd-relation,
.footer,
.inside-infobox {
  background: var(--dd-mint-soft) !important;
}

.dd-problem-grid div,
.dd-step-grid div,
.dd-relation-card,
.index-recommended li a,
.index-news li a,
.index-teacher li a,
.index-institute .leftbox {
  background: var(--dd-card) !important;
  border: 1px solid var(--dd-line) !important;
  box-shadow: 0 14px 34px rgba(90, 160, 147, 0.12) !important;
}

.dd-section-head h2,
.dd-relation h2,
.index-title .t1,
.index-title p:first-child,
.index-recommended .tit .cn,
.index-news .tit,
.index-teacher .tit,
.inside-news-show h1,
.inside-about h1,
.inside-chinese h1 {
  color: var(--dd-ink) !important;
}

.dd-step-grid p,
.dd-relation-card p,
.inside-current,
.inside-about,
.inside-chinese,
.inside-news-show,
.inside-news li p,
.index-news li p {
  color: var(--dd-muted) !important;
}

/* Inner pages: make legacy pages feel like the rebuilt homepage. */
.inside-banner {
  height: 260px !important;
  background:
    radial-gradient(circle at 76% 22%, rgba(245, 216, 159, 0.52), transparent 28%),
    linear-gradient(115deg, #75b8aa 0%, #8fcabe 55%, #fff2d9 100%) !important;
  overflow: hidden;
}

.inside-banner img {
  display: none !important;
}

.inside-infobox {
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--dd-line);
}

.inside-current {
  font-size: 14px;
}

.inside-menu a {
  margin: 4px 8px 4px 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(117, 184, 170, 0.35) !important;
  background: var(--dd-card) !important;
  color: var(--dd-ink) !important;
}

.inside-menu a.active,
.inside-menu a:hover {
  background: var(--dd-apricot) !important;
  border-color: var(--dd-apricot) !important;
  color: #2e332d !important;
}

.inside-about,
.inside-chinese,
.inside-news-show,
.inside-recommended,
.inside-news {
  background: var(--dd-card) !important;
  border-radius: 18px;
  border: 1px solid var(--dd-line);
  box-shadow: 0 18px 44px rgba(90, 160, 147, 0.1);
}

.inside-about,
.inside-chinese,
.inside-news-show {
  padding: 34px !important;
  line-height: 2;
}

.inside-about p,
.inside-chinese p,
.inside-news-show p,
.inside-about li,
.inside-chinese li,
.inside-news-show li {
  color: #53655f !important;
}

.inside-news-show h1 {
  line-height: 1.45 !important;
}

.inside-list-page {
  border-top: 1px solid var(--dd-line) !important;
  color: var(--dd-muted) !important;
}

.inside-news li,
.inside-recommended li {
  border-radius: 14px;
}

.inside-news li a,
.inside-recommended li a {
  border-radius: 14px !important;
}

.page a,
.page span,
.pagination a,
.pagination span {
  border-radius: 999px !important;
}

.message-box input,
.message-box textarea,
input,
textarea {
  border-color: var(--dd-line) !important;
  background: #fffefa !important;
}

.message-box input[type="submit"],
button,
.submit {
  background: var(--dd-mint) !important;
  color: #fff !important;
  border-color: var(--dd-mint) !important;
}

.footer {
  color: var(--dd-ink) !important;
}

@media (max-width: 768px) {
  .inside-banner {
    height: 190px !important;
  }

  .inside-about,
  .inside-chinese,
  .inside-news-show {
    padding: 22px !important;
    border-radius: 14px;
  }
}

.footer {
  background: #eaf5f1;
}

.index-title .t1,
.index-title p:first-child,
.index-recommended .tit .cn,
.index-news .tit,
.index-teacher .tit {
  color: #1f5f56 !important;
}

.index-title::after,
.index-title .t1::after {
  background: #f4a261 !important;
}

.index-recommended,
.index-news,
.index-teacher,
.index-institute {
  background: #f7f3ea;
}

.index-recommended li a,
.index-news li a,
.index-teacher li a,
.index-institute .leftbox {
  background: #fffaf3;
  border-color: #dde8e3;
  box-shadow: 0 12px 28px rgba(63, 143, 132, 0.08);
}

.index-recommended .item-hover {
  background: rgba(63, 143, 132, 0.94);
}

.dd-secondary {
  border-color: rgba(255, 255, 255, 0.72);
}

.dd-trust-row span {
  background: rgba(255, 250, 243, 0.16);
  border-color: rgba(255, 250, 243, 0.24);
}

.mobile-cta-bar a:first-child {
  background: #f4a261;
  color: #243a36;
}

.mobile-cta-bar a {
  color: #1f5f56;
}

/* Keep the white logo readable while staying in the warm green brand palette. */
.header {
  background: #3f8f84 !important;
}

.header .nav li a {
  color: #fff !important;
}

.header .nav li.active > a,
.header .nav li:hover > a {
  background: #f4a261 !important;
  color: #243a36 !important;
}
