:root {
    --tj-red: #592019;
    --tj-red-deep: #4a1612;
    --tj-red-mid: #6b3a32;
    --tj-red-hover: #8b4540;
    --tj-red-soft: #5c241c;
    --tj-red-bar: #f5ebe8;
    --tj-chip: #a8908a;
    --tj-chip-deep: #8f7570;
    --tj-text: #2b2b2b;
    --tj-muted: #8a8a8a;
    --tj-shadow: 0 8px 24px rgba(40, 16, 12, 0.18);
}

.layui-laypage a:hover {
    color: var(--tj-red);
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--tj-red) !important;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--tj-red) !important;
    background-color: var(--tj-red) !important;
    background-image: none !important;
}

.layui-layer-btn .layui-layer-btn0:hover {
    border-color: var(--tj-red-hover) !important;
    background-color: var(--tj-red-hover) !important;
    background-image: none !important;
    opacity: 1;
}

xm-select {
    box-sizing: border-box;
}

xm-select .xm-label .xm-label-block,
xm-select .xm-label-block {
    background-color: var(--tj-red) !important;
}

xm-select .xm-label.single-row {
    display: flex !important;
    align-items: center;
    padding: 0 8px !important;
    box-sizing: border-box;
}

xm-select .xm-label.auto-row {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    min-height: 36px;
    padding: 4px 8px !important;
    box-sizing: border-box;
}

xm-select .xm-label .scroll {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

xm-select .xm-label .scroll .label-content {
    display: flex;
    align-items: center;
    padding: 0 !important;
    line-height: 1 !important;
    height: 100%;
}

xm-select .xm-label .xm-label-block {
    height: 22px !important;
    line-height: 22px !important;
    padding: 0 8px !important;
    margin: 0 6px 0 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.layui-laydate .layui-this {
    background-color: var(--tj-red) !important;
}

.layui-laydate-header i:hover,
.layui-laydate-header span:hover,
.layui-laydate-footer span[lay-type=date] {
    color: var(--tj-red) !important;
}

.laydate-btns-confirm {
    color: var(--tj-red) !important;
}

.layui-form-select dl dd.layui-this {
    background-color: var(--tj-red) !important;
}

/* ===== 统一头部（匹配 index2） ===== */
.tj-header {
    background: var(--tj-red);
    color: #fff;
}

.tj-header-bar {
    width: 1200px;
    max-width: calc(100% - 40px);
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tj-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
}

.tj-brand-logo {
    height: 52px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.tj-brand-qr {
    height: 52px;
    width: 52px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.tj-header-motto {
    height: 44px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: 20px;
    filter: brightness(0) invert(1);
}

.tj-header-auth,
.tj-header .img.tj-header-auth {
    display: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

.tj-header.is-guest .tj-header-auth,
.tj-header.is-guest .img.tj-header-auth {
    display: flex;
}

.tj-btn-login,
.tj-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 72px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.tj-btn-login {
    background: #fff;
    color: var(--tj-red);
}

.tj-btn-register {
    background: transparent;
    color: #fff;
}

.tj-btn-login:hover {
    background: #f5ebe8;
    color: var(--tj-red);
}

.tj-btn-register:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.tj-header .zhuxiao {
    display: none;
    align-self: stretch;
}

.tj-header.is-logged-in .zhuxiao {
    display: flex;
}

.tj-header .zhuxiao .headMain {
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}

.tj-user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.tj-user-dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.tj-user-dropdown .dropbtn:focus {
    outline: none;
}

.tj-user-avatar-icon,
.tj-user-caret-icon,
.tj-mobile-user-icon {
    font-size: 20px;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

.tj-user-caret-icon {
    font-size: 12px;
    margin-top: 1px;
}

.tj-user-name {
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tj-user-welcome {
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
}

.tj-header .dropdown-content,
.dropdown-content-wap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 168px;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    z-index: 99999;
}

.tj-header .dropdown-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.tj-header .dropdown-content a,
.dropdown-content-wap a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
}

.tj-header .dropdown-content a:hover,
.dropdown-content-wap a:hover {
    background-color: var(--tj-red);
    color: #fff;
}

.tj-user-dropdown:hover .dropdown-content,
.tj-user-dropdown.is-open .dropdown-content {
    display: block;
}

.tj-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e8e0de;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.tj-nav-inner {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.tj-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.tj-nav li {
    margin: 0 3%;
}

.tj-nav a {
    display: inline-block;
    padding: 12px 0;
    text-decoration: none;
    color: #5e5e5e;
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.tj-nav a:hover,
.tj-nav li:hover a {
    color: var(--tj-red);
    border-bottom-color: var(--tj-red);
}

.tj-mobile-bar {
    display: none;
}

/* ===== 统一底部（匹配 index2） ===== */
.tj-footer {
    background: var(--tj-red);
    color: #fff;
    text-align: center;
    padding: 16px 16px 18px;
    font-size: 13px;
    line-height: 1.8;
}

.tj-footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.tj-footer-contact img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
}

.tj-footer a {
    color: #fff;
    text-decoration: none;
}

.tj-footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1100px) {
    .tj-header-motto {
        display: none;
    }

    .tj-nav li {
        margin: 0 1.5%;
    }
}

.nav-mask {
    display: none;
}

@media screen and (max-width: 767px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-mask {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 46px;
        bottom: 0;
        background: rgba(40, 16, 12, .38);
        z-index: 1200;
    }

    body.nav-open {
        overflow: hidden;
    }

    body .homeNav {
        z-index: 1300;
    }

    .homeHeader,
    .homeHeader .top,
    .tj-header {
        height: auto;
        margin: 0;
        padding: 0;
        float: none;
        background: var(--tj-red);
    }

    .tj-header-bar,
    .tj-nav {
        display: none;
    }

    .tj-mobile-bar {
        display: flex;
        align-items: center;
        height: 46px;
        background: var(--tj-red);
        color: #fff;
        max-width: 100%;
        overflow: hidden;
    }

    .tj-mobile-bar .menubtn,
    .tj-mobile-bar .selfbtn {
        width: auto;
        min-width: 48px;
        flex: 0 0 auto;
        text-align: center;
        line-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 10px;
        color: #fff;
        text-decoration: none;
    }
    .tj-mobile-menu-icon {
        display: inline-block;
        width: 18px;
        height: 2px;
        background: #fff;
        box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
        vertical-align: middle;
    }
    .tj-mobile-bar .menubtn img {
        display: none;
    }

    .tj-mobile-bar .selfbtn img {
        display: none;
    }

    .tj-mobile-bar .selfbtn .tj-mobile-user-icon {
        font-size: 22px;
        line-height: 46px;
    }
    .tj-mobile-user-name {
        display: none;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        color: #fff;
        line-height: 46px;
    }

    .dropdown-content-wap {
        position: fixed;
        top: 46px;
        right: 0;
        left: auto;
        border-radius: 0 0 0 8px;
    }

    .dropdown-content-wap.is-open {
        display: block !important;
    }

    .tj-mobile-bar .homeTitle {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 17px;
        color: #fff;
        line-height: 46px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tj-header .img,
    .tj-header-auth {
        display: none !important;
    }

    .tj-header .dropdown-content {
        right: 0;
    }

    .tj-footer {
        font-size: 12px;
    }

    .tj-footer-contact {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===== 微信小程序入口 ===== */
.mp-entry {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    width: auto;
    padding: 0;
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
    box-shadow: var(--tj-shadow);
    z-index: 1200;
    overflow: hidden;
}

.mp-entry-toggle {
    display: none;
    border: none;
    background: var(--tj-red);
    color: #fff;
    width: 28px;
    padding: 10px 0;
    font-size: 12px;
    line-height: 1.25;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.mp-entry-body {
    width: 120px;
    padding: 10px 8px 12px;
    text-align: center;
}

.mp-entry.is-collapsed {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.mp-entry.is-collapsed .mp-entry-body {
    display: none;
}

.mp-entry-title,
.mp-entry-desc {
    font-size: 13px;
    line-height: 18px;
    color: var(--tj-text);
}

.mp-entry img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 6px auto;
    object-fit: contain;
}

@media screen and (max-width: 767px) {
    .mp-entry {
        display: none !important;
    }
}

/* ===== 表单图片上传 ===== */
.tj-upload {
    position: relative;
    width: 112px;
    height: 84px;
    border: 1px dashed #d7c8c3;
    border-radius: 6px;
    background: #fbf8f7;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.tj-upload::before {
    content: "+";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    line-height: 1;
    color: #c4b2ad;
    z-index: 0;
}

.tj-upload:hover {
    border-color: var(--tj-red);
    background: #f5ebe8;
}

.tj-upload .layui-upload-img,
.tj-upload img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border: none;
}

.tj-upload .is-placeholder {
    opacity: 0;
}

.tj-upload-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.4;
}

@media screen and (max-width: 767px) {
    .tj-upload {
        width: 96px;
        height: 72px;
    }
}

/* ===== AJAX 加载 ===== */
.tj-page-loading {
    position: fixed;
    inset: 0;
    z-index: 1250;
    pointer-events: none;
}

.tj-page-loading[hidden] {
    display: none !important;
}

.tj-page-loading-panel {
    display: none !important;
}

.tj-page-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 32%;
    background: var(--tj-red, #592019);
    animation: tj-load-bar 1.1s ease-in-out infinite;
}

.tj-skel-line {
    display: block;
    height: 14px;
    margin: 12px 0;
    border-radius: 4px;
    pointer-events: none;
    background: linear-gradient(90deg, #f4eeeb 25%, #faf7f6 50%, #f4eeeb 75%);
    background-size: 400% 100%;
    animation: tj-shimmer 1.2s ease infinite;
}

.tj-skel-title {
    height: 22px;
    width: 58%;
    margin: 12px auto;
}

.tj-skel-meta {
    height: 12px;
    width: 30%;
    margin: 0 auto 18px;
}

.tj-skel-line.is-short {
    width: 64%;
}

.tj-page-loading-panel {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    min-width: 88px;
    padding: 16px 18px 12px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #eadfdb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(40, 16, 12, .12);
    text-align: center;
}

.tj-page-loading-spin {
    width: 22px;
    height: 22px;
    margin: 0 auto 8px;
    border: 2px solid #eadfdb;
    border-top-color: var(--tj-red, #592019);
    border-radius: 50%;
    animation: tj-load-spin .7s linear infinite;
}

.tj-page-loading-panel p {
    margin: 0;
    font-size: 13px;
    color: #6d6d6d;
}

.tj-skeleton-card,
.tj-skeleton-row {
    pointer-events: none;
    background: linear-gradient(90deg, #f4eeeb 25%, #faf7f6 50%, #f4eeeb 75%);
    background-size: 400% 100%;
    animation: tj-shimmer 1.2s ease infinite;
}

.tj-skeleton-card {
    min-height: 210px;
    border-radius: 6px;
}

.tj-skeleton-row {
    height: 72px;
    border-radius: 8px;
    margin-bottom: 10px;
}

@keyframes tj-load-bar {
    0% { transform: translateX(-120%); width: 28%; }
    50% { width: 48%; }
    100% { transform: translateX(360%); width: 28%; }
}

@keyframes tj-load-spin {
    to { transform: rotate(360deg); }
}

@keyframes tj-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* ===== 修改密码弹窗 ===== */
.layui-layer.tj-pwd-layer {
    border-radius: 6px;
    overflow: hidden;
}

.layui-layer.tj-pwd-layer .layui-layer-title {
    height: 46px;
    line-height: 46px;
    padding: 0 48px 0 20px;
    font-size: 16px;
    border: none;
}

.layui-layer.tj-pwd-layer .layui-layer-setwin {
    top: 14px;
    right: 14px;
}

.layui-layer.tj-pwd-layer .layui-layer-close1 {
    background: none !important;
    width: 18px;
    height: 18px;
}

.layui-layer.tj-pwd-layer .layui-layer-close1:before {
    content: "×";
    color: #fff;
    font-size: 22px;
    line-height: 16px;
    font-weight: 300;
}

.layui-layer.tj-pwd-layer .layui-layer-content {
    padding: 22px 24px 6px;
    overflow: visible;
}

.layui-layer.tj-retrieve-layer .layui-layer-content {
    padding: 0;
    overflow: hidden;
}

.layui-layer.tj-retrieve-layer iframe {
    overflow: hidden;
}

.layui-layer.tj-pwd-layer .layui-layer-btn {
    padding: 10px 24px 20px;
    background: #fff;
    border-top: 1px solid #f0e8e5;
    text-align: right;
}

.layui-layer.tj-pwd-layer .layui-layer-btn a {
    height: 34px;
    line-height: 34px;
    padding: 0 20px;
    margin: 0 0 0 10px;
    border-radius: 4px;
    background-image: none !important;
}

.layui-layer.tj-pwd-layer .layui-layer-btn .layui-layer-btn1 {
    border: 1px solid #eadfdb;
    background: #fff;
    color: #5e5e5e;
}

.layui-layer.tj-pwd-layer .layui-layer-btn .layui-layer-btn1:hover {
    border-color: #d7c8c3;
    background: #fbf8f7;
    color: #2b2b2b;
}

.tj-pwd-form {
    margin: 0;
}

.tj-pwd-form .layui-form-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 16px;
}

.tj-pwd-form .layui-form-label {
    float: none;
    width: 86px;
    flex: 0 0 86px;
    padding: 8px 12px 0 0;
    line-height: 22px;
    color: #5e5e5e;
    text-align: right;
}

.tj-pwd-form .layui-input-block {
    float: none;
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
}

.tj-pwd-form .layui-input {
    height: 38px;
    border: 1px solid #eadfdb;
    border-radius: 4px;
    box-sizing: border-box;
}

.tj-pwd-form .layui-input:hover {
    border-color: #d7c8c3;
}

.tj-pwd-form .layui-input:focus {
    border-color: var(--tj-red, #592019);
    box-shadow: 0 0 0 2px rgba(89, 32, 25, .08);
}

.tj-pwd-form .tj-pwd-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.5;
}

.tj-pwd-strength,
#tips.tj-pwd-strength {
    display: flex;
    gap: 8px;
    width: 100%;
    height: auto;
}

.tj-pwd-strength span,
#tips.tj-pwd-strength span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 28px;
    margin: 0;
    font-size: 12px;
    line-height: 28px;
    color: #8a8a8a;
    background: #f7f4f3;
    border: 1px solid #eadfdb;
    border-radius: 4px;
}

.tj-pwd-strength span.is-weak,
#tips.tj-pwd-strength span.is-weak {
    background: #a34a42;
    border-color: #a34a42;
    color: #fff;
}

.tj-pwd-strength span.is-mid,
#tips.tj-pwd-strength span.is-mid {
    background: #b07a48;
    border-color: #b07a48;
    color: #fff;
}

.tj-pwd-strength span.is-strong,
#tips.tj-pwd-strength span.is-strong {
    background: #5b7a4a;
    border-color: #5b7a4a;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .layui-layer.tj-pwd-layer .layui-layer-content {
        padding: 16px 16px 4px;
    }

    .layui-layer.tj-retrieve-layer .layui-layer-content {
        padding: 0;
    }

    .layui-layer.tj-pwd-layer .layui-layer-btn {
        padding: 8px 16px 16px;
    }

    .tj-dialog.tj-retrieve {
        padding: 16px 16px 4px;
        overflow: hidden;
    }

    .tj-pwd-form:not(.retrieveForm) .layui-form-item {
        flex-direction: column;
        align-items: stretch;
    }

    .tj-pwd-form:not(.retrieveForm) .layui-form-label {
        width: auto;
        flex: none;
        text-align: left;
        padding: 0 0 6px;
    }

    .tj-retrieve .tj-pwd-form .layui-form-item,
    .tj-dialog.tj-retrieve .layui-form-item {
        flex-direction: row;
        align-items: center;
    }

    .tj-retrieve .tj-pwd-form .layui-form-label,
    .tj-dialog.tj-retrieve .layui-form-label {
        width: 72px;
        flex: 0 0 72px;
        text-align: right;
        padding: 0 10px 0 0;
        line-height: 38px;
    }

    .tj-pwd-form .retrieve-vcode img,
    .tj-dialog .retrieve-vcode img {
        width: 108px;
        flex-basis: 108px;
    }
}

/* ===== iframe / 弹层表单 ===== */
body.tj-dialog {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #2b2b2b;
    background: #fff;
}

.tj-dialog .main {
    margin: 18px 16px 8px;
}

.tj-dialog .iptAddress {
    display: flex;
    align-items: center;
    float: none;
    width: 100%;
    height: auto;
    min-height: 36px;
    margin: 0 0 14px;
    padding: 0;
    line-height: 36px;
    box-sizing: border-box;
}

.tj-dialog .iptAddress label {
    float: none;
    flex: 0 0 88px;
    width: 88px;
    padding-right: 10px;
    text-align: right;
    color: #5e5e5e;
    font-size: 13px;
}

.tj-dialog .iptAddress .layui-input-inline {
    float: none;
    flex: 1;
    width: auto !important;
    margin: 0;
}

.tj-dialog .main input[type="text"],
.tj-dialog .main input.layui-input,
.tj-dialog .shopForm .layui-input,
.tj-dialog .retrieveForm .layui-input {
    height: 36px;
    line-height: 36px;
    width: 100%;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #eadfdb;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.tj-dialog .main input[type="text"]:focus,
.tj-dialog .main input.layui-input:focus,
.tj-dialog .shopForm .layui-input:focus,
.tj-dialog .retrieveForm .layui-input:focus {
    border-color: var(--tj-red);
    box-shadow: 0 0 0 2px rgba(89, 32, 25, .08);
}

.tj-dialog .layui-form-select .layui-input {
    height: 36px;
}

.tj-dialog .layui-form-select dl {
    min-width: 100%;
    left: 0;
    top: 38px;
}

.tj-dialog .layui-btn,
.tj-dialog .layui-btn-danger {
    background-color: var(--tj-red) !important;
}

.tj-dialog .layui-btn:hover,
.tj-dialog .layui-btn-danger:hover {
    background-color: var(--tj-red-hover) !important;
}

.tj-dialog .shopForm .layui-input-inline {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 12px;
}

.tj-dialog .shopForm .layui-form-label {
    float: none;
    width: 110px;
    flex: 0 0 110px;
    padding: 8px 10px 8px 0;
    color: #5e5e5e;
}

.tj-dialog .shopForm .layui-input-block {
    float: none;
    flex: 1;
    margin: 0;
    height: auto;
}

.tj-dialog .retrieveForm {
    margin: 8px 4px 0;
}

.tj-dialog.tj-retrieve {
    padding: 20px 22px 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.tj-dialog.tj-retrieve .retrieveForm {
    margin: 0;
}

.tj-dialog.tj-retrieve .layui-form-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 14px;
}

.tj-dialog.tj-retrieve .layui-form-label {
    width: 72px;
    flex: 0 0 72px;
    padding: 0 10px 0 0;
    line-height: 38px;
    text-align: right;
}

.tj-retrieve .retrieve-lead {
    margin: 0 0 18px;
    padding: 8px 12px;
    background: var(--tj-red-bar);
    border-radius: 4px;
    color: var(--tj-red-mid);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.tj-pwd-form .retrieve-vcode,
.tj-dialog .retrieve-vcode {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.tj-pwd-form .retrieve-vcode .layui-input,
.tj-dialog .retrieve-vcode .layui-input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.tj-pwd-form .retrieve-vcode img,
.tj-dialog .retrieve-vcode img {
    width: 118px;
    height: 38px;
    flex: 0 0 118px;
    border: 1px solid #eadfdb;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    background: #fbf8f7;
}

.tj-pwd-form .retrieve-vcode img:hover,
.tj-dialog .retrieve-vcode img:hover {
    border-color: #d7c8c3;
}

.tj-dialog .retrieveForm .layui-inline {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 16px;
}

.tj-dialog .retrieveForm .layui-form-label {
    float: none;
    width: 72px;
    flex: 0 0 72px;
    padding: 0 10px 0 0;
    text-align: right;
    color: #5e5e5e;
}

.tj-dialog .retrieveForm .layui-input-inline {
    float: none;
    flex: 1;
    width: auto;
}

.tj-dialog .verify-bar-area {
    margin: 4px auto 0;
}

/* ===== 我的地址 ===== */
.addr-card {
    width: 94%;
    margin: 0 auto 12px;
    padding: 16px 18px 14px;
    background: #fff;
    border: 1px solid #eadfdb;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

.addr-card.is-current {
    border-color: var(--tj-red);
    background: #fbf8f7;
}

.addr-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 1px 8px;
    font-size: 12px;
    color: var(--tj-red);
    border: 1px solid #d7c8c3;
    border-radius: 4px;
    background: #fff;
}

.addr-meta {
    font-size: 15px;
    color: #2b2b2b;
}

.addr-name {
    font-weight: 600;
    margin-right: 12px;
}

.addr-phone {
    color: #6d6d6d;
    font-size: 14px;
}

.addr-line {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5e5e5e;
}

.addr-actions {
    margin-top: 12px;
    text-align: right;
}

.addr-actions button {
    height: 28px;
    padding: 0 12px;
    margin-left: 8px;
    border: 1px solid #eadfdb;
    border-radius: 4px;
    background: #fff;
    color: #5e5e5e;
    cursor: pointer;
}

.addr-actions .addressUP {
    border-color: var(--tj-red);
    background: var(--tj-red);
    color: #fff;
}

.addr-actions .addressDel:hover {
    border-color: #a34a42;
    color: #a34a42;
}

.addr-empty {
    width: 94%;
    margin: 24px auto;
    padding: 36px 12px;
    text-align: center;
    color: #8a8a8a;
    border: 1px dashed #eadfdb;
    border-radius: 8px;
}

.mainStyle > .addAddress {
    height: 56px;
    line-height: 56px;
    border-top: 1px solid #eadfdb;
    border-bottom: none;
    color: var(--tj-red);
    cursor: pointer;
}

.mainStyle > .addAddress span {
    color: var(--tj-red);
}

/* ===== 通知列表 ===== */
.noticeMain {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noticeMain > div {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: 108px;
    margin: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eadfdb;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.noticeMain > div:hover {
    border-color: var(--tj-red);
    background: #fbf8f7;
}

.noticeTime {
    flex: 0 0 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px 0 0;
    margin: 0;
    border-right: 1px solid #eadfdb;
    text-align: left;
    color: var(--tj-red);
}

.noticeTime p:first-child {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.noticeTime p:nth-child(2) {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.noticeContent {
    flex: 1;
    min-width: 0;
    margin: 0 16px;
}

.noticeContent p:nth-child(1) {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2b2b2b;
}

.noticeContent p:nth-child(2) {
    margin: 8px 0 0;
    height: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #7a7a7a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.readPassage {
    align-self: center;
    flex-shrink: 0;
    width: auto;
    min-width: 88px;
    height: 32px;
    margin: 0;
    padding: 0 14px;
    border: none;
    border-radius: 4px;
    background: var(--tj-red);
    color: #fff;
    cursor: pointer;
}

.readPassage:hover {
    background: var(--tj-red-hover);
}

#newsPage {
    margin-top: 20px;
}

@media screen and (max-width: 767px) {
    .noticeMain > div {
        flex-wrap: wrap;
        min-height: 0;
        padding: 14px 12px;
    }

    .noticeTime {
        flex: 0 0 70px;
        padding-right: 10px;
    }

    .noticeTime p:first-child {
        font-size: 18px;
    }

    .noticeContent {
        flex: 1;
        margin: 0 0 0 10px;
        width: auto;
    }

    .readPassage {
        width: 100%;
        margin-top: 10px;
    }
}

/* ===== 评价弹层 ===== */
.tj-judge {
    padding: 16px 18px 8px;
}

.tj-judge-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tj-judge-label {
    color: #5e5e5e;
    font-size: 14px;
}

.tj-judge #spans {
    color: var(--tj-red);
    font-size: 13px;
}

.tj-judge .layui-form-label {
    width: 72px;
    color: #5e5e5e;
}

.tj-judge .ke-container {
    float: none;
    margin: 0 auto 12px;
    border-color: #eadfdb;
}

.tj-judge-field {
    margin-left: 82px;
}

.tj-judge-textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #eadfdb;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    color: #2b2b2b;
    background: #fff;
}

.tj-judge-textarea:focus {
    border-color: var(--tj-red-mid);
    outline: none;
}

.tj-judge-textarea[readonly] {
    background: #f7f4f3;
    color: #5e5e5e;
}

.tj-judge-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8a8a;
    text-align: right;
    max-width: 420px;
}

.tj-judge-actions {
    text-align: center;
    margin-left: 0 !important;
}

.tj-judge .layui-btn {
    background: var(--tj-red);
}

/* ===== 快递轨迹 ===== */
.tj-express {
    margin: 0;
    padding: 16px 18px;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #2b2b2b;
    background: #fff;
    font-size: 14px;
}

.tj-express .mh-list ul {
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
}

.tj-express .mh-list li {
    position: relative;
    padding: 0 0 16px 16px;
    border-left: 2px solid #eadfdb;
    color: #5e5e5e;
}

.tj-express .mh-list li.first {
    color: var(--tj-red);
    font-weight: 600;
}

.tj-express .mh-list li .after {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d7c8c3;
}

.tj-express .mh-list li.first .after {
    background: var(--tj-red);
}

.tj-express .mh-list li p {
    margin: 0 0 4px;
    line-height: 1.6;
}

.tj-express-empty {
    padding: 28px 8px;
    text-align: center;
    color: #8a8a8a;
    line-height: 1.7;
}
