﻿header {
    background-image: url(/images/index/main.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 80vh;
}

@media(max-width:767px) {
    header {
        background-image: url('/images/index/main-mobile.png');
    }
}

.control-group .input-group-text {
    font-size: 1.2rem;
    font-weight: 700;
    background-color: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

    .control-group .input-group-text.title {
        min-width: 120px;
    }

.control-group .form-control {
    border-top: none;
    border-left: none;
    border-right: none;
}

.control-group input[type=radio] {
    zoom: 1.3;
    margin-right: 3px;
}

select {
    padding: .5rem 1rem;
    background-color: var(--i-light-blue) !important;
    color: var(--i-dark-blue) !important;
}

.news-bar {
    background-color: var(--i-dark-blue);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-content {
    min-height: 100px;
}

.news-button {
    background-color: white;
    padding: .5rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
}

.news-block {
    background-color: var(--i-light-blue);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

    .news-block .news-item {
        background-color: white;
        border-radius: 10px;
        padding: 1rem;
        height: 100%;
    }

        .news-block .news-item p.content {
            display: -webkit-box;
            -webkit-line-clamp: 2; /* ✅ 限制顯示 2 行（約 20 個中文字） */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .news-block .news-category {
        background-color: var(--i-tech-blue);
        border-radius: 10px;
        color: white;
        padding: 2px 5px;
    }

.about-block {
    padding: 2rem;
}

.about-img {
    background-image: url(/images/index/introduction.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 300px;
}

.about-message {
    background-color: var(--i-light-blue);
}

.contact-block textarea {
    border-bottom: 1px solid #ced4da;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
}

.contact-block .contact-button {
    background-image: url(/images/index/submit_blue.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 70px;
    width: 300px;
    border: none;
    background-color: transparent;
}
