* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f7fa;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a {
  color: #276eda;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.medical-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mh-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  min-height: 60px;
}
.mh-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mh-logo {
  font-weight: 500;
  color: #276eda;
  white-space: nowrap;
  font-size: 22px;
}
.mh-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  color: #fff;
  background: #2f80ed;
  border-radius: 50%;
  font-size: 11px;
}
.mh-nav-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: center;
}
.mh-nav {
  position: relative;
  padding-bottom: 6px;
  color: #333;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
}
.mh-nav:hover {
  color: #276eda;
  font-weight: 400;
  text-decoration: none;
}
.mh-nav.active {
  color: #276eda;
  font-weight: 600;
  text-decoration: none;
}
.mh-nav.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  height: 2px;
  background: #276eda;
  border-radius: 1px;
}

/* 首页顶栏：不用 sticky（易被父级 overflow 影响），改为 fixed + #header 占位 */
.home-page-body #header {
  min-height: 60px;
}
/* 滚动后中间为搜索框（由 .is-scrolled 切换），逻辑见 page-medical-home.js */
.medical-header.medical-header--dual-search {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1001;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mh-nav-wrap--home-search {
  align-items: center;
}
.medical-header--dual-search .mh-nav-default {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: center;
  align-items: center;
}
.medical-header--dual-search .mh-nav-search-wrap {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.medical-header--dual-search.is-scrolled .mh-nav-default {
  display: none;
}
.medical-header--dual-search.is-scrolled .mh-nav-search-wrap {
  display: flex;
}
.mh-header-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: min(450px, 92vw);
  border-radius: 22px;
  border: 1px solid #e4e7ed;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(39, 110, 218, 0.08);
}
.mh-header-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.mh-header-search-input::placeholder {
  color: #999;
}
.mh-header-search-btn {
  flex-shrink: 0;
  min-width: 48px;
  padding: 0 16px;
  font-size: 16px;
  color: #fff;
  background: #276eda;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.mh-header-search-btn:hover {
  background: #1f5fc4;
  color: #fff;
}
.mh-header-search-btn:active {
  background: #1a52a8;
}
.mh-header-search-btn:focus-visible {
  outline: 2px solid #276eda;
  outline-offset: 2px;
}

.mh-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
}
.mh-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  font-size: 14px;
}
.mh-user-name {
  font-size: 13px;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mh-user-vip-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}
.mh-user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.mh-user-vip-crown {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mh-user--vip .mh-user-name {
  max-width: 48px;
}
.mh-vip--member {
  background: linear-gradient(135deg, #ffb347, #ff6b6b) !important;
  color: #fff !important;
}
.mh-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mh-vip {
  background: #276eda;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
}
.mh-vip:hover {
  opacity: 0.9;
  text-decoration: none;
}

.pc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.pc-main-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pc-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.pc-side-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
}
.pc-side-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 22px;
}
.pc-side-avatar[data-avatar-upload="true"],
.mh-user-avatar[data-avatar-upload="true"] {
  cursor: pointer;
}
.pc-side-avatar[data-avatar-upload="true"]:hover,
.mh-user-avatar[data-avatar-upload="true"]:hover {
  box-shadow: 0 0 0 3px rgba(39, 110, 218, 0.2);
}
.pc-side-name {
  font-size: 13px;
  color: #333;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pc-side-vip-badge {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}
.pc-side-menu {
  padding: 6px 0 0;
}
.pc-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #606266;
  font-size: 18px;
  border-left: 3px solid transparent;
}
.pc-side-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9aa4b2;
}
.pc-side-item.active .pc-side-icon {
  color: #276eda;
}
.pc-side-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-side-item:hover {
  background: #f5f7fa;
  text-decoration: none;
}
.pc-side-item.active {
  color: #276eda;
  font-weight: 600;
  border-left-color: #276eda;
  background: #ecf5ff;
}
.pc-side-item.is-logout {
  font-weight: 600;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #ebeef5;
  color: #f56c6c;
}
.pc-side-item.is-logout .pc-side-icon {
  color: #f56c6c;
}
.pc-side-item.is-logout:hover {
  background: #fef0f0;
  text-decoration: none;
}
.pc-side-item.is-logout.active {
  color: #f56c6c;
  font-weight: 600;
  border-left-color: #f56c6c;
  background: #fef0f0;
}
.pc-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  min-height: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.pc-main-row .pc-content > h2 {
  margin: 4px 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.pc-banner {
  background: linear-gradient(135deg, #276eda 0%, #5b9bd5 100%);
  color: #fff;
  padding: 32px 20px;
  margin-bottom: 20px;
}
.pc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pc-banner h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.pc-search-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: 520px;
}
.pc-search-row input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}
.pc-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background: #e74c3c;
  color: #fff;
}
.pc-btn.secondary {
  background: #276eda;
}
.pc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cat-chip {
  padding: 8px 16px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #dcdfe6;
  cursor: pointer;
  font-size: 14px;
}
.cat-chip.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.cat-chip.grade-label {
  border: none;
  background: transparent;
  cursor: default;
  color: #606266;
  padding-left: 0;
  font-weight: 600;
}
.cat-chip.grade-label:hover,
.cat-chip.grade-label.active {
  background: transparent;
  color: #606266;
  border: none;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.doc-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
}
.doc-card:hover {
  transform: translateY(-2px);
}
.doc-card-img {
  height: 160px;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-card-body {
  padding: 12px;
}
.doc-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card-meta {
  font-size: 12px;
  color: #909399;
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pager button {
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.pager button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #606266;
}
.form-group input {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}

.msg-error {
  color: #f56c6c;
  font-size: 14px;
  margin-top: 8px;
}
.msg-ok {
  color: #67c23a;
  font-size: 14px;
  margin-top: 8px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #909399;
}

.empty {
  text-align: center;
  padding: 48px;
  color: #909399;
}

/* 登录弹框 */
.mh-login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.mh-login-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.mh-login-modal-dialog h2 {
  margin: 0 0 8px;
  padding-right: 36px;
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.mh-login-subtitle {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.mh-login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}
.mh-login-tab {
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mh-login-tab:hover:not(.active) {
  color: #334155;
}
.mh-login-tab.active {
  color: #1e40af;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.mh-login-panel {
  color: #303133;
}
.mh-login-form-group {
  margin-bottom: 16px;
}
.mh-login-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}
.mh-login-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mh-login-input::placeholder {
  color: #94a3b8;
}
.mh-login-input:focus {
  border-color: #276eda;
  box-shadow: 0 0 0 3px rgba(39, 110, 218, 0.15);
  outline: none;
}
.mh-login-field-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.mh-login-input--grow {
  flex: 1;
  min-width: 0;
}
.mh-login-btn-code {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #276eda;
  background: #fff;
  color: #276eda;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.mh-login-btn-code:hover:not(:disabled) {
  background: #eff6ff;
}
.mh-login-btn-code:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mh-login-agreement {
  margin: 2px 0 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.mh-login-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.mh-login-agreement-label input {
  margin-top: 3px;
  flex-shrink: 0;
}
.mh-login-agreement-link {
  color: #2563eb;
  text-decoration: none;
}
.mh-login-agreement-link:hover {
  text-decoration: underline;
}
.mh-login-btn-submit {
  width: 100%;
  margin-top: 4px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.mh-login-btn-submit:hover {
  filter: brightness(1.06);
}
.mh-login-btn-submit:active {
  transform: scale(0.99);
}
.mh-login-wechat-wrap {
  text-align: center;
  padding: 4px 0 2px;
}
.mh-wechat-qrcode-box {
  width: 100%;
  max-width: 300px;
  min-height: 280px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
}
.mh-wechat-qrcode-box iframe {
  border: 0;
}
.mh-login-wechat-tip {
  margin: 14px 0 8px;
  color: #475569;
  font-size: 14px;
}
.mh-login-wechat-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.mh-login-wechat-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.mh-login-modal-dialog .msg-error {
  margin-top: 14px;
  min-height: 22px;
  font-size: 13px;
  line-height: 1.5;
  color: #dc2626;
}
.mh-login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mh-login-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
a.mh-login {
  cursor: pointer;
}

/* ========== PC 首页 home.html（对齐 Vue medical/home 前台首页） ========== */
.home-page-body {
  background-color: #f5f5f5;
}

/* 与 Vue `src/views/app/medical/home/index.vue` 中 banner-section 一致；请将 banner-title.jpg 置于同目录 imgs/app/ 下（与 Vue 工程 assets/imgs/app/banner-title.jpg 同源） */
.home-banner-section {
  padding: 80px 0;
  background: url("https://www.yihuziliao.com/upload/imgs/app/banner-title.jpg") center / cover no-repeat;
  color: #276eda;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.home-banner-content {
  padding: 0 20px;
}
.home-search-box {
  width: 100%;
  max-width: 500px;
  margin: 20px auto 0;
  display: flex;
  align-items: stretch;
  min-height: 46px;
  border-radius: 23px;
  border: 1px solid #e4e7ed;
  background: #fff;
  box-shadow: 0 4px 14px rgba(39, 110, 218, 0.12);
  overflow: hidden;
}
.home-search-input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.home-search-input::placeholder {
  color: #999;
}
.home-search-suffix {
  flex-shrink: 0;
  min-width: 52px;
  padding: 0 18px;
  font-size: 18px;
  color: #fff;
  background: #276eda;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.home-search-suffix:hover {
  background: #1f5fc4;
  color: #fff;
}
.home-search-suffix:active {
  background: #1a52a8;
}
.home-search-suffix:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.home-search-suffix .home-search-icon,
.home-search-suffix svg {
  display: block;
  flex-shrink: 0;
}
.mh-header-search-btn .mh-search-icon,
.mh-header-search-btn svg {
  display: block;
  flex-shrink: 0;
}

.home-vip-banner-section {
  padding: 20px 0;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}
.home-banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 20px;
}
.home-banner-track {
  display: flex;
  gap: 15px;
  transition: transform 0.3s ease;
}
.home-vip-banner-item {
  flex: 0 0 calc(33.33% - 10px);
  height: 150px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.home-vip-banner-image {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f5f5f5;
}
.home-vip-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.home-vip-banner-item:hover .home-vip-banner-img {
  transform: scale(1.05);
}
.home-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.home-vip-banner-item:hover .home-banner-overlay {
  transform: translateY(0);
}
.home-banner-overlay h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}
.home-banner-placeholder-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
}
.home-banner-placeholder-inner h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 5px;
}
.home-banner-placeholder-inner p {
  font-size: 12px;
  margin: 0;
}
.home-banner-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.home-banner-control-btn {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
  user-select: none;
}
.home-banner-control-btn:hover:not(.is-disabled) {
  background: rgba(255, 255, 255, 1);
}
.home-banner-control-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 与 Vue .vip-banner-placeholder 一致（无轮播数据时） */
.home-vip-banner-placeholder {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.home-vip-banner-placeholder .home-vip-ph-item {
  flex: 1;
  height: 150px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-vip-banner-placeholder .home-vip-ph-item .banner-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-vip-banner-placeholder .banner-placeholder-content {
  text-align: center;
  color: #666;
}
.home-vip-banner-placeholder .banner-placeholder-content h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 5px;
}
.home-vip-banner-placeholder .banner-placeholder-content p {
  font-size: 12px;
  margin: 0;
}

/* 对齐 Vue WechatServiceQrCode */
.home-floating-wechat .wechat-service-qrcode .qr-code-container {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  text-align: center;
}
.home-floating-wechat .qr-code-placeholder {
  width: 120px;
  height: 120px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: #f9f9f9;
}
.home-floating-wechat .qr-code-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 8px;
  overflow: hidden;
}
.home-floating-wechat .qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-floating-wechat .home-qr-picture-icon {
  width: 48px;
  height: 48px;
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='%23ccc'%3E%3Cpath d='M896 192H128v640h768V192zm-64 576H192V256h640v512z'/%3E%3Cpath d='M320 384a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm448 256L576 448 448 576l-96-96-160 160v64h576v-64z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.home-floating-wechat .qr-code-container p {
  margin: 5px 0;
  font-size: 12px;
  color: #666;
}

.home-main-category-section {
  padding: 0;
  background-color: transparent;
  border-bottom: none;
}
.home-category-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}
.home-cat-main {
  padding: 8px 16px;
  font-size: 18px;
  color: #050505;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s;
  border: none;
  background: transparent;
}
.home-cat-main:hover {
  color: #276eda;
  background-color: #f0f7ff;
}
.home-cat-main.active {
  color: #fff;
  font-weight: bold;
  background-color: #276eda;
}

.home-sub-category-section {
  padding: 0;
  background-color: transparent;
}
.home-sub-category-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

/* 分类栏与上方轮播/下方网格的间距 */
.home-main-category-section,
.home-sub-category-section {
  margin: 15px auto;
  padding: 0 20px;
}

.home-grade-section {
  margin: 0 auto 8px;
  padding: 0 20px;
}
.home-grade-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.home-grade-label {
  font-size: 14px;
  color: #606266;
  font-weight: 600;
  margin-right: 4px;
}
.home-grade-chip {
  padding: 6px 14px;
  font-size: 14px;
  color: #303133;
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid #dcdfe6;
  background: #fff;
  transition: all 0.15s;
}
.home-grade-chip:hover {
  color: #276eda;
  border-color: #276eda;
  background-color: #f0f7ff;
}
.home-grade-chip.active {
  color: #fff;
  font-weight: bold;
  background-color: #276eda;
  border-color: #276eda;
}

@media (max-width: 768px) {
  .home-main-category-section,
  .home-sub-category-section,
  .home-grade-section {
    padding: 0 12px;
  }
  .home-grade-list {
    padding: 8px 12px 12px;
  }
  .home-category-list,
  .home-sub-category-list {
    padding: 12px 12px;
    gap: 10px;
  }
  .home-cat-main {
    font-size: 16px;
    padding: 7px 14px;
  }
  .home-cat-sub {
    font-size: 15px;
    padding: 6px 12px;
  }
}
.home-cat-sub {
  padding: 6px 14px;
  font-size: 17px;
  color: #272727;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  background: transparent;
  border: none;
}
.home-cat-sub:hover {
  color: #276eda;
  background-color: #f0f7ff;
}
.home-cat-sub.active {
  color: #fff;
  background-color: #276eda;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
}

.home-document-grid-section {
  /* padding: 20px 0 40px; */
}
.home-doc-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.home-doc-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.home-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.home-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #f5f5f5;
}
.home-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #f5f5f5;
  color: #ccc;
}
.home-favorite-btn {
  position: absolute;
  top: 10px;
  right: 5px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  line-height: 1;
  color: #999;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.home-doc-card:hover .home-favorite-btn {
  opacity: 1;
  pointer-events: auto;
}
.home-favorite-btn:hover {
  border-color: #409eff;
  color: #409eff;
}
.home-favorite-btn.active {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
}
.home-vip-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}
.home-card-info {
  padding: 12px;
}
.home-card-title {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.home-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-meta-item {
  font-size: 12px;
  color: #999;
}
.home-meta-label {
  margin-right: 4px;
  color: #b0b0b0;
}
.home-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.home-price {
  font-size: 16px;
  font-weight: 600;
  color: #f56c6c;
}

.home-pagination-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding: 20px 0;
}
.home-scroll-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.home-infinite-footer {
  font-size: 14px;
  color: #909399;
}
.home-infinite-total {
  color: #606266;
}
.home-load-more-hint {
  color: #276eda;
}
.home-no-more-hint {
  color: #c0c4cc;
}
.home-card-meta .view-count,
.home-card-meta .file-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-meta-svg {
  flex-shrink: 0;
  color: #999;
}
.home-favorite-btn .home-fav-icon {
  font-size: 16px;
  line-height: 1;
  display: block;
}
.home-pager {
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 14px;
  color: #606266;
}
.home-pg-total {
  margin-right: 4px;
}
.home-pg-sizes select {
  padding: 4px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}
.home-pg-btn {
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.home-pg-btn:hover:not(:disabled) {
  color: #276eda;
  border-color: #276eda;
}
.home-pg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.home-pg-nums {
  display: inline-flex;
  gap: 4px;
}
.home-pg-num {
  min-width: 32px;
  padding: 6px 8px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.home-pg-num.active {
  background: #276eda;
  color: #fff;
  border-color: #276eda;
}
.home-pg-jump input {
  width: 48px;
  padding: 4px 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.home-floating-wechat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}
.home-wechat-inner {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.home-wechat-inner img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
}
.home-wechat-inner p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .home-banner-section {
    padding: 40px 0 32px;
  }
  .home-banner-slider {
    margin: 0 12px;
  }
  .home-vip-banner-item {
    flex: 0 0 100%;
    height: 100px;
  }
  .home-banner-track {
    gap: 10px;
  }
  .home-doc-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  .home-floating-wechat {
    display: none;
  }
  .home-pager {
    justify-content: center;
  }
  .orders-title,
  .favorites-title,
  .follows-title,
  .downloads-title,
  .footprints-title {
    font-size: 1.5em;
    margin: 4px 0 16px;
    font-weight: 700;
    color: #333;
  }
}

/* 首屏骨架屏（CSS 未加载前由 index.html 内联样式兜底） */
@keyframes sk-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skel {
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e7ed 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease infinite;
  border-radius: 4px;
}
.home-skel-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.home-skel-header .home-skel-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  min-height: 60px;
}
.home-skel-h-logo {
  width: 120px;
  height: 22px;
  flex-shrink: 0;
}
.home-skel-h-nav {
  flex: 1;
  height: 16px;
  max-width: 360px;
  margin: 0 auto;
}
.home-skel-h-right {
  width: 72px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 16px;
}
.home-skel-banners {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.home-skel-banner {
  flex: 1;
  height: 120px;
  border-radius: 8px;
  min-width: 0;
}
.home-skel-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.home-skel-cat {
  width: 72px;
  height: 28px;
  border-radius: 14px;
}
.home-skel-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.home-skel-cover {
  width: 100%;
  padding-top: 75%;
  border-radius: 0;
}
.home-skel-title {
  height: 14px;
  margin: 12px 12px 8px;
}
.home-skel-title.short {
  width: 60%;
  margin-bottom: 14px;
}
.home-skel-grid {
  pointer-events: none;
}
