/* 主样式文件 */
:root {
    --primary-color: #6851ff;
    --primary-dark: #5a46dd;
    --secondary-color: #7f77e0;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --sidebar-width: 240px;
    --header-height: 60px;
    --border-color: #e0e0e0;
}

html {
    /* 全局缩放：降低基础字号，整体更紧凑 */
    font-size: 14px;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.45;
}

/* 新增：移动端底部导航图标样式 */
.tabbar{position:fixed;left:0;right:0;bottom:0;height:56px;background:#fff;border-top:1px solid #eee;display:flex;justify-content:space-around;align-items:center;z-index:1000}
.tab{color:#777;text-decoration:none;display:flex;flex-direction:column;align-items:center;font-size:12px;line-height:1.1}
.tab:link,.tab:visited{color:#777;text-decoration:none}
.tab.active{color:var(--primary-color);font-weight:600}
.tab.active:link,.tab.active:visited{color:var(--primary-color)}
.tab .ico{width:18px;height:18px;display:block;margin-bottom:2px}
.tab .ico path,.tab .ico circle,.tab .ico rect,.tab .ico line,.tab .ico polyline{fill:none;stroke:#9aa0a6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab.active .ico path,.tab.active .ico circle,.tab.active .ico rect,.tab.active .ico line,.tab.active .ico polyline{stroke:var(--primary-color)}

/* 布局 */
.container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: white;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 16px;
    background: var(--primary-dark);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.sidebar-menu {
    padding: 0;
    list-style: none;
}

.sidebar-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-menu li a {
    padding: 12px 16px;
    display: block;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.sidebar-menu i {
    margin-right: 8px;
}

/* 主内容区 */
.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 16px; /* 20 -> 16 */
    transition: all 0.3s;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px; /* 20 -> 16 */
}

.card-header {
    padding: 10px 14px; /* 15 20 -> 10 14 */
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    background-color: #f9f9f9;
    border-radius: 6px 6px 0 0;
}

.card-body {
    padding: 12px; /* 20 -> 12 */
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, 
.table td {
    padding: 10px 12px; /* 12 15 -> 10 12 */
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: bold;
    background-color: #f9f9f9;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    padding: 28px; /* 40 -> 28 */
    text-align: center;
    background-color: #f9f9f9;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 150px; /* 200 -> 150 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    background-color: #f5f5f5;
    border-color: var(--primary-color);
}

.upload-area.dragover {
    background-color: #eef5ff;
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 40px; /* 48 -> 40 */
    color: var(--primary-color);
    margin-bottom: 10px;
}

.selected-file-info {
    display: flex;
    align-items: center;
    font-size: 0.95rem; /* 1.1rem -> 0.95rem */
    padding: 8px;
    background-color: #f0f8ff;
    border-radius: 4px;
    width: 100%;
    justify-content: center;
}

.selected-file-info i {
    color: #28a745;
    font-size: 1.1rem; /* 1.4rem -> 1.1rem */
    margin-right: 8px;
}

.selected-file-info .btn-close {
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
}

.selected-file-info .btn-close:hover {
    opacity: 1;
}

.selected-file {
    font-weight: bold;
    margin-top: 4px;
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.3rem 0.6rem; /* 更紧凑 */
    font-size: 0.95rem; /* 1rem -> 0.95rem */
    line-height: 1.35; /* 1.5 -> 1.35 */
    border-radius: 0.2rem; /* 0.25 -> 0.2 */
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #6a64c4;
    border-color: #6a64c4;
}

/* 表单整体更紧凑 */
.form-control,
.form-select,
.form-check-input,
.form-check-label,
.form-label {
    font-size: 0.95rem;
}

.form-control,
.form-select {
    padding: 0.35rem 0.6rem;
}

.form-label {
    margin-bottom: 0.25rem;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 0.75rem; /* 1rem -> 0.75rem */
}

.mb-3 {
    margin-bottom: 0.75rem; /* 1rem -> 0.75rem */
}

/* 上传说明列表 */
.upload-requirements {
    list-style: none;
    padding-left: 0;
}

.upload-requirements li {
    padding: 6px 0; /* 8 -> 6 */
    border-bottom: 1px solid #f0f0f0;
}

.upload-requirements li:last-child {
    border-bottom: none;
}

.upload-requirements i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -var(--sidebar-width);
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 12px; /* 移动端更紧凑 */
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content.active {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
} 