/* 自定义样式 */
h2 {
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ba0029;
    border-radius: 2px;
}

.video-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 100, 0.5));*/
    background: url(../images/bg.png) center center no-repeat;
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
}

.section {
    padding: 100px 0;
}

.bg-light-gradient {
    background: linear-gradient(to bottom, #ecedee, #e9ecef);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #002136;
}

.card-hover {
    transition: transform 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-15px);
}

/* 导航栏样式 */
.navbar {
    transition: background 0.3s ease;
}

.navbar-solid {
    /*background: rgba(13, 110, 253, 0.95) !important;*/
    background: #002136 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-solid .navbar-brand img {
    filter: brightness(0%) invert(100%);
}

/* 确保子导航容器相对定位 */
.nav-item.dropdown {
    position: relative;
}

/* 显示下拉菜单 */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    background-color: rgba(255, 255, 255, 0.75);
}

.navbar-solid .nav-item.dropdown:hover .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
}

.dropdown-item.active, .dropdown-item:active {
    background:#ba0029;
}

.fgcolor {
    color: #002136;
}

.display-7 {
    font-size: 1.5rem;
    font-weight: 200;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.indentx2 {
    text-indent: 2rem;
}

#services .card .card-body i {
    color: #002136;
    margin-bottom: 1.5rem;
    font-size: 4.5em;
}

#expertise .card-body i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.card-body h3 {
    color: #002136;
    margin-bottom: 1.5rem;
    position: relative;
}

h3:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background-color: #ba0029;
}

.hero-content h3:after {
    display: none;
}

/* Contact Section */
.contact-section {
    background-image: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8));
    /* 替换为你的背景图 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* 视差效果 */
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer a,
.main-footer a:link,
.main-footer a:visited,
.contact-section a,
.contact-section a:visited {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

.contact-section a:hover {
    color: rgba(255, 255, 255, 1);
}

.contact-section h3 {
    position: relative;
    margin: 1rem auto;
    font-size: 1.3rem;
}

.contact-section h3:after {
    left: 1.4rem;
    width: 3rem;
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.contact-form-wrapper h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ba0029;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.partners-wrapper {
    position: relative;
}

.partners-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 2rem;
    -webkit-overflow-scrolling: touch;
}

.partner-card {
    flex: 0 0 auto;
    /* 不會縮放，保持寬度 */
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: .5rem;
}

.partners-track::-webkit-scrollbar {
    height: 10px;
}

.partners-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}


/* 控制按鈕 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(.98);
}

.scroll-btn-left {
    left: 8px;
}

.scroll-btn-right {
    right: 8px;
}


/* 小螢幕時調整大小 */
@media (max-width: 576px) {
    .partner-card {
        width: 130px;
        height: 70px;
    }
}

.social-icons {
    display: flex;
    gap: 20px;
}


.icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}


.icon-wrapper i {
    color: #ccc;
    transition: color 0.3s ease;
}



.icon-wrapper:hover i {
    color: #0088ff;
}

.icon-wrapper:hover i.fa-weixin, .icon-wrapper:hover i.fa-whatsapp, .icon-wrapper:hover i.fa-line {
    color: #01de6d
}
/* 二维码弹窗样式 */
.qr-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;


    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 150px;


    transition:
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(.21, .74, .48, 1.2);
}


.qr-popup img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}


.qr-popup span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}


/* Hover 时弹出 */
.icon-wrapper:hover .qr-popup {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}


.solution-card{border:0;border-radius:1rem;box-shadow:0 12px 32px rgba(0,0,0,.06);height:100%}
.solution-card h5{font-size:1.25rem;font-weight:600}
.solution-card h6{font-size:.95rem;color:#475569;margin-top:.25rem}
.meta{color:#64748b;font-size:.9rem}
.pill{display:inline-block;background:#eef2ff;color:#002136;border-radius:999px;padding:.25rem .75rem;font-size:.75rem;margin-bottom:.75rem}
.cta{background:#002136;color:#fff;border-radius:.75rem;padding:.5rem 1rem;display:inline-block;text-decoration:none;font-size:.9rem}
.list-check{padding-left:1rem;margin-bottom:1rem}
.list-check li{margin-bottom:.35rem}