* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'UKIJ Tor', "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f3f5;
  color: #333333;
  padding-bottom: 52px;
}
.hidden { display: none !important; }

.lang-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(165deg, #1a3a52, #2a5570);
}
.lang-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
}
.lang-brand { text-align: center; font-size: 22px; font-weight: 700; color: #1a3a52; }
.lang-title { text-align: center; margin: 18px 0 20px; color: #5a6573; font-size: 14px; }
.lang-box button {
  display: block; width: 100%; margin-bottom: 10px; height: 48px;
  border: 0; border-radius: 12px; background: #f4f6f8; font-size: 17px; font-weight: 600; color: #333333;
}
.lang-box button.ug { font-size: 18px; }

.hero {
  background: linear-gradient(160deg, #1a3a52, #2a5570);
  color: #fff; padding: 18px 16px 26px;
}
.hero h1 { margin: 0; font-size: 20px; letter-spacing: 2px; }
.type-tabs {
  display: flex; gap: 4px; margin-top: 14px;
  background: rgba(0,0,0,.15); padding: 4px; border-radius: 10px;
}
.type-tabs button {
  flex: 1; border: 0; background: transparent; color: rgba(255,255,255,.7);
  height: 34px; border-radius: 8px; font-size: 14px;
}
.type-tabs button.on { background: #fff; color: #1a3a52; font-weight: 600; }

.search {
  margin: -14px 16px 12px; background: #fff; border-radius: 12px;
  display: flex; padding: 6px; box-shadow: 0 6px 18px rgba(26,58,82,.1);
}
.search input { flex: 1; border: 0; outline: 0; padding: 10px; font-size: 14px; }
.search button {
  border: 0; background: #ff7043; color: #fff; border-radius: 8px; padding: 0 14px; font-size: 13px;
}

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px; color: #8a93a0; font-size: 13px;
}
.modes { display: flex; background: #fff; border-radius: 8px; padding: 2px; gap: 2px; }
.mode {
  width: 34px; height: 30px; border: 0; border-radius: 6px; background: transparent;
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
.mode[data-mode=list] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa3af'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E"); }
.mode[data-mode=feed] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa3af'%3E%3Cpath d='M4 6h16v2H4V6zm0 5h16v2H4v-2zm0 5h10v2H4v-2z'/%3E%3C/svg%3E"); }
.mode[data-mode=grid] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa3af'%3E%3Cpath d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E"); }
.mode.on { background-color: #fff3ef; }

.list { padding: 0 16px; }
.card {
  display: flex; background: #fff; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; cursor: pointer;
}
.cover { width: 110px; height: 110px; background: #dce3ec; flex-shrink: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.body { flex: 1; padding: 10px 12px; min-width: 0; }
.title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 12px; color: #8a93a0; margin-top: 4px; }
.price { font-size: 17px; font-weight: 700; color: #ff7043; margin-top: 8px; }
.empty { text-align: center; padding: 48px; color: #8a93a0; background: #fff; border-radius: 12px; }

.feed {
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; cursor: pointer;
}
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-av { width: 36px; height: 36px; border-radius: 8px; background: #fff3ef; }
.feed-name { font-size: 14px; font-weight: 600; flex: 1; }
.feed-price { color: #ff7043; font-weight: 700; font-size: 14px; }
.feed-text { margin-top: 10px; font-size: 15px; font-weight: 500; }
.feed-sub { margin-top: 4px; font-size: 12px; color: #8a93a0; }
.feed-imgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.feed-imgs img { width: calc(33.33% - 3px); height: 96px; object-fit: cover; border-radius: 6px; background: #e4e8ed; }

.grid { display: flex; flex-wrap: wrap; gap: 10px; }
.grid-item {
  width: calc(50% - 5px); background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
}
.grid-item .gcover { width: 100%; height: 130px; background: #e4e8ed; }
.grid-item .gcover img { width: 100%; height: 100%; object-fit: cover; }
.grid-item .gbody { padding: 10px; }
.grid-item .gtitle {
  font-size: 13px; font-weight: 600; height: 36px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.grid-item .gprice { margin-top: 8px; color: #ff7043; font-weight: 700; font-size: 15px; }

.panel { margin: 16px; background: #fff; border-radius: 12px; padding: 16px; }
.panel input, .panel select, .panel textarea {
  width: 100%; margin-bottom: 10px; padding: 11px 12px; border: 0;
  border-radius: 10px; font-size: 14px; background: #f5f6f8; height: 42px;
}
.panel textarea { height: auto; min-height: 90px; }
.btn {
  width: 100%; height: 44px; border: 0; border-radius: 10px;
  background: #ff7043; color: #fff; font-size: 15px;
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 48px;
  background: #fff; display: flex; border-top: 1px solid #eceef2;
}
.tabbar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #9aa3af; font-size: 12px;
}
.tabbar a.on { color: #ff7043; font-weight: 600; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; z-index: 99;
}
.modal-box { background: #fff; border-radius: 16px 16px 0 0; padding: 20px; width: 100%; }
.modal-box h4 { margin: 0 0 6px; }
.modal-box p { margin: 0 0 14px; color: #5a6573; font-size: 13px; white-space: pre-line; }
.modal-box .row { display: flex; gap: 10px; }
.modal-box .row button { flex: 1; height: 42px; border-radius: 10px; border: 1px solid #d0d7e2; background: #fff; }
.modal-box .row .ok { background: #ff7043; color: #fff; border-color: #ff7043; }
