body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;

}

.header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header small {
    color: #999595;
    /* 顏色比 h1 淡 */
    font-size: 0.6em;
    /* 字形小一點 */
}

.breadcrumb {
    list-style: none;
    background-color: #e4e0e0;
    padding: 8px 15px;
    margin: 0;
    border-radius: 4px;
}

.breadcrumb>li {
    display: inline;
    font-size: 14px;
}

.breadcrumb>li+li:before {
    content: "/";
    padding: 0 5px;
}

.breadcrumb .active {
    font-weight: bold;
}

.fill {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}


a {
    text-decoration: none;
    color: inherit;
}

.header h1 {
    margin: 0;
    padding-left: 20px;
}

.header nav {
    margin-right: 20px;
}

/* 設置導航為 Flexbox 佈局 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}


.nav-links,
.dropdown-content {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #45a049;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* 新增 Flexbox 佈局 */
.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* 使項目在空間不足時換行 */
    gap: 20px;
    /* 項目之間的間距 */
}

.page-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.panel {
    flex: 1;
    /* 使每個面板具有相同的彈性 */
    max-width: 30%;
    /* 設置最大寬度 */
    box-sizing: border-box;
    /* 確保內邊距和邊框不會影響寬度 */
}

.panel img {
    width: 100%;
    /* 使圖片寬度自適應面板 */
    height: auto;
    /* 高度自動調整 */
}


.section {
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #333;
}

.contact {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

.contact p {
    margin: 0;
}

.contact a {
    color: #4CAF50;
    text-decoration: none;
}

.locations ul {
    list-style: none;
    padding: 0;
}

.locations li {
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 10px 0;
    background-color: #4CAF50;
    color: white;
    margin-top: 20px;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}

.footer-contact .contact-info,
.footer-contact .map {
    width: 48%;
}

.footer-contact h2 {
    margin-bottom: 10px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 5px;
}

.map iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Images Container */
.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
}

/* Carousel Images */
.carousel-images img {
    width: 100%;
    height: auto;
}

/* Navigation Buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}


.tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #ccc;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #f1f1f1;
}

.tab.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Panel Styles */
.panel-container {
    display: flex;
    justify-content: center;
}
.panel {
    width: 120%; /* 使.panel宽度更大 */
    max-width: 500px; /* 最大宽度限制 */
}

.panel-heading {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.panel-body {
    padding: 15px;
    text-align: center;
    overflow-wrap: break-word; /* 自动换行长单词 */
    word-wrap: break-word; /* 兼容性处理 */
}

.panel img {
    width: 130px;
    height: 130px;
    display: block;
    margin: 0 auto;
}

.panel h4 {
    margin: 10px 0;
}

.panel p {
    color: #666;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Responsive Layout for Panels */
.services-row {
    display: flex;
    flex-wrap: wrap;
}

.brand-list {
    display: flex;
    flex-wrap: wrap; /* 讓超過容器寬度的品牌換行 */
    gap: 20px;       /* 品牌間距 */
}

.brand-list div {
    min-width: 150px; /* 每個品牌最小寬度 */
}



.col-md-3,
.col-sm-6 {
    flex: 1;
    max-width: 75%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .col-md-3 {
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        max-width: 100%;
    }
}