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

/* Header樣式由主style.css控制，這裡只定義頁面特定樣式 */
.header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 12px;
    left: 30px;
    right: 30px;
    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(40, 120, 247);
}

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

.contact-btn a:hover {
    background-color: rgb(36, 38, 39);
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px 24px 40px;
    box-sizing: border-box;
    text-align: center;
}

.about-hero-text {
    max-width: 800px;
}

.about-hero-text span,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background-color: rgb(245, 245, 245);
    color: rgb(95, 101, 103);
    border-radius: 4px;
    padding: 7px 9px 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
}

.about-hero-text h1 {
    font-size: 60px;
    font-weight: 600;
    color: rgb(10, 13, 49);
    margin: 0 0 20px;
    line-height: 1;
}

.about-hero-text p {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.timeline {
    position: relative;
    max-width: 980px;
    margin: 30px auto 100px;
    padding: 0;
    box-sizing: border-box;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgb(40, 120, 247);
    border-radius: 50%;
    background-color: white;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-left {
    flex: 1;
    text-align: right;
    padding: 8% 12% 8% 0;
    box-sizing: border-box;
}

.timeline-right {
    flex: 1;
    text-align: left;
    padding: 8% 0 8% 12%;
    box-sizing: border-box;
}

.timeline-center {
    display: none;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgb(40, 120, 247);
    background-color: white;
    box-sizing: border-box;
}

.timeline-tracker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid rgb(40, 120, 247);
    z-index: 3;
    pointer-events: none;
    display: none;
    transition: top 0.12s ease;
}

.timeline-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1.32 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.timeline-item h2 {
    font-size: 32px;
    font-weight: 600;
    color: rgb(10, 13, 49);
    margin: 0 0 20px;
    max-width: 100%;
    line-height: 1.2;
    white-space: nowrap;
}

.timeline-item p {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
}

.timeline-item.reverse .timeline-left {
    text-align: left;
}

.why-section {
    max-width: 980px;
    margin: 60px auto 90px;
    padding: 0 24px;
    box-sizing: border-box;
}

.why-section p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 20px;
    line-height: 1.55;
    margin: 0 0 22px;
}

.values-intro {
    position: relative;
    overflow: hidden;
    width: calc(100% - 60px);
    margin: 0 auto;
    padding: 25px;
    min-height: 360px;
    box-sizing: border-box;
    border-radius: 4px 4px 0 0;
    background-color: rgb(36, 38, 39);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.values-intro::after {
    content: '';
    position: absolute;
    right: 8%;
    bottom: 0;
    width: 260px;
    height: 230px;
    background-image: url("../images/Combined-Shape.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-90deg);
    transform-origin: center;
    pointer-events: none;
}

.values-intro .section-label {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(222, 224, 255);
}

.values-intro h2 {
    position: relative;
    z-index: 1;
    color: rgb(222, 224, 255);
    font-size: 48px;
    line-height: 1.2;
    max-width: 820px;
    margin: 0;
}

.values-grid {
    width: calc(100% - 60px);
    margin: 0 auto;
    padding: 100px 30px 70px;
    background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(246, 247, 255) 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    box-sizing: border-box;
}

.value-item {
    max-width: 260px;
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.values-grid.is-visible .value-item {
    opacity: 1;
    transform: translateY(0);
}

.values-grid.is-visible .value-item:nth-child(2) {
    transition-delay: 0.12s;
}

.values-grid.is-visible .value-item:nth-child(3) {
    transition-delay: 0.24s;
}

.values-grid.is-visible .value-item:nth-child(4) {
    transition-delay: 0.36s;
}

.value-item h3 {
    color: rgb(10, 13, 49);
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 20px;
}

.value-item p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.55;
    margin: 0;
}

.better-section {
    width: calc(100% - 60px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: linear-gradient(180deg, rgb(246, 247, 255) 0%, rgb(244, 244, 255) 100%);
}

.better-content {
    padding: 70px 55px 70px 30px;
    box-sizing: border-box;
    align-self: center;
}

.better-content h2 {
    color: rgb(10, 13, 49);
    font-size: 48px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.better-content p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.55;
    margin: 0 0 26px;
}

.better-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    background-color: rgb(1, 14, 208);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.better-content a:hover {
    background-color: rgb(36, 38, 39);
}

.better-image {
    min-height: 340px;
    margin-right: 30px;
    background-image: url("../images/bh-about4.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px 0 0 4px;
}

@media (max-width: 1024px) {
    .about-hero-text h1 {
        font-size: 35px;
    }

    .timeline {
        margin-bottom: 60px;
    }

    .timeline-left {
        padding: 8% 8% 8% 0;
    }

    .timeline-right {
        padding: 8% 0 8% 8%;
    }

    .timeline-item h2 {
        font-size: 26px;
    }

    .timeline-item p {
        font-size: 16px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 60px;
    }

    .better-content h2,
    .values-intro h2 {
        font-size: 30px;
    }
}

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

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

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

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

    .header_list {
        display: flex;
        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 {
        padding: 58px 20px 38px;
        justify-content: flex-start;
        text-align: left;
    }

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

    .about-hero-text h1 {
        font-size: 38px;
        line-height: 1;
        margin-bottom: 18px;
    }

    .about-hero-text p {
        font-size: 17px;
        line-height: 1.5;
    }

    .timeline {
        max-width: none;
        margin: 0 20px 54px;
        padding-left: 24px;
    }

    .timeline::before {
        left: 0;
        width: 1px;
        background-color: rgba(0, 0, 0, 0.18);
    }

    .timeline-tracker {
        left: 0;
        width: 26px;
        height: 26px;
        background-color: transparent;
        border: 2px solid rgb(40, 120, 247);
        z-index: 4;
    }

    .timeline-item,
    .timeline-item.reverse {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
        margin-bottom: 48px;
        position: relative;
    }

    .timeline-item::after {
        left: -24px;
        top: calc((100vw - 40px - 24px) / 1.18 + 24px);
        width: 14px;
        height: 14px;
        background-color: white;
        border: 2px solid rgb(40, 120, 247);
        transform: translate(-50%, 6px);
        z-index: 3;
    }

    .timeline-left,
    .timeline-right {
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .timeline-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.18 / 1;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 24px;
    }

    .timeline-item h2 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .timeline-item h2 {
        white-space: normal;
    }

    .timeline-item p {
        font-size: 16px;
        line-height: 1.7;
    }

    .timeline-item.reverse .timeline-left {
        order: 2;
    }

    .timeline-item.reverse .timeline-right {
        order: 1;
    }

    .why-section {
        margin: 52px auto;
        padding: 0 20px;
    }

    .why-section p {
        font-size: 16px;
        line-height: 1.75;
    }

    .values-intro {
        width: auto;
        margin: 0 20px;
        min-height: 330px;
        padding: 20px;
    }

    .values-intro::after {
        right: -20px;
        bottom: -10px;
        width: 170px;
        height: 150px;
    }

    .values-intro h2 {
        font-size: 30px;
        line-height: 1.25;
        max-width: 100%;
    }

    .values-grid {
        width: auto;
        margin: 0;
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 54px 20px 50px;
    }

    .value-item {
        max-width: none;
    }

    .value-item h3 {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .value-item p {
        font-size: 15px;
        line-height: 1.65;
    }

    .better-section {
        width: auto;
        margin: 0;
        grid-template-columns: 1fr;
    }

    .better-content {
        padding: 48px 20px 32px;
    }

    .better-content h2 {
        font-size: 32px;
        line-height: 1.15;
    }

    .better-image {
        width: calc(100% - 40px);
        margin: 0 20px 40px;
        min-height: 280px;
        border-radius: 4px;
    }
}

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

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

    .contact-btn a {
        width: 88px;
        height: 34px;
        font-size: 11px;
    }

    .hero-section {
        padding: 48px 16px 34px;
    }

    .about-hero-text h1 {
        font-size: 34px;
    }

    .timeline {
        margin: 0 16px 48px;
        padding-left: 22px;
    }

    .timeline-item::after {
        left: -22px;
        top: calc((100vw - 32px - 22px) / 1.18 + 24px);
    }

    .timeline-item h2 {
        font-size: 25px;
    }

    .values-intro {
        margin: 0 16px;
        min-height: 300px;
    }

    .values-intro h2 {
        font-size: 27px;
    }

    .values-grid,
    .why-section,
    .better-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .better-image {
        width: calc(100% - 32px);
        margin: 0 16px 36px;
    }
}
