/* ==========================================================================
   LOcraft 首页 MAX 荣誉殿堂
   ========================================================================== */

.max-honors {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 76px;
    margin: 0 0 1.15rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(148, 174, 214, .2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% -10%, rgba(250, 204, 21, .16), transparent 31%),
        radial-gradient(circle at 6% 112%, rgba(34, 211, 238, .14), transparent 36%),
        linear-gradient(135deg, #07111f 0%, #10213a 48%, #091426 100%);
    box-shadow:
        0 24px 60px rgba(7, 17, 31, .24),
        inset 0 1px 0 rgba(255, 255, 255, .07);
    color: #f8fafc;
    contain: layout paint style;
}

.max-honors::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    opacity: .65;
    -webkit-mask-image: linear-gradient(115deg, #000, transparent 68%);
    mask-image: linear-gradient(115deg, #000, transparent 68%);
}

.max-honors::after {
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -70px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(250, 204, 21, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(250, 204, 21, .025),
        0 0 0 70px rgba(250, 204, 21, .018);
    content: "";
    pointer-events: none;
}

.max-honors-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.4rem;
}

.max-honors-copy {
    max-width: 690px;
}

.max-honors-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fcd34d;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.max-honors-kicker > span {
    font-size: .9rem;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, .6));
}

.max-honors-title {
    margin: .45rem 0 .55rem;
    background: linear-gradient(100deg, #ffffff 14%, #fde68a 58%, #fbbf24 100%);
    background-clip: text;
    color: transparent;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1.08;
    -webkit-background-clip: text;
}

.max-honors-intro {
    max-width: 620px;
    margin: 0;
    color: #aebed5;
    font-size: .9rem;
    line-height: 1.8;
}

.max-honors-summary {
    display: flex;
    flex: 0 0 auto;
    gap: .65rem;
}

.max-honors-stat {
    display: grid;
    min-width: 116px;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
}

.max-honors-stat strong {
    color: #fff;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.max-honors-stat span {
    margin-top: .35rem;
    color: #94a7c1;
    font-size: .68rem;
    white-space: nowrap;
}

.max-honors-stat.is-record {
    border-color: rgba(250, 204, 21, .22);
    background: linear-gradient(145deg, rgba(250, 204, 21, .12), rgba(255, 255, 255, .035));
}

.max-honors-stat.is-record strong {
    color: #fcd34d;
}

.max-honors-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
}

.max-honor-card {
    --honor-accent: #67e8f9;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 calc((100% - 1.8rem) / 3);
    min-width: 0;
    min-height: 286px;
    overflow: hidden;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(148, 174, 214, .16);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--honor-accent) 9%, transparent), transparent 42%),
        linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.max-honor-card::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--honor-accent), transparent);
    content: "";
    opacity: .65;
}

.max-honor-card::after {
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 1px solid color-mix(in srgb, var(--honor-accent) 24%, transparent);
    border-radius: 50%;
    content: "";
    opacity: .7;
    pointer-events: none;
}

.max-honor-card:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--honor-accent) 50%, transparent);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .22),
        0 0 24px color-mix(in srgb, var(--honor-accent) 10%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-4px);
}

.max-honor-card.is-double {
    border-color: rgba(250, 204, 21, .42);
    background:
        linear-gradient(115deg, rgba(250, 204, 21, .17), transparent 48%),
        radial-gradient(circle at 88% 10%, rgba(250, 204, 21, .16), transparent 32%),
        linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, .06),
        0 12px 36px rgba(250, 204, 21, .08),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

.max-honor-card.is-double::after {
    border-color: rgba(250, 204, 21, .3);
    box-shadow: 0 0 0 22px rgba(250, 204, 21, .025);
}

.max-honor-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.max-honor-owner {
    color: #71859f;
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.max-honor-badge {
    padding: .22rem .58rem;
    border: 1px solid color-mix(in srgb, var(--honor-accent) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--honor-accent) 10%, transparent);
    color: var(--honor-accent);
    font-family: "Trebuchet MS", sans-serif;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.max-honor-badge.is-double {
    border-color: rgba(253, 230, 138, .55);
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    box-shadow: 0 4px 16px rgba(250, 204, 21, .2);
    color: #422006;
}

.max-honor-avatar {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: .8rem auto .65rem;
    transform: rotate(45deg);
    border: 1px solid color-mix(in srgb, var(--honor-accent) 52%, transparent);
    border-radius: 19px;
    background: rgba(5, 13, 25, .82);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--honor-accent) 25%, transparent), rgba(5, 13, 25, .82));
    box-shadow:
        0 0 0 6px rgba(5, 13, 25, .28),
        0 0 30px color-mix(in srgb, var(--honor-accent) 14%, transparent),
        inset 0 0 20px rgba(255, 255, 255, .05);
}

.max-honor-avatar::before,
.max-honor-avatar::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.max-honor-avatar::before {
    inset: 5px;
    border: 1px solid color-mix(in srgb, var(--honor-accent) 18%, transparent);
    border-radius: 14px;
}

.max-honor-avatar::after {
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--honor-accent);
    border-right: 1px solid var(--honor-accent);
    transform: translate(31px, -31px);
    opacity: .8;
}

.max-honor-avatar > span {
    transform: rotate(-45deg);
    color: #fff;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-shadow: 0 0 16px color-mix(in srgb, var(--honor-accent) 65%, transparent);
}

.max-honor-identity {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
}

.max-honor-caption {
    display: block;
    margin-bottom: .2rem;
    color: color-mix(in srgb, var(--honor-accent) 72%, #dbeafe);
    font-family: "Trebuchet MS", sans-serif;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.max-honor-identity h3 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 900;
    letter-spacing: .035em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

.max-honor-card.is-double .max-honor-identity h3 {
    color: #fff7d6;
    text-shadow: 0 0 22px rgba(250, 204, 21, .2);
}

.max-honor-records {
    display: grid;
    gap: .28rem;
    width: min(100%, 224px);
    margin: .5rem auto 0;
}

.max-honor-record {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .3rem .42rem;
    border: 1px solid rgba(148, 174, 214, .13);
    border-radius: 8px;
    background: rgba(5, 13, 25, .28);
}

.max-honor-server {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .14rem .25rem;
    border: 1px solid rgba(148, 174, 214, .22);
    border-radius: 5px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.2;
    text-align: center;
}

.max-honor-server.server-gto {
    border-color: rgba(250, 204, 21, .34);
    background: rgba(250, 204, 21, .08);
    color: #fcd34d;
}

.max-honor-server.server-gto-1 {
    border-color: rgba(251, 146, 60, .34);
    background: rgba(251, 146, 60, .09);
    color: #fdba74;
}

.max-honor-server.server-gtl {
    border-color: rgba(196, 181, 253, .3);
    background: rgba(196, 181, 253, .08);
    color: #ddd6fe;
}

.max-honor-date {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: .28rem;
    min-width: 0;
    color: #aebed5;
    font-size: .65rem;
    line-height: 1.35;
    white-space: nowrap;
}

.max-honor-date time {
    color: #dce7f5;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.max-honor-date small {
    color: #7387a1;
    font-size: .56rem;
    font-variant-numeric: tabular-nums;
}

.max-honor-record.is-pending {
    border-style: dashed;
    border-color: rgba(250, 204, 21, .18);
}

.max-honor-pending {
    color: #d6b96b;
    font-size: .61rem;
    letter-spacing: .03em;
}

.max-honor-signature {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: .7rem;
    color: #5e728d;
    font-family: "Trebuchet MS", sans-serif;
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: right;
}

.max-honor-table-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(148, 174, 214, .15);
    border-radius: 16px;
    background: rgba(5, 13, 25, .34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.max-honor-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.max-honor-table th {
    min-width: 0;
    padding: .72rem 1rem;
    border-bottom: 1px solid rgba(148, 174, 214, .13);
    background: rgba(255, 255, 255, .035);
    color: #879ab3;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    white-space: nowrap;
}

.max-honor-table th:nth-child(1) {
    width: 9%;
}

.max-honor-table th:nth-child(2) {
    width: 35%;
}

.max-honor-table th:nth-child(3) {
    width: 13%;
}

.max-honor-table th:nth-child(4) {
    width: 43%;
}

.max-honor-table td {
    min-width: 0;
    overflow: hidden;
    height: 62px;
    padding: .52rem 1rem;
    border-top: 1px solid rgba(148, 174, 214, .09);
    vertical-align: middle;
}

.max-honor-table tbody tr {
    background: rgba(255, 255, 255, .012);
    transition: background .16s ease;
}

.max-honor-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .025);
}

.max-honor-table tbody tr:hover {
    background: rgba(255, 255, 255, .055);
}

.max-honor-table tbody tr.is-double {
    background:
        linear-gradient(90deg, rgba(250, 204, 21, .075), transparent 42%),
        rgba(255, 255, 255, .025);
}

.max-honor-table tbody tr:first-child td {
    border-top: 0;
}

.max-honor-table td:first-child {
    box-shadow: inset 3px 0 var(--honor-accent);
}

.max-honor-list-avatar {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--honor-accent) 48%, transparent);
    border-radius: 12px;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--honor-accent) 32%, #101a2a),
            rgba(8, 17, 31, .92));
    box-shadow:
        0 7px 18px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .13);
    color: #fff;
    font-family: "Trebuchet MS", sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.max-honor-name {
    display: block;
    min-width: 0;
    color: #edf5ff;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
}

.max-honor-table tbody tr.is-double .max-honor-name {
    color: #fff4c2;
}

.max-honor-count {
    display: inline-grid;
    min-width: 44px;
    min-height: 27px;
    place-items: center;
    padding: .18rem .45rem;
    border: 1px solid rgba(103, 232, 249, .2);
    border-radius: 8px;
    background: rgba(103, 232, 249, .07);
    color: #8ceefb;
    font-family: "Trebuchet MS", sans-serif;
    font-size: .78rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.max-honor-count.is-double {
    border-color: rgba(250, 204, 21, .34);
    background: linear-gradient(145deg, rgba(250, 204, 21, .17), rgba(250, 204, 21, .055));
    color: #fde68a;
    box-shadow: 0 0 18px rgba(250, 204, 21, .1);
}

.max-honor-server-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .34rem;
    min-width: 0;
}

.max-honor-server-list .max-honor-server {
    padding: .2rem .45rem;
    font-size: .61rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.max-honors-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 174, 214, .12);
    color: #8295ae;
    font-size: .74rem;
}

.max-honors-foot a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fcd34d;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, transform .16s ease;
}

.max-honors-foot a:hover {
    color: #fff3b0;
    transform: translateX(2px);
}

.max-honors-foot a > span {
    font-size: 1rem;
    line-height: 1;
}

html[data-theme="light"] .max-honors {
    box-shadow:
        0 26px 58px rgba(24, 44, 76, .2),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

@media (max-width: 960px) {
    .max-honors-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .max-honor-card {
        flex-basis: calc((100% - .9rem) / 2);
    }
}

@media (max-width: 640px) {
    .max-honors {
        min-width: 0;
        overflow: hidden;
        padding: 1rem;
        border-radius: 19px;
    }

    .max-honors-summary {
        width: 100%;
    }

    .max-honors-stat {
        flex: 1 1 0;
        min-width: 0;
    }

    .max-honor-card {
        flex-basis: 100%;
    }

    .max-honor-table th {
        padding: .55rem .34rem;
        font-size: .54rem;
        letter-spacing: 0;
        white-space: normal;
    }

    .max-honor-table th:nth-child(1) {
        width: 14%;
    }

    .max-honor-table th:nth-child(2) {
        width: 30%;
    }

    .max-honor-table th:nth-child(3) {
        width: 16%;
    }

    .max-honor-table th:nth-child(4) {
        width: 40%;
    }

    .max-honor-table td {
        height: 54px;
        padding: .45rem .34rem;
    }

    .max-honor-list-avatar {
        width: 31px;
        height: 31px;
        border-radius: 9px;
        font-size: .59rem;
    }

    .max-honor-name {
        font-size: .82rem;
        line-height: 1.25;
    }

    .max-honor-count {
        min-width: 34px;
        min-height: 24px;
        padding: .14rem .25rem;
        font-size: .68rem;
    }

    .max-honor-server-list {
        gap: .2rem;
    }

    .max-honor-server-list .max-honor-server {
        display: inline-block;
        max-width: 100%;
        padding: .16rem .25rem;
        font-size: .49rem;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .max-honors-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .max-honor-card,
    .max-honors-foot a {
        transition: none;
    }

    .max-honor-card:hover,
    .max-honors-foot a:hover {
        transform: none;
    }
}
