﻿/* apps/wallmall.css - 壁纸商城（.wm- 前缀；深/浅主题跟随系统变量） */
.wm-page { background: var(--bg, #f2f2f7); }
.wm-banner {
  margin: 12px 14px 0; padding: 18px 16px; border-radius: 18px; color: #fff;
  box-shadow: 0 8px 20px rgba(90, 60, 220, .28);
}
.wm-banner-t { font-size: 20px; font-weight: 700; }
.wm-banner-s { font-size: 12px; opacity: .82; margin-top: 4px; }
.wm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 4px; scrollbar-width: none; }
.wm-chips::-webkit-scrollbar { display: none; }
.wm-chip {
  flex: none; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--fill, rgba(120, 120, 128, .14)); color: var(--text, #1c1c1e);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.wm-chip.sm { padding: 4px 11px; font-size: 12px; opacity: .8; }
.wm-chip.on { background: #4D2ED6; color: #fff; font-weight: 600; }
.wm-sec { margin-top: 6px; }
.wm-sectitle { font-size: 16px; font-weight: 700; color: var(--text, #1c1c1e); padding: 12px 14px 8px; }
.wm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.wm-card {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--fill, rgba(120, 120, 128, .14));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: transform .15s ease;
}
.wm-card:active { transform: scale(.97); }
.wm-thumb { display: block; width: 100%; aspect-ratio: 300 / 620; object-fit: cover; }
.wm-cardinfo { padding: 7px 9px 8px; }
.wm-cardname {
  font-size: 13px; font-weight: 600; color: var(--text, #1c1c1e);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wm-cardmeta { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11px; color: var(--text2, #8e8e93); }
.wm-hot { color: #ff7a45; }
.wm-favbtn {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.wm-favbtn.on { color: #ff5a7a; }
.wm-empty { text-align: center; color: var(--text2, #8e8e93); font-size: 13px; padding: 36px 0; }
.wm-searchbox { position: relative; margin: 12px 14px 0; }
.wm-searchbox svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text2, #8e8e93); pointer-events: none;
}
.wm-input {
  width: 100%; box-sizing: border-box; padding: 10px 14px 10px 36px;
  border: 0; border-radius: 12px; font-size: 14px; outline: none;
  background: var(--fill, rgba(120, 120, 128, .14)); color: var(--text, #1c1c1e);
}
.wm-hist { display: flex; flex-direction: column; padding: 0 14px; }
.wm-histitem {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer;
  border-bottom: .5px solid rgba(128, 128, 128, .18);
}
.wm-histitem img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.wm-histitem span { font-size: 13px; color: var(--text, #1c1c1e); }
.wm-me { display: flex; align-items: center; gap: 12px; padding: 20px 16px 12px; }
.wm-avatar {
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #8E6BFF, #4D2ED6);
  display: flex; align-items: center; justify-content: center;
}
.wm-mename { font-size: 17px; font-weight: 700; color: var(--text, #1c1c1e); }
.wm-mesign { font-size: 12px; color: var(--text2, #8e8e93); margin-top: 2px; }
.wm-stats { display: flex; gap: 10px; padding: 4px 14px 8px; }
.wm-stat { flex: 1; text-align: center; padding: 10px 0; border-radius: 14px; background: var(--fill, rgba(120, 120, 128, .14)); }
.wm-stat b { display: block; font-size: 16px; color: var(--text, #1c1c1e); }
.wm-stat span { font-size: 11px; color: var(--text2, #8e8e93); }
.wm-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 8px));
  background: var(--bg, #f2f2f7); border-top: .5px solid rgba(128, 128, 128, .25);
}
.wm-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: var(--text2, #8e8e93); cursor: pointer; padding: 4px 0;
}
.wm-tab.on { color: #4D2ED6; font-weight: 600; }
.wm-preview { position: absolute; inset: 0; background: #000; overflow: hidden; display: flex; flex-direction: column; }
.wm-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wm-pvtop { position: relative; z-index: 2; }
.wm-pvtop .navbar { background: rgba(0, 0, 0, .3) !important; backdrop-filter: blur(10px); }
.wm-pvbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 10px));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  display: flex; flex-direction: column; gap: 12px;
}
.wm-pvmeta { display: flex; gap: 8px; }
.wm-tag {
  font-size: 11px; color: #fff; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.wm-pvbtns { display: flex; gap: 10px; }
.wm-pvbtn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 0; border: 0; border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
  transition: transform .12s ease;
}
.wm-pvbtn:active { transform: scale(.96); }
.wm-pvbtn.on { color: #ff5a7a; }
.wm-pvbtn.primary { background: #4D2ED6; }
