a {
    text-decoration: none;
}

.banner {
    width: 100%;
    height: 360px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.crumbs {
    font-size: 14px;
    position: absolute;
    width: 100%;
    bottom: 10px;
    color: white;
    text-align: left;
}

.crumbs a {
    color: white;
    text-decoration: none;
}

.banner > img {
    width: 1920px;
}

.bar {
    height: 64px;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.bar ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.bar ul li {
    text-align: center;
    height: 60px;
    padding: 0 5px;
    margin: 0 30px;
}

.bar ul .bar-active {
    border-bottom: 4px solid #3B83F2;
}

.bar ul li a {
    line-height: 60px;
    font-size: 16px;
    color: #555555;
}

.bar ul .bar-active a {
    color: #111111;
}

.content-box {
    width: 100%;
    background: #F0F4FA;
    padding-top: 30px;
    padding-bottom: 30px;
}

.white-box {
    background-color: white;
    padding: 20px 30px;
}

.gray-box {
    background-color: #F0F4FA;
    padding: 20px 30px;
}

.flex {
    display: flex;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.flex-vertical-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* train start */
.train {
    & > .gray-box > .title {
        font-size: 38px;
        font-weight: bold;
        color: #333333;
        text-align: center;
    }

    & > .gray-box > .sub-title {
        margin-top: 7px;
        font-size: 16px;
        color: #666666;
        text-align: center;
    }

    & .search-box {
        margin-top: 20px;
        padding: 20px 20px 5px 20px;
        background-color: #ffffff;
        box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.1);
        border-radius: 10px;

        & .layui-form-item {
            & > label {
                display: inline-block;
                color: #666666;
                margin-bottom: 3px;
            }

            & .layui-input-prefix i {
                color: #999999;
            }
        }

        & #formBtn {
            position: relative;
            top: 18px;
            width: 100%;
        }
    }

    & .table-box {
        margin-top: 20px;
        border-radius: 10px;

        & .layui-card-header .title {
            font-size: 18px;
            font-weight: bold;
            color: #333333;
        }

        & .layui-card-body {
            padding: 0 0 20px 0;

            & table {
                width: 100%;
                margin: 0;

                & th {
                    font-size: 14px;
                    font-weight: bold;
                    color: #333333;
                    text-align: center;
                    background-color: #f5f7fa;
                    border-right: 1px solid #f5f7fa;

                    & span {
                        font-size: 12px;
                        font-weight: normal;
                        color: #999999;
                    }

                    &:not(:first-child) {
                        width: 85px;
                    }
                }

                & td {
                    padding: 0;

                    &.plan-item {
                        text-align: center;
                        vertical-align: center;

                        &.plan-abundant {
                            background-color: #e8f3ff;
                            color: #165dff;
                        }

                        &.plan-abundant::after {
                            content: "充足";
                        }

                        &.plan-full {
                            background-color: #f2f3f5;
                            color: #9ba4ad;
                        }

                        &.plan-full::after {
                            content: "已满";
                        }
                    }

                    & .layui-collapse {
                        border: none;

                        & .layui-colla-content {
                            font-size: 12px;

                            & i {
                                margin-right: 5px;
                                color: #165dff;
                            }
                        }
                    }
                }
            }

            & .btn-more {
                font-size: 14px;
                color: #176aff;
            }
        }
    }
}

/* train end */
/* ship-old start */
.ship-old {
    & .white-group-box {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.2);

        & .group-content {

            & .layui-form-item {
                margin-bottom: 0;
                display: flex;

                & .layui-input-prefix i {
                    color: #999999;
                }

                & .layui-input-wrap {
                    flex: 1;
                }

                & .icon-box {
                    margin-left: 10px;
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    border-radius: 50%;
                    background-color: #eef3fd;
                    color: #3567df;
                    font-size: 18px;
                }
            }

            & #formBtn {
                position: relative;
                width: 100%;
            }

            & .group-tab-list {
                display: flex;
                justify-content: space-between;
                flex-wrap: nowrap;

                & li {
                    width: 100%;
                    height: 40px;
                    line-height: 40px;
                    border-bottom: 2px solid #e4e7ed;
                    font-size: 14px;
                    color: #333333;
                    cursor: pointer;
                    display: flex;

                    & div{
                        height: 40px;
                        border-bottom: 2px solid #e4e7ed;
                    }

                    &.active {
                        color: #3567df;

                        & div{
                            border-bottom: 2px solid #3567df;
                        }
                    }
                }
            }

            & .group-tab-content{
                min-height: 50px;
            }
        }
    }

    & .travel-card {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        border-radius: 10px;
        background-color: #3567df;

        & .card-left, & .card-right {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            font-size: 14px;
            line-height: 25px;
            color: #ffffff;
        }

        & .card-right {
            align-items: flex-end;
        }
    }

    & .right-header {
        display: flex;
        justify-content: space-between;
        align-items: center;

        & .btn-group {
            display: flex;
            align-items: center;

            & .layui-btn {
                padding: 0 20px;
                height: 30px;
                line-height: 30px;
                background-color: #3567df;

                &.btn-white {
                    background-color: #ffffff;
                    color: #666666;
                }
            }
        }
    }
}

/* ship-old end */
/* ship start */
.ship {
    & .gray-box{
        padding: 0 30px;
    }

    & .white-group-box {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.2);

        & .group-title {
            font-size: 16px;

            & i {
                color: #165dff;
                margin-right: 5px;
            }
        }

        & .group-content {
            margin-top: 10px;

            & .layui-form-item {
                margin-bottom: 5px;

                & > label {
                    display: inline-block;
                    color: #666666;
                    margin-bottom: 3px;
                }

                & .layui-input-prefix i {
                    color: #999999;
                }

                & .layui-input-inline {
                    width: 122px;
                }
            }

            & #formBtn {
                position: relative;
                top: 18px;
                width: 100%;
            }

            & .group-tab-list {
                display: flex;
                justify-content: space-between;
                flex-wrap: nowrap;

                & li {
                    width: 100%;
                    height: 40px;
                    line-height: 40px;
                    border-bottom: 2px solid #e4e7ed;
                    font-size: 14px;
                    color: #333333;
                    cursor: pointer;
                    display: flex;

                    & div{
                        height: 40px;
                        border-bottom: 2px solid #e4e7ed;
                    }

                    &.active {
                        color: #3567df;

                        & div{
                            border-bottom: 2px solid #3567df;
                        }
                    }
                }
            }

            & .group-tab-content{
                min-height: 50px;
            }
        }
    }

    /* layui-table 样式优化 - dataTable专属 */
    & .layui-table {
        margin-top: 0;
        margin-bottom: 20px;

        & th{
            border: none;
            border-bottom: 1px solid #0073dc;
            text-indent: 5px;
            font-size: 18px;
            font-weight: bold;
            color: #0073dc;
        }

        & td{
            border: none;
            text-indent: 5px;
        }

        /* 偶数行背景色（斑马纹效果） */
        & tbody tr:nth-child(even) {
            background-color: #fbfbfb;
        }
    }
}

/* ship end */
/* container start */
.container {
    & .white-group-box {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.2);

        & .group-title {
            font-size: 16px;

            & i {
                color: #165dff;
                margin-right: 5px;
            }
        }

        & .group-content {
            margin-top: 20px;

            & .layui-form-item {
                margin-bottom: 5px;

                & > label {
                    display: inline-block;
                    color: #666666;
                    margin-bottom: 3px;
                }

                & .layui-input-prefix i {
                    color: #999999;
                }
            }

            & #formBtn {
                position: relative;
                top: 18px;
                width: 100%;
            }

            & .gray-item {
                font-size: 16px;
                background-color: #f2f3f5;
                padding: 10px 15px;
                border-radius: 8px;

                & .item-label {
                    font-size: 14px;
                    color: #b6b2b3;
                    margin-bottom: 5px;
                }
            }

            & .status-group-box {
                margin: 20px 5px 0 5px;
                display: flex;
                justify-content: space-between;
                align-items: center;

                & .status-item {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    & .icon-box {
                        font-size: 18px;
                        color: #6b7280;
                        height: 45px;
                        width: 45px;
                        border-radius: 50%;
                        line-height: 45px;
                        background-color: #e5e7eb;
                        text-align: center;
                    }

                    & .item-title {
                        margin-top: 6px;
                        font-size: 12px;
                    }

                    & .item-status {
                        margin-top: 3px;
                        font-size: 12px;
                        color: #999999;
                    }
                }
            }

            & .history-group-box {
                margin: 20px 5px 0 5px;
                padding-left: 25px;
                border-left: 1px solid #eaecef;

                & .history-item {
                    padding: 10px 15px;
                    margin-bottom: 25px;
                    background-color: #f2f3f5;
                    min-height: 50px;
                    border-radius: 8px;

                    & .item-header {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;

                        & .item-title {
                            font-size: 16px;
                            color: #666666;
                            display: flex;
                            align-items: center;
                            gap: 5px;
                        }

                        & .item-tag {
                            font-size: 12px;
                            color: #666666;
                            padding: 2px 8px;
                            border-radius: 10px;

                            &::before{
                                content: "未开始";
                            }
                        }
                    }

                    & .item-content {
                        margin-top: 10px;
                        font-size: 14px;
                        display: flex;
                        justify-content: space-between;

                        & .content-item {
                            width: 50%;
                            color: #666666;
                        }
                    }

                    &.active {
                        background-color: #f3f7ff;
                        border: 1px solid #165dff;

                        & .item-tag {
                            color: #165dff;
                            background-color: #dde8ff;

                            &::before{
                                content: "进行中";
                            }
                        }
                    }

                    &.pass {
                        & .item-tag {
                            color: #7ed177;
                            background-color: #e1eedf;

                            &::before{
                                content: "已完成";
                            }
                        }
                    }

                    &.active .item-header .item-title,
                    &.pass .item-header .item-title{
                        color: #165dff;
                    }
                }
            }
        }
    }
}

/* container end */
/* cargo-list-dynamic-query start */
.cargo-list-dynamic-query {
    & .search-box {
        margin-top: 20px;
        padding: 20px 20px 5px 20px;
        background-color: #ffffff;
        box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.1);
        border-radius: 10px;

        & .layui-form-item {
            & > label {
                display: inline-block;
                color: #666666;
                margin-bottom: 3px;
            }

            & .layui-input-prefix i {
                color: #999999;
            }
        }

        & #formBtn {
            position: relative;
            top: 18px;
            width: 100%;
        }
    }
}
/* cargo-list-dynamic-query end */
/* yard start */
.yard {
    & > .gray-box > .title {
        font-size: 38px;
        font-weight: bold;
        color: #0e2f57;
    }

    & > .gray-box > .sub-title {
        margin-top: 7px;
        font-size: 16px;
        color: #666666;
    }

    & #search-btn {
        width: 100%;
    }

    & .location-box {

        & .layui-card-header {
            height: 50px;
            line-height: 50px;

            & .title {
                font-size: 18px;
                font-weight: bold;
                color: #0e2f57;
            }

            & .remark {
                font-size: 14px;
                color: #666666;
            }
        }

        & .layui-card-body {
            padding: 0;
            position: relative;

            & .pointer {
                cursor: pointer;
            }

            & .color-blue {
                color: #165dff;
            }

            & .color-green {
                color: #22c55f;
            }

            & .map-box {
                width: 100%;
                min-height: 500px;

                & .tdt-label {
                    background: none;
                    border: none;
                    font-size: 26px;
                    box-shadow: none;
                }

                & .info-window {
                    padding: 0;

                    & .info-window-title {
                        font-size: 16px;
                        font-weight: bold;
                        margin-bottom: 3px;
                    }
                }
            }

            & .map-legend {
                position: absolute;
                right: 20px;
                bottom: 20px;
                background-color: #ffffff;
                z-index: 1000;
                font-size: 16px;
                line-height: 30px;
                padding: 15px;
                box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.3);
                border-radius: 8px;
            }
        }

    }

    & .detail-box {

        & .layui-card-header {
            height: 50px;
            line-height: 50px;

            & .title {
                font-size: 18px;
                font-weight: bold;
                color: #0e2f57;
            }

            & .remark {
                font-size: 14px;
                color: #666666;
                display: flex;
                align-items: center;
                gap: 8px;

                & .layui-input {
                    height: 30px;
                    width: 100px;
                }
            }
        }

        & .layui-card-body {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            padding-bottom: 20px;

            & .item-box {
                border: 1px solid #E6E6E6;
                padding: 15px 20px;
                border-radius: 8px;
                width: 343px;

                & .item-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    & .item-title {
                        font-size: 18px;
                        font-weight: bold;
                        color: #0e2f57;
                    }

                    & .item-tag {
                        font-size: 12px;
                        line-height: 14px;
                        color: #2f6fff;
                        background-color: #dbeaff;
                        padding: 4px 8px;
                        border-radius: 8px;
                        letter-spacing: 2px;

                        &.item-tag-2 {
                            background-color: #dcfce8;
                            color: #3d9960;
                        }
                    }
                }

                & .item-content {
                    margin-top: 12px;

                    & .content-paragraph {
                        margin-top: 7px;
                        font-size: 14px;
                        color: #666666;
                    }

                    & i.fas {
                        color: #165dff;
                    }
                }
            }
        }
    }
}

/* yard end */