/* ============================================
 * 精准映射证书站 - 全局样式 (Beautified v2.0)
 * 设计语言: iOS 风玻璃拟态 + 渐变高光 + 流畅动画
 * ============================================ */

:root {
  /* 主色系 */
  --ys-primary: #0066ff;
  --ys-primary-light: #4d94ff;
  --ys-primary-dark: #0052cc;
  --ys-primary-50: #e6f0ff;
  --ys-primary-100: #cce0ff;

  /* 辅助色 */
  --ys-success: #34c759;
  --ys-warning: #ff9500;
  --ys-danger: #ff3b30;
  --ys-info: #5ac8fa;
  --ys-purple: #af52de;
  --ys-pink: #ff2d55;
  --ys-indigo: #5856d6;
  --ys-teal: #5ac8fa;

  /* 文字色 */
  --ys-text-primary: #111827;
  --ys-text-secondary: #6b7280;
  --ys-text-tertiary: #9ca3af;
  --ys-text-disabled: #d1d5db;

  /* 背景色 */
  --ys-bg-page: #f5f6fa;
  --ys-bg-card: #ffffff;
  --ys-bg-subtle: #f9fafb;
  --ys-bg-overlay: rgba(255, 255, 255, 0.85);

  /* 边框 */
  --ys-border: #e5e7eb;
  --ys-border-light: #f3f4f6;
  --ys-border-2: rgba(0, 0, 0, 0.06);

  /* 阴影 */
  --ys-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ys-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --ys-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ys-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.12);
  --ys-shadow-primary: 0 6px 20px rgba(0, 102, 255, 0.25);

  /* 圆角 */
  --ys-radius-sm: 8px;
  --ys-radius-md: 12px;
  --ys-radius-lg: 16px;
  --ys-radius-xl: 20px;
  --ys-radius-2xl: 24px;
  --ys-radius-full: 9999px;

  /* 渐变 */
  --ys-grad-primary: linear-gradient(135deg, #0066ff 0%, #5856d6 100%);
  --ys-grad-success: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  --ys-grad-warm: linear-gradient(135deg, #ff9500 0%, #ff2d55 100%);
  --ys-grad-cool: linear-gradient(135deg, #5ac8fa 0%, #0066ff 100%);
  --ys-grad-night: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --ys-grad-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ys-grad-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --ys-grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));

  /* 缓动 */
  --ys-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ys-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ys-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== 基础重置 ==================== */
* { box-sizing: border-box; }
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ==================== 按钮系统 ==================== */
.ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--ys-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ys-ease);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.ys-btn:hover { transform: translateY(-1px); }
.ys-btn:active { transform: translateY(0) scale(0.98); }
.ys-btn-sm { padding: 6px 14px; font-size: 12px; }
.ys-btn-lg { padding: 12px 24px; font-size: 15px; }
.ys-btn-block { width: 100%; }

.ys-btn-primary {
  background: var(--ys-grad-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.ys-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
  color: #fff;
}
.ys-btn-outline {
  background: transparent;
  color: var(--ys-primary);
  border-color: var(--ys-primary);
}
.ys-btn-outline:hover { background: var(--ys-primary-50); color: var(--ys-primary-dark); }
.ys-btn-ghost {
  background: transparent;
  color: var(--ys-text-secondary);
}
.ys-btn-ghost:hover { background: var(--ys-bg-subtle); color: var(--ys-text-primary); }
.ys-btn-danger {
  background: var(--ys-danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}
.ys-btn-success {
  background: var(--ys-success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

/* ==================== 卡片系统 ==================== */
.ys-card {
  background: var(--ys-bg-card);
  border-radius: var(--ys-radius-lg);
  border: 1px solid var(--ys-border-light);
  box-shadow: var(--ys-shadow-sm);
  overflow: hidden;
  transition: all 0.3s var(--ys-ease);
}
.ys-card:hover { box-shadow: var(--ys-shadow-md); }
.ys-card-glass {
  background: var(--ys-grad-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==================== 导航栏 ==================== */
.ys-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ys-bg-overlay);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ys-border-2);
}
.ys-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ys-navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ys-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.ys-navbar-logo i {
  color: var(--ys-primary);
  font-size: 22px;
  background: var(--ys-primary-50);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ys-navbar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.ys-navbar-menu a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ys-text-secondary);
  text-decoration: none;
  border-radius: var(--ys-radius-sm);
  transition: all 0.2s var(--ys-ease);
}
.ys-navbar-menu a:hover { background: var(--ys-bg-subtle); color: var(--ys-text-primary); }
.ys-navbar-menu a.active { color: var(--ys-primary); background: var(--ys-primary-50); }

/* ==================== 容器 ==================== */
.ys-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ==================== 表单 ==================== */
.ys-form-group { margin-bottom: 18px; }
.ys-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ys-text-primary);
  margin-bottom: 8px;
}
.ys-input, .ys-form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ys-text-primary);
  background: var(--ys-bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--ys-radius-md);
  outline: none;
  transition: all 0.2s var(--ys-ease);
}
.ys-input:focus, .ys-form-control:focus {
  background: #fff;
  border-color: var(--ys-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}
.ys-input::placeholder { color: var(--ys-text-tertiary); }

/* ==================== 徽章 ==================== */
.ys-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--ys-radius-full);
  line-height: 1.6;
}
.ys-badge-primary { background: var(--ys-primary-50); color: var(--ys-primary); }
.ys-badge-success { background: rgba(52, 199, 89, 0.12); color: var(--ys-success); }
.ys-badge-warning { background: rgba(255, 149, 0, 0.12); color: var(--ys-warning); }
.ys-badge-danger  { background: rgba(255, 59, 48, 0.12); color: var(--ys-danger); }
.ys-badge-info    { background: rgba(90, 200, 250, 0.15); color: #0080bf; }

/* ==================== 头像 ==================== */
.ys-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ys-grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--ys-shadow-sm);
}
.ys-avatar-lg { width: 64px; height: 64px; font-size: 24px; }

/* ==================== 工具类 ==================== */
.ys-text-primary { color: var(--ys-text-primary) !important; }
.ys-text-secondary { color: var(--ys-text-secondary) !important; }
.ys-text-tertiary { color: var(--ys-text-tertiary) !important; }
.ys-text-brand { color: var(--ys-primary) !important; }
.ys-text-success { color: var(--ys-success) !important; }
.ys-text-danger { color: var(--ys-danger) !important; }
.ys-text-warning { color: var(--ys-warning) !important; }
.ys-bg-page { background: var(--ys-bg-page) !important; }
.ys-bg-card { background: var(--ys-bg-card) !important; }
.ys-flex { display: flex; }
.ys-flex-center { display: flex; align-items: center; justify-content: center; }
.ys-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ys-gap-4 { gap: 4px; } .ys-gap-8 { gap: 8px; } .ys-gap-12 { gap: 12px; } .ys-gap-16 { gap: 16px; }
.ys-rounded { border-radius: var(--ys-radius-md); }
.ys-rounded-lg { border-radius: var(--ys-radius-lg); }
.ys-shadow { box-shadow: var(--ys-shadow-md); }
.ys-fw-600 { font-weight: 600; } .ys-fw-700 { font-weight: 700; } .ys-fw-800 { font-weight: 800; }
.ys-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-transition { transition: all 0.25s var(--ys-ease); }

/* ==================== 动画 ==================== */
@keyframes ys-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ys-pop-in {
  0%   { opacity: 0; transform: scale(0.85); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes ys-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes ys-spin {
  to { transform: rotate(360deg); }
}
.ys-anim-fade { animation: ys-fade-in 0.4s var(--ys-ease-out); }
.ys-anim-pop  { animation: ys-pop-in 0.4s var(--ys-ease-spring); }

/* ==================== 用户中心侧边栏兼容 ==================== */
h2.page-header {
  margin: 10px 0 25px 0;
  padding-bottom: 15px;
}
.user-baseinfo {
  margin-bottom: 25px;
}
.user-baseinfo table tr td {
  color: #999;
}
@media (min-width: 992px) {
  .user-center .avatar-text,
  .user-center .avatar-img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
    line-height: 150px;
    font-size: 70px;
  }
  .user-center .avatar-img {
    font-size: 0;
  }
  .user-center .avatar-img img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
  }
}
.sidebar-toggle {
  display: none;
}
@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    top: 50px;
    z-index: 1029;
    height: calc(100vh - 50px);
    padding: 20px 0 20px 0;
    min-width: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    left: -250px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .sidebar-toggle {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 70px;
    border-radius: 50%;
    background: var(--ys-grad-primary);
    color: #fff;
    font-size: 22px;
    padding: 10px;
    line-height: 30px;
    height: 50px;
    width: 50px;
    text-align: center;
    z-index: 999999;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
  }
}
body.sidebar-open .sidenav {
  left: 0;
  width: 250px;
  box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075);
}
body.sidebar-open .sidebar-toggle i:before {
  content: "\f00d";
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .ys-navbar-inner { padding: 0 16px; height: 56px; }
  .ys-navbar-logo span { display: none; }
  .ys-container { padding: 16px 14px; }
}
/*# sourceMappingURL=user.css.map */