/* =========================================================
   杰哥云盘 v1.6 新增样式
   头像 / Logo / 主页背景照片 / 开机提示 / 30 分钟自动退出
   版权归豆包及杰哥(Jie Ge)所有  Copyright (c) 2026 Doubao & Jie Ge
   ========================================================= */

/* ---------- 表单：补齐 url / tel 输入框（原来只写了 text/email/number） ---------- */
input[type="url"], input[type="tel"] {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(4, 16, 38, .6);
  color: var(--ink); font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type="url"]:focus, input[type="tel"]:focus {
  border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(53, 194, 255, .14);
}

/* ---------- Logo（本人头像） ---------- */
.brand-logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #0a2a5e;
  box-shadow: 0 10px 28px rgba(31, 111, 235, .45), 0 0 0 2px rgba(255, 255, 255, .16);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.brand-logo:hover { transform: scale(1.05) rotate(-2deg); box-shadow: 0 14px 34px rgba(53, 194, 255, .5), 0 0 0 3px rgba(255, 255, 255, .28); }
.brand-logo.sm { width: 42px; height: 42px; }
.brand-logo.lg { width: 104px; height: 104px; margin-bottom: 18px; animation: logoPop .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes logoPop {
  from { opacity: 0; transform: scale(.85) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 主页背景照片（超管可换） ---------- */
body.has-bg {
  background-image:
    linear-gradient(180deg, rgba(4, 14, 32, .68) 0%, rgba(4, 14, 32, .82) 55%, rgba(3, 12, 26, .92) 100%),
    var(--brand-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}
body.has-bg .topbar { background: rgba(4, 14, 32, .80); }
body.has-bg .auth-card,
body.has-bg .panel { background: rgba(8, 24, 50, .82); }

/* ---------- 开机提示（登录页卡片内） ---------- */
.pc-notice {
  margin: 0 0 16px;
  padding: 12px 14px 12px 42px;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(53, 194, 255, .14), rgba(31, 111, 235, .10));
  border: 1px solid rgba(53, 194, 255, .30);
}
.pc-notice::before {
  content: "🖥";
  position: absolute; left: 14px; top: 12px; font-size: 16px; line-height: 1.4;
}
.pc-notice b { display: block; font-size: 12.5px; color: #cfe8ff; margin-bottom: 4px; letter-spacing: .3px; }
.pc-notice p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 开机提示（文件库顶部横幅） ---------- */
.pc-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 193, 77, .14), rgba(53, 194, 255, .08));
  border: 1px solid rgba(255, 193, 77, .35);
  border-left: 4px solid #ffc14d;
  animation: fadeUp .45s var(--ease) both;
}
.pc-banner .pc-ico { font-size: 18px; line-height: 1.2; }
.pc-banner .pc-txt { flex: 1; min-width: 0; }
.pc-banner b { display: block; font-size: 13px; color: #ffe3a8; margin-bottom: 3px; }
.pc-banner span { display: block; font-size: 12px; line-height: 1.75; color: var(--ink-2); }
.pc-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; transition: background .2s, color .2s;
}
.pc-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- 头像 ---------- */
.avatar { overflow: hidden; position: relative; }
.avatar img,
#userAvatarImg { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar i { font-style: normal; }

.avatar-row {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.avatar-big {
  position: relative; flex: 0 0 auto;
  width: 96px; height: 96px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 30px rgba(16, 88, 190, .38);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s;
}
.avatar-big:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 36px rgba(53, 194, 255, .42); }
.avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.avatar-big > span { font-size: 34px; font-weight: 800; color: #03203f; }
.avatar-cam {
  position: absolute; right: 2px; bottom: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-style: normal;
  background: #0b2a55; border: 1px solid rgba(255, 255, 255, .22);
}
.avatar-actions { flex: 1; min-width: 0; }
.avatar-actions b { font-size: 14px; }
.avatar-actions .row-actions { margin-top: 8px; }
.avatar-actions .form-msg { margin: 6px 0 0; }

/* ---------- 主页背景照片设置面板 ---------- */
.brand-row { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.bg-preview {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 14px;
  border: 1px dashed var(--line); background: rgba(255, 255, 255, .04);
  background-size: cover; background-position: center;
  display: grid; place-items: center; text-align: center;
  font-size: 12px; color: var(--ink-3); padding: 10px;
}
.bg-preview.has { border-style: solid; border-color: rgba(53, 194, 255, .45); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.brand-actions .row-actions { margin-bottom: 8px; }
.brand-actions .muted { margin: 10px 0 0; }

@media (max-width: 900px) {
  .brand-row { grid-template-columns: 1fr; }
  .avatar-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .brand-logo.lg { width: 84px; height: 84px; }
}