:root {
    --theme-green: #22a06b;
    --theme-green-deep: #1a7f54;
    --theme-green-light: #e8f7ef;
    --theme-bg: #f4faf6;
    --theme-border: #d4e9dd;
    --theme-text: #1f2d2a;
}

body,
.btn,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

body.nk-body {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.nk-header {
    border-bottom: 1px solid var(--theme-border);
    background: #fff;
    box-shadow: 0 8px 22px -15px rgba(12, 50, 31, 0.35);
}

.logo-link {
    font-weight: 700;
    font-size: 21px;
    position: inherit;
    color: var(--theme-green-deep);
}

.logo-link:hover {
    color: var(--theme-green);
}

.logo-link img {
    height: 35px;
    margin: -3px 8px 0 5px;
}

.nk-ibx-action {
    position: relative;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e9f2;
}

.nk-ibx-action-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nk-ibx-action-item a {
    display: flex;
    align-items: center;
}

.nk-ibx-action-item .icon {
    font-size: 1.5rem;
}

.nk-ibx-action-item .icon + span,
.nk-ibx-action-item .fa + span {
    margin-left: 0.5rem;
}

.nk-ibx-action-item .fa {
    font-size: 1.2rem;
}

.dark-switch {
    color: var(--theme-green-deep);
}

.dark-switch:hover {
    color: var(--theme-green);
}

.dark-switch.active .ni-moon {
    display: none;
}

.dark-switch.active .ni-sun {
    display: inline !important;
}

.dark-switch:after,
.dark-switch:before {
    width: 0;
    height: 0;
    right: 0;
    background-color: transparent;
    border: 0;
}

.bannerbg {
    background-size: cover !important;
    background-position: center;
    border-bottom: 1px solid var(--theme-border);
}

.home-search-section {
    padding-top: 3rem !important;
    padding-bottom: 2.2rem !important;
}

.home-category-section {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(244, 250, 246, 0.92);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid #e5f1ea;
}

.home-category-section .card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}

.home-tools-section .nk-content-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-card .card-inner {
    padding-top: 2rem;
}

.card-preview {
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(24, 74, 48, 0.08);
}

.card + .card {
    margin-top: 28px;
}

.card-inner {
    border-radius: 14px;
}

.form-control-lx {
    height: calc(3.625rem + 2px);
    padding: 0.6875rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 8px 22px rgba(22, 90, 57, 0.08);
}

.form-control-lx.btn-round {
    border-radius: 2.125rem;
}

.form-control-lx:focus {
    border-color: var(--theme-green);
    box-shadow: 0 0 0 0.2rem rgba(34, 160, 107, 0.2);
}

.form-clip-lx,
.form-text-hint-lx {
    position: absolute;
    right: 22px;
    top: 6px;
    height: calc(3.125rem - 2px);
    display: flex;
    align-items: center;
    color: var(--theme-green-deep);
    padding-left: 1rem;
    padding-right: 0.75rem;
    background: #fff;
    border-radius: 4px;
}

.form-text-hint-lx .overline-title {
    font-size: 24px;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item.active:not(:only-child) {
    font-weight: 700;
}

.breadcrumb-item a {
    color: #4b5d57;
}

.breadcrumb-item a:hover {
    color: var(--theme-green);
}

.breadcrumb-item.active a {
    color: var(--theme-green-deep) !important;
}

.nya-title {
    position: absolute;
    top: -15px;
    background-color: var(--theme-green);
    color: #fff;
    padding: 5px 18px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 0.5rem 0.625rem rgba(34, 160, 107, 0.32);
}

.btn-block {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tool-link {
    background: #fff !important;
    color: #2f473d !important;
    border-color: #d9ebe2 !important;
    border-radius: 10px;
    min-height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(20, 70, 45, 0.07) !important;
    transition: all 0.18s ease-in-out;
}

.tool-link:hover,
.tool-link:focus {
    background: var(--theme-green-light) !important;
    border-color: var(--theme-green) !important;
    color: var(--theme-green-deep) !important;
    transform: translateY(-1px);
}

.btn-outline-info {
    color: var(--theme-green-deep);
    border-color: var(--theme-green);
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #fff;
    background: var(--theme-green);
    border-color: var(--theme-green);
}

.btn-outline-light {
    color: #2f473d;
    border-color: #d4e9dd;
    background: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--theme-green-deep);
    border-color: var(--theme-green);
    background: var(--theme-green-light);
}

.search-placeholder {
    position: relative;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    width: 100%;
    color: #8ca59a;
}

.center-block {
    margin: 0 auto;
    float: none;
    padding: 0;
}

.nk-footer {
    border-top: 1px solid var(--theme-border);
    background: #f0f8f3 !important;
}

.nk-footer-wrap {
    display: block;
}

.nk-footer-copyright {
    text-align: center;
}

#link_content {
    margin-top: 32px;
}

* ::-webkit-scrollbar {
    width: 0.375rem;
    height: 0.5rem;
}

* ::-webkit-scrollbar-thumb {
    background-color: var(--theme-green);
    border-radius: 6249.9375rem;
}

img.loginbtn {
    width: 66px;
    margin: 12px;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(24, 96, 60, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

img.loginbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 96, 60, 0.28);
}

.nk-reply-item {
    padding: 0;
}

.nk-reply-item + .nk-reply-item {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e9f2;
}

.custom-control-input {
    width: 2.4rem;
}

.custom-control-sm > .custom-control-input {
    width: 1.6rem;
}

.query-title,
.table-title {
    background-color: var(--theme-green-light);
}

.query-title {
    word-break: keep-all;
}

.query-result {
    word-break: break-all;
}

.auth-login-page .nk-content-body {
    padding-top: 18vh !important;
}

.auth-login-page .card-preview {
    text-align: center;
}

.dark-mode.nk-body {
    background: #121e18;
    color: #dcebe4;
}

@media (max-width: 576px) {
    .home-search-section {
        padding-top: 1.7rem !important;
        padding-bottom: 1.2rem !important;
    }

    .home-category-section {
        top: 56px;
    }

    .home-tools-section .nk-content-body {
        gap: 0.4rem;
    }

    .category-card .card-inner {
        padding-top: 1.5rem;
    }

    .nya-title {
        font-size: 0.88rem;
        padding: 4px 14px;
    }

    .tool-link {
        min-height: 46px;
        font-size: 0.875rem;
    }

    .auth-login-page .nk-content-body {
        padding-top: 12vh !important;
    }
}

.dark-mode .nk-header {
    background: #1a2a22;
    border-bottom-color: #30463b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dark-mode .logo-link,
.dark-mode .dark-switch {
    color: #80ddb1;
}

.dark-mode .dark-switch:hover,
.dark-mode .logo-link:hover {
    color: #94efc2;
}

.dark-mode .card-preview {
    border-color: #334f43;
    background: #1a2b23;
    box-shadow: none;
}

.dark-mode .form-text-hint-lx {
    background: #1a2b23;
}

.dark-mode .form-control-lx {
    border-color: #355245;
    background: #15221c;
    color: #d6e8de;
}

.dark-mode .breadcrumb-item a {
    color: #95b9a8;
}

.dark-mode .breadcrumb-item.active a {
    color: #80ddb1 !important;
}

.dark-mode .nya-title {
    background-color: #23714d;
}

.dark-mode .tool-link {
    background: #1f332a !important;
    color: #d8ebe1 !important;
    border-color: #355245 !important;
}

.dark-mode .tool-link:hover,
.dark-mode .tool-link:focus {
    background: #244636 !important;
    color: #9ff3c9 !important;
    border-color: #46b47d !important;
}

.dark-mode .btn-outline-light {
    color: #d8ebe1;
    border-color: #3a594b;
    background: #1d3027;
}

.dark-mode .btn-outline-light:hover,
.dark-mode .btn-outline-light:focus {
    color: #9ff3c9;
    border-color: #46b47d;
    background: #244636;
}

.dark-mode .bannerbg {
    opacity: 0.55;
}

.dark-mode .query-title,
.dark-mode .table-title {
    background-color: #1e3a2f;
}
