html {
    height: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    background-color: #F7F3EA;
    height: 100%;
}

.layer {
    padding: 20px;
}

.mt0 {
    margin-top: 0;
}

.mb0 {
    margin-bottom: 0;
}

.center {
    text-align: center;
}

.red {
    color: #A63D28;
}

.green {
    color: green;
}

.gray {
    color: #999;
}

.pointer {
    cursor: pointer;
}

.avatar-sm {
    width: 48px;
    height: 48px;
    border-radius:100%;
}

.layui-input-wrap .layui-icon {
    color: #d2d2d2;
}

.layui-table .meta span {
    margin-right: 10px;
}

.vip img {
    border: 3px solid orange;
}

.qrcode img {
    width: 160px;
    height: 160px;
}

.qrcode-sm img {
    width: 100px;
    height: 100px;
}

.img-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.img-viewer img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out;
    padding: 5px;
    cursor: zoom-out;
}

.kg-zoom img {
    max-width: 100%;
    cursor: zoom-in;
}

.breadcrumb {
    position: relative;
    margin-bottom: 20px;
}

.breadcrumb .share {
    position: absolute;
    top: 2px;
    /* 原为 right:-5px，故意外扩 5px 让图标贴边；
       手机上会直接顶出视口右侧产生横滚，改回 0 */
    right: 0;
}

.breadcrumb .share a {
    margin-right: 5px;
}

.wrap {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius:2px;
}

.no-records {
    padding: 20px;
    color: #999;
    text-align: center;
}

.no-records .icon .layui-icon {
    font-size: 60px;
}

.pager {
    margin-top: 20px;
    text-align: center;
}

.pager a {
    margin-right: 15px;
}

.loading {
    padding: 30px;
    text-align: center;
}

.layout-main {
    display: flex;
    justify-content: space-between;
}

.layout-content {
    width: 800px;
}

.layout-sidebar {
    width: 340px;
}

.label-110 .layui-form-label {
    width: 110px;
}

.label-110 .layui-input-block {
    margin-left: 140px;
}

#header {
    left: 0;
    top: 0;
    width: 100%;
    /* fixed 元素的 100% 在窄屏偶尔会被页面溢出内容带偏（实测师资列表页
       撑到 408），锁死视口宽，别让页头跟着横向跑 */
    max-width: 100vw;
    z-index: 1000;
    position: fixed;
    background-color: #1E1A17;
}

#header .layui-nav .layui-this:after,
#header .layui-nav .layui-nav-bar {
    background-color: #A63D28;
}

#main {
    flex: 1;
    margin-top: 80px;
    margin-bottom: 20px;
}

#footer {
    width: 100%;
    padding: 30px 0;
    background: #474443;
    text-align: center;
    font-size: 12px;
}

#header .logo {
    top: 0;
    left: 0;
    position: absolute;
    line-height: 60px;
}

.logo img {
    max-width: 185px;
    max-height: 60px;
}

.top-nav {
    margin-left: 185px;
}

#header .user {
    top: 0;
    right: 0;
    position: absolute;
}

.layer-search input {
    height: 75px;
    line-height: 75px;
    width: 500px;
    padding: 0 15px;
    font-size: 18px;
    border: none 0;
    background: none;
}

#header .layui-nav {
    background: none;
}

#footer .row {
    line-height: 18px;
    margin-bottom: 15px;
}

#footer .row:last-child {
    margin-bottom: 0;
}

#footer .contact {
    line-height: 24px;
}

#footer .slogan {
    margin-bottom: 14px;
    line-height: 20px;
}

#footer .slogan b,
#footer .slogan span {
    font-size: 13px;
    letter-spacing: .2em;
    color: #d8cfc6;
}

#footer .slogan b {
    font-weight: 600;
    color: #EFE9DC;
}

#footer .slogan i {
    display: inline-block;
    width: 1px;
    height: 11px;
    margin: 0 10px;
    vertical-align: -1px;
    background: rgba(255, 255, 255, .22);
}

#footer span, #footer a {
    color: #999;
}

#footer a:hover,
#footer .iconfont:hover {
    color: #fff;
}

#footer .nav a,
#footer .copyright span,
#footer .copyright a,
#footer .contact a {
    margin-right: 10px;
}

#footer .iconfont {
    font-size: 20px;
}

.layout-sidebar .loading {
    padding: 15px;
    text-align: center;
}

.layout-sidebar .sidebar {
    margin-bottom: 15px;
}

.page-info {
    min-height: 500px;
}

.index-wrap .layui-tabs-header {
    border: none;
}

.index-wrap .layui-tabs-body {
    padding-top: 20px;
    padding-bottom: 0;
}

.index-wrap .header {
    text-align: center;
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F5F1E7;
}

.index-wrap .simple {
    padding-top: 20px;
}

.index-course-list .course-card {
}

.index-course-list .course-card .info {
    border: 1px solid #eee;
}

.index-carousel {
    width: 1120px;
    height: 336px;
    text-align: center;
}

.index-carousel .carousel {
    width: 100%;
    height: 100%;
}

.search-form .query-input {
    width: 696px;
}

.search-form .search-btn {
    padding: 0 30px;
}

.search-tab {
    margin: 0;
}

.search-tab .layui-tabs-header {
    margin-bottom: 10px;
}

.search-tab .layui-tabs-body {
    padding: 10px 0;
}

.search-empty {
    padding: 50px 0;
    text-align: center;
}

.search-empty .icon {
    margin-bottom: 30px;
}

.search-empty .icon .layui-icon {
    font-size: 150px;
    color: #393D49;
}

.search-empty .text {
    color: #666;
    font-size: 18px;
}

.search-empty .text .query {
    color: #A63D28;
    padding: 0 5px;
}

.search-course-card {
    display: flex;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #F5F1E7;
}

.search-course-card:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.search-course-card .left {
    position: relative;
    margin-right: 15px;
}

.search-course-card .model {
    position: absolute;
    top: 15px;
    right: 15px;
}

.search-course-card .rating {
    position: absolute;
    top: 90px;
    right: 15px;
}

.search-course-card .rating .layui-icon {
    color: #ffb800;
    font-size: 14px;
}

.search-course-card .cover {
    width: 210px;
    height: 118px;
}

.search-course-card .cover img {
    width: 100%;
    height: 100%;
}

.search-course-card .info {
    width: 500px;
}

.search-course-card .title {
    margin-bottom: 10px;
    white-space: nowrap;
}

.search-course-card .summary {
    margin-bottom: 10px;
    line-height: 1.5em;
    max-height: 4.5em;
    color: #666;
    overflow: hidden;
    overflow-wrap: break-word;
}

.search-course-card .meta {
    color: #999;
}

.search-course-card .meta span {
    margin-right: 10px;
}

.search-course-card em {
    color: #A63D28;
    font-style: normal;
    padding: 0 3px;
}

.query-badge {
    padding: 2px 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.widget-card {
    position: relative;
}

.widget-card .more {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2;
}

.widget-card .more a {
    color: #666;
}

.article-info .title {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F5F1E7;
    word-break: break-word;
    font-size: 18px;
}

.article-info .content {
    margin-bottom: 20px;
}

.comment-box,
.review-card {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #F5F1E7;
}

.comment-box:last-child,
.review-card:last-child {
    border-bottom: none;
}

.comment-card {
    display: flex;
}

.comment-card .avatar {
    margin-right: 10px;
}

.comment-card .avatar img {
    width: 32px;
    height: 32px;
    border-radius:100%;
}

.comment-card .info {
    width: 100%;
}

.comment-card .user {
    margin-bottom: 15px;
    color: #666;
}

.comment-card .user .separator {
    margin: 0 10px;
}

.comment-card .content {
    margin-bottom: 15px;
    overflow-wrap: break-word;
    color: #666;
}

.comment-card .footer {
    display: flex;
    justify-content: space-between;
    line-height: 1.2em;
    color: #999;
}

.comment-card .footer .left,
.comment-card .footer .right {
    display: flex;
}

.comment-card .footer .left .column {
    margin-right: 10px;
}

.comment-card .footer .right .column {
    margin-left: 10px;
}

.comment-card .footer .action:hover {
    cursor: pointer;
}

.toolbar-sticky {
    position: fixed;
    top: 150px;
    margin-left: -85px;
}

.toolbar-sticky .item {
    margin-bottom: 15px;
    text-align: center;
}

.toolbar-sticky .item .icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin-bottom: 10px;
    border-radius:50%;
    background-color: #fff;
}

.toolbar-sticky .layui-icon {
    color: #999;
    cursor: pointer;
}

.toolbar-sticky .item .text {
    color: #999;
}

.toolbar-sticky .active,
.toolbar-sticky .layui-icon-star-fill {
    color: orange;
}

.toolbar-sticky .live-set .layui-icon,
.toolbar-sticky .live-set .text {
    color: #A63D28;
}

.course-list {
    margin-bottom: 20px;
}

.course-card {
    float: left;
    width: 100%;
    height: 230px;
    position: relative;
    background-color: #fff;
    border-radius:2px;
}

.course-card .model,
.course-card .type {
    position: absolute;
    top: 15px;
    right: 15px;
}

.course-card .rating {
    position: absolute;
    top: 130px;
    right: 15px;
}

.course-card .rating .layui-icon {
    color: #ffb800;
    font-size: 14px;
}

.course-card .cover {
    overflow: hidden;
}

.course-card .cover img {
    width: 275px;
    height: 155px;
    transition: all 0.6s;
}

.course-card .cover img:hover {
    transform: scale(1.2);
}

.course-card .info {
    padding: 10px;
}

.course-card .title {
    margin-bottom: 10px;
}

.course-card .meta {
    color: #666;
    font-size: 12px;
}

.course-card .meta span {
    margin-right: 10px;
}

.course-card .meta span:last-child {
    margin-right: 0;
}

.course-card .origin-price {
    text-decoration: line-through;
}

.course-card .price {
    color: #A63D28;
}

.course-card .free {
    color: green;
}

.course-card .order,
.course-card .share {
    cursor: pointer;
}

.filter-toggle {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-wrap {
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    height: 40px;
    line-height: 40px;
    padding-bottom: 5px;
}

.filter-group .title {
    width: 50px;
    font-weight: 700;
}

.filter-group .content a {
    margin-right: 15px;
}

.filter-sort {
    padding: 10px 20px;
}

.filter-sort a {
    margin-right: 20px;
}

.course-meta {
    display: flex;
}

.course-meta .cover {
    position: relative;
    width: 270px;
    height: 150px;
    margin-right: 10px;
}

.course-meta .info {
    width: 580px;
    padding-top: 5px;
}

.course-meta .cover img {
    width: 100%;
    height: 100%;
}

.course-meta .cover .model {
    position: absolute;
    top: 15px;
    right: 15px;
}

.course-meta .info .item {
    line-height: 35px;
}

.course-meta .info .key {
    margin-right: 5px;
}

.course-meta .info .value {
    margin-right: 5px;
    color: #666;
}

.course-meta .info .price {
    color: #A63D28;
}

.course-meta .info .origin-price {
    text-decoration: line-through;
}

.course-meta .info .free {
    color: green;
}

.course-meta .ratings {
    padding-top: 5px;
}

.course-meta .ratings .item {
    line-height: 40px;
}

.course-meta .ratings .name {
    margin-right: 5px;
}

.course-meta .ratings .layui-rate {
    padding: 0;
    margin-top: -8px;
}

.course-meta .ratings .layui-icon {
    font-size: 16px;
}

.course-meta .ratings .score {
    color: #666;
}

.layui-tabs-header li {
    position: relative;
}

.layui-tabs-header .tab-count {
    position: absolute;
    top: -10px;
    padding-left: 5px;
    font-size: 12px;
    color: #666;
}

.course-tab {
    margin: 0;
}

.course-tab .layui-tabs-body {
    padding: 20px 0;
}

.course-tab .loading {
    text-align: center;
    padding: 15px;
}

.course-tab .loading .layui-icon {
    font-size: 30px;
}

.lesson-list .allow {
    cursor: pointer;
}

.lesson-list .deny {
    cursor: default;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    line-height: 35px;
    padding: 0 10px;
}

.lesson-item:hover {
    background-color: #F7F3EA;
}

.lesson-item .title {
    margin-right: 5px;
}

.lesson-item .model {
    margin-right: 5px;
}

.lesson-item .lock {
    margin-right: 5px;
}

.lesson-item .study-time {
    margin-right: 5px;
    color: green;
}

.lesson-item .flag {
    padding: 2px 3px;
    margin-right: 5px;
    font-size: 12px;
}

.lesson-item .flag-free {
    border: 1px solid red;
    color: #A63D28;
}

.review-card .info {
    position: relative;
}

.review-card .rating,
.consult-card .more {
    position: absolute;
    top: 0;
    right: 0;
}

.review-card .rating .layui-icon {
    color: orange;
    font-size: 12px;
}

.sidebar-card .layui-card-header {
    text-align: center;
}

.sidebar-user-card {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5F1E7;
}

.sidebar-user-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-user-card .avatar {
    margin-right: 10px;
}

.sidebar-user-card .avatar img {
    width: 48px;
    height: 48px;
    border-radius:100%;
}

.sidebar-user-card .info {
    line-height: 24px;
}

.sidebar-user-card .info .title {
    color: #666;
    font-size: 12px;
}

.sidebar-course-card {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5F1E7;
}

.sidebar-course-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-course-card .cover {
    width: 90px;
    height: 50px;
    margin-right: 10px;
}

.sidebar-course-card .cover img {
    width: 100%;
    height: 100%;
}

.sidebar-course-card .info {
    width: 200px;
    color: #666;
    font-size: 12px;
    overflow: hidden;
}

.sidebar-course-card .title {
    margin-top: 5px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.sidebar-course-card .meta span {
    margin-right: 10px;
}

.sidebar-course-card .meta .price {
    color: #A63D28;
}

.sidebar-course-card .meta .free {
    color: green;
}

.sidebar-chapter-list {
    height: 405px;
    overflow-y: auto;
}

.sidebar-lesson-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-lesson-list .active {
    background-color: black;
    color: white;
}

.sidebar-lesson-list .allow {
    cursor: pointer;
}

.sidebar-lesson-list .deny {
    cursor: default;
    color: #F5F1E7;
}

.sidebar-chapter {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333;
}

.sidebar-lesson {
    width: 20px;
    height: 20px;
    padding: 10px;
    line-height: 20px;
    text-align: center;
    border: 1px solid #F5F1E7;
}

.player-wrap {
    width: 760px;
    height: 428px;
    margin-bottom: 20px;
    background: black;
    position: relative;
}

.dplayer {
    width: 760px;
    height: 428px;
}

.play-mask {
    top: 50%;
    left: 50%;
    z-index: 8;
    position: absolute;
    margin-top: -48px;
    margin-left: -32px;
}

.play-mask .layui-icon-play {
    color: white;
    cursor: pointer;
    font-size: 64px;
}

.play-mask .layui-icon-play:hover {
    color: #00a4ff;
}

.vip-header {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.vip-priv-list {
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.vip-priv-list button {
    margin-right: 15px;
}

.vip-option-list {
    margin-bottom: 30px;
}

.vip-option-card {
    float: left;
    width: 100%;
    height: 170px;
    background-color: #fff;
    border-radius:2px;
    text-align: center;
}

.vip-option-card .title {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.vip-option-card .price {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #A63D28;
}

.cart-item-card {
    display: flex;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.cart-item-card:last-child {
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.cart-item-card .cover {
    position: relative;
    margin-right: 10px;
}

.cart-item-card .cover .type {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cart-item-card .cover img {
    width: 175px;
    height: 95px;
}

.cart-item-card p {
    line-height: 30px;
}

.cart-item-card .info span {
    margin-right: 5px;;
}

.cart-item-card .value {
    color: #666;
}

/* 「标签 + 值」成对不拆行：窄屏里「会员价格」和「￥399.00」
   会被拆到两行，看着像两个价。包一层 nowrap 的 .kv 让整对一起换行。 */
.cart-item-card .kv {
    display: inline-block;
    white-space: nowrap;
    margin-right: 16px;
}

.cart-item-card .origin-price {
    text-decoration: line-through;
}

.cart-item-card .price {
    min-width: 70px;
    color: #A63D28;
}

.cart-stats {
    display: flex;
    justify-content: space-between;
}

.cart-stats .info {
    line-height: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

/* 金额区改成「标签 + 值」的成对结构：
   原先是一整行文本，窄屏换行会把「支付金额：」和「￥399.00」拆到两行 */
.cart-stats .info p {
    margin: 0;
}

.cart-stats .info .k {
    color: #666;
    margin-right: 6px;
}

.cart-stats .amount {
    color: #A63D28;
}

.cart-stats .pay-amount {
    font-size: 18px;
    font-weight: 700;
}

.cart-stats span {
    color: #666;
    margin-right: 15px;
}

.payment .header {
    padding-bottom: 15px;
    border-bottom: 1px solid #F5F1E7;
    line-height: 30px;
    text-align: center;
}

.payment .header span {
    color: #666;
    margin-right: 20px;
}

.payment .header .amount {
    color: #A63D28;
    font-size: 18px;
    font-weight: 700;
}

.payment .channel {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

.channel .btn-pay {
    width: 200px;
    height: 80px;
    display: inline-block;
    line-height: 80px;
    margin-right: 15px;
    background-color: #F7F3EA;
}

.payment .footer {
    margin-bottom: 20px;
    text-align: center;
}

.payment .footer .tips {
    color: #999;
    font-size: 12px;
}

#pay-layer {
    padding-top: 50px;
}

#pay-layer .qrcode {
    text-align: center;
}

#pay-layer .qrcode img {
    border: 3px solid #999;
    padding: 10px;
}

#pay-layer .success-tips {
    color: green;
    text-align: center;
}

.account-wrap {
    padding-top: 40px;
    padding-bottom: 30px;
}

.account-form {
    width: 400px;
    margin: 0 auto;
}

.account-form .layui-input-block {
    margin-left: 0;
}

.account-form .verify-input-inline {
    width: 280px;
    margin-right: 10px;
}

.account-form .verify-btn-inline {
    width: 110px;
    margin-right: 0;
}

.account-form .agree {
    display: flex;
}

.account-form .agree .right {
    padding-top: 8px;
    color: #999;
}

.verify-btn-inline button {
    min-width: 100px;
    width: 100%;
}

.login-tab {
    margin: 0;
}

.login-tab .layui-tabs-header {
    text-align: center;
}

.login-tab .layui-tabs-body {
    padding-top: 30px;
}

.login-wrap .link {
    margin-bottom: 20px;
    font-size: 12px;
    text-align: center;
}

.login-wrap .link a {
    color: #999;
}

.login-wrap .link .separator {
    margin: 0 15px;
    color: #999;
}

.register-close-tips {
    padding: 50px;
    text-align: center;
    color: #999;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile .avatar {
    width: 96px;
    height: 96px;
    margin-right: 30px;
}

.user-profile .avatar img {
    width: 100%;
    height: 100%;
    border-radius:100%;
}

.user-profile .info {
    flex: 1;
}

.user-profile .info h3 {
    padding-top: 5px;
    margin-bottom: 10px;
}

.user-profile .info p {
    margin-bottom: 10px;
    color: #666;
}

.user-profile .info span {
    color: #999;
    margin-right: 5px;
}

.user-profile .about {
    width: 400px;
    height: 70px;
    padding: 10px;
    color: #999;
    font-size: 12px;
    background-color: #F7F3EA;
}

.profile-info {
    min-height: 500px;
    padding-right: 400px;
}

.user-tab .layui-tabs-header {
    margin-bottom: 10px;
    text-align: center;
    border-bottom: none;
}

.user-tab .layui-tabs-body {
    padding: 10px 0;
}

.user-tab .loading {
    text-align: center;
    padding: 15px;
}

.user-tab .loading .layui-icon {
    font-size: 30px;
}

.user-tab .course-card .info {
    padding: 10px 8px;
}

.user-card {
    float: left;
    width: 100%;
    height: 200px;
    position: relative;
    text-align: center;
    background-color: #fff;
    border-radius:2px;
}

.user-card .avatar {
    margin-top: 20px;
    margin-bottom: 15px;
}

.user-card .avatar img {
    width: 96px;
    height: 96px;
    border-radius:0;
    transition: 0.5s;
}

.user-card .avatar img:hover {
    transform: rotateY(180deg);
}

.user-card .name {
    padding: 0 10px;
    margin-bottom: 10px;
}

.user-card .title {
    color: #666;
}

.my-sidebar {
    width: 240px;
}

.my-content {
    width: 900px;
}

.my-avatar {
    width: 96px;
    height: 96px;
    border-radius:0;
}

.my-profile-card {
    margin-bottom: 15px;
    text-align: center;
}

.my-profile-card .avatar {
    margin-bottom: 10px;
}

.my-menu li {
    line-height: 30px;
    padding-left: 30px;
}

.my-nav {
    position: relative;
    line-height: 30px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.my-nav .title {
    margin-right: 20px;
    font-size: 16px;
}

.my-nav .sub-nav {
    margin-right: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.my-nav a {
    margin-right: 20px;
}

.my-nav a:last-child,
.sub-nav a:last-child {
    margin-right: 0;
}

.my-content .section {
    margin-bottom: 20px;
}

.profile-form {
    width: 95%;
}

.wrap .layui-table {
    margin: 0;
}

.layui-table p {
    line-height: 2em;
}

.layui-table .center {
    text-align: center;
}

.review-table .title {
    width: 400px;
}

.review-table .content {
    width: 400px;
    color: #666;
}

.review-form .layui-rate {
    padding-top: 2px;
    padding-bottom: 6px;
}

.security-form {
    width: 600px;
}

.security-form .verify-input-inline {
    width: 360px;
}

.security-form .verify-btn-inline {
    width: 120px;
    margin-right: 0;
}

.security-item-list {
    margin-top: -20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    line-height: 80px;
}

.security-item:last-child {
    border-bottom: none;
}

.security-item .icon {
    margin-right: 15px;
}

.security-item .title {
    margin-right: 15px;
}

.security-item .summary {
    color: #666;
}

.my-summary {
    display: flex;
    justify-content: space-between;
}

.my-summary .profile-column {
    display: flex;
}

.my-summary .com-column {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    width: 240px;
}

.my-summary .stat-column {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    width: 360px;
}

.my-summary .avatar {
    margin-right: 20px;
}

.my-summary .avatar img {
    width: 80px;
    height: 80px;
    border-radius:0;
}

.my-summary .info {
    color: #999;
}

.my-summary .info .name {
    margin-top: 10px;
    margin-bottom: 15px;
}

.my-content .info .name span {
    margin-right: 5px;
}

.my-content .stat-card {
    text-align: center;
}

.my-content .stat-card .name {
    color: #999;
}

.my-summary .stat-card .count {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
}

.my-stats .stat-card .count {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
}

.my-online-list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
}

.my-online-list .day {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
    background-color: #eee;
    color: white;
    border-radius:0;
    margin-right: 25px;
    margin-bottom: 15px;
}

.my-online-list .active {
    color: white;
    cursor: pointer;
    background-color: #5fb878;
}

.order-table {
    margin: 0;
}

.order-table span {
    margin-right: 10px;
}

.order-table em {
    font-style: normal;
}

.order-table .price {
    color: #A63D28;
}

.order-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
}

.order-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.order-item .price {
    color: #A63D28;
    font-style: normal;
}

/* ---------- 品牌色：把默认青绿统一成朱红 ---------- */
.layui-btn-normal,
.layui-btn-normal:active {
    background-color: #A63D28;
}

.layui-btn-normal:hover {
    background-color: #8D3221;
}

.layui-tabs-header > li.layui-this,
.layui-tab-title .layui-this {
    color: #A63D28;
}

.layui-tabs-header > li.layui-this:after,
.layui-tab-title .layui-this:after {
    border-color: #A63D28;
}

.layui-form-radioed > i,
.layui-form-radio > i:hover {
    border-color: #A63D28 !important;
}

.layui-form-radioed > i:after {
    background-color: #A63D28 !important;
}

.layui-form-checked[lay-skin="primary"] > i {
    border-color: #A63D28 !important;
    background-color: #A63D28 !important;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #A63D28;
}

.kg-pager .layui-laypage a:hover,
.pager a:hover {
    color: #A63D28;
}

/* 默认按钮（layui 主色）同步换朱红 */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-disabled) {
    background-color: #A63D28;
}

.layui-btn:not(.layui-btn-primary):not(.layui-btn-disabled):hover {
    background-color: #8D3221;
}

/* 素材保护：图片/视频不给拖、不给长按存图（右键另存见 home/js/no-save.js） */
img, video {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* ---------- 顶部导航自适应 ----------
   导航长到 7 项后，桌面宽度不足约 1140px 时，右侧「搜索/价格/登录/注册」
   会和导航叠在一起（字压字）。两级处理：先收字号与内间距，
   再窄就让导航区自己横向滑动，绝不允许换行——换行会把 60px 的固定页头顶开，
   盖住下面的正文。 */
@media (max-width: 1180px) {
    /* layui 的主容器是固定 1160px 宽，浏览器一窄整页就横向溢出，
       页面右侧被推到屏幕外（卡片右边缘看不见）。窄屏让它自适应。

       注意不能只写 width:auto —— .layui-main 上有 margin:0 auto，
       在 flex 列布局里左右 auto 外边距会让它按内容收缩（实测课程列表只剩 341px，
       卡片孤零零挤在中间），必须显式 width:100% 并把 auto 外边距清掉。 */
    .layui-main {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* layui 的 .layui-col-space20 用「行负外边距 + 列内间距」做间隔，
       行宽会比容器多 20px，窄屏下多出一条 10px 的横向滚动。
       把行的负边距收平，列内 padding 保留，间距观感不变。 */
    .layui-row[class*="layui-col-space"] {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 1200px) {
    #header .top-nav {
        margin-left: 170px;
    }

    #header .top-nav .layui-nav {
        padding: 0 6px;
    }

    #header .top-nav .layui-nav .layui-nav-item > a {
        padding: 0 11px;
        font-size: 13.5px;
    }

    #header .user .layui-nav {
        padding: 0 6px;
    }

    #header .user .layui-nav .layui-nav-item > a {
        padding: 0 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 1080px) {
    #header .top-nav {
        margin-left: 158px;
        margin-right: 150px;
    }

    #header .top-nav .layui-nav {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #header .top-nav .layui-nav::-webkit-scrollbar {
        display: none;
    }

    #header .top-nav .layui-nav .layui-nav-item {
        float: none;
        display: inline-block;
    }

    /* 位置让给导航，搜索与价格在窄屏收起（页脚仍可进入） */
    #header .user .nav-search,
    #header .user .nav-price {
        display: none;
    }
}

@media (max-width: 900px) {
    /* 手机宽度：logo 收窄，导航再压一档内间距，七项刚好排满一行 */
    #header .logo img {
        max-width: 118px;
    }

    #header .top-nav {
        margin-left: 124px;
        margin-right: 140px;
    }

    #header .top-nav .layui-nav .layui-nav-item > a {
        padding: 0 9px;
        font-size: 13px;
    }

    #header .user .layui-nav .layui-nav-item > a {
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ---------- 手机端 ☰ 菜单（2026-11-16）----------
   600px 以下六个栏目排不进一行，旧做法是把第 3 项以后 display:none，
   手机上等于只剩「首页 + 大语文」两处可点，另外四门课没有入口。
   改成 ☰ + 右侧抽屉：六项全列出来，首屏高度不占。 */
.nav-burger,
.nav-drawer {
    display: none;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* 必须压过 layui 的 .layui-fixbar（右下角那个悬浮电话），否则它盖在抽屉上 */
    z-index: 1200;
}

body.nav-open .nav-drawer {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

/* layui 的悬浮客服 .layui-fixbar 写死 z-index:999999，抽屉（1200）压不过，
   右下角那个电话会盖在菜单上。抽屉打开时直接把它收起来。 */
body.nav-open .layui-fixbar {
    display: none !important;
}

.nd-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(12, 10, 8, .60);
}

.nd-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78vw;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    background: #1E1A17;
    color: #F2EADC;
    box-shadow: -18px 0 44px rgba(0, 0, 0, .34);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.nav-open .nd-panel {
    animation: ndIn .24s cubic-bezier(.22, .8, .28, 1);
}

@keyframes ndIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.nd-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.nd-t {
    font-size: 12px;
    letter-spacing: .18em;
    color: #B8A88F;
}

.nd-x {
    padding: 0 4px;
    border: 0;
    background: none;
    color: #E8DCC8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.nd-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.nd-item > a {
    display: block;
    padding: 15px 18px;
    color: #F2EADC;
    font-size: 16.5px;
    letter-spacing: .02em;
    text-decoration: none;
}

.nd-item > a:active {
    background: rgba(255, 255, 255, .07);
}

.nd-sub {
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
}

.nd-sub a {
    display: block;
    padding: 9px 18px 9px 32px;
    color: #B8A88F;
    font-size: 14px;
    text-decoration: none;
}

/* 名字里那个「·」原来只在 .top-nav 里画，抽屉这份也得有，否则两项字宽不齐 */
.nd-list .nv-mid {
    display: inline-block;
    width: 4.5px;
    height: 4.5px;
    margin: 0 .38em;
    border-radius: 50%;
    background: currentColor;
    opacity: .72;
    vertical-align: middle;
    font-style: normal;
}

.nd-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 16px 18px 6px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.nd-foot a {
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #CFC2AB;
    font-size: 13px;
    text-decoration: none;
}

.nd-foot .nd-cta {
    border-color: #A63D28;
    background: #A63D28;
    color: #fff;
}

/* 820 以下：深色皮肤（home-v5）在这个宽度就把整条导航 display:none 了，
   浅色皮肤六项在 768 宽也排不下（实测要 984px）。统一交给 ☰：
   一行仍留「首页 + 第一门课」，其余全在抽屉里，两种皮肤都是同一个入口。 */
@media (max-width: 820px) {
    #header .nav-burger {
        position: absolute;
        top: 50%;
        right: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 34px;
        height: 34px;
        padding: 0 8px;
        box-sizing: border-box;
        border: 0;
        background: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    #header .nav-burger .nb-bar {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #F0E7D8;
    }

    #header .user {
        right: 44px;
    }

    #header .top-nav .layui-nav .layui-nav-item:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 600px) {
    /* 手机竖屏：logo 再收窄，登录/注册只留图标（文字用 font-size:0 收起）。
       六个栏目在 390 宽下一行放不下，一行仍只排「首页 + 第一门课」，
       但另外四项不再是死路——右上角 ☰ 打开抽屉，六项全在。 */
    #header .logo img {
        max-width: 96px;
    }

    #header .top-nav {
        margin-left: 102px;
        margin-right: 108px;
    }

    /* 给 ☰ 腾 34px（按钮 right:5），否则「注册」会顶到按钮上 */
    #header .user {
        right: 46px;
    }

    #header .top-nav .layui-nav {
        overflow: hidden;
    }

    #header .top-nav .layui-nav .layui-nav-item:nth-child(n+3) {
        display: none;
    }

    #header .top-nav .layui-nav .layui-nav-item > a {
        padding: 0 8px;
        font-size: 12.5px;
    }

    #header .user .layui-nav .layui-nav-item > a {
        padding: 0 7px;
        font-size: 0;
    }

    #header .user .layui-nav .layui-nav-item > a .layui-icon {
        font-size: 18px;
        margin-right: 0;
    }
}

/* ---------- 收尾：把漏网的 layui 默认色拉回品牌色（2026-10-31）---------- */
/* layui.css 里 .layui-bg-blue 带 !important，只能用同等 !important 压过 */
.layui-bg-blue {
    background-color: #A63D28 !important;
    color: #fff !important;
}

/* 价格不要纯红，与全站朱砂一致 */
.order-item .price {
    color: #A63D28;
}

/* 搜索/列表页的空状态提示别用青绿 */
.layui-text-green {
    color: #33544A !important;
}

/* ---------- 搜索结果页收口（2026-10-31）----------
   1. 「点播/图文」徽章原来是 layui 默认的青绿/亮蓝，与品牌色冲突；
   2. 封面被 flex 压成 130px，标题区跟着挤；
   3. 侧栏卡片还是圆角浮起，与全站直角细线不一致。 */
.layui-bg-green {
    background-color: #33544A !important;
    color: #fff !important;
}

.search-course-card .left {
    flex: 0 0 210px;
}

.search-course-card .cover {
    border: 1px solid rgba(30, 26, 23, .10);
    background: #F5F1E7;
    overflow: hidden;
}

.search-course-card .cover img {
    display: block;
    object-fit: cover;
}

.search-course-card .title a {
    font-size: 15.5px;
    font-weight: 600;
    color: #1E1A17;
}

.search-course-card .summary {
    color: #6E6459;
}

.search-course-card .meta {
    color: #8B8177;
    font-size: 13px;
}

.search-course-card .meta a {
    color: #33544A;
}

/* 卡片统一直角细线（layui 默认是圆角 + 浅阴影） */
.layui-card {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(30, 26, 23, .14);
    background: #fff;
}

.layui-card-header {
    border-bottom: 1px solid rgba(30, 26, 23, .10);
    color: #1E1A17;
    font-weight: 600;
}

/* 搜索框：与首页同一套细线输入框 */
.search-form .query-input {
    border: 1px solid rgba(30, 26, 23, .18);
    border-radius: 0;
    height: 44px;
    line-height: 44px;
    padding: 0 14px;
    color: #1E1A17;
    background: #fff;
}

.search-form .query-input:focus {
    border-color: #A63D28;
}

.search-form .search-btn {
    height: 44px;
    line-height: 44px;
    border-radius: 0;
    background: #A63D28;
    letter-spacing: .06em;
}

.search-form .search-btn:hover {
    background: #8E3221;
}

/* ---------- 用户中心收口（2026-10-31）----------
   1. 在线记录格子原来是「白字 + #eee 底」，等于看不见数字；
   2. 左侧菜单文字居中、没有当前项高亮；
   3. 单选/复选还是 layui 的青绿色；
   4. 昵称长了会折行。 */
.my-summary .info .name {
    color: #1E1A17;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.my-summary .info .title {
    color: #8B8177;
    font-size: 13px;
}

.my-summary .avatar img {
    border: 1px solid rgba(30, 26, 23, .12);
    background: #F7F3EA;
}

.my-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.my-menu li {
    line-height: 1;
    padding-left: 0;
}

.my-menu li a {
    display: block;
    padding: 10px 2px;
    color: #1E1A17;
    border-bottom: 1px solid rgba(30, 26, 23, .06);
}

.my-menu li:last-child a {
    border-bottom: 0;
}

.my-menu li a:hover,
.my-menu li.this a {
    color: #A63D28;
}

.my-menu li.this a {
    font-weight: 600;
}

.my-online-list .day {
    width: 34px;
    height: 34px;
    line-height: 34px;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #F5F1E7;
    border: 1px solid rgba(30, 26, 23, .08);
    color: #8B8177;
}

.my-online-list .day.active {
    background-color: #A63D28;
    border-color: #A63D28;
    color: #fff;
}

/* layui 表单控件默认青绿 */
.layui-form-radioed > i,
.layui-form-radio > i:hover {
    color: #A63D28 !important;
}

.layui-form-checked[lay-skin=primary] > i,
.layui-form-checkbox[lay-skin=primary]:hover > i {
    border-color: #A63D28 !important;
    background-color: #A63D28 !important;
    color: #fff !important;
}

/* 用户中心：左侧栏定宽、右侧自适应，卡片之间留出呼吸 */
.layout-main > .my-sidebar {
    flex: 0 0 232px;
}

.layout-main > .my-content {
    width: auto;
    flex: 1;
    min-width: 0;
}

.my-sidebar .layui-card {
    margin-bottom: 12px;
}

.my-sidebar .layui-card-body {
    padding: 8px 16px;
}

/* 「会员」等橙色徽章统一到朱砂 */
.layui-bg-orange {
    background-color: #A63D28 !important;
    color: #fff !important;
}

/* 用户中心与页头留出距离（原来白卡几乎贴住深色页头） */
.my-sidebar,
.my-content {
    margin-top: 24px;
}

.my-content textarea.layui-textarea {
    min-height: 110px;
    border: 1px solid rgba(30, 26, 23, .16);
    border-radius: 0;
}

.my-content .layui-input {
    border: 1px solid rgba(30, 26, 23, .16);
    border-radius: 0;
    height: 40px;
}

.my-content .layui-input:focus {
    border-color: #A63D28;
}

/* 用户公开主页：名字加深，头像描边 */
.user-profile .info .name {
    color: #1E1A17;
    font-size: 17px;
    font-weight: 600;
}

.user-profile .avatar img {
    border: 1px solid rgba(30, 26, 23, .12);
    background: #F7F3EA;
}

/* ---------- 支付页：人工开通通道（新皮肤） ---------- */
.manual-pay {
    margin: 26px 0 8px;
    padding: 26px 30px;
    background: #F7F3EA;
    border: 1px dashed rgba(30, 26, 23, .28);
    border-radius: 0;
}

.manual-pay h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #A63D28;
    letter-spacing: .02em;
}

.manual-pay p {
    margin: 9px 0;
    font-size: 14px;
    line-height: 1.9;
    color: #6E6459;
}

.manual-pay .sn b {
    font-size: 19px;
    color: #1E1A17;
    letter-spacing: .08em;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.manual-pay .contact span {
    display: inline-block;
    margin-right: 30px;
}

.manual-pay .contact b {
    font-size: 16px;
    color: #A63D28;
    letter-spacing: .03em;
}

.manual-pay .note {
    margin-top: 14px;
    font-size: 13px;
    color: #8B8177;
}

/* 支付页头部细线换成墨色细线 */
.payment .header {
    border-bottom: 1px solid rgba(30, 26, 23, .16);
}

.payment .footer .tips {
    color: #8B8177;
}

.manual-pay .manual-copy {
    display: inline-block;
    margin-left: 10px;
    padding: 1px 9px;
    font-size: 12px;
    color: #A63D28;
    border: 1px solid rgba(166, 61, 40, .38);
    vertical-align: 2px;
}

.manual-pay .manual-copy:hover {
    background: #A63D28;
    color: #fff;
}

/* ---------- 单页正文（关于我们 / 联系我们 / 用户协议 / 隐私政策）----------
   原先页面正文是空的，套用 markdown-body 后字号 14px、系统字体、链接浅蓝，
   与全站「米白 + 朱砂 + 宋黑混排」完全两套。这里按品牌重排一遍，
   只作用于单页容器 .page-info，不影响其他 markdown 区域。 */
.page-info .markdown-body {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.95;
    color: #2A2521;
}

.page-info .markdown-body p {
    margin: 0 0 14px;
}

/* 导语：正文第一段拉开一档、压一条虚线。
   内容走 Markdown，用不了 <p class="lead">，按首段选择器处理 */
.page-info .markdown-body > p:first-child {
    font-size: 16.5px;
    line-height: 1.85;
    color: #4A423B;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(30, 26, 23, .14);
}

.page-info .markdown-body h2 {
    font-size: 18px;
    line-height: 1.5;
    margin: 28px 0 12px;
    padding-left: 11px;
    border-left: 3px solid #A63D28;
    color: #1E1A17;
}

.page-info .markdown-body h3 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: #1E1A17;
}

/* layui 的重置把 li 的圆点去掉了，这里补回来 */
.page-info .markdown-body ul,
.page-info .markdown-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.page-info .markdown-body ul > li {
    list-style: disc outside;
    margin-bottom: 8px;
}

.page-info .markdown-body ol > li {
    list-style: decimal outside;
    margin-bottom: 8px;
}

.page-info .markdown-body li::marker {
    color: #A63D28;
}

.page-info .markdown-body b,
.page-info .markdown-body strong {
    color: #1E1A17;
    font-weight: 600;
}

.page-info .markdown-body a {
    color: #A63D28;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-info .markdown-body a:hover {
    color: #8D3221;
}

/* ==========================================================================
   手机 / 平板适配（2026-10-31）
   前台原先只有顶部导航做过断点，正文页面（讲师、登录、订单）在手机上会破：
   讲师详情把简介块写死 width:400px，窄屏直接把右侧正文压成 0 宽，
   中文变一字一行竖排。这里按 900 / 600 两档统一收口。
   ========================================================================== */

@media (max-width: 900px) {
    /* ---------- 顶部导航 ---------- */
    /* iOS Safari 在输入框字号 <16px 时，聚焦会自动把页面放大并卡住不回弹。
       放开了缩放（viewport 去掉了 maximum-scale），这里就把控件字号提到 16px 兜住。 */
    input, textarea, select {
        font-size: 16px;
    }

    /* 导航在窄屏靠横向滑动，右侧切一半的菜单项用渐隐给出「还能滑」的暗示 */
    #header .top-nav .layui-nav {
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
    }

    #header .logo img {
        max-width: 104px;
    }

    /* 个人中心顶部「标题 + 筛选按钮」：原来标题和 5 个状态全是行内元素，
       手机上一行排不下，「已退款」被从中间折断成「已」「退款」两行，
       掉下来的「退款」正好压在下面。改成标题独占一行、按钮各自不断行。 */
    .my-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
        line-height: 1.6;
    }

    .my-nav .title {
        flex: 1 1 100%;
        margin-right: 0;
        line-height: 1.5;
    }

    .my-nav a {
        margin-right: 0;
        white-space: nowrap;
    }

    .my-nav .sub-nav {
        position: static;
        margin-left: auto;
    }

    /* 账号安全条目：原来是 flex 一行 + line-height:80px，手机上说明文字
       直接顶到「修改」按钮底下被盖住（末尾的字看不见）。改成
       图标+标题一行、说明文字换行占满第二行，按钮居右垂直居中。 */
    .security-item {
        align-items: center;
        line-height: 1.5;
        padding: 12px 0;
    }

    .security-item .info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .security-item .icon {
        flex: 0 0 auto;
        margin-right: 10px;
    }

    .security-item .title {
        flex: 0 0 auto;
        margin-right: 0;
        font-size: 15px;
    }

    .security-item .summary {
        flex: 1 1 100%;
        white-space: normal;
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.6;
    }

    .security-item .action {
        flex: 0 0 auto;
        margin-left: 10px;
    }

    /* ---------- 通用卡片 ---------- */
    .wrap {
        padding: 14px;
    }

    /* 个人中心里的订单/退款表：列数多，窄屏不压列宽，改成表格自己横滑，
       页面本身不横滚。壳由 home/js/common.js 的 wrapTables() 动态套上。 */
    .kg-scroll-x {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .kg-scroll-x > table.layui-table {
        min-width: 560px;
        margin-bottom: 0;
    }

    .kg-scroll-x::-webkit-scrollbar {
        height: 4px;
    }

    .kg-scroll-x::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .18);
        border-radius: 2px;
    }

    /* 正文 800 + 侧栏 340 的定宽双栏，窄屏改成上下单栏，
       否则正文被压成一条、右侧侧栏悬在屏幕外 */
    .layout-main {
        flex-direction: column;
    }

    .layout-content,
    .layout-sidebar {
        width: 100%;
    }

    .layout-sidebar {
        margin-top: 16px;
    }

    .page-info {
        min-height: 0;
    }

    .breadcrumb {
        margin-bottom: 12px;
        font-size: 13px;
    }

    /* ---------- 师资列表 ---------- */
    /* layui 栅格在窄屏仍是四列，卡片被压到一百多像素宽，中间留一大片空白 */
    .teacher-list .layui-col-md3 {
        width: 50%;
        float: left;
    }

    /* ---------- 课程列表 ---------- */
    /* 栅格塌成一列后，卡片会拉满整个平板宽度，封面按原比例只占左边一截，
       右边甩出一大片空白放星级。平板上排两列，观感与手机一致。 */
    .course-list .layui-col-md3 {
        width: 50%;
        float: left;
    }

    .user-card {
        height: auto;
        padding-bottom: 14px;
    }

    .user-card .avatar {
        margin-top: 14px;
        margin-bottom: 10px;
    }

    .user-card .avatar img {
        width: 76px;
        height: 76px;
    }

    /* ---------- 师资详情 ---------- */
    /* 原来是 flex 一行：头像 96 + 信息 flex:1 + 简介块写死 400px。
       390px 下 info 被挤成 0，中文一字一行。改成可换行、简介块占整行。 */
    .user-profile {
        flex-wrap: wrap;
    }

    .user-profile .avatar {
        width: 68px;
        height: 68px;
        margin-right: 14px;
    }

    .user-profile .info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .user-profile .info h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .user-profile .about {
        width: 100%;
        height: auto;
        margin-top: 14px;
        box-sizing: border-box;
    }

    /* 右侧预留的 400px 同理，不清掉正文没地方站 */
    .profile-info {
        padding-right: 0;
        min-height: 0;
    }

    .user-tab .layui-tabs-header {
        white-space: nowrap;
        overflow-x: auto;
    }

    /* ---------- 登录 / 注册：家长与校长两个入口竖排 ---------- */
    .role-choice {
        flex-direction: column;
        gap: 10px;
    }

    .role-choice label {
        padding: 13px 15px;
    }

    .role-choice .t {
        font-size: 15.5px;
    }

    /* 表单写死 400px，390 屏下把整页撑宽 23px（右侧输入框与按钮被切出屏幕） */
    .account-form {
        width: 100%;
    }

    .account-form .verify-input-inline {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* ---------- 订单确认 ---------- */
    .cart-item-card .cover img {
        width: 116px;
        height: 66px;
    }

    /* 金额区原来是左右两端对齐，窄屏换行后基线全乱，改竖排逐行显示 */
    .cart-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-stats .info {
        flex-direction: column;
        gap: 0;
        line-height: 2.1;
    }

    .cart-stats span {
        margin-right: 10px;
    }

    .cart-stats .amount {
        margin-right: 12px;
        font-weight: 600;
    }

    .cart-stats .layui-btn {
        width: 100%;
        margin: 0;
    }

    /* 提交按钮在 form 里，form 不撑满则按钮也只有一半宽 */
    .cart-stats .cart-form {
        width: 100%;
    }

    .cart-stats .order-btn {
        width: 100%;
        height: 46px;
        line-height: 46px;
        font-size: 16px;
    }

    /* ---------- 支付页 ---------- */
    .channel .btn-pay {
        width: 100%;
        height: 56px;
        line-height: 56px;
        margin: 0 0 12px;
    }

    .payment .header span {
        display: block;
        margin-right: 0;
    }

    /* ---------- 页脚 ---------- */
    #footer .contact {
        line-height: 1.9;
    }

    #footer .row {
        line-height: 1.9;
    }
}

@media (max-width: 560px) {
    /* 师资卡片一列铺满，头像与名字同一行更省高度 */
    .teacher-list .layui-col-md3 {
        width: 100%;
    }

    /* 手机上课程卡片也一列铺满 */
    .course-list .layui-col-md3 {
        width: 100%;
    }

    .user-card {
        display: block;
        text-align: left;
        /* layui 全局 content-box：width:100% 再叠 14px 左右内边距，整卡会顶出 28px 横滚 */
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        overflow: hidden;
    }

    /* 头像用浮动而不是 flex：flex 会把 name / title 变成并排的兄弟项，
       两个 div 挤成一行「小曼教研组大语文教研团队」 */
    .user-card .avatar {
        float: left;
        margin: 0 12px 0 0;
        flex: 0 0 auto;
    }

    .user-card .avatar img {
        width: 60px;
        height: 60px;
    }

    .user-card .name {
        padding: 0;
        margin-bottom: 4px;
    }

    .user-card .title {
        font-size: 13px;
    }

    /* 章节/篇目条目：右侧标签挪到第二行，不再和换行后的篇名抢位置 */
    .course-catalog .item,
    .catalog-item {
        flex-wrap: wrap;
    }

    .wrap {
        padding: 12px;
    }
}
