/* static/css/common.css - 全局响应式样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 14px;
}
body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
/* 容器响应式 */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
/* 表单控件通用样式 */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #409EFF;
}
/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #409EFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.btn:hover {
    background: #337ecc;
}
/* 标题样式 */
.title {
    font-size: 18px;
    color: #409EFF;
    border-left: 4px solid #409EFF;
    padding-left: 10px;
    margin-bottom: 20px;
}
/* 提示信息 */
.success {color: #67C23A;}
.error {color: #F56C6C;}
.tips {color: #909399; font-size: 12px; margin-top: 5px;}
/* 底部版权 */
.footer {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 移动端适配（屏幕<768px） */
@media (max-width: 768px) {
    html {font-size: 13px;}
    .container {
        width: 95%;
        margin: 10px auto;
        border-radius: 5px;
    }
    .main {padding: 15px !important;}
    .btn {
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }
    .form-group {margin-bottom: 10px !important;}
    /* 后台侧边栏适配 */
    .sidebar {
        width: 100% !important;
        display: flex;
        overflow-x: auto;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
    }
    .sidebar a {
        flex: none;
        padding: 10px 15px !important;
        border-bottom: none !important;
        border-right: 1px solid #f5f5f5 !important;
    }
    .container-flex {
        flex-direction: column !important;
    }
    .main-content {
        margin: 10px !important;
    }
    /* 表格适配 */
    table {
        font-size: 12px;
    }
    th, td {
        padding: 8px 5px !important;
    }
}

/* 平板适配（768-992px） */
@media (min-width: 768px) and (max-width: 992px) {
    .container {
        width: 90%;
        margin: 20px auto;
    }
}