/* PC 端主题 — 左侧边栏布局 */
:root {
  --pc-sidebar-w: 180px;
  --pc-header-h: 0px;
}
html, body { font-size: 14px; }

/* ── 左侧导航栏 ── */
.pc-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--pc-sidebar-w);
  background: #fff;
  border-right: 1px solid #eef0f6;
  box-shadow: 2px 0 24px rgba(15,23,42,.07);
  display: flex; flex-direction: column;
  z-index: 200; overflow: hidden;
}

.pc-sidebar-logo {
  padding: 16px 14px 12px;
  border-bottom: 1px solid #f0f2f8;
  flex-shrink: 0;
  background: linear-gradient(160deg,#f8fffe 0%,#fff 100%);
}
.pc-logo-text {
  font-size: 15px; font-weight: 900; letter-spacing: -.3px;
  background: linear-gradient(135deg, #16d37d 0%, #0abf6a 55%, #38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; line-height: 1.3;
}
.pc-logo-sub {
  font-size: 9px; color: #b0b8cc; font-weight: 500;
  margin-top: 2px; letter-spacing: .3px;
}

.pc-sidebar-nav {
  flex: 1; overflow-y: auto; padding: 8px 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.pc-sidebar-nav::-webkit-scrollbar { width: 0; }

.pc-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: #64748b; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1); position: relative; white-space: nowrap;
}
.pc-nav-item:hover { background: #f0fdf8; color: #0d9e5e; }
.pc-nav-item.active {
  background: linear-gradient(90deg,#e5f9f0 0%,#f0fdf9 100%);
  color: #0c9158; font-weight: 700;
  box-shadow: 0 1px 6px rgba(22,211,125,.14), inset 0 0 0 1px rgba(22,211,125,.12);
}
.pc-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; background: linear-gradient(180deg,#16d37d,#0abf6a); border-radius: 0 3px 3px 0;
}
.pc-nav-icon {
  flex-shrink: 0; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.pc-nav-svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.pc-nav-item:hover .pc-nav-icon { transform: scale(1.14); }
.pc-nav-label { flex: 1; line-height: 1; }

.pc-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── 侧边栏底部 ── */
.pc-sidebar-footer {
  padding: 8px 8px 12px; border-top: 1px solid #f0f2f8;
  flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(0deg,#f8fffe 0%,#fff 100%);
}
.pc-sidebar-svc {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: #e8faf2; border: 1px solid rgba(22,211,125,.3);
  color: #0d9e5e; font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: left; transition: background .18s;
}
.pc-sidebar-svc:hover { background: #d4f5e9; }
.pc-sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background .18s;
}
.pc-sidebar-user:hover { background: #f5f7fa; }
.pc-sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #16d37d, #0abf6a);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22,211,125,.3);
}
.pc-sidebar-uname {
  font-size: 12px; font-weight: 600; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.pc-sidebar-logout {
  width: 100%; padding: 7px 12px; border-radius: 7px;
  background: transparent; border: 1px solid #e8e8e8;
  color: #999; font-size: 11px; cursor: pointer; transition: all .18s;
}
.pc-sidebar-logout:hover { border-color: var(--danger); color: var(--danger); background: #fff1f0; }
.pc-sidebar-login {
  display: block; padding: 9px 12px; border-radius: 8px;
  background: linear-gradient(135deg, #16d37d, #0abf6a);
  color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none; text-align: center; transition: opacity .18s;
}
.pc-sidebar-login:hover { opacity: .88; }

/* ── 主内容区 ── */
.pc-main { padding-left: var(--pc-sidebar-w); min-height: 100vh; background: var(--bg); }
.pc-container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.pc-section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ── 筛选条 ── */
.pc-filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.pc-filter-bar input, .pc-filter-bar select { height: 36px; }
.pc-filter-label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pc-pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-pill {
  height: 30px; padding: 0 14px; border-radius: 99px; font-size: 13px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; transition: all .2s;
}
.pc-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pc-pill:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.pc-pill.pc-pill-tag { border-color: #ffb74d; color: #e65100; background: #fff8f0; }
.pc-pill.pc-pill-tag.active { background: #ff8c00; border-color: #ff8c00; color: #fff; }
.pc-pill.pc-pill-tag:hover:not(.active) { border-color: #ff8c00; color: #ff8c00; }

/* ── 高级筛选面板 ── */
.pc-adv-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 16px; border-top: 3px solid var(--primary-light);
}
.pc-adv-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.pc-adv-item { display: flex; flex-direction: column; gap: 6px; }
.pc-adv-item .form-select, .pc-adv-item .form-input { height: 36px; }
.pc-adv-label { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ── 订单列表 ── */
.pc-order-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 14px; }
.pc-order-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s, transform .15s;
  border: 1px solid transparent;
}
.pc-order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.pc-order-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pc-order-title { font-size: 15px; font-weight: 600; line-height: 1.4; flex: 1; }
.pc-order-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pc-order-time { font-size: 12px; color: var(--text-3); }
.pc-order-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.pc-order-amount { font-size: 22px; font-weight: 800; color: var(--danger); }
.pc-order-amount small { font-size: 12px; font-weight: 400; color: var(--text-3); }

/* ── 详情模态框 ── */
.pc-modal-wrap {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.38); backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
}
.pc-modal-wrap.show { display: flex; }
.pc-modal {
  background: #fff; border-radius: 18px;
  width: 620px; max-width: 96vw; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(15,23,42,.12), 0 32px 80px rgba(15,23,42,.14);
  animation: modalIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(8px); } to { opacity:1; transform:none; } }
.pc-modal-header {
  display: flex; align-items: center; padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border); gap: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,#f8fffe 0%,#fff 100%);
  border-radius: 18px 18px 0 0;
}
.pc-modal-title { font-size: 17px; font-weight: 800; flex: 1; color: #0f172a; letter-spacing: -.2px; }
.pc-modal-close {
  width: 30px; height: 30px; border-radius: 50%; background: #f1f3f7;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; color: #94a3b8;
  transition: all .18s;
}
.pc-modal-close:hover { background: var(--danger-light); color: var(--danger); transform: scale(1.08); }
.pc-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.pc-modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; gap: 10px; justify-content: flex-end; }

/* ── 信息行 ── */
.pc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 14px; }
.pc-info-item { display: flex; flex-direction: column; gap: 3px; }
.pc-info-label { font-size: 12px; color: var(--text-3); }
.pc-info-val { font-size: 14px; color: var(--text); }

/* ── 上传区域 ── */
.pc-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer;
  transition: border-color .2s; background: var(--bg); margin: 10px 0;
}
.pc-upload-area:hover { border-color: var(--primary); }
.pc-upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pc-upload-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* ── 表格 ── */
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th {
  background: #f7f9fc; font-size: 12px; color: var(--text-3);
  padding: 11px 14px; text-align: left; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1.5px solid var(--border);
}
.pc-table td { padding: 14px; font-size: 14px; border-bottom: 1px solid #f4f6f9; vertical-align: middle; color: var(--text); }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tbody tr { transition: background .15s; }
.pc-table tbody tr:hover td { background: #f8fffe; }
.pc-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }

/* ── 登录页 ── */
.pc-login-page { min-height: 100vh; display: flex; background: #f4f6f9; }
.pc-login-left {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(145deg,#e8faf2 0%,#f0fdf9 40%,#e8f4ff 100%);
  position: relative; overflow: hidden;
}
.pc-login-left::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(22,211,125,.18) 0%, transparent 70%);
  pointer-events: none;
}
.pc-login-left::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(56,189,248,.14) 0%, transparent 70%);
  pointer-events: none;
}
.pc-login-brand {
  font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 32px;
  background: linear-gradient(135deg,#16d37d,#0abf6a 60%,#38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pc-login-slogan { font-size: 34px; font-weight: 800; color: #1a2235; line-height: 1.35; }
.pc-login-slogan span { color: var(--primary); }
.pc-login-desc { font-size: 15px; color: var(--text-2); margin-top: 14px; }
.pc-login-box {
  width: 440px; background: #fff; border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 4px 20px rgba(15,23,42,.06), 0 24px 72px rgba(15,23,42,.1);
  flex-shrink: 0; margin: auto 70px auto 0;
  border: 1px solid #eef0f6;
}
@media(max-width: 860px) {
  .pc-login-left { display: none; }
  .pc-login-box { margin: auto; width: 100%; max-width: 440px; border-radius: 0; box-shadow: none; }
  .pc-login-page { justify-content: center; align-items: center; }
}
.pc-login-title { font-size: 24px; font-weight: 800; margin-bottom: 28px; color: #1a1a1a; }
.pc-login-btn {
  width: 100%; height: 50px; border-radius: var(--radius);
  background: linear-gradient(90deg,var(--primary),var(--primary-dark));
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(22,211,125,.38); margin-top: 8px;
  transition: opacity .2s, box-shadow .2s;
}
.pc-login-btn:hover { box-shadow: 0 6px 24px rgba(22,211,125,.5); }
.pc-login-btn:active { opacity: .88; }
