/* ── 收藏按钮 ───────────────────────────────── */
.jetdahao-fav {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.4em 0.9em;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.9em;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.jetdahao-fav:hover,
.jetdahao-fav:focus-visible {
    border-color: currentColor;
    outline: none;
}

.jetdahao-fav.is-active {
    color: #d97706;
    border-color: currentColor;
}

.jetdahao-fav.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.jetdahao-fav__count {
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}

.jetdahao-fav.is-active .jetdahao-fav__count {
    opacity: 1;
}

/* ── 个人中心 ───────────────────────────────── */
.jetdahao-uc {
    margin: 1.5em 0;
    color: inherit;
}

.jetdahao-uc__tabs {
    display: flex;
    gap: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25em;
}

.jetdahao-uc__tab {
    padding: 0.6em 1em;
    border-bottom: 2px solid transparent;
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
}

.jetdahao-uc__tab.is-active {
    opacity: 1;
    border-bottom-color: currentColor;
    font-weight: 600;
}

.jetdahao-uc__body {
    display: block;
}

.jetdahao-uc__list {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.jetdahao-uc__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0.9em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jetdahao-uc__main {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    min-width: 0;
}

.jetdahao-uc__main a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jetdahao-uc__main a:hover {
    text-decoration: underline;
}

.jetdahao-uc__meta {
    font-size: 0.85em;
    opacity: 0.65;
}

.jetdahao-uc__badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.8em;
    opacity: 0.9;
}

.jetdahao-uc__badge.is-done {
    background: #e7f5ea;
    color: #1a7f37;
}

.jetdahao-uc__empty {
    padding: 2em 0;
    text-align: center;
    opacity: 0.6;
}

.jetdahao-uc__notice {
    padding: 0.75em 1em;
    border-radius: 6px;
    margin-bottom: 1em;
    font-size: 0.95em;
}

.jetdahao-uc__notice.is-success {
    background: #e7f5ea;
    color: #1a7f37;
}

.jetdahao-uc__notice.is-error {
    background: #fdecec;
    color: #b32d2e;
}

.jetdahao-uc__form {
    display: grid;
    gap: 0.9em;
    padding: 1.25em;
    margin-bottom: 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.jetdahao-uc__field {
    display: grid;
    gap: 0.35em;
    font-size: 0.95em;
}

.jetdahao-uc__field input,
.jetdahao-uc__field textarea {
    width: 100%;
    padding: 0.6em 0.75em;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.jetdahao-uc__btn {
    display: inline-block;
    justify-self: start;
    padding: 0.55em 1.4em;
    border: 0;
    border-radius: 6px;
    background: currentColor;
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.jetdahao-uc__btn:hover {
    opacity: 0.85;
}

.jetdahao-uc__detail h3 {
    margin: 0.5em 0;
}

.jetdahao-uc__back {
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
}

.jetdahao-uc__message {
    padding: 1em 1.2em;
    margin-bottom: 0.75em;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
}

.jetdahao-uc__message.is-user {
    background: rgba(0, 0, 0, 0.05);
}

.jetdahao-uc__message.is-admin {
    background: #f0f6fc;
}

.jetdahao-uc__pagination {
    display: flex;
    gap: 0.4em;
    margin-top: 1em;
}

.jetdahao-uc__pagination a,
.jetdahao-uc__pagination span {
    padding: 0.25em 0.7em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.jetdahao-uc__pagination .current {
    background: rgba(0, 0, 0, 0.06);
    font-weight: 600;
}
