@charset "UTF-8";

/* ============================================================
   Service Detail Page - Premium B2B Refactor
   ============================================================ */

:root {
  /* Colors */
  --sd-primary: #0033a0;
  --sd-bg-page: #f8fafc;
  --sd-bg-card: #ffffff;
  --sd-text-title: #1a1a1a;
  --sd-text-main: #333333;
  --sd-text-muted: #666666;
  --sd-border: #e8e8e8;
  
  /* Layout & Metrics */
  --sd-container: 1400px;
  --sd-sidebar-width: 360px;
  --sd-radius: 12px;
  --sd-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --sd-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
  --sd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Polka dot background for the main content area */
.ys-main {
  background-color: var(--sd-bg-page);
  background-image: radial-gradient(rgba(0, 51, 160, 0.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Removed global * and body resets to prevent polluting the header/footer */

.sd-layout, .sd-layout *, .sd-layout *::before, .sd-layout *::after,
.mod-hero, .mod-hero *, .mod-hero *::before, .mod-hero *::after,
.mod-nav, .mod-nav *, .mod-nav *::before, .mod-nav *::after {
  box-sizing: border-box;
}

.sd-layout {
  font-family: var(--sd-font);
  color: var(--sd-text-main);
  line-height: 1.6;
}

.sd-layout img { 
  max-width: 100%; display: block; border-radius: 8px; 
}

/* ============================================================
   Global Layout
   ============================================================ */
.sd-layout {
  max-width: var(--sd-container);
  margin: 20px auto 40px; /* Reduced top gap after nav */
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.sd-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sd-sidebar {
  width: 380px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 146px; /* Offset for shrunk global header (66px) + sticky nav (80px) */
  z-index: 8;
  align-self: flex-start; /* CRITICAL for Flexbox sticky */
}

@media (max-width: 992px) {
  .sd-layout { flex-direction: column; }
  .sd-sidebar { width: 100%; position: static; }
}

/* ============================================================
   CMS Standardized Modules (Skeleton)
   ============================================================ */
.sd-module {
  background: var(--sd-bg-card);
  border-radius: var(--sd-radius);
  padding: 40px;
  box-shadow: var(--sd-shadow);
}

.sd-module-header {
  margin-bottom: 30px;
}

.sd-mod-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--sd-text-title);
  position: relative;
  display: flex;
  align-items: center;
}

/* Premium blue accent bar for title */
.sd-mod-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--sd-primary);
  margin-right: 12px;
  border-radius: 2px;
}

/* Typography Engine */
.sd-rich-text {
  font-size: 15px;
  color: var(--sd-text-main);
  line-height: 1.8;
}

.sd-rich-text p {
  margin-bottom: 20px;
  font-size: 15px;
}

.sd-rich-text p:last-child {
  margin-bottom: 0;
}

.sd-text-list p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--sd-text-main);
}
.sd-text-list p:last-child {
  margin-bottom: 0;
}
.sd-text-list strong {
  color: var(--sd-text-title);
  font-size: 16px;
  margin-right: 4px;
}
.sd-rich-text h3 {
  font-size: 17px;
  color: var(--sd-text-title);
  margin: 1.8em 0 1em;
  font-weight: 600;
}
.sd-rich-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5em;
}
.sd-rich-text li {
  margin-bottom: 8px;
}

/* Tag Cloud Component */
.sd-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sd-tag {
  background-color: #f0f5ff;
  color: var(--sd-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #d6e4ff;
  transition: all 0.3s;
}
.sd-tag:hover {
  background-color: var(--sd-primary);
  color: #fff;
  border-color: var(--sd-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 51, 160, 0.15);
}

/* ============================================================
   Specific Modules
   ============================================================ */

/* 1. Hero Banner */
.mod-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: calc(var(--sd-container) - 40px);
  margin: 30px auto 20px; /* Reduced gap before nav */
  background: #ffffff;
  border-radius: var(--sd-radius);
  box-shadow: var(--sd-shadow);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: auto;
}
.mod-hero-overlay {
  display: none;
}
.mod-hero-content {
  flex: 1; /* Reset to 1 to close the awkward wide gap in the middle */
  padding: 40px 60px;
  color: var(--sd-text-title);
  text-align: left;
}
.mod-hero-title {
  font-size: 32px; font-weight: bold; margin-bottom: 12px; color: var(--sd-text-title);
}
.mod-hero-subtitle {
  font-size: 16px; color: var(--sd-text-muted); line-height: 1.6; margin-bottom: 24px;
  max-width: 90%; /* Ensure it wraps into two lines gracefully if needed */
}
.mod-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sd-primary);
  color: #fff !important;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}
.mod-hero-btn:hover { background-color: #002266; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);}
.mod-hero-image {
  flex: 1;
  height: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  /* Premium blend effect for the inner edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

@media (max-width: 992px) {
  .mod-hero { flex-direction: column; margin-top: 20px;}
  .mod-hero-image { width: 100%; min-height: 250px; }
  .mod-hero-content { padding: 40px 20px; }
}

/* Robust fix for position: sticky inside generic wrappers */
body, html {
  overflow: visible !important;
  background-color: #f4f6f9 !important;
}
/* Global Header Transparent Override */
.ys-hd-pc, .ys-hd-m {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
.ys-hd-pc.isfixed, .ys-hd-m.isfixed {
  background-color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.ys-page-wrap, .ys-main, .sd-main-wrap {
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
}

/* Sticky Nav - uses SEOpage-nav from page-inner-kit.css */
/* z-index override: must be lower than global header dropdown (z-index: 20) */
.SEOpage-nav {
  z-index: 10 !important;
  top: var(--headh) !important; /* follow header height across breakpoints (56/60/66/70/82px) */
}

/* Grid Cards (Bento Box style) */
.sd-grid-cards {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 24px;
}
.sd-grid-card {
  padding: 30px; 
  background: #f8fafc; 
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}
.sd-grid-card:hover {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); 
  transform: translateY(-4px);
  border-color: var(--sd-border);
}
.sd-grid-card-icon { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #eef2ff;
  border-radius: 10px;
  font-size: 24px; 
  color: var(--sd-primary); 
  margin-bottom: 20px; 
}
.sd-grid-card-title { 
  font-size: 17px; 
  font-weight: 600; 
  margin-bottom: 10px; 
  color: var(--sd-text-title); 
}
.sd-grid-card-desc { 
  font-size: 14px; 
  color: var(--sd-text-muted); 
  line-height: 1.6; 
}

/* Equipment Gallery */
.mod-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.mod-gallery-item { border-radius: 8px; overflow: hidden; border: 1px solid var(--sd-border); }
.mod-gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; }
.mod-gallery-caption { padding: 12px; text-align: center; font-size: 14px; font-weight: 500; }

/* Download */
.mod-download { text-align: center; padding: 60px 40px; }
.btn-primary {
  display: inline-block; padding: 14px 32px; background: var(--sd-primary); color: #fff;
  font-size: 16px; font-weight: bold; border-radius: 4px; border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary:hover { background: #002266; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--sd-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 20px 0; font-size: 16px; font-weight: bold; color: var(--sd-text-title);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  line-height: 1.5;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--sd-primary); transition: transform 0.3s; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--sd-text-muted); }

.faq-a-inner {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}


/* ============================================================
   PIXEL PERFECT FORM (Module 12)
   ============================================================ */
.sd-form-box {
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.08));
  background-color: rgb(255, 255, 255);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.sd-form-header {
  text-align: center;
  padding: 24px 32px 16px;
  background: linear-gradient(135deg, rgb(124, 58, 237) 0%, rgb(76, 29, 149) 100%);
  border-bottom: medium none currentcolor;
  color: #ffffff;
}

.sd-form-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sd-form-header p {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.sd-form-body {
  padding: 24px 32px;
}

.sd-form-group {
  margin-bottom: 17px;
}

.sd-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main, #333333);
}

.sd-required-star {
  color: #ff4d4f;
  margin-left: 4px;
  font-size: 14px;
  vertical-align: top;
}

.sd-form-group input,
.sd-form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-title, #1a1a1a);
  padding: 12px 16px;
  background: rgb(249, 250, 251);
  border: 1px solid rgb(229, 231, 235);
  border-radius: var(--radius-card, 8px);
  outline: none;
  transition: all var(--transition-fast, 0.3s);
  box-sizing: border-box;
}

.sd-form-group input::placeholder,
.sd-form-group textarea::placeholder {
  color: #a8a8a8;
}

.sd-form-group input:focus,
.sd-form-group textarea:focus {
  outline: none;
  border-color: #6A1B9A;
}

.sd-btn-submit {
  width: 100%;
  color: rgb(255, 255, 255);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 14px;
  background: var(--color-primary, #0033a0);
  border: none;
  border-radius: var(--radius-card, 8px);
  transition: all var(--transition-base, 0.3s);
}

.sd-btn-submit:hover {
  background-color: #001a4d;
}

/* ============================================================
   Download Horizontal Layout
   ============================================================ */
.sd-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 15px;
}
.sd-download-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--sd-border);
  transform: translateY(-2px);
}
.sd-dl-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sd-dl-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.sd-dl-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--sd-text-title);
}
.sd-dl-meta {
  font-size: 14px;
  color: var(--sd-text-muted);
}
.sd-dl-btn {
  padding: 12px 28px;
  background: var(--sd-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.sd-dl-btn:hover {
  background: #001a4d;
}

@media (max-width: 768px) {
  .sd-download-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .sd-dl-info {
    gap: 10px;
  }

  .sd-dl-name {
    line-height: 1.5;
  }

  .sd-dl-meta {
    line-height: 1.6;
  }
  .sd-dl-btn {
    width: 100%;
  }
}

/* ============================================================
   Recommended Services (Full Width)
   ============================================================ */
.sd-recommend-wrap.sd-module {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent; /* Remove hard white background to blend seamlessly with grey canvas */
  padding: 0 20px 80px; /* Removed top padding to fix massive gap */
  margin: 0;
}

.sd-recommend-container {
  max-width: var(--sd-container, 1200px);
  margin: 0 auto;
}

.sd-rec-header {
  text-align: center;
  margin-bottom: 50px;
}

.sd-rec-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: var(--sd-text-title);
  margin-bottom: 16px;
}

.sd-rec-header p {
  font-size: 16px;
  color: var(--sd-text-muted);
}

.sd-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sd-rec-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #eaeaea;
  text-decoration: none;
}

.sd-rec-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 51, 160, 0.1);
  border-color: var(--sd-border);
}

.sd-rec-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.sd-rec-info {
  padding: 24px;
}

.sd-rec-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--sd-text-title);
  margin-bottom: 12px;
}

.sd-rec-desc {
  font-size: 14px;
  color: var(--sd-text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .sd-rec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sd-rec-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header Navigation Inline Search Bar (Option B - Optimized)
   ========================================================================== */
.head-search-inline {
  display: flex;
  align-items: center;
  margin-left: 54px;
}
.head-search-inline-wrapper {
  position: relative;
  width: 255px;
  height: 38px;
}
.head-search-inline input {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box !important;
  height: 38px !important;
  padding: 0 16px 0 38px !important;
  border: 1px solid rgba(2, 45, 132, 0.08) !important;
  border-radius: 19px !important;
  font-size: 14px !important;
  width: 255px;
  outline: none !important;
  background: rgba(2, 45, 132, 0.03) !important;
  color: #333 !important;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 1px 3px rgba(2, 45, 132, 0.03) !important;
  z-index: 2;
}
.head-search-inline input::placeholder {
  color: #999 !important;
  font-size: 13px !important;
  transition: opacity 0.3s ease;
}
.head-search-inline input:hover {
  border-color: rgba(2, 45, 132, 0.2) !important;
  background: rgba(2, 45, 132, 0.05) !important;
}
.head-search-inline input:focus {
  width: 320px !important;
  border-color: #022d84 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 45, 132, 0.12) !important;
  z-index: 10;
}
.head-search-inline input:focus::placeholder {
  opacity: 0.5;
}
.head-search-inline .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  line-height: 1;
  z-index: 11;
}
.head-search-inline .search-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
.head-search-inline input:focus + .search-icon {
  color: #022d84;
}

/* 导航栏左移优化：缩短股票代码与导航项之间的间隙，并为搜索框右侧扩展腾出空间 */
.yhpc-lebox {
  justify-content: flex-start !important;
}
.yhpc-ribox {
  margin-left: 80px !important;
}

/* 参照 search_demo.html 恢复并对齐 logo 和股票代码样式，防止折行 */
.yhpc-le {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.yhpc-le-ricode {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.yhpc-le-ricode-tet {
  white-space: nowrap !important;
}

