@charset "UTF-8";

/* =========================================
   Global Variables
   ========================================= */
:root {
    --km-blue-primary: #2b5cdf;
    --km-text-dark: #111111;
    --km-text-gray: #666666;
    --km-bg-light: #f8f9fa;
    --km-bg-sub: #f4f6f9; /* Light blue/gray for sub-header */
    --km-border-color: #e0e0e0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--km-text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    transition: all 0.2s;
}

/* =========================================
   Header Refined Styles
   ========================================= */
.km-header-refined {
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- Part 1: Main Top Header (White) --- */
.km-header-main {
    padding: 15px 0 0 0;
}

/* Logo Area */
.km-logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.km-logo-area img{
	height:68px;
}

/* Right Side: Container for Top Links + Nav */
.km-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

/* Top Utility Links (Small) */
.km-utility-links {
    display: flex;
    gap: 25px;
    font-size: 12px;
    color: #666;
    margin-bottom:10px;
}

.km-utility-links a {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.km-utility-links a:hover {
    color: var(--km-blue-primary);
}

.km-separator {
    color: #ddd;
}

/* Main Navigation (Bold) */
.km-main-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.km-nav-link {
    font-size: 15px;
    font-weight: 700;
    color: #333;
	padding-top:15px;
    padding-bottom: 25px;
    position: relative;
    display: block;
    text-decoration: none;
}

.km-nav-link:hover {
    color: var(--km-blue-primary);
}

/* 核心动画部分：定义下划线 */
.km-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--km-blue-primary);
    transition: width 0.3s ease-in-out;
}

.km-nav-link:hover::after {
    width: 100%;
}

.km-nav-link.active {
    color: var(--km-blue-primary);
}

.km-nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

/* --- Part 2: Sub Header (Gray Bar) --- */
.km-header-sub {
    background-color: var(--km-bg-sub);
    border-top: 1px solid #eee;
    padding: 25px 0;
}

.km-sub-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.km-sub-nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 280px;
}

/* Vertical Divider */
.km-sub-nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #d0d0d0;
}


.km-sub-nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: block;
}

.km-sub-nav-link:hover {
    color: var(--km-blue-primary);
    text-decoration: underline;
}

.km-sub-nav-link.active {
    color: var(--km-blue-primary);
	font-weight: 600;
}

/* =========================================
   Footer (Pixel Perfect)
   ========================================= */
.km-footer {
    background-color: #051532;
    color: #fff;
    padding: 80px 0 30px;
    font-size: 14px;
}

/* --- Top Section: Logo & Links --- */
.km-footer-top {
    margin-bottom: 50px;
}

/* Logo Area */
.km-footer-logo-block {
    margin-bottom: 20px;
}

.km-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.km-footer-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2b5cdf 0%, #a033ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.km-footer-logo-text-group {
    display: flex;
    flex-direction: column;
}

.km-footer-logo-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.km-footer-logo-subtitle {
    font-size: 8px;
    color: #ccc;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* The Pill Tag */
.km-footer-tag-pill {
    display: inline-block;
    background-color: #23344d;
    color: #aab8cc;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

/* Link Columns */
.km-footer-col-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 0.5px;
}

.km-footer-list li {
    margin-bottom: 18px;
}

.km-footer-list a {
    color: #aab8cc;
    font-size: 15px;
    transition: color 0.2s;
}

.km-footer-list a:hover {
    color: #fff;
}

/* --- Divider Line --- */
.km-footer-divider {
    height: 1px;
    background-color: #23344d;
    margin-bottom: 40px;
    width: 100%;
}

/* --- Middle: Social Icons --- */
.km-footer-social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.km-social-btn {
    width: 50px;
    height: 50px;
    background-color: #23344d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    font-size:24px;
}

.km-social-btn:hover {
    background-color: #2b5cdf;
    transform: translateY(-3px);
}

.km-social-btn svg{
	width:30px;
	fill:#fff;
}

/* --- Bottom: Copyright & Links --- */
.km-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.km-copyright {
    color: #aab8cc;
}

.km-legal-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.km-legal-links a {
    color: #aab8cc;
    position: relative;
}

.km-legal-links a:hover {
    color: #fff;
}

.km-legal-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -14px;
    color: #3b4e6b;
}

/* =========================================
   Mobile Responsiveness (Header & Footer)
   ========================================= */
@media (max-width: 991px) {
    /* Header Mobile */
    .km-logo-title { font-size: 18px; }
    .km-logo-subtitle { font-size: 8px; }
    .km-logo-icon { width: 36px; height: 36px; }

    .km-header-right {
        align-items: flex-start;
        padding-bottom: 20px;
        display: none;
        width: 100%;
    }
    .collapse.show .km-header-right { display: flex; }

    .km-utility-links {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .km-main-nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .km-nav-link { padding-bottom: 5px; }
    .km-nav-link.active::after { display: none; }
    .km-nav-link.active {
        border-left: 3px solid var(--km-blue-primary);
        padding-left: 10px;
    }

    .km-sub-nav-list { flex-direction: column; }
    .km-sub-nav-item {
        width: 100%;
        max-width: none;
        text-align: left;
        padding: 10px 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    .km-sub-nav-item:not(:last-child)::after { display: none; }
    .km-header-sub { padding: 0; }

    /* Footer Mobile */
    .km-footer-logo-block { margin-bottom: 40px; }
    .km-footer-col-title { margin-top: 10px; margin-bottom: 20px; }
    .km-footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 15px;
    }
    .km-legal-links {
        flex-direction: column;
        gap: 10px;
    }
    .km-legal-links a::after { display: none; }
}


/* =========================================
   Fixed Header & Scroll Animation
   ========================================= */

.km-header-refined {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

body {
    padding-top: 178px;
}

.km-header-sub {
    max-height: 100px; 
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, border 0.4s ease;
}

.km-header-refined.is-scrolled .km-header-sub {
    max-height: 0;       
    padding-top: 0;      
    padding-bottom: 0;   
    opacity: 0;        
    border-top: none;    
}

.km-header-refined.is-scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    body {
        padding-top: 110px;
    }
    
    .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
    }
}