:root {
  --jietu-bg: #f5f9ff;
  --jietu-bg-deep: #0c4d96;
  --jietu-bg-dark: #0a2f63;
  --jietu-card: #ffffff;
  --jietu-line: rgba(26, 116, 191, 0.2);
  --jietu-primary: #1a7bff;
  --jietu-text: #16385c;
  --jietu-muted: #5b7691;
}

.jietu-home {
  background: #f3f7fd;
  color: var(--jietu-text);
}

.jietu-home section {
  padding: 84px 0;
}

.jietu-headline h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  color: #fff;
}

.jietu-home-hero {
  min-height: 680px;
  background:
    linear-gradient(120deg, rgba(8, 42, 89, 0.86), rgba(8, 42, 89, 0.48)),
    linear-gradient(135deg, #0e3f7f 0%, #0c2956 100%);
  display: flex;
  align-items: center;
}

.jietu-hero-inner {
  max-width: 840px;
}

.jietu-hero-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
}

.jietu-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 62px;
  line-height: 1.16;
  max-width: 760px;
}

.jietu-hero-desc {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
  font-size: 20px;
  line-height: 1.8;
}

.jietu-hero-actions {
  margin-top: 40px;
}

.jietu-home-capability {
  background: var(--jietu-bg-dark);
}

.jietu-capability-tabs {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.jietu-capability-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.86);
}

.jietu-capability-tab i {
  font-size: 30px;
}

.jietu-capability-tab.jietu-active {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.jietu-capability-panel {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 30px;
}

.jietu-capability-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 36px;
}

.jietu-capability-panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.jietu-capability-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.jietu-media-card {
  min-height: 168px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.jietu-home-products {
  background:
    linear-gradient(180deg, rgba(9, 59, 120, 0.94), rgba(9, 59, 120, 0.88)),
    #0a3e7f;
}

.jietu-products-layout {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.jietu-feature-product,
.jietu-product-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.jietu-feature-product {
  padding: 34px;
}

.jietu-feature-product h3 {
  margin: 0 0 20px;
  font-size: 34px;
}

.jietu-feature-product ul {
  margin: 0;
  padding-left: 20px;
}

.jietu-feature-product li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.jietu-feature-product .royal-btn {
  margin-top: 18px;
}

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

.jietu-product-tile {
  min-height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
}

.jietu-home-application {
  background:
    linear-gradient(90deg, rgba(9, 41, 88, 0.94) 0 32%, rgba(6, 26, 56, 0.76) 32% 100%),
    #071d3f;
}

.jietu-app-main h2,
.jietu-app-main h3 {
  margin: 0;
  color: #fff;
}

.jietu-app-main h2 {
  font-size: 42px;
}

.jietu-app-main h3 {
  margin-top: 28px;
  font-size: 34px;
}

.jietu-app-main p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.jietu-app-main .royal-btn {
  margin-top: 30px;
}

.jietu-app-list {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jietu-app-item {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  font-size: 30px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.jietu-home-news {
  background: #f4f8fe;
}

.jietu-home-news .jietu-headline h2 {
  color: #12385b;
}

.jietu-news-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.jietu-news-main,
.jietu-news-item {
  background: #fff;
  border: 1px solid var(--jietu-line);
}

.jietu-news-main {
  padding: 34px;
}

.jietu-news-main h3 {
  margin: 10px 0 0;
  font-size: 34px;
  color: #174777;
}

.jietu-news-main .jietu-news-desc {
  margin-top: 16px;
  color: var(--jietu-muted);
  font-size: 18px;
}

.jietu-news-date {
  margin: 0;
  font-size: 16px;
  color: #6b88a6;
}

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

.jietu-news-item {
  padding: 28px;
}

.jietu-news-item p {
  margin: 0;
  color: #6b88a6;
}

.jietu-news-item h4 {
  margin: 10px 0 0;
  font-size: 24px;
  color: #1f4e7b;
}

.jietu-home-about {
  background: linear-gradient(130deg, #0a315f 0%, #0f4d95 100%);
}

.jietu-home-about .jietu-headline h2 {
  color: #fff;
}

.jietu-about-content {
  margin-top: 32px;
  max-width: 980px;
}

.jietu-about-content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
  font-size: 20px;
}

.jietu-about-actions {
  margin-top: 20px;
}

.jietu-about-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.jietu-stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 24px;
  color: #fff;
}

.jietu-stat-card strong {
  display: block;
  font-size: 52px;
  line-height: 1.1;
}

.jietu-stat-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.jietu-home .royal-btn-primary {
  background: linear-gradient(120deg, #158dff, #20c0ff);
  border-color: transparent;
}

.jietu-home .royal-btn-free {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.jietu-home .royal-btn-free:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Global footer (match home footer layout) */
.royal-footer.jt-footer {
  padding: 72px 0 26px;
  background: #1b1b1b;
}

.royal-footer.jt-footer .jt-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  height: 3rem;
  overflow: visible;
}

.royal-footer.jt-footer .jt-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.royal-footer.jt-footer .jt-footer-brand img {
  width: 46px;
  height: 36px;
  object-fit: contain;
}

.royal-footer.jt-footer .jt-footer-brand p {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 2px;
}

.royal-footer.jt-footer .jt-footer-brand span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.royal-footer.jt-footer .jt-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.royal-footer.jt-footer .jt-footer-nav-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  column-gap: 16px;
  min-width: calc(7 * 92px);
}

.royal-footer.jt-footer .jt-footer-nav-cell {
  min-height: 20px;
  display: flex;
  justify-content: center;
}

.royal-footer.jt-footer .jt-footer-nav a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.royal-footer.jt-footer .jt-footer-nav a:hover {
  color: #ffffff;
}

.royal-footer.jt-footer .jt-footer-nav-row-top a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.royal-footer.jt-footer .jt-footer-contact {
  margin-top: 18px;
}

.royal-footer.jt-footer .jt-footer-contact p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.royal-footer.jt-footer .jt-footer-contact strong {
  color: #ffffff;
  font-size: 28px;
}

.royal-footer.jt-footer .jt-footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.royal-footer.jt-footer .jt-footer-bottom span {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1200px) {
  .royal-footer.jt-footer .jt-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .royal-footer.jt-footer .jt-footer-nav {
    align-self: stretch;
  }
}

.jietu-brand {
  background: var(--jietu-bg);
  color: var(--jietu-text);
}

.jietu-brand .royal-product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--jietu-line);
  box-shadow: 0 10px 24px rgba(32, 93, 145, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jietu-brand .royal-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 163, 255, 0.45);
  box-shadow: 0 16px 30px rgba(32, 93, 145, 0.14);
}

.jietu-brand .royal-products-filter,
.jietu-brand .royal-category-nav {
  background: #f4f9ff;
  border-radius: 12px;
}

.jietu-brand .royal-category-nav a {
  color: #30567a;
}

.jietu-brand .royal-category-nav a.royal-active {
  background: rgba(26, 163, 255, 0.14);
  color: #1b4d7c;
}

/* 产品列表页浅色适配 */
.jietu-brand.royal-category-content {
  background: var(--jietu-bg);
  color: var(--jietu-text);
}
.jietu-brand .royal-products-count {
  color: var(--jietu-muted);
  font-size: 0.875rem;
}
.jietu-brand .royal-product-card h3 a {
  color: #173a5e;
}
.jietu-brand .royal-product-card p {
  color: var(--jietu-muted);
}

/* 产品详情页浅色适配 */
.jietu-product-detail {
  background: var(--jietu-bg) !important;
  padding: 2.5rem 0 3rem;
}
.jietu-product-detail .royal-product-detail-gallery,
.jietu-product-detail .royal-product-detail-info,
.jietu-product-detail .royal-product-detail-tabs {
  background: #ffffff !important;
  border: 1px solid var(--jietu-line);
  box-shadow: 0 4px 16px rgba(26, 116, 191, 0.08);
}
.jietu-product-detail .royal-product-detail-title,
.jietu-product-detail .royal-product-detail-features-title {
  color: #173a5e !important;
}
.jietu-product-detail .royal-product-detail-stat-value,
.jietu-product-detail .royal-product-detail-price {
  color: #174b7b !important;
}
.jietu-product-detail .royal-product-detail-stat-label,
.jietu-product-detail .royal-product-detail-features-content,
.jietu-product-detail .royal-product-detail-content {
  color: var(--jietu-muted) !important;
}
.jietu-product-detail .royal-product-detail-image-wrapper,
.jietu-product-detail .royal-product-detail-thumb-wrapper {
  background: #edf5ff !important;
}
.jietu-product-detail .royal-product-detail-stats {
  background: #f4f9ff !important;
  border: 1px solid var(--jietu-line);
}
.jietu-product-detail .royal-product-detail-tabs-nav {
  background: #f4f9ff !important;
  border-bottom: 1px solid var(--jietu-line);
}
.jietu-product-detail .royal-product-detail-tab-nav {
  color: var(--jietu-muted) !important;
}
.jietu-product-detail .royal-product-detail-tab-nav.royal-product-detail-tab-active {
  color: var(--jietu-primary) !important;
  background: #ffffff !important;
}
.jietu-product-detail .royal-products-grid .royal-product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid var(--jietu-line);
}
.jietu-product-detail .royal-products-grid .royal-product-card h3 a,
.jietu-product-detail .royal-products-grid .royal-product-card p,
.jietu-product-detail .royal-products-grid .royal-product-meta {
  color: #1d4b75 !important;
}
.jietu-product-detail .royal-products-grid .royal-product-meta {
  color: var(--jietu-muted) !important;
}
.jietu-product-detail .royal-category-nav {
  background: #f4f9ff !important;
  /* border: 1px solid var(--jietu-line); */
}
.jietu-product-detail .royal-category-nav a {
  color: #30567a !important;
}
.jietu-product-detail .royal-category-nav a.royal-active {
  background: rgba(26, 163, 255, 0.14) !important;
  color: #1b4d7c !important;
}

.jietu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.jietu-badge {
  font-size: 11px;
  color: #1f587e;
  border: 1px solid rgba(26, 163, 255, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(26, 163, 255, 0.08);
}

@media (max-width: 768px) {
  .jietu-home section {
    padding: 58px 0;
  }

  .jietu-headline h2,
  .jietu-app-main h2 {
    font-size: 30px;
  }

  .jietu-hero-copy h1 {
    font-size: 38px;
  }

  .jietu-hero-kicker,
  .jietu-hero-desc,
  .jietu-capability-panel p,
  .jietu-app-main p,
  .jietu-about-content p {
    font-size: 16px;
  }

  .jietu-capability-tabs,
  .jietu-capability-gallery,
  .jietu-products-layout,
  .jietu-product-grid,
  .jietu-app-list,
  .jietu-news-grid,
  .jietu-about-stats {
    grid-template-columns: 1fr;
  }

  .jietu-product-tile {
    font-size: 22px;
    min-height: 112px;
  }

  .jietu-app-item {
    min-height: 118px;
    font-size: 24px;
  }

  .jietu-news-main h3 {
    font-size: 26px;
  }

  .jietu-stat-card strong {
    font-size: 42px;
  }
}

/* Safety net: hide think trace panel if accidentally enabled online */
#think_page_trace_open,
#think_page_trace_tab,
#think_page_trace {
  display: none !important;
}

.royal-solution-actions {
  margin-top: 2rem;
}

/* Lanhu reference alignment for homepage */
.jietu-home .royal-header,
body:has(.jietu-home) .royal-header {
  background: linear-gradient(180deg, rgba(4, 24, 54, 0.72), rgba(4, 24, 54, 0.52));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.jietu-home .royal-nav-menu>li>a,
body:has(.jietu-home) .royal-nav-menu>li>a,
.jietu-home .royal-language-current,
body:has(.jietu-home) .royal-language-current {
  color: rgba(255, 255, 255, 0.92);
}

.jietu-home .royal-nav-menu>li>a span,
body:has(.jietu-home) .royal-nav-menu>li>a span {
  color: inherit;
}

.jietu-home .royal-navmenu-item.royal-active>a,
body:has(.jietu-home) .royal-navmenu-item.royal-active>a {
  color: #fff;
}

.jietu-home .royal-navmenu-item.royal-active>a::after,
body:has(.jietu-home) .royal-navmenu-item.royal-active>a::after {
  background: #fff;
}

.jietu-home .royal-logo-text,
body:has(.jietu-home) .royal-logo-text {
  color: #fff;
}

.jietu-home {
  min-width: 1200px;
}

.jietu-home-hero {
  min-height: 980px;
  background:
    linear-gradient(120deg, rgba(4, 24, 54, 0.55), rgba(4, 24, 54, 0.36)),
    url(../images/home/home-hero-bg.png)
      center/cover no-repeat;
}

.jietu-hero-inner {
  padding-top: 150px;
}

.jietu-hero-copy h1 {
  font-size: 72px;
  max-width: 980px;
}

.jietu-hero-desc {
  max-width: 760px;
}

.jietu-home-capability {
  background:
    linear-gradient(90deg, rgba(7, 28, 62, 0.86), rgba(7, 28, 62, 0.34)),
    url(../images/home/home-capability-bg.png)
      center/cover no-repeat;
}

.jietu-capability-panel {
  background: #fff;
  border: 0;
  border-radius: 0;
}

.jietu-capability-panel h3 {
  color: #1f1f1f;
  font-size: 34px;
}

.jietu-capability-panel p {
  color: rgba(27, 27, 27, 0.64);
}

.jietu-capability-gallery .jietu-media-card:nth-child(1) {
  background: url(../images/home/home-capability-gallery-1.png)
    center/cover no-repeat;
}

.jietu-capability-gallery .jietu-media-card:nth-child(2) {
  background: url(../images/home/home-capability-gallery-2.png)
    center/cover no-repeat;
}

.jietu-capability-gallery .jietu-media-card:nth-child(3) {
  background: url(../images/home/home-capability-gallery-3.png)
    center/cover no-repeat;
}

.jietu-capability-gallery .jietu-media-card:nth-child(4) {
  background: url(../images/home/home-capability-gallery-4.png)
    center/cover no-repeat;
}

.jietu-home-products {
  min-height: 900px;
  background:
    linear-gradient(180deg, rgba(6, 52, 111, 0.9), rgba(7, 59, 127, 0.88)),
    url(../images/home/home-products-bg.png)
      center/cover no-repeat;
}

.jietu-feature-product,
.jietu-product-tile {
  border-radius: 0;
}

.jietu-home-application {
  min-height: 860px;
  background: none;
  position: relative;
}

.jietu-home-application::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 0 30%, rgba(0, 0, 0, 0.55) 30% 100%),
    url(../images/home/home-application-col-1.png)
      left center/31.5% 100% no-repeat,
    url(../images/home/home-application-col-2.png)
      31.5% center/22.8% 100% no-repeat,
    url(../images/home/home-application-col-3.png)
      54.3% center/22.8% 100% no-repeat,
    url(../images/home/home-application-col-4.png)
      right center/22.9% 100% no-repeat;
}

.jietu-home-application .royal-container {
  position: relative;
  z-index: 1;
}

.jietu-home-news {
  min-height: 860px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url(../images/home/home-news-bg.png)
      center/cover no-repeat;
}

.jietu-home-about {
  min-height: 960px;
  background:
    linear-gradient(130deg, rgba(10, 49, 95, 0.88), rgba(15, 77, 149, 0.78)),
    url(../images/home/home-about-bg.png)
      center/cover no-repeat;
}

@media (max-width: 768px) {
  .jietu-home {
    min-width: 0;
  }

  .jietu-home-hero {
    min-height: 640px;
  }

  .jietu-hero-inner {
    padding-top: 86px;
  }

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