:root {
    --brand: #f47b31;
    --brand-deep: #dc5f17;
    --brand-soft: #fff2e8;
    --ink: #1d2939;
    --muted: #6f7b8c;
    --line: #e7ebf1;
    --canvas: #f4f6fa;
    --navy: #172437;
    --navy-2: #213149;
}

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    color: var(--brand-deep);
}

a:hover,
a:focus {
    color: #b9470b;
}

.btn-primary,
.btn-primary:focus {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 6px 15px rgba(244, 123, 49, .2);
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--brand-deep) !important;
    border-color: var(--brand-deep) !important;
}

.btn-outline-primary {
    color: var(--brand-deep);
    border-color: rgba(244, 123, 49, .5);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.text-primary {
    color: var(--brand-deep) !important;
}

.bg-primary {
    background-color: var(--brand) !important;
}

.badge-primary {
    background: var(--brand);
}

.form-control:focus {
    border-color: rgba(244, 123, 49, .65);
    box-shadow: 0 0 0 .18rem rgba(244, 123, 49, .11);
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--brand);
    background-color: var(--brand);
}

.lyear-layout-sidebar {
    background: var(--navy);
}

.sidebar-header {
    background: var(--navy);
    height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-header .brand-mark {
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 20px;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9a52, #e65d12);
    box-shadow: 0 8px 18px rgba(230, 93, 18, .3);
    font-size: 21px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    overflow: hidden;
    max-width: 145px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .43);
    font-size: 8px;
    letter-spacing: 1.25px;
}

.lyear-layout-sidebar-info {
    background: var(--navy);
}

.sidebar-main .nav-heading {
    padding: 20px 23px 8px;
    color: rgba(255, 255, 255, .29);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.sidebar-main .nav-item > a {
    display: flex;
    align-items: center;
    height: 48px;
    margin: 3px 12px;
    padding: 0 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .66) !important;
    transition: .18s ease;
}

.sidebar-main .nav-item > a .mdi {
    width: 27px;
    margin-right: 9px;
    font-size: 19px;
}

.sidebar-main .nav-item > a:hover {
    background: rgba(255, 255, 255, .055);
    color: #fff !important;
}

.sidebar-main .nav-item.active > a {
    background: linear-gradient(100deg, rgba(244, 123, 49, .97), rgba(244, 123, 49, .72));
    box-shadow: 0 7px 16px rgba(0, 0, 0, .14);
    color: #fff !important;
}

.sidebar-footer .copyright {
    color: rgba(255, 255, 255, .23);
    line-height: 1.7;
}

.lyear-layout-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(28, 39, 55, .02);
}

.lyear-layout-header .navbar {
    min-height: 76px;
    padding: 0 24px;
}

.page-heading {
    padding-left: 19px;
    border-left: 1px solid var(--line);
}

.page-heading .page-kicker {
    color: #a4adba;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
}

.page-heading h1 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #415066 !important;
    font-weight: 500;
}

.user-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #2e425d, #172437);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.lyear-layout-content {
    background: var(--canvas);
}

.p-b-30 {
    padding-bottom: 30px;
}

.m-t-20 {
    margin-top: 20px;
}

.card {
    border: 1px solid rgba(223, 229, 237, .88);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(35, 51, 72, .035);
}

.card-header {
    min-height: 60px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.card-header .card-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.stat-card {
    overflow: hidden;
    position: relative;
    min-height: 130px;
    color: #fff;
    border: 0;
}

.stat-card::after {
    position: absolute;
    right: -28px;
    bottom: -50px;
    width: 145px;
    height: 145px;
    border: 28px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
    padding: 22px;
}

.stat-orange {
    background: linear-gradient(125deg, #ff9448, #e76117);
}

.stat-navy {
    background: linear-gradient(125deg, #314661, #18263a);
}

.stat-blue {
    background: linear-gradient(125deg, #4495e7, #2868ad);
}

.stat-green {
    background: linear-gradient(125deg, #3fc69a, #1d9a72);
}

.stat-label {
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.stat-value {
    margin: 13px 0 6px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.stat-note {
    color: rgba(255, 255, 255, .61);
    font-size: 11px;
}

.stat-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
}

.app-identity {
    display: flex;
    align-items: center;
    min-width: 220px;
}

.app-icon {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1e6, #ffdfc8);
    color: #db6018;
    font-size: 17px;
    font-weight: 700;
}

.app-icon.app-icon-lg {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 23px;
}

.app-name {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.app-package {
    display: block;
    overflow: hidden;
    max-width: 300px;
    margin-top: 3px;
    color: #8a95a4;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-inline {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f1f4f8;
    color: #536174;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    padding: 11px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: #fafbfd;
    color: #8590a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35px;
    white-space: nowrap;
}

.table td {
    padding: 14px 12px;
    border-color: #edf0f5;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #fffaf6;
}

.action-buttons {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.action-buttons .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 30px;
}

.empty-state {
    padding: 60px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 24px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 37px;
}

.empty-state h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.upload-box {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    padding: 35px;
    border: 2px dashed #d9e0e9;
    border-radius: 16px;
    background: #fafbfd;
    cursor: pointer;
    text-align: center;
    transition: .2s ease;
}

.upload-box:hover,
.upload-box.is-dragging {
    border-color: var(--brand);
    background: #fff8f2;
}

.upload-box.has-file {
    border-style: solid;
    border-color: rgba(49, 173, 128, .45);
    background: #f5fcf9;
}

.upload-icon {
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff0e4, #ffe1cc);
    color: var(--brand);
    font-size: 40px;
    box-shadow: 0 10px 25px rgba(244, 123, 49, .12);
}

.upload-box h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
}

.upload-box p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.selected-file {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 9px;
    background: #eaf8f2;
    color: #1f7a57;
    font-size: 13px;
}

.info-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #ffe1cd;
    border-radius: 10px;
    background: #fff8f3;
    color: #805137;
    font-size: 12px;
    line-height: 1.7;
}

.info-strip .mdi {
    color: var(--brand);
    font-size: 20px;
}

.api-hero {
    overflow: hidden;
    position: relative;
    padding: 28px;
    border-radius: 15px;
    background: linear-gradient(120deg, #203149, #101b2b);
    color: #fff;
}

.api-hero::after {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(244, 123, 49, .12);
    border-radius: 50%;
    content: "";
}

.api-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.api-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .58);
}

.method-badge {
    display: inline-block;
    margin-right: 9px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #2aae7c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.endpoint {
    display: block;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    background: rgba(0, 0, 0, .18);
    color: #ffc59e;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.code-block {
    position: relative;
    overflow: auto;
    margin: 0;
    padding: 19px 20px;
    border-radius: 10px;
    background: #172334;
    color: #dbe9f7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.75;
    white-space: pre;
}

.copy-code {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    cursor: pointer;
}

.doc-section h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.doc-section + .doc-section {
    margin-top: 28px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 14px 16px;
    border-radius: 9px;
    background: #f7f9fc;
}

.detail-item span {
    display: block;
    margin-bottom: 4px;
    color: #96a0ad;
    font-size: 10px;
    letter-spacing: .4px;
}

.detail-item strong {
    color: #344256;
    font-size: 13px;
    font-weight: 500;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
    background:
        radial-gradient(circle at 12% 10%, rgba(244, 123, 49, .21), transparent 28%),
        radial-gradient(circle at 86% 88%, rgba(39, 91, 139, .23), transparent 30%),
        linear-gradient(135deg, #101a29 0%, #1d2d43 55%, #162337 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .26);
}

.auth-brand {
    margin-bottom: 27px;
    text-align: center;
}

.auth-brand .brand-icon {
    width: 57px;
    height: 57px;
    margin: 0 auto 13px;
    border-radius: 17px;
    font-size: 29px;
}

.auth-brand h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
}

.auth-brand p {
    margin: 0;
    color: #929daa;
    font-size: 12px;
}

.auth-card .form-group label {
    color: #49576a;
    font-size: 12px;
    font-weight: 500;
}

.auth-card .form-control {
    height: 46px;
    border-color: #dfe5ec;
    border-radius: 8px;
}

.auth-footer {
    margin-top: 20px;
    color: #a2abb6;
    font-size: 11px;
    text-align: center;
}

.public-hero {
    overflow: hidden;
    position: relative;
    padding: 74px 0 66px;
    background:
        radial-gradient(circle at 85% 20%, rgba(244, 123, 49, .2), transparent 26%),
        linear-gradient(125deg, #132033 0%, #223650 58%, #17263a 100%);
    color: #fff;
}

.public-hero::after {
    position: absolute;
    right: 8%;
    bottom: -150px;
    width: 350px;
    height: 350px;
    border: 65px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
}

.public-nav {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    padding: 20px 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.public-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 20px;
}

.public-nav .btn {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
}

.public-nav .btn:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 38px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 196, 156, .27);
    border-radius: 50px;
    background: rgba(244, 123, 49, .1);
    color: #ffc7a2;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.hero-content h1 {
    max-width: 720px;
    margin: 0 0 17px;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.23;
}

.hero-content p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 37px;
    margin-top: 34px;
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
}

.hero-stat span {
    color: rgba(255, 255, 255, .4);
    font-size: 10px;
    letter-spacing: .6px;
}

.public-section {
    padding: 52px 0 70px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 23px;
}

.section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    font-weight: 600;
}

.section-head p {
    margin: 5px 0 0;
    color: #8b96a4;
    font-size: 12px;
}

.public-search {
    position: relative;
    width: 270px;
}

.public-search .mdi {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #a4adb9;
    font-size: 18px;
    transform: translateY(-50%);
}

.public-search input {
    height: 42px;
    padding-left: 41px;
    border-color: #e1e6ed;
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(30, 45, 64, .035);
    transition: .2s ease;
}

.app-card:hover {
    border-color: #ffd7bd;
    box-shadow: 0 12px 30px rgba(44, 57, 74, .08);
    transform: translateY(-2px);
}

.app-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.app-card-head .app-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    margin-right: 13px;
    border-radius: 15px;
    font-size: 20px;
}

.app-card-head h3 {
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-head p {
    overflow: hidden;
    max-width: 220px;
    margin: 0;
    color: #98a1ad;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 39px;
    margin: 0 0 18px;
    color: #728092;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eff2f6;
    color: #9aa4b1;
    font-size: 10px;
}

.app-meta strong {
    display: block;
    margin-bottom: 2px;
    color: #4d5b6d;
    font-size: 12px;
    font-weight: 500;
}

.app-card .btn-download {
    margin-top: 17px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
}

.public-empty {
    grid-column: 1 / -1;
    padding: 65px 25px;
    border: 1px dashed #dce2ea;
    border-radius: 15px;
    background: rgba(255, 255, 255, .65);
    color: #8692a1;
    text-align: center;
}

.public-empty .mdi {
    display: block;
    margin-bottom: 13px;
    color: #c5ccd5;
    font-size: 48px;
}

.public-footer {
    padding: 24px 0;
    border-top: 1px solid #e6eaf0;
    background: #fff;
    color: #98a1ad;
    font-size: 11px;
}

.public-footer a {
    color: #7d8998;
}

.search-hidden {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .lyear-layout-header .navbar {
        padding: 0 14px;
    }

    .lyear-layout-content {
        padding-top: 0;
    }

    .stat-card {
        min-height: 115px;
    }

    .detail-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .public-hero {
        padding: 62px 0 50px;
    }

    .hero-content h1 {
        font-size: 31px;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .public-search {
        width: 100%;
    }

    .auth-card {
        padding: 29px 23px;
    }

    .api-hero {
        padding: 22px;
    }
}

