/* ========================================
   鼎豐智造科技 - 自訂樣式
   色系：藍 #0a2540 / 白 #ffffff / 黑 #1a1a1a / 橙 #f97316
   ======================================== */

:root {
    --primary-blue: #0a2540;
    --primary-blue-light: #1e3a5f;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --dark: #1a1a1a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 頂部列 ========== */
.top-bar {
    background: var(--primary-blue);
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    padding: 8px 0;
}

.top-bar .social-icon {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 1rem;
}

.top-bar .social-icon:hover {
    color: var(--accent-orange);
}

/* ========== 導航列 ========== */
#mainNav {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 100px;
    /* height: 42px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 10px; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.brand-sub {
    font-size: 0.9rem;
    color: #585858;
    letter-spacing: 1px;
    margin-top: 2px;
}
.gold-text {
    /* 金色金屬漸層背景 */
    background: linear-gradient(135deg, #BF953F 0%, #ffe800 25%, #B38728 50%, #ffe900 75%, #AA771C 100%);
    /* background: linear-gradient(
    135deg, 
    #BF953F 0%, 
    #FCF6BA 25%, 
    #B38728 50%, 
    #FBF5B7 75%, 
    #AA771C 100%
    ); */

    /* 將背景裁剪至文字形狀 */
    -webkit-background-clip: text;
    background-clip: text;

    /* 讓文字本體透明，顯示出背景漸層 */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 增加立體刻痕感與金屬光澤陰影 */
    /* text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.4), 
               1px 1px 2px rgba(0, 0, 0, 0.5); */
    text-shadow: 0px 1px 0px rgb(255 255 255 / 10%), 0px 0px 0px rgb(0 0 0 / 10%);
               
    /* 加粗字體能讓金屬質感更加明顯 */
    font-weight: bold;
    display: inline-block;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.9rem !important;
    position: relative;
}


/* 窄螢幕維持簡單底線；寬螢幕由下方 @media 覆蓋 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--accent-orange);
    }
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-orange);
        transition: var(--transition);
        transform: translateX(-50%);
    }
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 60%;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--dark);
}

.dropdown-item:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

.btn-orange {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-orange:hover {
    background: var(--accent-orange-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

/* 手機選單按鈕 */
.navbar-toggler {
    border: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== 手機側邊選單 ========== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: #f1f5f9;
    color: var(--accent-orange);
}

.sidebar-nav {
    list-style: none;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav > li {
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.05);
}

.sidebar-link i {
    font-size: 0.85rem;
    transition: var(--transition);
}

.has-submenu.open .submenu-toggle i {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.has-submenu.open .submenu {
    max-height: 300px;
}

.submenu a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
}

.submenu a:hover {
    color: var(--accent-orange);
    padding-left: 48px;
}

.sidebar-footer {
    padding: 10px 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--gray);
}

.sidebar-footer p {
    margin-bottom: 6px;
}

.sidebar-footer i {
    color: var(--accent-orange);
    margin-right: 8px;
}

/* ========== Hero ========== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    /* font-size: 0.85rem; */
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 20px;
}

.text-orange {
    color: var(--accent-orange);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========== 通用區塊 ========== */
.section-padding {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    /* font-size: 0.8rem; */
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-badge-light {
    color: var(--accent-orange);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 660px;
    margin: 0 auto;
}

.bg-light {
    background: var(--light) !important;
}

.bg-dark {
    background: var(--primary-blue) !important;
}

/* ========== 技術核心卡片 ========== */
.core-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.core-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.core-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(10,37,64,0.08), rgba(249,115,22,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.core-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.core-card p {
    font-size: 0.925rem;
    color: var(--gray);
    margin: 0;
}

/* ========== 關於我們 ========== */
.about-image {
    position: relative;
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
}

.img-placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    /* aspect-ratio: 4/3; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
    border-radius: 16px;
}

.img-placeholder span {
    font-size: 1rem;
    margin-top: 8px;
    letter-spacing: 2px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    padding: 0 30px;
}

.stat-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 8px 0;
    font-weight: 500;
    color: var(--dark);
}

.about-list i {
    color: var(--accent-orange);
    margin-right: 10px;
}

/* ========== 時間軸 ========== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(249, 115, 22, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.timeline-content h5 {
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* ========== 團隊 ========== */
.team-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.team-avatar {
    width: 100px;
    height: 100px;
    /* background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
}

.team-card h5 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ========== 解決方案 ========== */
.solution-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.solution-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.solution-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(10,37,64,0.08), rgba(249,115,22,0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.solution-body h4 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.solution-body p {
    font-size: 0.925rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.solution-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-body ul li {
    font-size: 0.875rem;
    color: var(--dark);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.solution-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

/* ========== 應用領域 ========== */
.app-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-orange);
}

.app-card i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
    display: block;
}

.app-card h6 {
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    font-size: 0.9rem;
}

/* ========== 服務項目 ========== */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.service-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(10, 37, 64, 0.08);
    line-height: 1;
    margin-bottom: 12px;
}

.service-card h4 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--gray);
    margin: 0;
}

/* ========== 設備能力 ========== */
.equip-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.equip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.equip-card i {
    font-size: 2.2rem;
    color: var(--accent-orange);
    margin-bottom: 16px;
    display: block;
}

.equip-card h5 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.equip-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ========== 成功案例 ========== */
.case-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.case-img .img-placeholder {
    aspect-ratio: 16/10;
    font-size: 2.5rem;
    border-radius: 0;
}

.case-body {
    padding: 24px;
}

.case-tag {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.case-body h5 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.case-body p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ========== 聯絡表單 ========== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(10,37,64,0.08), rgba(249,115,22,0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-orange);
}

.contact-item h6 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-blue);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
}

.footer .brand-name {
    color: var(--white);
}

.footer .brand-sub {
    color: rgba(255,255,255,0.5);
}

.footer .logo-icon {
    /* background: rgba(255,255,255,0.1); */
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
}

.footer-contact i {
    color: var(--accent-orange);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

/* ========== 回到頂部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-3px);
}

/* ========== 響應式 ========== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-content {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .solution-card {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 55px 0;
    }
    
    .about-stats {
        flex-direction: column;
        margin-top: 20px;
        padding: 0;
    }
    
    .timeline {
        padding-left: 30px;
    }
}

/* ========== 新增／強化樣式（依簡報更新） ========== */
.highlight-box {
    display: inline-flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent-orange);
    border-radius: 12px;
    padding: 20px 28px;
    /* max-width: 1320px; */
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.highlight-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-box p {
    font-size: 1.25rem;
    color: var(--dark);
    line-height: 2.1;
}

.text-orange {
    color: var(--accent-orange) !important;
}

/* 團隊卡片強化 */
.team-card-featured {
    text-align: left;
    padding: 30px 28px;
}

.team-card-featured .team-avatar {
    margin: 0 0 16px 0;
}

.team-title {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.65;
}

.team-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-highlights span {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

/* 應用領域大卡片 */
.app-card-lg {
    padding: 32px 20px;
}

.app-card-lg p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 8px 0 0;
    line-height: 1.5;
}

/* 設備小卡片 */
.equip-mini {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    font-size: 0.8rem;
    color: var(--dark);
    font-weight: 500;
}

.equip-mini:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.equip-mini i {
    display: block;
    font-size: 1.4rem;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

/* 案例卡片 */
.case-pain {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.case-result {
    font-size: 0.875rem;
    color: var(--dark);
    margin: 0;
}

/* 影片區塊 */
.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary-blue);
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #0f2d4a 0%, #243f66 100%);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.video-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.6;
}

.video-hint code {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-orange);
}

.video-wrapper video {
    display: block;
    width: 100%;
    border-radius: 16px;
}

/* ========== 桌面版次選單 ========== */
/* 僅在寬螢幕生效 */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        position: relative;
    }

    .navbar-nav .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--dark);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.55rem 0.9rem !important;
        position: relative;
    }

    /* 橙色長條（滑入時由中間展開） */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-orange);
        transition: width 0.3s ease, left 0.3s ease;
        transform: none;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-item:hover > .nav-link::after {
        width: calc(100% - 1.8rem);
        left: 0.9rem;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-item:hover > .nav-link {
        color: var(--accent-orange);
    }

    /* 隱藏 Bootstrap 預設 caret（若仍有 dropdown-toggle） */
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }

    /* + 圖示 */
    .nav-plus {
        display: inline-block;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1;
        margin-left: 2px;
        transition: transform 0.3s ease;
        color: inherit;
    }

    /* 滑入時 + 旋轉為 ×（45度） */
    .navbar-nav .nav-item:hover > .nav-link .nav-plus,
    .navbar-nav .nav-link.has-dropdown:hover .nav-plus {
        transform: rotate(45deg);
    }

    /* 次選單預設隱藏，滑入顯示 */
    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        border: none;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        border-radius: 8px;
        padding: 10px 0;
        min-width: 180px;
        margin-top: 0 !important;
        top: 100%;
        left: 0;
    }

    .navbar-nav .nav-item:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-nav .dropdown-item {
        border-radius: 0;
        padding: 10px 22px;
        font-size: 0.9rem;
        color: var(--dark);
        transition: all 0.2s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background: rgba(249, 115, 22, 0.08);
        color: var(--accent-orange);
        padding-left: 28px;
    }
}


/* 1. 確保 Header 容器不會換行 */
header .container, 
.navbar {
  display: flex !important;
  flex-wrap: nowrap !important; /* 強制不換行 */
  align-items: center;
  justify-content: space-between;
}

/* 2. 漢堡選單按鈕固定不被擠壓 */
.navbar-toggler,
.menu-toggle-btn {
  flex-shrink: 0 !important; /* 防止按鈕被壓縮或推到下一行 */
  margin-left: 10px;
}

/* 3. 在小螢幕時適度縮小 Logo 文字 */
@media (max-width: 576px) {
  .logo-text, 
  .navbar-brand {
    font-size: 16px !important; /* 適度縮小公司名稱字級 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 若超長自動顯示 ... */
  }
  .brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
  }
  /* 如果英文副標題 (D&F EngTek Co., Ltd.) 佔用太多空間，可在手機版暫時隱藏 */
  .logo-subtitle,
  .navbar-brand small {
    display: none !important;
  }
}

.DF-profile-img {
  border-radius: 50%; /* 這行是關鍵，設為 50% 即可顯示為圓形 */
  object-fit: cover; /* 確保圖片縮放時不會變形，且填滿圓形區域 */
}

/* 外層容器：設定為 Flex 左右並排、置中對齊 */
.hero-container {
    display: flex;
    align-items: center;       /* 垂直置中 */
    justify-content: space-between; /* 兩側對齊或使用 gap 間距 */
    gap: 40px;                 /* 左右區塊之間的間距 */
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 左側文字區塊 */
.hero-content {
    flex: 1;                   /* 佔據剩餘空間 */
    max-width: 660px;
}

/* 右側影片區塊 */
.hero-video {
    flex: 1;                   /* 佔據剩餘空間 */
    max-width: 660px;
}

/* 確保影片本身能自適應容器寬度不跑版 */
.hero-video video {
    width: 100%;
    height: auto;
    border-radius: 12px;       /* 可選：加上圓角讓外觀更有質感 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 可選：加上陰影 */
}

/* 響應式調整：當螢幕較小（如手機版）時改為上下堆疊 */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;  /* 手機版改為垂直排列 */
        text-align: center;      /* 文字置中 */
    }
    
    .hero-content, .hero-video {
        max-width: 100%;
    }
}


.hero-video {
    position: relative;
    z-index: 10; /* 確保影片層級在上方，可以被點擊 */
}


.w-100px{
    max-width: 100px;
}
.w-120px{
    max-width: 120px;
}