
:root {
  --bg: #f5f6fa;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #8e8e93;
  --brand: #ff6b35;
  --brand-2: #ff9f1c;
  
  --page-gutter-x: 12px;
  --tab-h: 58px;
  
  --safe-b: 0px;
  --safe-b: constant(safe-area-inset-bottom);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --header-h: 64px;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --max: 1280px;
  /* 新闻资讯等双列首屏 */
  --hiwawa-dual-hero-minh: clamp(366px, 38vh, 504px);
  /* 关于我们 / 免责声明 / 发展历程 / 联系我们 — PC 双列首屏固定高（四页一致） */
  --hiwawa-corp-hero-shell-h: 330px;
  /* 右卡 Logo 显示尺寸（不抬高首屏，仅缩内部占位） */
  --hiwawa-corp-panel-logo-size: 158px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  
  scrollbar-gutter: stable;
}

body.hiwawa {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
}

@media (min-width: 900px) {
  body.hiwawa {
    padding-bottom: 0;
  }

  /* PC 主滚动条：更细，中性灰（接近系统默认） */
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.04);
  }

  html::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  html::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
  }

  html::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
  }

  html::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid transparent;
    background-clip: padding-box;
  }
}

a {
  color: var(--brand);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-gutter-x);
}

@media (min-width: 900px) {
  .hiwawa-page-model-categories .model-cats-main > .wrap,
  .hiwawa-page-ranking-hot .ranking-main > .wrap,
  .hiwawa-page-ranking-vitality .ranking-main > .wrap {
    width: 100%;
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter-x);
    padding-right: var(--page-gutter-x);
    box-sizing: border-box;
  }
}

/* 榜单 / 明星墙 / 公告 — 撑满布局均移至各自页面 CSS，不依赖 body flex */

.wrap--narrow {
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.main {
  padding: 12px 0 0px;
}

.page-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 24px;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
}

@media (max-width: 899px) {
  body.hiwawa .main {
    padding-bottom: 10px;
  }
}


.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.section-head a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--muted);
}

.grid-cards {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-cards--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card__media {
  height: 140px;
  background: linear-gradient(160deg, #e4e6ef 0%, #d4d8e8 100%);
  position: relative;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='36' r='14' fill='%23fff' opacity='.35'/%3E%3Cpath d='M20 58 L35 45 L48 55 L60 42 L60 60 L20 60Z' fill='%23fff' opacity='.25'/%3E%3C/svg%3E")
    center / 72px no-repeat;
}

.card__media--sm {
  height: 100px;
}

.card__body {
  padding: 12px 14px 14px;
}

.card__body h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.card__excerpt {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f5;
  color: #555;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.discover-block {
  margin-bottom: 28px;
}

.article__head h1 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.article__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.article__body {
  margin: 20px 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.article__back a {
  text-decoration: none;
  color: var(--muted);
}

.form__group {
  margin-bottom: 18px;
}

.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.alert--success {
  background: #e8f8ef;
  color: #1b6b3a;
}

.alert--error {
  background: #ffeef0;
  color: #b4232c;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e8e8ed;
  color: #8e8e93;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-head .btn--outline {
  color: var(--brand);
  border-color: rgba(255, 107, 53, 0.45);
  margin-left: auto;
}

.profile-center-grid {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-center-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f5;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
}

.profile-center-grid li a:hover {
  border-color: rgba(255, 107, 53, 0.35);
}

.profile-center-grid li a.is-active {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.profile-center-grid i {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-center-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 0 24px;
}

.profile-center-panel h4 {
  margin: 0 0 8px;
}

.panel {
  background: var(--card);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.panel p.profile-register-hint {
  margin: 0 0 12px;
}

.list-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f5;
}

.list-rows li:last-child {
  border-bottom: 0;
}

.list-rows a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main--auth {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
}

.auth-card {
  background: var(--card);
  padding: 28px 22px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(255, 159, 28, 0.3);
}

.auth-brand h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.auth-brand p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.main--search-page {
  padding-top: 12px;
  padding-bottom: 28px;
}

.wrap--search-page {
  max-width: var(--max);
}

.search-page-shell {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 40px);
}

.search-page-hero {
  padding: 28px 30px 32px;
  background: linear-gradient(135deg, #ff8b38 0%, #ff9a4d 40%, #ffb47c 100%);
  box-shadow:
    0 18px 42px rgba(255, 128, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.search-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff7ef;
}

.search-page-hero__label,
.search-page-hero__keyword,
.search-page-hero__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.search-page-hero__label {
  background: rgba(255, 255, 255, 0.12);
}

.search-page-hero__keyword {
  background: rgba(255, 255, 255, 0.92);
  color: #f07b1f;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.18);
}

.search-page-hero__summary {
  background: transparent;
  color: #fff;
  padding-left: 0;
  padding-right: 0;
}

.search-page-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.search-page-form__field {
  position: relative;
  flex: 1 1 520px;
  min-width: 0;
}

.search-page-form__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #b7b7bf;
  font-size: 1rem;
  pointer-events: none;
}

.search-page-form__input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px 0 0 14px;
  padding: 0 18px 0 48px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(161, 85, 17, 0.12);
}

.search-page-form__input::placeholder {
  color: #9a9aa2;
}

.search-page-form__input::-webkit-search-cancel-button {
  display: none;
}

.search-page-form__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(161, 85, 17, 0.16);
}

.search-page-form__btn {
  flex: 0 0 auto;
  min-width: 120px;
  height: 56px;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 24px rgba(209, 101, 24, 0.22);
}

.search-page-form__btn i {
  font-size: 0.95rem;
}

.search-page-empty,
.search-page-results {
  margin-top: 0;
  background: #fff;
  box-shadow: none;
}

.search-page-empty {
  padding: 56px 24px;
  text-align: center;
}

.search-page-empty--idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255, 171, 111, 0.16), transparent 38%),
    #fff;
}

.search-page-empty__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7f7f9 0%, #ececf1 100%);
  color: #bdbdc6;
  font-size: 2.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-page-empty__title {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #202028;
}

.search-page-empty__desc {
  max-width: 760px;
  margin: 0 auto;
  color: #7a7a84;
  font-size: 1rem;
  line-height: 1.7;
}

.search-page-empty__tips {
  width: min(100%, 420px);
  margin: 28px auto 0;
  padding: 24px 28px;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9f9fb 0%, #f3f4f8 100%);
}

.search-page-empty__tips h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #44444d;
}

.search-page-empty__tips ul {
  margin: 0;
  padding-left: 18px;
  color: #7a7a84;
  line-height: 1.85;
}

.search-page-results {
  padding: 26px 26px 30px;
}

.search-page-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.search-page-results__title {
  margin: 0;
  font-size: 1.4rem;
  color: #1f2937;
}

.search-page-results__desc {
  margin: 0;
  color: #8b8b96;
  font-size: 0.95rem;
}

.search-page-grid {
  gap: 18px;
}

.search-result-card {
  border: 1px solid rgba(244, 114, 32, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.search-result-card__media {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(255, 177, 110, 0.4), transparent 36%),
    linear-gradient(135deg, #fff7ef 0%, #fff1e2 100%);
}

.search-result-card__media::after {
  display: none;
}

.search-result-card__media i {
  color: #ff8f3d;
  font-size: 2rem;
}

.search-result-card__body {
  padding: 16px 16px 18px;
}

.search-result-card__body h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.search-result-card__meta {
  gap: 10px;
}

/* 搜索结果页模特网格 */
.search-page-model-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}

.search-page-results + .search-page-results {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0;
}

