.YXYH-pc-page-sitemap {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #17324d;
}

.yxyh-sitemap-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding: 30px;
    border-radius: var(--ls-border-radius);
    background:
        radial-gradient(circle at top right, rgba(102, 211, 192, 0.28), transparent 32%),
        radial-gradient(circle at left bottom, rgba(252, 132, 22, 0.22), transparent 38%),
        linear-gradient(135deg, #0b3868 0%, #184f86 54%, #225f8d 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.yxyh-sitemap-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.yxyh-sitemap-hero__content {
    position: relative;
    z-index: 1;
}

.yxyh-sitemap-hero__tools {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 280px;
}

.yxyh-sitemap-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.72);
}

.yxyh-sitemap-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    color: #fff;
}

.yxyh-sitemap-desc {
    margin: 14px 0 0;
    max-width: 660px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.yxyh-sitemap-actions {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.yxyh-sitemap-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--ls-border-radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.yxyh-sitemap-action.is-primary {
    background: #fc8416;
    border-color: #fc8416;
}

.yxyh-sitemap-action.yxyh-sitemap-rebuild {
    background: linear-gradient(135deg, #d34947, #fc8416);
    border-color: rgba(255, 255, 255, 0.26);
}

.yxyh-sitemap-action.is-ghost {
    background: rgba(255, 255, 255, 0.04);
}

.yxyh-sitemap-action:hover,
.yxyh-sitemap-action:active {
    transform: translateY(-1px);
    opacity: 0.92;
}

.yxyh-sitemap-built-at {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.2;
    backdrop-filter: blur(4px);
}

.yxyh-sitemap-panel-grid {
    display: block;
}

.yxyh-sitemap-panel {
    padding: 16px 18px;
    border-radius: var(--ls-border-radius);
    border: 1px solid rgba(11, 56, 104, 0.08);
    background: #fff;
}

.yxyh-sitemap-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.yxyh-sitemap-panel__head h2 {
    margin: 0;
    font-size: 20px;
    color: #16314d;
}

.yxyh-sitemap-panel__head span {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6c7d90;
}

.yxyh-sitemap-file-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yxyh-sitemap-file {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    border-radius: var(--ls-border-radius);
    border: 1px solid rgba(11, 56, 104, 0.08);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    text-decoration: none;
    color: #17324d;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.yxyh-sitemap-file:hover,
.yxyh-sitemap-file:focus-within {
    transform: translateY(-1px);
    background: #f4faf9;
    border-color: rgba(252, 132, 22, 0.22);
}

.yxyh-sitemap-file__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.yxyh-sitemap-file__type {
    width: fit-content;
    min-width: 44px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(11, 56, 104, 0.09);
    color: #0b3868;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.yxyh-sitemap-file strong {
    font-size: 16px;
    line-height: 1.5;
    color: #17324d;
}

.yxyh-sitemap-file em {
    font-style: normal;
    color: #6b7b8b;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
}

.yxyh-sitemap-file__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.yxyh-sitemap-file:hover .yxyh-sitemap-file__actions,
.yxyh-sitemap-file:focus-within .yxyh-sitemap-file__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.yxyh-sitemap-file__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(11, 56, 104, 0.09);
    color: #0b3868;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.yxyh-sitemap-file__action:hover,
.yxyh-sitemap-file__action:active {
    background: #fc8416;
    border-color: #fc8416;
    color: #fff;
}

.yxyh-sitemap-action.yxyh-sitemap-rebuild[disabled] {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.yxyh-sitemap-empty {
    padding: 18px 14px;
    border-radius: var(--ls-border-radius);
    background: #fff8ef;
    color: #8c5d1b;
    line-height: 1.7;
}

.yxyh-sitemap-submit-modal[hidden] {
    display: none;
}

.yxyh-sitemap-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.yxyh-sitemap-submit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 45, 0.56);
    backdrop-filter: blur(6px);
}

.yxyh-sitemap-submit-modal__dialog {
    position: relative;
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(252, 132, 22, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.99));
    box-shadow: 0 24px 80px rgba(12, 31, 53, 0.22);
    overflow: auto;
}

.yxyh-sitemap-submit-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 56, 104, 0.08);
    color: #0b3868;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.yxyh-sitemap-submit-modal__dialog h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #17324d;
}

.yxyh-sitemap-submit-grid,
.yxyh-sitemap-submit-xml-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.yxyh-sitemap-submit-grid {
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.yxyh-sitemap-submit-engine {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-height: 104px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(11, 56, 104, 0.08);
    background:
        radial-gradient(circle at top right, rgba(252, 132, 22, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff, #f3f8fd);
    text-align: left;
    color: #17324d;
}

.yxyh-sitemap-submit-engine {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yxyh-sitemap-submit-engine:hover,
.yxyh-sitemap-submit-engine:active,
.yxyh-sitemap-submit-xml:hover,
.yxyh-sitemap-submit-xml:active {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 56, 104, 0.08);
    border-color: rgba(252, 132, 22, 0.26);
}

.yxyh-sitemap-submit-xml-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.yxyh-sitemap-submit-xml {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(11, 56, 104, 0.08);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yxyh-sitemap-submit-xml__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yxyh-sitemap-submit-xml__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.yxyh-sitemap-submit-xml:hover,
.yxyh-sitemap-submit-xml:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 56, 104, 0.08);
    border-color: rgba(252, 132, 22, 0.26);
}

.yxyh-sitemap-submit-xml:hover .yxyh-sitemap-submit-xml__actions,
.yxyh-sitemap-submit-xml:focus-within .yxyh-sitemap-submit-xml__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.yxyh-sitemap-submit-xml__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 56, 104, 0.12);
    background: #f5f8fc;
    color: #0b3868;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.yxyh-sitemap-submit-xml__action.is-copy {
    border: 0;
}

.yxyh-sitemap-submit-xml__action:hover,
.yxyh-sitemap-submit-xml__action:active {
    background: #fc8416;
    border-color: #fc8416;
    color: #fff;
}

.yxyh-sitemap-submit-engine strong,
.yxyh-sitemap-submit-xml strong {
    font-size: 16px;
    line-height: 1.5;
    color: #17324d;
}

.yxyh-sitemap-submit-engine em,
.yxyh-sitemap-submit-xml span {
    font-style: normal;
    color: #9aa8b7;
    line-height: 1.6;
    word-break: break-all;
}

body.is-yxyh-sitemap-submit-open {
    overflow: hidden;
}

.yxyh-sitemap-entry-modal[hidden] {
    display: none;
}

.yxyh-sitemap-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.yxyh-sitemap-entry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 45, 0.48);
    backdrop-filter: blur(4px);
}

.yxyh-sitemap-entry-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100% - 24px));
    max-height: min(560px, calc(100vh - 32px));
    max-height: min(560px, calc(100dvh - 32px));
    padding: 22px 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f5f9fd);
    box-shadow: 0 24px 80px rgba(12, 31, 53, 0.18);
    overflow: hidden;
}

.yxyh-sitemap-entry-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 56, 104, 0.08);
    color: #0b3868;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.yxyh-sitemap-entry-modal__dialog h2 {
    margin: 0 36px 18px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #17324d;
}

.yxyh-sitemap-entry-modal__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.yxyh-sitemap-entry-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(11, 56, 104, 0.08);
    background: #fff;
    text-decoration: none;
    color: #17324d;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yxyh-sitemap-entry-item:hover,
.yxyh-sitemap-entry-item:active {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 56, 104, 0.08);
    border-color: rgba(252, 132, 22, 0.26);
}

.yxyh-sitemap-entry-item strong {
    font-size: 15px;
    line-height: 1.5;
    color: #17324d;
}

.yxyh-sitemap-entry-item span {
    color: #98a8b8;
    line-height: 1.6;
    word-break: break-all;
}

body.is-yxyh-sitemap-entry-open {
    overflow: hidden;
}

.yxyh-sitemap-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.yxyh-sitemap-toast {
    min-width: 220px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 29, 45, 0.92);
    color: #fff;
    line-height: 1.6;
    box-shadow: 0 16px 32px rgba(12, 31, 53, 0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.yxyh-sitemap-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.yxyh-sitemap-toast.is-success {
    background: rgba(10, 127, 101, 0.94);
}

.yxyh-sitemap-toast.is-error {
    background: rgba(211, 73, 71, 0.94);
}

.yxyh-sitemap-toast.is-loading {
    background: rgba(252, 132, 22, 0.96);
}

@media (max-width: 640px) {
    .yxyh-sitemap-hero {
        grid-template-columns: 1fr;
    }

    .yxyh-sitemap-hero__tools {
        min-width: 0;
        align-items: stretch;
    }

    .yxyh-sitemap-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yxyh-sitemap-submit-modal {
        align-items: flex-start;
        padding: 8px;
    }

    .yxyh-sitemap-submit-modal__dialog {
        width: 100%;
        margin: 0;
        padding: 22px 16px 16px;
        border-radius: 22px;
    }

    .yxyh-sitemap-submit-modal__dialog h2 {
        font-size: 24px;
    }

    .yxyh-sitemap-submit-xml-list {
        grid-template-columns: 1fr;
    }

    .yxyh-sitemap-submit-xml {
        flex-direction: column;
        align-items: stretch;
    }

    .yxyh-sitemap-submit-xml__actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .yxyh-sitemap-entry-modal {
        align-items: flex-start;
        padding: 8px;
    }

    .yxyh-sitemap-entry-modal__dialog {
        width: 100%;
        height: calc(100vh - 16px);
        padding: 20px 16px 16px;
        border-radius: 22px;
    }

    .yxyh-sitemap-built-at {
        justify-content: flex-start;
        max-width: 100%;
    }

    .yxyh-sitemap-file-list {
        grid-template-columns: 1fr;
    }

    .yxyh-sitemap-file__actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
