/*
 * Homepage layout
 *
 * The hero keeps its two voices together on every canvas that can support
 * them: the title/search on the left and the notice on the right share a
 * clean top edge. Desktop and tablet canvases use the same fluid composition;
 * phones use their own complete vertical composition.
 */

.home-page {
    width: var(--page);
    margin: 0 auto;
    padding: calc(70px + clamp(18px, 5vh, 72px)) 0 46px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
    gap: clamp(18px, min(3.8vw, 4vh), 52px);
    align-items: center;
    padding-bottom: clamp(22px, 4vh, 56px);
    border-bottom: 1px solid var(--line-strong);
}

.home-intro,
.announcement,
.tool-board {
    position: relative;
}

.home-intro {
    min-height: min(clamp(260px, 31vw, 350px), 47vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(54px, min(8.4vw, 18vh), 118px);
    font-weight: 900;
    letter-spacing: -0.085em;
    line-height: 0.84;
    white-space: nowrap;
    cursor: default;
    transform: rotate(0deg);
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 7px 24px rgba(22, 17, 29, 0.28);
}

.home-title__snow {
    display: inline-block;
    font-family: var(--home-snow-font);
    font-weight: 700;
}

.home-intro h1 > span:not(.home-title__snow) {
    display: inline-block;
    margin-left: 0.09em;
    color: var(--accent);
    font-family: var(--display);
    font-size: 0.76em;
    font-weight: 400;
    letter-spacing: 0.015em;
    transform: translateY(-0.02em);
}

.tool-search {
    width: min(100%, 560px);
    min-height: 50px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: clamp(16px, min(3.5vw, 3vh), 40px);
    padding: 0 13px 7px;
    border-bottom: 2px solid var(--ink);
    background: color-mix(in srgb, var(--paper-solid) 44%, transparent);
    backdrop-filter: blur(4px);
}

.tool-search label {
    color: var(--accent-2);
    font-family: var(--display);
    font-size: 18px;
    line-height: 1;
}

.tool-search input {
    min-width: 0;
    width: 100%;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.tool-search input::placeholder {
    color: var(--muted);
    opacity: 0.94;
}

.tool-search input::-webkit-search-cancel-button {
    display: none;
}

.tool-search button {
    min-height: 28px;
    padding: 0 7px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.announcement {
    width: auto;
    max-width: none;
    min-height: min(clamp(168px, 20vw, 224px), 37vh);
    display: flex;
    align-items: center;
    justify-self: stretch;
    align-self: center;
    padding: clamp(18px, 3vh, 24px) clamp(20px, 2vw, 28px);
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--accent-2);
    border-radius: 2px;
    background: var(--paper-solid);
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--accent-2) 18%, transparent),
        0 18px 38px rgba(25, 19, 32, 0.16);
    transform: none;
}

.announcement::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 60px;
    height: 14px;
    border: 1px solid color-mix(in srgb, var(--accent-2) 42%, transparent);
    background: color-mix(in srgb, var(--accent-2) 24%, var(--paper-solid));
    transform: translateX(-50%) rotate(-1deg);
}

.announcement::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 16px;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    opacity: 0.55;
}

.announcement > div {
    position: relative;
    z-index: 1;
}

.announcement > div::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: clamp(10px, 2vh, 17px);
    background: var(--accent-2);
}

.announcement h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(26px, min(3vw, 6.5vh), 40px);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.12;
}

.announcement p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* Tool directory: an editorial index with a full-width lead item and
 * disciplined paired rows below it. It keeps the old split-toolbar rhythm
 * without bringing back decorative icon boxes. */
.tool-board {
    margin-top: clamp(38px, 7vw, 88px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    box-shadow: 0 20px 48px rgba(28, 20, 36, 0.2);
}

.tool-board::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 3px;
    background: var(--accent-2);
}

.tool-board__header {
    min-height: 116px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px clamp(22px, 4vw, 44px) 23px;
    border-bottom: 2px solid var(--ink);
}

.tool-board__header > div:first-child::before {
    content: "TOOLS / INDEX";
    display: block;
    margin-bottom: 12px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.tool-board__header > div:first-child::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--accent-2);
    transform: rotate(-2deg);
}

.tool-board__header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.9;
}

.tool-board__count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 5px;
    color: var(--muted);
}

.tool-board__count strong {
    color: var(--accent);
    font-family: var(--display);
    font-size: 46px;
    font-weight: 400;
    line-height: 0.8;
}

.tool-board__count span {
    font-size: 11px;
    font-weight: 850;
}

.tool-board__grid {
    display: block;
}

.tool-group {
    --group-accent: var(--accent);
    --group-soft: var(--accent-soft);
    display: block;
    border-bottom: 1px solid var(--line-strong);
}

.tool-group:last-child {
    border-bottom: 0;
}

.tool-group[data-category="工具"] {
    --group-accent: #4f9c89;
    --group-soft: rgba(79, 156, 137, 0.14);
}

.tool-group[data-category="游戏"] {
    --group-accent: #d16d8c;
    --group-soft: rgba(209, 109, 140, 0.14);
}

.tool-group[data-category="开发"] {
    --group-accent: #7666c4;
    --group-soft: rgba(118, 102, 196, 0.14);
}

/* The flat toolbar keeps the category accent on each item, so filtering does
 * not need to rebuild visual sub-sections. */
.board-item[data-category="工具"] {
    --group-accent: #4f9c89;
    --group-soft: rgba(79, 156, 137, 0.14);
}

.board-item[data-category="游戏"] {
    --group-accent: #d16d8c;
    --group-soft: rgba(209, 109, 140, 0.14);
}

.board-item[data-category="开发"] {
    --group-accent: #7666c4;
    --group-soft: rgba(118, 102, 196, 0.14);
}

.tool-group__header {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 38px minmax(0, auto) 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 17px clamp(22px, 4vw, 44px) 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--group-soft) 62%, transparent);
}

.tool-group__header::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--group-accent);
    transform: rotate(-2deg);
}

.tool-group__header h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
}

.tool-group__header span {
    width: max-content;
    color: var(--group-accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.tool-group__header span::before {
    content: "共 ";
    color: var(--muted);
    font-family: var(--sans);
    letter-spacing: 0;
}

.tool-group__list {
    min-width: 0;
    display: block;
}

/* Restore the split toolbar on tablet-sized desktops and up. The group
 * heading remains a full-width row; the lead tool does too. Every regular
 * item shares the same grid track so the two sides never drift vertically. */
@media (min-width: 860px) {
    .tool-group__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(12px, 2.2vw, 26px);
        align-items: stretch;
    }

    .tool-group__list .board-item {
        min-width: 0;
    }

    .tool-group__list .board-item.is-featured {
        grid-column: 1 / -1;
    }

    /* A category with an odd number of regular tools closes with a complete
     * row instead of leaving one narrow item stranded on the left. */
    .tool-group__list.has-lone-item > .board-item:last-child {
        grid-column: 1 / -1;
    }
}

.board-item {
    position: relative;
    min-width: 0;
    min-height: 84px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
    padding: 16px clamp(22px, 4vw, 44px);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.board-item::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 2px;
    background: var(--group-accent);
    opacity: 0.72;
    transform: scaleY(0.72);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.tool-group__list .board-item:last-child {
    border-bottom-color: transparent;
}

.board-item.is-featured {
    min-height: 108px;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    background: linear-gradient(100deg, var(--group-soft), transparent 78%);
}

.board-item:hover,
.board-item:focus-visible {
    z-index: 1;
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--group-soft) 80%, var(--paper) 20%);
    box-shadow: inset 4px 0 0 var(--group-accent);
}

.board-item:nth-child(even):not(.is-featured) {
    background: color-mix(in srgb, var(--group-soft) 18%, transparent);
}

.board-item:hover::before,
.board-item:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.board-item__index {
    display: block;
    color: var(--group-accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: left;
    opacity: 0.9;
}

.board-item.is-featured .board-item__index {
    font-size: 11px;
}

.board-item__copy {
    min-width: 0;
    display: block;
}

.board-item h3 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(16px, 1.45vw, 19px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item.is-featured h3 {
    font-family: var(--display);
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Let each section have its own voice without turning every row into a card. */
.tool-group[data-category="工具"] .board-item:not(.is-featured) h3,
.tool-group[data-category="开发"] .board-item h3,
.board-item[data-category="工具"]:not(.is-featured) h3,
.board-item[data-category="开发"] h3 {
    font-family: var(--display);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.board-item p {
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item.is-featured p {
    margin-top: 8px;
    font-size: 12px;
}

.board-item__category {
    display: inline-flex;
    align-items: center;
    min-height: 12px;
    margin-top: 8px;
    padding-left: 7px;
    border-left: 2px solid var(--group-accent);
    color: var(--group-accent);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
}

.board-item.is-featured .board-item__category {
    margin-top: 9px;
    font-size: 10px;
}

/* The route mark is a small affordance, not a decorative icon box. */
.board-item__route {
    position: relative;
    width: 26px;
    height: 20px;
    display: block;
    color: var(--group-accent);
    font-size: 0;
    transition: transform 180ms ease, color 180ms ease;
}

.board-item__route::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.board-item__route::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.board-item:hover .board-item__route,
.board-item:focus-visible .board-item__route {
    color: var(--ink);
    transform: translateX(4px);
}

.empty-state {
    min-height: 220px;
    place-items: center;
    align-content: center;
    padding: 40px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.empty-state:not([hidden]) {
    display: grid;
}

.empty-state h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 400;
}

.empty-state p {
    margin: 9px 0 0;
    color: var(--muted);
}

footer {
    padding: 36px 0 10px;
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.48);
}

footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .home-page {
        width: min(100%, calc(100vw - 24px));
        padding-top: calc(62px + 32px);
        padding-bottom: 32px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-bottom: 30px;
    }

    .home-intro {
        min-height: 0;
        padding-top: 25px;
    }

    .home-intro h1 {
        font-size: clamp(48px, 14vw, 68px);
        letter-spacing: -0.09em;
    }

    .home-intro h1 > span:not(.home-title__snow) {
        margin-left: 0.055em;
        font-size: 0.72em;
    }

    .tool-search {
        width: 100%;
        min-height: 46px;
        gap: 9px;
        margin-top: 24px;
        padding: 0 9px 6px;
    }

    .tool-search label {
        font-size: 16px;
    }

    .tool-search input {
        height: 37px;
        font-size: 14px;
    }

    .announcement {
        max-width: none;
        min-height: 94px;
        display: flex;
        align-items: center;
        padding: 16px 17px 17px;
        box-shadow: 5px 6px 0 color-mix(in srgb, var(--accent-2) 16%, transparent),
            0 12px 24px rgba(25, 19, 32, 0.13);
        transform: none;
    }

    .announcement::before {
        display: none;
    }

    .announcement::after {
        right: 13px;
        bottom: 12px;
        width: 18px;
        height: 18px;
    }

    .announcement > div::before {
        width: 22px;
        height: 2px;
        margin-bottom: 10px;
    }

    .announcement h2 {
        font-size: 25px;
    }

    .announcement p {
        margin-top: 5px;
        font-size: 12px;
    }

    .tool-board {
        margin-top: 30px;
        border-radius: 8px 2px 8px 2px;
    }

    .tool-board::before {
        width: 68px;
        height: 2px;
    }

    .tool-board__header {
        min-height: 96px;
        padding: 22px 17px 18px;
    }

    .tool-board__header > div:first-child::before {
        margin-bottom: 9px;
        font-size: 8px;
    }

    .tool-board__header > div:first-child::after {
        width: 44px;
        height: 2px;
        margin-top: 9px;
    }

    .tool-board__header h2 {
        font-size: 40px;
    }

    .tool-board__count strong {
        font-size: 32px;
    }

    .tool-group__header {
        min-height: 58px;
        grid-template-columns: 27px minmax(0, auto) 1fr auto;
        gap: 10px;
        padding: 14px 17px 13px;
    }

    .tool-group__header::before {
        width: 24px;
        height: 2px;
    }

    .tool-group__header h3 {
        font-size: 26px;
    }

    .tool-group__header span {
        font-size: 9px;
    }

    .board-item,
    .board-item.is-featured {
        grid-template-columns: 28px minmax(0, 1fr) 27px;
        min-height: 86px;
        padding: 16px 16px;
        gap: 11px;
    }

    .board-item.is-featured {
        min-height: 99px;
    }

    .board-item h3 {
        font-size: 16px;
        white-space: normal;
    }

    .tool-group[data-category="工具"] .board-item h3,
    .tool-group[data-category="开发"] .board-item h3 {
        font-family: var(--sans);
        font-size: 16px;
        font-weight: 850;
        letter-spacing: -0.035em;
    }

    .board-item.is-featured h3 {
        font-size: 23px;
    }

    .board-item p,
    .board-item.is-featured p {
        font-size: 11px;
        white-space: normal;
    }

    .board-item__route {
        width: 22px;
    }
}

@media (max-width: 380px) {
    .home-intro h1 {
        font-size: 46px;
    }

    .tool-search {
        gap: 7px;
    }

    .tool-search label {
        font-size: 15px;
    }

    .tool-board__header h2 {
        font-size: 36px;
    }

    .board-item,
    .board-item.is-featured {
        grid-template-columns: 24px minmax(0, 1fr) 23px;
        padding-right: 13px;
        padding-left: 13px;
    }
}

.tool-board {
    margin-top: clamp(38px, 6vw, 78px);
    scroll-margin-top: 82px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-top: 4px solid var(--accent-2);
    border-radius: 0;
    background: var(--paper-solid);
    box-shadow: 0 18px 42px rgba(28, 20, 36, 0.22);
}

.tool-board::before {
    display: none;
}

.tool-board__header {
    position: relative;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 23px clamp(22px, 4vw, 44px) 21px;
    border-bottom: 0;
    background: linear-gradient(90deg, var(--accent-2-soft), transparent 62%);
}

.tool-board__header > div:first-child::before {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.2em;
}

.tool-board__header > div:first-child::after {
    width: 40px;
    height: 2px;
    margin-top: 9px;
    border-radius: 0;
    transform: none;
}

.tool-board__header h2 {
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: clamp(39px, 4.4vw, 54px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.9;
}

.tool-board__count {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--accent) 56%, transparent);
    background: color-mix(in srgb, var(--accent-soft) 44%, transparent);
    color: var(--muted);
}

.tool-board__count strong {
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: 27px;
    font-weight: 700;
    line-height: 0.78;
}

.tool-board__count span {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tool-board__grid {
    border-top: 1px solid var(--line-strong);
}

.tool-group {
    border: 0;
}

.tool-group__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    background: var(--line-strong);
}

@media (min-width: 860px) {
    .tool-group__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1px;
        row-gap: 1px;
    }

    .tool-group__list .board-item.is-featured,
    .tool-group__list.has-lone-item > .board-item:last-child {
        grid-column: 1 / -1;
    }
}

.board-item {
    min-height: 102px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    padding: 17px clamp(20px, 3.2vw, 34px);
    border: 0;
    border-radius: 0;
    background: var(--paper-solid);
    box-shadow: none;
    transition: background 180ms ease, transform 180ms ease;
}

.board-item.is-featured {
    min-height: 120px;
    background: linear-gradient(90deg, var(--group-soft), transparent 54%), var(--paper-solid);
}

.board-item:nth-child(even):not(.is-featured) {
    background: var(--paper-solid);
}

.board-item::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    opacity: 0.88;
    transform: none;
}

.board-item:hover,
.board-item:focus-visible {
    z-index: 1;
    border: 0;
    background: linear-gradient(90deg, var(--group-soft), transparent 68%), var(--paper-solid);
    box-shadow: none;
    transform: translateY(-1px);
}

.board-item:hover::before,
.board-item:focus-visible::before {
    opacity: 1;
    transform: none;
}

.board-item__index,
.board-item.is-featured .board-item__index {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 1;
}

.board-item h3,
.tool-group[data-category] .board-item h3,
.board-item[data-category] h3 {
    overflow: visible;
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: clamp(18px, 1.65vw, 22px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
}

.board-item.is-featured h3 {
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: clamp(25px, 2.5vw, 32px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.board-item p,
.board-item.is-featured p {
    margin-top: 5px;
    overflow: visible;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

.board-item__category,
.board-item.is-featured .board-item__category {
    min-height: 0;
    margin-top: 9px;
    padding: 3px 6px 2px;
    border: 1px solid color-mix(in srgb, var(--group-accent) 48%, transparent);
    border-left-width: 3px;
    border-radius: 0;
    background: color-mix(in srgb, var(--group-soft) 58%, transparent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.board-item__route {
    width: 22px;
    height: 18px;
}

.board-item__route::before {
    right: 0;
}

.board-item__route::after {
    right: 0;
}

@media (max-width: 720px) {
    .tool-board {
        margin-top: 32px;
        scroll-margin-top: 70px;
        border-top-width: 3px;
        box-shadow: 0 14px 30px rgba(28, 20, 36, 0.2);
    }

    .tool-board__header {
        min-height: 90px;
        padding: 18px 16px 17px;
    }

    .tool-board__header h2 {
        font-size: 38px;
    }

    .tool-board__count {
        width: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .tool-board__count strong {
        font-size: 24px;
    }

    .board-item,
    .board-item.is-featured {
        grid-template-columns: 30px minmax(0, 1fr) 22px;
        min-height: 94px;
        padding: 15px 16px;
        gap: 10px;
    }

    .board-item.is-featured {
        min-height: 110px;
    }

    .board-item h3,
    .tool-group[data-category] .board-item h3,
    .board-item[data-category] h3 {
        font-size: 17px;
    }

    .board-item.is-featured h3 {
        font-size: 23px;
    }

    .board-item p,
    .board-item.is-featured p {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .board-item,
    .board-item.is-featured {
        grid-template-columns: 26px minmax(0, 1fr) 20px;
        padding-right: 13px;
        padding-left: 13px;
    }
}

/* Confirmed split directory toolbar: transferred from the supplied reference.
 * The newest version keeps its own hero/background; only the tool directory
 * returns to the category rail plus paired-item structure. */
.tool-board {
    margin-top: clamp(28px, 5vh, 100px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-top-width: 1px;
    border-radius: 3px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.tool-board::before {
    display: none;
}

.tool-board__header {
    min-height: 118px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 26px clamp(24px, 4vw, 46px) 23px;
    border-bottom: 2px solid var(--ink);
    background: transparent;
}

.tool-board__header > div:first-child::before {
    display: none;
}

.tool-board__header > div:first-child::after {
    width: 34px;
    height: 3px;
    margin-top: 13px;
    border-radius: 1px;
    background: var(--accent-2);
    transform: none;
}

.tool-board__header h2 {
    font-family: var(--display);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 0.9;
}

.tool-board__count {
    width: auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: baseline;
    justify-items: initial;
    gap: 8px;
    padding-bottom: 5px;
    border: 0;
    background: transparent;
}

.tool-board__count strong {
    font-family: var(--display);
    font-size: 46px;
    font-weight: 400;
    line-height: 0.8;
}

.tool-board__count span {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.tool-board__grid {
    display: block;
    border-top: 0;
}

.tool-group {
    --group-accent: var(--accent);
    --group-soft: var(--accent-soft);
    display: grid;
    grid-template-columns: minmax(126px, 0.2fr) minmax(0, 1fr);
    border: 0;
    border-bottom: 1px solid var(--line-strong);
}

.tool-group:last-child {
    border-bottom: 0;
}

.tool-group[data-category="工具"] {
    --group-accent: #4f9c89;
    --group-soft: rgba(79, 156, 137, 0.13);
}

.tool-group[data-category="游戏"] {
    --group-accent: #d16d8c;
    --group-soft: rgba(209, 109, 140, 0.13);
}

.tool-group[data-category="开发"] {
    --group-accent: #7666c4;
    --group-soft: rgba(118, 102, 196, 0.13);
}

.tool-group__header {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 26px 22px 24px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: color-mix(in srgb, var(--group-soft) 72%, transparent);
}

.tool-group__header::before {
    width: 26px;
    height: 3px;
    border-radius: 1px;
    background: var(--group-accent);
    transform: none;
}

.tool-group__header h3 {
    margin: auto 0 0;
    font-family: var(--display);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
}

.tool-group__header span {
    width: max-content;
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tool-group__list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-content: start;
    background: transparent;
}

.board-item,
.board-item.is-featured {
    position: relative;
    min-width: 0;
    min-height: 104px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    padding: 20px 18px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}

.board-item::before {
    display: none;
}

.board-item:nth-child(even) {
    border-right: 0;
    background: transparent;
}

.board-item:nth-last-child(-n + 2) {
    border-bottom-color: transparent;
}

.tool-group__list.has-lone-item > .board-item:last-child {
    grid-column: 1 / -1;
    border-right: 0;
}

.tool-group__list.has-lone-item > .board-item:nth-last-child(2) {
    border-bottom-color: var(--line);
}

.board-item:hover,
.board-item:focus-visible {
    z-index: 1;
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--group-soft) 84%, var(--paper) 16%);
    box-shadow: inset 4px 0 0 var(--group-accent);
    transform: none;
}

.board-item__index {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
    opacity: 0.82;
}

.board-item__copy {
    display: block;
}

.board-item h3,
.tool-group[data-category] .board-item h3,
.board-item[data-category] h3 {
    overflow: hidden;
    font-family: var(--sans);
    font-size: clamp(16px, 1.55vw, 19px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item p {
    margin: 7px 0 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item__category {
    display: none;
}

.board-item__route {
    width: auto;
    height: auto;
    color: var(--group-accent);
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.board-item__route::before,
.board-item__route::after {
    display: none;
}

.board-item:hover .board-item__route,
.board-item:focus-visible .board-item__route {
    color: var(--ink);
    transform: translateX(5px);
}

/* Keep the split rail continuous through tablet widths.  Only the deliberate
 * phone layout becomes a full row with a single card column. */
@media (max-width: 620px) {
    .tool-group {
        grid-template-columns: 1fr;
    }

    .tool-group__header {
        min-height: 64px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px 20px 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tool-group__header::before {
        width: 24px;
        height: 2px;
    }

    .tool-group__header h3 {
        margin: 0;
        font-size: 27px;
    }

    .tool-group__header span {
        margin-left: auto;
    }
}

@media (max-width: 620px) {
    .tool-board {
        margin-top: 38px;
    }

    .tool-board__header {
        min-height: 92px;
        padding: 22px 20px 19px;
    }

    .tool-board__header h2 {
        font-size: 42px;
    }

    .tool-board__count strong {
        font-size: 34px;
    }

    .tool-group__list {
        grid-template-columns: 1fr;
    }

    .board-item {
        grid-template-columns: 28px minmax(0, 1fr) 21px;
        min-height: 98px;
        padding: 18px 16px;
        border-right: 0;
    }

    .board-item:nth-last-child(-n + 2) {
        border-bottom-color: var(--line);
    }

    .board-item:last-child {
        border-bottom-color: transparent;
    }

    .tool-group__list.has-lone-item > .board-item:last-child {
        grid-column: auto;
    }

    .board-item h3,
    .tool-group[data-category] .board-item h3,
    .board-item[data-category] h3 {
        font-size: 17px;
    }

    .board-item p {
        font-size: 11px;
    }
}

/* A hovered tool remains a quiet navigation cue, not a glowing card. */
.tool-board .tool-group__list > .board-item:hover,
.tool-board .tool-group__list > .board-item:focus-visible {
    background: color-mix(in srgb, var(--group-accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--group-accent) 42%, var(--line));
    box-shadow: none;
}

.tool-board .tool-group__list > .board-item:hover .board-item__route,
.tool-board .tool-group__list > .board-item:focus-visible .board-item__route {
    color: var(--group-accent);
    transform: translateX(3px);
}

@media (max-width: 420px) {
    .tool-board__header {
        min-height: 84px;
        padding: 20px 17px 17px;
    }

    .tool-board__header h2 {
        font-size: 38px;
    }

    .tool-board__count strong {
        font-size: 30px;
    }

    .tool-group__header {
        padding-right: 17px;
        padding-left: 17px;
    }

    .board-item {
        grid-template-columns: 25px minmax(0, 1fr) 19px;
        padding-right: 13px;
        padding-left: 13px;
    }
}

/* In light mode the illustration remains present, but it is a backdrop rather
 * than a dark second surface competing with the paper UI. */
html:not(.dark) .home-intro h1 {
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0.85px color-mix(in srgb, var(--accent-2) 76%, #fff);
    paint-order: stroke fill;
    text-shadow: 0 7px 20px rgba(37, 59, 91, 0.22);
}

html:not(.dark) .home-intro h1 > span:not(.home-title__snow) {
    -webkit-text-fill-color: var(--accent);
    -webkit-text-stroke: 0 transparent;
}

html:not(.dark) .tool-search {
    background: rgba(255, 250, 245, 0.72);
    border-bottom-color: color-mix(in srgb, var(--ink) 82%, transparent);
    box-shadow: 0 10px 28px rgba(91, 65, 81, 0.10);
}

html:not(.dark) .announcement {
    background: rgba(255, 250, 245, 0.95);
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--accent-2) 16%, transparent),
        0 18px 38px rgba(91, 65, 81, 0.13);
}

html:not(.dark) .tool-board {
    background: rgba(255, 249, 243, 0.94);
    box-shadow: 0 20px 46px rgba(91, 65, 81, 0.14);
}

html:not(.dark) .tool-group__header {
    background: color-mix(in srgb, var(--group-accent) 9%, transparent);
}

html:not(.dark) .board-item {
    background: rgba(255, 250, 245, 0.72);
}

html:not(.dark) .board-item:hover,
html:not(.dark) .board-item:focus-visible {
    background: color-mix(in srgb, var(--group-soft) 72%, var(--paper-solid));
}

/* Authoritative toolbar surface: the background image stays visible through
 * one shared board layer; individual cards never alternate opaque/transparent. */
.tool-board {
    background: color-mix(in srgb, var(--paper-solid) 82%, transparent);
}

html.dark .tool-board {
    background: rgba(33, 31, 42, 0.82);
}

html:not(.dark) .tool-board {
    background: rgba(255, 249, 243, 0.62);
}

.tool-board .tool-group__header {
    background: color-mix(in srgb, var(--group-accent) 9%, transparent);
}

.tool-board .tool-group__list > .board-item,
.tool-board .tool-group__list > .board-item:nth-child(even),
.tool-board .tool-group__list > .board-item:nth-child(even):not(.is-featured) {
    background: transparent;
}

.tool-board .tool-group__list > .board-item:hover,
.tool-board .tool-group__list > .board-item:focus-visible {
    background: color-mix(in srgb, var(--group-accent) 18%, transparent);
}

.tool-board .tool-group[data-category] .tool-group__list > .board-item h3,
.tool-board .tool-group[data-category] .tool-group__list > .board-item:not(.is-featured) h3 {
    font-family: var(--sans);
    font-size: clamp(16px, 1.55vw, 19px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

@media (min-width: 621px) {
    .tool-board .tool-group__header {
        min-height: 104px;
        justify-content: center;
        gap: 8px;
        padding: 15px 20px 14px;
    }

    .tool-board .tool-group__header h3 {
        margin: 0;
        font-size: clamp(26px, 2.3vw, 30px);
    }
}

@media (max-width: 620px) {
    .tool-board .tool-group[data-category] .tool-group__list > .board-item h3,
    .tool-board .tool-group[data-category] .tool-group__list > .board-item:not(.is-featured) h3 {
        font-size: 17px;
    }
}

/* Final hover override: preserve an interaction cue without a neon inset. */
.tool-board .tool-group__list > .board-item:hover,
.tool-board .tool-group__list > .board-item:focus-visible {
    background: color-mix(in srgb, var(--group-accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--group-accent) 42%, var(--line));
    box-shadow: none;
}

.tool-board .tool-group__list > .board-item:hover .board-item__route,
.tool-board .tool-group__list > .board-item:focus-visible .board-item__route {
    color: var(--group-accent);
    transform: translateX(3px);
}

/* Tablet is a complete vertical composition, rather than a squeezed
 * left-title/right-notice compromise.  The split tool directory remains
 * intact until the deliberate phone breakpoint below. */
@media (min-width: 721px) and (max-width: 1100px) {
    .home-page {
        padding-top: calc(70px + 52px);
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-bottom: 46px;
    }

    .home-intro {
        width: min(100%, 640px);
        min-height: 258px;
        justify-self: center;
        align-items: center;
    }

    .home-intro h1 {
        font-size: clamp(64px, 10vw, 94px);
        text-align: center;
    }

    .tool-search {
        width: min(100%, 520px);
        margin-top: 31px;
    }

    .announcement {
        width: min(100%, 520px);
        min-height: 116px;
        display: flex;
        align-items: center;
        justify-self: center;
        padding: 22px 24px 23px;
    }

    .announcement > div::before {
        margin-bottom: 12px;
    }

    .announcement h2 {
        font-size: 29px;
    }

    .announcement p {
        margin-top: 8px;
    }
}

/* Every tool card gets the same readable pointer response.  The surface stays
 * transparent at rest; only the category tint, edge and route move on hover,
 * so none of the groups depends on a barely visible colour difference. */
.tool-board .tool-group__list > .board-item {
    background-color: transparent;
    background-image: none;
    transition:
        background-color 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
        border-color 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
        box-shadow 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
        color 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.tool-board .tool-group__list > .board-item:hover,
.tool-board .tool-group__list > .board-item:focus-visible,
.tool-board .tool-group__list > .board-item:nth-child(even):not(.is-featured):hover,
.tool-board .tool-group__list > .board-item:nth-child(even):not(.is-featured):focus-visible {
    background: color-mix(in srgb, var(--group-accent) 18%, transparent);
    border-color: color-mix(in srgb, var(--group-accent) 58%, var(--line));
    box-shadow:
        inset 3px 0 0 color-mix(in srgb, var(--group-accent) 82%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--group-accent) 18%, transparent);
}

html:not(.dark) .tool-board .tool-group__list > .board-item:hover,
html:not(.dark) .tool-board .tool-group__list > .board-item:focus-visible,
html:not(.dark) .tool-board .tool-group__list > .board-item:nth-child(even):not(.is-featured):hover,
html:not(.dark) .tool-board .tool-group__list > .board-item:nth-child(even):not(.is-featured):focus-visible {
    background: color-mix(in srgb, var(--group-accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--group-accent) 54%, var(--line));
    box-shadow:
        inset 3px 0 0 color-mix(in srgb, var(--group-accent) 76%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--group-accent) 14%, transparent);
}

/* A narrow split toolbar still keeps the full tool name and description.
 * This range is deliberately above the phone breakpoint, so the accepted
 * two-column directory remains intact without turning text into ellipses. */
@media (min-width: 621px) and (max-width: 860px) {
    .tool-board .tool-group[data-category] .tool-group__list > .board-item h3,
    .tool-board .tool-group[data-category] .tool-group__list > .board-item:not(.is-featured) h3 {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .tool-board .tool-group__list > .board-item p {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

/* Keep the directory's Chinese copy in the same handwritten family already
 * used by the site name and navigation, instead of falling back to a square
 * system sans-serif inside otherwise personal-looking cards. */
.tool-board .tool-group__list > .board-item h3,
.tool-board .tool-group[data-category] .tool-group__list > .board-item h3,
.tool-board .tool-group[data-category] .tool-group__list > .board-item:not(.is-featured) h3,
.tool-board .tool-group__list > .board-item p {
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
}

/* The notice remains the strongest reading surface, but no longer turns the
 * background image into a near-solid white or black block in either theme. */
html.dark .announcement {
    background: rgba(40, 38, 51, 0.84);
}

html:not(.dark) .announcement {
    background: rgba(255, 250, 245, 0.74);
}

/* Keep the blue accent with the compact top-bar mark, not above the hero. */
.site-brand__name {
    text-decoration-line: underline;
    text-decoration-color: var(--accent-2);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-skip-ink: none;
}

html:not(.dark) .site-brand__name {
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0.6px color-mix(in srgb, var(--accent-2) 74%, #fff);
    paint-order: stroke fill;
    text-shadow: 0 1px 5px rgba(44, 84, 141, 0.34);
}

@media (hover: hover) and (pointer: fine) {
    .home-intro h1:hover {
        transform: rotate(-2deg);
    }
}

html:not(.dark) .site-topbar .site-nav a,
html:not(.dark) .site-topbar .site-control,
html:not(.dark) .site-topbar .site-control__label,
html:not(.dark) .site-topbar .site-control strong,
html:not(.dark) .site-topbar .menu-toggle {
    color: var(--ink);
}

/* The about links are a standalone destination beneath the component board,
 * not a third component category. */
.about-links.site-surface {
    position: relative;
    display: block;
    margin-top: clamp(30px, 5vh, 64px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: color-mix(in srgb, var(--paper-solid) 82%, transparent);
    box-shadow: var(--shadow);
}

html.dark .about-links.site-surface {
    background: rgba(33, 31, 42, 0.82);
}

html:not(.dark) .about-links.site-surface {
    background: rgba(255, 249, 243, 0.62);
}

.about-links__header {
    min-height: 98px;
    display: flex;
    align-items: flex-end;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--line-strong);
}

.about-links__header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(39px, 4.2vw, 54px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
}

@media (max-width: 620px) {
    .about-links.site-surface {
        margin-top: 32px;
    }

    .about-links__header {
        min-height: 82px;
        padding: 19px 20px 17px;
    }

    .about-links__header h2 {
        font-size: 39px;
    }
}

/* The content rail keeps the same quiet typography as the directory, while
 * the surrounding .about-links surface remains an independent section. */
.about-links {
    --group-accent: var(--accent-2);
    --group-soft: var(--accent-2-soft);
    scroll-margin-top: 82px;
}

.about-links .tool-group__header::before {
    background: var(--accent-2);
}

.about-links__content {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(230px, 1.1fr);
    background: transparent;
}

.about-links__monitor {
    min-width: 0;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 24px 26px;
    border-right: 1px solid var(--line);
    color: var(--accent-2);
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 700;
    line-height: 1.14;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--accent-2) 64%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-skip-ink: none;
    transition: color 200ms ease, background-color 200ms ease, text-decoration-color 200ms ease;
}

.about-links__monitor small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.about-links__monitor:hover,
.about-links__monitor:focus-visible {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent-2-soft) 56%, transparent);
    outline: 0;
    text-decoration-color: currentColor;
}

.about-links__backup {
    min-width: 0;
    padding: 20px 26px 18px;
}

.about-links__backup > p {
    margin: 0 0 11px;
    color: var(--muted);
    font-family: "LXGW WenKai TC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.about-links__backup-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-links__backup-list li {
    min-width: 0;
}

.about-links__backup-list li + li {
    border-left: 1px solid var(--line);
}

.about-links__backup-list a {
    display: block;
    padding: 9px 12px;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease;
}

.about-links__backup-list a:hover,
.about-links__backup-list a:focus-visible {
    color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-2-soft) 46%, transparent);
    outline: 0;
}

@media (max-width: 620px) {
    .about-links {
        scroll-margin-top: 72px;
    }

    .about-links__content {
        grid-template-columns: 1fr;
    }

    .about-links__monitor {
        min-height: 112px;
        padding: 22px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about-links__backup {
        padding: 18px 20px 16px;
    }

    .about-links__backup-list a {
        padding: 9px 8px;
        font-size: 10px;
    }
}

/* About is a compact address plaque rather than a third component board. */
.about-links,
.about-links.site-surface {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: min(920px, calc(100vw - 48px));
    margin: clamp(34px, 6vh, 78px) auto 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.about-links__content {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
    gap: clamp(14px, 1.6vw, 20px);
    width: 100%;
    padding: clamp(20px, 2.8vw, 30px) clamp(22px, 4vw, 44px);
    border: 1px solid color-mix(in srgb, var(--line-strong) 84%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--body-bg) 66%, transparent);
    box-shadow: 0 14px 32px rgba(24, 22, 32, 0.18);
    backdrop-filter: blur(10px);
    text-align: center;
}

html.dark .about-links__content {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.about-links__monitor {
    min-height: 0;
    display: inline-block;
    padding: 0;
    border: 0;
    color: var(--accent-2);
    font-family: "LXGW WenKai TC", "STKaiti", "KaiTi", cursive;
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: color 180ms ease;
}

.about-links__monitor:hover,
.about-links__monitor:focus-visible {
    color: var(--accent);
    background: transparent;
    outline: 0;
}

.about-links__monitor small {
    display: none;
}

.about-links__backup {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
}

.about-links__backup > p {
    margin: 0 0 11px;
    color: var(--accent-2);
    font-family: "LXGW WenKai TC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-links__backup-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 22px;
}

.about-links__backup-list li + li {
    border-left: 0;
}

.about-links__backup-list li:first-child {
    flex: 0 0 100%;
    text-align: center;
}

.about-links__backup-list a {
    display: inline;
    padding: 0;
    overflow: visible;
    color: var(--ink);
    font-family: "LXGW WenKai TC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(14px, 1.35vw, 16px);
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.about-links__backup-list a:hover,
.about-links__backup-list a:focus-visible {
    color: var(--accent-2);
    background: transparent;
    outline: 0;
}

@media (min-width: 1101px) {
    .home-hero {
        box-sizing: border-box;
        width: 100%;
        margin-left: 0;
        gap: clamp(32px, 4vw, 64px);
        transform: none;
    }
}

@media (max-width: 620px) {
    .about-links,
    .about-links.site-surface {
        width: calc(100vw - 28px);
        margin-top: 38px;
    }

    .about-links__content {
        gap: 14px;
        padding: 20px 16px;
    }

    .about-links__monitor {
        font-size: 14px;
    }

    .about-links__backup-list {
        gap: 8px 14px;
    }

    .about-links__backup-list a {
        font-size: 14px;
    }
}
