/* ============================================================
   全域設定
   ============================================================ */
html, body { overflow-x: hidden; }

body { 
    background: #f0f2f7;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

div, a, p { color: #666666; }
p, address { line-height: 1.8; }

a {
    transition: all 0.3s ease;
}

a:hover {
    color: #006699;
    text-decoration: none;
}

.container-fluid { margin-left: 0; }

/* ============================================================
   按鈕
   ============================================================ */
.btn-primary {
    padding: 12px 50px;
    border-radius: 0;
    background: #006699;
    font-size: 1.2rem;
    border: 0;
}

.btn-primary:hover { background: #068ccf; }

/* ============================================================
   文字工具
   ============================================================ */
.tm-text-primary { color: #006699; }
.tm-text-secondary { color: #009999; }

hr { border-top: 4px solid #CCC; }

.tm-hr-short {
    border-top: 1px solid #006699;
    width: 238px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Layout - 主要結構
   ============================================================ */
.tm-main { width: 100%; }

.tm-row-home { 
    padding-left: 15px;
    padding-right: 15px;
}

.tm-mt-100 { margin-top: 100px; }

/* ============================================================
   側邊欄
   ============================================================ */
.tm-sidebar {
    background-color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding-left: 40px;
    padding-top: 40px;
    width: 280px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tm-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.tm-sidebar-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tm-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.navbar-toggler { display: none; }

/* ============================================================
   品牌 Logo 區塊
   ============================================================ */
.tm-brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    margin: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    background: #006699;
    gap: 4px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tm-brand-box .brand-img {
    display: block;
    width: 90%;
    height: 45%;
    max-height: 45%;
    object-fit: contain;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tm-brand-box .brand-img:first-child {
    margin-top: 2px;
}

.tm-brand-box .brand-img:last-child {
    margin-bottom: 2px;
}

.tm-brand-box .brand-img:hover {
    transform: scale(1.05);
}

.tm-brand-box .brand-divider {
    width: 50%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    flex-shrink: 0;
}

.tm-brand-text {
    display: none !important;
}

/* ============================================================
   導航選單
   ============================================================ */
#tm-main-nav {
    padding: 0;
    margin: 0;
}

.nav-item {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.nav-link {
    position: relative;
    color: #006699;
    font-size: 1.4rem;
    padding-top: 15px;
    padding-bottom: 15px;
}

.triangle-right {
    position: absolute;
    top: 9px;
    left: -40px;
    width: 0;
    height: 0;
    border-top: 21px solid transparent;
    border-left: 20px solid #006699;
    border-bottom: 21px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-link,
.nav-link.current {
    background-color: #F2F2F2;
    color: #006699;
    padding-left: 30px;
}

.nav-item:hover > .nav-link > .triangle-right,
.nav-link.current > .triangle-right {
    opacity: 1;
}

.nav-icon {
    width: 40px;
    margin-right: 20px;
}

/* ============================================================
   側邊選單 - 摺疊功能
   ============================================================ */
.nav-group {
    position: relative;
}

.nav-group .nav-link {
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 20px;
}

.nav-group .nav-link .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-group .nav-link .arrow.open {
    transform: rotate(180deg);
}

.nav-submenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.nav-submenu.open {
    max-height: 300px;
    opacity: 1;
    padding-left: 10px;
}

.nav-submenu .sub-item {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-submenu .sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 28px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    margin: 2px 0;
}

.nav-submenu .sub-link::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #475569;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-submenu .sub-link:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.nav-submenu .sub-link:hover::before {
    background: #667eea;
}

.nav-submenu .sub-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.nav-submenu .sub-link.active::before {
    background: #667eea;
}

.nav-submenu .sub-link .sub-icon {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s;
}

.nav-submenu .sub-link:hover .sub-icon {
    color: #94a3b8;
}

.nav-submenu .sub-link.active .sub-icon {
    color: #667eea;
}

.nav-group:hover > .nav-link {
    color: #e2e8f0;
}

/* ============================================================
   每個區塊固定高度 (桌面版)
   ============================================================ */
.tm-section-wrap {
    width: calc(100% - 750px);
    margin-left: 750px;
    margin-right: 0;
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tm-section-wrap .tm-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 10px 10px 10px;
}

.tm-section-wrap .tm-section::-webkit-scrollbar {
    width: 4px;
}

.tm-section-wrap .tm-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tm-section-wrap .tm-section::-webkit-scrollbar-track {
    background: transparent;
}

#gallery,
#about,
#contact {
    padding-bottom: 0;
}

.tm-parallax {
    width: 400px;
    min-height: 100%;
    height: auto;
    background: transparent;
    position: absolute;
    width: 400px;
    left: -470px;
    top: 0;
}

/* ============================================================
   Home Section
   ============================================================ */
#home {
    min-height: 100vh;
}

.tm-col-home-l {
    width: calc(100% - 300px);
}

.tm-img-home-container {
    width: 100%;
    height: 65%;
    background: url(../img/img-about-01.jpg) no-repeat center;
    background-size: cover;
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 1600px) {
    .tm-col-home-l {
        width: calc(100% - 250px);
    }

    .tm-img-home-container {
        width: 200px;
        height: 400px;
    }
}

.tm-icon-container {
    border: 1px solid #CCC;
    width: 122px;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-text-container {
    max-width: 97%;
}

.tm-post-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.tm-post-link:hover {
    color: #068ccf;
}

/* ============================================================
   公司簡介 - 簡潔版
   ============================================================ */
#home .company-simple {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}

#home .company-simple .simple-image {
    flex: 0 0 38%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 102, 153, 0.08);
}

#home .company-simple .simple-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#home .company-simple .simple-image img:hover {
    transform: scale(1.02);
}

#home .company-simple .simple-text {
    flex: 1;
}

#home .company-simple .simple-text .simple-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a1e2f;
    margin-bottom: 10px;
}

#home .company-simple .simple-text .simple-title span {
    color: #006699;
}

#home .company-simple .simple-text p {
    color: #1f384e;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 12px;
}

#home .company-simple .simple-text p:last-child {
    margin-bottom: 0;
}

#home .company-simple .simple-text .simple-tag {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e8f0fe;
    color: #006699;
    margin-top: 4px;
}

/* ============================================================
   Gallery Section
   ============================================================ */
.tm-gallery {
    position: relative;
    margin: 0 -10px;
    list-style: none;
    text-align: center;
    overflow: hidden;
}

.tm-gallery-links {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-bottom: 0;
}

.tm-gallery-links li {
    list-style: none;
    margin-bottom: 30px;
    margin-right: 55px;
}

.tm-gallery-link {
    padding: 15px;
    color: #006699;
}

.tm-gallery-link.active {
    color: #666666;
}

.tm-gallery-link-icon {
    width: 25px;
}

.tm-paging {
    margin-top: 35px;
    overflow: auto;
    display: flex;
    justify-content: flex-end;
}

.tm-paging-link {
    display: flex;
    float: left;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: white;
    color: #999;
    margin-right: 15px;
    margin-bottom: 15px;
}

a.tm-paging-link.active,
a.tm-paging-link:hover {
    background: #006699;
    color: white;
}

@media (max-width: 1972px) { .tm-paging { max-width: 870px; } }
@media (max-width: 1660px) { .tm-paging { max-width: 580px; } }
@media (max-width: 1258px) { .tm-paging { max-width: 290px; } }
@media (max-width: 991px) { .tm-paging { max-width: 580px; } }
@media (max-width: 898px) { .tm-paging { max-width: 290px; } }
@media (max-width: 700px) { .tm-paging { max-width: 580px; } }

@media (max-width: 618px) {
    .tm-paging {
        max-width: 290px;
        flex-wrap: wrap;
    }
    .tm-paging-link { margin-right: 5px; }
}

.tm-gallery figure {
    position: relative;
    z-index: 50;
    float: left;
    overflow: hidden;
    margin: 1%;
    min-width: 270px;
    max-width: 270px;
    max-height: 180px;
    width: 48%;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
}

.tm-gallery figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.tm-gallery figure figcaption {
    padding: 1em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tm-gallery figure figcaption::before,
.tm-gallery figure figcaption::after {
    pointer-events: none;
}

.tm-gallery figure figcaption,
.tm-gallery figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tm-gallery figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.tm-gallery figure h2 {
    word-spacing: -0.15em;
    font-weight: 300;
}

.tm-gallery figure h2 span {
    font-weight: 800;
}

.tm-gallery figure h2,
.tm-gallery figure p {
    margin: 0;
}

.tm-gallery figure p {
    letter-spacing: 1px;
    font-size: 68.5%;
}

/* Gallery - Honey Effect */
figure.effect-honey {
    background: #4a3753;
}

figure.effect-honey img {
    opacity: 0.9;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect-honey:hover img {
    opacity: 0.5;
}

figure.effect-honey figcaption::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #006699;
    content: '';
    -webkit-transform: translate3d(0,10px,0);
    transform: translate3d(0,10px,0);
}

figure.effect-honey h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1.6rem;
    padding: 1em;
    width: 100%;
    text-align: left;
    -webkit-transform: translate3d(0,-30px,0);
    transform: translate3d(0,-30px,0);
}

figure.effect-honey h2 i {
    font-style: normal;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,-30px,0);
    transform: translate3d(0,-30px,0);
}

figure.effect-honey ul li a {
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,-30px,0);
    transform: translate3d(0,-30px,0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
}

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i,
figure.effect-honey:hover ul li a {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* ============================================================
   About Section
   ============================================================ */
.tm-row-about {
    padding-left: 15px;
    padding-right: 15px;
}

.tm-col-about-l {
    width: calc(100% - 500px);
}

.tm-col-about-r {
    width: 400px;
    margin-right: 0;
    margin-left: auto;
}

@media (max-width: 1660px) {
    .tm-col-about {
        width: 50%;
    }
    .tm-col-about-l {
        padding-right: 30px;
    }
}

@media (max-width: 1200px) {
    .tm-col-about {
        width: 100%;
    }
    .tm-col-about-l {
        padding-right: 0;
    }
}

.tm-social {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
}

.tm-social li {
    list-style: none;
}

.tm-social li a {
    font-size: 1.4rem;
    padding: 10px;
    color: white;
}

.fab {
    transition: all 0.3s ease;
}

.tm-social-link:hover .fa-instagram {
    color: #8134AF;
}
.tm-social-link:hover .fa-facebook {
    color: #3b5998;
}
.tm-social-link:hover .fa-twitter {
    color: #00acee;
}
.tm-social-link:hover .fa-youtube {
    color: #c4302b;
}

.slick-dots {
    position: static;
    margin-top: 50px;
}

.slick-dots li {
    width: 24px;
    margin-bottom: 10px;
}

.slick-dots li button {
    width: 24px;
}

.slick-dots li button:before {
    font-family: "Font Awesome 5 Free";
    font-size: 24px;
    font-weight: 900;
    content: "\f04d";
    color: #eee;
    opacity: 1;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
    color: #006699;
}

.tm-carousel {
    width: 100%;
    max-width: 1800px;
    margin-left: -15px;
    margin-right: -15px;
}

.tm-carousel-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 300px;
}

.tm-carousel figure {
    position: relative;
    float: left;
    overflow: hidden;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
    max-width: 270px;
}

.tm-carousel figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.tm-carousel figure figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tm-carousel figure figcaption::before,
.tm-carousel figure figcaption::after {
    pointer-events: none;
}

.tm-carousel figure figcaption,
.tm-carousel figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.tm-carousel figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.tm-about-title {
    font-size: 24px;
}
.tm-about-subtitle {
    font-size: 20px;
}

/* ============================================================
   Contact Section
   ============================================================ */
.tm-contact-col-l {
    padding-right: 25px;
}

.form-control {
    padding: 15px 20px 10px;
    width: 100%;
    height: auto;
}

.form-group {
    margin-bottom: 25px;
}

select.form-control {
    border-radius: 0;
}

select.form-control option {
    height: 30px;
}

select:not([multiple]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-image: url(../img/select-arrow.png);
    padding: 14px 20px;
    padding-right: 20px;
    color: #666;
}

.mapouter {
    position: relative;
    height: 360px;
    width: 100%;
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
    height: 360px;
    width: 100%;
}

.tm-contact-links {
    padding-left: 0;
    margin: 0;
}

.tm-contact-links li {
    list-style: none;
}

.tm-contact-social {
    padding: 0;
    margin: 0;
    display: flex;
}

.tm-contact-social li {
    list-style: none;
    margin-right: 5px;
}

.tm-contact-social li a {
    width: 40px;
    height: 40px;
    display: block;
}

.tm-copyright {
    padding: 10px 10px 10px 10px;
}

/* ============================================================
   文件發佈 - 現代卡片式列表
   ============================================================ */
#news {
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#news .tm-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 40px 20px 40px;
}

#news .tm-text-primary {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4px;
    padding-top: 6px;
}

#news hr {
    width: 80px;
    margin: 0 auto 16px auto;
    border-top: 3px solid #006699;
}

#news .news-modern {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#news .news-modern .news-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

#news .news-modern .news-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#news .news-modern .news-title-section .news-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a1e2f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#news .news-modern .news-title-section .news-main-title i {
    color: #006699;
}

#news .news-modern .news-title-section .news-main-title .title-highlight {
    color: #006699;
}

#news .news-modern .filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#news .news-modern .filter-group .filter-btn {
    padding: 4px 16px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    background: transparent;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#news .news-modern .filter-group .filter-btn:hover {
    border-color: #006699;
    color: #006699;
    background: rgba(0, 102, 153, 0.04);
}

#news .news-modern .filter-group .filter-btn.active {
    border-color: #006699;
    background: #006699;
    color: #fff;
}

#news .news-modern .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #006699;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 30px;
    background: #e8f0fe;
    white-space: nowrap;
}

#news .news-modern .more-link:hover {
    background: #d4e4f7;
    transform: translateX(3px);
}

/* 文章列表 - 現代卡片樣式 */
#news .news-modern .article-list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#news .news-modern .article-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 16px;
}

#news .news-modern .article-item-modern:hover {
    border-color: #006699;
    box-shadow: 0 4px 20px rgba(0, 102, 153, 0.06);
    transform: translateX(4px);
}

#news .news-modern .article-item-modern .article-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

#news .news-modern .article-item-modern .article-category-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
    text-align: center;
    min-width: 48px;
}

#news .news-modern .article-item-modern .category-news {
    background: #dbeafe;
    color: #1d4ed8;
}

#news .news-modern .article-item-modern .category-announcement {
    background: #fef3c7;
    color: #92400e;
}

#news .news-modern .article-item-modern .category-general {
    background: #e2e8f0;
    color: #475569;
}

#news .news-modern .article-item-modern .article-title-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news .news-modern .article-item-modern .article-title-link:hover {
    color: #006699;
}

#news .news-modern .article-item-modern .article-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

#news .news-modern .article-item-modern .article-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

#news .news-modern .article-item-modern .article-date i {
    margin-right: 4px;
}

#news .news-modern .article-item-modern .attachment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 30px;
    white-space: nowrap;
}

#news .news-modern .article-item-modern .attachment-indicator i {
    font-size: 0.55rem;
}

#news .news-modern .article-item-modern .article-arrow {
    color: #cbd5e1;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

#news .news-modern .article-item-modern:hover .article-arrow {
    color: #006699;
    transform: translateX(3px);
}

/* 載入中 & 空狀態 */
#news .news-modern .loading-spinner-modern {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}

#news .news-modern .loading-spinner-modern i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

#news .news-modern .empty-message-modern {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}

#news .news-modern .empty-message-modern i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

/* ============================================================
   活動版塊 - 幻燈片 + 列表
   ============================================================ */
#activities {
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#activities .tm-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 40px 20px 40px;
}

#activities .tm-text-primary {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4px;
    padding-top: 6px;
}

#activities hr {
    width: 80px;
    margin: 0 auto 16px auto;
    border-top: 3px solid #006699;
}

#activities .activities-modern {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#activities .activities-modern .activities-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

#activities .activities-modern .activities-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#activities .activities-modern .activities-title-section .activities-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a1e2f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#activities .activities-modern .activities-title-section .activities-main-title i {
    color: #006699;
}

#activities .activities-modern .activities-title-section .activities-main-title .title-highlight {
    color: #006699;
}

#activities .activities-modern .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c7a5e;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 30px;
    background: #e8f0fe;
    white-space: nowrap;
}

#activities .activities-modern .more-link:hover {
    background: #d4e4f7;
    transform: translateX(3px);
}

/* 幻燈片區域 */
#activities .activities-slider {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#activities .activities-slider .slick-slide {
    position: relative;
}

#activities .activities-slider .slick-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

#activities .activities-slider .slick-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

#activities .activities-slider .slick-slide .slide-caption h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

#activities .activities-slider .slick-slide .slide-caption p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

#activities .activities-slider .slick-dots {
    bottom: 12px;
}

#activities .activities-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#activities .activities-slider .slick-dots li.slick-active button {
    background: #006699;
    border-color: #006699;
}

/* 活動卡片列表 */
#activities .activities-modern .activities-list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#activities .activities-modern .activity-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 16px;
}

#activities .activities-modern .activity-item-modern:hover {
    border-color: #006699;
    box-shadow: 0 4px 20px rgba(0, 102, 153, 0.06);
    transform: translateX(4px);
}

#activities .activities-modern .activity-item-modern .activity-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

#activities .activities-modern .activity-item-modern .activity-status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
    text-align: center;
    min-width: 48px;
}

#activities .activities-modern .activity-item-modern .status-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

#activities .activities-modern .activity-item-modern .status-ongoing {
    background: #fef3c7;
    color: #92400e;
}

#activities .activities-modern .activity-item-modern .status-completed {
    background: #d1fae5;
    color: #065f46;
}

#activities .activities-modern .activity-item-modern .activity-title-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#activities .activities-modern .activity-item-modern .activity-title-link:hover {
    color: #006699;
}

#activities .activities-modern .activity-item-modern .activity-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

#activities .activities-modern .activity-item-modern .activity-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

#activities .activities-modern .activity-item-modern .activity-date i {
    margin-right: 4px;
}

#activities .activities-modern .activity-item-modern .activity-arrow {
    color: #cbd5e1;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

#activities .activities-modern .activity-item-modern:hover .activity-arrow {
    color: #006699;
    transform: translateX(3px);
}

/* 活動載入中 & 空狀態 */
#activities .activities-modern .loading-spinner-modern {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}

#activities .activities-modern .loading-spinner-modern i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

#activities .activities-modern .empty-message-modern {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}

#activities .activities-modern .empty-message-modern i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

/* ============================================================
   發展歷程
   ============================================================ */
#history {
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#history .tm-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 40px 20px 40px;
}

#history .tm-text-primary {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4px;
    padding-top: 6px;
}

#history hr {
    width: 80px;
    margin: 0 auto 16px auto;
    border-top: 3px solid #006699;
}

.timeline-snake {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4px 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-snake::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #006699, #66b3d9, #006699);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.timeline-snake-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    width: 100%;
}

.timeline-snake-item:last-child {
    margin-bottom: 0;
}

.timeline-snake-item.left {
    flex-direction: row;
    justify-content: flex-start;
}

.timeline-snake-item.left .tl-content-wrap {
    padding-right: 36px;
    text-align: left;
    order: 1;
    margin-right: auto;
}

.timeline-snake-item.right {
    flex-direction: row;
    justify-content: flex-end;
}

.timeline-snake-item.right .tl-content-wrap {
    padding-left: 36px;
    text-align: left;
    order: 2;
    margin-left: auto;
}

.tl-content-wrap {
    width: 44%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.tl-year-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006699;
    background: #e8f0fe;
    padding: 2px 14px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0, 102, 153, 0.08);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.timeline-snake-item:hover .tl-year-label {
    background: #d4e4f7;
    transform: scale(1.03);
}

.tl-content-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: all 0.4s ease;
    position: relative;
    text-align: left;
    width: 100%;
    cursor: pointer;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tl-content-box .tl-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    text-align: left;
    margin: 0;
    transition: color 0.3s ease;
}

.tl-content-box .tl-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin: 0;
    padding: 0;
}

.tl-content-box .tl-detail p {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.tl-content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 153, 0.08);
    border-color: #006699;
    padding: 10px 18px 12px 18px;
}

.tl-content-box:hover .tl-detail {
    max-height: 200px;
    opacity: 1;
    padding-top: 5px;
}

.tl-content-box:hover .tl-title {
    color: #006699;
}

.tl-content-box .tl-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: #b0c8dd;
    transition: all 0.3s ease;
    opacity: 1;
}

.tl-content-box:hover .tl-hint {
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
}

.tl-content-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 2px;
    background: #b0c8dd;
    transform: translateY(-50%);
    transition: background 0.3s ease;
    z-index: 1;
}

.timeline-snake-item.left .tl-content-wrap::after {
    right: 6px;
}

.timeline-snake-item.right .tl-content-wrap::after {
    left: 6px;
}

.timeline-snake-item:hover .tl-content-wrap::after {
    background: #006699;
}

.timeline-snake-item .tl-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #006699;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.timeline-snake-item:hover .tl-dot {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 5px rgba(0, 102, 153, 0.15);
    background: #0088bb;
}

/* ============================================================
   核心業務 - 一次只展開一個
   ============================================================ */
#business {
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#business .tm-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 40px 16px 40px;
}

#business .section-header-fixed {
    flex-shrink: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
}

#business .tm-text-primary {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}

#business .section-header-fixed hr {
    width: 80px;
    margin: 2px auto 4px auto;
    border-top: 3px solid #006699;
}

#business .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 0;
    padding: 2px 0 4px 0;
    width: 100%;
}

.business-list-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.business-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.business-list-item {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.business-list-item:hover {
    box-shadow: 0 8px 35px rgba(0, 102, 153, 0.08);
    border-color: #006699;
}

.business-list-item .item-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    transition: background 0.3s ease;
}

.business-list-item:hover .item-header {
    background: #f8fafc;
}

.business-list-item .item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.business-list-item:hover .item-icon {
    background: linear-gradient(135deg, #006699, #0088bb);
}

.business-list-item:hover .item-icon i {
    color: #fff;
}

.business-list-item .item-icon i {
    font-size: 1.2rem;
    color: #006699;
    transition: all 0.3s ease;
}

.business-list-item .item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.business-list-item .item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
}

.business-list-item .item-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-list-item .item-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 600;
    background: #e8f0fe;
    color: #006699;
    flex-shrink: 0;
    white-space: nowrap;
}

.business-list-item .item-arrow {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.business-list-item.expanded .item-arrow {
    transform: rotate(180deg);
    color: #006699;
}

.business-list-item .item-detail-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0 22px;
}

.business-list-item.expanded .item-detail-wrap {
    max-height: 600px;
    opacity: 1;
    padding: 0 22px 18px 22px;
}

.business-list-item .info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.business-list-item .info-table thead {
    background: linear-gradient(135deg, #006699, #0088bb);
    color: #fff;
}

.business-list-item .info-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.business-list-item .info-table tbody tr {
    border-bottom: 1px solid #f0f2f7;
    transition: background 0.2s ease;
}

.business-list-item .info-table tbody tr:hover {
    background: #f8fafc;
}

.business-list-item .info-table tbody td {
    padding: 9px 14px;
    color: #1f384e;
    vertical-align: top;
    line-height: 1.5;
}

.business-list-item .info-table tbody td:first-child {
    font-weight: 600;
    color: #006699;
    width: 22%;
    white-space: nowrap;
}

.business-list-item .info-table tbody td:last-child {
    color: #475569;
}

.business-list-item .info-table tbody tr:last-child {
    border-bottom: none;
}

/* ============================================================
   核心業務 - 第一個預設展開
   ============================================================ */
/* 第一個業務預設展開 
.business-list-item:first-child .item-detail-wrap {
    max-height: 600px;
    opacity: 1;
    padding: 0 22px 18px 22px;
}

.business-list-item:first-child .item-arrow {
    transform: rotate(180deg);
    color: #006699;
}

/* 手機版第一個業務展開 
@media (max-width: 768px) {
    .business-list-item:first-child .item-detail-wrap {
        padding: 0 14px 14px 14px !important;
    }
}

@media (max-width: 480px) {
    .business-list-item:first-child .item-detail-wrap {
        padding: 0 8px 10px 8px !important;
    }
}*/*/

/* ============================================================
   人事架構 - 使用圖片
   ============================================================ */
#organization {
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    padding: 30px 0;
}

#organization .tm-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
}

#organization .tm-text-primary {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4px;
}

#organization hr {
    width: 80px;
    margin: 0 auto 20px auto;
    border-top: 3px solid #006699;
}

.org-img-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.org-img-container img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    background: #ffffff;
    padding: 10px;
}

.org-img-container .no-image {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    width: 100%;
}

.org-img-container .no-image i {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* ============================================================
   文章列表容器
   ============================================================ */
.article-list-container {
    max-height: 500px;
    overflow-y: auto;
    min-height: 300px;
}

.article-item {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    cursor: pointer;
}

.article-item:hover {
    background: #f8f9fa;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.article-item .article-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.article-item .article-title a:hover {
    color: #2c7a5e;
}

.article-item .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.article-item .article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-item .article-meta .meta-divider {
    color: #d1d5db;
}

.article-item .article-meta .article-category {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
}

.article-item .article-meta .category-general {
    background: #e2e8f0;
    color: #475569;
}

.article-item .article-meta .category-news {
    background: #dbeafe;
    color: #1d4ed8;
}

.article-item .article-meta .category-announcement {
    background: #fef3c7;
    color: #92400e;
}

.article-item .article-meta .attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #6c757d;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 30px;
}

.article-item .article-meta .attachment-badge i {
    font-size: 0.6rem;
}

.article-item .article-excerpt {
    color: #475569;
    font-size: 0.9rem;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.article-item .article-read-more {
    display: inline-block;
    margin-top: 8px;
    color: #2c7a5e;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start;
}

.article-item .article-read-more:hover {
    text-decoration: underline;
}

/* ============================================================
   載入中 & 空狀態
   ============================================================ */
.loading-spinner {
    text-align: center;
    padding: 50px 0;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-message {
    text-align: center;
    padding: 50px 0;
    color: #6c757d;
}

.empty-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================================
   過濾按鈕
   ============================================================ */
.article-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-filter .filter-btn {
    padding: 5px 18px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: transparent;
    color: #6c757d;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.article-filter .filter-btn:hover {
    border-color: #2d3e4f;
    color: #2d3e4f;
}

.article-filter .filter-btn.active {
    border-color: #2d3e4f;
    background: #2d3e4f;
    color: #fff;
}

.article-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 10px 0 5px 0;
    padding: 8px 0 4px 0;
    border-top: 1px solid #e9ecef;
}

/* ============================================================
   手機版專屬頂部導航列
   ============================================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999 !important;
    background: #006699;
    padding: 4px 10px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    flex-wrap: nowrap;
    gap: 6px;
    height: 50px;
}

/* 左上角 Logo */
.mobile-header .mobile-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-header .mobile-logo img {
    height: 34px;
    width: 34px;
    object-fit: contain;
}

/* mobile-title 改為圖片 */
.mobile-header .mobile-logo .mobile-title {
    display: inline-block;
    height: 34px;
    width: auto;
    object-fit: contain;
    line-height: 0;
}

.mobile-header .mobile-logo .mobile-title img {
    display: block;
    height: 100%;
    width: auto;
    max-height: 34px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

/* 手機版目錄選單 */
.mobile-nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding: 2px 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 99999;
}

.mobile-nav-menu::-webkit-scrollbar {
    display: none;
}

.mobile-nav-menu .mobile-nav-item {
    position: relative;
    flex-shrink: 0;
}

.mobile-nav-menu .mobile-nav-item > a {
    display: flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-nav-menu .mobile-nav-item > a i {
    font-size: 0.55rem;
}

.mobile-nav-menu .mobile-nav-item > a:hover,
.mobile-nav-menu .mobile-nav-item > a.active {
    color: #fff;
    /*background: rgba(255, 255, 255, 0.15);*/
}

/* 手機版下拉子選單 - 確保顯示在最上層 */
.mobile-nav-menu .mobile-dropdown {
    display: none !important;
    position: fixed !important;
    top: 50px !important;
    right: auto !important;
    background: #1a2a3a;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.6);
    z-index: 9999999 !important;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;  /* iPhone 平滑滾動 */
}

.mobile-nav-menu .mobile-dropdown.open {
    display: block !important;
}

/* 下拉選單項目 - 增加點擊區域 */
.mobile-nav-menu .mobile-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #e2e8f0 !important;
    text-decoration: none;
    padding: 12px 16px;  /* 增加點擊區域 */
    font-size: 0.8rem;
    transition: all 0.15s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: transparent;
    min-height: 44px;  /* iPhone 最小點擊區域 */
}

.mobile-nav-menu .mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-nav-menu .mobile-dropdown a:active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav-menu .mobile-dropdown a i {
    font-size: 0.7rem;
    width: 18px;
    text-align: center;
    color: #94a3b8;
}

.mobile-nav-menu .mobile-dropdown a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* 手機版觸發器樣式 - 確保 iPhone 上可點擊 */
.mobile-nav-item .dropdown-toggle {
    cursor: pointer !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex !important;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 3px 8px;  /* 增加點擊區域 */
    border-radius: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
    touch-action: manipulation;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
    z-index: 9999999;
}

.mobile-nav-item .dropdown-toggle:hover,
.mobile-nav-item .dropdown-toggle.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-nav-item .dropdown-toggle .arrow-icon {
    font-size: 0.4rem;
    margin-left: 2px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav-item .dropdown-toggle .arrow-icon.open {
    transform: rotate(180deg);
}

/* 為置頂導航留出空間 */
body.mobile-nav-active {
    padding-top: 50px;
}

/* ============================================================
   響應式設計 - 中螢幕
   ============================================================ */
@media (max-width: 1400px) {
    .tm-section-wrap {
        width: calc(100% - 630px);
        margin-left: 630px;
    }
}

/* ============================================================
   響應式設計 - 平板 (≤1200px)
   ============================================================ */
@media (max-width: 1200px) {
    .tm-col-home {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px;
    }

    .tm-img-home-container {
        width: 100%;
        height: 0;
        padding-top: 75%;
        background-image: url('../img/img-about-01.jpg');
        background-size: contain;
    }

    .tm-section-wrap .tm-section {
        padding: 10px 10px 10px 10px;
    }
}

/* ============================================================
   響應式設計 - 平板 (≤991px) - 側邊欄隱藏
   ============================================================ */
@media (max-width: 991px) {
    .tm-sidebar {
        left: -280px;
        transition: all 0.3s ease;
    }

    .navbar-toggler {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        background-color: rgb(0 102 153 / 0.80);
        color: white;
        padding: 10px 15px;
        transition: all 0.3s ease;
        border-radius: 0;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        top: 40px;
        z-index: 10000;
    }

    .navbar-toggler:focus {
        outline: none;
    }

    .tm-sidebar.show {
        left: 0;
    }

    .tm-sidebar.show .navbar-toggler {
        left: 280px;
    }

    .tm-parallax {
        width: 280px;
        left: -280px;
    }

    .tm-section-wrap {
        width: calc(100% - 280px);
        margin-left: 280px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .tm-section-wrap .tm-section {
        padding: 40px 30px;
        height: auto;
    }

    .tm-text-container {
        max-width: 100%;
    }
}

/* ============================================================
   響應式設計 - 手機 (≤768px) - 移除所有固定高度
   ============================================================ */
@media (max-width: 768px) {
    /* 顯示手機版頂部導航列 */
    .mobile-header {
        display: flex !important;
    }

    /* 為置頂導航留出空間 */
    .tm-main {
        padding-top: 50px !important;
    }

    /* 隱藏桌面版側邊欄 */
    #tm-sidebar {
        display: none !important;
    }

    /* 隱藏所有 parallax 背景 */
    .tm-parallax {
        display: none !important;
    }

    /* 主內容區塊佔滿全寬 */
    .tm-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* ===== 移除所有固定高度限制 ===== */
    .tm-section-wrap {
        width: 100% !important;
        margin-left: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 6px 0 !important;
        display: block !important;
        align-items: normal !important;
        position: relative !important;
    }

    .tm-section {
        padding: 20px 16px 30px 16px !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    /* 公司簡介 */
    #home {
        min-height: auto !important;
    }
    #home .tm-section {
        padding: 20px 16px 30px 16px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #home .company-simple {
        flex-direction: column;
        gap: 16px;
    }
    #home .company-simple .simple-image {
        flex: 0 0 100%;
        width: 100%;
    }
    #home .company-simple .simple-image img {
        aspect-ratio: 16/9;
    }
    #home .company-simple .simple-text .simple-title {
        font-size: 1rem;
    }
    #home .company-simple .simple-text p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* 文件發佈 */
    #news {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
        padding: 0 !important;
    }
    #news .tm-section {
        padding: 16px 12px 24px 12px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #news .news-modern {
        max-height: none !important;
        overflow: visible !important;
    }
    #news .news-modern .article-list-modern {
        max-height: none !important;
        overflow: visible !important;
    }
    #news .tm-text-primary {
        font-size: 1.3rem;
    }

    /* 活動版塊 */
    #activities {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
        padding: 0 !important;
    }
    #activities .tm-section {
        padding: 16px 12px 24px 12px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #activities .activities-modern {
        max-height: none !important;
        overflow: visible !important;
    }
    #activities .activities-modern .activities-list-modern {
        max-height: none !important;
        overflow: visible !important;
    }
    #activities .tm-text-primary {
        font-size: 1.3rem;
    }
    #activities .activities-slider {
        padding: 0 10px;
    }
    #activities .activities-slider .slick-slide img {
        height: 200px;
    }
    #activities .activities-slider .slick-dots {
        bottom: 10px;
    }
    #activities .activities-slider .slick-dots li button {
        width: 10px;
        height: 10px;
    }
    #activities .activities-modern .activity-item-modern {
        flex-wrap: wrap;
        padding: 10px 12px;
        cursor: pointer;
    }
    #activities .activities-modern .activity-item-modern .activity-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    #activities .activities-modern .activity-item-modern .activity-title-link {
        white-space: normal;
        font-size: 0.82rem;
    }
    #activities .activities-modern .activity-item-modern .activity-right {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    #activities .activities-modern .activity-item-modern .activity-date {
        font-size: 0.65rem;
    }
    #activities .activities-modern .activity-item-modern .activity-status-badge {
        font-size: 0.5rem;
        padding: 1px 10px;
        min-width: 36px;
    }
    #activities .activities-modern .activity-item-modern .activity-arrow {
        display: none;
    }
    #activities .activities-modern .activities-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    #activities .activities-modern .activities-title-section {
        width: 100%;
        justify-content: space-between;
    }

    /* 發展歷程 */
    #history {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
        padding: 0 !important;
    }
    #history .tm-section {
        padding: 16px 12px 24px 12px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #history .tm-text-primary {
        font-size: 1.3rem;
    }
    .timeline-snake {
        max-height: none !important;
        overflow: visible !important;
        padding: 10px 0 20px 0;
    }
    .timeline-snake-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 40px;
        margin-bottom: 20px;
        justify-content: flex-start !important;
        width: 100%;
        display: flex !important;
    }
    .timeline-snake-item .tl-content-wrap {
        width: 100%;
        padding: 0 !important;
        text-align: left !important;
        margin: 0 !important;
    }
    .timeline-snake-item .tl-content-wrap::after {
        display: none;
    }
    .timeline-snake-item .tl-year-label {
        margin-bottom: 4px;
        font-size: 0.7rem;
        padding: 2px 12px;
        display: inline-block;
    }
    .timeline-snake-item .tl-dot {
        left: 20px;
        top: 30px;
        width: 12px;
        height: 12px;
        transform: translate(-50%, 0);
        position: absolute;
    }
    .timeline-snake-item:hover .tl-dot {
        transform: translate(-50%, 0) scale(1.15);
    }
    .tl-content-box {
        padding: 12px 16px;
        min-height: auto;
        width: 100%;
        display: block;
        cursor: default;
    }
    .tl-content-box .tl-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    .tl-content-box .tl-detail {
        max-height: 300px !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding-top: 6px !important;
    }
    .tl-content-box .tl-detail p {
        font-size: 0.75rem;
        color: #64748b;
        line-height: 1.6;
        margin: 0;
    }
    .tl-content-box .tl-hint {
        display: none !important;
    }
    .tl-content-box:hover {
        transform: none !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
        border-color: #eef2f6 !important;
        padding: 12px 16px !important;
    }
    .tl-content-box:hover .tl-title {
        color: #1e293b !important;
    }
    .timeline-snake::before {
        left: 20px;
        top: 0;
        bottom: 0;
        height: 100%;
        position: absolute;
    }

    /* 核心業務 */
    #business {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
        padding: 0 !important;
    }
    #business .tm-section {
        padding: 16px 12px 24px 12px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #business .tm-text-primary {
        font-size: 1.3rem;
    }
    .business-list-item .item-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .business-list-item .item-content {
        flex-wrap: wrap;
        gap: 4px;
    }
    .business-list-item .item-title {
        font-size: 0.85rem;
        white-space: normal;
    }
    .business-list-item .item-icon {
        width: 32px;
        height: 32px;
    }
    .business-list-item .item-icon i {
        font-size: 0.85rem;
    }
    .business-list-item .item-desc {
        font-size: 0.65rem;
    }
    .business-list-item .info-table {
        font-size: 0.65rem;
    }
    .business-list-item .info-table thead th {
        padding: 4px 6px;
        font-size: 0.6rem;
    }
    .business-list-item .info-table tbody td {
        padding: 4px 6px;
    }

    /* 人事架構 */
    #organization {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
        padding: 10px 0 !important;
    }
    #organization .tm-section {
        padding: 16px 12px 24px 12px !important;
        min-height: auto !important;
        height: auto !important;
    }
    #organization .tm-text-primary {
        font-size: 1.3rem;
    }
    .org-img-container img {
        max-height: 40vh;
    }

    /* 文章列表容器 */
    .article-list-container {
        max-height: none !important;
        overflow-y: visible !important;
        min-height: auto !important;
    }

    /* 桌面版品牌區塊隱藏 */
    .tm-brand-box {
        display: none !important;
    }

    /* 文章列表手機調整 */
    #news .news-modern .article-item-modern {
        flex-wrap: wrap;
        padding: 10px 12px;
        cursor: pointer;
    }
    #news .news-modern .article-item-modern .article-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
        pointer-events: none;
    }
    #news .news-modern .article-item-modern .article-title-link {
        white-space: normal;
        font-size: 0.82rem;
        pointer-events: none;
    }
    #news .news-modern .article-item-modern .article-right {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        pointer-events: none;
    }
    #news .news-modern .article-item-modern .article-date {
        font-size: 0.65rem;
        pointer-events: none;
    }
    #news .news-modern .article-item-modern .article-category-badge {
        font-size: 0.5rem;
        padding: 1px 10px;
        min-width: 36px;
        pointer-events: none;
    }
    #news .news-modern .article-item-modern .article-arrow {
        display: none;
    }
    #news .news-modern .filter-group {
        width: 100%;
    }
    #news .news-modern .filter-group .filter-btn {
        font-size: 0.65rem;
        padding: 3px 12px;
    }
    #news .news-modern .news-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    #news .news-modern .news-title-section {
        width: 100%;
        justify-content: space-between;
    }

    /* 活動幻燈片手機調整 */
    #activities .tm-text-primary {
        font-size: 1.2rem;
    }
    #activities .activities-slider .slick-slide img {
        height: 150px;
    }

    /* 標題字體大小調整 */
    #business .tm-text-primary {
        font-size: 1.2rem;
    }
    #history .tm-text-primary {
        font-size: 1.2rem;
    }
    #organization .tm-text-primary {
        font-size: 1.2rem;
    }
    #home .tm-text-primary {
        font-size: 1.2rem;
    }

    .tm-section {
        padding: 40px 20px !important;
    }
    #news .tm-section {
        padding: 20px 16px 30px 16px !important;
    }
}

/* ============================================================
   響應式設計 - 手機 (≤700px)
   ============================================================ */
@media (max-width: 700px) {
    .tm-parallax {
        position: static;
        height: 360px;
        width: 100%;
    }

    .tm-section-wrap {
        width: 100% !important;
        margin-left: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .tm-section-wrap .tm-section {
        padding: 30px 20px !important;
        height: auto !important;
    }
}

/* ============================================================
   響應式設計 - 小手機 (≤576px)
   ============================================================ */
@media (max-width: 576px) {
    .business-list-item .info-table {
        font-size: 0.7rem;
    }
    .business-list-item .info-table thead th {
        padding: 5px 8px;
        font-size: 0.65rem;
    }
    .business-list-item .info-table tbody td {
        padding: 5px 8px;
    }
    .business-list-item .info-table tbody td:first-child {
        width: 35%;
        font-size: 0.65rem;
        white-space: normal;
    }
    .business-list-item.expanded .item-detail-wrap {
        padding: 0 10px 12px 10px;
    }
}

/* ============================================================
   響應式設計 - 極小手機 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .tm-section {
        padding: 30px 16px !important;
    }
    #news .tm-section {
        padding: 16px 12px 24px 12px !important;
    }
    #activities .tm-section {
        padding: 12px 8px 20px 8px !important;
    }
    #history .tm-section {
        padding: 12px 8px 20px 8px !important;
    }
    #business .tm-section {
        padding: 12px 8px 20px 8px !important;
    }
    #organization .tm-section {
        padding: 12px 8px 20px 8px !important;
    }

    #activities .activities-slider .slick-slide img {
        height: 150px;
    }

    /* 公司簡介 */
    #home .company-simple .simple-text .simple-title {
        font-size: 1rem;
    }
    #home .company-simple .simple-text p {
        font-size: 0.82rem;
        line-height: 1.6;
    }
    #home .company-simple {
        gap: 14px;
    }

    /* 核心業務 */
    .business-list-item .item-header {
        padding: 10px 12px;
        gap: 8px;
    }
    .business-list-item .item-title {
        font-size: 0.85rem;
    }
    .business-list-item .item-icon {
        width: 30px;
        height: 30px;
    }
    .business-list-item .item-icon i {
        font-size: 0.85rem;
    }
    .business-list-item .item-desc {
        font-size: 0.65rem;
    }
    .business-list-item .item-arrow {
        font-size: 0.7rem;
    }
    .business-list-item .info-table {
        font-size: 0.65rem;
    }
    .business-list-item .info-table thead th {
        padding: 4px 6px;
        font-size: 0.6rem;
    }
    .business-list-item .info-table tbody td {
        padding: 4px 6px;
    }
    .business-list-item .info-table tbody td:first-child {
        width: 38%;
        font-size: 0.6rem;
    }
    .business-list-item.expanded .item-detail-wrap {
        padding: 0 8px 10px 8px;
    }

    /* 發展歷程 */
    #history .tm-text-primary {
        font-size: 1.3rem;
    }
    .tl-content-box {
        padding: 8px 12px;
        min-height: 34px;
    }
    .tl-content-box .tl-title {
        font-size: 0.75rem;
    }
    .tl-content-box .tl-detail p {
        font-size: 0.65rem;
    }
    .tl-year-label {
        font-size: 0.65rem;
        padding: 2px 10px;
    }
    .timeline-snake-item {
        padding-left: 34px;
        margin-bottom: 12px;
    }
    .timeline-snake-item .tl-dot {
        left: 16px;
        width: 10px;
        height: 10px;
    }
    .tl-content-box .tl-hint {
        font-size: 0.5rem;
        right: 6px;
    }
    .tl-content-box:hover {
        padding: 8px 12px 10px 12px;
    }

    /* 人事架構 */
    .org-img-container img {
        max-height: 35vh;
        padding: 6px;
    }

    /* 文章列表 */
    .article-item .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .article-item .article-meta .meta-divider {
        display: none;
    }
    .nav-submenu .sub-link {
        font-size: 0.7rem;
        padding: 4px 8px 4px 18px;
    }

    /* 文件發佈 */
    #news .tm-text-primary {
        font-size: 1.3rem;
    }
    #news .news-modern .news-title-section .news-main-title {
        font-size: 1.2rem;
    }
    #news .news-modern .article-item-modern {
        padding: 10px 12px;
    }
    #news .news-modern .article-item-modern .article-title-link {
        font-size: 0.82rem;
    }
    #news .news-modern .article-item-modern .article-date {
        font-size: 0.65rem;
    }
    #news .news-modern .article-item-modern .article-category-badge {
        font-size: 0.5rem;
        padding: 1px 10px;
        min-width: 40px;
    }
    #news .news-modern .filter-group .filter-btn {
        font-size: 0.65rem;
        padding: 3px 12px;
    }

    /* 活動版塊 */
    #activities .tm-text-primary {
        font-size: 1.2rem;
    }

    /* 手機版導航 */
    .mobile-header {
        height: 44px;
        padding: 3px 6px;
    }
    .mobile-header .mobile-logo img {
        height: 24px;
        width: 24px;
    }
    .mobile-header .mobile-logo .mobile-title {
        height: 24px;
    }
    .mobile-header .mobile-logo .mobile-title img {
        max-height: 24px;
    }
    .tm-main {
        padding-top: 44px !important;
    }
    body.mobile-nav-active {
        padding-top: 44px;
    }
}

/* ============================================================
   響應式設計 - 極小手機 (≤380px)
   ============================================================ */
@media (max-width: 380px) {
    .mobile-header {
        height: 40px;
        padding: 2px 4px;
    }
    .mobile-header .mobile-logo img {
        height: 22px;
        width: 22px;
    }
    .mobile-header .mobile-logo .mobile-title {
        height: 22px;
    }
    .mobile-header .mobile-logo .mobile-title img {
        max-height: 22px;
    }
    .tm-main {
        padding-top: 40px !important;
    }
    body.mobile-nav-active {
        padding-top: 40px;
    }
}