/* CSS Document */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f5f6f8; color: #333; font-size: 14px;
  padding-bottom: 60px;
  max-width: 640px; margin: 0 auto;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }

.header {
  position: sticky; top: 0; z-index: 10;
  height: 46px; background: #e94f6a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500;
}
.header .back { position: absolute; left: 12px; font-size: 22px; cursor: pointer; line-height: 1; }

.card { background: #fff; border-radius: 10px; margin: 10px; padding: 14px; }
.card + .card { margin-top: 0; }

.list-item { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: 10px; margin: 10px; }
.list-item .ph { width: 84px; height: 106px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eee; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 12px; }
.list-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-item .sub { color: #666; margin-top: 8px; font-size: 13px; }
.list-item .sub2 { color: #999; font-size: 12px; margin-top: 4px; }

.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; color: #fff; }
.tag-top { background: #fa8c16; }
.tag-vip { background: #722ed1; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
  max-width: 640px; margin: 0 auto;
  background: #fff; display: flex; border-top: 1px solid #eee; z-index: 20;
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 11px; gap: 2px; }
.tabbar .tab.active { color: #e94f6a; }
.tabbar .icon { font-size: 18px; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 56px; z-index: 15;
  max-width: 640px; margin: 0 auto;
  background: #fff; padding: 10px 14px; border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
  color: #999; font-size: 12px;
}
.bottom-bar .btn { background: #e94f6a; color: #fff; border: none; border-radius: 16px; padding: 8px 14px; font-size: 13px; }

.btn { display: block; width: 100%; height: 44px; border: none; border-radius: 22px; background: #e94f6a; color: #fff; font-size: 15px; cursor: pointer; text-align: center; line-height: 44px; }

.form-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.form-row:last-child { border-bottom: none; }
.form-row label { width: 76px; color: #666; flex-shrink: 0; }
.form-row input, .form-row select, .form-row textarea { flex: 1; border: none; background: transparent; color: #333; font-size: 14px; }
.form-row textarea { min-height: 60px; resize: none; padding-top: 4px; }

.empty { text-align: center; color: #999; padding: 60px 0; font-size: 13px; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-size: 13px; z-index: 999; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }