/* 主样式文件 - 综合管理平台（重构后引入 base + 布局/组件） */

@import "base/variables.css";
@import "base/reset.css";

/* 布局样式 */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ant-layout-header {
    background: var(--header-bg);
    padding: 0 var(--content-padding);
    height: var(--header-height);
    line-height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ant-layout-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.ant-layout-header-logo {
    display: flex;
    align-items: center;
}

.ant-layout-content {
    flex: 1;
    padding: var(--content-padding);
    background-color: var(--bg-body);
}

.ant-layout-footer {
    background: #f0f2f5;
    padding: 24px 0;
    border-top: 1px solid #d9d9d9;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 导航菜单样式 */
.ant-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.ant-menu-item {
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.ant-menu-item:hover {
    color: #fff;
}

.ant-menu-item-selected {
    color: #fff;
    border-bottom-color: #1890ff;
}

/* 内容区域样式 */
.welcome-section {
    background: #fff;
    padding: 48px 24px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.component-section {
    background: #fff;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* 表单样式 */
.ant-form {
    max-width: 400px;
}

.ant-form-item {
    margin-bottom: 24px;
}

.ant-form-item-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.ant-form-item-control {
    display: block;
}

.ant-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ant-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

/* 卡片网格样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.ant-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.ant-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ant-card-head {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.ant-card-head-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.ant-card-body {
    padding: 24px;
}

.ant-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.ant-card-cover {
    margin: -24px -24px 0 -24px;
}

/* 表格样式 */
.ant-table-wrapper {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.ant-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ant-table-thead {
    background: #fafafa;
}

.ant-table-cell {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.ant-table-row:hover {
    background: #fafafa;
}

/* 消息提示样式 */
.message-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ant-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5715;
}

.ant-message-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.ant-message-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.ant-message-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

.ant-message-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.ant-message-icon {
    margin-right: 8px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ant-layout-header {
        padding: 0 16px;
    }
    
    .ant-layout-content {
        padding: 16px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .ant-menu {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .ant-layout-header,
    .ant-layout-footer {
        display: none;
    }
    
    .ant-layout-content {
        padding: 0;
        background: #fff;
    }
    
    .component-section {
        box-shadow: none;
        border: 1px solid #d9d9d9;
    }
}









