.friend-hero {
    margin-top: 68px;
    padding: 42px 0;
    border-bottom: 1px solid var(--blog-line);
    background: linear-gradient(rgba(40, 92, 168, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 92, 168, .035) 1px, transparent 1px), linear-gradient(180deg, #f7f9fd, #fff);
    background-size: 36px 36px, 36px 36px, auto;
}
.friend-shell, .pg-index .friend-wrapper { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.friend-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.friend-hero-copy { flex: 1; min-width: 0; }
.friend-hero h1 { margin: 0 0 12px; color: var(--blog-ink); font-size: clamp(36px, 4vw, 52px); line-height: 1.15; letter-spacing: -.05em; }
.friend-hero p { margin: 0; color: var(--blog-muted); font-size: 15px; line-height: 1.8; }
.friend-hero-action { display: inline-flex; align-items: center; gap: 20px; margin-top: 23px; padding: 12px 17px; border-radius: 8px; background: var(--blog-brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.friend-hero-action:hover { background: var(--blog-brand-dark); color: #fff; transform: translateY(-2px); }
.friend-hero-action span { color: #f4b27e; font-size: 17px; line-height: 1; }
.friend-hero-art { position: relative; flex: none; width: 360px; height: 226px; }
.friend-note-back { position: absolute; inset: 7px 12px 17px 17px; padding: 14px 18px; border: 1px solid #c5d4e8; border-radius: 14px; background: #e4edf8; transform: rotate(-6deg); }
.friend-note { position: absolute; inset: 17px 6px 15px 16px; padding: 19px 22px; box-sizing: border-box; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -16px rgba(30, 58, 96, .28); transform: rotate(2deg); }
.friend-note-top { display: flex; justify-content: flex-end; align-items: center; }
.friend-note-star { color: #4779b5; font: 25px/1 sans-serif; }
.friend-note-profile { display: flex; align-items: center; gap: 15px; margin: 14px 0 20px; }
.friend-note-profile > img { flex: none; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #e8eff8; box-shadow: 0 0 0 1px #dce6f2; }
.friend-note-profile strong { color: #243c5c; font-size: 18px; font-weight: 600; line-height: 1.65; letter-spacing: .5px; }
.friend-note-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed #dce4ee; }
.friend-note-bottom > span { color: #7a889a; font-size: 10px; white-space: nowrap; }
.friend-note-avatars { display: flex; padding-left: 5px; }
.friend-note-avatars > span { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 26px; height: 26px; margin-left: -5px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #e8eef7; color: #557399; font-size: 10px; }
.friend-note-avatars img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.friend-note-avatars img[hidden] { display: none; }
.friend-note-label { position: absolute; right: -5px; bottom: -2px; display: flex; align-items: center; gap: 20px; padding: 9px 14px; border: 1px solid #e5d9bf; border-radius: 5px; background: #fff5de; color: #7e6944; box-shadow: 0 4px 10px rgba(83, 67, 37, .06); font-size: 11px; transform: rotate(-5deg); }
.friend-note-label > span { font-size: 16px; }
.friend-site-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.pg-index .friend-wrapper { flex: 1; padding: 44px 0 80px; }
.friend-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.friend-section-heading h2 { margin: 0; color: var(--blog-ink); font-size: 25px; letter-spacing: -.03em; }
.friend-section-heading p { margin: 0; color: var(--blog-muted); font-size: 13px; }
.pg-index .friend-wrapper .link-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 60px; padding: 0; }
.pg-index .friend-wrapper .link-list .item { width: auto; height: 76px; min-height: 0; border: 1px solid var(--blog-line); border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(39, 65, 99, .03); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pg-index .friend-wrapper .link-list .item:hover { border-color: #afc3df; box-shadow: 0 12px 26px rgba(39, 65, 99, .08); transform: translateY(-2px); }
.pg-index .friend-wrapper .link-list .item .link { position: relative; box-sizing: border-box; height: 100%; min-height: 0; padding: 12px 14px; text-decoration: none; }
.pg-index .friend-wrapper .link-list .item .link .friend-card-avatar { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin-right: 12px; overflow: hidden; border-radius: 8px; background: #e8eff8; color: #426a9f; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.pg-index .friend-wrapper .link-list .item .link .friend-card-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: inherit; object-fit: cover; background: transparent; }
.pg-index .friend-wrapper .link-list .item .link .friend-card-avatar img[hidden] { display: none; }
.pg-index .friend-wrapper .des { min-width: 0; }
.pg-index .friend-wrapper .des-title { margin-bottom: 5px; color: var(--blog-ink); font-size: 15px; font-weight: 700; }
.pg-index .friend-wrapper .des-info { color: var(--blog-muted); font-size: 12px; line-height: 1.5; }
.friend-card-arrow { position: absolute; top: 11px; right: 12px; color: var(--blog-brand); font-size: 16px; opacity: 0; transform: translate(-3px, 3px); transition: opacity .2s, transform .2s; }
.pg-index .friend-wrapper .link-list .item:hover .friend-card-arrow, .pg-index .friend-wrapper .link-list .item:focus-within .friend-card-arrow { opacity: 1; transform: translate(0, 0); }
.pg-index .friend-wrapper .link-list .item:focus-within { border-color: var(--blog-brand); box-shadow: 0 0 0 3px rgba(40, 92, 168, .14); }
.friend-application { overflow: hidden; border: 1px solid var(--blog-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(39, 65, 99, .055); scroll-margin-top: 92px; }
.friend-application-content { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .9fr); }
.friend-application-main { min-width: 0; padding: 38px 42px 34px; }
.friend-application-heading { margin-bottom: 29px; }
.friend-application-heading h2 { margin: 0; color: var(--blog-ink); font-size: 27px; letter-spacing: -.04em; }
.friend-application-heading p { margin: 8px 0 0; color: var(--blog-muted); font-size: 13px; line-height: 1.65; }
.friend-application-guide { margin-top: 32px; padding: 30px 34px 32px; border: 1px solid var(--blog-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(39, 65, 99, .035); }
.friend-application-guide h2 { margin: 0 0 22px; color: var(--blog-ink); font-size: 24px; letter-spacing: -.03em; }
.friend-guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.friend-guide-item { min-width: 0; padding-top: 14px; border-top: 2px solid #d9e5f4; }
.friend-guide-number { display: block; margin-bottom: 9px; color: #6f95c6; font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.friend-application-guide p { margin: 0; color: var(--blog-muted); font-size: 14px; line-height: 1.8; }
.friend-application-guide strong { display: block; margin-bottom: 6px; color: var(--blog-ink); font-size: 16px; }
.friend-guide-highlight { padding: 2px 5px; border-radius: 4px; background: #eaf2ff; color: #285ca8; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.friend-application-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 17px; }
.friend-application-fields label { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: var(--blog-ink); font-size: 13px; font-weight: 700; }
.friend-application-note { grid-column: 1 / -1; }
.friend-application input:not([type="color"]) { box-sizing: border-box; width: 100%; height: 48px; padding: 0 15px; border: 1px solid #d4dfed; border-radius: 9px; outline: none; background: #fafcff; color: var(--blog-ink); font-size: 13px; font-weight: 400; transition: border-color .2s, box-shadow .2s, background .2s; }
.friend-application textarea { box-sizing: border-box; width: 100%; min-height: 74px; padding: 12px 15px; resize: vertical; border: 1px solid #d4dfed; border-radius: 9px; outline: none; background: #fafcff; color: var(--blog-ink); font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.6; transition: border-color .2s, box-shadow .2s, background .2s; }
.friend-application textarea:hover { border-color: #adbfda; }
.friend-application textarea:focus { background: #fff; }
.friend-application textarea::placeholder { color: #91a0b4; }
.friend-application input:not([type="color"]):hover { border-color: #adbfda; }
.friend-application input:not([type="color"]):focus { background: #fff; }
.friend-application input:not([type="color"])::placeholder { color: #91a0b4; }
.friend-application input:focus-visible, .friend-application textarea:focus-visible, #friendCopyConfig:focus-visible, #friendApplicationSubmit:focus-visible { border-color: var(--blog-brand); outline: none; box-shadow: 0 0 0 3px rgba(40, 92, 168, .14); }
.friend-application-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
#friendApplicationSubmit { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-width: 150px; padding: 12px 16px; border: 1px solid var(--blog-brand); border-radius: 9px; background: var(--blog-brand); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
#friendApplicationSubmit span { color: #d9e7fa; font-size: 17px; line-height: 1; }
#friendApplicationSubmit:hover { background: var(--blog-brand-dark); transform: translateY(-1px); }
#friendApplicationSubmit:disabled { opacity: .55; cursor: wait; transform: none; }
.friend-application-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.friend-application-actions > span { color: var(--blog-muted); font-size: 12px; }
.friend-application-message { min-height: 20px; margin: 10px 0 0; color: var(--blog-brand); font-size: 13px; }
.friend-application-side { display: flex; flex-direction: column; min-width: 0; padding: 39px 34px 34px; border-left: 1px solid #dce7f5; background: #f5f8fd; }
.friend-application-side h3 { margin: 0; color: var(--blog-ink); font-size: 18px; }
.friend-application-side-intro { margin: 10px 0 23px; color: var(--blog-muted); font-size: 13px; line-height: 1.7; }
.friend-site-card { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid #dce6f3; }
.friend-site-mark { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--blog-brand); color: #fff; font: 700 20px/1 "Cartograph CF", monospace; }
.friend-site-card strong { display: block; color: var(--blog-ink); font-size: 16px; }
.friend-site-card p { margin: 5px 0 0; color: var(--blog-muted); font-size: 12px; line-height: 1.5; }
#friendCopyConfig { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; align-self: flex-start; margin-top: 18px; padding: 9px 13px; border: 1px solid #bed0e8; border-radius: 8px; background: #fff; color: var(--blog-brand); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
#friendCopyConfig:hover { border-color: var(--blog-brand); background: var(--blog-brand-soft); }
.friend-site-details { margin: 15px 0 0; }
.friend-site-details > div { display: flex; flex-direction: column; gap: 7px; padding: 8px 0; }
.friend-site-details dt { color: var(--blog-muted); font-size: 12px; }
.friend-site-details dd { min-width: 0; margin: 0; color: var(--blog-ink); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.friend-site-details code { display: block; padding: 9px 11px; border: 1px solid #e0e8f3; border-radius: 7px; background: #fff; color: #2c4b75; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; cursor: text; }
.friend-copy-source { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: pre; border: 0; }
@media (max-width: 1100px) { .pg-index .friend-wrapper .link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .friend-hero-art { transform: scale(.8); transform-origin: right center; margin-left: -70px; } .friend-application-content { grid-template-columns: 1fr; } .friend-application-side { border-left: 0; border-top: 1px solid var(--blog-line); } }
@media (max-width: 760px) { .pg-index .friend-wrapper .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .friend-guide-list { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) { .friend-hero-art { display: none; } }
@media (max-width: 520px) { .friend-hero { padding: 38px 0; } .friend-shell, .pg-index .friend-wrapper { width: calc(100% - 32px); } .friend-hero h1 { font-size: 36px; } .friend-hero-action { margin-top: 20px; } .pg-index .friend-wrapper { padding: 32px 0 56px; } .friend-section-heading p { display: none; } .pg-index .friend-wrapper .link-list { grid-template-columns: 1fr; margin-bottom: 48px; } .friend-application-main, .friend-application-side { padding: 26px 20px; } .friend-application-fields { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 520px) { .friend-application-guide { margin-top: 22px; padding: 25px 20px; } }
@media (prefers-reduced-motion: reduce) { .friend-hero-action, .pg-index .friend-wrapper .link-list .item, #friendApplicationSubmit { transition: none; } }

/* Card links and their independent browsing controls. */
.friend-note { color: inherit; text-decoration: none; transform-origin: 50% 85%; }
.friend-note[hidden], .friend-note-controls[hidden] { display: none; }
.friend-note:hover { border-color: #aac3e3; }
.friend-note:focus-visible, .friend-note-controls button:focus-visible { outline: 3px solid #729dd6; outline-offset: 5px; }
.friend-note-profile > div { min-width: 0; }
.friend-note-site .friend-note-profile { height: 66px; margin: 9px 0 15px; }
.friend-note-site strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.friend-hero .friend-note-profile p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: #7a889a; font-size: 11px; line-height: 1.6; }
.friend-note-avatar { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; overflow: hidden; border: 3px solid white; border-radius: 50%; background: #e8eff8; color: #557399; box-shadow: 0 0 0 1px #dce6f2; }
.friend-note-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.friend-note-avatar img[hidden] { display: none; }
.friend-note-controls { position: absolute; left: 22px; bottom: -20px; display: flex; align-items: center; gap: 10px; }
.friend-note-controls button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #d2deed; border-radius: 50%; background: white; color: #4779b5; cursor: pointer; font-size: 15px; }
.friend-note-controls button:hover { background: #e8eff8; border-color: #aac3e3; }
.friend-note-count { color: #7a889a; font: 10px/1 monospace; min-width: 40px; text-align: center; }
.friend-note-label { pointer-events: none; }
