@charset "utf-8";

/* ============================================================
   福建中鹭流向查询系统 - 重构后的公共样式表
   原内联样式提取整合，统一维护
   ============================================================ */

/* -------------------- 1. CSS Reset & Base -------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    
}

html {
    -webkit-text-size-adjust: none;
    min-width: 340px;
    font-size: 14px;
}

body {
    min-width: 340px;
    font-size: 14px;
    color: #000;
}

img {
    max-width: 100%;
    max-height: 100%;
    border: none;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover, a:visited, a:active {
    text-decoration: none;
    color: #333;
}

ul, ol, li {
    list-style: none;
}

input, textarea, button, select {
    outline: none;
    padding: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

textarea {
    padding: 10px;
    resize: none;
}

/* -------------------- 2. Utility Classes -------------------- */
.flex    { display: flex; }
.acenter { align-items: center; }
.astart  { align-items: flex-start; }
.aend    { align-items: flex-end; }
.jcenter { justify-content: center; }
.jstart  { justify-content: flex-start; }
.jend    { justify-content: flex-end; }
.jbetween{ justify-content: space-between; }
.wrap    { flex-wrap: wrap; }
.column  { flex-direction: column; }
.nowrap  { white-space: nowrap; }
.tflow   { text-overflow: ellipsis; }
.tcenter { text-align: center; }
.tleft   { text-align: left; }
.tright  { text-align: right; }
.boxz    { box-sizing: border-box; }
.c3      { color: #333; }
.c6      { color: #666; }
.hide    { display: none; }
.inscribe{ padding: 15px; }

/* -------------------- 3. Layout -------------------- */
.main {
    margin-top: 203px;
    position: relative;
    background: #fff;
}

.main_right {
    width: calc(100% - 230px);
    margin-left: 230px;
    margin-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* -------------------- 4. Header & Navigation -------------------- */
.header {
    height: 108px;
    padding: 10px;
}

.header ul li {
    margin-right: 20px;
}

.header ul li a {
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.header ul li a svg {
    margin-right: 6px;
}

nav {
    background: #0D2F5F;
}

nav ul {
    padding-left: 230px;
}

nav ul li {
    width: calc(100% / 7);
}

nav a,
nav a:visited,
nav a:hover,
nav a:active {
    padding: 15px 5px;
    color: #fff;
    border-bottom: 3px solid #0D2F5F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

nav a.cur,
nav a:hover,
.mnav_ul li.cur,
.mnav_ul li:hover {
    border-color: #3383F2;
    background: #3383F2;
    font-weight: bold;
}

.mnav_ul a,
.mnav_ul a:visited,
.mnav_ul a:hover,
.mnav_ul a:active {
    color: #fff;
}

nav a svg {
    margin-right: 10px;
}

/* Mobile navigation */
.mnav {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #0D2F5F;
    padding: 10px;
    
}

.mnav_ul {
    background: #0D2F5F;
    display: none;
}

.mnav_ul a {
    color: #fff;
    padding: 15px;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.mnav_ul a svg {
    margin-right: 6px;
}

.mnav_ul li {
    border-bottom: 1px solid #dfdfdf;
}

.mnav_ul li:last-child {
    border: none;
}

/* -------------------- 5. Sidebar (Left Panel) -------------------- */
.main_left {
    width: 230px;
    padding: 10px;
    background: #0D2F5F;
    color: #fff;
    min-width: 230px;
    position: fixed;
    top: 203px;
    left: 0;
    height: 100%;
    z-index: 999;
    overflow-y: scroll;
}

p.ptitle {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}

div.info div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

div.info p {
    display: flex;
    align-items: center;
    line-height: 30px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

div.info p label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.info p input[type="checkbox"] {
    margin-right: 6px;
    background: none;
    border: 1px solid #fff;
    position: absolute;
    top: 9px;
    left: 0;
    outline: none;
    z-index: 99;
}

img.down {
    max-height: 16px;
    transition: all 0.3s;
}

img.down.down_r {
    transform: rotate(-90deg);
}

div.date {
    width: 100%;
    max-width: 180px;
    margin: auto;
}

div.info,
div.date {
    padding: 10px 0;
}

div.date input,
div.date_m input {
    background: none;
    border: 1px solid #fff;
    text-align: center;
    color: #fff;
    border-radius: 0;
    height: 30px;
    line-height: 30px;
    width: 100%;
    box-sizing: border-box;
}

.date_m {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

div.date_m input {
    width: 140px;
}

a.button {
    background: #1A7FFD;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto auto 10px auto;
    padding: 8px 0;
    cursor: pointer;
    max-width: 180px;
}

a.button svg {
    margin-right: 6px;
}

div.abutton {
    margin: 20px 0 60px 0;
}

/* Checkbox custom style */
i.Filter-checkbox-status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 13px;
    height: 13px;
    border-radius: 1px;
    margin-right: 6px;
}

div.info p input[type="checkbox"]:checked + i {
    background-color: #3383F2;
    border-color: #3383F2;
}

div.info p input[type="checkbox"]:checked + i + label {
    font-weight: bold;
}

/* Mobile sidebar */
.main_left_m {
    background: #0D2F5F;
    color: #fff;
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    display: none;
}

.main_left_m a.button {
    margin: unset;
    width: 140px;
    margin-right: 12px;
}

.main_left_m a.button:last-child {
    margin-right: 0 !important;
}

.main_left_m dl dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main_left_m ul {
    position: relative;
}

.main_left_m ul li.ptitle {
    height: 20px;
    line-height: 20px;
}

.main_left_m dl {
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 9;
    background: #0D2F5F;
    box-shadow: 1px 1px 4px #fff;
    width: 100%;
}

.main_left_m dl dd p {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 30px;
    
}

.main_left_m dl dd p label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main_left_m dl dd input {
    margin-right: 6px;
}

.date_m {
    margin: 10px 0;
}

.date_sm {
    display: none;
}

.date_pc {
    display: block;
}

/* -------------------- 6. Table Styles -------------------- */
table.tble {
    border-collapse: collapse;
    min-width: 800px;
}

table.tble tr.bg {
    background: #0D2F5F;
    color: #fff;
}

table.tble th {
    height: 40px;
    border: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 16px;
}

table.tble td {
    padding: 5px 10px;
    height: 40px;
    white-space: nowrap;
    font-size: 16px;
}

/* Floating duplicate table header */
div.table_head {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 8;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: none;
    background: #fff;
    padding-top: 20px;
}

div.table_head div {
    display: flex;
    align-items: center;
    background: #0D2F5F;
    color: #fff;
    height: 40px;
    line-height: 40px;
}

div.table_head div span {
    display: block;
    flex-shrink: 0;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.table-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.table-scroll-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    display: none;
}

.table-scroll-bar .table-scroll-track {
    height: 1px;
}

.table-scroll-bar::-webkit-scrollbar {
    opacity: 1;
    height: 10px;
}

.table-scroll-bar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .5);
    border-radius: 6px;
    border: 2px solid #ffffff;
}

.table-scroll-bar::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

/* -------------------- 7. Form Styles -------------------- */
#edit_form {
    margin: 195px 0 0 40px;
}

#edit_form p span {
    border-left: 4px solid #000;
    padding-left: 6px;
}

#edit_form input {
    height: 40px;
    line-height: 40px;
    width: 400px;
}

#edit_form .pspan {
    margin-top: 40px;
}

#edit_form .p {
    margin-top: 20px;
    padding-left: 6px;
}

#edit_form .p label {
    color: #666;
    display: inline-block;
    width: 90px;
    height: 40px;
    line-height: 40px;
}

#edit_form .p input[type="submit"] {
    width: 192px;
    background: #0D2F5F;
    border-color: #0D2F5F;
    color: #fff;
}

#edit_form textarea {
    width: 390px;
    resize: none;
    height: 240px;
}

/* -------------------- 8. Pagination -------------------- */
div.page {
    padding: 0 0 20px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: #fff;
    width: 100%;
    padding-left: 230px;
}

.link_page {
    height: 36px;
    text-align: center;
    line-height: 36px;
    font-size: 14px;
    margin: 0 -1px 0 0;
    text-decoration: none;
    color: #666;
    padding: 4px 8px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.link_page.cur {
    background: #0D2F5F;
    border-color: #0D2F5F;
    color: #fff;
}

/* Page loading bar */
div.page div.line {
    width: 100%;
    
    margin-bottom: 10px;
    position: relative;
    height: 8px;
    display: none;
}

div.page div.line div {
    height: 8px;
    background: #7F7F7F;
    border-radius: 10px;
    position: absolute;
    width: 90%;
    top: 0;
    left: 0;
}

/* -------------------- 9. Back to Top -------------------- */
.gotop {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .4);
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 999999;
    cursor: pointer;
    display: none;
}

/* -------------------- 10. Scrollbar -------------------- */
::-webkit-scrollbar {
    -webkit-appearance: none;
    opacity: 0;
}

::-webkit-scrollbar:vertical {
    width: 10px;
}

::-webkit-scrollbar:horizontal {
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .5);
    border-radius: 6px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
    border-radius: 0;
    background-color: #ffffff;
}

/* -------------------- 11. Search opacity fix -------------------- */
#search {
    opacity: 1;
}

/* -------------------- 12. Index2 table fix -------------------- */
.index2-table td {
    padding: 5px;
}

/* -------------------- 13. Media Queries -------------------- */
@media screen and (max-width: 1366px) {
    body, html {
        font-size: 12px;
    }
    .main_left {
        width: 200px !important;
        min-width: 200px !important;
    }
    .main_right {
        margin-left: 200px !important;
        width: calc(100% - 200px) !important;
    }
    div.page {
        padding-left: 200px !important;
    }
    nav ul {
        padding-left: 200px !important;
    }
    .link_page {
        font-size: 12px !important;
    }
    .header ul li a,
    nav a,
    nav a:visited,
    nav a:hover,
    nav a:active,
    .mnav_ul a,
    table.tble th,
    table.tble td {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    div.page {
        padding-left: 0 !important;
    }
    .main {
        flex-wrap: wrap;
    }
    .date_pc {
        display: none;
    }
    .main_left_m {
        display: block;
    }
    .main_right {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .main {
        margin-top: 90px;
    }
    #edit_form {
        margin: 100px 0 0 40px;
    }
    div.header,
    nav {
        display: none !important;
    }
    .mnav {
        display: flex;
    }
    #search {
        opacity: 0;
    }
    .main_left_m {
        display: none;
    }
    .main_left {
        width: 50% !important;
        margin: 0;
        position: fixed;
        top: 70px;
        left: unset;
        right: -60%;
        padding-bottom: 40px;
        z-index: 99;
    }
    a.button {
        width: 100%;
        max-width: 180px;
    }
}

@media screen and (max-width: 450px) {
    #edit_form {
        margin: 100px 0 0 15px;
    }
    #edit_form input {
        width: 220px;
    }
    #edit_form textarea {
        width: 210px;
        height: 140px;
    }
    #edit_form .p input[type="submit"] {
        width: 232px;
    }
}
