/* 
 * Management Tools Page - Mobile Optimization CSS
 * 针对 management-tools.html 页面的专属移动端适配
 */

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

  /* ============================================
     Hero Section Override (Split Screen -> Merged)
     ============================================ */
  .wrapper > section:first-of-type {
    min-height: auto !important;
    display: block !important;
    padding: 0 !important;
  }

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

  /* Image Column - Use as top banner or background */
  .wrapper > section:first-of-type .col-xs-12.col-sm-12.col-md-5.col-lg-5 {
    min-height: 250px !important; /* Reduce height */
    height: 250px !important;
    background-position: center !important;
    background-size: cover !important;
  }

  /* Text Column - Pull up to overlap or just sit below nicely */
  .wrapper > section:first-of-type .col-xs-12.col-sm-12.col-md-7.col-lg-7 {
    min-height: auto !important;
    padding: 40px 20px !important;
    background: linear-gradient(135deg, #a18cd1 0%, #667eea 100%) !important;
    /* Optional: Add negative margin to overlap if desired, but simple stacking is safer for text readability */
  }

  /* Hero Text Adjustments */
  .wrapper > section:first-of-type h1 {
    font-size: 32px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  .wrapper > section:first-of-type p {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }

  /* Metric Cards in Hero */
  .wrapper > section:first-of-type .row .col-xs-6 {
    width: 100% !important; /* Stack metric cards */
    margin-bottom: 15px !important;
  }

  /* ============================================
     Four Capabilities Section (Tabs)
     ============================================ */
  .wrapper section:nth-of-type(2) {
    padding: 60px 0 !important;
  }

  /* Tab Buttons Container - Horizontal Scroll */
  #tabButtons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #f7fafc !important;
  }

  /* Tab Buttons */
  .tab-btn {
    flex: 0 0 auto !important; /* Don't shrink */
    padding: 10px 20px !important;
    font-size: 14px !important;
    margin-right: 10px !important;
    height: 40px !important;
  }

  /* Tab Content Layout */
  .tab-content .row {
    flex-direction: column !important;
    min-height: auto !important;
  }

  /* Image Container in Tab */
  .tab-content .col-xs-12.col-sm-12.col-md-6.col-lg-6:first-child {
    margin-bottom: 30px !important;
  }

  .tab-content div[style*="min-height: 450px"] {
    min-height: auto !important;
    padding: 20px !important;
  }

  /* Text Container in Tab */
  .tab-content .col-xs-12.col-sm-12.col-md-6.col-lg-6:last-child div[style*="padding-left: 40px"] {
    padding-left: 0 !important;
    min-height: auto !important;
  }

  /* Tab Content Title */
  .tab-content h4 {
    font-size: 24px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
  }

  /* List Items Alignment Fix */
  .tab-content ul li div[style*="display: flex"] {
    align-items: flex-start !important;
  }

  /* Icon Container */
  .tab-content ul li div[style*="width: 40px"] {
    margin-right: 15px !important;
    margin-top: 3px !important; /* Align with first line of text */
  }

  /* Text Content in List */
  .tab-content ul li div div[style*="font-size: 16px"] {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .tab-content ul li div div[style*="font-size: 14px"] {
    font-size: 13px !important;
  }

  /* Data Point Box */
  .tab-content div[style*="border-left: 4px solid"] {
    margin-top: 20px !important;
    padding: 15px !important;
  }

  /* ============================================
     ROI Comparison Section
     ============================================ */
  .wrapper section:nth-of-type(3) {
    padding: 60px 0 !important;
  }

  .wrapper section:nth-of-type(3) .col-xs-12 {
    margin-bottom: 40px !important;
  }

  .wrapper section:nth-of-type(3) div[style*="padding: 40px"] {
    padding: 25px 20px !important;
  }
}
