/**
 * Theme Name: 博航电子主题
 * Theme URI: https://www.bohang.net.cn
 * Author: 博航电子
 * Author URI: https://www.bohang.net.cn
 * Description: 博航电子官方网站WordPress主题，支持多语言（中文/英文/法文）
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: njbohang
 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式容器 */
@media (max-width: 1280px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 证书卡片动画 */
.cert-card {
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* ========================================
   下拉菜单样式
   ======================================== */
/* 父容器相对定位 - 关键！ */
.group {
    position: relative;
} 

/* 下拉菜单容器 - 初始状态隐藏 */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

/* 鼠标悬停时显示下拉菜单 */
.group:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单链接样式 */
.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #374151;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

/* 下拉菜单分割线 */
.dropdown-content .border-t {
    border-top: 1px solid #e5e7eb;
    margin: 8px 0;
}

/* ========================================
   移动端菜单样式
   ======================================== */

/* 移动端子菜单图标旋转 */
.mobileToggle i {
    transition: transform 0.2s;
}

.mobileToggle .rotate-180 {
    transform: rotate(180deg);
}

/* 移动端子菜单 */
.mobileSub {
    transition: all 0.2s ease;
}

/* 其他全局样式可按需添加 */