:root {
    --hero: #1e2229;
    --hero-content: white;
    /* url('your-image.jpg') center/cover; */

}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 基礎設定 */
.hero {
    display: flex;
    width: 100%;
    min-height: 10vh;
    height: 15vh;
    padding: 0 15%;
    background: linear-gradient(var(--companyLogo), var(--Highlights), var(--companyLogo));
    background-size: cover;
    background-position: center;
    align-items: center;
    color: aliceblue;
}


.hero-content {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-align: center;
}

.hero-content h3 {
    font-size: 2rem;
    color: var(--font-color);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

.main-content {
    text-align: center;
    margin: 40px 0;
}

.main-content h2 {
    font-size: 2rem;
    /* font-weight: lighter; */
}

.split-section {
    flex-direction: row;
    display: flex;
    height: 60vh;
    padding: 0 10%;
}

.image-box {
    display: flex;
    flex: 0 0 50%;
    padding: 60px;
}

.text-box {
    display: flex;
    flex: 1;
    max-width: 58%;
    flex-wrap: wrap;
    padding: 60px;
    align-items: center;
    font-weight: 200px;
    font-size: 1.2rem;
}


.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-single {
    text-align: center;
}

.image-single img {
    width: 100%;
}

.philosophy-container {
    display: flex;
    align-items: center;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: clamp(0px, 2rem, 40px);
    flex-direction: column;
    font-size: 1.125rem;
}

.philosophy-inner-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

/* 圓形區塊樣式 */
.circle-box {
    width: 500px;
    height: 250px;
    background-color: var(--bg-light);
    color: var(--text-coler);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(0px, 2rem, 40px);
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease-in;
}

/* 互動效果：滑鼠懸停放大 */
.circle-box:hover {
    transform: scale(1.15);
}

.word-box {
    width: 600px;
    height: 300px;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding: clamp(0px, 2rem, 40px);
    box-sizing: border-box;
    border-radius: 4px;
    background-color: var(--text-muted);
    color: var(--text-color);

    transition: transform 0.3s ease-in;
}

.word-box:hover {
    transform: scale(1.15);
}

.word-box h3 {
    font-size: 1.4rem;
    text-align: center;
    justify-content: center;
}

.word-box p {
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
}

/* 專利證書桌機燈罩系設置 */
.lightbox {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    margin: clamp(20px, 1vw, 30px);
    max-height: 95%;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 2vw, 36px);
}

.lightbox img {
    max-width: 90%;
    max-height: 95%;
    border: 3px solid white;
}

/* 專利證書圖片文字整理 */
#scroll-name-table {
    font-weight: bold;

    align-items: center;
    text-align: center;
}

.scroll-content-table {
    align-items: center;
    text-align: center;
}

.scroll-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0 10%;
    margin-bottom: 80px;
}

.scroll-container img {
    flex: none;
    width: 12vw;
    height: auto;
    cursor: pointer;
}

.scroll-container img:hover {
    transform: scale(115%);
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        width: 100%;
    }

    .hero {
        height: 60vh;
        width: 100%;
    }

    .hero-content {
        font-size: 2rem;
        padding: 20px 0;
    }

    .main-content {
        padding: 40px 15%;
    }

    .circle-container {
        padding: 0px;
        flex-direction: column;
        align-items: center;
    }

    .circle-box {
        width: 300px;
        height: 300px;
        margin-bottom: 1rem;
        /* 增加區塊間的垂直間距 */
    }

    .philosophy-container {
        padding: 0;
    }

    .philosophy-inner-container {
        flex-direction: column;
    }

    .word-box {
        width: 300px;
        height: auto;
    }

    .split-section {
        height: fit-content;
        display: block;
    }

    .image-single,
    .image-box {
        display: block;
        padding: 5px;
        flex: auto;
        max-width: 100%;
        width: 100%;
    }

    .image-single img,
    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .text-box {
        padding: 10% 5%;
        max-width: 100%;
        width: 100%;
    }

    .main-content {
        margin: 0;
    }

    /* 專利證書滑動設置*/
    .scroll-title {
        height: 25vh;
    }

    main h2,
    #scroll-name-mobile,
    .scroll-content-mobile {
        font-size: 1rem;
        align-items: center;
        text-align: center;
    }

    .scroll-off {
        display: none;
    }

    .scroll-show {
        display: block;
    }

    .scroll-container-mobile {
        height: 60vh;
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .scroll-item {
        padding: clamp(1px, 1vw, 10px);
        flex: 0 0 auto;
        width: 80%;
        height: auto;
        border-radius: 8px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .table {
        display: none;
    }
}


@media (min-width: 768px) {
    .mobile {
        display: none;
    }
}

.full-team-container {
    height: 450px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    flex-direction: column;
    gap: 8px;
}

.full-team-member {
    background: rgba(231, 231, 231, 0.9);
    border-radius: 2px;
    border: 3px solid rgba(129, 129, 129, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-member-photo {
    flex: 0 0 35%;
    max-width: 280px;
    height: 100%;
    padding: 16px;
    overflow: hidden;
}

.full-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.full-member-experience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* 主容器 */
.team-container {
    max-width: 1280px;
    min-height: 450px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-direction: column;
    gap: 8px;
}

.team-member {
    height: 55vh;
    background: rgba(231, 231, 231, 0.9);
    border-radius: 2px;
    border: 3px solid rgba(129, 129, 129, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    border: 3px solid rgb(201, 201, 201);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 左側照片區塊 */
.member-photo {
    flex: 0 0 50%;
    padding: 16px;
    max-width: 260px;
    height: 100%;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 右側文字內容區塊 */
.member-info {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.member-header {
    display: flex;
    flex-direction: row;
    gap: 8px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 8px;
    margin-bottom: 12px;
    align-items: flex-end;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    gap: 12px;
    line-height: 1;
}

.member-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #3498db;
    display: flex;
    line-height: 1;
}

.member-experience h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #95a5a6;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.member-experience ul {
    list-style: none;
    padding: 0;
}

.member-experience li {
    font-size: 0.8rem;
    color: #555;
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-experience li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================
   RWD 手機端適應 (Mobile Optimization)
   ========================================== */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .hero {
        height: max-content;
    }

    .hero-content h3 {
        font-size: 2rem;
    }

    .team-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 24px
    }

    .full-team-container {
        height: auto;
    }

    .full-team-member {
        flex-direction: column;
        height: auto;
        min-height: 30vh;
        flex-direction: column;
    }

    .full-member-experience {
        grid-template-columns: repeat(1, 1fr);
    }

    .full-member-photo {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 280px;
    }

    .team-member {
        height: auto;
        min-height: 30vh;
        flex-direction: column;
    }

    .member-photo {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 280px;
    }

    .member-info {
        padding: 20px;
    }

    .member-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .member-experience li {
        white-space: normal;
    }
}

.timeline-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
}

.patents-section {
    align-items: center;
    width: 100%;
}

.timeline-container {
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    padding: 20px 0;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 30px;
    right: 30px;
    height: 3px;
    background-color: #d0d7de;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 70px;
}


.timeline-badge {
    width: 54px;
    height: 54px;
    background-color: var(--companyLogo);
    color: var(--font-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(43, 107, 243, 0.3);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.timeline-badge:hover {
    background-color: #ffffff;
    color: var(--text-muted)

}

.timeline-card {
    height:36vh;
    max-height: 40vh;
    width: 100%;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    visibility: hidden;
    transition: 0.5 ease;
}

.timeline-card.show {
    visibility: visible;
    animation: show 0.5s ease;
}

@keyframes show {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.timeline-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 1.2rem;
    color: var(--text-coler);
}
.hidden{
    display: none;
}
@media (max-width: 768px) {
    .timeline{
        display: none;
    }
    .hidden{
        display: inline;
    }
    .timeline-card{
        gap:8px;
        visibility: visible;
        height: 36vh;
        display: flex;
        flex-direction: column-reverse;
    }
}