/**
 * 主界面布局样式
 * 包含顶部状态栏、左侧菜单树、中央显示区、数据表格等
 */

/* 主显示区域容器 */
.main-interface {
    position: absolute;
    top: 50px;
    left: 90px;
    right: 100px;
    bottom: 80px;
    background: var(--hardware-dark-gray);
    border: 2px solid var(--hardware-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部状态栏 */
.status-bar {
    height: 80px;
    background: linear-gradient(180deg, var(--hardware-gray) 0%, var(--hardware-dark-gray) 100%);
    border-bottom: 2px solid var(--hardware-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doppler-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--hardware-orange);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px var(--shadow-deep);
}

.doppler-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--hardware-orange) 0%, #FF8533 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 6px var(--shadow-medium);
}

/* 实时时间显示 */
.time-display {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 20px;
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    letter-spacing: 2px;
}

/* 系统状态 */
.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid var(--hardware-gray);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #00FF00 0%, #008800 100%);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 14px;
    color: #00FF00;
    font-weight: bold;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 左侧菜单树 */
.left-menu-panel {
    width: 280px;
    background: linear-gradient(180deg, #2E2E2E 0%, var(--hardware-dark-gray) 100%);
    border-right: 2px solid var(--hardware-gray);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 菜单树样式 */
.menu-tree {
    padding: 10px;
}

.menu-item {
    position: relative;
    margin: 4px 0;
    user-select: none;
}

.menu-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: linear-gradient(90deg, rgba(255, 107, 26, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(255, 107, 26, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #CCCCCC;
    font-size: 14px;
}

.menu-item-header:hover {
    background: linear-gradient(90deg, rgba(255, 107, 26, 0.3) 0%, rgba(255, 107, 26, 0.1) 100%);
    border-color: var(--hardware-orange);
    color: white;
    transform: translateX(4px);
}

.menu-item-header.active {
    background: linear-gradient(90deg, var(--hardware-orange) 0%, rgba(255, 107, 26, 0.6) 100%);
    border-color: var(--hardware-orange);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 26, 0.4);
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.menu-expand-icon {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.menu-item.expanded .menu-expand-icon {
    transform: rotate(90deg);
}

/* 子菜单 */
.menu-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 30px;
}

.menu-item.expanded .menu-submenu {
    max-height: 500px;
}

.submenu-item {
    padding: 8px 15px;
    margin: 2px 0;
    border-left: 2px solid rgba(255, 107, 26, 0.3);
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    border-left-color: var(--hardware-orange);
    color: white;
    background: rgba(255, 107, 26, 0.1);
}

.submenu-item.active {
    border-left-color: var(--hardware-orange);
    color: var(--hardware-orange);
    background: rgba(255, 107, 26, 0.2);
    font-weight: bold;
}

/* 中央显示区 */
.central-display {
    flex: 1;
    background: var(--hardware-black);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 数据表格头部 */
.data-table-header {
    height: 60px;
    background: linear-gradient(180deg, var(--hardware-gray) 0%, #2E2E2E 100%);
    border-bottom: 1px solid var(--hardware-orange);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    overflow-x: auto;
}

.data-column {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.data-label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.data-value {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #00FFFF;
    white-space: nowrap;
}

/* 主显示页面容器 */
.display-pages {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.display-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: var(--hardware-black);
    padding: 20px;
    overflow: auto;
}

.display-page.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* 欢迎页面 */
.welcome-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.welcome-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--hardware-orange);
    text-align: center;
    text-shadow: 2px 2px 4px var(--shadow-deep);
}

.welcome-subtitle {
    font-size: 18px;
    color: #CCCCCC;
    text-align: center;
}

.welcome-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 600px;
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(255, 107, 26, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.info-card-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.info-card-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--hardware-orange);
}

/* 滚动条样式 */
.left-menu-panel::-webkit-scrollbar,
.display-page::-webkit-scrollbar {
    width: 8px;
}

.left-menu-panel::-webkit-scrollbar-track,
.display-page::-webkit-scrollbar-track {
    background: var(--hardware-dark-gray);
}

.left-menu-panel::-webkit-scrollbar-thumb,
.display-page::-webkit-scrollbar-thumb {
    background: var(--hardware-gray);
    border-radius: 4px;
}

.left-menu-panel::-webkit-scrollbar-thumb:hover,
.display-page::-webkit-scrollbar-thumb:hover {
    background: var(--hardware-orange);
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 26, 0.3);
    border-top-color: var(--hardware-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 数据表格容器 */
.data-table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #CCC;
    font-size: 13px;
}

.data-table th {
    background: var(--hardware-gray);
    color: var(--hardware-orange);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--hardware-orange);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 107, 26, 0.2);
}

.data-table tr:hover {
    background: rgba(255, 107, 26, 0.1);
}

/* 操作按钮 */
.action-button {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--hardware-orange) 0%, #CC5515 100%);
    border: 1px solid var(--hardware-orange);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: linear-gradient(135deg, #FF8533 0%, var(--hardware-orange) 100%);
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.95);
}

.action-button.secondary {
    background: linear-gradient(135deg, var(--hardware-gray) 0%, var(--hardware-dark-gray) 100%);
    border-color: var(--hardware-gray);
}

.action-button.secondary:hover {
    background: linear-gradient(135deg, #555 0%, var(--hardware-gray) 100%);
}

