html, body {
    height: 100%;
    width: 100%;
    font-size: 16px;
    color: #666;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
    padding-top: 3em;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* navbar保持固定高度 */
body > nav,
body > .navbar {
    flex: 0 0 auto;
}

/* 主要内容区域可以扩展 */
body > .container,
body > main,
body > .main-content,
body > .wrapper {
    flex: 1 0 auto;
}

.container{
    padding: 0px 15px;
}

.footer .container {
    padding: 0px 15px;
}

.is-ipad{
    display: none;
}

/* 顶部相关开始 */
.navbar-brand {
    line-height: 60px;
    padding: 0px 15px;
}

.navbar-white {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.navbar-white .navbar-header {
    width: 100%;
}

.navbar-white .navbar-brand {
    width: 100%;
    text-align: center;
    height: 60px;
    font-size: 1em;
}

.navbar-white .navbar-nav {
    height: 60px;
    display: flex;
    align-items: center;
    display: none;
}

.navbar-white .navbar-nav > li {
    display: flex;
    align-items: center;
    height: 60px;
}

.navbar-white .navbar-nav > li > a {
    line-height: 1;
    padding: 0 15px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.navbar-white .navbar-nav > li:last-child > a {
    border-right: none;
}

.navbar-white .navbar-nav > li > a:hover {
    color: #666;
}

.nav-hotline {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 15px;
    color: #ff6b6b;
}

.nav-hotline .glyphicon {
    margin-right: 5px;
    color: #ff6b6b;
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}


/* 移动端banner样式 */
.mobile-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    height: 3em;
    line-height: 3em;
    border-color: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.mobile-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100%;
}

.mobile-back.fa{
    font-size: 1.25em;
}

.mobile-title {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.mobile-menu.fa{
    font-size: 1.25em;
}

/* 移动端侧边菜单 */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.mobile-sidebar-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #5a5a5a;
    z-index: 1002;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
    font-size: 1.5em;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 15px;
    text-align: right;
}

.close-btn {
    color: #fff;
    font-size: 1.25em;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.sidebar-menu li a {
    display: block;
    color: #fff;
    line-height: 3em;
    height: 3em;
    text-decoration: none;
    padding-left: 3em;
}

.sidebar-menu li.active a {
    color: #ff6b6b;
}

.sidebar-hotline {
    text-align: center;
    color: #fff;
    height: 3em;
    line-height: 3em;
}

.sidebar-hotline .glyphicon {
    margin-right: 8px;
}

.sidebar-footer {
    text-align: center;
    color: #fff;
    height: 4em;
    line-height: 4em;
    background: #333;
}

.sidebar-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5em;
}

.sidebar-footer span {
    margin: 0 0.5em;
}

/* PC端navbar默认隐藏 */
.pc-navbar {
    display: none;
}

/* 顶部相关结束 */

/* 底部相关开始 */
.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 0px;
    font-size: 0.85em;
}

.footer p {
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
}

.footer a:hover {
    color: #fff;
}
/* 底部相关结束 */

/* 左右布局开始 */
.left-sidebar {
    display: none;
}

/* 左右布局结束 */

/* 空记录状态 */
.empty-state {
    text-align: center;
    padding: 15px;
    color: #999;
    position: relative;
}

.empty-state img {
    width: 95%;
    height: auto;
}

.empty-state p {
    position: absolute;
    top: 65%;
    left: 15px;
    right: 15px;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover, a:focus {
    text-decoration: none;
}

a:active,
a:focus,
a:link,
a:visited {
    border: none;
    outline: none;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}
.pagination > li > a, .pagination > li > span {
    height: 2em;
    line-height: 1.9em;
    min-width: 2em;
    padding: 0 0.5em;
    margin: 5px;
}

.pagination > li > span.rows{
    border: none;
}

.pagination > li > span.rows input,
.pagination > li > span.rows button
{
    height: 2em;
    line-height: 1.9em;
    width: 3em;
    padding: 0px;
    text-align: center;
    margin-top: -1px;
    border: 1px solid #ddd;
}

.pagination > li > span.rows:hover,
.pagination > li > span.rows:active,
.pagination > li > span.rows:focus{
    background: none;
}

.pagination-section {
    text-align: center;
    padding: 15px 0px;
}

.pagination {
    justify-content: center;
    margin: 0;
}

.pagination .page-item .page-link {
    color: #666;
    border-radius: 5px;
    margin: 0 2px;
    border: 1px solid #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
}

/* 登录弹窗样式 */
.login-modal {
    padding: 0px 40px;
}

.login-modal .modal-form {
    padding: 10px 0;
}

.login-modal .form-group {
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.login-modal .form-group label {
    width: 4em;
    font-size: 1em;
    flex-shrink: 0;
    height: 3em;
    line-height: 3em;
    font-weight: normal;
    margin-bottom: 0;
}

.login-modal .form-input {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    height: 3em;
    line-height: 3em;
}

.login-modal .form-input:focus {
    outline: none;
}

.login-modal .slider-verify {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
    user-select: none;
}

/* 任务一：提示文字标签 */
.login-modal .slider-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85em;
    z-index: 1;
}

/* 任务二：滑块滑过的区域背景色 */
.login-modal .slider-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    border-radius: 5px;
    height: 100%;
    background: #ffd9d9;
    z-index: 2;
}

.login-modal .slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 0.9em;
    z-index: 3;
    color: white;
    user-select: none;
}

.login-modal .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-modal .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.login-modal .radio-label input[type="radio"] {
    margin-right: 5px;
}

.login-modal .form-group-block {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
}

.login-modal .form-group-block label {
    width: auto;
    margin-bottom: 0px;
}

.login-modal .form-group-block label {
    height: 2em;
    line-height: 2em;
}

.login-modal .form-actions {
    margin-top: 10px;
}

.login-modal .checkbox-group {
    border-bottom: none;
}

.login-modal .checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 5px;
    margin-bottom: 0px;
}

.login-modal .checkbox-group label {
    width: auto;
    margin-bottom: 0px;
}

.login-modal .checkbox-group a {
    color: #ff6b6b;
}

.login-modal .submit-btn {
    width: 100%;
    padding: 15px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-modal .submit-btn:hover {
    background: #ff5252;
}

@media (min-width: 768px) and (max-width: 1200px) {
    html, body {
        font-size: 24px;
    }

    .is-ipad{
        display: block;
    }

    .mobile-banner-content {
        width: 750px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .mobile-sidebar {
        width: 380px;
        left: -380px;
    }

    .empty-state img {
        width: 65%;
    }

    .pagination-section {
        padding: 20px 0px;
    }

    .footer .container {
        width: 750px;
        padding: 0px 30px;
    }
}

@media (min-width: 1024px) and (max-width: 1200px){
    html, body {
        font-size: 32px;
    }

    .mobile-banner-content {
        width: 970px;
        margin: 0 auto;
        padding: 0 50px;
    }

    .mobile-sidebar {
        width: 480px;
        left: -480px;
    }
    
    .empty-state img {
        width: 65%;
    }

    .pagination-section {
        padding: 30px 0px;
    }

    .footer .container {
        width: 970px;
        padding: 0px 50px;
    }
}

@media (min-width: 1200px) {
    html, body {
        font-size: 16px;
    }

    body {
        padding-top: 60px;
    }

    .mobile-banner {
        padding: 0px 15px;
    }

    .navbar-white .navbar-nav {
        display: block;
    }

    .navbar-white .navbar-header {
        width: 300px;
    }

    .navbar-white .navbar-brand {
        text-align: left;
    }

    .user-layout {
        display: flex;
        margin-bottom: 15px;
    }

    .empty-state img {
        width: 45%;
    }

    .pagination > li > a, .pagination > li > span {
        height: 44px;
        line-height: 44px;
        min-width: 44px;
    }

    .pagination > li > span.rows input, .pagination > li > span.rows button {
        height: 44px;
        line-height: 44px;
    }

    .pagination > li > span.rows button {
        width: 60px;
    }
    
    /* 左侧导航 */
    .left-sidebar {
        display: block;
        width: 220px;
        background: #fff;
        padding: 15px 0;
        margin-top: 15px;
        border-radius: 0.5em;
    }
    
    .sidebar-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .sidebar-menu li {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #666;
        cursor: pointer;
        transition: background 0.3s;
        border-left: 3px solid transparent;
    }
    
    .sidebar-menu li.active {
        background: #fff;
        color: #ff6b6b;
        border-left-color: #ff6b6b;
    }
    
    .sidebar-menu li .glyphicon {
        margin-right: 10px;
        font-size: 0.9em;
    }

    /* 右侧内容区域 */
    .right-content {
        flex: 1;
    }

    /* PC端navbar显示 */
    .pc-navbar {
        display: block;
    }

    /* PC端logo样式 */
    .navbar-logo {
        float: left;
        padding: 0;
        margin-right: 20px;
        height: 60px;
        line-height: 60px;
    }

    .navbar-logo img {
        height: 56px;
        width: auto;
    }

    /* 隐藏移动端banner */
    .mobile-banner,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}