/* 全局公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #f5f7fa;
    min-width: 1300px
}

/* 顶部导航 */
.top {
    height: 60px;
    background: #2c3e50;
    color: white;
    line-height: 60px;
    padding: 0 20px;
    font-size: 18px;
    min-width: 1300px
}

/* 主布局 */
.main {
    display: flex;
    min-width: 1300px
}

/* 左侧菜单 */
.menu {
    width: 220px;
    background: #34495e;
    color: white;
    min-height: calc(100vh - 60px);
    padding: 10px 0;
    flex-shrink: 0;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
}

.menu a:hover {
    background: #2c3e50;
}

.content {
    flex: 1;
    padding: 20px;
    min-width: 980px;
    overflow-x: auto;
    margin: 0 auto;
}

/* 下拉菜单 - 所有页面共用 */
.dropdown {
    position: relative;
}

.dropbtn {
    padding: 14px 20px;
    color: white;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 48px;
    background-color: #2c3e50;
    min-width: 220px;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

.dropbtn:hover,
.dropdown-content a:hover {
    background: #1a252f !important;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 右侧内容区 */
.content {
    flex: 1;
    padding: 20px;
}

/* 通用卡片 */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 通用按钮/输入框/表格/代码框 - 公共基础样式 */
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: backgroud 0.2s;
}

button:hover {
    background: #0056b3;
}

/* 危险按钮（退出、删除） */
button.danger {
    background: #dc3545;
}

button.danger:hover {
    background: #c82333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    max-height: 300px;
    overflow: auto;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 报告状态公共色 */
.pass {
    color: #28a745;
    font-weight: bold;
}

.fail {
    color: #dc3545;
    font-weight: bold;
}

.error {
    color: #ffc107;
    font-weight: bold;
}
