/* ==========================================================
   织到手工纺 · 桌面端（PC）专属样式
   断点：≥ 1024px 使用；768–1023 自动降级为三列 / 单栏
   ========================================================== */

body.pc { min-height: 100vh; }

/* ---------- 主区域 ---------- */
main.pc-main { padding-bottom: 60px; }

/* ---------- Hero 大标题 ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 {
  font-size: 52px; line-height: 1.06; font-weight: 600; letter-spacing: -.035em;
  color: var(--text);
}
.hero p { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--muted); letter-spacing: -.01em; max-width: 620px; }
.hero-slim { padding: 52px 0 28px; }
.hero-slim h1 { font-size: 40px; }

/* ---------- 工具条（搜索 + 分类） ---------- */
.toolbar {
  position: sticky; top: 64px; z-index: 60;
  padding: 14px 0 12px; margin-bottom: 10px;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.toolbar-row { display: flex; align-items: center; gap: 18px; }
.toolbar .search { width: 300px; flex: none; }
.toolbar .chips { flex: 1; }

/* ---------- 视频网格：4 列 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
@media (max-width: 1099px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (max-width: 767px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 作品瀑布流：3 列 ---------- */
.masonry { column-count: 3; column-gap: 24px; }
.masonry > * { margin-bottom: 24px; }
@media (min-width: 1400px) { .masonry { column-count: 4; } }
@media (max-width: 1099px) { .masonry { column-count: 2; column-gap: 20px; } }

/* ---------- 播放页：左视频 右信息 ---------- */
.player-wrap { padding: 34px 0 0; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 44px; align-items: start; }
.player-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.player-stage video { width: 100%; height: 100%; display: block; background: #000; }
.video-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .7); font-size: 14px; background: #0a0a0a;
}
.player-info { padding-top: 4px; }
.player-title { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.028em; }
.player-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.resume-tip { font-size: 12.5px; color: var(--muted-2); }
.desc-block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.desc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.desc-bar { width: 3px; height: 14px; border-radius: 2px; background: var(--text); }
.desc-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.desc-text { font-size: 14.5px; line-height: 1.85; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.desc-empty { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* 返回 */
.page-head { padding: 22px 0 6px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px 0 8px;
  border-radius: 980px; font-size: 13.5px; color: var(--muted);
  transition: background .2s, color .2s;
}
.back-btn:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.back-btn svg { width: 16px; height: 16px; }

/* ---------- 作品详情：左图 右信息 ---------- */
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 28px; }
.work-gallery { display: flex; flex-direction: column; gap: 14px; }
.work-gallery img {
  width: 100%; height: auto; border-radius: 14px; background: var(--bg-soft);
  cursor: zoom-in; box-shadow: var(--shadow);
}
.side-card { position: sticky; top: 88px; }
.work-title { font-size: 28px; line-height: 1.24; font-weight: 600; letter-spacing: -.03em; }
.work-intro { margin-top: 16px; font-size: 14.5px; line-height: 1.85; color: var(--muted); white-space: pre-wrap; }
.work-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.side-divide { height: 1px; background: var(--line); margin: 22px 0; }
.side-label { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* ---------- 我的 ---------- */
.me-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 20px; }
.me-side { position: sticky; top: 92px; }
.me-side-card { padding: 30px 24px; text-align: center; }
.me-side-card .avatar-lg { margin: 0 auto 16px; width: 92px; height: 92px; }
.me-side-name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.me-side-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted-2); }
.me-stack { display: flex; flex-direction: column; gap: 18px; }
.me-section-title { font-size: 13px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; margin: 0 0 12px 4px; }
.me-form { padding: 8px 24px; }
.menu-list { overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
  transition: background .18s;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: rgba(0, 0, 0, .025); }
.menu-icon { width: 19px; height: 19px; color: var(--muted); flex: none; }
.menu-arrow { margin-left: auto; color: var(--muted-2); font-size: 18px; }

/* ---------- 观看历史 ---------- */
.hist-list { display: flex; flex-direction: column; gap: 2px; }
.hist-item {
  display: flex; align-items: center; gap: 18px; padding: 14px 20px;
  border-radius: 14px; cursor: pointer; transition: background .18s;
}
.hist-item:hover { background: rgba(0, 0, 0, .035); }
.hist-thumb { width: 132px; height: 78px; flex: none; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.hist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hist-body { flex: 1; min-width: 0; }
.hist-title { font-size: 15px; font-weight: 500; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted-2); }
.hist-del { flex: none; font-size: 13px; color: var(--muted-2); padding: 6px 10px; border-radius: 8px; }
.hist-del:hover { background: rgba(0, 0, 0, .05); color: var(--danger); }

/* ---------- 登录页：左右分栏 ---------- */
.login-page { min-height: 100vh; display: flex; }
.login-visual {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 72px; background: linear-gradient(160deg, #f5f5f7 0%, #ececed 100%);
  position: relative; overflow: hidden;
}
.login-visual::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -180px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(0, 113, 227, .12), transparent 62%);
}
.login-visual h1 { margin-top: 0; font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.login-visual p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.login-points { margin-top: 38px; display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.login-points li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--text-2); }
.login-points i {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 113, 227, .12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal;
}
.login-panel { width: 520px; flex: none; display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--surface); }
.login-card { width: 100%; max-width: 356px; text-align: center; }
.login-page .icp-bar { position: fixed; left: 0; right: 0; bottom: 18px; }
.login-card .login-logo { width: 156px; height: auto; object-fit: contain; margin: 0 auto 16px; }
.login-title { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.login-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.qr-box {
  position: relative; width: 232px; height: 232px; margin: 30px auto 16px;
  border-radius: 18px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--line);
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box.idle { flex-direction: column; gap: 12px; color: var(--muted-2); font-size: 13px; }
.qr-box.done { border-color: var(--accent); background: rgba(0, 113, 227, .05); }
.qr-tip { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.qr-status { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted-2); }
.agree {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 22px;
  font-size: 12.5px; color: var(--muted); text-align: left; line-height: 1.6;
}
.agree input { margin-top: 2px; accent-color: var(--accent); }
.agree a { color: var(--accent); }
.login-tip { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--danger); text-align: center; }
.area-mock { margin-top: 12px; font-size: 12px; color: var(--muted-2); }
.area-mock a { color: var(--accent); text-decoration: underline; }
.login-foot { margin-top: 26px; font-size: 11.5px; color: var(--muted-2); line-height: 1.7; }

@media (max-width: 1023px) {
  .login-visual { display: none; }
  .login-panel { width: 100%; }
  .player-layout, .work-layout, .me-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side-card, .me-side { position: static; }
  .hero h1 { font-size: 40px; }
  .hero { padding: 48px 0 28px; }
  .toolbar { position: static; padding: 0; background: none; backdrop-filter: none; }
  .toolbar-row { flex-wrap: wrap; }
  .toolbar .search { width: 100%; }
}
