/* ============================================
   主框架布局：顶部导航 + iframe 容器
   Pro SaaS 2025 - 精致专业风
   ============================================ */

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a5e2a 0%, #009a44 100%);
    color: var(--text-white);
    z-index: 1000;
    padding: 0 var(--spacing-xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* 左侧 Logo */
.top-nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00b853 0%, #009a44 100%);
    border-radius: var(--radius-base);
    box-shadow: 0 2px 8px rgba(0, 154, 68, 0.3);
}

.logo-text {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 一级菜单 */
.top-nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: var(--spacing-2xl);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-nav-menu::-webkit-scrollbar {
    display: none;
}

.top-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 var(--spacing-base);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
    border-radius: var(--radius-base);
}

.top-menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.top-menu-item.active {
    color: #ffffff;
    background: rgba(0, 154, 68, 0.85);
    box-shadow: 0 2px 8px rgba(0, 154, 68, 0.3);
}

/* 右侧区域 */
.top-nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: var(--spacing-md);
}

/* 园区选择器 */
.campus-select {
    height: 34px;
    padding: 4px 32px 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-base);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    cursor: pointer;
    appearance: none;
    backdrop-filter: blur(8px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--transition-base);
}

.campus-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.campus-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
}

.campus-select option {
    background: var(--bg-white);
    color: var(--text-primary);
}

/* 功能图标 */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-base);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* 管理员信息 */
.admin-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px var(--spacing-sm) 6px 6px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b853 0%, #009a44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(0, 154, 68, 0.25);
}

.admin-avatar svg {
    width: 16px;
    height: 16px;
}

.admin-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.admin-info-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.admin-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

/* 主内容区域 */
.main-content {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
}

.main-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
