:root {
    --u-ink: #132238;
    --u-ink-soft: #1e3552;
    --u-amber: #e8a317;
    --u-amber-deep: #c9850a;
    --u-amber-soft: #fff6e3;
    --u-paper: #f5f3ee;
    --u-surface: #ffffff;
    --u-line: #e6e2d8;
    --u-text: #243247;
    --u-muted: #6b7788;
    --u-danger: #d4533a;
    --u-radius: 14px;
    --u-radius-sm: 10px;
    --u-shadow: 0 10px 28px rgba(19, 34, 56, 0.08);
    --u-shadow-hover: 0 14px 34px rgba(19, 34, 56, 0.14);
    --u-wrap: 1120px;
    --u-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.u-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--u-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--u-text);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 163, 23, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(30, 53, 82, 0.08), transparent 50%),
        var(--u-paper);
}

a {
    color: var(--u-ink-soft);
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover {
    color: var(--u-amber-deep);
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
}

/* ---------- Layout ---------- */
.u-wrap {
    width: 100%;
    max-width: var(--u-wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.u-main {
    min-height: calc(100vh - 220px);
    padding: 24px 0 6px;
}

/* ---------- Header ---------- */
.u-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--u-surface);
    box-shadow: 0 1px 0 var(--u-line), 0 8px 24px rgba(19, 34, 56, 0.04);
}

.u-header__bar {
    background: linear-gradient(90deg, var(--u-ink) 0%, var(--u-ink-soft) 100%);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.u-header__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.u-header__links {
    display: flex;
    gap: 16px;
}

.u-header__links a {
    color: rgba(255, 255, 255, 0.78);
}

.u-header__links a:hover {
    color: var(--u-amber);
}

.u-header__tag {
    color: var(--u-amber);
    letter-spacing: 0.08em;
}

.u-header__main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.u-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.u-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.u-search {
    display: flex;
    align-items: stretch;
    flex: 1;
    max-width: 480px;
    border: 2px solid var(--u-ink);
    border-radius: 999px;
    overflow: hidden;
    background: var(--u-surface);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.u-search:focus-within {
    border-color: var(--u-amber);
    box-shadow: 0 0 0 4px rgba(232, 163, 23, 0.18);
}

.u-search__input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--u-text);
    background: transparent;
}

.u-search__input::placeholder {
    color: #9aa3b0;
}

.u-search__btn {
    width: 52px;
    border: 0;
    background: var(--u-ink);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s ease;
}

.u-search__btn:hover {
    background: var(--u-amber-deep);
}

/* ---------- Crumb ---------- */
.u-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--u-muted);
}

.u-crumb a {
    color: var(--u-muted);
}

.u-crumb a:hover {
    color: var(--u-amber-deep);
}

.u-crumb__sep {
    opacity: 0.45;
}

/* ---------- Panel ---------- */
.u-panel {
    background: var(--u-surface);
    border: 1px solid var(--u-line);
    border-radius: var(--u-radius);
    box-shadow: var(--u-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    animation: u-fade-up .45s ease both;
}

.u-panel__head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--u-line);
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.u-panel__head--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.u-panel__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--u-ink);
    letter-spacing: 0.02em;
}

.u-panel__title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--u-amber), var(--u-amber-deep));
    vertical-align: -2px;
}

.u-panel__body {
    padding: 20px 22px;
}

/* ---------- Filter ---------- */
.u-filter__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.u-filter__row:last-child {
    margin-bottom: 0;
}

.u-filter__label {
    flex-shrink: 0;
    width: 72px;
    padding-top: 7px;
    color: var(--u-muted);
    font-size: 13px;
}

.u-filter__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.u-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--u-line);
    background: #faf9f6;
    color: var(--u-text);
    font-size: 13px;
    line-height: 1.2;
}

.u-tag:hover {
    border-color: var(--u-amber);
    color: var(--u-amber-deep);
    background: var(--u-amber-soft);
}

.u-tag.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--u-amber) 0%, var(--u-amber-deep) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 133, 10, 0.28);
}

.u-filter__search {
    display: flex;
    flex: 1;
    gap: 10px;
    max-width: 520px;
}

.u-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--u-line);
    border-radius: var(--u-radius-sm);
    background: #fff;
    color: var(--u-text);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.u-input:focus {
    border-color: var(--u-amber);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.16);
}

/* ---------- Sort ---------- */
.u-sort {
    display: flex;
    gap: 6px;
    background: #f3f1eb;
    padding: 4px;
    border-radius: 999px;
}

.u-sort__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--u-muted);
    font-size: 13px;
}

.u-sort__item:hover {
    color: var(--u-ink);
}

.u-sort__item.is-active {
    background: #fff;
    color: var(--u-ink);
    box-shadow: 0 2px 8px rgba(19, 34, 56, 0.08);
}

/* ---------- Member Grid ---------- */
.u-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.u-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 18px;
    border: 1px solid var(--u-line);
    border-radius: var(--u-radius);
    background: linear-gradient(180deg, #fffefb 0%, #fff 60%);
    color: inherit;
    overflow: hidden;
}

.u-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--u-amber), transparent 70%);
    opacity: 0;
    transition: opacity .2s ease;
}

.u-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--u-shadow-hover);
    border-color: #f0d79a;
    color: inherit;
}

.u-card:hover::before {
    opacity: 1;
}

.u-card__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--u-amber), #f5d27a);
    margin-bottom: 14px;
}

.u-card__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #eee;
}

.u-card__name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--u-ink);
    word-break: break-all;
}

.u-card__user {
    margin: 0;
    font-size: 12px;
    color: var(--u-muted);
    word-break: break-all;
}

.u-card__arrow {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: var(--u-amber-soft);
    color: var(--u-amber-deep);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.u-card:hover .u-card__arrow {
    opacity: 1;
    transform: none;
}

/* ---------- Empty / Pager ---------- */
.u-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--u-muted);
}

.u-empty i {
    font-size: 42px;
    color: #cfc8ba;
    margin-bottom: 12px;
    display: block;
}

.u-empty p {
    margin: 0;
    font-size: 14px;
}

.u-pager {
    margin-top: 22px;
    text-align: center;
}

.u-pager .pagination,
.u-pager ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.u-pager li,
.u-pager a,
.u-pager span {
    display: inline-block;
}

.u-pager a,
.u-pager span,
.u-pager .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    line-height: 34px;
    border: 1px solid var(--u-line);
    border-radius: 8px;
    background: #fff;
    color: var(--u-text);
    font-size: 13px;
    text-align: center;
}

.u-pager a:hover {
    border-color: var(--u-amber);
    color: var(--u-amber-deep);
}

.u-pager .active a,
.u-pager .active span,
.u-pager .current,
.u-pager span.current {
    background: var(--u-ink);
    border-color: var(--u-ink);
    color: #fff;
}

/* ---------- Buttons ---------- */
.u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--u-radius-sm);
    background: #eef1f5;
    color: var(--u-text);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.u-btn:hover {
    transform: translateY(-1px);
}

.u-btn--primary {
    background: linear-gradient(135deg, var(--u-ink) 0%, var(--u-ink-soft) 100%);
    color: #fff;
}

.u-btn--primary:hover {
    color: #fff;
    box-shadow: 0 8px 18px rgba(19, 34, 56, 0.22);
}

.u-btn--follow {
    background: linear-gradient(135deg, var(--u-amber) 0%, var(--u-amber-deep) 100%);
    color: #fff;
    border-radius: 999px;
    min-width: 108px;
    box-shadow: 0 6px 16px rgba(201, 133, 10, 0.28);
}

.u-btn--follow:hover {
    color: #fff;
}

.u-btn--follow.is-followed {
    background: #fff;
    color: var(--u-amber-deep);
    border-color: var(--u-amber);
    box-shadow: none;
}

.u-btn--sm {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    min-width: 88px;
}

.u-btn--block {
    width: 100%;
    margin-top: 8px;
    background: var(--u-ink);
    color: #fff;
    border-radius: 12px;
}

.u-btn--block:hover {
    color: #fff;
    background: var(--u-ink-soft);
}

/* ---------- Profile ---------- */
.u-profile {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--u-radius);
    overflow: hidden;
    background: var(--u-surface);
    border: 1px solid var(--u-line);
    box-shadow: var(--u-shadow);
    animation: u-fade-up .45s ease both;
}

.u-profile__banner {
    height: 120px;
    background:
        linear-gradient(135deg, rgba(232, 163, 23, 0.35), transparent 55%),
        linear-gradient(120deg, #132238 0%, #2a4a6e 55%, #1a314d 100%);
}

.u-profile__body {
    display: flex;
    gap: 22px;
    padding: 0 28px 28px;
    margin-top: -42px;
    position: relative;
}

.u-profile__avatar {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--u-amber), #f5d27a);
    box-shadow: 0 8px 24px rgba(19, 34, 56, 0.18);
}

.u-profile__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #eee;
}

.u-profile__info {
    flex: 1;
    padding-top: 48px;
    min-width: 0;
}

.u-profile__name {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--u-ink);
    letter-spacing: 0.02em;
}

.u-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 16px;
    color: var(--u-muted);
    font-size: 13px;
}

.u-profile__meta i {
    margin-right: 4px;
    color: var(--u-amber-deep);
}

/* ---------- Tabs ---------- */
.u-tabs-panel .u-panel__body {
    padding-top: 8px;
}

.u-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--u-line);
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    overflow-x: auto;
}

.u-tabs__item {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--u-muted);
    cursor: pointer;
    white-space: nowrap;
}

.u-tabs__item:hover {
    color: var(--u-ink);
}

.u-tabs__item.is-active {
    color: var(--u-ink);
    font-weight: 700;
}

.u-tabs__item.is-active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--u-amber);
}

.u-tab-pane {
    display: none;
    animation: u-fade-up .35s ease both;
}

.u-tab-pane.is-active {
    display: block;
}

/* ---------- List ---------- */
.u-list__item {
    display: flex;
    gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px dashed var(--u-line);
}

.u-list__item:last-child {
    border-bottom: 0;
}

.u-list__thumb {
    flex-shrink: 0;
    width: 112px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0ede6;
}

.u-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.u-list__item:hover .u-list__thumb img {
    transform: scale(1.05);
}

.u-list__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--u-line);
}

.u-list__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.u-list__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.u-list__title {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
}

.u-list__title a {
    color: var(--u-ink);
}

.u-list__title a:hover {
    color: var(--u-amber-deep);
}

.u-list__desc {
    margin: 0;
    color: var(--u-muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.u-list__action {
    display: flex;
}

/* ---------- Footer / Gotop ---------- */
.u-footer {
    padding: 13px 0;
    background: var(--u-ink);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.u-footer__text {
    margin: 0;
    font-size: 13px;
}

.u-gotop {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--u-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(19, 34, 56, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}

.u-gotop.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.u-gotop:hover {
    background: var(--u-amber-deep);
    color: #fff;
}

/* ---------- Motion ---------- */
@keyframes u-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .u-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .u-header__main-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        min-height: auto;
    }

    .u-logo {
        justify-content: center;
    }

    .u-search {
        max-width: none;
    }

    .u-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .u-filter__row {
        flex-direction: column;
        gap: 8px;
    }

    .u-filter__label {
        width: auto;
        padding-top: 0;
    }

    .u-filter__search {
        max-width: none;
        flex-direction: column;
    }

    .u-profile__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 18px 22px;
        margin-top: -48px;
    }

    .u-profile__info {
        padding-top: 12px;
    }

    .u-profile__meta {
        justify-content: center;
    }

    .u-profile__actions {
        display: flex;
        justify-content: center;
    }

    .u-profile__name {
        font-size: 22px;
    }

    .u-list__item {
        gap: 12px;
    }

    .u-list__thumb {
        width: 88px;
        height: 66px;
    }

    .u-panel__body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .u-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .u-card {
        padding: 16px 10px 14px;
    }

    .u-card__avatar {
        width: 68px;
        height: 68px;
    }

    .u-card__arrow {
        display: none;
    }
}
