/* 第 4 批 · 申请、个人中心、证书、五年成就、搜索与邮件确认 */
/* 身份句需要完整读到，不能沿用签名的单行省略。 */
.blog-detail-hero__copy > div:first-child > p.blog-detail-hero__intro { display: block; overflow: visible; white-space: normal; overflow-wrap: anywhere; -webkit-line-clamp: none; }

.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;
}

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

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

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

.v10-field input,
.v10-field textarea,
.site-dialog .v10-field select,
.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,
.site-dialog .v10-field select:focus,
.profile-switcher select:focus {
    box-shadow: inset 0 -1px 0 var(--ink);
}

.v10-field > em,
.category-field > em {
    min-height: 1.4em;
    color: var(--ink);
    font-size: 12px;
    font-style: normal;
}

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

/* 境外/自建邮箱失联风险提示（申请加入 + 改邮箱共用 _partials/email-overseas-hint）*/
.email-overseas-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink3);
}

.email-overseas-hint.is-warn {
    color: var(--ink);
}

.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,
.form-status.is-success,
[data-form-status].is-success {
    color: var(--ink);
}

/* 结果图标：成功绿勾、失败红叉、提醒琥珀三角，放在那句话前面；文字清空时图标一起消失 */
.form-status.is-success:not(:empty)::before,
[data-form-status].is-success:not(:empty)::before,
.profile-todo__done::before {
    --status-ic: var(--ic-ok);
    --status-color: var(--ok);
}

.form-status.is-error:not(:empty)::before,
[data-form-status].is-error:not(:empty)::before,
.v10-field > em:not(:empty)::before,
.category-field > em:not(:empty)::before {
    --status-ic: var(--ic-danger);
    --status-color: var(--danger);
}

.email-overseas-hint.is-warn::before,
.profile-inline-status.is-warning::before {
    --status-ic: var(--ic-warn);
    --status-color: var(--warn);
}

.form-status.is-success:not(:empty)::before,
[data-form-status].is-success:not(:empty)::before,
.profile-todo__done::before,
.form-status.is-error:not(:empty)::before,
[data-form-status].is-error:not(:empty)::before,
.v10-field > em:not(:empty)::before,
.category-field > em:not(:empty)::before,
.email-overseas-hint.is-warn::before,
.profile-inline-status.is-warning::before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.45em;
    vertical-align: -0.24em;
    background: var(--status-color);
    -webkit-mask: var(--status-ic) center / contain no-repeat;
    mask: var(--status-ic) center / contain no-repeat;
}

/* 申请加入 */
.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: var(--stage);
}

.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 var(--shade);
}

.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 {
    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;
}

.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:focus-within small {
    display: block;
}

@media (hover: hover) {
    .category-choice:hover 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-code em[data-error="altcha"]:empty {
    display: none;
}

.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%;
    background: var(--stage);
    border-radius: var(--r-sm);
    corner-shape: var(--corner);
}

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

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

/* 个人中心沿用的控件、荣誉卡与证书页返回入口 */
/* 荣誉证书板块：履约证书卡 + 五年回顾卡，风格对齐周年卡 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.honor-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.honor-card__tag {
    color: var(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
}
.honor-card h3 {
    margin: 4px 0 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
}
.honor-card p {
    margin: 0;
    color: var(--ink2);
    font-size: 15px;
    line-height: 1.8;
}
.honor-card .site-button {
    margin-top: 6px;
}
@media (max-width: 720px) {
    .honor-grid {
        grid-template-columns: 1fr;
    }
}

/* 证书页、五年回顾页的返回条：和成员详情页的返回入口同一位置（首屏第一行、避开固定顶栏），
   同一套 .page-back-link；后面紧跟的首屏不再自己留顶栏的高度 */
.page-back-bar {
    padding-top: 84px;
}

.page-back-bar + .certificate-live,
.page-back-bar + .certificate-ten-hero,
.page-back-bar + .certificate-left {
    padding-top: clamp(32px, 5vw, 72px);
}

.page-back-bar + .five-year-hero {
    padding-top: 24px;
}

@media (max-width: 720px) {
    .page-back-bar {
        padding-top: 72px;
    }
}


.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;
}

@media (hover: hover) {
    .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-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-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);
}

.danger-outline-button,
.confirm-submit.is-danger {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line2);
}

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

.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: var(--warn);
}

.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 p {
    margin: 0;
    color: var(--ink3);
    font: 12px/1.7 var(--mono);
}

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

.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;
}

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

.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;
}

/* 个人中心（REQ-45）：页头常驻 + 分区导航 + 五个分区。状态一律「形状 + 文字」，深浅主题、灰度下都分得清 */
.visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.profile-page {
    padding-top: clamp(130px, 13vw, 176px);
    padding-bottom: clamp(90px, 9vw, 140px);
}

/* 正文里的链接靠下划线认出能点；导航、按钮、整行可点的条目另有自己的样式 */
.profile-panels a:not(.site-button):not(.profile-outline-button):not(.profile-recent__item),
.profile-head__site a,
.profile-receipt a {
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--line2);
}

/* 状态方块：审核中空心、在约实心、整改虚线、离约点线；申请的结果换成图标——已生效绿勾、没通过红叉 */
.state-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.5;
}

.state-mark i {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border: 1px solid var(--ink);
}

.state-mark.is-solid i {
    background: var(--ink);
}

.state-mark.is-dashed i,
.state-mark.is-revoked i {
    border-style: dashed;
}

.state-mark.is-dotted i {
    border-style: dotted;
}

.state-mark.is-approved i,
.state-mark.is-rejected i {
    width: 16px;
    height: 16px;
    border: 0;
    background: var(--ok);
    -webkit-mask: var(--ic-ok) center / contain no-repeat;
    mask: var(--ic-ok) center / contain no-repeat;
}

.state-mark.is-rejected i {
    background: var(--danger);
    -webkit-mask-image: var(--ic-danger);
    mask-image: var(--ic-danger);
}

.state-mark.is-revoked,
.state-mark.is-dotted {
    color: var(--ink2);
}

/* 页头 */
.profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-head h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.profile-head__site {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 12px 0 0;
    font-size: 14px;
}

.profile-head__site a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.profile-head__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.profile-head__facts li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.profile-head__facts small,
.profile-head__visitor {
    color: var(--ink2);
    font-size: 13px;
}

.profile-head__visitor b {
    color: var(--ink);
    font-weight: 400;
}

.profile-head__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.profile-head__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-head__links form {
    margin: 0;
}

.profile-switcher {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink2);
    font-size: 13px;
}

.profile-switcher select {
    width: min(340px, 100%);
    padding: 0 34px 0 14px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line2);
    font-size: 14px;
}

html.is-switching-blog .site-search-progress {
    width: 92%;
}

/* 分区导航：电脑竖排吸顶，手机横排吸在顶栏下 */
.profile-layout {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
}

.profile-nav {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-page .profile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink2);
    box-shadow: inset 2px 0 0 var(--line);
    font-size: 15px;
    letter-spacing: 0;
}

.profile-page .profile-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--bg2);
    box-shadow: inset 2px 0 0 var(--ink);
}

.profile-nav b {
    min-width: 22px;
    padding: 1px 6px;
    background: var(--action);
    color: var(--action-ink);
    font: 500 12px/1.6 var(--mono);
    text-align: center;
}

@media (hover: hover) {
    .profile-page .profile-nav a:hover {
        color: var(--ink);
        box-shadow: inset 2px 0 0 var(--ink2);
    }
}

.profile-panels {
    min-width: 0;
}

/* 没有 JS 时五块全部展开成长页；有 JS 时只显示当前分区 */
.profile-panel {
    padding-bottom: 56px;
    scroll-margin-top: 108px;
}

.profile-page.is-tabbed .profile-panel:not(.is-active) {
    display: none;
}

.profile-panel__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.profile-panel__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.2;
}

.profile-panel__head h2 small {
    margin-left: 10px;
    color: var(--ink2);
    font: 14px/1 var(--mono);
}

.profile-panel__head p {
    max-width: 46em;
    margin: 0;
    color: var(--ink2);
    font-size: 15px;
    line-height: 1.8;
}

.profile-quota b {
    color: var(--ink);
    font: 500 16px/1 var(--mono);
}

.profile-readonly {
    padding: 14px 18px;
    background: var(--bg2);
    box-shadow: inset 3px 0 0 var(--ink3);
    color: var(--ink) !important;
}

.profile-block-title {
    margin: 0 0 14px;
    color: var(--ink2);
    font: 500 14px/1.4 var(--sans);
    letter-spacing: 0;
}

.profile-empty {
    margin: 0;
    padding: 22px 0;
    color: var(--ink2);
}

.is-highlighted {
    outline: 2px solid var(--vis);
    outline-offset: 4px;
    transition: outline-color 0.6s;
}

/* 概览：需要你处理 */
.profile-todos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.profile-todos.is-info {
    gap: 6px;
}

.profile-todo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding: 18px 20px;
    background: var(--bg2);
    box-shadow: inset 3px 0 0 var(--vis), inset 0 0 0 1px var(--line);
}

.profile-todo.is-info {
    padding: 14px 20px;
    background: transparent;
    box-shadow: inset 3px 0 0 var(--line2), inset 0 0 0 1px var(--line);
}

.profile-todo__body {
    min-width: 0;
    flex: 1 1 auto;
}

.profile-todo__body h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.profile-todo__body p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.75;
}

.profile-todo.is-info .profile-todo__body p {
    color: var(--ink2);
}

.profile-todo__body blockquote {
    margin: 10px 0 0;
    padding-left: 14px;
    box-shadow: inset 1px 0 0 var(--line2);
    color: var(--ink2);
}

.profile-todo__hint {
    margin-top: 8px !important;
    color: var(--ink2) !important;
    font-size: 14px !important;
}

.profile-todo__actions,
.profile-todo__form {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.profile-todo__actions form,
.profile-todo__form {
    margin: 0;
}

.profile-todo__form {
    flex: 0 1 380px;
    align-items: flex-end;
}

.profile-todo__form .v10-field {
    flex: 1 1 100%;
}

.profile-todo .form-status {
    flex-basis: 100%;
    text-align: right;
}

/* 几件事同时要办时只有最急的那件用实心主按钮，其余用描边：橙色只做点缀，主次一眼分得出 */
.profile-todos .profile-todo ~ .profile-todo .site-button--solid {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line2);
    color: var(--ink);
}

.profile-head__links .site-text-button {
    color: var(--ink);
}

.profile-todo__locked,
.profile-todo__done {
    margin: 0;
    color: var(--ink2);
    font-size: 14px;
}

.profile-todo__done {
    color: var(--ink);
}

/* 概览：最近的申请 */
.profile-recent {
    margin-bottom: 30px;
}

.profile-recent > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.profile-recent > header .profile-block-title {
    margin-bottom: 8px;
}

.profile-page .profile-recent__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 22px;
    min-height: 48px;
    padding: 10px 0;
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-recent__item > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-recent__item time {
    color: var(--ink2);
    font: 13px/1.5 var(--mono);
}

@media (hover: hover) {
    .profile-page .profile-recent__item:hover {
        background: var(--bg2);
    }
}

/* 概览：网站大截图，左图右状态与「更新网站截图」；共用资料页那一行的类，这里只改尺寸与版式 */
.profile-site.profile-screenshot {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 0;
    margin-bottom: 30px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-site .profile-screenshot__thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--bg);
}

.profile-site .profile-screenshot__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 2.6vw, 36px);
}

.profile-site__label {
    margin-bottom: 14px;
    color: var(--ink2);
    font-size: 14px;
    letter-spacing: 0;
}

.profile-site .profile-screenshot__body > p {
    color: var(--ink2);
    font-size: 14.5px;
    line-height: 1.8;
}

/* 概览：数据 */
.profile-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 26px;
}

.profile-overview > article {
    padding: clamp(24px, 2.6vw, 36px);
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-overview > article > span {
    color: var(--ink2);
    font-size: 14px;
    letter-spacing: 0;
}

.profile-wormhole > strong {
    display: block;
    margin: 18px 0 14px;
    font: 500 clamp(56px, 6vw, 88px)/1 var(--mono);
    letter-spacing: 0;
}

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

.profile-records {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 22px;
}

.profile-records div {
    padding: 14px 16px;
    box-shadow: inset 0 0 0 1px var(--line);
}

.profile-records dt {
    color: var(--ink2);
    font-size: 13px;
}

.profile-records dd {
    margin: 6px 0 0;
    font: 15px/1.5 var(--mono);
}

.profile-records dd small {
    display: block;
    margin-top: 6px;
    color: var(--ink2);
    font: 12.5px/1.6 var(--sans);
}

.profile-next-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin: 0;
    color: var(--ink2);
}

/* 资料 */
.profile-group {
    margin-bottom: 34px;
}

.profile-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.26fr) minmax(0, 1fr);
    gap: 24px;
    padding: 18px 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.profile-group > .profile-block-title + .profile-row {
    box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.profile-row__label {
    padding-top: 6px;
    color: var(--ink2);
    font-size: 14px;
}

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

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

.profile-row__value p {
    margin: 0;
    font-size: 15.5px;
}

.profile-row__note {
    margin: 8px 0 0;
    color: var(--ink2);
    font-size: 14px;
    line-height: 1.7;
}

.profile-row__note a {
    margin-left: 6px;
}

.profile-page .profile-edit-button {
    flex: 0 0 auto;
    min-height: 44px;
    color: var(--ink);
}

/* 邮件深链直达表单时让出吸顶顶栏与分区栏，标题不被盖住 */
.profile-inline-form,
.profile-todo,
.profile-row,
.profile-requests article {
    scroll-margin-top: 120px;
}

.profile-inline-form__review {
    margin: 0;
    padding: 10px 14px;
    background: var(--bg3);
    color: var(--ink2);
    font-size: 14px;
    line-height: 1.7;
}

.profile-inline-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.profile-inline-form__actions .site-text-button {
    min-height: 44px;
}

.form-status__action {
    margin-left: 4px;
    color: var(--ink) !important;
}

.profile-switch-form b {
    margin-left: 4px;
    color: var(--ink2);
    font-weight: 400;
    font-size: 13px;
}

.profile-switch-form label {
    min-height: 44px;
}

.profile-danger {
    margin-top: 10px;
    padding-top: 26px;
}

.profile-danger__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-page .danger-outline-button {
    min-height: 44px;
}

/* 我的申请 */
.profile-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.profile-filter button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line2);
    color: var(--ink2);
    font-size: 14px;
    cursor: pointer;
}

.profile-filter button[aria-pressed="true"] {
    background: var(--ink);
    box-shadow: none;
    color: var(--bg);
}

.profile-requests__head {
    color: var(--ink2);
    font-size: 13px;
    letter-spacing: 0;
}

.profile-requests article div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.profile-requests__more {
    margin-top: 18px;
}

/* 大事记 */
.profile-datelines > .site-button {
    margin-bottom: 8px;
}

.profile-dateline-list {
    margin-top: 22px;
}

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

.profile-dateline-list time {
    color: var(--ink2);
    font: 13px/1.7 var(--mono);
}

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

/* 荣誉 */
.profile-anniversaries {
    margin-top: 40px;
}

.profile-anniversaries > p {
    margin: 0 0 18px;
    color: var(--ink2);
}

/* 已点亮徽章下的「重新播放」：在证书链接下方另起一行 */
.anniversary-grid .anniversary-replay {
    display: flex;
    width: fit-content;
    margin-top: 14px;
}

.anniversary-grid h4 {
    margin: 22px 0 6px;
    font-size: 18px;
}

/* 确认框与回执条 */
.site-dialog {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    border: 0;
    background: var(--bg);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line2), 0 36px 100px var(--scrim);
}

.site-dialog::backdrop {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
}

.site-dialog form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px;
}

.site-dialog h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.3;
}

.site-dialog p,
.site-dialog ul {
    margin: 0;
    color: var(--ink2);
    line-height: 1.8;
}

.site-dialog ul {
    padding-left: 18px;
    color: var(--ink);
}

.site-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
    margin-top: 6px;
}

.site-dialog__actions .site-text-button {
    min-height: 44px;
}

.profile-receipt {
    position: fixed;
    z-index: 120;
    top: 92px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(620px, calc(100% - 32px));
    padding: 14px 14px 14px 18px;
    background: var(--glass-bg);
    box-shadow: inset 0 0 0 1px var(--line2);
    color: var(--ink);
    transform: translateX(-50%);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}

.profile-receipt[hidden] {
    display: none;
}

.profile-receipt {
    box-shadow: inset 3px 0 0 var(--ok), inset 0 0 0 1px var(--line2);
}

.profile-receipt.is-error {
    box-shadow: inset 3px 0 0 var(--danger), inset 0 0 0 1px var(--line2);
}

.profile-receipt__ic {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: var(--ok);
    -webkit-mask: var(--ic-ok) center / contain no-repeat;
    mask: var(--ic-ok) center / contain no-repeat;
}

.profile-receipt.is-error .profile-receipt__ic {
    background: var(--danger);
    -webkit-mask-image: var(--ic-danger);
    mask-image: var(--ic-danger);
}

.profile-receipt p {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
}

.profile-page .profile-receipt a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.profile-receipt button {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink2);
    cursor: pointer;
}

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

    .profile-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-head__actions {
        align-items: flex-start;
        width: 100%;
    }

    /* 窄了右栏文字会把卡片撑高，截图被左右裁掉；改成上图下文 */
    .profile-site.profile-screenshot {
        grid-template-columns: 1fr;
    }

    .profile-site .profile-screenshot__thumb {
        max-width: none;
        height: auto;
    }
}

@media (max-width: 899px) {
    .profile-page {
        padding-top: 104px;
    }

    .profile-head {
        margin-bottom: 0;
        padding-bottom: 20px;
        box-shadow: none;
    }

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

    .profile-head__links {
        justify-content: space-between;
        width: 100%;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-nav {
        z-index: 20;
        top: var(--mobile-header-height, 64px);
        flex-direction: row;
        margin: 0 calc(-1 * var(--mobile-page-x, 16px));
        padding: 0 var(--mobile-page-x, 16px);
        background: var(--bg);
        box-shadow: inset 0 -1px 0 var(--line);
    }

    .profile-page .profile-nav a {
        flex: 1 1 0;
        justify-content: center;
        gap: 4px;
        padding: 0 2px;
        box-shadow: inset 0 -2px 0 transparent;
        font-size: 14px;
        letter-spacing: 0;
    }

    .profile-page .profile-nav a[aria-current="page"] {
        background: transparent;
        box-shadow: inset 0 -2px 0 var(--ink);
    }

    .profile-nav b {
        min-width: 18px;
        padding: 0 4px;
        font-size: 11px;
    }

    .profile-panel {
        scroll-margin-top: 120px;
    }

    .profile-todo,
    .profile-row__value {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-todo__actions,
    .profile-todo__form {
        flex: 1 1 auto;
        justify-content: flex-start;
        width: 100%;
    }

    .profile-todo__actions .site-button,
    .profile-todo__actions form,
    .profile-todo__actions .profile-outline-button,
    .profile-todo__actions .danger-outline-button {
        flex: 1 1 100%;
    }

    .profile-todo__actions form .site-button {
        width: 100%;
    }

    .profile-todo .form-status {
        text-align: left;
    }

    .profile-page .profile-recent__item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .profile-recent__item time {
        display: none;
    }

    .profile-overview,
    .profile-row {
        grid-template-columns: 1fr;
    }

    .profile-row {
        gap: 6px;
    }

    .profile-row__label {
        padding-top: 0;
    }

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

    .profile-dateline-list p {
        grid-column: auto;
    }

    .profile-receipt {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

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

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

    .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: 20px 0;
    }

    .profile-outline-button {
        min-height: 44px;
    }
}

@media (max-width: 520px) {
    .profile-records {
        grid-template-columns: 1fr;
    }

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

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


.milestone-reminder {
    position: fixed;
    z-index: 140;
    inset: 0;
    display: grid;
    overflow: hidden;
    padding: 24px;
    place-items: center;
    background: var(--bg);
    color: var(--ink);
    touch-action: none;
}

/* 点亮仪式的粒子层（milestone.js）：压在徽章之上、文字之下——年轮从徽章脚下绕过时盖住徽章，文字永远在最上面 */
.milestone-reminder > canvas {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.milestone-reminder > button {
    position: absolute;
    z-index: 4;
    top: 24px;
    right: clamp(16px, 3.4vw, 48px);
    min-height: 44px;
    padding: 0 18px;
    background: none;
    box-shadow: inset 0 0 0 1px var(--line2);
    color: var(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
    cursor: pointer;
}

/* 声音开关放左上角，和右上角的「关闭」对称，不抢主按钮 */
.milestone-reminder > button[data-milestone-sound] {
    right: auto;
    left: clamp(16px, 3.4vw, 48px);
}

.milestone-reminder > div {
    position: relative;
    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;
    z-index: 1;
}

/* 徽章背后的光晕：点亮那一刻绽开，之后留一层淡光 */
.milestone-reminder figure::before {
    position: absolute;
    inset: -34%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 228, 192, 0.36), rgba(255, 210, 156, 0.1) 58%, rgba(255, 210, 156, 0));
    content: "";
    opacity: 0;
}

.milestone-reminder.is-visible figure::before {
    animation: milestone-halo 2.6s 2.85s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.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 0.6s 2.05s both;
}

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

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

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

.milestone-reminder section > span {
    color: var(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
}

.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: var(--ink2);
    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: var(--ink);
    color: var(--bg);
    font-size: 15px;
    letter-spacing: 0;
}

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

@keyframes milestone-halo {
    0% { opacity: 0; transform: scale(0.55); }
    16% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 0.42; transform: 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;
}

/* 危险操作条复用博主提示条的布局，窄屏允许文字换行而按钮保持可点。 */
.blog-admin-actions {
    flex-wrap: wrap;
}

.blog-admin-actions .danger-outline-button {
    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: light-dark(var(--bg), var(--ink));
    text-align: center;
    text-shadow: 0 1px 2px var(--bg);
}

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

.certificate-book figcaption i {
    width: 3.4cqw;
    height: 1px;
    background: var(--line2);
}

.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: var(--ink3);
    font: 0.9cqw/1 var(--mono);
    letter-spacing: 0;
    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(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
}

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

.certificate-open {
    position: relative;
    width: min(1160px, 92vw);
    margin: clamp(54px, 8vw, 106px) auto 0;
    /* 卡内字号随卡宽缩放（cqw）：同一张卡放在证书页或个人中心弹窗里，「保存图片」量出来的比例都一样 */
    container-type: inline-size;
}

.certificate-open__left,
.certificate-open__right {
    position: absolute;
    top: 19%;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 32%;
    color: light-dark(var(--ink), var(--bg));
    text-align: center;
}

.certificate-open__left {
    left: 15%;
    gap: 1.03cqw;
}

.certificate-open__right {
    right: 14%;
    gap: 1.12cqw;
}

.certificate-open__left span {
    font: max(7px, 1.03cqw)/1 var(--mono);
    letter-spacing: 0;
}

.certificate-open__left i,
.certificate-open__right i {
    width: 50%;
    height: 1px;
    background: var(--line2);
}

.certificate-open__left strong,
.certificate-open__right strong {
    margin-top: 0.7cqw;
    font-size: max(16px, 2.85cqw);
}

.certificate-open__left b,
.certificate-open__right b {
    font: max(7px, 0.95cqw)/1.5 var(--mono);
}

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

.certificate-open__right img {
    width: 6.7cqw;
    margin-top: 0.86cqw;
}

.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(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
}

.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;
    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);
}

/* 个人中心证书弹窗：和证书页同一个证书主体（_certificate），这里只收掉整页用的高度与留白 */
.certificate-dialog {
    width: min(1040px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    overflow: auto;
}

.certificate-dialog > section {
    min-height: 0;
    padding: clamp(24px, 4vw, 44px);
}

.certificate-dialog .certificate-live {
    gap: 24px;
}

.certificate-dialog .certificate-live > header h2,
.certificate-dialog .certificate-ten-hero h2,
.certificate-dialog .certificate-left h2 {
    margin: 0;
    padding-right: 44px;
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.certificate-dialog .certificate-left {
    gap: 28px;
}

.certificate-dialog .certificate-left h2 {
    margin-bottom: 12px;
}

.certificate-dialog .certificate-book,
.certificate-dialog .certificate-open {
    width: 100%;
    margin: 0;
}

.certificate-dialog .certificate-open {
    margin-top: 20px;
}

.certificate-dialog .certificate-progress {
    margin-top: 8px;
}

.certificate-dialog__close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink2);
    cursor: pointer;
}

.certificate-dialog__close:hover {
    color: var(--ink);
}

/* 五年回顾：版式照关于页、虫洞规则页（DD 2026-10-07「参考关于页面、虫洞规则」）。
   首屏 rules-hero、吸顶目录 doc-grid、章节 doc-sec、配图 .ill、维护者 .people、时间线 rule-history 都是 site-v10.css 的现成组件，
   这里只补本页独有的：首屏的分栏与图比例、五年的数字格、文章摘要 */
.five-year-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
}

/* 眉题与个人中心荣誉卡同一叫法，看得出这页是从「荣誉」进来的 */
.five-year-hero__eyebrow {
    color: var(--ink2);
    font: 12px/1 var(--mono);
    letter-spacing: 0;
}

/* 博客名可能很长（「一稿计划 | Last one」），首屏标题要能折行 */
.five-year-hero .rules-hero__copy h1 {
    white-space: normal;
}

/* I-41 原图 16:9，十格年度条在正中；不裁成规则页的 21:9 */
.five-year-hero.rules-hero .ill img {
    aspect-ratio: auto;
}

/* 五年的数字：与关于页「三步加入」同一种 1px 细线格；数字用正文色，橙在本站只给按钮与序号 */
.five-year-stats {
    display: grid;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    box-shadow: inset 0 0 0 1px var(--line);
    list-style: none;
}

.five-year-stats li {
    display: flex;
    min-width: 0;
    padding: 20px 24px 22px;
    flex-direction: column;
    gap: 6px;
    background: var(--bg2);
}

.five-year-stats b {
    font-family: var(--display);
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.1;
}

.five-year-stats span {
    color: var(--ink3);
    font-size: 14px;
    line-height: 1.6;
}

.five-year-posts span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.five-year-posts a {
    align-self: flex-start;
    font-size: 17px;
}

.five-year-posts small {
    color: var(--ink2);
    font-size: 15px;
    line-height: 1.8;
}

.five-year-lead {
    font-family: var(--display);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.5;
}

.five-year-sub {
    padding-top: clamp(24px, 3vw, 40px);
    font-size: 19px;
}

.doc-sec .five-year-end {
    margin-top: clamp(24px, 3vw, 40px);
}

/* 搜索 */
.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;
}

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

.search-group.search-group--blogs > a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto 110px;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 12px 8px;
    box-shadow: inset 0 -1px 0 var(--line);
}

.search-blog__shot {
    display: block;
    overflow: hidden;
    width: 96px;
    height: 60px;
    background: var(--bg2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.search-blog__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.search-blog__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

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

.search-blog__body small {
    color: var(--ink3);
    font: 12px/1.4 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;
}

@media (hover: hover) {
    .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-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);
}

/* 侵权警告页的「给 AI 助手」与法律依据：小标题贴着自己的正文，段与段之间由外层 20px 间距再加一点拉开 */
.confirm-page__part {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.confirm-page__part > * {
    margin: 0;
}

.confirm-page__part h2 {
    font-size: 20px;
    line-height: 1.4;
}

.confirm-page__legal h3 {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.confirm-page__legal ul {
    padding-left: 1.2em;
    color: var(--ink2);
    font-size: 15px;
    line-height: 1.85;
}

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

/* 检查流程保持居中；无脚本时声明在其下展开，不把法律正文挤进窄列。 */
.member-check-page {
    flex-direction: column;
    gap: 48px;
}

.member-check-policy {
    display: grid;
    gap: 24px;
    width: min(860px, 100%);
    text-align: left;
}

.member-check-policy h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
}

.member-check-policy > h2 {
    font-size: clamp(24px, 3vw, 32px);
}

.member-check-policy h3 {
    margin: 20px 0 8px;
    font-size: 16px;
    line-height: 1.6;
}

.member-check-policy ul {
    padding-left: 1.2em;
    color: var(--ink2);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* head 中同步加类，首帧即隐藏；无脚本不加类，声明照常可见。 */
html.member-check-js .member-check-policy {
    display: none;
}

.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;
    cursor: pointer;
}

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

}

@media (max-width: 819px) {
    .category-field > p:not(.category-field__hover) {
        font-size: 15px;
    }

    .join-intro a {
        margin: -12px -8px;
        padding: 12px 8px;
    }

    .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;
    }



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







    .certificate-left,
    .search-header,
    .search-empty {
        grid-template-columns: 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-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%;
    }

    /* 上面给首屏定的两栏在本文件里、晚于 site-v10.css 的手机单栏规则，要在这里再收成一栏 */
    .five-year-hero {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

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

.search-group.search-group--blogs > a {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 4px 12px;
    }

    .search-blog__shot {
        grid-row: 1 / 3;
        width: 72px;
        height: 48px;
    }

    .search-group.search-group--blogs > a .topic-label,
    .search-group.search-group--blogs > a time {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

        .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;
    }







    .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 figure::before {
        opacity: 0.42;
    }

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

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

/* REQ-43 个人中心 Telegram 一行：已绑定用实心小方块（站里实心 = 已生效），哀悼日灰度下靠形状区分 */
.profile-tg-bound {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-tg-bound i {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    background: var(--ink);
}


/* 年度分享卡只改变共用证书主体的留白与尺寸，不另画证书。 */
.certificate-card-render {
    width: 1200px;
    height: 630px;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
}
.certificate-card-render .certificate-live,
.certificate-card-render .certificate-ten-hero {
    min-height: 0;
    height: 630px;
    padding: 24px 56px;
    box-sizing: border-box;
}
.certificate-card-render .certificate-live {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}
.certificate-card-render .certificate-book { width: 520px; }
.certificate-card-render .certificate-card-details { min-width: 0; }
.certificate-card-render .certificate-card-label {
    margin: 0 0 16px;
    color: var(--ink2);
    font: 18px/1.5 var(--mono);
    letter-spacing: 0;
}
.certificate-card-render .certificate-card-name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font: 700 56px/1.15 var(--sans);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.certificate-card-render .certificate-card-host {
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--ink2);
    font: 22px/1.5 var(--mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.certificate-card-render .certificate-card-year { margin: 16px 0 0; font-size: 32px; }
.certificate-card-render .certificate-facts { display: none; }
.certificate-card-render .certificate-progress { margin-top: 24px; }
.certificate-card-render .certificate-progress > header,
.certificate-card-render .certificate-progress > footer { font-size: 14px; }
.certificate-card-render .certificate-progress > div span b { font-size: 14px; }
.certificate-card-render .certificate-signature {
    margin-top: 24px;
    padding-top: 16px;
    color: var(--ink2);
    font-size: 16px;
}
.certificate-card-render .certificate-open { width: 1088px; margin: -15px auto 0; }
.anniversary-grid .anniversary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.anniversary-grid .anniversary-actions .anniversary-replay { margin-top: 0; }
