/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}
.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden; /* Clear floats */
}
h1, h2, h3 {
    color: #446;
}
h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
h2 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
}
h3{
   font-size: 1.5em;
   margin-bottom: 0.5em;
}

/* Top Banner */
.banner {
    background-color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
    position: relative; /* For positioning the slider controls */
}
.banner img {
    max-width: 100%;
    height: auto;
}

/* Image Slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-image {
  width: 100%;
  height: auto;
  display: none; /* Hide all images by default */
    animation: fadeInOut 3s infinite; /* 添加淡入淡出动画 */

}

.slider-image.active {
  display: block; /* Show the active image */
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.slider-controls button:hover {
  opacity: 1;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1;}
    100% {opacity: 0;}
}

/* Overview and Highlights */
.overview {
    display: flex;
    align-items: center;
    margin: 40px 0;
}
.overview-image {
    flex: 1;
    padding-right: 20px;
    text-align: center; /* Center the image */
}
.overview-image img {
    max-width: 100%;
    height: auto;
}
.overview-text {
    flex: 1;
}
.overview-text ul {
    list-style: none;
    padding: 0;
}
.overview-text li {
    margin-bottom: 10px;
}
.overview-text li i {
    margin-right: 5px;
    color: #4CAF50;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f4f4f4;
}
.optional-row th {
    text-align: center;
    font-weight: bold;
}
.table-note {
    font-size: smaller;
    color: #888;
}

/* Application Scenarios */
.applications {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.application-card {
    width: 48%; /* Two cards per row with a little spacing */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    box-sizing: border-box;
}
.application-card i {
    margin-right: 5px;
    color: #2196F3;
}

/* Optional Components */
.optional-components {
    overflow-x: auto; /* Horizontal scrolling */
    white-space: nowrap;
    padding: 20px 0;
}
.component-card {
    display: inline-block;
    width: 200px;
    margin-right: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
    text-align: center; /* Center content within the card */
}

.component-card p {
    /* ... other styles ... */
    white-space: normal; /* Override nowrap from parent */
}
.component-card img {
    max-width: 100%;
    height: auto;
}


/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f4;
}
.footer a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Basic Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .overview {
        flex-direction: column; /* Stack vertically on smaller screens */
    }
    .overview-image, .overview-text {
        width: 100%;
        padding-right: 0;
    }
    .application-card {
        width: 100%; /* Full width on smaller screens */
    }
}