/* SecurFlow Custom Styles */
/* 自定义样式 - 包括Logo、语言切换器等 */

/* Logo样式 - 响应式尺寸 */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
.logo-img {
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}

/* 平板端Logo尺寸 */
@media screen and (max-width: 1024px) and (min-width: 981px) {
    .logo-container {
        top: 15px;
        left: 15px;
    }
    .logo-img {
        height: 170px;
    }
    .language-switcher {
        top: 75px; /* 调整到Logo中心位置 (170px/2) */
        right: 15px;
    }
}

/* 移动端Logo尺寸 */
@media screen and (max-width: 980px) {
    .logo-container {
        top: 10px;
        left: 10px;
    }
    .logo-img {
        height: 130px;
    }
    /* 调整MENU按钮位置与Logo中心对齐 */
    #navPanelToggle {
        top: 55px !important; /* 调整到Logo中心位置 (130px/2) */
    }
}

/* 小屏幕手机Logo尺寸 */
@media screen and (max-width: 480px) {
    .logo-container {
        top: 8px;
        left: 8px;
    }
    .logo-img {
        height: 100px;
    }
    /* 调整小屏幕MENU按钮位置与Logo中心对齐 */
    #navPanelToggle {
        top: 40px !important; /* 调整到Logo中心位置 (100px/2) */
    }
}

/* 背景图片变暗 */
#wrapper > .bg {
    background-image: url("/static/images/overlay.png"), 
                      linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                      url("/static/images/bg02.jpg") !important;
}

/* 语言切换按钮样式 */
.language-switcher {
    position: absolute;
    top: 80px; /* 调整到Logo中心位置 (200px/2) */
    right: 20px;
    z-index: 1000;
}
.language-switcher a {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}
.language-switcher a:hover {
    background: rgba(0,0,0,0.9);
}
.language-switcher a.active {
    background: #007acc;
}

/* 响应式设计 - 基于原始模板的导航行为 */

/* 桌面端和平板端 (>980px): 显示导航tab，右上角显示语言切换器 */
@media screen and (min-width: 981px) {
    .language-switcher {
        display: block;
    }
    .nav-language-switcher {
        display: none;
    }
}

/* 移动端 (≤980px): 显示hamburger按钮，语言切换器在侧边栏中 */
@media screen and (max-width: 980px) {
    .language-switcher {
        display: none;
    }
    .nav-language-switcher {
        display: block;
    }
}

/* 导航中的语言切换器样式 - 只在hamburger模式下显示 */
.nav-language-switcher {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 20px;
}

/* 确保在侧边栏中正确显示 */
#navPanel .nav-language-switcher {
    display: block !important;
}

.nav-language-switcher h4 {
    color: #212931;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.nav-language-switcher .language-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-language-switcher a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(24, 191, 239, 0.1);
    color: #212931;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(24, 191, 239, 0.2);
}

.nav-language-switcher a:hover {
    background: rgba(24, 191, 239, 0.2);
    border-color: rgba(24, 191, 239, 0.4);
    transform: translateY(-1px);
}

.nav-language-switcher a.active {
    background: #18bfef;
    color: #ffffff;
    border-color: #18bfef;
}

.nav-language-switcher a.active:hover {
    background: #0ea5d9;
    border-color: #0ea5d9;
}

/* 手机端样式微调 */
@media screen and (max-width: 736px) {
    .nav-language-switcher {
        padding: 15px 0;
        margin-top: 15px;
    }
    .nav-language-switcher h4 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    .nav-language-switcher a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* 语言切换器样式 - 静态网站版本 */
.language-switch {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-switch:hover {
    background: #e9e9e9;
    border-color: #bbb;
}

.language-switch.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.language-switch.active:hover {
    background: #005a87;
    border-color: #005a87;
}

/* 语言切换器容器样式 */
.nav-language-switcher .language-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nav-language-switcher .language-buttons a {
    flex: 1;
    text-align: center;
}

/* Copyright 区域颜色样式 */
#copyright {
    color: #aaaaaa !important; /* 更亮的灰色，使其他文字更醒目 */
}

#copyright .securflow-text {
    color: #00bfff !important; /* 亮蓝色 */
}

#copyright .coptimax-link {
    color: #00bfff !important; /* 亮蓝色 */
    border-bottom-color: transparent !important;
}

#copyright .coptimax-link:hover {
    color: #1e90ff !important; /* hover时稍深的蓝色 */
}
