:root {
  --ink: #20262b;
  --muted: #66717b;
  --line: #e4e8ee;
  --paper: #f6f8fb;
  --white: #fff;
  --blue: #1c5fa8;
  --blue-dark: #133f73;
  --gold: #c69b42;
  --red: #b64033;
  --radius: 6px;
  --shadow: 0 12px 36px rgba(23, 40, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 0 clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(23, 40, 59, 0.05);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-weight: 700;
}

.main-nav a {
  color: #3f4a54;
}

.main-nav a:hover {
  color: var(--blue);
}

.hotline {
  display: grid;
  justify-items: end;
}

.hotline span {
  color: var(--muted);
  font-size: 12px;
}

.hotline strong {
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.2;
}

.home-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0c1720;
}

.home-hero-bg,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-bg {
  background:
    linear-gradient(90deg, rgba(9, 21, 31, 0.92) 0%, rgba(9, 21, 31, 0.72) 46%, rgba(9, 21, 31, 0.18) 100%),
    url("/assets/img/qdym_official/hongkong-skyline.jpeg") center / cover no-repeat;
  transform: scale(1.03);
}

.home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 23, 32, 0) 0%, rgba(12, 23, 32, 0.76) 100%),
    radial-gradient(circle at 20% 28%, rgba(198, 155, 66, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(28, 95, 168, 0.18), rgba(182, 64, 51, 0.12));
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 72px;
}

.home-hero h1 {
  max-width: 840px;
  margin: 0;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(28, 95, 168, 0.24);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 58px 0 0;
}

.home-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.home-metrics dt {
  color: #fff4ce;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.home-metrics dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.home-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.home-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.home-heading h2,
.contact-section-home h2 {
  margin: 0;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-heading p:not(.eyebrow),
.contact-section-home p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.home-service-grid article,
.process-grid article {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-service-grid article {
  display: flex;
  flex-direction: column;
}

.home-service-grid span,
.about-points span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.home-service-grid h3,
.process-grid h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.home-service-grid p,
.process-grid p {
  margin: 0;
  color: var(--muted);
}

.home-service-grid a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue-dark);
  font-weight: 900;
}

.split-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.process-grid strong {
  color: var(--blue);
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.news-preview {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: #fff;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
}

.preview-main,
.preview-links a {
  border-radius: var(--radius);
  background: var(--paper);
}

.preview-main {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 38, 57, 0.24), rgba(15, 38, 57, 0.88)),
    url("/assets/img/qdym_official/network-light.jpeg") center / cover no-repeat;
}

.preview-main strong {
  font-size: 30px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-main span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-links {
  display: grid;
  gap: 12px;
}

.preview-links a {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  color: var(--blue-dark);
  font-weight: 900;
  border: 1px solid var(--line);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 38px;
  align-items: end;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-points span {
  padding: 13px 14px;
  border-left: 3px solid var(--gold);
  color: var(--blue-dark);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-section-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(19, 63, 115, 0.96), rgba(23, 40, 59, 0.96)),
    url("/assets/img/qdym_official/growth-graph.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.contact-section-home .eyebrow,
.contact-section-home h2 {
  color: #fff;
}

.contact-section-home p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section-home .primary-button {
  white-space: nowrap;
  background: var(--gold);
  box-shadow: none;
}

.news-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.76) 44%, rgba(255, 255, 255, 0.24) 100%),
    url("/assets/img/qdym_official/network-light.jpeg") center / cover no-repeat;
}

.news-hero-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.news-hero h1 {
  margin: 0;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: #2f3b45;
  font-size: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.category-nav button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #3f4a54;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.category-nav button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.article-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.article-card[hidden] {
  display: none;
}

.thumb {
  display: block;
  height: 148px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dde3ea;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.article-title {
  display: block;
  color: #111820;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-title:hover {
  color: var(--blue);
}

time {
  display: block;
  margin-top: 8px;
  color: #8a96a3;
  font-size: 13px;
}

.article-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.article-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f1fb;
  font-size: 12px;
  font-weight: 800;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
}

.side-panel ol {
  margin: 0;
  padding-left: 22px;
}

.side-panel li + li {
  margin-top: 13px;
}

.side-panel a:hover {
  color: var(--blue);
}

.project-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.project-link:last-child {
  border-bottom: 0;
}

.project-link strong,
.project-link span {
  display: block;
}

.project-link strong {
  color: var(--blue-dark);
}

.project-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.contact-panel {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.contact-panel p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel a {
  color: #fff4ce;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #111820;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: #fff4ce;
}

.article-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

.article-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  padding-top: 28px;
  font-size: 18px;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.35;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-note {
  margin: 28px 0;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

.related {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 14px;
}

.related a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .home-service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-layout,
  .about-section,
  .contact-section-home {
    grid-template-columns: 1fr;
  }

  .contact-section-home .primary-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 72px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .hotline {
    display: none;
  }

  .news-hero-inner,
  .home-hero-inner,
  .home-section,
  .page-shell,
  .article-page {
    width: calc(100% - 64px);
    max-width: 1100px;
  }

  .home-hero {
    min-height: 680px;
  }

  .home-hero-inner {
    padding: 66px 0 44px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: 27px;
    line-height: 1.24;
    word-break: break-all;
    line-break: anywhere;
  }

  .home-hero p:not(.eyebrow),
  .news-hero p:not(.eyebrow),
  .home-heading p:not(.eyebrow),
  .contact-section-home p {
    max-width: 100%;
    font-size: 16px;
    word-break: break-all;
    line-break: anywhere;
  }

  .home-actions {
    display: grid;
  }

  .home-metrics,
  .home-service-grid,
  .process-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 52px 0;
  }

  .home-service-grid article,
  .process-grid article {
    min-height: auto;
  }

  .news-preview {
    width: 100%;
    padding-inline: 14px;
  }

  .preview-main {
    min-height: 220px;
  }

  .contact-section-home {
    margin-bottom: 48px;
    padding: 24px;
  }

  .news-hero {
    min-height: 240px;
  }

  .news-hero-inner {
    padding: 46px 0 38px;
  }

  .news-hero h1 {
    font-size: 40px;
  }

  .news-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .thumb {
    height: 190px;
  }

  .article-title {
    font-size: 18px;
    word-break: break-all;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .article-body {
    font-size: 16px;
  }
}
