/* ============================================================
   VelociDrone 中国服务平台 — 前台补充样式
   仅补充原型未覆盖的登录态、表单、提示等组件
   ============================================================ */

/* 头部用户区：导航整体居右（margin-left:auto）；logo 与首页之间不设间距，
   导航项间与「联系我们」→用户组 24px，组内 10px */
.header-inner { display: flex; align-items: center; gap: 0; }
.header-inner .main-nav { margin-left: auto; }
.vd-user-nav { display: flex; align-items: center; flex-shrink: 0; margin-left: 24px; }
.vd-auth-group { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
/* 分隔线图片（代替字符「／」，绝对垂直居中） */
.vd-nav-sep { display: block; width: 9px; height: 14px; user-select: none; }
.vd-user-nav .vd-auth-out:hover { color: #ffbf3e; }
.vd-user-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(255, 255, 255, .08); color: #eaf0f7; font-size: 13px; text-decoration: none; transition: background .2s; }
.vd-user-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
/* 头像下拉菜单（官网=个人中心/退出登录；网盘=我的文件/上传文件/我的分享/帮助中心） */
.vd-ava-wrap { position: relative; display: flex; align-items: center; }
.vd-ava-btn { display: block; width: 36px; height: 36px; padding: 0; background: none; border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.vd-ava-btn:hover { border-color: #f5ad28; box-shadow: 0 0 0 3px rgba(245, 173, 40, .18); }
.vd-ava-btn .vd-avatar { display: block; width: 100%; height: 100%; }
.vd-ava-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 152px; background: #0d2036; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; box-shadow: 0 14px 34px rgba(2, 8, 18, .5); padding: 6px; display: none; z-index: 200; }
.vd-ava-wrap.on .vd-ava-menu { display: block; }
.vd-ava-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 7px; color: #dce2eb; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.vd-ava-menu a:hover { background: rgba(245, 173, 40, .12); color: #ffbf3e; }
.vd-ava-menu a.danger { color: #e89a94; }
.vd-ava-menu a.danger:hover { background: rgba(217, 83, 79, .16); color: #ff7b72; }
.vd-ava-menu iconify-icon { font-size: 16px; }
/* 默认头像：灰色圆底 + 白色人形（头圆+肩弧），SVG 自带底色 */
.vd-avatar { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.vd-avatar-default { background: transparent; color: #fff; }
.vd-avatar-default svg { width: 100%; height: 100%; display: block; }
.vd-ava-fill { width: 100%; height: 100%; }
.vd-user-out { color: #9fb0c4; font-size: 12.5px; text-decoration: none; }
.vd-user-out:hover { color: #f5ad28; }
.vd-user-reg { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; border-radius: 8px; background: linear-gradient(135deg, #ffc95e 0%, #f5ad28 55%, #e79a12 100%); color: #241703; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-decoration: none; box-shadow: 0 4px 14px rgba(245, 173, 40, .26), inset 0 1px 0 rgba(255, 255, 255, .38); transition: filter .18s, transform .18s, box-shadow .18s; }
.vd-user-reg:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(245, 173, 40, .34), inset 0 1px 0 rgba(255, 255, 255, .38); color: #241703; }
.vd-user-reg:active { transform: translateY(0); filter: brightness(.98); box-shadow: 0 3px 10px rgba(245, 173, 40, .24); }
/* 未登录时的「登录」入口：低调描边幽灵按钮，与金色注册主按钮形成主次层级 */
.vd-login-btn { height: 34px; padding: 0 15px; border-radius: 8px; background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #dfe7f0; font-size: 13px; transition: border-color .18s, color .18s, background .18s; }
.vd-login-btn:hover { border-color: rgba(245, 173, 40, .6); background: rgba(245, 173, 40, .08); color: #f5ad28; }

/* 表单 */
.vd-form-card { max-width: 460px; margin: 0 auto; padding: 34px 34px 30px; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; box-shadow: 0 12px 34px rgba(15, 32, 52, .07); }
.vd-form-card h1 { margin: 0 0 6px; font-size: 22px; color: #16222f; }
.vd-form-card .sub { margin: 0 0 24px; font-size: 13px; color: #7b8a9c; }
.vd-field { margin-bottom: 16px; }
.vd-field label { display: block; margin-bottom: 6px; font-size: 13px; color: #46586c; }
.vd-field input[type=text], .vd-field input[type=email], .vd-field input[type=password] { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dde4ec; border-radius: 8px; font-size: 14px; color: #22303f; background: #fbfcfd; outline: none; transition: border-color .2s, background .2s; }
.vd-field input:focus { border-color: #f5ad28; background: #fff; }
.vd-field .vd-code-row { display: flex; gap: 10px; }
.vd-field .vd-code-row input { flex: 1; }
.vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.vd-btn-primary { width: 100%; background: #f5ad28; color: #2a1c06; }
.vd-btn-primary:hover { background: #ffc65c; }
.vd-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.vd-btn-ghost { background: #f2f5f8; color: #46586c; border: 1px solid #dde4ec; }
.vd-btn-ghost:hover { background: #e9eef4; }
.vd-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.vd-form-foot-note { margin-top: 16px; font-size: 12.5px; color: #7b8a9c; text-align: center; }
.vd-form-foot-note a { color: #b57612; text-decoration: none; }
.vd-form-foot-note a:hover { text-decoration: underline; }
.vd-alert { margin-bottom: 16px; padding: 10px 13px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.vd-alert-err { background: #fdecea; color: #c0392b; }
.vd-alert-ok { background: #e8f7ee; color: #1a8b4e; }
.vd-agree { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; font-size: 12.5px; color: #7b8a9c; line-height: 1.7; }
.vd-agree input { margin-top: 4px; }
.vd-agree a { color: #b57612; }

/* 通用页面区块 */
.vd-page-head { padding: 46px 0 10px; text-align: center; }
.vd-page-head h1 { margin: 0 0 8px; font-size: 28px; color: #16222f; }
.vd-page-head p { margin: 0; font-size: 14px; color: #7b8a9c; }
.vd-section { padding: 34px 0 60px; }
.vd-center { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* 空态 */
.vd-empty-box { padding: 54px 20px; text-align: center; color: #93a1b1; font-size: 14px; background: #fff; border: 1px dashed #e0e7ef; border-radius: 12px; }

/* 分页 */
.vd-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.vd-pagination a, .vd-pagination span { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #e3e9f0; color: #46586c; font-size: 13px; text-decoration: none; }
.vd-pagination a:hover { border-color: #f5ad28; color: #b57612; }
.vd-pagination .active { background: #f5ad28; border-color: #f5ad28; color: #2a1c06; font-weight: 600; }
.vd-pagination .disabled { color: #c3ccd6; background: #f7f9fb; }
.vd-pagination .total { border: 0; background: transparent; color: #93a1b1; }

/* 表单提交按钮组 */
.vd-actions { display: flex; gap: 10px; align-items: center; }

/* Toast */
.vd-toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -12px); z-index: 9999; padding: 11px 20px; border-radius: 9px; background: rgba(20, 32, 46, .94); color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; }
.vd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.vd-toast.err { background: rgba(192, 57, 43, .95); }

@media (max-width: 860px) {
  .vd-user-nav { order: 3; }
  .vd-user-link span { display: none; }
}

/* ---------------- 认证页（登录/注册/找回密码）：深色品牌侧板 + 白色表单 分栏卡片 ---------------- */
.vd-auth { max-width: 1000px; margin: 0 auto 46px; display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(6, 18, 34, .32); }
.vd-auth-brand { position: relative; background: radial-gradient(120% 130% at 8% 0%, #133c68 0%, #0b2440 46%, #071a30 100%); color: #fff; padding: 42px 38px; display: flex; flex-direction: column; overflow: hidden; }
.vd-auth-brand::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none; }
.vd-auth-brand::after { content: ''; position: absolute; inset: auto -50px -70px auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(245,173,40,.16), transparent 66%); pointer-events: none; }
.vd-auth-eyebrow { font-size: 11px; letter-spacing: .3em; color: #f5ad28; font-weight: 700; margin-bottom: 16px; }
.vd-auth-brand h2 { margin: 0 0 12px; font-size: 29px; line-height: 1.42; letter-spacing: .5px; }
.vd-auth-brand .lead { font-size: 13.5px; color: #ffd98e; font-weight: 600; margin: 0 0 8px; }
.vd-auth-brand p.desc { font-size: 12.5px; color: #9fb4cc; line-height: 1.9; margin: 0 0 24px; }
.vd-auth-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; z-index: 1; }
.vd-auth-feat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 4px; text-align: center; }
.vd-auth-feat iconify-icon { font-size: 19px; color: #f5ad28; margin-bottom: 6px; }
.vd-auth-feat span { font-size: 11.5px; color: #cdd9e8; display: block; }
.vd-auth-tagline { margin-top: auto; padding-top: 22px; font-size: 10.5px; letter-spacing: .24em; color: #57708c; position: relative; z-index: 1; }
.vd-auth-form { background: #fff; padding: 42px 40px 34px; }
.vd-auth-form h1 { margin: 0 0 6px; font-size: 22px; color: #16222f; }
.vd-auth-form .sub { margin: 0 0 20px; font-size: 13px; color: #7b8a9c; line-height: 1.7; }
.vd-auth-links { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 16px; font-size: 12.5px; }
.vd-auth-links a { color: #7b8a9c; text-decoration: none; }
.vd-auth-links a:hover { color: #b57612; }
@media (max-width: 860px) {
  .vd-auth { grid-template-columns: 1fr; }
  .vd-auth-brand { padding: 28px 26px; }
  .vd-auth-brand h2 { font-size: 22px; }
  .vd-auth-feats, .vd-auth-tagline { display: none; }
  .vd-auth-form { padding: 30px 24px; }
}

/* ---------------- 下载中心登录拦截提示页（v1.3.3） ---------------- */
.vd-guard { max-width: 600px; margin: 8px auto 30px; padding: 44px 44px 32px; background: #fff; border: 1px solid #e8edf3; border-radius: 16px; box-shadow: 0 16px 44px rgba(15, 32, 52, .08); text-align: center; }
.vd-guard-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 34% 28%, #fff3d6 0%, #fde9bf 60%, #fbdf9f 100%); box-shadow: 0 8px 20px rgba(245, 173, 40, .22); }
.vd-guard-icon iconify-icon { font-size: 34px; color: #b57612; }
.vd-guard h2 { margin: 0 0 12px; font-size: 22px; color: #16222f; letter-spacing: .3px; }
.vd-guard-desc { margin: 0 0 26px; font-size: 13.5px; line-height: 1.95; color: #6b7d90; }
.vd-guard-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.vd-guard .vd-guard-btn { width: auto; min-width: 132px; height: 42px; padding: 0 24px; font-size: 14px; border-radius: 8px; }
.vd-guard .vd-btn-primary { box-shadow: 0 8px 20px rgba(245, 173, 40, .26); }
.vd-guard-redirect { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 12px 0 2px; border-top: 1px dashed #e6ecf3; font-size: 12.5px; color: #8194a8; }
.vd-guard-count b { color: #b57612; font-size: 14px; }
.vd-guard-bar { width: 96px; height: 4px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.vd-guard-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffc95e, #f5ad28); transition: width .9s linear; }
.vd-guard-manual { color: #b57612; text-decoration: none; }
.vd-guard-manual:hover { text-decoration: underline; }
.vd-guard-back { margin: 18px 0 0; font-size: 12.5px; }
.vd-guard-back a { color: #8194a8; text-decoration: none; }
.vd-guard-back a:hover { color: #46586c; }
@media (max-width: 640px) {
  .vd-guard { padding: 32px 22px 26px; }
  .vd-guard h2 { font-size: 19px; }
  .vd-guard-actions { flex-direction: column; }
  .vd-guard .vd-guard-btn { width: 100%; }
}
/* 提示页独立布局（v1.3.4：移除 hero 区块后由容器承担上下留白） */
.vd-guard-page { padding: 72px 0 60px; }
.vd-guard-page .vd-guard { margin: 0 auto 8px; }
@media (max-width: 640px) {
  .vd-guard-page { padding: 40px 0 36px; }
}

/* 提示页文案列表（v1.4.0：说明文字改为对齐的要点列表） */
.vd-guard-desc { margin: 0 0 18px; }
.vd-guard-list { margin: 0 auto 28px; padding: 0; list-style: none; display: inline-block; text-align: left; }
.vd-guard-list li { position: relative; padding-left: 18px; font-size: 13px; line-height: 2.1; color: #6b7d90; }
.vd-guard-list li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: #f5ad28; }

/* ---------------- 协议条款弹窗（v1.4.0：注册页用户协议/隐私政策） ---------------- */
.vd-modal { position: fixed; inset: 0; z-index: 999; display: none; }
.vd-modal.open { display: block; }
.vd-modal-mask { position: absolute; inset: 0; background: rgba(4, 12, 22, .68); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.vd-modal-panel { position: relative; width: min(780px, calc(100% - 40px)); max-height: 78vh; margin: 6vh auto 0; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .38); overflow: hidden; }
.vd-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #eaeef4; }
.vd-modal-head h3 { margin: 0; font-size: 16px; color: #16222f; letter-spacing: .3px; }
.vd-modal-close { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: #f2f5f9; color: #5b6b7d; font-size: 17px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.vd-modal-close:hover { background: #e8edf5; color: #16222f; }
.vd-modal-body { padding: 20px 26px 28px; overflow-y: auto; color: #33414f; font-size: 13.5px; line-height: 1.95; text-align: left; }
.vd-modal-body h1, .vd-modal-body h2, .vd-modal-body h3, .vd-modal-body h4 { margin: 20px 0 8px; color: #16222f; line-height: 1.5; }
.vd-modal-body h1 { font-size: 19px; }
.vd-modal-body h2 { font-size: 16px; }
.vd-modal-body h3 { font-size: 14.5px; }
.vd-modal-body p, .vd-modal-body li, .vd-modal-body td, .vd-modal-body th { color: #33414f; }
.vd-modal-body p { margin: 0 0 10px; }
.vd-modal-body ul, .vd-modal-body ol { margin: 0 0 12px; padding-left: 20px; }
.vd-modal-body li { margin: 3px 0; }
.vd-modal-body a { color: #b57612; }
.vd-modal-body img { max-width: 100%; height: auto; }
.vd-modal-body table { width: 100%; border-collapse: collapse; }
.vd-modal-body td, .vd-modal-body th { border: 1px solid #e6ecf3; padding: 6px 10px; }
.vd-modal-empty { padding: 34px 0; text-align: center; color: #8a9aab; }
.vd-modal-foot { padding: 12px 22px 16px; border-top: 1px solid #eaeef4; text-align: right; }
.vd-modal-foot .vd-btn { height: 36px; font-size: 13.5px; }
body.vd-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .vd-modal-panel { width: calc(100% - 24px); max-height: 86vh; margin-top: 3vh; }
  .vd-modal-body { padding: 16px 18px 22px; }
}

/* 表单字段辅助说明（v1.4.0） */
.vd-field-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #8a9aab; }
