* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 为纵向滚动条预留稳定槽位：滚动条出现/消失或弹窗锁 body 滚动时，内容区宽度不再突变（优于 JS 量 padding） */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", "San Francisco", "Georgia", "Palatino", Arial, sans-serif;
    color: #303133;
    overflow-x: hidden;
}

body.nstl-dialog-scroll-lock {
    overflow: hidden;
}

/* 统一滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* Firefox 滚动条样式 */
/* * {
    scrollbar-width: thin;
    scrollbar-color: #c0c4cc #f5f7fa;
} */

/* 顶部导航栏 */
.nstl-doc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
    z-index: 1000;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 0;
}

.nstl-doc-topbar img {
    width: 40px;
    margin: 0 15px 0 0;
}

.doc-topbar h1 {
    font-size: 20px;
    font-weight: 600;
    color: #036bde;
    margin: 0;
}

.page-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
    font-size: 20px;
    font-weight: bold;
    color: #036bde;
}

/* 主容器 - 左右布局 */
.nstl-doc-wrapper {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 左侧导航栏 */
.nstl-doc-sidebar {
    width: 240px;
    background: #fff;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    padding-top: 20px;
}

/* 左侧导航栏滚动条 - 默认隐藏，滚动或悬停时显示 */
.nstl-doc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.nstl-doc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.nstl-doc-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s;
}

.nstl-doc-sidebar:hover::-webkit-scrollbar-thumb,
.nstl-doc-sidebar.scrolling::-webkit-scrollbar-thumb {
    background: #c0c4cc;
}

.nstl-doc-sidebar:hover::-webkit-scrollbar-thumb:hover,
.nstl-doc-sidebar.scrolling::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* Firefox 滚动条 */
.nstl-doc-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.nstl-doc-sidebar:hover,
.nstl-doc-sidebar.scrolling {
    scrollbar-color: #c0c4cc transparent;
}


.nstl-doc-nav {
    padding: 20px 0;
}

.nstl-doc-nav-group {
    margin-bottom: 30px;
}

.nstl-doc-nav-group-title {
    font-size: 12px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nstl-doc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.nstl-doc-nav-item a {
    display: block;
    padding: 9px 0;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    color: #444;
}

.nstl-doc-nav-item a:hover {
    color: #036bde;
}

.nstl-doc-nav-item.active a {
    color: #036bde;
    font-weight: 600;
}

.nstl-doc-nav-sub-item {
    font-size: 12px;
    color: #999;
    line-height: 26px;
    margin-top: 15px;
}

/* 右侧内容区域 */
.nstl-doc-container {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding-top: 40px;
}

.nstl-doc-container-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 10px 0 30px;
    background: #fff;
    min-height: calc(100vh - 60px);
}

.nstl-doc-section {
    display: none;
    width: 100%;
    margin-bottom: 60px;
    scroll-margin-top: 80px;
    clear: both;
}

.nstl-doc-section.active {
    display: block;
}

.nstl-doc-section h3 {
    color: #333;
    margin: 30px 0 10px;
    font-size: 20px;
    font-weight: normal;
    font-family: MicrosoftYaHei;
}

.nstl-doc-section h4 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 10px;
    font-weight: normal;
    font-family: MicrosoftYaHei;
}

.nstl-doc-section p {
    color: #606266;
    margin: 15px 0;
    line-height: 1.8;
    font-size: 16px;
    font-family: MicrosoftYaHei;
}

.nstl-primary-colors {
    display: flex;
    gap: 24px;
    margin: 20px 0;
}

.nstl-primary-card {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.nstl-primary-card-body {
    flex: 1;
    padding: 20px 24px;
    color: #fff;
}

.nstl-primary-card-name {
    font-size: 18px;
    font-weight: 600;
}

.nstl-primary-card-hex {
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.9;
    font-family: MicrosoftYaHei;
}

.nstl-primary-card-strip {
    display: flex;
    height: 50px;
}

.nstl-primary-card-strip span {
    flex: 1;
}

.nstl-gradient-bar {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: MicrosoftYaHei;
    margin: 16px 0;
}

.nstl-gradient-bar-light {
    color: #606266;
}

.nstl-aux-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.nstl-aux-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-family: MicrosoftYaHei;
    font-weight: 500;
}

.nstl-aux-tag-light {
    color: #606266;
    border: 1px solid #e0e0e0;
}

.nstl-neutral-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.nstl-neutral-item {
    padding: 16px 20px;
    border-radius: 4px;
    color: #fff;
    min-height: 60px;
}

.nstl-neutral-item .nstl-neutral-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.nstl-neutral-item .nstl-neutral-hex {
    font-size: 13px;
    font-family: MicrosoftYaHei;
    opacity: 0.85;
}

.nstl-neutral-item .nstl-neutral-name.dark,
.nstl-neutral-item .nstl-neutral-hex.dark {
    color: #606266;
}

.nstl-neutral-border-item {
    background-color: #fff;
}

.nstl-neutral-transparent {
    background:
        linear-gradient(to bottom right, transparent calc(50% - 0.5px), #e0a0a0 calc(50% - 0.5px), #e0a0a0 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        #fff;
    border: 1px solid #e0a0a0;
}

.nstl-neutral-placeholder {
    visibility: hidden;
}

.nstl-typography-sample {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin: 15px 0;
}

.nstl-typography-sample h1,
.nstl-typography-sample h2,
.nstl-typography-sample h3,
.nstl-typography-sample h4,
.nstl-typography-sample h5,
.nstl-typography-sample h6 {
    margin: 10px 0;
}

.nstl-border-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.nstl-border-table th,
.nstl-border-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
    color: #606266;
}

.nstl-border-table th {
    color: #909399;
    font-weight: normal;
}

.nstl-border-table th:last-child,
.nstl-border-table td:last-child {
    width: 50%;
}

.nstl-border-sample {
    width: 100%;
    height: 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.nstl-border-gradient {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #6322DC, #2E52F8);
}

.nstl-border-solid {
    border-bottom-color: #DCDFE6;
}

.nstl-border-dashed {
    border-bottom-style: dashed;
    border-bottom-color: #DCDFE6;
}

.nstl-radius-demo {
    display: flex;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nstl-radius-item {
    text-align: left;
}

.nstl-radius-label {
    font-size: 13px;
    color: #606266;
    margin-bottom: 4px;
}

.nstl-radius-box {
    width: 160px;
    height: 60px;
    border: 1px solid #dcdfe6;
    background: #fff;
    margin-top: 8px;
}

.nstl-shadow-demo {
    margin: 20px 0;
}

.nstl-shadow-item {
    margin-bottom: 32px;
}

.nstl-shadow-title {
    font-size: 16px;
    font-family: MicrosoftYaHei;
    color: #606266;
    margin-bottom: 4px;
}

.nstl-shadow-value {
    font-size: 16px;
    color: #333;
    font-family: MicrosoftYaHei;
    margin-bottom: 12px;
}

.nstl-shadow-box {
    width: 240px;
    height: 80px;
    background: #fff;
    border-radius: 4px;
}

.nstl-component-demo {
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    background: #fafafa;
}

.nstl-component-demo-title {
    font-size: 16px;
    color: #303133;
    margin-bottom: 20px;
    font-weight: 600;
}

.nstl-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.nstl-btn {
    padding: 6px 25px;
    border-radius: 8px;
    height: 40px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nstl-btn img {
    width: 30px;
}

.nstl-btn-primary {
    background-image: linear-gradient(90deg,
            #2e52f8 0%,
            #8451e2 100%),
        linear-gradient(0deg,
            #6717cd 0%,
            #2871fa 100%);
    color: white;
    border-radius: 28px;
    font-family: MicrosoftYaHei-Bold;
    padding: 6px 20px;
}

.nstl-btn-primary:hover,
.nstl-btn-primary.hover {
    background-image: linear-gradient(90deg,
            #504cfa 0%,
            #a560f4 100%),
        linear-gradient(90deg,
            #2e52f8 0%,
            #8351e2 100%);
}

.nstl-btn-primary:active,
.nstl-btn-primary.active {
    background-image: linear-gradient(90deg,
            #1a40ed 0%,
            #6b30d8 100%),
        linear-gradient(0deg,
            #6717cd 0%,
            #2871fa 100%);
}

.nstl-btn-primary.disabled {
    background-image: linear-gradient(90deg,
            #bcc1da 0%,
            #c2bad6 100%),
        linear-gradient(0deg,
            #6717cd 0%,
            #2871fa 100%);
    cursor: not-allowed;
}

.nstl-btn-blue {
    background-color: #2e52f8;
    color: white;
}

.nstl-btn-blue:hover,
.nstl-btn-blue.hover {
    background-color: #4a6aff;
}

.nstl-btn-blue:active,
.nstl-btn-blue.active {
    background-color: #1f42e4;
}

.nstl-btn-blue.disabled {
    background-color: #b9bed5;
    cursor: not-allowed;
}

.nstl-btn-warning {
    background-color: #ecb742;
    color: white;
}

.nstl-btn-warning:hover,
.nstl-btn-warning.hover {
    background-color: #f4c254;
}

.nstl-btn-warning:active,
.nstl-btn-warning.active {
    background-color: #e8af30;
}

.nstl-btn-warning.disabled {
    background-color: #f1deb4;
    cursor: not-allowed;
}

.nstl-btn-weaken {
    background-color: #f2f6fe;
    color: #828BAC;
    border: solid 1px #e3edff;
}

.nstl-btn-weaken:hover,
.nstl-btn-weaken.hover {
    background-color: #f8faff;
    border: solid 1px #cfdefb;
}

.nstl-btn-weaken:active,
.nstl-btn-weaken.active {
    background-color: #e5ecf8;
    border: solid 1px #e3edff;
}

.nstl-btn-weaken.disabled {
    background-color: #f2f6fe;
    border: solid 1px #e3edff;
    cursor: not-allowed;
}

.nstl-btn-danger {
    background-color: #ff5b5b;
    color: white;
}

.nstl-btn-danger:hover,
.nstl-btn-danger.hover {
    background-color: #ff7575;
}

.nstl-btn-danger:active,
.nstl-btn-danger.active {
    background-color: #ee5757;
}

.nstl-btn-danger.disabled {
    background-color: #ffc9c9;
    cursor: not-allowed;
}

.nstl-btn-secondary {
    color: #667099;
    border: solid 1px #667099;
    background-image: linear-gradient(0deg,
            #edf1f7 0%,
            #ffffff 100%);
}

.nstl-btn-secondary:hover,
.nstl-btn-secondary.hover {
    background-image: linear-gradient(0deg,
            #f9fcff 0%,
            #ffffff 100%);
    border: solid 1px #667099;
}

.nstl-btn-secondary:active,
.nstl-btn-secondary.active {
    background-image: linear-gradient(180deg,
            #edf1f7 0%,
            #ffffff 100%);
    border: solid 1px #667099;
}

.nstl-btn-secondary.disabled {
    background-color: #f8f9ff;
    border: solid 1px #b9bed5;
    cursor: not-allowed;
}

.nstl-btn-state-table {
    margin: 20px 0;
}

.nstl-btn-state-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
}

.nstl-btn-state-row:last-child {
    border-bottom: none;
}

.nstl-btn-state-label {
    margin-left: auto;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    padding-left: 24px;
}

.nstl-form-group {
    margin-bottom: 20px;
    font-size: 14px;
}

.nstl-form-label {
    display: inline-block;
    min-width: 125px;
    text-align: right;
    color: #626262;
    font-size: 14px;
    vertical-align: middle;
}

.nstl-form-label .colorred {
    color: #FF0000;
    vertical-align: middle;
    margin: 0px 5px;
}

.nstl-form-span {
    font-size: 14px;
    color: #626262;
}

.nstl-form-input {
    width: 300px;
    height: 30px;
    background-color: #ffffff;
    border: solid 1px #e0e0e0;
    padding: 0px 10px;
    outline: 0;
    vertical-align: middle;
}

.nstl-form-input::placeholder {
    color: #c0c4cc;
}

.nstl-form-group .prompt {
    padding-left: 130px;
    font-size: 12px !important;
    display: inline-block;
    width: 800px;
    color: #bfa650;
}

.nstl-form-select {
    width: 300px;
    height: 30px;
    background-color: #ffffff;
    border: solid 1px #e0e0e0;
    padding: 0px 10px;
    color: #8b8b8b;
    outline: 0;
    vertical-align: middle;
}

/* Radio 单选框 */
.nstl-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin: 40px 15px;
}

.nstl-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1;
    color: #606266;
}

.nstl-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.nstl-radio-mark {
    position: relative;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.nstl-radio-input:checked+.nstl-radio-mark {
    border: 5px solid #2e52f8;
}

.nstl-radio-input:checked+.nstl-radio-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
}

.nstl-radio-input .nstl-radio-text {
    color: #606266;
}

.nstl-radio-input:checked~.nstl-radio-text {
    color: #2E52F8;
}

.nstl-radio:hover .nstl-radio-mark {
    border-color: #2E52F8;
}

.nstl-radio-input:disabled+.nstl-radio-mark {
    border-color: #e2e5eb;
    background: #f5f7fa;
    cursor: not-allowed;
}

.nstl-radio-input:disabled:checked+.nstl-radio-mark {
    border-color: #e4e7ed;
    background: #c4c8d0;
}

.nstl-radio-input:disabled:checked+.nstl-radio-mark::after {
    background: #C4C8D0;
}

.nstl-radio-input:disabled~.nstl-radio-text {
    color: #c0c4cc;
    cursor: not-allowed;
}

.nstl-radio:has(.nstl-radio-input:disabled) {
    cursor: not-allowed;
}

.nstl-radio:has(.nstl-radio-input:disabled):hover .nstl-radio-mark {
    border-color: #e4e7ed;
}

.nstl-radio-input:focus-visible+.nstl-radio-mark {
    box-shadow: 0 0 0 2px rgba(46, 82, 248, 0.2);
}

/* Checkbox 多选框 */
.nstl-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin: 40px 15px;
}

.nstl-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1;
    color: #606266;
}

.nstl-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.nstl-checkbox-mark {
    position: relative;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.nstl-checkbox-input:checked+.nstl-checkbox-mark {
    background: #2e52f8;
    border-color: #2e52f8;
}

.nstl-checkbox-input:checked+.nstl-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.nstl-checkbox-input:checked~.nstl-checkbox-text {
    color: #2e52f8;
}

.nstl-checkbox:hover .nstl-checkbox-mark {
    border-color: #2e52f8;
}

.nstl-checkbox-input:checked:hover+.nstl-checkbox-mark {
    background: #2547d9;
    border-color: #2547d9;
}

.nstl-checkbox-input:disabled+.nstl-checkbox-mark {
    border-color: #e4e7ed;
    background: #f5f7fa;
    cursor: not-allowed;
}

.nstl-checkbox-input:disabled:checked+.nstl-checkbox-mark {
    background: #e4e7ed;
    border-color: #e4e7ed;
}

.nstl-checkbox-input:disabled:checked+.nstl-checkbox-mark::after {
    border-color: #c0c4cc;
}

.nstl-checkbox-input:disabled~.nstl-checkbox-text {
    color: #c0c4cc;
    cursor: not-allowed;
}

.nstl-checkbox:has(.nstl-checkbox-input:disabled) {
    cursor: not-allowed;
}

.nstl-checkbox:has(.nstl-checkbox-input:disabled):hover .nstl-checkbox-mark {
    border-color: #e4e7ed;
}

.nstl-checkbox-input:disabled:checked:hover+.nstl-checkbox-mark {
    background: #e4e7ed;
    border-color: #e4e7ed;
}

.nstl-checkbox-input:focus-visible+.nstl-checkbox-mark {
    box-shadow: 0 0 0 2px rgba(46, 82, 248, 0.2);
}

/* Input 输入框 */
.nstl-input-demo-block {
    margin: 24px 15px 32px 0;
}

.nstl-input-demo-block--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 40px;
}

.nstl-input-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    vertical-align: middle;
}

.nstl-input {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 36px;
    color: #606266;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.nstl-input::placeholder {
    color: #c0c4cc;
}

.nstl-input:hover:not(:disabled) {
    border-color: #c0c4cc;
}

.nstl-input:focus:not(:disabled) {
    border-color: #2e52f8;
}

.nstl-input:disabled {
    background: #f5f7fa;
    border-color: #e4e7ed;
    color: #c0c4cc;
    cursor: not-allowed;
}

.nstl-input:disabled::placeholder {
    color: #c0c4cc;
}

.nstl-input-wrap--suffix .nstl-input {
    padding-right: 36px;
}

.nstl-input__suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    pointer-events: none;
    line-height: 1;
}

.nstl-input__svg {
    display: block;
    flex-shrink: 0;
}

.nstl-input-wrap--prefix .nstl-input {
    padding-left: 36px;
}

.nstl-input__prefix {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    pointer-events: none;
    font-size: 16px;
    line-height: 1;
}

.nstl-card {
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.nstl-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nstl-card-header {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e7ed;
}

.nstl-card-body {
    color: #606266;
}

.nstl-spacing-demo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.nstl-spacing-box {
    background: #036bde;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.nstl-table-demo {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nstl-table-demo th,
.nstl-table-demo td {
    padding: 12px;
    text-align: left;
}

.nstl-table-demo th {
    background-color: #f2f3f7;
    color: #606266;
    font-weight: 600;
    padding: 10px 12px;
}

.nstl-table-demo tr:hover {
    background-color: #f5f7fa;
}

.nstl-table-demo .handle-btn {
    font-size: 14px;
    color: #959494;
}

.nstl-table-demo a.handle-btn {
    color: #066bd1;
    cursor: pointer;
}

.nstl-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.nstl-badge-primary {
    background-color: #ecf5ff;
    color: #036bde;
}

.nstl-badge-success {
    background-color: #f0f9ff;
    color: #67c23a;
}

.nstl-badge-warning {
    background-color: #fdf6ec;
    color: #e6a23c;
}

.nstl-badge-danger {
    background-color: #fef0f0;
    color: #f56c6c;
}

.nstl-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 4px;
    background-color: #ecf5ff;
    color: #036bde;
    border: 1px solid #b3d8ff;
}

.nstl-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid;
}

.nstl-alert-success {
    background-color: #f0f9ff;
    border-color: #67c23a;
    color: #67c23a;
}

.nstl-alert-warning {
    background-color: #fdf6ec;
    border-color: #e6a23c;
    color: #e6a23c;
}

.nstl-alert-danger {
    background-color: #fef0f0;
    border-color: #f56c6c;
    color: #f56c6c;
}

.nstl-alert-info {
    background-color: #ecf5ff;
    border-color: #036bde;
    color: #036bde;
}

.nstl-code-block {
    background: #fafafa;
    border: solid 1px #f2f3f7;
    color: #16a575;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: MicrosoftYaHei;
    font-size: 14px;
    line-height: 1.6;
}


.nstl-image-demo {
    padding: 20px;
}

.nstl-image-demo-item img {
    max-width: 100%;
}

.nstl-grid-demo {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.nstl-grid-item {
    background: #036bde;
    color: white;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.nstl-icon-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nstl-icon-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    width: 151px;
    height: 120px;
    transition: all 0.3s;
    padding: 0 15px;
}

.nstl-icon-item:hover {
    background-color: #ecf5ff;
}

.nstl-icon-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
}

.nstl-icon-item i {
    font-size: 26px;
    color: #606266;
    margin: 0 0 5px 0;
}

.nstl-icon-item span {
    font-size: 12px;
    color: #606266;
    text-align: center;
    height: 1em;
}

.nstl-layout-demo {
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.nstl-layout-header {
    background: #036bde;
    color: white;
    padding: 20px;
    text-align: center;
}

.nstl-layout-body {
    display: flex;
    min-height: 200px;
}

.nstl-layout-sidebar {
    width: 200px;
    background: #f5f7fa;
    padding: 20px;
    border-right: 1px solid #e4e7ed;
}

.nstl-layout-content {
    flex: 1;
    padding: 20px;
    background: white;
}

.nstl-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.nstl-breadcrumb-item {
    color: #515151;
}


.nstl-breadcrumb .iconfont {
    font-size: 18px;
    color: #515151;
}

.nstl-pagination {
    display: flex;
    align-items: center;
}

.nstl-pagination-item {
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    font-size: 12px;
    background: #fff;
}

.nstl-pagination-select {
    outline: 0;
    height: 28px;
    padding: 3px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #eee;
    color: #333;
    font-size: 12px;
    margin: 0 0 0 10px;
}

.nstl-pagination-item.active {
    background-color: #aaa;
    color: white;
    border-color: #aaa;
}

/* 字体样式 */
.nstl-text-important-value {
    font-size: 40px;
    line-height: 1.7;
    font-weight: bold;
}

.nstl-text-headline {
    font-size: 36px;
    line-height: 1.2;
    font-weight: bold;
}

.nstl-text-subheading {
    font-size: 22px;
    line-height: 1.25;
}

.nstl-text-list-title {
    font-size: 16px;
    line-height: 1.25;
}

.nstl-text-body {
    font-size: 16px;
    line-height: 1.5;
}

.nstl-text-notes {
    font-size: 14px;
    line-height: 1.5;
}

.nstl-text-remarks {
    font-size: 12px;
    line-height: 1.25;
}

.nstl-font-family-en {
    font-family: "Segoe UI", "San Francisco";
}

.nstl-font-family-en-title {
    font-family: SegoeUI;
}

.nstl-font-family-zh {
    font-family: "微软雅黑-简", "平方-简";
}

.nstl-message {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 11px 28px;
    border-radius: 4px;
    background: rgba(37, 37, 37, 0.72);
    color: #fff;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Dialog 对话框：全屏遮罩 + 居中卡片 */
.nstl-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.nstl-dialog-overlay.is-open {
    display: flex;
}

.nstl-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
}

.nstl-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%),
        linear-gradient(90deg, rgba(229, 245, 254, .5) 0%, rgba(236, 234, 255, .5) 100%);
}

.nstl-dialog-title {
    margin: 0;
    font-size: 18px;
    color: #212121;
}

.nstl-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -8px -5px -6px 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #c0c4cc;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nstl-dialog-close:hover {
    color: #909399;
    background: #f5f7fa;
}

.nstl-dialog-body {
    padding: 20px 40px 8px;
}

.nstl-dialog-text-primary {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.9;
    text-indent: 2em;
    color: #212121;
}

.nstl-dialog-num {
    font-weight: 600;
}

.nstl-dialog-num--success {
    color: #52c41a;
    font-size: 18px;
}

.nstl-dialog-num--danger {
    color: #f5222d;
    font-size: 18px;
}

.nstl-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px 22px;
}

.nstl-dialog-footer .nstl-btn {
    min-width: 96px;
}

.nstl-dialog-btn-cancel {
    background: #f0f2f5 !important;
    color: #606266 !important;
    border: 1px solid #dcdfe6 !important;
}

.nstl-dialog-btn-cancel:hover {
    background: #e4e7ed !important;
    border-color: #c0c4cc !important;
}

@media (max-width: 1440px) {
    .nstl-doc-wrapper {
        padding: 0 30px;
    }

    .nstl-doc-container-inner {
        max-width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .nstl-doc-wrapper {
        padding: 0 20px;
        flex-direction: column;
    }

    .nstl-doc-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #e4e7ed;
    }

    .nstl-doc-container {
        padding: 20px 0;
    }

    .nstl-doc-container-inner {
        padding: 0 20px;
    }

    .nstl-doc-section {
        padding: 20px 0;
    }

    .nstl-primary-colors {
        flex-direction: column;
    }

    .nstl-neutral-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}