/* 第 4 批 · 申请、个人中心、证书、五年成就、搜索与邮件确认 */
.theme-art--light {
    display: none !important;
}

:root[data-theme="light"] .theme-art--dark {
    display: none !important;
}

:root[data-theme="light"] .theme-art--light {
    display: block !important;
}

.v10-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.v10-field > span:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink3);
    font: 11px/1.5 var(--mono);
    letter-spacing: 0.16em;
}

.v10-field > span b {
    color: inherit;
    font-weight: 400;
}

.v10-field > span small {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.v10-field > span small i {
    font-style: normal;
}

.v10-field input,
.v10-field textarea,
.profile-switcher select {
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: inset 0 -1px 0 var(--line2);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
    resize: vertical;
    transition: box-shadow 0.3s;
}

.v10-field textarea {
    min-height: 106px;
}

.v10-field input:focus,
.v10-field textarea:focus,
.profile-switcher select:focus {
    box-shadow: inset 0 -1px 0 var(--ink);
}

.v10-field > em,
.category-field > em {
    min-height: 1.4em;
    color: #df6938;
    font-size: 12px;
    font-style: normal;
}

.v10-field small {
    color: var(--ink3);
}

.form-status {
    display: block;
    min-height: 1.6em;
    margin: 0;
    color: var(--ink2);
    font-size: 13px;
}

.form-status.is-error,
[data-form-status].is-error {
    color: #df6938;
}

.form-status.is-success,
[data-form-status].is-success {
    color: var(--vis-text);
}

/* 申请加入 */
.join-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    min-height: 100svh;
    background: var(--bg);
}

.join-visual {
    position: sticky;
    top: 0;
    overflow: hidden;
    height: 100svh;
    min-height: 620px;
    background: #000;
}

.join-visual > img,
.join-visual > canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.join-visual > img {
    object-fit: cover;
    object-position: 52% 50%;
}

.join-visual > canvas {
    pointer-events: none;
}

:root[data-theme="light"] .join-visual {
    top: 0;
    height: calc(100svh - 168px);
    min-height: 472px;
    margin: 120px 48px 48px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.join-content {
    display: flex;
    flex-direction: column;
    gap: 42px;
    padding: clamp(112px, 10vw, 150px) clamp(36px, 5vw, 80px) 100px;
}

.join-intro h1 {
    margin: 0 0 24px;
    font-family: var(--display);
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.14;
}

.join-intro > p,
.join-intro > div p {
    max-width: 42em;
    margin: 0;
    color: var(--ink2);
    font-size: 15px;
    line-height: 1.9;
}

.join-intro > p {
    margin-bottom: 22px;
}

.join-intro a,
.five-year-page a,
.profile-page a:not(.site-button):not(.profile-outline-button) {
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--line2);
}

.join-intro > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.category-field legend {
    margin-bottom: 13px;
    color: var(--ink3);
    font: 11px/1.5 var(--mono);
    letter-spacing: 0.16em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.category-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.category-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.category-choice > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 7px;
    padding: 0 8px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink2);
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.category-choice input:checked + span {
    background: var(--action);
    box-shadow: none;
    color: var(--action-ink);
}

.category-choice input:focus-visible + span {
    outline: 2px solid var(--vis);
    outline-offset: 2px;
}

.category-choice__check {
    display: none;
}

.category-choice input:checked + span .category-choice__check {
    display: inline-block;
}

.category-choice small {
    position: absolute;
    z-index: 3;
    bottom: calc(100% + 8px);
    left: 50%;
    display: none;
    width: 210px;
    padding: 10px 12px;
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
    line-height: 1.65;
    transform: translateX(-50%);
}

.category-choice:hover small,
.category-choice:focus-within small {
    display: block;
}

.category-field > p {
    margin: 9px 0 0;
    color: var(--ink3);
    font-size: 12px;
    line-height: 1.7;
}

.category-field__hover {
    font-family: var(--mono);
}

.join-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    align-items: end;
    gap: 16px;
}

.join-captcha > button {
    display: grid;
    min-height: 48px;
    padding: 0;
    place-items: center;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: pointer;
}

.join-captcha img {
    display: block;
    max-width: 100%;
    max-height: 42px;
}

.join-submit {
    align-self: flex-start;
    min-width: 150px;
}

.join-result {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 28px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.join-result img {
    display: block;
    width: 100%;
}

.join-result p {
    margin: 0 0 22px;
    font-size: 17px;
}

.join-result div div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 个人中心 */
.profile-page {
    padding-top: clamp(150px, 15vw, 205px);
    padding-bottom: clamp(90px, 9vw, 140px);
}

.profile-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 58px;
}

.profile-header h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.1;
}

.profile-header p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    color: var(--ink3);
    font: 12px/1.5 var(--mono);
}

.profile-header p i {
    width: 5px;
    height: 5px;
    background: var(--vis);
}

.profile-header p b {
    color: var(--vis-text);
    font-weight: 400;
}

.profile-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink2);
    font-size: 13px;
}

.profile-switcher select {
    width: 152px;
    padding: 0 34px 0 14px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line2);
    font-size: 13px;
}

.profile-welcome,
.profile-notice {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-welcome img {
    display: block;
    width: 100%;
}

.profile-welcome h2,
.profile-notice h2 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 26px;
}

.profile-welcome p,
.profile-notice p {
    margin: 0;
    color: var(--ink2);
}

.profile-notices {
    margin-bottom: 28px;
}

.profile-notice {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-left: 3px solid var(--vis);
}

.profile-notice.is-action form {
    display: flex;
    flex: 0 0 min(360px, 42%);
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-notice.is-action form .v10-field {
    flex: 1 1 100%;
}

.profile-notice blockquote {
    margin: 10px 0 0;
    padding-left: 14px;
    border-left: 1px solid var(--line2);
    color: var(--ink2);
}

.profile-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: clamp(64px, 8vw, 112px);
}

.profile-overview > article {
    min-height: 410px;
    padding: clamp(28px, 3vw, 44px);
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-overview > article > span,
.profile-weight > span {
    color: var(--ink3);
    font: 11px/1 var(--mono);
    letter-spacing: 0.18em;
}

.profile-overview > article > strong {
    display: block;
    margin: 22px 0 18px;
    font: 500 clamp(64px, 7vw, 104px)/1 var(--mono);
    letter-spacing: -0.06em;
}

.profile-overview > article > p,
.profile-overview > article > small {
    display: block;
    max-width: 38em;
    color: var(--ink2);
    font-size: 14.5px;
    line-height: 1.8;
}

.profile-overview > article > small {
    margin-top: 18px;
    color: var(--ink3);
}

.profile-weight dl {
    margin: 18px 0 12px;
}

.profile-weight dl div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 0 16px;
    padding: 14px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-weight dt {
    color: var(--ink2);
}

.profile-weight dd {
    margin: 0;
}

.profile-weight__bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
    margin: 14px 0;
}

.profile-weight__bar i {
    height: 12px;
    border: 1px solid var(--line2);
}

.profile-weight__bar i.is-active {
    border-color: var(--ink);
    background: var(--ink);
}

.profile-weight__excluded {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    margin-top: 28px;
    color: var(--ink) !important;
}

.profile-weight__excluded i {
    width: 7px;
    height: 7px;
    margin-top: 9px;
    background: #df6938;
}

.profile-section {
    padding: clamp(58px, 7vw, 98px) 0;
    box-shadow: inset 0 1px 0 var(--line);
}

.profile-section > header {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px 56px;
    margin-bottom: 34px;
}

.profile-section > header h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.15;
}

.profile-section > header p {
    max-width: 48em;
    margin: 8px 0 0;
    color: var(--ink2);
}

.anniversary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.anniversary-grid article {
    min-height: 310px;
    padding: 28px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.anniversary-grid img {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.anniversary-grid h3 {
    margin: 28px 0 6px;
    font-size: 18px;
}

.anniversary-grid p {
    margin: 0;
    color: var(--ink3);
    font: 12px/1.7 var(--mono);
}

.anniversary-grid a {
    display: inline-block;
    margin-top: 18px;
}

.profile-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
    gap: 28px;
    padding: 22px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-row > span {
    color: var(--ink3);
    font: 11px/1.7 var(--mono);
    letter-spacing: 0.14em;
}

.profile-row__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-row__content > small {
    display: block;
    margin-top: 6px;
    color: var(--ink3);
}

.profile-row__value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 24px;
}

.profile-row__value p {
    margin: 0;
}

.profile-edit-button,
.profile-outline-button,
.danger-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 8px;
    padding: 0 16px;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line2);
    color: var(--ink2);
    font-size: 13px;
    cursor: pointer;
}

.profile-edit-button:hover,
.profile-outline-button:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
    color: var(--ink);
}

.profile-inline-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-inline-form h3 {
    margin: 0;
    font-size: 19px;
}

.profile-inline-form > p {
    margin: -8px 0 2px;
    color: var(--ink2);
}

.profile-inline-form .site-button {
    align-self: flex-start;
}

.profile-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.profile-input-action button {
    min-height: 48px;
    padding: 0 14px;
    background: var(--bg3);
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: pointer;
}

.profile-avatar {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.profile-avatar > img {
    width: 64px;
    height: 64px;
    background: var(--bg2);
    object-fit: cover;
}

.profile-avatar p {
    margin: 0;
    color: var(--ink2);
}

.profile-inline-status {
    margin: 12px 0 0;
    color: var(--ink2);
    font-size: 13px;
}

.profile-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.profile-category-grid label {
    position: relative;
    cursor: pointer;
}

.profile-category-grid input {
    position: absolute;
    opacity: 0;
}

.profile-category-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 7px;
    background: var(--bg3);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink2);
}

.profile-category-grid input:checked + span {
    background: var(--action);
    color: var(--action-ink);
}

.profile-switch-form label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-switch-form label > input {
    position: absolute;
    opacity: 0;
}

.profile-switch-form label > span {
    position: relative;
    width: 46px;
    height: 26px;
    background: var(--bg3);
    box-shadow: inset 0 0 0 1px var(--line2);
}

.profile-switch-form label > span i {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: var(--ink3);
    transition: transform 0.25s, background 0.25s;
}

.profile-switch-form input:checked + span i {
    background: var(--vis);
    transform: translateX(20px);
}

.profile-switch-form small {
    display: block;
    margin-top: 8px;
    color: var(--ink3);
}

.profile-quit {
    padding-top: 42px;
}

.profile-quit > button {
    padding: 0;
    background: none;
    box-shadow: inset 0 -1px 0 currentColor;
    color: var(--ink3);
    cursor: pointer;
}

.danger-outline-button,
.confirm-submit.is-danger {
    color: #df6938;
    box-shadow: inset 0 0 0 1px #8d4027;
}

.danger-outline-button i,
.confirm-submit.is-danger i {
    width: 6px;
    height: 6px;
    background: currentColor;
}

.profile-requests__head,
.profile-requests article {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.5fr) minmax(190px, 0.55fr);
    gap: 20px;
    padding: 18px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-requests__head {
    color: var(--ink3);
    font: 11px/1 var(--mono);
    letter-spacing: 0.14em;
}

.profile-requests article time,
.profile-requests article div {
    color: var(--ink2);
}

.profile-requests article p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.profile-requests article p i {
    width: 6px;
    height: 6px;
    background: var(--ink3);
}

.profile-requests article p.is-approved i {
    background: var(--vis);
}

.profile-requests article p.is-rejected i {
    background: #df6938;
}

.profile-requests__empty {
    padding: 36px 0;
    color: var(--ink3);
}

.profile-dateline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 40px clamp(32px, 5vw, 80px);
}

.profile-dateline__submit,
.profile-dateline__submit form,
.profile-dateline__mine {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-dateline__submit > header,
.profile-dateline__mine > header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    min-height: 30px;
    padding-bottom: 14px;
    box-shadow: inset 0 -1px 0 var(--line2);
}

.profile-dateline__submit h2,
.profile-dateline__mine h2 {
    margin: 0;
    color: var(--ink2);
    font: 400 12px/1 var(--mono);
    letter-spacing: 0.3em;
}

.profile-dateline__mine > header span {
    color: var(--ink3);
    font: 11px/1 var(--mono);
}

.profile-dateline__submit form .site-button {
    align-self: flex-start;
}

.profile-dateline__mine article {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 6px 20px;
    padding: 18px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-dateline__mine article > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.profile-dateline__mine article i {
    width: 9px;
    height: 9px;
    border: 1px solid var(--ink);
}

.profile-dateline__mine article.is-approved i {
    background: var(--ink);
}

.profile-dateline__mine article.is-rejected i {
    border-style: dashed;
}

.profile-dateline__mine article time {
    color: var(--ink3);
    font: 12px/1.8 var(--mono);
}

.profile-dateline__mine article p {
    grid-column: 2;
    margin: 0;
    white-space: pre-line;
}

.profile-dateline__empty {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 4px;
}

.profile-dateline__empty picture,
.profile-dateline__empty img {
    display: block;
    width: 100%;
}

.profile-dateline__empty p {
    margin: 0;
    font-size: 16px;
}

.milestone-reminder {
    position: fixed;
    z-index: 140;
    inset: 0;
    display: grid;
    overflow: hidden;
    padding: 24px;
    place-items: center;
    background: #000;
    color: #edeae3;
}

.milestone-reminder::before,
.milestone-reminder::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(76vw, 780px);
    height: min(76vw, 780px);
    border: 1px solid rgba(255, 232, 198, 0.2);
    box-shadow: 0 0 70px rgba(255, 213, 160, 0.12), inset 0 0 70px rgba(255, 213, 160, 0.08);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(18deg) scale(0.6);
}

.milestone-reminder::after {
    width: min(54vw, 560px);
    height: min(54vw, 560px);
    border-style: dashed;
    transform: translate(-50%, -50%) rotate(-18deg) scale(0.6);
}

.milestone-reminder.is-visible::before,
.milestone-reminder.is-visible::after {
    animation: milestone-ribbon 2.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.milestone-reminder > button {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: clamp(16px, 3.4vw, 48px);
    min-height: 44px;
    padding: 0 18px;
    background: none;
    box-shadow: inset 0 0 0 1px rgba(237, 234, 227, 0.26);
    color: #a8a49b;
    font: 12px/1 var(--mono);
    letter-spacing: 0.24em;
    cursor: pointer;
}

.milestone-reminder > div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 26px;
    max-width: 720px;
    text-align: center;
}

.milestone-reminder figure {
    position: relative;
    width: min(220px, 52vw);
    height: min(220px, 52vw);
    margin: 0;
}

.milestone-reminder figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.milestone-reminder figure img:last-child {
    opacity: 0;
    transform: scale(0.94);
}

.milestone-reminder.is-visible figure img:first-child {
    animation: milestone-off 1.2s 1.2s both;
}

.milestone-reminder.is-visible figure img:last-child {
    animation: milestone-on 1.5s 1.2s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.milestone-reminder section {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(14px);
}

.milestone-reminder.is-visible section {
    animation: milestone-copy 1s 2.4s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.milestone-reminder section > span {
    color: #a8a49b;
    font: 12px/1 var(--mono);
    letter-spacing: 0.3em;
}

.milestone-reminder h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.15;
}

.milestone-reminder p {
    max-width: 28em;
    margin: 0;
    color: #a8a49b;
    font-size: 16px;
    line-height: 1.85;
}

.milestone-reminder a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 10px;
    padding: 0 34px;
    background: #edeae3;
    color: #000;
    font-size: 15px;
    letter-spacing: 0.14em;
}

.milestone-reminder.is-complete::before,
.milestone-reminder.is-complete::after,
.milestone-reminder.is-complete figure img,
.milestone-reminder.is-complete section {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
}

body.has-milestone-reminder {
    overflow: hidden;
}

@keyframes milestone-ribbon {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(18deg) scale(0.6); }
    48% { opacity: 1; }
    100% { opacity: 0.18; transform: translate(-50%, -50%) rotate(90deg) scale(1); }
}

@keyframes milestone-off {
    to { opacity: 0; }
}

@keyframes milestone-on {
    to { opacity: 1; transform: scale(1); }
}

@keyframes milestone-copy {
    to { opacity: 1; transform: translateY(0); }
}

.blog-owner-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 12px 14px 12px 16px;
    background: var(--bg2);
    box-shadow: inset 3px 0 0 var(--vis), inset 0 0 0 1px var(--line);
    color: var(--ink2);
    font-size: 13px;
}

.blog-owner-notice .site-button {
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
}

/* 十年证书 */
.certificate-page {
    overflow: clip;
    min-height: 100svh;
}

.certificate-live,
.certificate-ten-hero,
.certificate-left {
    min-height: 100svh;
    padding-top: clamp(138px, 15vw, 208px);
    padding-bottom: 80px;
}

.certificate-live > header,
.certificate-ten-hero > header,
.certificate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.certificate-live {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.certificate-live > header h1,
.certificate-ten-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(44px, 5vw, 76px);
    line-height: 1.08;
}

.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certificate-message {
    display: block;
    min-height: 24px;
    color: var(--ink2);
    font-size: 13px;
    text-align: right;
}

.certificate-book {
    position: relative;
    width: min(100%, calc((100svh - 140px) * 16 / 9));
    margin: 0 auto;
    container-type: inline-size;
}

.certificate-book > img,
.certificate-open > img {
    display: block;
    width: 100%;
}

.certificate-book figcaption {
    position: absolute;
    top: 25%;
    left: 37.5%;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 24.5%;
    gap: 1.5cqw;
    color: #d6d0c6;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}

.certificate-book figcaption span {
    font: 500 1.05cqw/1 var(--mono);
    letter-spacing: 0.42em;
}

.certificate-book figcaption i {
    width: 3.4cqw;
    height: 1px;
    background: rgba(214, 208, 198, 0.35);
}

.certificate-book figcaption strong {
    font-size: 2.5cqw;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.certificate-book > small {
    position: absolute;
    top: 73%;
    right: auto;
    bottom: auto;
    left: 37.5%;
    width: 24.5%;
    color: rgba(214, 208, 198, 0.6);
    font: 0.9cqw/1 var(--mono);
    letter-spacing: 0.14em;
    text-align: center;
}

.certificate-facts,
.certificate-progress,
.certificate-signature {
    width: min(950px, 100%);
    margin: 0 auto;
}

.certificate-facts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: var(--ink2);
    font: 12px/1.6 var(--mono);
}

.certificate-facts span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-facts i {
    width: 6px;
    height: 6px;
    background: var(--vis);
}

.certificate-progress {
    margin-top: 58px;
}

.certificate-progress > header,
.certificate-progress > footer {
    display: flex;
    justify-content: space-between;
    color: var(--ink2);
    font: 12px/1.5 var(--mono);
}

.certificate-progress > header b {
    color: var(--ink);
    font-weight: 400;
}

.certificate-progress > div {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 3px;
    margin: 13px 0;
}

.certificate-progress > div span {
    position: relative;
    height: 22px;
    border: 1px solid var(--line2);
}

.certificate-progress > div span i {
    position: absolute;
    inset: 2px auto 2px 2px;
    width: calc(var(--year-progress) - 4px);
    max-width: calc(100% - 4px);
    background: var(--ink);
}

.certificate-progress > div span b {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    color: var(--ink3);
    font: 9px/1 var(--mono);
    transform: translateX(-50%);
}

.certificate-progress > footer {
    margin-top: 34px;
}

.certificate-signature {
    display: flex;
    justify-content: space-between;
    margin-top: 72px;
    padding-top: 20px;
    box-shadow: inset 0 1px 0 var(--line);
    color: var(--ink3);
    font: 11px/1.5 var(--mono);
}

.certificate-ten-hero > header {
    align-items: flex-end;
}

.certificate-ten-hero > header > div:last-child {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 18px;
}

.certificate-ten-hero > header p {
    margin: 0;
    color: var(--ink2);
    font: 12px/1.5 var(--mono);
}

.ten-year-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--vis-text);
    font: 12px/1 var(--mono);
    letter-spacing: 0.14em;
}

.ten-year-tag img {
    width: 26px;
    height: 26px;
}

.certificate-open {
    position: relative;
    width: min(1160px, 92vw);
    margin: clamp(54px, 8vw, 106px) auto 0;
}

.certificate-open__left,
.certificate-open__right {
    position: absolute;
    top: 19%;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 32%;
    color: #302a25;
    text-align: center;
}

.certificate-open__left {
    left: 15%;
    gap: 12px;
}

.certificate-open__right {
    right: 14%;
    gap: 13px;
}

.certificate-open__left span {
    font: 12px/1 var(--mono);
    letter-spacing: 0.38em;
}

.certificate-open__left i,
.certificate-open__right i {
    width: 50%;
    height: 1px;
    background: rgba(48, 42, 37, 0.28);
}

.certificate-open__left strong,
.certificate-open__right strong {
    margin-top: 8px;
    font-size: clamp(21px, 2.3vw, 34px);
}

.certificate-open__left b,
.certificate-open__right b {
    font: 11px/1.5 var(--mono);
}

.certificate-open__left small,
.certificate-open__right small,
.certificate-open__right em {
    font: 9px/1.5 var(--mono);
    font-style: normal;
}

.certificate-open__right img {
    width: clamp(48px, 6vw, 78px);
    margin-top: 10px;
}

.certificate-story {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px 48px;
    padding-top: clamp(100px, 14vw, 200px);
    padding-bottom: clamp(100px, 14vw, 200px);
    box-shadow: inset 0 1px 0 var(--line);
}

.certificate-story > span {
    color: var(--vis-text);
    font: 12px/1 var(--mono);
    letter-spacing: 0.24em;
}

.certificate-story h2 {
    max-width: 19em;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.18;
}

.certificate-story p {
    grid-column: 2;
    margin: 0;
    color: var(--ink2);
    font-size: 18px;
}

.certificate-footer {
    padding-top: 40px;
    padding-bottom: 80px;
    box-shadow: inset 0 1px 0 var(--line);
}

.certificate-footer > span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink2);
    font: 11px/1 var(--mono);
}

.certificate-footer img {
    width: 34px;
}

.certificate-left {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
    align-items: center;
    gap: 48px;
}

.certificate-left .certificate-book {
    width: 100%;
    margin: 0;
    filter: grayscale(1);
    opacity: 0.62;
}

.certificate-left h1 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 72px);
}

.certificate-left p {
    margin: 0;
    color: var(--ink2);
}

/* 五年成就 */
.five-year-page {
    overflow: clip;
}

.five-year-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    min-height: 68svh;
    gap: 48px;
    padding-top: 120px;
    padding-bottom: 80px;
}

.five-year-hero h1 {
    margin: 0 0 22px;
    font-family: var(--display);
    font-size: clamp(46px, 5.4vw, 78px);
    line-height: 1.1;
}

.five-year-hero nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.five-year-hero nav a {
    padding: 8px 0;
    box-shadow: inset 0 -1px 0 var(--line2);
    color: var(--ink2);
    font-size: 13px;
}

.five-year-hero picture,
.five-year-hero img {
    display: block;
    width: 100%;
}

.five-year-block {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 40px 70px;
    padding-top: clamp(80px, 9vw, 130px);
    padding-bottom: clamp(80px, 9vw, 130px);
    box-shadow: inset 0 1px 0 var(--line);
}

.five-year-block > header span {
    color: var(--vis-text);
    font: 12px/1 var(--mono);
    letter-spacing: 0.25em;
}

.five-year-block > header h2 {
    margin: 20px 0 0;
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
}

.five-year-block > div > p {
    max-width: 54em;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.95;
}

.five-year-block blockquote {
    max-width: 50em;
    margin: 30px 0;
    padding: 26px 30px;
    background: var(--bg2);
    box-shadow: inset 3px 0 0 var(--vis);
    font-family: var(--display);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.55;
}

.five-year-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 54px;
}

.five-year-stats span {
    min-height: 130px;
    padding: 20px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink3);
    font-size: 12px;
}

.five-year-stats strong {
    display: block;
    margin-bottom: 16px;
    color: var(--ink);
    font: 500 clamp(30px, 3vw, 44px)/1 var(--mono);
}

.five-year-timeline {
    display: flex;
    flex-direction: column;
}

.five-year-timeline p {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    margin: 0;
    padding: 18px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.five-year-timeline time {
    color: var(--ink3);
    font: 11px/1.7 var(--mono);
}

.five-year-posts {
    display: flex;
    flex-direction: column;
}

.five-year-posts article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    padding: 24px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.five-year-posts h3 {
    margin: 0;
    font-size: 19px;
}

.five-year-posts p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ink2);
}

.five-year-block#future > div > h3 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 44px);
}

.five-year-wormhole {
    margin: 54px 0;
    padding: 30px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.five-year-wormhole h3,
.five-year-team h3 {
    margin: 0 0 10px;
}

.five-year-wormhole p {
    margin: 0;
    color: var(--ink2);
}

.five-year-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin-top: 26px;
}

.five-year-team article {
    min-height: 110px;
    padding: 20px 0;
    box-shadow: inset 0 1px 0 var(--line);
}

.five-year-team article > a,
.five-year-team article > span {
    font-size: 16px;
    font-weight: 600;
}

.five-year-team article p {
    margin: 6px 0 0;
    color: var(--ink3);
    font-size: 13px;
}

/* 搜索 */
.search-page {
    min-height: 82svh;
    padding-top: clamp(120px, 12vw, 168px);
    padding-bottom: 120px;
}

.search-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    align-items: end;
    gap: 50px;
    margin-bottom: 56px;
}

.search-header h1 {
    overflow-wrap: anywhere;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1.1;
}

.page-search {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 14px;
    box-shadow: inset 0 -1px 0 var(--line2);
}

.page-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
}

.search-group > header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 14px;
    box-shadow: inset 0 -1px 0 var(--line2);
}

.search-group > header h2 {
    margin: 0;
    color: var(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0.22em;
}

.search-group > header span {
    color: var(--ink3);
    font: 11px/1 var(--mono);
}

.search-group > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.3fr) 110px;
    align-items: center;
    gap: 22px;
    min-height: 68px;
    padding: 12px 8px;
    box-shadow: inset 0 -1px 0 var(--line);
    transition: padding 0.4s, background 0.4s;
}

.search-group > a:hover {
    padding-right: 16px;
    padding-left: 16px;
    background: var(--bg2);
}

.search-group > a strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-group > a span {
    color: var(--ink2);
    font-size: 13px;
}

.search-group > a time {
    color: var(--ink3);
    font: 11px/1 var(--mono);
    text-align: right;
}

.search-pagination {
    margin-top: 36px;
}

.search-pagination nav > div:first-child {
    display: none;
}

.search-pagination nav > div:last-child,
.search-pagination nav > div:last-child > div,
.search-pagination nav > div:last-child span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.search-pagination a,
.search-pagination span[aria-current] span {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.search-empty {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 52px;
    min-height: 420px;
}

.search-empty picture,
.search-empty img {
    display: block;
    width: 100%;
}

.search-empty p {
    margin: 0 0 28px;
    color: var(--ink2);
    font-size: 18px;
}

.search-empty div span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 邮件确认 */
.confirm-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 104px clamp(16px, 3.4vw, 48px) 56px;
}

.confirm-page > section {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    width: min(520px, 100%);
    gap: 20px;
}

.confirm-page h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.confirm-page p {
    margin: 0;
    color: var(--ink2);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.confirm-page p a {
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--line2);
}

.confirm-page form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirm-report-note {
    min-height: 70px;
    margin-top: 4px;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: inset 0 -1px 0 var(--line2);
    color: var(--ink);
    font: 16px/1.8 var(--sans);
    resize: vertical;
}

.confirm-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    gap: 10px;
    padding: 0 24px;
    background: var(--action);
    color: var(--action-ink);
    font-size: 16px;
    letter-spacing: 0.08em;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .category-grid,
    .profile-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-section > header {
        grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
    }

    .five-year-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 819px) {
    .category-field > p:not(.category-field__hover),
    .profile-overview > article > p,
    .profile-inline-status,
    .five-year-team article p {
        font-size: 15px;
    }

    .join-intro a,
    .profile-weight > p a,
    .profile-row__value a,
    .five-year-block p a {
        margin: -12px -8px;
        padding: 12px 8px;
    }

    .profile-edit-button,
    .profile-outline-button,
    .profile-quit > button,
    .five-year-hero nav a,
    .search-pagination a,
    .search-pagination span[aria-current] span {
        min-height: 44px;
    }

    .profile-row__content > a,
    .five-year-posts article > a,
    .five-year-wormhole h3 a,
    .five-year-team article > a {
        display: inline-flex;
        align-items: center;
        min-width: 44px;
        min-height: 44px;
    }

    .join-page {
        display: block;
    }

    .join-visual,
    :root[data-theme="light"] .join-visual {
        position: relative;
        top: 0;
        height: var(--m-joinh, 52svh);
        min-height: var(--m-0, 400px);
        margin: 0;
    }

    .join-visual > img {
        object-position: 50% 54%;
    }

    :root[data-theme="light"] .join-visual {
        height: calc(var(--m-joinh, 52svh) - 72px);
        min-height: 0;
        margin: 64px 8px 8px;
    }

    .join-content {
        gap: 34px;
        padding: 48px 16px 80px;
    }

    .join-intro h1 {
        max-width: none;
        font-size: 36px;
    }

    .category-choice small {
        position: static;
        display: block;
        width: auto;
        padding: 7px 4px 0;
        background: none;
        color: var(--ink3);
        transform: none;
    }

    .category-field__hover {
        display: none;
    }

    .join-result {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding-top: 112px;
        padding-bottom: 90px;
    }

    .profile-header,
    .profile-notice,
    .certificate-live > header,
    .certificate-ten-hero > header,
    .certificate-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-header {
        margin-bottom: 38px;
    }

    .profile-switcher {
        align-items: flex-start;
        width: 100%;
        flex-direction: column;
    }

    .profile-switcher select {
        width: 100%;
    }

    .profile-welcome,
    .profile-overview,
    .profile-section > header,
    .profile-row,
    .profile-dateline > form,
    .certificate-left,
    .five-year-hero,
    .five-year-block,
    .search-header,
    .search-empty {
        grid-template-columns: 1fr;
    }

    .profile-welcome {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .profile-notice.is-action form {
        flex: 1 1 auto;
        width: 100%;
        justify-content: flex-start;
    }

    .profile-overview > article {
        min-height: auto;
    }

    .anniversary-grid {
        overflow-x: auto;
        grid-template-columns: repeat(3, minmax(230px, 78vw));
        margin-right: -16px;
        padding-right: 16px;
        scroll-snap-type: x mandatory;
    }

    .anniversary-grid article {
        min-height: 280px;
        scroll-snap-align: start;
    }

    .profile-row {
        gap: 10px;
    }

    .profile-avatar {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .profile-avatar .profile-outline-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .profile-requests__head {
        display: none;
    }

    .profile-requests article {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
    }

    .profile-dateline {
        grid-template-columns: 1fr;
    }

    .profile-dateline__mine article {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .blog-owner-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .certificate-live,
    .certificate-ten-hero,
    .certificate-left {
        min-height: auto;
        padding-top: 112px;
    }

    .certificate-actions {
        width: 100%;
    }

    .certificate-actions .site-button {
        flex: 1 1 0;
        min-width: 0;
    }

    .certificate-message {
        text-align: left;
    }

    .certificate-book {
        width: 100%;
        margin-left: auto;
    }

    .certificate-book figcaption {
        gap: 9px;
    }

    .certificate-book figcaption span {
        font-size: 9px;
    }

    .certificate-progress > div span b {
        display: none;
    }

    .certificate-ten-hero > header > div:last-child {
        align-items: flex-start;
    }

    .certificate-open {
        width: 150vw;
        margin-left: -28vw;
    }

    .certificate-open__left span,
    .certificate-open__left b,
    .certificate-open__right b,
    .certificate-open__left small,
    .certificate-open__right small,
    .certificate-open__right em {
        font-size: 7px;
    }

    .certificate-story {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .certificate-story p {
        grid-column: 2;
        font-size: 15px;
    }

    .certificate-left .certificate-book {
        width: 118%;
        margin-left: -9%;
    }

    .five-year-hero {
        min-height: auto;
        gap: 56px;
        padding-top: 126px;
        padding-bottom: 72px;
    }

    .five-year-block {
        gap: 40px;
    }

    .five-year-timeline p {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .five-year-team {
        grid-template-columns: 1fr;
    }

    .search-page {
        padding-top: 128px;
    }

    .search-header {
        gap: 36px;
        margin-bottom: 52px;
    }

    .search-group > a {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 16px;
        padding: 15px 0;
    }

    .search-group > a strong {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .search-group > a time {
        text-align: right;
    }

    .search-empty {
        gap: 34px;
    }
}

@media (max-width: 520px) {
    .category-grid,
    .profile-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .join-captcha {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .profile-welcome {
        grid-template-columns: 1fr;
    }

    .profile-welcome img {
        width: 150px;
    }

    .profile-row__value {
        align-items: flex-start;
    }

    .profile-input-action,
    .five-year-stats {
        grid-template-columns: 1fr;
    }

    .profile-input-action button {
        margin-top: 8px;
    }

    .five-year-posts article {
        grid-template-columns: 1fr;
    }

    .five-year-posts article p {
        grid-column: auto;
    }

    .certificate-story h2 {
        font-size: 31px;
    }

    .certificate-footer .certificate-actions {
        width: 100%;
    }

    .search-empty div span {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .join-visual > canvas {
        display: none;
    }

    .milestone-reminder::before,
    .milestone-reminder::after {
        display: none;
    }

    .milestone-reminder figure img:first-child {
        display: none;
    }

    .milestone-reminder figure img:last-child,
    .milestone-reminder section {
        opacity: 1;
        transform: none;
    }
}
