/* ============================================================
   全球美业专家 PC 版 · 引流模式
   深色科技风 · 固定 1200px 居中
   ============================================================ */

:root {
  --bg: #050816;
  --bg-2: #0a0e27;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(0, 212, 255, 0.14);
  --border-strong: rgba(0, 212, 255, 0.3);
  --cyan: #00d4ff;
  --violet: #7c3aed;
  --pink: #ec4899;
  --green: #06ffa5;
  --amber: #f59e0b;
  --red: #ff6b6b;
  --text: #ffffff;
  --text-2: #b8c5d6;
  --text-3: #6b7891;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
  padding-bottom: 60px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.pc-container { width: 1200px; margin: 0 auto; }

/* ===== 顶部导航 ===== */
.pc-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.pc-topbar-inner { display: flex; align-items: center; height: 64px; gap: 40px; }
.pc-logo { display: flex; align-items: center; gap: 10px; }
.pc-logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: url('logo.png') center/cover no-repeat;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}
.pc-logo-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.pc-nav { display: flex; gap: 6px; flex: 1; }
.pc-nav-item {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text-2);
  transition: all 0.2s;
}
.pc-nav-item:hover { color: var(--text); background: var(--panel); }
.pc-nav-item.active { color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.pc-topbar-right { display: flex; align-items: center; gap: 12px; }
.pc-topbar-tip { font-size: 13px; color: var(--text-3); }

/* ===== 主内容区 ===== */
.pc-main { min-height: calc(100vh - 124px); }

/* ===== 页面通用 ===== */
.pc-page { width: 1200px; margin: 0 auto; padding: 32px 0; }
.pc-page-head { margin-bottom: 24px; }
.pc-page-title { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; }
.pc-page-subtitle { font-size: 14px; color: var(--text-3); margin-top: 6px; }

/* ===== 首页 Hero ===== */
.pc-hero {
  position: relative; width: 1200px; height: 340px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0a2e 100%);
  border: 1px solid var(--border);
}
.pc-hero-wall { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(8,1fr); grid-template-rows: repeat(4,1fr); gap: 3px; padding: 8px; }
.pc-hero-wall .wall-tile {
  border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(0,212,255,0.06);
  animation: pcWallFloat 4s ease-in-out infinite;
}
.pc-hero-wall .wall-tile img {
  width: 100%; height: 100%; min-height: 32px; object-fit: cover;
  filter: brightness(0.65) contrast(1.1) saturate(0.9);
  transition: filter 0.5s;
}
.pc-hero-wall .wall-tile:hover img { filter: brightness(0.85) contrast(1.15); }
.pc-hero-wall .wall-empty { background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(124,58,237,0.06)); }
@keyframes pcWallFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
/* 科技网格线 */
.pc-hero-grid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: pcGridScroll 25s linear infinite;
}
@keyframes pcGridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}
/* 扫描线 */
.pc-hero-scan {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent);
  pointer-events: none;
  animation: pcScanMove 5s ease-in-out infinite;
}
@keyframes pcScanMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* 暗化遮罩 */
.pc-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5,8,22,0.1), rgba(5,8,22,0.45));
}
.pc-hero-content { position: relative; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; }
.pc-hero-content h1 { font-size: 48px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 40px rgba(0,212,255,0.4); }
.pc-hero-content .hero-sub { font-size: 16px; color: var(--text-3); letter-spacing: 4px; margin-top: 8px; }
.pc-hero-content .hero-cta { margin-top: 20px; font-size: 15px; color: var(--cyan); border: 1px solid var(--border-strong); padding: 8px 24px; border-radius: 24px; background: rgba(0,212,255,0.05); }

/* ===== 首页 Section ===== */
.pc-section { width: 1200px; margin: 40px auto 0; }
.pc-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pc-section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.pc-section-head .sub { font-size: 13px; color: var(--text-3); }
.pc-section-head .more { margin-left: auto; font-size: 13px; color: var(--cyan); }

/* 讲师横滚 */
.pc-teacher-marquee { overflow: hidden; }
.pc-teacher-track {
  display: flex; width: max-content;
  animation: pcTeacherScroll 30s linear infinite;
  will-change: transform;
}
.pc-teacher-track .pc-teacher-chip { margin-right: 20px; }
.pc-teacher-marquee:hover .pc-teacher-track { animation-play-state: paused; }
@keyframes pcTeacherScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.pc-teacher-chip {
  flex-shrink: 0; width: 100px; text-align: center;
  transition: transform 0.15s; cursor: pointer;
}
.pc-teacher-chip:hover { transform: scale(1.05); }
.pc-teacher-chip img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; border: 2px solid var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.pc-teacher-chip .t-noimg { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 8px; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--bg); }
.pc-teacher-chip .t-name { font-size: 14px; font-weight: 600; }
.pc-teacher-chip .t-title { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pc-teacher-chip .t-source { margin-top: 4px; }
.pc-teacher-chip .t-source a { font-size: 11px; color: var(--cyan); }

/* 分类标签条 */
.pc-cat-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pc-cat-item { padding: 6px 16px; border-radius: 20px; font-size: 13px; background: var(--panel); color: var(--text-2); border: 1px solid transparent; transition: all 0.2s; }
.pc-cat-item:hover { background: var(--panel-2); }
.pc-cat-item.active { background: rgba(0,212,255,0.15); color: var(--cyan); border-color: var(--border-strong); }

/* ===== 课程网格 ===== */
.pc-course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pc-course-card { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; }
.pc-course-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.pc-course-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-2); }
.pc-course-thumb .cover-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.pc-course-thumb .cover-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.pc-course-thumb .play-hint { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.pc-course-card:hover .play-hint { opacity: 1; }
.pc-course-thumb .play-hint span { font-size: 14px; color: var(--cyan); border: 1px solid var(--cyan); padding: 6px 16px; border-radius: 20px; }
.pc-course-body { padding: 14px 16px; }
.pc-course-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-course-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.pc-course-meta .tag-free { color: var(--green); }
.pc-course-meta .tag-vip { color: var(--amber); }

/* ===== 讲师页 ===== */
.pc-teacher-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.pc-teacher-card-big { text-align: center; padding: 24px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; }
.pc-teacher-card-big:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pc-teacher-card-big img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--border-strong); }
.pc-teacher-card-big .t-noimg { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--bg); }
.pc-teacher-card-big .t-name { font-size: 16px; font-weight: 600; }
.pc-teacher-card-big .t-title { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.pc-teacher-card-big .t-source { margin-top: 8px; }
.pc-teacher-card-big .t-source a { font-size: 12px; color: var(--cyan); }

/* ===== 引流弹窗 ===== */
.pc-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 200; backdrop-filter: blur(4px);
}
.pc-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 201; width: 400px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow); overflow: hidden;
}
.pc-modal-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--panel-2); border: none; color: var(--text-2);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1;
}
.pc-modal-close:hover { background: var(--red); color: #fff; }
.pc-modal-cover { width: 100%; height: 180px; background-size: cover; background-position: center; background-color: var(--bg); }
.pc-modal-body { padding: 24px 28px; text-align: center; }
.pc-modal-title { font-size: 18px; font-weight: 700; }
.pc-modal-meta { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.pc-modal-qr { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 10px; margin: 20px auto 12px; }
.pc-modal-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pc-modal-qr-tip { font-size: 14px; color: var(--cyan); font-weight: 600; }
.pc-modal-qr-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ===== Toast ===== */
.pc-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-2); color: var(--text); padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 14px; opacity: 0; transition: all 0.3s; z-index: 300;
  pointer-events: none;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pc-toast.err { border-color: var(--red); color: var(--red); }

/* ===== 通用状态 ===== */
.pc-state { text-align: center; padding: 80px 40px; }
.pc-state .emoji { font-size: 48px; }
.pc-state .title { font-size: 18px; font-weight: 600; margin-top: 12px; }
.pc-state .desc { color: var(--text-3); margin-top: 8px; }

/* Spinner */
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pc-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px; color: var(--text-3); }

/* Skeleton */
.skeleton { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.sk { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Footer ===== */
.pc-footer { border-top: 1px solid var(--border); display: flex; align-items: center; padding: 14px 0; }
.pc-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; font-size: 12px; color: var(--text-3); }
.pc-footer-inner > div:first-child { font-weight: 600; letter-spacing: 2px; }
.pc-icp a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.pc-icp a:hover { color: var(--cyan); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
