/* 申请弹窗样式，保留初始隐藏、键盘焦点与移动端布局。 */
/* Application dialog styles from index (2).html, scoped to this dialog. */
#footer-friend-modal {
position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.68);
  z-index:10000;
}
#footer-friend-modal .friend-dialog {
width:min(680px,100%);
  max-height:92vh;
  overflow:auto;
  background:#2d2b2b;
  border:1px solid #4a4747;
  border-radius:5px;
}
#footer-friend-modal .friend-dialog-head {
display:flex;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid #474444;
}
#footer-friend-modal .friend-dialog-head #friend-application-title {
margin:0 0 6px;
  font-size:18px;
  font-weight:600;
}
#footer-friend-modal .friend-dialog-head p {
margin:0;
  color:#999595;
  font-size:12px;
}
#footer-friend-modal .friend-close {
width:32px;height:32px;
  border:1px solid #514e4e;
  background:#373434;
  color:#c7c4c4;
  border-radius:4px;
}
#footer-friend-modal .friend-form {
padding:20px;
}
#footer-friend-modal .friend-owned {
margin:20px 20px 0;
  padding:16px;
  border:1px solid #514e4e;
  border-radius:6px;
  background:#262323;
}
#footer-friend-modal .friend-owned-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
#footer-friend-modal .friend-owned-head #friend-owned-title {
margin:0;
  color:#efeded;
  font-size:15px;
  font-weight:600;
}
#footer-friend-modal .friend-owned-hint {
margin:0;
  color:#b7b3b3;
  font-size:11px;
  line-height:1.65;
}
#footer-friend-modal .friend-owned-name {
  display:block;
  margin:10px 0 6px;
  font-size:12px;
  color:#c7c4c4;
  overflow-wrap:anywhere;
}
#footer-friend-modal .friend-owned-url {
display:block;
  margin:10px 0 0;
  color:#36c9f2;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#footer-friend-modal .friend-owned-actions {
display:flex;
  gap:10px;
  margin-left:auto;
  justify-content:flex-end;
  flex-wrap:wrap;
}
#footer-friend-modal .friend-owned-actions button {
border:1px solid #514e4e;
  border-radius:4px;
  padding:7px 10px;
  background:#373434;
  color:#c7c4c4;
  font-size:11px;
}
#footer-friend-modal .friend-owned-actions button:disabled { opacity:.55; cursor:default; }
#footer-friend-modal .friend-form-grid {
display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
#footer-friend-modal .friend-field {
display:flex;
  flex-direction:column;
  gap:6px;
}
#footer-friend-modal .friend-field.friend-full {
grid-column:1/-1
}
#footer-friend-modal label {
font-size:12px;
  color:#c3c0c0;
}
#footer-friend-modal .friend-req {
color:#e16464
}
#footer-friend-modal input,
#footer-friend-modal select,
#footer-friend-modal textarea {
width:100%;
  border:1px solid #555151;
  background:#262424;
  color:#efeded;
  border-radius:4px;
  padding:11px 12px;
  outline:none;
}
#footer-friend-modal input:focus,
#footer-friend-modal select:focus,
#footer-friend-modal textarea:focus {
border-color:#747070
}
#footer-friend-modal textarea {
min-height:86px;resize:vertical
}
#footer-friend-modal .friend-hint {
color:#777373;
  font-size:11px;
}
#footer-friend-modal .friend-agree {
display:flex;
  gap:8px;
  align-items:flex-start;
  margin-top:16px;
  color:#8d8989;
  font-size:11px;
  line-height:1.7;
}
#footer-friend-modal .friend-agree input {
width:auto;margin-top:3px
}
#footer-friend-modal .friend-actions {
display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}
#footer-friend-modal .friend-btn {
border-radius:4px;
  padding:10px 16px;
}
#footer-friend-modal .friend-btn.friend-ghost {
border:1px solid #555151;
  background:#353232;
  color:#c8c5c5;
}
#footer-friend-modal .friend-btn.friend-primary {
border:1px solid #676363;
  background:#454141;
  color:#fff;
}
#footer-friend-modal[hidden] { display: none; }
#footer-friend-modal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    color: #e8e8e8;
}
#footer-friend-modal * { box-sizing: border-box; }
#footer-friend-modal button,
#footer-friend-modal input,
#footer-friend-modal select,
#footer-friend-modal textarea {
    font: inherit;
    line-height: normal;
    margin: 0;
    height: auto;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}
#footer-friend-modal button { cursor: pointer; }
#footer-friend-modal .friend-close { height: 32px; flex-shrink: 0; padding: 0; }
#footer-friend-modal .friend-field { min-width: 0; }
#footer-friend-modal label { margin: 0; font-weight: 400; }
#footer-friend-modal #friend-application-title { padding: 0; border: 0; color: #e8e8e8; line-height: normal; letter-spacing: normal; }
#footer-friend-modal .friend-agree input { margin-top: 3px; flex-shrink: 0; }
#footer-friend-modal .friend-submit-status { margin: 16px 0 0; color: #c3c0c0; font-size: 12px; }
@media(max-width: 680px) {
    #footer-friend-modal .friend-form-grid { grid-template-columns: minmax(0, 1fr); }
    #footer-friend-modal .friend-field.friend-full { grid-column: auto; }
}
