/* PC 门户密度层：只覆盖字号/间距/密度，不新造颜色（Token 源见 pc-tokens.css） */
:root {
  /* PC 密度层：正文 16→15 提升信息密度，容器 1200px */
  --pc-container: 1200px;
  --pc-header-h: 64px;
  --font-body-size: 15px;
  --font-body-lh: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--gray-50); color: var(--gray-900); font-family: var(--font-base); font-size: var(--font-body-size); line-height: var(--font-body-lh); }
body { min-width: 320px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.container { width: var(--pc-container); max-width: calc(100% - 48px); margin: 0 auto; }

/* ===== 顶栏 ===== */
.pc-header { background: var(--brand-600); height: var(--pc-header-h); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-raised); }
.pc-header .container { display: flex; align-items: center; gap: 24px; height: 100%; }
.pc-logo { color: var(--pure-white); font-size: var(--font-title-lg-size); font-weight: var(--fw-semibold); letter-spacing: 1px; }
.pc-city { color: var(--brand-100); font-size: var(--font-body-sm-size); }
.pc-search { flex: 1; max-width: 480px; display: flex; }
.pc-search input {
  flex: 1; height: 38px; border: none; outline: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0 16px; font-size: var(--font-body-sm-size); color: var(--gray-900);
  background: var(--pure-white);
}
.pc-search button {
  height: 38px; border: none; cursor: pointer;
  background: var(--promo-500); color: var(--pure-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0 20px; font-size: var(--font-body-sm-size); font-weight: var(--fw-medium);
}
.pc-search button:hover { background: var(--promo-600); }
.pc-header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.pc-header-right a, .pc-header-right button {
  color: var(--pure-white); font-size: var(--font-body-sm-size); cursor: pointer;
  border: none; background: transparent;
}
.pc-header-right .pc-pub {
  background: var(--promo-500); border-radius: var(--radius-md);
  padding: 8px 18px; font-weight: var(--fw-medium);
}
.pc-header-right .pc-pub:hover { background: var(--promo-600); }

/* ===== 分类导航条 ===== */
.pc-nav { background: var(--pure-white); box-shadow: var(--shadow-card); position: sticky; top: var(--pc-header-h); z-index: 99; }
.pc-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.pc-nav a {
  padding: 12px 16px; font-size: var(--font-body-sm-size); color: var(--gray-700);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.pc-nav a.on { color: var(--brand-700); border-bottom-color: var(--brand-500); font-weight: var(--fw-medium); }
.pc-nav a:hover { color: var(--brand-600); }

/* ===== 卡片与列表 ===== */
.pc-card { background: var(--pure-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pc-list { display: flex; flex-direction: column; gap: 12px; }

/* 信息条目（横排） */
.pc-item { display: flex; gap: 16px; padding: 16px; cursor: pointer; transition: box-shadow var(--duration-fast) var(--ease-out); }
.pc-item:hover { box-shadow: var(--shadow-raised); }
.pc-item__cover { width: 120px; height: 90px; border-radius: var(--radius-md); background: var(--gray-100); object-fit: cover; flex-shrink: 0; }
.pc-item__cover-ph {
  width: 120px; height: 90px; border-radius: var(--radius-md); background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: var(--font-title-lg-size); font-weight: var(--fw-semibold); flex-shrink: 0;
}
.pc-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-item__title { font-size: var(--font-title-size); font-weight: var(--fw-semibold); color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item__title .pc-topmark { color: var(--promo-600); font-size: var(--font-body-sm-size); font-weight: var(--fw-medium); margin-right: 6px; }
.pc-item__meta { color: var(--gray-500); font-size: var(--font-body-sm-size); margin-top: 4px; }
.pc-item__bottom { margin-top: auto; display: flex; align-items: baseline; gap: 12px; }
.pc-item__price { font-family: var(--font-num); font-feature-settings: 'tnum'; color: var(--promo-500); font-size: var(--font-title-lg-size); font-weight: var(--fw-semibold); }

/* ===== 徽章 ===== */
.pc-badge { display: inline-flex; align-items: center; border-radius: var(--radius-sm); font-size: var(--font-caption-size); line-height: 18px; padding: 0 6px; font-weight: var(--fw-medium); }
.pc-badge--top { background: var(--promo-50); color: var(--promo-600); border: 1px solid var(--promo-100); }
.pc-badge--ad { background: var(--promo-500); color: var(--pure-white); }
.pc-badge--cat { background: var(--gray-100); color: var(--gray-600); }
.pc-badge--brand { background: var(--brand-100); color: var(--brand-700); }

/* ===== 按钮 ===== */
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 20px; border-radius: var(--radius-md);
  border: none; cursor: pointer; font-size: var(--font-body-sm-size); font-weight: var(--fw-medium);
  transition: background var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}
.pc-btn--primary { background: var(--brand-600); color: var(--pure-white); }
.pc-btn--primary:hover { background: var(--brand-700); }
.pc-btn--secondary { background: var(--pure-white); color: var(--brand-700); border: 1px solid var(--brand-500); }
.pc-btn--promo { background: var(--promo-500); color: var(--pure-white); }
.pc-btn--promo:hover { background: var(--promo-600); }
.pc-btn--text { background: transparent; color: var(--gray-600); }
.pc-btn--text:hover { color: var(--gray-900); }
.pc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pc-btn--lg { min-height: 48px; font-size: var(--font-body-size); padding: 0 28px; }

/* ===== 侧栏筛选（列表页） ===== */
.pc-layout { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0 48px; }
.pc-side { width: 240px; flex-shrink: 0; position: sticky; top: calc(var(--pc-header-h) + 56px); }
.pc-side__group { padding: 16px; margin-bottom: 12px; }
.pc-side__title { font-size: var(--font-body-sm-size); font-weight: var(--fw-semibold); color: var(--gray-900); margin-bottom: 10px; }
.pc-side__opts { display: flex; flex-direction: column; gap: 2px; }
.pc-side__opt {
  text-align: left; border: none; background: transparent; cursor: pointer;
  font-size: var(--font-body-sm-size); color: var(--gray-700);
  padding: 7px 10px; border-radius: var(--radius-sm); min-height: 34px;
}
.pc-side__opt:hover { background: var(--gray-100); }
.pc-side__opt.on { background: var(--brand-50); color: var(--brand-700); font-weight: var(--fw-medium); }
.pc-main { flex: 1; min-width: 0; }

/* ===== 居中弹窗（PC 付费解锁/登录引导） ===== */
.pc-modal-mask {
  position: fixed; inset: 0; background: var(--overlay-modal);
  display: flex; align-items: center; justify-content: center; z-index: 400;
  animation: pcFadeIn var(--duration-fast) var(--ease-out);
}
.pc-modal {
  width: 420px; max-width: calc(100% - 48px);
  background: var(--pure-white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal); padding: 28px 28px 24px;
  animation: pcPopIn var(--duration-base) var(--ease-out);
}
.pc-modal__title { font-size: var(--font-title-lg-size); font-weight: var(--fw-semibold); color: var(--gray-900); text-align: center; }
.pc-modal__close { position: absolute; margin: 0; width: 32px; height: 32px; }
.pc-modal__body { margin-top: 16px; display: flex; flex-direction: column; align-items: center; }
.pc-modal .pc-btn { width: 100%; }
@keyframes pcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcPopIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ===== 表单 ===== */
.pc-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pc-field label { font-size: var(--font-body-sm-size); color: var(--gray-700); font-weight: var(--fw-medium); }
.pc-field input {
  height: 44px; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 0 14px; font-size: var(--font-body-sm-size); color: var(--gray-900); outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.pc-field input:focus { border-color: var(--brand-500); }
.pc-field input.err { border-color: var(--danger-text); }
.pc-field .pc-err { color: var(--danger-text); font-size: var(--font-caption-size); }

/* ===== 空态/加载/错误 ===== */
.pc-state { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; color: var(--gray-600); }
.pc-state__fig { width: 72px; height: 72px; border-radius: var(--radius-xl); background: var(--gray-100); margin-bottom: 16px; }
.pc-state__t { font-size: var(--font-body-size); color: var(--gray-600); }
.pc-state__d { font-size: var(--font-body-sm-size); color: var(--gray-500); margin-top: 4px; }
.pc-skel { height: 122px; border-radius: var(--radius-lg); background: var(--gray-100); animation: pcSk .8s ease-in-out infinite alternate; }
@keyframes pcSk { from { opacity: .55; } to { opacity: 1; } }

/* ===== 页脚 ===== */
.pc-footer { border-top: 1px solid var(--gray-100); background: var(--pure-white); margin-top: 24px; }
.pc-footer .container { padding: 24px 0; color: var(--gray-500); font-size: var(--font-body-sm-size); display: flex; gap: 24px; flex-wrap: wrap; }
.pc-footer .promo-note { color: var(--promo-600); }

/* M1.8 首页轮播 */
.pc-banner-wrap { position: relative; }

/* ===== M1.9 公告条（后台可控，逐条上下滚动） ===== */
#pc-notice .pc-notice-track a {
  position: absolute; left: 0; right: 0; top: 0; height: 36px; line-height: 36px;
  color: #8A5B00; font-size: 13px; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
  opacity: 0; transform: translateY(-14px); transition: opacity .4s ease, transform .4s ease;
}
#pc-notice .pc-notice-track a.on { opacity: 1; transform: translateY(0); }
