/* ============================================================
   易语言源码网 · 会员中心页专属样式 index.css
   依赖主站 style.css CSS 变量
   ============================================================ */

/* ── 整体布局 ────────────────────────────────────────────── */
.hy-page{
    width:100%;
}

.hy-wrap {
  max-width: 1200px;
  margin: 0px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 18px;
  align-items: start;
}

/* ── 通用卡片 ────────────────────────────────────────────── */
.hy-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hy-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #111827);
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: rgba(248, 250, 252, 0.8);
}

.hy-card-head i {
  color: var(--acc, #2563eb);
  font-size: 13px;
}

/* ── 用户信息卡 ──────────────────────────────────────────── */
.hy-user-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
}

.hy-user-banner {
  height: 72px;
  background: linear-gradient(135deg, var(--acc, #2563eb) 0%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}

.hy-user-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hy-user-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hy-user-body {
  padding: 0 16px 16px;
  position: relative;
}

.hy-avatar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -30px;
  margin-bottom: 12px;
}

.hy-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hy-avatar:hover {
  transform: scale(1.06) rotate(-3deg);
}

.hy-avatar-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--acc, #2563eb);
  background: var(--acc-l, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  margin-bottom: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.hy-avatar-edit:hover {
  background: #dbeafe;
  border-color: var(--acc, #2563eb);
  transform: translateY(-1px);
}

.hy-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #111827);
  margin-bottom: 3px;
}

.hy-mbtype {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  margin-left: 6px;
}

.hy-user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hy-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.22s ease;
  text-align: center;
}

.hy-stat-item:hover {
  background: var(--acc-l, #eff6ff);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.hy-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--acc, #2563eb);
  line-height: 1;
}

.hy-stat-label {
  font-size: 11px;
  color: var(--muted, #9ca3af);
}

.hy-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--muted, #9ca3af);
  border: 1px dashed var(--border, #e5e7eb);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hy-logout-btn:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fff5f5;
}

/* ── 左侧导航菜单 ─────────────────────────────────────────── */
.hy-side-nav {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hy-side-nav-head {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #9ca3af);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: rgba(248, 250, 252, 0.8);
}

.hy-side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text2, #374151);
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
  position: relative;
  overflow: hidden;
}

.hy-side-nav-item:last-child {
  border-bottom: none;
}

.hy-side-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--acc-l, #eff6ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  z-index: 0;
}

.hy-side-nav-item:hover::before,
.hy-side-nav-item.active::before {
  transform: scaleX(1);
}

.hy-side-nav-item:hover,
.hy-side-nav-item.active {
  color: var(--acc, #2563eb);
  border-left-color: var(--acc, #2563eb);
  padding-left: 20px;
}

.hy-side-nav-item i,
.hy-side-nav-item span {
  position: relative;
  z-index: 1;
}

.hy-side-nav-item i {
  font-size: 12px;
  color: var(--muted, #9ca3af);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hy-side-nav-item:hover i,
.hy-side-nav-item.active i {
  color: var(--acc, #2563eb);
  transform: scale(1.2) rotate(-8deg);
}

/* ── 主内容区 ────────────────────────────────────────────── */
.hy-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 欢迎横幅 */
.hy-welcome-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.28);
  position: relative;
  overflow: hidden;
}

.hy-welcome-banner::before {
  content: '';
  position: absolute;
  top: -25px;
  right: -25px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hy-welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 80px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.hy-welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hy-welcome-banner:hover .hy-welcome-icon {
  transform: rotate(-8deg) scale(1.1);
}

.hy-welcome-text {
  position: relative;
  z-index: 1;
}

.hy-welcome-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.hy-welcome-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* 快捷操作 */
.hy-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hy-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text2, #374151);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hy-quick-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acc, #2563eb), #0ea5e9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hy-quick-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  background: rgba(239, 246, 255, 0.9);
  border-color: #bfdbfe;
  color: var(--acc, #2563eb);
}

.hy-quick-btn:hover::after {
  transform: scaleX(1);
}

.hy-quick-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hy-quick-btn:hover .hy-quick-btn-icon {
  transform: rotate(-8deg) scale(1.15);
}

/* 列表区块 */
.hy-list {
  display: flex;
  flex-direction: column;
}

.hy-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--text2, #374151);
  transition: background 0.18s ease, padding-left 0.18s ease;
  position: relative;
}

.hy-list-item:last-child {
  border-bottom: none;
}

.hy-list-item:hover {
  background: rgba(248, 250, 252, 0.9);
  padding-left: 20px;
}

.hy-list-item a {
  flex: 1;
  color: var(--text2, #374151);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.hy-list-item:hover a {
  color: var(--acc, #2563eb);
}

.hy-list-item .hy-click {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted, #9ca3af);
  background: rgba(248, 250, 252, 1);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

.hy-list-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--acc-l, #eff6ff);
  border: 1px solid #bfdbfe;
  color: var(--acc, #2563eb);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hy-list-num.top3 {
  background: linear-gradient(135deg, var(--acc, #2563eb), #0ea5e9);
  border-color: transparent;
  color: #fff;
}

/* 帮助链接 */
.hy-help-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}

.hy-help-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--text2, #374151);
  border-radius: 7px;
  transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.hy-help-link:hover {
  color: var(--acc, #2563eb);
  background: var(--acc-l, #eff6ff);
  padding-left: 14px;
}

.hy-help-link i {
  font-size: 12px;
  color: var(--muted, #9ca3af);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hy-help-link:hover i {
  color: var(--acc, #2563eb);
  transform: scale(1.2) rotate(-8deg);
}

/* ── 右侧栏 ──────────────────────────────────────────────── */
.hy-side-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hy-wrap {
    grid-template-columns: 200px 1fr;
  }
  .hy-side-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .hy-wrap {
    grid-template-columns: 1fr;
    margin: 12px auto;
    gap: 12px;
  }
  .hy-side-left {
    display: none;
  }
  .hy-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   登录页样式 · login
   ============================================================ */

/* 登录页背景 */
.login-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f0fdfe 50%, #f5f3ff 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* 登录卡片容器 */
.login-box {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* 登录卡片 */
.login-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* 卡片顶部横幅 */
.login-banner {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}

.login-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.login-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.login-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.login-card:hover .login-banner-icon {
  transform: rotate(-8deg) scale(1.1);
}

.login-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.login-banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

/* 表单区域 */
.login-form {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 输入项 */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2, #374151);
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-label i {
  font-size: 11px;
  color: var(--muted, #9ca3af);
  width: 12px;
  text-align: center;
}

.login-input {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text, #111827);
  background: var(--bg2, #f8fafc);
  outline: none;
  font-family: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  width: 100%;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: var(--acc, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #fff;
}

.login-input::placeholder {
  color: var(--muted, #9ca3af);
  font-size: 13px;
}

/* 验证码行 */
.login-captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.login-captcha-row .login-input {
  flex: 1;
}

.login-captcha-img {
  flex-shrink: 0;
  height: 42px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.login-captcha-img:hover {
  border-color: var(--acc, #2563eb);
  transform: scale(1.02);
}

.login-captcha-img img {
  display: block;
  height: 100%;
  width: auto;
}

/* 辅助行（忘记密码） */
.login-helper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.login-helper a {
  font-size: 12.5px;
  color: var(--acc, #2563eb);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.login-helper a:hover {
  color: #1d4ed8;
  letter-spacing: 0.2px;
}

/* 登录按钮 */
.login-submit {
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc, #2563eb), #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.28);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.login-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.36);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

/* 第三方登录 */
.login-third {
  padding: 0 32px 24px;
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: -4px;
}

.login-third-title {
  font-size: 12px;
  color: var(--muted, #9ca3af);
  text-align: center;
  padding: 16px 0 12px;
  position: relative;
}

.login-third-title::before,
.login-third-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--border, #e5e7eb);
}

.login-third-title::before { left: 0; }
.login-third-title::after  { right: 0; }

.login-qq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1.5px solid #bfdbfe;
  border-radius: 9px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--acc, #2563eb);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-qq-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: var(--acc, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.14);
}

.login-qq-btn i {
  font-size: 15px;
}

/* 注册引导区 */
.login-register {
  background: rgba(248,250,252,0.8);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.login-register:hover {
  background: rgba(239,246,255,0.8);
  border-color: #bfdbfe;
}

.login-register-text {
  font-size: 13px;
  color: var(--text2, #374151);
}

.login-register-text span {
  font-size: 12px;
  color: var(--muted, #9ca3af);
  display: block;
  margin-top: 2px;
}

.login-register-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--acc, #2563eb), #0ea5e9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 12px rgba(37,99,235,0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-register-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.32);
}

@media (max-width: 520px) {
  .login-banner,
  .login-form,
  .login-third {
    padding-left: 20px;
    padding-right: 20px;
  }
  .login-register {
    flex-direction: column;
    text-align: center;
  }
  .login-register-btn {
    width: 100%;
    justify-content: center;
  }
}

.login-agree{
  margin:14px 0 6px;
  font-size:13px;
  color:#666;
}

.login-agree a{
  color:#2563eb;
  text-decoration:none;
}

.login-agree a:hover{
  text-decoration:underline;
}

/* 协议提示文字 */
.login-agree-error{
  display:none;
  margin-top:10px;
  margin-bottom:6px;
  padding:8px 10px;
  background:#fee2e2;
  color:#b91c1c;
  border-radius:6px;
  font-size:13px;
  border:1px solid #fecaca;
}

/* 协议区域 */
.login-agree{
  margin:8px 0 10px;
  font-size:13px;
  color:#555;
}

.login-agree a{
  color:#2563eb;
  text-decoration:none;
}

.login-agree a:hover{
  text-decoration:underline;
}
.login-msg{
  display:none;
  margin-top:10px;
  padding:10px;
  border-radius:6px;
  font-size:13px;
}

.login-msg.error{
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}

.login-msg.success{
  background:#dcfce7;
  color:#166534;
  border:1px solid #86efac;
}
.login-msg{
    transition: opacity .4s ease;
}
.login-msg.hide{
    opacity:0;
}
