<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="csrf-token" content="{{ csrf_token() }}"/>
    <title>{{ env('APP_ENV').__('auto.管理控制台') }}</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="/assets/vendors/iconfonts/mdi/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="/assets/vendors/css/vendor.bundle.base.css">
    <link rel="stylesheet" type="text/css" href="/assets/wangEditor/dist/css/wangEditor.min.css">
    <!-- endinject -->
    <!-- inject:css -->
    <link rel="stylesheet" href="/assets/css/style.css">
    <!-- endinject -->
    <link rel="shortcut icon" href="/assets/images/favicon.png"/>

    <script src="/assets/js/jquery-3.0.0.min.js"></script>
    {{--datetimer--}}
    <link rel="stylesheet" id=cal_style type="text/css" href="/assets/datetimer/dist/flatpickr.min.css">
    <script src="/assets/datetimer/src/flatpickr.js"></script>
    <script src="/assets/datetimer/src/flatpickr.l10n.zh.js"></script>

    <script src="/assets/js/function.js"></script>

    <style>
        /* 基础样式 */
        html, body {
            background-color: #f2edf3;
        }

        .main-panel {
            max-width: 100%;
            overflow-x: scroll;
            background-color: #f2edf3;
        }

        .content-wrapper {
            background-color: #f2edf3;
        }

        .stretch-card > .card {
            width: 100%;

        }

        /*!*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*!*/
        /*::-webkit-scrollbar {*/
        /*    width: 5px;*/
        /*    height: 20px;*/
        /*    background-color: #F5F5F5;*/
        /*}*/

        /*!*定义滚动条轨道 内阴影+圆影*!*/
        /*::-webkit-scrollbar-track {*/
        /*    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);*/
        /*    border-radius: 10px;*/
        /*    background-color: #F5F5F5;*/
        /*}*/

        /*!*定义滑块 内阴影+圆角*!*/
        /*::-webkit-scrollbar-thumb {*/
        /*    border-radius: 10px;*/
        /*    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);*/
        /*    background-color: #b66dff;*/
        /*}*/

        /* 表格响应式容器 */
        .table-responsive {
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* 移动端响应式优化 */
        @media screen and (max-width: 991px) {
            /* 表单 form-inline 适配 - 移动端自动堆叠 */
            .form-inline,
            .well.form-inline {
                flex-direction: column !important;
                align-items: stretch !important;
            }

            .form-inline > div,
            .well.form-inline > div {
                display: flex !important;
                flex-wrap: wrap !important;
                gap: 8px 10px;
                align-items: center;
            }

            .form-inline spen,
            .well.form-inline spen {
                display: block;
                width: 100%;
                padding-left: 0 !important;
                font-weight: 600;
                font-size: 0.85rem;
                margin-top: 4px;
            }

            .form-inline .form-control,
            .well.form-inline .form-control,
            .form-inline select.form-control,
            .well.form-inline select.form-control {
                width: 100% !important;
                max-width: 100% !important;
                flex: 1 1 100%;
                box-sizing: border-box;
            }

            .form-inline input[type="datetime-local"],
            .well.form-inline input[type="datetime-local"] {
                width: 100% !important;
                max-width: 100% !important;
                flex: 1 1 100%;
            }

            .form-inline br,
            .well.form-inline br {
                display: none;
            }

            /* 按钮行保持横排 */
            .form-inline .btn,
            .form-inline input[type="submit"],
            .well.form-inline .btn,
            .well.form-inline input[type="submit"] {
                flex: 0 0 auto;
                min-width: 70px;
            }

            /* 内容区域优化 */
            html, body {
                background-color: #f2edf3 !important;
                min-height: 100vh;
            }

            .main-panel {
                background-color: #f2edf3 !important;
                min-height: 100vh;
                width: 100% !important;
            }

            .content-wrapper {
                padding: 1.5rem 1rem !important;
                background-color: #f2edf3 !important;
                min-height: 100vh;
                width: 100% !important;
            }

            /* 修复row容器宽度 */
            .row {
                margin-left: 0 !important;
                margin-right: 0 !important;
                width: 100% !important;
            }

            /* 修复列宽度 */
            .col-lg-12, .grid-margin {
                padding-left: 0 !important;
                padding-right: 0 !important;
                width: 100% !important;
            }

            .stretch-card {
                width: 100% !important;
            }

            .page-header {
                flex-direction: column;
                align-items: flex-start !important;
                margin-bottom: 1rem;
            }

            .page-header .breadcrumb {
                margin-top: 0.5rem;
                font-size: 0.8rem;
            }

            .page-title {
                font-size: 1.1rem !important;
            }

            .card {
                margin-bottom: 1rem;
                width: 100% !important;
                background-color: #fff !important;
            }

            .card-body {
                padding: 1rem !important;
                width: 100% !important;
                background-color: #fff !important;
            }

            .card-title {
                font-size: 0.95rem !important;
                margin-bottom: 0.75rem !important;
            }

            /* 按钮适配 */
            .btn-sm {
                font-size: 0.75rem !important;
                padding: 0.375rem 0.75rem !important;
            }

            .btn-icon-text i {
                font-size: 0.875rem !important;
            }

            /* 表格优化 - 保持水平滚动 */
            .table-responsive {
                margin: 0 -1rem;
                padding: 0 1rem;
            }

            .table-bordered {
                font-size: 0.8rem;
                margin-bottom: 1rem;
            }

            .table-bordered th,
            .table-bordered td {
                padding: 0.5rem !important;
                white-space: nowrap;
                vertical-align: middle;
            }

            /* ID列固定 */
            .table-bordered th:first-child,
            .table-bordered td:first-child {
                position: sticky;
                left: 0;
                background: #fff;
                z-index: 2;
                box-shadow: 2px 0 3px rgba(0,0,0,0.05);
            }

            .table-bordered thead th:first-child {
                z-index: 3;
                background: #f8f9fa;
            }

            /* 头像优化 */
            .avatar {
                max-width: 30px !important;
                max-height: 30px !important;
                border-radius: 50%;
            }

            /* 操作列按钮优化 */
            .table-bordered td:last-child {
                min-width: 200px;
            }

            .table-bordered td:last-child button {
                margin: 2px;
                padding: 0.25rem 0.5rem !important;
                font-size: 0.7rem !important;
            }

            /* 分页优化 */
            .box-footer {
                font-size: 0.75rem;
                padding: 0.5rem 0;
            }

            .pagination {
                flex-wrap: wrap;
                justify-content: center;
                margin-top: 0.5rem;
            }

            .page-item {
                margin: 2px;
            }

            .page-link {
                padding: 0.375rem 0.75rem;
                font-size: 0.75rem;
            }
        }

        /* 更小屏幕优化 */
        @media screen and (max-width: 576px) {
            .content-wrapper {
                padding: 1rem 0.5rem !important;
            }

            .page-title {
                font-size: 1rem !important;
            }

            .card-body {
                padding: 0.75rem !important;
            }

            .table-bordered {
                font-size: 0.75rem;
            }

            .table-bordered th,
            .table-bordered td {
                padding: 0.4rem !important;
            }

            .btn-sm {
                font-size: 0.7rem !important;
                padding: 0.3rem 0.6rem !important;
            }

            .table-bordered td:last-child button {
                font-size: 0.65rem !important;
                padding: 0.2rem 0.4rem !important;
            }
        }

    </style>
</head>

<body style="height:100%;">

<script src="/assets/layer/layer.js"></script>
<script src="/assets/wangEditor/dist/js/wangEditor.min.js"></script>
@yield('base')
<!-- plugins:js -->
<script src="/assets/vendors/js/vendor.bundle.base.js"></script>
<script src="/assets/vendors/js/vendor.bundle.addons.js"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<!-- End plugin js for this page-->
<!-- inject:js -->
<script src="/assets/js/off-canvas.js"></script>
<script src="/assets/js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page-->
<script src="/assets/js/dashboard.js"></script>
<script src="/assets/js/common.js"></script>
<!-- <script src="/assets/js/chart.js"></script> -->


<!-- End custom js for this page-->

<!-- 表格滚动包裹脚本 -->
<script src="/js/table-wrapper.js"></script>

</body>

</html>
