.logo img {
    width: 150px;
    height: 90px;
}

/* Header樣式由主style.css控制，這裡只定義頁面特定樣式 */
.header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 12px; /* 數值越大線條越往上 */
    left: 30px; /* 對齊Logo左側，跟header的padding-left一樣 */
    right: 30px; /* 對齊Contact us右側，跟header的padding-right一樣 */
    height: 1px;
    background-color: black;
}

.header_list {
    position: absolute; /* 讓選單獨立置中 */
    left: 50%;
    transform: translateX(-50%);
}

.header_list a {
    color: black;
}

.header_list a:hover {
    color: rgb(49, 110, 253);
}

.contact-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(49, 110, 253);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    width: 120px;
    height: 40px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.contact-btn a:hover {
    background-color: rgb(30, 80, 200); /* hover時顏色加深 */
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    box-sizing: border-box;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: rgb(0, 0, 70);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.hero-text p {
    font-size: 18px;
    color: rgb(100, 100, 100);
    line-height: 1.6;
    margin: 0;
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.article-content {
    max-width: 100%;
    width: 100%;
    margin: 10px auto 80px auto;
    padding: 0 80px;
    box-sizing: border-box;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: rgb(0, 0, 50); /* 深色標題 */
    margin: 40px 0 16px 0;
    line-height: 1.3;
}

.article-content p {
    font-size: 18px;
    color: rgb(80, 80, 80);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .logo img {
        width: 108px;
        height: auto;
    }

    .header {
        padding: 14px 20px;
        background-color: white;
        align-items: center;
        position: relative;
    }

    .header::after {
        left: 20px;
        right: 20px;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.14);
    }

    .header_list {
        position: static;
        transform: none;
    }

    .hamburger {
        display: flex !important;
    }

    .hamburger span {
        background-color: rgb(20, 28, 58);
    }

    .contact-btn {
        display: block;
    }

    .contact-btn a {
        width: 96px;
        height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 44px 20px 28px;
        gap: 28px;
    }

    .hero-text {
        max-width: 100%;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 34px;
        line-height: 1.05;
        margin: 0;
        color: rgb(10, 13, 49);
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        height: 260px;
        border-radius: 0;
        object-fit: cover;
        display: block;
    }

    .article-content {
        margin: 0 auto 64px;
        padding: 0 20px;
    }

    .article-content p {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 22px;
        color: rgba(0, 0, 0, 0.68);
    }

    .article-content h2 {
        font-size: 25px;
        line-height: 1.25;
        margin: 42px 0 16px;
        color: rgb(10, 13, 49);
    }
}

@media (max-width: 390px) {
    .header {
        padding: 12px 16px;
    }

    .header::after {
        left: 16px;
        right: 16px;
    }

    .hero-section {
        padding: 38px 16px 24px;
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 30px;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-image img {
        height: 230px;
    }

    .article-content {
        padding: 0 16px;
    }

    .article-content h2 {
        font-size: 23px;
    }
}
