/* ========================================
   公共样式 - ExtensionPay
   ======================================== */

/* 顶部导航样式 */
.top-nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF6600;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: #FF6600;
    background: #fff5f0;
}

.nav-menu a.active {
    color: #FF6600;
    background: #fff5f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.user-info:hover {
    background: #f5f5f5;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF6600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.language-selector {
    position: relative;
    cursor: pointer;
    margin-left: 15px;
}

.language-current {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.language-current::after {
    content: "▼";
    font-size: 10px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    margin-top: 5px;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.language-option:hover {
    background: #f5f5f5;
}

.logout-btn {
    margin-left: 15px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    border-color: #FF6600;
    color: #FF6600;
}

.btn-dashboard {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #FF6600;
    border-radius: 6px;
    color: #FF6600 !important;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-dashboard:hover {
    background: #FFF5F0;
    border-color: #FF6600;
    color: #FF6600 !important;
}

/* 导航响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

