/* ==========================================================================
   JINLAIBAO METAL - WEBSITE ENHANCEMENTS CSS (v2.0)
   Strategic Mill Partners | Hardcore Tech Specs | 3D Water Ripple | Video Modal
   ========================================================================== */

/* 1. STRATEGIC MILL PARTNERS & ORIGIN ASSURANCE */
.mills-trust-section {
  background: linear-gradient(180deg, #f8fafd 0%, #eef4f9 100%);
  border-top: 1px solid #dce6ef;
  border-bottom: 1px solid #dce6ef;
  padding: 48px 6%;
}

.mills-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}

.mills-header .eyebrow {
  color: #0b598d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mills-header h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  color: #0c2338;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mills-header p {
  color: #556c80;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.mills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.mill-badge {
  background: #ffffff;
  border: 1px solid #d6e2ec;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(12, 35, 56, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mill-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11, 89, 141, 0.12);
  border-color: #0b598d;
}

.mill-badge strong {
  display: block;
  font-size: 15px;
  color: #0c2338;
  font-weight: 700;
  margin-bottom: 4px;
}

.mill-badge span {
  font-size: 11px;
  color: #0b598d;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mill-badge small {
  font-size: 10px;
  color: #7b91a5;
  margin-top: 4px;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-pillar-card {
  background: #ffffff;
  border: 1px solid #dce7f0;
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 4px rgba(12, 35, 56, 0.03);
}

.trust-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eaf3fa;
  color: #0b598d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.trust-card-body h3 {
  font-size: 15px;
  color: #0c2338;
  margin: 0 0 6px;
  font-weight: 700;
}

.trust-card-body p {
  font-size: 12px;
  color: #556c80;
  line-height: 1.65;
  margin: 0;
}

/* 2. HARDCORE TECHNICAL SPECIFICATIONS TABLE */
.tech-specs-section {
  padding: 55px 6%;
  background: #ffffff;
}

.tech-specs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tech-specs-header > div {
  max-width: 720px;
}

.tech-specs-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #0c2338;
  margin: 0 0 10px;
  font-weight: 700;
}

.tech-specs-header p {
  color: #556c80;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.tech-table-wrapper {
  overflow-x: auto;
  border: 1px solid #d6e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(12, 35, 56, 0.05);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 820px;
}

.tech-table th {
  background: #0c2338;
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  border-right: 1px solid #1a3c5c;
}

.tech-table th:last-child {
  border-right: none;
}

.tech-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e7eff5;
  border-right: 1px solid #e7eff5;
  color: #3b5266;
  vertical-align: top;
  line-height: 1.65;
}

.tech-table td:last-child {
  border-right: none;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:nth-child(even) td {
  background: #f8fafc;
}

.tech-table tr:hover td {
  background: #f0f6fa;
}

.tech-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #eaf3fa;
  color: #0b598d;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tech-highlight-val {
  color: #0b85bd;
  font-weight: 700;
}

.tech-precision-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #078653;
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  font-size: 12px;
}

/* 3. 3D WATER RIPPLE SPOTLIGHT CARD */
.ripple-spotlight-section {
  padding: 55px 6%;
  background: #0d1e2e;
  color: #ffffff;
}

.ripple-spotlight-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.ripple-content .eyebrow {
  color: #48b4e0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.ripple-content h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.ripple-content p {
  color: #9cb3c7;
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 24px;
}

.ripple-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.ripple-feature-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 14px 16px;
}

.ripple-feature-item strong {
  display: block;
  font-size: 13px;
  color: #e5f2fc;
  margin-bottom: 4px;
}

.ripple-feature-item span {
  font-size: 11px;
  color: #8da4b8;
  line-height: 1.5;
}

.ripple-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button.ripple-video-btn {
  background: #0b85bd;
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.button.ripple-video-btn:hover {
  background: #0a73a3;
}

.ripple-gallery-visuals {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.ripple-visual-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ripple-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.ripple-visual-main .visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(10, 29, 48, 0.95), transparent);
  font-size: 12px;
  color: #ffffff;
}

.ripple-visual-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ripple-thumb-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: calc(50% - 6px);
}

.ripple-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ripple-thumb-item span {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 3px;
  color: #e2e8f0;
}

/* 4. IN-PAGE INTERACTIVE VIDEO MODAL */
.video-modal-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  width: min(940px, 94vw);
  max-height: 94dvh;
  background: #0a1826;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.video-modal-dialog::backdrop {
  background: rgba(4, 12, 20, 0.82);
  backdrop-filter: blur(8px);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0e2033;
  border-bottom: 1px solid #1a324b;
}

.video-modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
}

.video-modal-close {
  background: transparent;
  border: 1px solid #36506d;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: #244161;
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player-wrap video {
  width: 100%;
  max-height: min(65dvh, 560px);
  outline: none;
  display: block;
}

.video-modal-footer {
  padding: 16px 22px;
  background: #0e2033;
  border-top: 1px solid #1a324b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-modal-info p {
  margin: 0;
  font-size: 13px;
  color: #9ab4cb;
  line-height: 1.5;
}

.video-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.video-modal-actions a,
.video-modal-actions button {
  font-size: 12px;
  padding: 8px 14px;
}

/* Video card click trigger helper */
.video-card .video-image,
.video-card .play {
  cursor: pointer;
}

.video-instant-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 133, 189, 0.9);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 5. INTERNATIONAL FOREIGN TRADE (EN PAGES) */
.en-export-strip {
  background: #0c2338;
  color: #ffffff;
  padding: 45px 6%;
  border-top: 1px solid #1a3a58;
}

.en-export-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.en-export-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 22px 18px;
}

.en-export-card h3 {
  font-size: 15px;
  color: #e5f2fc;
  margin: 0 0 8px;
  font-weight: 700;
}

.en-export-card p {
  font-size: 12px;
  color: #8da4b8;
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .mills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .ripple-spotlight-inner {
    grid-template-columns: 1fr;
  }
  .en-export-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trust-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .trust-pillar-card {
    padding: 16px 14px;
  }
  .ripple-features-grid {
    grid-template-columns: 1fr;
  }
  .ripple-gallery-visuals {
    grid-template-columns: 1fr;
  }
  .ripple-thumb-item {
    height: 120px;
  }
  .video-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-modal-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .en-export-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL MULTILINGUAL LANGUAGE SELECTOR & TRANSLATOR
   ========================================================================== */
.lang-dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 6px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #c9dbe8;
  color: #0c2338;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.lang-btn:hover {
  background: #f0f6fa;
  border-color: #0b85bd;
  box-shadow: 0 2px 8px rgba(11, 133, 189, 0.15);
}

.lang-globe {
  font-size: 13px;
  line-height: 1;
}

.lang-arrow {
  font-size: 8px;
  color: #63809a;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.lang-dropdown-container.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 6px;
  z-index: 9999;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #d6e2ec;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(12, 35, 56, 0.20), 0 2px 8px rgba(12, 35, 56, 0.06);
  z-index: 99999;
  padding: 10px;
  animation: langFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

.lang-dropdown-container.open .lang-menu,
.lang-dropdown-container:hover .lang-menu,
.lang-dropdown-container:focus-within .lang-menu {
  display: block !important;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: #7a93a8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  text-decoration: none;
  color: #1e3a52;
  font-size: 12px;
  transition: background 0.15s ease;
}

.lang-item:hover {
  background: #eaf3fa;
  color: #0b598d;
}

.lang-item.active {
  background: #e0effa;
  color: #0b598d;
  font-weight: 700;
}

.lang-item .flag {
  font-size: 15px;
  line-height: 1;
}

.lang-names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.lang-names strong {
  font-size: 12px;
}

.lang-names small {
  font-size: 10px;
  color: #7b91a5;
}

/* Hide Google Translate top banner & tooltips */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-tooltip,
#goog-gt-tt {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#google_translate_element {
  display: none;
}

.semantic-group-heading{font-size:24px;margin:24px 0}.contact-card-heading{font-size:21px;font-weight:700;color:var(--ink)}.core-topic-links{margin:35px 5%;padding:25px;border:1px solid #dce5ed;background:#f2f6f9}.core-topic-links h2{font-size:23px}.core-topic-links .core-inline-links{display:flex;flex-wrap:wrap;gap:15px 25px}.core-topic-links a{font-size:14px;color:#14617e}
