
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Noto Sans TC', 'Roboto', sans-serif;
    line-height: 1.6;
    padding-top: 80px;
}

.container,
.main-content,
.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    top: -5px;
}

.content-wrapper,
.page-content,
.section-container,
.form-container,
.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

table, 
.table-responsive,
.card-container,
.grid-container {
    max-width: 100%;
    overflow-x: auto;
}

.floating-contact {
    position: fixed;
    left: 37px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-contact-img {
    width: 87px;
    height: 217px;
    display: block;
    border: none;
    transition: transform 0.3s ease;
}

.floating-contact:hover .floating-contact-img {
    transform: scale(1.05);
}

.navbar {
    background: #003C6E !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #FDBF36;
    z-index: 10000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FDBF36 !important;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #FDBF36 !important;
    border-bottom-color: #FDBF36 !important;
}

.nav-item .nav-link,
.nav-item .dropdown-toggle {
    display: flex;
    align-items: center;
    height: 100%;
    vertical-align: middle;
}

.nav-link.current-page,
.nav-link.current-page:hover {
    border-bottom: none !important;
    border-bottom-color: transparent !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #FDBF36 !important;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu.mobile {
    display: flex;
    position: fixed;
    top: 70px;
    right: -50vw;
    width: 50vw;
    height: calc(100vh - 70px);
    background: #003C6E !important;
    border-left: 3px solid #FDBF36;
    flex-direction: column;
    align-items: flex-end;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 9998;
}

.nav-menu.mobile.active {
    right: 0;
}

.nav-menu.mobile .nav-item {
    margin: 6px 0;
    width: 100%;
    text-align: right;
}

.nav-menu.mobile .nav-link {
    color: #ffffff !important;
}

.nav-menu.mobile .nav-link:hover {
    color: #FDBF36 !important;
}

.nav-menu.mobile .nav-item .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    vertical-align: middle;
}


.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: auto;
    line-height: inherit;
    padding: 0;
    margin: 0;
    text-decoration: none;
    border-bottom: none !important;
}

.dropdown-toggle:hover {
    border-bottom: 2px solid #FDBF36 !important;
}

.dropdown-toggle i {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: #003159 !important;
    list-style: none;
    margin: 0;
    margin-top: 8px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: 20000;
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #003159;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:first-child .dropdown-link {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li:last-child .dropdown-link {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #ffffff !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background-color: #FDBF36 !important;
    color: #003159 !important;
}


.hero-section {
    position: relative;
    width: 100%;
    height: 610px;
    overflow: hidden;
    margin-top: 0px;
    padding-top: 80px;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: left;
    color: white;
    max-width: 1600px;
    width: 90%;
    padding-left: 20px;
    padding-right: 60px;
}

.hero-content {
    max-width: 600px;
    padding: 0;
}

.hero-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #FD6926;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    stroke-linejoin: round;
    stroke-linecap: round;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    paint-order: stroke fill;
}

.hero-features {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FD6926;
    font-weight: 700;
    font-size: 36px;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    stroke-linejoin: round;
    stroke-linecap: round;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    paint-order: stroke fill;
}

.feature-icon {
    width: 40px;
    height: 40px;
}

.hero-subtitle {
    font-size: 26px;
    line-height: 1.6;
    margin: 0;
    color: #104573;
    font-weight: 900;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    stroke-linejoin: round;
    stroke-linecap: round;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    paint-order: stroke fill;
}

@media (max-width: 1600px) {
    .hero-section {
        height: calc(100vw * 610 / 1920);
        min-height: 400px;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        height: calc(100vw * 610 / 1920);
        min-height: 350px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        height: calc(100vw * 610 / 1920);
        min-height: 300px;
    }
    
    .floating-contact {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-container,
    .container,
    .main-content,
    .hero-container,
    .carousel-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-content {
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-features {
        gap: 25px;
        margin-bottom: 18px;
    }
    
    .feature-item {
        font-size: 1.1rem;
    }
    
    .feature-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-menu.mobile {
        top: 80px;
        height: calc(100vh - 80px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        height: calc(100vw * 610 / 1920);
        min-height: 250px;
        margin-top: 0px;
        padding-top: 70px;
    }
    
    .hero-title {
        -webkit-text-stroke: 3.5px #ffffff;
        text-stroke: 3.5px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
    
    .feature-item {
        -webkit-text-stroke: 3.5px #ffffff;
        text-stroke: 3.5px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
    
    .hero-subtitle {
        -webkit-text-stroke: 3.5px #ffffff;
        text-stroke: 3.5px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
    
    .nav-container,
    .container,
    .main-content,
    .hero-container,
    .carousel-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .content-wrapper,
    .page-content,
    .section-container,
    .form-container,
    .footer-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .floating-contact {
        display: none;
    }
}

@media (max-width: 430px) and (min-height: 900px) {
    .nav-menu.mobile {
        width: 50vw;
        padding: 20px 15px;
    }
    
    .nav-menu.mobile .nav-item {
        margin: 10px 0;
    }
    
    .nav-menu.mobile .nav-link {
        font-size: 18px;
        min-height: 40px;
        padding: 8px 0;
    }
    
    
    .hero-section {
        min-height: 300px;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 28px !important;
        margin-bottom: 15px;
    }
    
    .hero-features {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .feature-item {
        font-size: 28px !important;
    }
    
    .feature-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .hero-subtitle {
        font-size: 22px !important;
    }
}

@media (max-width: 430px) {
    .nav-container {
        padding: 15px 10px;
    }
    
    .nav-menu.mobile {
        width: 50vw;
        right: -50vw;
        padding: 15px;
    }
    
    .nav-menu.mobile.active {
        right: 0;
    }
    
    .hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.2;
        -webkit-text-stroke: 3px #ffffff;
        text-stroke: 3px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
    
    .hero-features {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .feature-item {
        font-size: 24px !important;
        -webkit-text-stroke: 3px #ffffff;
        text-stroke: 3px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
    
    .feature-icon {
        width: 30px !important;
        height: 30px !important;
        margin-right: 8px;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.3;
        -webkit-text-stroke: 3px #ffffff;
        text-stroke: 3px #ffffff;
        stroke-linejoin: round;
        stroke-linecap: round;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: calc(100vw * 610 / 1920);
        min-height: 200px;
    }
    
    .nav-container {
        padding: 15px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
}

.mobile-floating-buttons {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-floating-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 10000;
        background: transparent;
    }

    .floating-btn {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        padding: 15px 10px;
        text-decoration: none;
        color: white !important;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        gap: 8px;
    }

    .floating-btn i {
        font-size: 18px;
        color: white !important;
    }

    .floating-btn span {
        color: white !important;
        white-space: nowrap;
        font-weight: 400;
    }

    .line-btn {
        background-color: #5BB613 !important;
    }

    .line-btn:hover {
        background-color: #4A9B0F !important;
        transform: translateY(-2px);
    }

    .phone-btn {
        background-color: #EB510B !important;
    }

    .phone-btn:hover {
        background-color: #D1460A !important;
        transform: translateY(-2px);
    }

    .main-content {
        padding-bottom: 65px;
    }
    
    .footer, .footer-container, .footer-content {
        margin-bottom: 55px;
    }
}

@media (max-width: 430px) {
    .floating-btn {
        padding: 10px 8px;
        font-size: 20px;
        gap: 2px;
    }

    .floating-btn i {
        font-size: 25px;
    }

    .floating-btn span {
        font-weight: 400;
    }

    .main-content {
        padding-bottom: 60px;
    }
    
    .footer, .footer-container, .footer-content {
        margin-bottom: 45px;
    }
}