/* ============================================================
   全局样式 - 响应式多功能平台
   ============================================================ */
:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-md: 0 8px 32px rgba(79,70,229,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --sidebar-w: 240px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;font-size:16px;}
body{font-family:'PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;height:auto;display:block;}
ul,ol{list-style:none;}
input,textarea,select,button{font-family:inherit;font-size:inherit;outline:none;border:none;}
button{cursor:pointer;}

/* Typography */
h1{font-size:clamp(1.5rem,4vw,2.25rem);font-weight:700;line-height:1.2;}
h2{font-size:clamp(1.2rem,3vw,1.75rem);font-weight:700;}
h3{font-size:clamp(1rem,2.5vw,1.35rem);font-weight:600;}
h4{font-size:1.05rem;font-weight:600;}

/* ============================================================
   顶部导航栏
   ============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex; align-items: center; padding: 0 24px;
  gap: 20px;
}
.topnav .logo {
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap; flex-shrink: 0;
}
.topnav .nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.topnav .nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); white-space: nowrap;
}
.topnav .nav-links a:hover,
.topnav .nav-links a.active {
  color: var(--primary); background: #eef2ff;
}
.topnav .nav-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.topnav .nav-right .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 6px; border-radius: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 16px; flex-direction: column; gap: 4px; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary); background: #eef2ff;
}

/* ============================================================
   页面主体布局
   ============================================================ */
.page-body {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  padding: 32px 24px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
  margin-top: calc(var(--nav-h) + 0px);
}
.page-body.full { max-width: none; padding: 32px 24px; }

/* ============================================================
   通用卡片
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.3); }
.btn-secondary {
  background: #f1f5f9; color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline {
  background: transparent; border-color: var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); transition: var(--transition);
  font-size: 0.92rem;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   标签
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
}
.tag-primary { background: #eef2ff; color: var(--primary); }
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: #dbeafe; color: #1e40af; }
.tag-secondary { background: #f1f5f9; color: var(--text-muted); }
.tag-gold { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }

.tags-input-wrap {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #fff; cursor: text; transition: var(--transition);
}
.tags-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.tags-input-wrap .tag { cursor: pointer; }
.tags-input-wrap .tag .rm { margin-left: 2px; opacity: 0.7; }
.tags-input-wrap .tag .rm:hover { opacity: 1; }
.tags-input-wrap input {
  border: none; outline: none; background: transparent;
  font-size: 0.88rem; min-width: 80px; flex: 1;
}

/* ============================================================
   徽章/等级
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 9px; border-radius: 12px; font-size: 0.76rem; font-weight: 700;
}
.badge-a { background: #fee2e2; color: #b91c1c; }
.badge-b { background: #fef3c7; color: #b45309; }
.badge-c { background: #dbeafe; color: #1d4ed8; }
.badge-d { background: #f1f5f9; color: #64748b; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ============================================================
   弹窗 Modal
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 2000; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; animation: slideUp 0.25s ease;
}
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 900px; }

/* 照片详情翻页按钮（悬浮在图片左右两侧） */
.pd-nav-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  z-index: 5;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(15,23,42,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  padding: 0;
  backdrop-filter: blur(4px);
}
.pd-nav-overlay.pd-nav-right { left: auto; right: 10px; }
.pd-nav-overlay:hover:not(:disabled) { background: rgba(99,102,241,0.85); border-color: var(--primary); }
.pd-nav-overlay:disabled { opacity: 0.2; cursor: not-allowed; }
#pdImgWrap { position: relative; }
#pdImgWrap:hover .pd-nav-overlay { opacity: 0.85; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: #f1f5f9; color: var(--text-muted); font-size: 1.1rem;
  transition: var(--transition); flex-shrink: 0;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px 20px; border-top: 1px solid var(--border);
}
@keyframes slideUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }

/* ============================================================
   页面标题区
   ============================================================ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.page-header-left .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px;
}
.page-header-left .breadcrumb a { color: var(--primary); }
.page-header-left .breadcrumb span { color: var(--text-muted); }
.page-header-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   网格
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
table th {
  background: #f8fafc; text-align: left;
  padding: 12px 16px; font-size: 0.84rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
table td {
  padding: 12px 16px; font-size: 0.88rem;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #f8faff; }

/* ============================================================
   统计卡片
   ============================================================ */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon.purple { background: #eef2ff; }
.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #d1fae5; }
.stat-icon.orange { background: #fef3c7; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   相册相关
   ============================================================ */
.album-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  cursor: pointer;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.album-cover {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg,#eef2ff,#dbeafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.album-info { padding: 14px 16px; }
.album-name { font-weight: 700; margin-bottom: 4px; }
.album-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; }
.photo-item {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); position: relative; cursor: pointer;
  background: #f1f5f9;
}
.photo-item img { width: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
@media (max-width: 768px) {
  .photo-item img { aspect-ratio: unset; }
}
.photo-item .photo-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; opacity: 0; transition: var(--transition);
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-overlay .photo-desc { color: #fff; font-size: 0.78rem; line-height: 1.4; }

/* 案例页视频缩略图 */
.video-item { background: #0f172a; }
.video-thumb-wrap {
  width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; cursor: pointer;
}
.video-thumb-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  transition: var(--transition);
}
.video-item:hover .video-play-btn { font-size: 2.6rem; color: #fff; background: rgba(0,0,0,0.4); }
.video-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: .68rem; padding: 2px 7px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   视频
   ============================================================ */
.video-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-thumb {
  width: 100%; aspect-ratio: 16/9; background: #0f172a;
  position: relative; overflow: hidden; cursor: pointer;
}
.video-thumb .play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.video-thumb:hover .play-btn { transform: scale(1.1); color: #fff; }
.video-info { padding: 14px 16px; }
.video-title { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.video-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   客户
   ============================================================ */
.customer-row { display: flex; align-items: center; gap: 12px; }
.customer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.visit-timeline { border-left: 2px solid var(--primary-light); padding-left: 20px; }
.visit-item {
  position: relative; padding-bottom: 20px;
}
.visit-item::before {
  content: ''; position: absolute; left: -26px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}
.visit-item:last-child { padding-bottom: 0; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 24px; flex-wrap: wrap;
}
.pagination .page-btn {
  min-width: 36px; height: 36px; border-radius: 8px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 500;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  transition: var(--transition); cursor: pointer;
}
.pagination .page-btn:hover,
.pagination .page-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ============================================================
   提示/空状态
   ============================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state .empty-title { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.empty-state .empty-desc { font-size: 0.86rem; color: var(--text-muted); max-width: 300px; }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ============================================================
   文件上传区
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: var(--transition); background: #fafbff;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary); background: #eef2ff;
}
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-zone .upload-text { font-size: 0.9rem; color: var(--text-muted); }
.upload-zone .upload-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 10px 20px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); background: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition); white-space: nowrap;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   搜索过滤栏
   ============================================================ */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 20px; padding: 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.search-box .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; color: var(--text-muted); pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .topnav .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .page-body { padding: 20px 14px; max-width: 100%; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .card { padding: 16px; overflow:hidden; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  table { font-size: 0.82rem; }
  table th, table td { padding: 10px 12px; }
  .filter-bar { gap: 8px; }
}

/* ============================================================
   登录/注册专用
   ============================================================ */
.auth-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #06b6d4 100%);
}
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; color: #fff;
}
.auth-left-content { max-width: 420px; }
.auth-left h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 16px; }
.auth-left p { font-size: 1.05rem; opacity: 0.85; line-height: 1.7; margin-bottom: 32px; }
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; }
.auth-feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.auth-feature-item span:first-child {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.auth-right {
  width: 480px; max-width: 100%; display: flex; align-items: center;
  justify-content: center; padding: 40px 32px; background: #fff;
}
.auth-box { width: 100%; max-width: 380px; }
.auth-box .auth-logo {
  font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-box h2 { text-align: center; font-size: 1.4rem; margin-bottom: 6px; }
.auth-box .auth-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-size: 0.82rem; color: var(--text-muted);
}
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.social-btn {
  width: 100%; padding: 11px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; transition: var(--transition);
}
.social-btn:hover { background: #f8fafc; border-color: var(--primary); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.forgot-link { color: var(--primary); font-size: 0.86rem; font-weight: 500; }
.password-wrap { position: relative; }
.password-wrap .pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer;
}

@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 32px 20px; }
  .auth-box { max-width: 100%; }
}

/* ============================================================
   进度条/评分
   ============================================================ */
.progress-bar {
  height: 8px; border-radius: 4px; background: var(--border); overflow: hidden;
}
.progress-bar .fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg,var(--primary),var(--secondary));
  transition: width 0.5s ease;
}

/* ============================================================
   轻量 Toast
   ============================================================ */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); font-size: 0.88rem; min-width: 220px;
  animation: toastIn 0.25s ease;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--primary); color: #fff; }
@keyframes toastIn { from{opacity:0;transform:translateX(40px);} to{opacity:1;transform:translateX(0);} }

/* dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 160px; z-index: 500; display: none; overflow: hidden;
}
.dropdown-menu.open { display: block; animation: slideUp 0.18s ease; }
.dropdown-menu a,.dropdown-menu button {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 0.88rem; width: 100%; text-align: left;
  color: var(--text); background: none; transition: var(--transition);
}
.dropdown-menu a:hover,.dropdown-menu button:hover { background: #f8faff; color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* 视频播放器覆盖 */
.player-wrap {
  border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
}
.player-wrap video,
.player-wrap iframe { width: 100%; height: 100%; border: none; }

/* 感悟列表 */
.insight-item {
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; transition: var(--transition);
}
.insight-item:hover { border-color: var(--primary-light); background: #fafbff; }
.insight-user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.insight-user .avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.78rem;
}
.insight-user .uname { font-weight: 600; font-size: 0.88rem; }
.insight-user .utime { font-size: 0.78rem; color: var(--text-muted); }
.insight-text { font-size: 0.9rem; line-height: 1.7; color: var(--text); margin-bottom: 8px; }

/* 销售进度 */
.sale-stage {
  display: flex; align-items: center; gap: 0;
}
.sale-stage .stage-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border); background: #fff; color: var(--text-muted);
  z-index: 1;
}
.sale-stage .stage-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
.sale-stage .stage-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sale-stage .stage-line { flex: 1; height: 2px; background: var(--border); }
.sale-stage .stage-line.done { background: var(--success); }

/* ============================================================
   个人资料专用
   ============================================================ */
.profile-avatar-wrap {
  position: relative; display: inline-block;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 800;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.profile-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.profile-section {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-section-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
