/* SERtool index page-specific styles */

    .hero {
      position: relative;
      height: 400px;
      background: linear-gradient(135deg, #14304f 0%, #1c4a76 50%, #266a9c 100%);
      margin-top: 0;
      padding-top: 0;
      overflow: hidden;
    }

    #particleCanvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 0;
      pointer-events: none;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 50% 45%, rgba(30, 70, 120, 0.15) 0%, rgba(12, 35, 65, 0.55) 100%);
      z-index: 1;
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: white;
      text-align: center;
      padding: 0 20px;
      pointer-events: auto;
    }

    .hero-slogan {
      font-size: 16px;
      margin-bottom: 10px;
      opacity: 0.95;
      max-width: 900px;
      width: 100%;
      text-shadow: 0 1px 8px rgba(0, 20, 45, 0.7);
    }

    .hero-title {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 20px;
      text-shadow: 0 1px 12px rgba(0, 20, 45, 0.8);
    }

    .search-container {
      width: 100%;
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0;
    }

    .search-box {
      width: 60%;
      max-width: 800px;
      display: flex; 
      margin: 0;
      padding: 0;
      background: white; 
      border-radius: 4px;
      overflow: hidden; 
      box-shadow: 0 4px 14px rgba(0, 25, 55, 0.35);
    }

    .search-type-select {
      padding: 0 15px;
      height: 46px; 
      border: none;
      border-right: 1px solid #cbd5e0;
      background-color: #f8fafc;
      color: #2c3e50;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      border-radius: 4px 0 0 4px;
      appearance: none; 
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("../picture/pulldown.svg");
      background-repeat: no-repeat;
      background-position: right 10px top 50%;
      background-size: 10px auto;
      padding-right: 25px; 
    }

    .search-box input {
      flex: 1; 
      padding: 10px 16px;
      border: none; 
      border-right: 1px solid #cbd5e0; 
      font-size: 14px;
      outline: none;
      border-radius: 0;
      height: 46px;
      min-width: 0; 
    }

    .search-box button {
      background-color: #3182ce;
      color: white;
      border: none;
      padding: 0 24px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border-radius: 0 4px 4px 0; 
      height: 46px;
      transition: background-color 0.2s;
      white-space: nowrap; 
    }

    .search-box button:hover {
      background-color: #2b6cb0;
    }

    .search-examples {
      margin-top: 12px;
      color: #cbdff5;
      font-size: 13px;
      text-shadow: 0 1px 6px rgba(0, 20, 45, 0.7);
    }

    .search-examples span {
      margin: 0 8px;
    }

    .intro-section {
      width: 85%;
      max-width: 1300px;
      margin: 40px auto 60px;
      padding: 0 15px;
    }

    .section-title {
      text-align: center;
      font-size: 26px;
      color: #1a365d;
      margin-bottom: 30px;
    }

    .intro-cards {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      background-color: transparent;
    }

    .card {
      background-color: #355c7d;
      height: 64px;
      border-radius: 10px;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      cursor: pointer;
      transition: all 0.25s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .card h3 {
      color: white;
      margin: 0;
      font-size: 16px;
      font-weight: 600;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 100%;
      padding: 0 10px;
    }

    .card .card-sub {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.65);
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 100%;
      padding: 0 10px;
      line-height: 1.2;
    }

    .card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .card.selected {
      background-color: #11999E;
      box-shadow: 0 8px 24px rgba(17, 153, 158, 0.35);
    }

    .card.selected h3 {
      color: #0d2b33;
    }

    .card.selected .card-sub {
      color: rgba(13, 43, 51, 0.75);
    }

    .detail-panel {
      margin-top: 20px;
      padding: 28px 32px;
      background-color: #ffffff;
      border-radius: 12px;
      border-top: 3px solid #11999E;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
      display: none;
      text-align: left;
      line-height: 1.7;
      font-size: 15px;
      color: #2d3e50;
    }

    .detail-panel.active {
      display: block;
      animation: fadeSlideIn 0.3s ease;
    }

    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .detail-panel h3 {
      font-size: 20px;
      color: #1a365d;
      margin-bottom: 16px;
      font-weight: 600;
    }

    .detail-panel p {
      margin-bottom: 16px;
    }

    .detail-panel img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 16px 0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .detail-panel ul,
    .detail-panel ol {
      padding-left: 24px;
      margin-bottom: 16px;
    }

    .detail-panel li {
      margin-bottom: 8px;
    }

    .detail-panel .figure-block {
      max-width: 720px;
      margin: 24px auto;
      text-align: left;
    }

    .detail-panel .figure-block img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      display: block;
      background: #f7fafc;
      padding: 12px;
      border: 1px solid #e2e8f0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
      margin-bottom: 16px;
    }

    .detail-panel .figure-block p {
      margin: 0;
      font-size: 13px;
      color: #718096;
      line-height: 1.6;
      font-style: italic;
    }
    
    .detail-panel .goto-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
      height: 40px;
      background-color: #1a365d;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      transition: background-color 0.2s;
    }
    
    .detail-panel .goto-button:hover {
      background-color: #2c5282;
    }

    @media (max-width: 768px) {

      .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
        position: relative;
      }

      .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background-color: #2d3748;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 8px;
        border-radius: 6px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
      }

      .nav-links li:hover .dropdown,
      .nav-links li:focus-within .dropdown {
        max-height: 300px;
        padding: 8px 0;
      }

      .dropdown a {
        padding: 10px 0;
        text-align: center;
        font-size: 15px;
        color: #cbd5e0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        transition: background-color 0.2s;
      }

      .dropdown a:hover {
        background-color: #4a5568;
        color: white;
      }

      .intro-cards {
        flex-direction: column;
        gap: 12px;
        background-color: transparent;
      }

      .card {
        height: auto;
        min-height: 48px;
        padding: 10px 16px;
        border-radius: 10px;
        flex-direction: row;
        justify-content: space-between;
      }

      .card h3 {
        font-size: 15px;
        padding: 0;
      }

      .card .card-sub {
        display: none;
      }

      .detail-panel {
        padding: 20px 18px;
      }

      .detail-panel .goto-button {
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        background-color: #1a365d;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: bold;
        transition: background-color 0.2s;
      }

      .hero-title {
        font-size: 18px;
      }

      .search-examples {
        font-size: 9px;
      }

      .hero-slogan {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
        padding: 0 12px;
      }

      .search-box {
        width: 95%; 
        max-width: 95%;
        flex-wrap: nowrap; 
        height: 40px; 
      }
      
      .search-type-select {
        width: auto;
        min-width: 70px;
        max-width: 25%;
        border-right: 1px solid #cbd5e0;
        border-radius: 4px 0 0 4px;
        height: 40px;
        font-size: 13px; 
        padding: 0 10px;
        flex-shrink: 0; 
      }
      
      .search-box input {
        flex: 1;
        min-width: 0; 
        border-right: 1px solid #cbd5e0;
        height: 40px;
        border-radius: 0;
        font-size: 13px;
        padding: 0 10px;
      }
      
      .search-box button {
        width: auto;
        min-width: 60px;
        height: 40px;
        border-radius: 0 4px 4px 0;
        margin-top: 0; 
        padding: 0 12px;
        font-size: 13px;
        flex-shrink: 0;
      }

      .detail-panel .figure-block {
        max-width: 100%;
        padding: 0 10px;
      }

    }
  
  
