/* 全局樣式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", "SimHei", "黑體", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 頂部導航欄 */
.top-bar {
    font-size: 0.9rem;
}

/* 主導航欄 */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    padding: 1rem 0.75rem !important;
    font-weight: 500;
    color: var(--dark-color) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 輪播圖 Banner */
.carousel-item {
    height: 400px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 產品頁面橫幅 */
.product-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.banner-overlay h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-overlay .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.banner-overlay .breadcrumb-item,
.banner-overlay .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.banner-overlay .breadcrumb-item.active {
    color: #fff;
}

.banner-overlay .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* 產品類別 */
.section-title h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* 服務項目 */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* 客戶評價 */
.testimonial-item {
    padding: 2rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.rating {
    font-size: 1.2rem;
}

/* 客戶 Logo */
.client-logo img {
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 聯絡表單 */
.contact-form-wrapper {
    border-radius: 0.5rem;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--secondary-color);
}

/* 頁腳 */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

footer ul li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    z-index: 99;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    color: #fff;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 180px;
    }
} 