:root {
    --rt-green-950: #102a22;
    --rt-green-800: #1f5b3f;
    --rt-green-600: #2f8f55;
    --rt-green-400: #72c08a;
    --rt-green-soft: #edf8f0;
    --rt-rose-600: #c75b7a;
    --rt-rose-400: #e58aa5;
    --rt-rose-soft: #fff2f6;
    --rt-violet-600: #6e63d9;
    --rt-blue-500: #4f8bd8;
    --rt-ink: #25352d;
    --rt-muted: #5b6b63;
    --rt-surface: #fbfdfb;
}

.btn-action-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 11px 0;
    margin-bottom: 12px;
    border-radius: 50px;
    border: 0;
    color: var(--rt-green-800) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    font-size: 14px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(16, 42, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn-action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16, 42, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    color: var(--rt-green-950) !important;
}

.btn-afdian {
    background: linear-gradient(135deg, #f4d8e1 0%, #eadfff 100%);
    color: #79384f !important;
    box-shadow: 0 12px 26px rgba(199, 91, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.btn-afdian:hover {
    background: linear-gradient(135deg, #efc8d4 0%, #dfd3ff 100%);
    color: #633044 !important;
    box-shadow: 0 16px 32px rgba(199, 91, 122, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn-email {
    background: linear-gradient(135deg, #d8efdf 0%, #dbeaff 100%);
    color: #1d5a3c !important;
    box-shadow: 0 12px 26px rgba(47, 143, 85, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.btn-email:hover {
    background: linear-gradient(135deg, #cae8d3 0%, #cfddff 100%);
    color: #163f2c !important;
    box-shadow: 0 16px 32px rgba(47, 143, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn-icon-fix {
    margin-right: 6px;
    font-size: 16px;
    line-height: 1;
}

.desc-box {
    background-color: var(--rt-surface);
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--rt-muted);
    line-height: 1.8;
    border-left: 3px solid var(--rt-violet-600);
    margin-top: 5px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.copyright-separator {
    margin-top: 50px;
    margin-bottom: 20px;
    height: 1px;
    border: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--rt-rose-400), rgba(255, 255, 255, 0));
    position: relative;
}

.copyright-separator::after {
    content: "✦";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0 10px;
    color: var(--rt-rose-600);
    font-size: 14px;
}

.copyright-card {
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(237, 248, 240, 0.92) 0%, rgba(255, 242, 246, 0.9) 100%);
    border-left: 5px solid var(--rt-green-600);
    box-shadow: 0 14px 34px rgba(16, 42, 34, 0.08);
    position: relative;
    overflow: hidden;
    color: var(--rt-muted);
    font-size: 14px;
    line-height: 1.8;
}

.copyright-card::before {
    content: "©";
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 160px;
    opacity: 0.05;
    color: var(--rt-rose-600);
    font-family: sans-serif;
    pointer-events: none;
}

.copyright-title {
    font-weight: bold;
    color: var(--rt-green-800);
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.copyright-title span {
    background: linear-gradient(135deg, var(--rt-green-600), var(--rt-rose-600));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    box-shadow: 0 6px 14px rgba(199, 91, 122, 0.24);
}

.copyright-item {
    display: block;
    margin-bottom: 5px;
    word-break: break-all;
}

.copyright-item strong {
    color: var(--rt-rose-600);
    margin-right: 5px;
    font-weight: bold;
}

.copyright-item a {
    color: var(--rt-muted);
    text-decoration: none;
    border-bottom: 1px dashed #999;
    transition: all 0.3s;
}

.copyright-item a:hover {
    color: var(--rt-green-800);
    border-bottom: 1px solid var(--rt-green-800);
}

.meta-reading-time .post-icons {
    color: var(--rt-green-600);
}

.rt-path-header .entry-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rt-learning-paths {
    color: var(--rt-ink);
}

.rt-path-hero,
.rt-path-card,
.rt-path-user-copy,
.rt-path-footer {
    border: 1px solid rgba(47, 143, 85, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 252, 248, 0.88));
    box-shadow: 0 18px 44px rgba(16, 42, 34, 0.08);
}

.rt-path-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 28px;
    overflow: hidden;
    padding: 34px;
}

.rt-path-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 10%, rgba(114, 192, 138, 0.22), transparent 32%), radial-gradient(circle at 90% 16%, rgba(199, 91, 122, 0.16), transparent 30%), radial-gradient(circle at 80% 86%, rgba(110, 99, 217, 0.12), transparent 32%);
}

.rt-path-hero__content,
.rt-path-hero__panel {
    position: relative;
    z-index: 1;
}

.rt-path-eyebrow {
    margin: 0 0 12px;
    color: var(--rt-green-800);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.rt-path-hero h2 {
    margin: 0;
    color: var(--rt-green-950);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rt-path-hero p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--rt-muted);
    font-size: 15px;
    line-height: 1.85;
}

.rt-path-hero__actions,
.rt-path-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rt-path-button,
.rt-path-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.rt-path-button:active,
.rt-path-card__actions a:active {
    transform: scale(0.97);
}

.rt-path-button--primary,
.rt-path-card__actions a:first-child {
    background: linear-gradient(135deg, var(--rt-green-600), var(--rt-green-800));
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(47, 143, 85, 0.24);
}

.rt-path-button--primary:hover,
.rt-path-card__actions a:first-child:hover {
    box-shadow: 0 16px 34px rgba(47, 143, 85, 0.32);
}

.rt-path-button--ghost,
.rt-path-card__actions a:last-child {
    border: 1px solid rgba(47, 143, 85, 0.16);
    background: rgba(255, 255, 255, 0.68);
    color: var(--rt-green-800) !important;
}

.rt-path-button--ghost:hover,
.rt-path-card__actions a:last-child:hover {
    background: rgba(237, 248, 240, 0.9);
}

.rt-path-hero__panel {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.rt-path-hero__panel span {
    color: var(--rt-rose-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.rt-path-hero__panel strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rt-green-950);
    font-size: 18px;
}

.rt-path-user-copy {
    overflow: hidden;
    margin-top: 18px;
}

.rt-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.rt-path-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.rt-path-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rt-green-600), var(--rt-rose-600), var(--rt-violet-600));
    opacity: 0.86;
}

.rt-path-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rt-path-card__label,
.rt-path-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.rt-path-card__label {
    background: rgba(47, 143, 85, 0.1);
    color: var(--rt-green-800);
}

.rt-path-card__count {
    background: rgba(199, 91, 122, 0.1);
    color: var(--rt-rose-600);
}

.rt-path-card h3 {
    margin: 0 0 10px;
    color: var(--rt-green-950);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.rt-path-card p,
.rt-path-footer p {
    margin: 0;
    color: var(--rt-muted);
    font-size: 14px;
    line-height: 1.8;
}

.rt-path-card ol {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: rt-path-step;
}

.rt-path-card li {
    position: relative;
    padding-left: 34px;
    color: var(--rt-ink);
    line-height: 1.7;
    counter-increment: rt-path-step;
}

.rt-path-card li::before {
    content: counter(rt-path-step);
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--rt-green-soft);
    color: var(--rt-green-800);
    font-size: 12px;
    font-weight: 900;
}

.rt-path-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
}

.rt-path-footer span {
    color: var(--rt-rose-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.rt-path-footer h3 {
    margin: 4px 0 8px;
    color: var(--rt-green-950);
    font-size: 22px;
    font-weight: 800;
}

.rt-external-modal[hidden] {
    display: none;
}

.rt-external-modal-open {
    overscroll-behavior: contain;
}

.rt-external-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 24% 0%, rgba(47, 143, 85, 0.18), transparent 38%), radial-gradient(circle at 86% 16%, rgba(199, 91, 122, 0.14), transparent 32%), rgba(16, 42, 34, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.rt-external-modal__panel {
    position: relative;
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 248, 0.84));
    box-shadow: 0 28px 72px rgba(16, 42, 34, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--rt-ink);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    animation: rt-external-in 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rt-external-modal__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(114, 192, 138, 0.24), transparent 32%), radial-gradient(circle at 90% 18%, rgba(199, 91, 122, 0.16), transparent 28%), radial-gradient(circle at 88% 88%, rgba(110, 99, 217, 0.12), transparent 30%);
}

.rt-external-modal__content {
    position: relative;
    padding: 28px;
}

.rt-external-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 143, 85, 0.1);
    color: var(--rt-green-800);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.rt-external-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rt-green-400), var(--rt-green-600));
    color: #fff;
    font-weight: 800;
}

.rt-external-modal__title {
    margin: 18px 0 10px;
    color: var(--rt-green-950);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
}

.rt-external-modal__desc,
.rt-external-modal__notice {
    margin: 0;
    color: var(--rt-muted);
    font-size: 14px;
    line-height: 1.75;
}

.rt-external-modal__url {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid rgba(47, 143, 85, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--rt-green-800);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-all;
}

.rt-external-modal__notice {
    padding-left: 12px;
    border-left: 3px solid rgba(199, 91, 122, 0.72);
}

.rt-external-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.rt-external-modal__button,
.rt-external-modal__report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(47, 143, 85, 0.16);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rt-external-modal__button:active,
.rt-external-modal__report:active {
    transform: scale(0.96);
}

.rt-external-modal__button--primary {
    border: none;
    background: linear-gradient(135deg, var(--rt-green-600), var(--rt-green-800));
    color: #fff;
    box-shadow: 0 12px 26px rgba(47, 143, 85, 0.28);
}

.rt-external-modal__button--primary:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(47, 143, 85, 0.34);
}

.rt-external-modal__report,
.rt-external-modal__button--ghost {
    background: rgba(255, 255, 255, 0.58);
    color: var(--rt-muted);
}

.rt-external-modal__report:hover,
.rt-external-modal__button--ghost:hover {
    color: var(--rt-green-800);
    background: rgba(237, 248, 240, 0.9);
}

.rt-external-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--rt-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.rt-external-modal__close:hover {
    background: rgba(237, 248, 240, 0.95);
    color: var(--rt-green-950);
}

@keyframes rt-external-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .rt-path-hero,
    .rt-path-card,
    .rt-path-footer {
        border-radius: 20px;
    }

    .rt-path-hero,
    .rt-path-card,
    .rt-path-footer {
        padding: 20px;
    }

    .rt-path-hero__actions,
    .rt-path-card__actions,
    .rt-path-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .rt-path-button,
    .rt-path-card__actions a {
        width: 100%;
    }

    .rt-external-modal {
        align-items: end;
        padding: 14px;
    }

    .rt-external-modal__panel {
        border-radius: 22px;
    }

    .rt-external-modal__content {
        padding: 24px 20px 20px;
    }

    .rt-external-modal__actions {
        flex-direction: column;
    }

    .rt-external-modal__button,
    .rt-external-modal__report {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-path-button,
    .rt-path-card__actions a {
        transition: none;
    }

    .rt-external-modal__panel {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .rt-external-modal__button,
    .rt-external-modal__report {
        transition: none;
    }
}

@media (max-width: 900px) {
    .rt-path-hero,
    .rt-path-grid {
        grid-template-columns: 1fr;
    }
}

.tippy-box[data-theme~='rosetears-ref'] {
    border: 1px solid rgba(47, 143, 85, 0.16);
    border-radius: 14px;
    background: rgba(251, 253, 251, 0.98);
    color: var(--rt-ink);
    box-shadow: 0 16px 36px rgba(16, 42, 34, 0.18);
    font-size: 13px;
    line-height: 1.65;
}

.tippy-box[data-theme~='rosetears-ref'] .tippy-content {
    padding: 10px 12px;
}

.tippy-box[data-theme~='rosetears-ref'] > .tippy-arrow {
    color: rgba(251, 253, 251, 0.98);
}

.rt-reference-preview[hidden] {
    display: none;
}

.rt-reference-preview {
    position: fixed;
    z-index: 100001;
    padding: 10px 12px;
    border: 1px solid rgba(47, 143, 85, 0.16);
    border-radius: 14px;
    background: rgba(251, 253, 251, 0.98);
    color: var(--rt-ink);
    box-shadow: 0 16px 36px rgba(16, 42, 34, 0.18);
    font-size: 13px;
    line-height: 1.65;
    pointer-events: auto;
}

.rt-reference-preview a,
.tippy-box[data-theme~='rosetears-ref'] a {
    color: var(--rt-green-800) !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(47, 143, 85, 0.45);
}

.rt-footnote-ref {
    margin-left: 2px;
    font-size: 0.82em;
}

.rt-footnote-link {
    color: var(--rt-rose-600) !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(199, 91, 122, 0.5);
}

.rt-footnotes {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(47, 143, 85, 0.16);
    color: var(--rt-muted);
    font-size: 13px;
    line-height: 1.75;
}

.rt-footnotes ol {
    padding-left: 20px;
}

.rt-footnote-backref {
    color: var(--rt-green-800) !important;
    text-decoration: none !important;
}

.rt-diff-code code {
    display: block;
}

.rt-diff-line {
    display: block;
    margin: 0 -12px;
    padding: 0 12px;
    white-space: pre;
}

.rt-diff-line--add {
    background: rgba(47, 143, 85, 0.16);
    color: #185235;
}

.rt-diff-line--del {
    background: rgba(199, 91, 122, 0.16);
    color: #7f2942;
}

.rt-diff-line--meta {
    background: rgba(110, 99, 217, 0.12);
    color: #4e479f;
}
