/* PC 布局 — 左侧固定导航 + 右侧内容区 */
:root {
  --pc-container: 1280px;
  --pc-sidebar-w: 220px;
  --pc-chrome-row-h: 64px;
  --pc-topbar-h: var(--pc-chrome-row-h);
  --pc-chrome-bg: #0e121c;
}

.pc-container {
  width: 100%;
  max-width: var(--pc-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pc-app-frame {
  min-height: 100vh;
}

/* ========== 左侧导航栏 ========== */
.pc-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  width: var(--pc-sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--pc-chrome-bg);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.pc-sidebar .pc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: var(--pc-chrome-row-h);
  min-height: var(--pc-chrome-row-h);
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.pc-brand img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.pc-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pc-brand-text {
  font-size: 16px;
  font-weight: 800;
  color: #f5d76e;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pc-sidenav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.pc-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 2px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.15s, background 0.15s;
}

.pc-sidenav-item i {
  font-size: 19px;
  opacity: 0.85;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.pc-sidenav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.pc-sidenav-icon .pc-sidenav-svg,
.pc-sidenav-svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* 侧边栏图标统一单色（跟随文字颜色） */
.pc-sidenav-item .pc-sidenav-svg path,
.pc-sidenav-item .pc-sidenav-svg [fill] {
  fill: currentColor !important;
}

.pc-sidenav-item:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.pc-sidenav-item.is-active {
  color: #f5d76e;
  background: rgba(212, 175, 55, 0.1);
  font-weight: 600;
}

.pc-sidenav-item.is-active i,
.pc-sidenav-item.is-active .pc-sidenav-icon {
  opacity: 1;
}

.pc-sidebar-foot {
  flex-shrink: 0;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pc-sidebar-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0 2px;
}

.pc-sidebar-deco-img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 50%;
  transform-origin: center center;
  animation: pc-sidebar-deco-spin 14s linear infinite;
  will-change: transform;
}

@keyframes pc-sidebar-deco-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pc-sidebar-deco-img {
    animation: none;
  }
}

.pc-live-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.pc-live-tag i {
  font-size: 18px;
  color: #4ade80;
  margin-right: -2px;
}

/* ========== 右侧主体区 ========== */
.pc-body {
  margin-left: var(--pc-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  height: var(--pc-chrome-row-h);
  min-height: var(--pc-chrome-row-h);
  background: var(--pc-chrome-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.pc-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.pc-header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}

.pc-header-search:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
}

.pc-header-search i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  flex-shrink: 0;
}

.pc-header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #f5efe4;
}

.pc-header-search input::placeholder { color: rgba(255, 255, 255, 0.38); }

.pc-search-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1200;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pc-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pc-header-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.15s, transform 0.15s;
}

.pc-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-header-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.pc-header-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.pc-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(189, 80, 211, 0.35);
  background: rgba(189, 80, 211, 0.12);
  color: #f0d4f8;
  transition: all 0.15s;
}

.pc-header-btn.is-vip {
  background: linear-gradient(135deg, rgba(189, 80, 211, 0.22), rgba(198, 94, 219, 0.14));
  border-color: rgba(189, 80, 211, 0.42);
  color: #f5e0fa;
}

.pc-header-btn.is-vip .pc-header-svg {
  width: 20px;
  height: 20px;
}

.pc-header-btn.is-vip:hover {
  background: linear-gradient(135deg, rgba(189, 80, 211, 0.32), rgba(198, 94, 219, 0.22));
  border-color: rgba(202, 110, 224, 0.55);
  box-shadow: 0 4px 14px rgba(189, 80, 211, 0.28);
}

.pc-header-btn.is-gold {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border-color: transparent;
  color: #1a1200;
}

.pc-header-btn.is-gold:hover {
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.4);
}

.pc-header-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(242, 61, 79, 0.1);
  border: 1px solid rgba(242, 61, 79, 0.28);
  color: #f5efe4;
  font-size: 13px;
  font-weight: 500;
  max-width: 140px;
  transition: background 0.15s, border-color 0.15s;
}

.pc-header-user .pc-header-svg {
  width: 22px;
  height: 22px;
}

.pc-header-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-header-user:hover {
  background: rgba(242, 61, 79, 0.16);
  border-color: rgba(252, 73, 86, 0.42);
}

/* ========== 主内容区 ========== */
.pc-main {
  flex: 1;
  background: var(--pc-bg);
}

.pc-content {
  padding-top: 28px;
  padding-bottom: 36px;
}

/* ========== 页脚 ========== */
.pc-site-footer {
  background: #141821;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.pc-footer-brand strong {
  display: block;
  font-size: 16px;
  color: #f5d76e;
  margin-bottom: 8px;
}

.pc-footer-brand p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.pc-footer-col em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.pc-footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}

.pc-footer-col a:hover { color: #f5d76e; }

.pc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* ========== 登录页 ========== */
body.pc-app.auth-layout .pc-sidebar,
body.pc-app.auth-layout .pc-topbar,
body.pc-app.auth-layout .pc-site-footer { display: none; }

body.pc-app.auth-layout .pc-body {
  margin-left: 0;
}

body.pc-app.auth-layout .pc-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.pc-app.auth-layout .pc-content {
  padding: 24px;
  max-width: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .pc-header-user span { display: none; }
  .pc-header-user { padding: 0 8px; }
  .pc-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --pc-sidebar-w: 72px; }

  .pc-sidebar .pc-brand {
    justify-content: center;
    padding: 0 8px;
  }

  .pc-brand-text { display: none; }

  .pc-sidenav {
    padding: 10px 6px;
  }

  .pc-sidenav-item {
    justify-content: center;
    padding: 10px 8px;
  }

  .pc-sidenav-item span { display: none; }

  .pc-sidebar-foot {
    padding: 8px 4px 10px;
    text-align: center;
    gap: 6px;
  }

  .pc-sidebar-deco-img {
    width: 56px;
    height: 56px;
  }

  .pc-live-tag span,
  .pc-live-tag { font-size: 0; }

  .pc-live-tag i {
    font-size: 20px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .pc-container { padding-left: 16px; padding-right: 16px; }
  .pc-topbar-inner { gap: 10px; }
  .pc-header-search { max-width: none; }
  .pc-search-btn { display: none; }
  .pc-header-link { display: none; }
  .pc-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
