/* Header (AuditSign style) */
.layui-header{
    background: #FFFFFF !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(235, 235, 235, 1);
}

.header-inner{
    height: 50px;
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.brand{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 5%;
    flex-shrink: 1;
    min-width: 0;
}

.brand-logo{
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand-name{
    font-size: 26px;
    font-weight: 700;
    color: rgba(253, 94, 32, 1);
    line-height: 1;
    margin: 0;
}

.brand-tagline{
    font-size: 15px;
    color: rgba(120, 120, 120, 1);
    line-height: 1;
    margin-top: 10px;
}

.nav-menu{
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: right;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a{
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 2px;
    display: inline-block;
    line-height: 1;
}

.nav-menu a.is-active{
    color: rgba(253, 94, 32, 1);
}

.nav-menu a:hover{
    color: rgba(253, 94, 32, 1);
}

.header-actions{
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.menu-toggle{
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.menu-dots{
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #666666;
    position: relative;
    display: inline-block;
}

.menu-dots::before,
.menu-dots::after{
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #666666;
}

.menu-dots::before{
    top: -8px;
}

.menu-dots::after{
    top: 8px;
}

.mobile-nav-overlay{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 1090;
}

.mobile-nav-drawer{
    position: fixed;
    top: 0;
    right: 0;
    width: min(68vw, 280px);
    min-width: 230px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1100;
    padding: 12px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid #F1F1F1;
}

.mobile-nav-drawer-header{
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-close{
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    padding: 0 4px;
}

.mobile-nav-list{
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-list li{
    border-bottom: 1px solid rgba(253, 94, 32, 1);
}

.mobile-nav-link{
    width: 100%;
    border: none;
    background: #FFFFFF;
    text-align: left;
    color: #2F2F2F;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease, transform .1s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus{
    background: #FFF3EE;
    color: #FD5E20;
    outline: none;
}

.mobile-nav-link:active{
    transform: scale(0.99);
}

body.mobile-nav-open{
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-overlay{
    opacity: 1;
    visibility: visible;
}

body.mobile-nav-open .mobile-nav-drawer{
    transform: translateX(0);
}

.header-link{
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    text-decoration: none;
}

.header-link:hover{
    color: rgba(253, 94, 32, 1);
}

.btn-register{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    background: rgba(253, 94, 32, 1);
    color: #FFFFFF !important;
    border-radius: 2px;
    font-size: 14px;
    text-decoration: none;
}

.btn-register:hover{
    background: rgba(240, 84, 25, 1);
}

/* Register dialog */
.register-dialog {
    padding: 32px 32px 24px 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    border-radius: 15px;
    height: 250px;
    box-sizing: border-box;
}

.register-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.register-subtitle {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6B7280;
}

.google-btn {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.google-btn:hover {
    background-color: #F9FAFB;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.google-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.register-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.register-links a {
    color: #2563EB;
    text-decoration: none;
}

.register-links a:hover {
    text-decoration: underline;
}

.register-separator {
    display: flex;
    align-items: center;
    margin: 14px 0 14px 0;
    font-size: 12px;
    color: #9CA3AF;
}

.register-separator-line {
    flex: 1;
    height: 1px;
    background-color: #E5E7EB;
}

.register-separator-text {
    padding: 0 8px;
}

.register-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.register-field {
    flex: 1;
}

.register-input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    font-size: 13px;
    box-sizing: border-box;
}

.register-input::placeholder {
    color: #9CA3AF;
}

.register-input:focus {
    outline: none;
    border-color: #FD5E20;
    box-shadow: 0 0 0 1px rgba(253, 94, 32, 0.1);
}

@media (max-width: 1024px) {
    .brand-name{
        font-size: 4vw;
    }

    .brand-tagline{
        display: none;
    }

    .nav-menu{
        display: none;
    }

    .menu-toggle{
        display: inline-flex;
    }

    .mobile-nav-drawer{
        width: min(62vw, 260px);
    }
}

@media (max-width: 767px) {
    .layui-header{
        height: 44px;
        min-height: 44px;
    }

    .header-inner{
        padding: 6px 10px;
        height: 44px;
        min-height: 44px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .brand{
        margin-left: 0;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 122px);
        gap: 4px;
    }

    .brand-name{
        font-size: 6vw;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions{
        gap: 6px;
        flex-shrink: 0;
    }

    .mobile-nav-drawer{
        width: min(74vw, 280px);
        min-width: 220px;
    }

    .header-link{
        font-size: 12px;
        line-height: 1;
    }

    .btn-register{
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 3px;
    }

    .avatar_box{
        padding-left: 0 !important;
        margin-right: 0;
    }

    .avatar{
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
        margin-top: 0;
    }

    .avatar_icon{
        font-size: 16px;
    }
}

.user-info {
    margin-bottom: 10px;
}

.avatar_box {
    padding-left: 20px;
    margin-right: 10px;
    margin-top: 10px;
}

.avatar {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #ff5722;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
    margin-top: -10px;
}

.avatar_icon {
    font-size: 22px;
    color: #999999;
}

.user-panel {
    position: fixed;
    top: 50px;
    right: 1px;
    width: 310px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    z-index: 999;
}

.text_color_black {
    color: #181818;
}

.text_color_grey {
    color: #6A6A6A;
}

.user-text {
    display: inline-block;
    vertical-align: middle;
}

.user-text p {
    margin: 0;
    line-height: 22px;
}

.switch-btn {
    float: right;
    color: #666;
}

.member-btn {
    width: 286px;
    margin: 0 auto;
    padding: 10px;
    background: #FFF9EA;
    border: 2px solid #FDCEB4;
    border-radius: 6px;
}

.member-btn span {
    color: #FF712A;
}

.member-btn a {
    float: right;
    color: #FF712A;
}

.member_manager_div {
    width: 286px;
    margin: 0 auto;
    padding: 10px;
    background: #FFFFFF;
    border: 2px solid #7221FF;
    border-radius: 6px;
}

.member_manager_div span {
    color: #7221FF;
}

.member_manager_div a {
    float: right;
    color: #7221FF;
}

.privilege-title {
    margin: 20px auto 0 auto;
    width: 171px;
    background-color: #fff;
    font-size: 15px;
    position: relative;
    z-index: 2;
}

.privilege {
    text-align: center;
    border-top: 1px solid #E4E4E4;
    border-bottom: 1px solid #E4E4E4;
    margin-top: -10px;
}

.privilege-item {
    display: inline-block;
    width: 24%;
    margin-top: 10px;
}

.privilege-item-icon {
    padding-top: 5px;
    padding-bottom: 25px;
}

.privilege-icon {
    font-size: 24px;
    color: #FF712B;
}

.privilege-text {
    font-size: 15px;
    margin-top: -22px;
    padding-bottom: 10px;
}

.logout {
    height: 20px;
    margin-top: 12px;
    text-align: center;
}

.logout_icon {
    font-size: 16px;
    color: #D94A4A;
}

::-webkit-scrollbar {
    display: none;
}

.layui-layer{
    border-radius: 15px;
}
