:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f6;
  color: #1f2329;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; }
button { font: inherit; }

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #f7f9f8;
}

.page-shell::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: max(1200px, 155%);
  height: 440px;
  border-radius: 0 0 50% 50% / 0 0 15% 15%;
  background: #2aae67;
  content: "";
  transform: translateX(-50%);
}

.site-header { z-index: 2; display: flex; align-items: center; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; justify-content: center; width: 146px; height: 41px; text-decoration: none; }
.brand-logo { display: block; width: 134px; height: auto; }

.profile-stage { position: relative; display: grid; place-items: center; padding: 28px 24px 52px; }
.ornament { display: none; }

.profile-content { z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(100%, 430px); }
.web-notice { position: relative; display: flex; align-items: flex-start; gap: 9px; width: 100%; margin: 0; padding: 12px 14px; overflow: hidden; border: 1px solid #ffd2a4; border-radius: 10px; background: #fff3e4; box-shadow: 0 8px 20px rgba(178, 100, 25, .10); color: #a85d18; text-align: left; animation: notice-enter .55s ease-out both, notice-pulse 2.8s 1s ease-in-out infinite; }
.web-notice::after { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #f28a25; content: ""; }
.web-notice-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; fill: #ed841f; }
.web-notice p { margin: 0; font-size: 13px; line-height: 1.5; }
.profile-card { width: 100%; padding: 20px 34px 28px; border: 1px solid rgba(23, 28, 25, .06); border-radius: 24px; background: rgba(255, 255, 255, .93); box-shadow: 0 18px 50px rgba(36, 55, 44, .10), 0 3px 10px rgba(36, 55, 44, .04); text-align: center; animation: card-enter .55s ease-out both; }
.card-top { display: flex; align-items: center; justify-content: flex-start; min-height: 26px; }
.online-status { display: inline-flex; align-items: center; gap: 6px; color: #7b8288; font-size: 12px; }
.online-status i { width: 7px; height: 7px; border-radius: 50%; background: #07c160; box-shadow: 0 0 0 3px rgba(7, 193, 96, .12); }
.close-button { display: grid; place-items: center; padding: 6px; border: 0; background: transparent; color: #889099; cursor: pointer; }
.avatar-wrap { width: 116px; height: 116px; margin: 10px auto 17px; padding: 4px; border-radius: 50%; background: linear-gradient(145deg, #55d48f, #d3f6e2); }
.avatar { display: block; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #ecf2ee; }
h1 { margin: 0; color: #20242a; font-size: 24px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; overflow-wrap: anywhere; }
.profile-details { margin: 25px 0 24px; padding: 0; border-top: 1px solid #f0f1f1; text-align: left; }
.detail-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid #f0f1f1; }
.detail-row dt { color: #8d949a; font-size: 14px; }
.detail-row dd { margin: 0; color: #34383d; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.country { display: flex; align-items: center; gap: 8px; }
.flag { display: block; width: 24px; height: 16px; flex: 0 0 24px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }

.add-friend-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: #07c160; color: #fff; cursor: pointer; font-size: 16px; font-weight: 500; transition: background .2s, box-shadow .2s, transform .2s; }
.add-friend-button svg { width: 21px; height: 21px; fill: currentColor; }
.add-friend-button:hover { background: #06ad56; box-shadow: 0 6px 16px rgba(7, 193, 96, .24); transform: translateY(-1px); }
.add-friend-button:active { background: #069a4c; transform: translateY(0); }
.add-friend-button:disabled { background: #b6c0ba; box-shadow: none; cursor: default; transform: none; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 15px 0 0; color: #a1a7ac; font-size: 12px; }
.privacy-note svg { width: 15px; height: 15px; fill: currentColor; }

.modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 23, 19, .42); backdrop-filter: blur(3px); }
.verification-dialog { position: relative; z-index: 1; width: min(100%, 390px); padding: 33px 34px 26px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .20); text-align: center; transform: translateY(12px) scale(.98); transition: transform .22s ease-out; }
.modal.is-open .verification-dialog { transform: translateY(0) scale(1); }
.close-button { position: absolute; top: 13px; right: 13px; border-radius: 50%; }
.close-button:hover { background: #f3f4f4; color: #4f565d; }
.close-button svg { width: 20px; height: 20px; fill: currentColor; }
.verification-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: #e7f8ed; color: #07c160; }
.verification-icon svg { width: 30px; height: 30px; fill: currentColor; }
.verification-dialog h2 { margin: 0; color: #25282d; font-size: 20px; font-weight: 600; }
.verification-description { margin: 9px 0 23px; color: #858c92; font-size: 14px; }
.captcha { padding: 18px 16px 14px; border-radius: 10px; background: #f7f9f8; text-align: left; }
.captcha-label { margin: 0 0 13px; color: #626a70; font-size: 13px; text-align: center; }
.slider-track { position: relative; height: 40px; border: 1px solid #e1e5e3; border-radius: 5px; background: #e9eeeb; user-select: none; touch-action: none; }
.slider-progress { position: absolute; top: -1px; bottom: -1px; left: -1px; width: 0; border: 1px solid #9fe2bb; border-radius: 5px 0 0 5px; background: #d9f7e5; pointer-events: none; }
.slider-thumb { position: absolute; top: -1px; left: -1px; display: grid; place-items: center; width: 42px; height: 40px; border: 1px solid #d5d9d7; border-radius: 5px; background: #fff; color: #8c9591; box-shadow: 0 1px 3px rgba(0, 0, 0, .10); cursor: grab; outline: none; transition: border-color .15s, color .15s, background .15s; }
.slider-thumb:hover, .slider-thumb:focus-visible { border-color: #07c160; color: #07c160; }
.slider-thumb:active { cursor: grabbing; }
.slider-thumb svg { width: 19px; height: 19px; fill: currentColor; }
.captcha-status { min-height: 18px; margin: 8px 0 0; color: #e64545; font-size: 12px; text-align: center; }
.captcha[data-state="verified"] .slider-track { border-color: #79d9a2; background: #d9f7e5; }
.captcha[data-state="verified"] .slider-progress { width: 100% !important; border-radius: 5px; }
.captcha[data-state="verified"] .slider-thumb { border-color: #07c160; background: #07c160; color: #fff; cursor: default; }
.captcha[data-state="failed"] .slider-thumb { border-color: #e85a5a; color: #e85a5a; }
.captcha[data-state="failed"] .slider-track { border-color: #f2b5b5; }
.dialog-note { margin: 17px 0 0; color: #a2a8ad; font-size: 12px; }

.mobile-warning-modal { position: fixed; z-index: 25; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.mobile-warning-modal.is-open { visibility: visible; opacity: 1; }
.mobile-warning-backdrop { position: absolute; inset: 0; background: rgba(16, 23, 19, .48); backdrop-filter: blur(3px); }
.mobile-warning-dialog { position: relative; z-index: 1; width: min(100%, 370px); padding: 34px 28px 29px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); text-align: center; transform: translateY(12px) scale(.98); transition: transform .22s ease-out; }
.mobile-warning-modal.is-open .mobile-warning-dialog { transform: translateY(0) scale(1); }
.mobile-warning-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border: 5px solid #ffe0e0; border-radius: 50%; background: #fff0f0; color: #e33e3e; font-size: 38px; font-weight: 700; line-height: 1; animation: mobile-warning-pulse 1.3s ease-in-out infinite; }
.mobile-warning-dialog h2 { margin: 0; color: #292d31; font-size: 20px; font-weight: 600; }
.mobile-warning-dialog p { margin: 9px 0 0; color: #747c82; font-size: 14px; line-height: 1.6; }
.mobile-warning-dialog p + p { margin-top: 2px; }

.captcha-overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.captcha-overlay.is-open { visibility: visible; opacity: 1; }
.captcha-overlay__backdrop { position: absolute; inset: 0; background: rgba(16, 23, 19, .48); backdrop-filter: blur(3px); }
.captcha-overlay__frame-wrap { position: relative; z-index: 1; width: min(100%, 570px); height: min(78vh, 650px); overflow: hidden; border-radius: 16px; background: transparent; box-shadow: none; transform: translateY(14px) scale(.98); transition: transform .22s ease-out; }
.captcha-overlay.is-open .captcha-overlay__frame-wrap { transform: translateY(0) scale(1); }
.captcha-overlay__frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.toast { position: fixed; z-index: 20; bottom: 32px; left: 50%; padding: 12px 18px; border-radius: 7px; background: rgba(30, 34, 32, .88); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes card-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notice-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notice-pulse { 0%, 100% { box-shadow: 0 8px 20px rgba(178, 100, 25, .10); } 50% { box-shadow: 0 10px 24px rgba(242, 138, 37, .22); } }
@keyframes mobile-warning-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 62, 62, .28); transform: scale(1); } 50% { box-shadow: 0 0 0 9px rgba(227, 62, 62, 0); transform: scale(1.06); } }

@media (max-width: 520px) {
  .page-shell::before { width: 180%; height: 350px; border-radius: 0 0 50% 50% / 0 0 10% 10%; }
  .site-header { width: min(100% - 32px, 1120px); padding: 20px 0; }
  .profile-stage { align-items: start; padding: 18px 16px 34px; }
  .profile-card { padding: 18px 24px 25px; border-radius: 20px; }
  h1 { font-size: 22px; }
  .detail-row { grid-template-columns: 76px 1fr; }
  .web-notice { padding: 11px 13px; }
  .verification-dialog { padding: 30px 22px 24px; }
  .mobile-warning-dialog { padding: 32px 22px 26px; }
  .captcha-overlay { padding: 16px; }
  .captcha-overlay__frame-wrap { height: min(82vh, 650px); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
