/**
 * 首页框架样式
 */

.app-layout {
    display: flex;
    height: 100vh;
}

/* 左侧图标导航 */
.icon-nav {
    width: 60px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 4px;
}

.icon-nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
}

.icon-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.icon-nav-item.active {
    background: var(--accent-green);
    color: white;
}

.icon-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
}

.icon-nav-spacer {
    flex: 1;
}

/* 悬浮提示 */
.icon-nav-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 56px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 主内容区 iframe */
.main-frame {
    flex: 1;
    border: none;
    background: var(--bg-primary);
}

/* 响应式 - 移动端 */
@media screen and (max-width: 768px) {
    .icon-nav {
        width: 50px;
    }
    .icon-nav-item {
        width: 38px;
        height: 38px;
    }
}

@media screen and (max-width: 480px) {
    .icon-nav {
        width: 44px;
        padding: 8px 0;
    }
    .icon-nav-item {
        width: 34px;
        height: 34px;
    }
}
