/* 
 * Storage & Networking Page - Mobile Optimization CSS
 * 针对 storage-networking.html 页面的专属移动端适配
 */

@media screen and (max-width: 1024px) {

  /* ============================================
     Hero Section Override
     ============================================ */
  .wrapper > section:first-of-type {
    padding: 80px 0 60px 0 !important;
    min-height: auto !important;
    display: block !important;
  }

  .wrapper > section:first-of-type .row {
    display: flex;
    flex-direction: column;
  }

  /* ============================================
     Three Foundations Section
     ============================================ */
  .wrapper section:nth-of-type(2) {
    padding: 30px 0 !important;
  }

  /* Reset row layout to stack vertically */
  .wrapper section:nth-of-type(2) .row {
    margin-bottom: 30px !important;
    flex-direction: column !important;
    display: flex !important;
  }

  /* Reset padding on text columns */
  .wrapper section:nth-of-type(2) div[style*="padding-left: 60px"],
  .wrapper section:nth-of-type(2) div[style*="padding-right: 60px"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 30px !important;
  }

  /* Optimize Title & Text Gap */
  /* The title container */
  .wrapper section:nth-of-type(2) div[style*="background: linear-gradient"] {
    margin-bottom: 15px !important; /* Reduced from 25px */
    padding: 10px 20px !important;
    width: 100% !important; /* Full width on mobile looks better usually */
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  /* The title text */
  .wrapper section:nth-of-type(2) div[style*="background: linear-gradient"] h4 {
    font-size: 20px !important; /* Smaller font */
  }

  /* The list container */
  .wrapper section:nth-of-type(2) ul {
    margin-top: 15px !important; /* Reduced from 30px */
  }

  /* List items */
  .wrapper section:nth-of-type(2) ul li {
    margin-bottom: 15px !important;
  }

  /* Hide bullet points */
  .wrapper section:nth-of-type(2) ul li div span {
    display: none !important;
  }

  /* Adjust title inside list item */
  .wrapper section:nth-of-type(2) ul li div[style*="font-weight: 600"] {
    margin-bottom: 5px !important;
  }

  /* Adjust description text inside list item - Remove indentation */
  .wrapper section:nth-of-type(2) ul li div[style*="padding-left: 20px"] {
    padding-left: 0 !important;
    line-height: 1.5 !important;
  }

  /* ============================================
     Performance Benchmarks Section (3 Cards in 1 Row)
     ============================================ */
  .wrapper section:nth-of-type(3) {
    padding: 40px 0 !important;
  }

  /* Force row to be flex and non-wrapping */
  .wrapper section:nth-of-type(3) .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    align-items: stretch !important; /* Make cards same height */
  }

  /* Force columns to be 1/3 width */
  .wrapper section:nth-of-type(3) .col-xs-12.col-sm-12.col-md-4.col-lg-4 {
    width: 33.33% !important;
    flex: 0 0 33.33% !important;
    max-width: 33.33% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 0 !important;
  }

  /* Card container styling */
  .wrapper section:nth-of-type(3) div[style*="background: white"] {
    padding: 15px 10px !important; /* Drastically reduce padding */
    height: 100% !important;
    border-radius: 10px !important;
  }

  /* Icon styling */
  .wrapper section:nth-of-type(3) i.las {
    font-size: 24px !important; /* Smaller icon */
    margin-bottom: 10px !important;
  }

  /* Title styling */
  .wrapper section:nth-of-type(3) h5 {
    font-size: 11px !important; /* Much smaller title */
    margin-bottom: 15px !important;
    min-height: 26px !important; /* Ensure alignment for 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2 !important;
  }

  /* Progress bar labels */
  .wrapper section:nth-of-type(3) span {
    font-size: 9px !important; /* Tiny text */
  }

  /* Progress bar container */
  .wrapper section:nth-of-type(3) div[style*="height: 12px"] {
    height: 8px !important; /* Thinner bars */
  }
}
