:root {
  --kkd-blue: #1e5aa1;
  --kkd-blue-dark: #143f73;
  --kkd-red: #e41e34;
  --kkd-ink: #23303f;
  --kkd-muted: #6b7785;
  --kkd-line: #e5e9ef;
}

body {
  background: #fff;
  color: #666;
}

img {
  max-width: 100%;
}

.kkd-page {
  min-height: 60vh;
}

/* Header brand */
#header {
  background: #fff;
}

#header .logo a.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  text-align: left;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--kkd-blue), var(--kkd-blue-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 90, 161, 0.25);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 0 1 auto;
}

.brand-text strong {
  color: var(--kkd-blue);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-text em {
  font-style: normal;
  color: var(--kkd-muted);
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 6px;
}

#header .search-box .input-search input {
  border-radius: 6px;
}

/* Mobile navigation */
.web_nav .btn-menu {
  border: 0;
  background: transparent;
  padding: 15px 0;
}

#nav ul.mobile-open {
  display: block !important;
}

.web_nav .search_bt {
  opacity: 0.9;
}

/* Home hero */
.hero-banner {
  position: relative;
  height: 413px;
  overflow: hidden;
  background: #0d2b4d;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 6s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 33, 62, 0.94) 0%, rgba(9, 33, 62, 0.8) 48%, rgba(9, 33, 62, 0.58) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  width: 90%;
  max-width: 1230px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #eaf2ff;
}

.hero-copy h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-copy p.hero-summary {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.9;
  color: #e6eef9;
  max-width: 610px;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-keywords span {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f3f7ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--kkd-red);
  transition: all 0.3s;
}

.hero-actions a.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-actions a:hover {
  background: var(--kkd-blue);
  text-decoration: none;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots button.is-active {
  background: #fff;
}

/* Home about text */
.con_right_about p.desc {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home latest articles */
.home-articles {
  background: #fff;
  padding: 46px 0 20px;
}

.home-articles .h_tlt1 span {
  color: #999;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.home-article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--kkd-line);
  border-top: 3px solid var(--kkd-blue);
  border-radius: 4px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(22, 42, 70, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(22, 42, 70, 0.12);
}

.home-article-card h3 {
  font-size: 17px;
  line-height: 1.55;
  color: var(--kkd-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.home-article-card p {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--kkd-muted);
}

.home-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--kkd-line);
  font-size: 13px;
  color: #9aa4b0;
}

.home-article-meta a {
  color: var(--kkd-red);
  font-weight: 700;
}

.empty-state {
  padding: 34px 24px;
  border: 1px dashed #cfd7e2;
  border-radius: 6px;
  background: #f8fafc;
  text-align: center;
  color: var(--kkd-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Inner page helpers */
.kkd-inner .ny_banner .slideshow {
  background-image: url("/sites/chengdukaisuo/uploads/inner-banner.jpg");
}

.ny_intro {
  font-size: 16px;
  line-height: 2;
  color: #4b5865;
}

.ny_intro p {
  margin-bottom: 16px;
}

.column-image {
  margin: 24px 0 8px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 45, 80, 0.12);
}

.column-image img {
  display: block;
  width: 100%;
  height: auto;
}

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

.scope-card {
  border: 1px solid var(--kkd-line);
  border-radius: 4px;
  padding: 20px;
  background: #fbfcfe;
}

.scope-card h3 {
  color: var(--kkd-blue);
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
}

.scope-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--kkd-muted);
}

/* Process page */
.process-list {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.process-item {
  position: relative;
  padding: 24px 24px 22px 84px;
  border: 1px solid var(--kkd-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 45, 80, 0.05);
}

.process-item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--kkd-blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.process-item h3 {
  color: var(--kkd-ink);
  font-size: 19px;
  margin-bottom: 10px;
}

.process-item p {
  color: var(--kkd-muted);
  font-size: 15px;
  line-height: 1.9;
}

.process-item ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
  color: var(--kkd-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Contact */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--kkd-line);
  border-radius: 6px;
  background: #fff;
  padding: 34px;
  box-shadow: 0 14px 36px rgba(20, 45, 80, 0.08);
}

.contact-card h2 {
  color: var(--kkd-blue);
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-list {
  margin-top: 22px;
  display: grid;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--kkd-line);
  font-size: 15px;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  color: #8a95a1;
}

.contact-row strong,
.contact-row a {
  color: var(--kkd-ink);
  font-weight: 600;
  word-break: break-all;
}

.contact-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f4f8fd;
  border-left: 3px solid var(--kkd-blue);
  color: #536273;
  font-size: 14px;
  line-height: 1.9;
}

/* Product cards are styled by the reference stylesheet; add detail page */
.detail-page .ny_tlt1 {
  margin-bottom: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 10px;
}

.detail-media {
  border: 1px solid var(--kkd-line);
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(20, 45, 80, 0.08);
}

.detail-media img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-info h1 {
  color: var(--kkd-ink);
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.detail-lead {
  color: var(--kkd-muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.detail-body p {
  color: #4b5865;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 14px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-facts span {
  padding: 7px 12px;
  border-radius: 4px;
  background: #f1f6fc;
  color: var(--kkd-blue);
  font-size: 13px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--kkd-blue);
  color: #fff;
  font-weight: 700;
}

.detail-actions a.ghost {
  background: #fff;
  border: 1px solid var(--kkd-blue);
  color: var(--kkd-blue);
}

.detail-actions a:hover {
  background: var(--kkd-red);
  border-color: var(--kkd-red);
  color: #fff;
  text-decoration: none;
}

.related-title {
  margin: 46px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kkd-line);
  color: var(--kkd-blue);
  font-size: 20px;
  font-weight: 700;
}

/* Article center */
.articles-page {
  background: #f8fafc;
  padding: 34px 0 60px;
}

.articles-head {
  margin-bottom: 26px;
}

.articles-head h1 {
  color: var(--kkd-blue);
  font-size: 30px;
  margin-bottom: 8px;
}

.articles-head p {
  color: var(--kkd-muted);
  font-size: 14px;
  line-height: 1.8;
}

.articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--kkd-line);
  border-radius: 6px;
  background: #fff;
}

.articles-toolbar label {
  font-size: 14px;
  color: #66727f;
}

.articles-toolbar select,
.articles-toolbar input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d4dbe4;
  border-radius: 4px;
  background: #fff;
  color: var(--kkd-ink);
  font-size: 14px;
  outline: none;
}

.articles-toolbar input {
  min-width: 220px;
}

.articles-toolbar .search-note {
  margin-left: auto;
  color: var(--kkd-muted);
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-row {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--kkd-line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.article-row:hover {
  border-color: #b9cde6;
  box-shadow: 0 12px 28px rgba(20, 45, 80, 0.08);
  text-decoration: none;
}

.article-row h2 {
  color: var(--kkd-blue);
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.article-row p {
  color: var(--kkd-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.article-row .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #9aa4b0;
  font-size: 13px;
}

.article-row .meta em {
  font-style: normal;
  color: var(--kkd-blue);
  background: #f1f6fc;
  padding: 2px 8px;
  border-radius: 3px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d4dbe4;
  border-radius: 4px;
  background: #fff;
  color: var(--kkd-ink);
  font-size: 14px;
  cursor: pointer;
}

.pagination button.is-active {
  background: var(--kkd-blue);
  border-color: var(--kkd-blue);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination span {
  color: var(--kkd-muted);
  font-size: 14px;
}

.article-detail .article-title {
  color: var(--kkd-ink);
  font-size: 34px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-detail .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #8a95a1;
  font-size: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kkd-line);
  margin-bottom: 26px;
}

.article-detail .article-source {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--kkd-line);
  font-size: 13px;
  color: var(--kkd-muted);
}

.article-detail .article-source a {
  color: var(--kkd-blue);
}

/* Footer */
.footer-band {
  background: var(--kkd-blue);
  color: #eaf2ff;
  padding: 34px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 800;
}

.footer-brand p {
  color: #cfe0f5;
  font-size: 14px;
  line-height: 1.9;
  max-width: 340px;
}

.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.footer-col ul li a,
.footer-col ul li span {
  color: #cfe0f5;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  background: #fff;
  padding: 12px 0;
}

.footer-bottom p {
  color: #777;
  font-size: 12px;
  line-height: 1.9;
}

.footer-bottom a {
  color: #777;
}

/* Small screens */
@media (max-width: 1000px) {
  .hero-banner {
    height: 360px;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-article-grid,
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    justify-content: center;
    width: 100%;
  }
  .brand-mark {
    width: 46px;
    height: 46px;
  }
  .brand-text strong {
    font-size: 25px;
  }
  .hero-banner {
    height: 340px;
  }
  .hero-inner {
    align-items: flex-end;
    padding-bottom: 56px;
  }
  .hero-copy h1 {
    font-size: 29px;
  }
  .hero-copy p.hero-summary {
    font-size: 14px;
    line-height: 1.8;
  }
  .hero-keywords {
    display: none;
  }
  .home-article-grid,
  .scope-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .detail-info h1 {
    font-size: 25px;
  }
  .article-detail .article-title {
    font-size: 25px;
  }
  .articles-toolbar .search-note {
    margin-left: 0;
  }
}

/* Section titles may render as a semantic heading */
.h_tlt1 h1,
.h_tlt1 h2 {
  font-size: 24px;
  font-weight: bold;
  color: #1e5aa1;
  text-align: center;
  margin: 0;
}

.sy_about .h_tlt1 h1,
.sy_about .h_tlt1 h2 {
  color: #fff;
}

/* Keep the about block in the reference landscape proportion */
.con_img_about img {
  width: 100%;
  aspect-ratio: 585 / 313;
  object-fit: cover;
  max-height: 400px;
}

.column-image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
