:root {
  --hualu-bg: #f6f5fb;
  --hualu-surface: #ffffff;
  --hualu-text: #1f1f24;
  --hualu-muted: #2b2b32;
  --hualu-line: #ececf3;
  --hualu-accent: #ff6a00;
  --hualu-accent-soft: #fff2e8;
  --hualu-green: #24a148;
  --hualu-red: #ff4d4f;
  --hualu-shadow: 0 12px 30px rgba(32, 30, 80, 0.05);
  --hualu-radius: 24px;
  --hualu-search-title-margin: 16px 0;
  --hualu-search-title-font-size: 18px;
  --hualu-search-title-margin-resp: 18px 0;
  --hualu-search-title-font-size-resp: 20px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--hualu-bg);
  color: var(--hualu-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.hualu-shell a:hover {
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.hualu-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(88vw, 360px);
  padding: 0 18px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hualu-text);
  box-shadow: 0 16px 36px rgba(31, 31, 36, 0.16);
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hualu-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hualu-toast-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hualu-accent);
}

.hualu-toast-icon:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hualu-toast.is-error {
  border-color: rgba(255, 77, 79, 0.22);
}

.hualu-toast.is-error .hualu-toast-icon {
  background: var(--hualu-red);
}

.hualu-shell {
  min-height: 100vh;
  background: var(--hualu-bg);
}

.hualu-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hualu-topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(236, 236, 243, 0.9);
  backdrop-filter: blur(12px);
}

.hualu-topbar .hualu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.hualu-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hualu-brand-mark {
  display: inline-block;
  width: 110px;
  height: 33px;
  margin-bottom: 5px;
  vertical-align: middle;
  background: url(../images/v9/hualu_logo.png) no-repeat center;
  background-size: contain;
}

.hualu-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.hualu-nav a {
  position: relative;
  padding: 8px 2px;
  color: var(--hualu-muted);
}

.hualu-nav a.is-active,
.hualu-nav a:hover {
  color: var(--hualu-text);
}

.hualu-nav a.is-active:after,
.hualu-nav a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  border-radius: 999px;
  background: var(--hualu-accent);
}

.hualu-main {
  padding: 0 0 72px;
}

.hualu-hero {
  padding: 35px 0 5px;
  text-align: center;
}

.hualu-hero h1,
.hualu-hero .hualu-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.hualu-hero .hualu-title .hualu-brand-mark {
  width: 4em;
  height: 1.2em;
}

.hualu-hero .hualu-title span:not(.hualu-brand-mark) {
  font-size: 0.78em;
}

.hualu-hero p {
  margin: 16px auto 0;
  max-width: 760px;
  color: var(--hualu-muted);
  font-size: 18px;
  line-height: 1.8;
}

.hualu-searchbar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1010px, 100%);
  margin: 32px auto 0;
  padding: 12px 14px 12px 24px;
  border: 3px solid var(--hualu-accent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

/* search results page: search bar within container */
.hualu-container > .hualu-back-link + .hualu-searchbar {
  margin-top: 0;
}

.hualu-hero > .hualu-searchbar {
  margin-top: 18px;
  box-sizing: border-box;
  width: 100%;
}

.hualu-searchbar-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid var(--hualu-accent);
  border-radius: 50%;
  position: relative;
}

.hualu-searchbar-icon:after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: var(--hualu-accent);
  right: -6px;
  bottom: 0;
  transform: rotate(45deg);
  border-radius: 99px;
}

.hualu-searchbar input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  font-size: 20px;
  background: transparent;
  color: var(--hualu-text);
  appearance: none;
  -webkit-appearance: none;
}

.hualu-searchbar input::placeholder {
  color: #aaaaaf;
}

.hualu-searchbar input::selection {
  background: transparent;
  color: var(--hualu-text);
}

.hualu-searchbar input::-webkit-search-decoration,
.hualu-searchbar input::-webkit-search-cancel-button,
.hualu-searchbar input::-webkit-search-results-button,
.hualu-searchbar input::-webkit-search-results-decoration {
  display: none;
}

.hualu-searchbar input:-webkit-autofill,
.hualu-searchbar input:-webkit-autofill:hover,
.hualu-searchbar input:-webkit-autofill:focus,
.hualu-searchbar input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--hualu-text);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}

.hualu-searchbar button,
.hualu-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff8f3;
  color: #7b6c68;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

.hualu-searchbar button:hover,
.hualu-action:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.hualu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 45px;
  align-items: start;
}

.hualu-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(32, 30, 80, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hualu-card-media {
  display: block;
  position: relative;
  aspect-ratio: 272 / 390;
  overflow: hidden;
  background: #e8e8ef;
  border-radius: 0;
}

.hualu-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hualu-card-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hualu-card-media img.is-placeholder {
  object-fit: contain;
  padding: 18px;
  background: #f1f2f8;
  transform: none !important;
}

.nopic-native {
  background: #f1f2f8;
  width: 100%;
  height: 100%;
  min-height: 206px;
  display: block;
  position: relative;
}
.nopic-native::after {
  content: '暂无图片';
  color: #999;
  font-size: 14px;
  white-space: pre-line;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hualu-card-media .nopic-native::after {
  font-size: 14px;
}
.hualu-result-thumb .nopic-native::after {
  font-size: 11px;
}
.hualu-video-preview .nopic-native::after,
.hualu-preview-trigger .nopic-native::after,
.hualu-reference-video-preview .nopic-native::after,
.hualu-reference-card .nopic-native::after {
  font-size: 16px;
}

.hualu-card:hover .hualu-card-media img {
  transform: scale(1.02);
}

.hualu-play-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(31, 31, 36, 0.22);
  opacity: 0.5;
}

.hualu-play-badge:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -2px;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #fff;
}

.hualu-card-body {
  padding: 12px 14px 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.hualu-card-tags,
.hualu-detail-tags {
  display: flex;
  flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  gap: 8px;
  align-items: center;
  color: var(--hualu-muted);
  font-size: 13px;
  line-height: 1.3;
}

.hualu-card-tags:before,
.hualu-detail-tags:before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  background: no-repeat center / contain url("../images/v9/hualu_tags.png");
}

.hualu-card-tags span,
.hualu-detail-tags a,
.hualu-detail-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.hualu-card-category {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  color: var(--hualu-muted);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0 0 12px;
}

.hualu-card-category:before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  background: no-repeat center / contain url("../images/v9/hualu_leimu.png");
}
.hualu-card-summary-link {
  display: block;
  color: inherit;
  margin-top: 8px;
}

.hualu-card-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  min-height: 72px;
  color: #2b2b32;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hualu-card-footer {
  margin: auto 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-top: 6px;
  padding-bottom: 0;
}

.hualu-ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hualu-ref-links a.is-picture {
  color: var(--hualu-green);
}

.hualu-ref-links a.is-video {
  color: #eb1efd;
}

.hualu-more {
  margin-top: 26px;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.hualu-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hualu-more i {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--hualu-accent);
  font-style: normal;
}

.hualu-search-results-title {
  margin: var(--hualu-search-title-margin);
  font-size: var(--hualu-search-title-font-size);
  font-weight: 400;
}

.hualu-result-list {
  display: grid;
  gap: 26px;
}

.hualu-result-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 138px;
  gap: 28px;
  align-items: stretch;
  padding: 18px;
  border-radius: var(--hualu-radius);
  background: var(--hualu-surface);
  box-shadow: var(--hualu-shadow);
}

.hualu-result-media {
  position: relative;
  display: block;
  min-height: 206px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ececf3;
}

.hualu-result-thumb {
  display: block;
  width: 180px;
  height: 100%;
  min-height: 206px;
  object-fit: cover;
  background: #ececf3;
}

/* .hualu-result-thumb.is-placeholder — no longer used, img removed for nopic-native span */

.hualu-result-content h3 {
  margin: 0;
  font-size: 18px;
  color: #9c9ca6;
  font-weight: 500;
}

.hualu-result-content {
  min-width: 0;
}

.hualu-result-content p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.95;
  white-space: pre-line;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.hualu-result-description-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.hualu-result-description-link p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.95;
  white-space: pre-line;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hualu-result-tags {
  margin-top: 10px;
}

.hualu-result-tags span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hualu-result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

.hualu-favorite {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hualu-text);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}

.hualu-favorite:before {
  content: "♡";
  display: inline-block;
  width: 15px;
  margin-right: 6px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transform-origin: center;
  vertical-align: -1px;
}

.hualu-favorite.is-liked {
  color: var(--hualu-accent);
}

.hualu-favorite.is-liked:before {
  content: "♥";
  color: var(--hualu-accent);
  font-size: 15px;
  transform: scale(1.35);
  vertical-align: -1px;
}

.hualu-favorite.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.hualu-view-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--hualu-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hualu-view-btn:before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 75% 0;
  box-sizing: border-box;
  background: radial-gradient(circle at center, #fff 0 2px, transparent 3px);
  display: inline-block;
  transform: rotate(45deg);
}

.hualu-view-btn:after {
  display: none;
}

.hualu-result-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hualu-pagination {
  margin-top: 52px;
  text-align: center;
}

.hualu-pagination .hualu-page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hualu-text);
  font-size: 18px;
  font-weight: 500;
  box-sizing: border-box;
}

.hualu-pagination a.hualu-page-nav-btn:hover {
  background: #fff6f0;
}

.hualu-pagination .hualu-page-nav-btn.current {
  background: var(--hualu-accent);
  color: #fff;
}

.hualu-pagination .hualu-page-nav-btn.is-disabled {
  color: #d0c9c5;
  background: rgba(255, 255, 255, 0.82);
}

.hualu-pagination .hualu-page-nav-btn.is-nav {
  font-size: 26px;
  line-height: 1;
}

.hualu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 10px -10px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  color: #6d6d78;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hualu-back-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.1);
  color: var(--hualu-accent);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.hualu-back-link:hover {
  color: var(--hualu-text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(32, 30, 80, 0.07);
  transform: translateY(-1px);
}

.hualu-back-link:hover span {
  background: var(--hualu-accent);
  color: #fff;
  transform: translateX(-2px);
}

.hualu-detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 3fr);
  gap: 42px;
  align-items: start;
}

.hualu-detail > div {
  min-width: 0;
}

.hualu-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 400;
}

.hualu-section-title:before {
  content: "";
  width: 14px;
  height: 40px;
  border-radius: 4px;
  background: var(--hualu-accent);
}

.hualu-media-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: #dddde7;
  box-shadow: var(--hualu-shadow);
  border: 0;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}

.hualu-detail .hualu-media-frame.is-horizontal {
  aspect-ratio: 16 / 9;
}

.hualu-detail .hualu-media-frame.is-vertical {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.hualu-detail .hualu-media-frame.hualu-picture-preview-frame {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}


#videoPromptContent,
#promptContent {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
}
.hualu-media-frame img,
.hualu-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hualu-picture-preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hualu-picture-preview-frame .nopic-native {
  aspect-ratio: 3 / 4;
  height: auto;
}

.hualu-media-frame .hualu-play-badge {
  width: 45px;
  height: 45px;
  right: 17px;
  top: 17px;
}

.hualu-media-frame .hualu-play-badge:after {
  margin-left: -3px;
  margin-top: -8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid #fff;
}

.hualu-detail-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: start;
}

.hualu-prompt-box {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 18px;
  border-radius: var(--hualu-radius);
  background: var(--hualu-surface);
  box-shadow: var(--hualu-shadow);
  box-sizing: border-box;
  overflow: hidden;
}

.hualu-prompt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.hualu-prompt-body::-webkit-scrollbar {
  width: 8px;
}

.hualu-prompt-body::-webkit-scrollbar-thumb {
  background: rgba(31, 31, 36, 0.18);
  border-radius: 999px;
}

.hualu-prompt-box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-line;
  word-break: break-word;
}

.hualu-prompt-box .hualu-action {
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #ff6a00;
  color: #fff;
  border-radius: 14px;
}

.hualu-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 10px;
  font-size: 17px;
}

.hualu-hint {
  color: #9c9ca6;
  font-size: 14px;
}

.hualu-section-spacer {
  height: 54px;
}

.hualu-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.hualu-reference-grid.is-video {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hualu-reference-card img,
.hualu-reference-card video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e4e4ed;
}

.hualu-reference-card .nopic-native {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e4e4ed;
}

.hualu-reference-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.hualu-video-preview,
.hualu-reference-video-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hualu-video-preview video,
.hualu-reference-video-preview video {
  pointer-events: none;
}

.hualu-reference-card.is-video video {
  aspect-ratio: 3 / 4;
}

.hualu-reference-card p {
  margin: 14px 0 0;
  font-size: 15px;
}

.hualu-reference-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.hualu-reference-card {
  position: relative;
}

.hualu-reference-card .hualu-play-badge {
  width: 27px;
  height: 27px;
  right: 10px;
  top: 10px;
}

.hualu-footer {
  background: #fff;
  padding: 22px 0 27px;
  text-align: center;
  color: var(--hualu-muted);
  font-size: 15px;
}

.hualu-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hualu-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hualu-footer-link:hover {
  color: var(--hualu-text);
  transform: translateY(-1px);
}

.hualu-about-page {
  padding: 88px 0 86px;
}

.hualu-about-title {
  margin: 0 0 66px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.hualu-about-content {
  max-width: 1680px;
  color: var(--hualu-text);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.9;
  font-weight: 400;
}

.hualu-about-content > *:first-child {
  margin-top: 0;
}

.hualu-about-content > *:last-child {
  margin-bottom: 0;
}

.hualu-about-content p {
  margin: 0 0 26px;
}

.hualu-about-content img,
.hualu-about-content video,
.hualu-about-content table {
  max-width: 100%;
}

.hualu-about-content a {
  color: inherit;
}

.hualu-empty {
  grid-column: 1 / -1;
  padding: 72px 0;
  border-radius: 0;
  background: transparent;
  color: var(--hualu-muted);
  text-align: center;
  box-shadow: none;
}

.hualu-highlight,
.hualu-result-content font {
  color: var(--hualu-red);
}

.hualu-lock-scroll {
  overflow: hidden;
}

.hualu-lightbox {
  display: none;
}

.hualu-lightbox.is-open {
  display: block;
}

.hualu-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 24, 0.72);
  z-index: 9998;
}

.hualu-lightbox-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(16, 18, 28, 0.28);
  z-index: 9999;
}

.hualu-lightbox-dialog.is-video {
  width: min(1280px, calc(100vw - 72px));
  background: #0c0d13;
}

.hualu-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 18, 28, 0.56);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hualu-lightbox-nav.is-prev {
  left: 18px;
}

.hualu-lightbox-nav.is-next {
  right: 18px;
}

.hualu-lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 108px);
  object-fit: contain;
}

.hualu-lightbox-dialog.is-video video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 108px);
  background: #000;
  position: relative;
  z-index: 1;
}

.hualu-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 18, 28, 0.56);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.hualu-lightbox-dialog.is-video .hualu-lightbox-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 10002;
}

/* prompt modal */
.hualu-prompt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  margin: 0;
  padding: 0;
}

.hualu-prompt-modal.is-open {
  display: block;
}

.hualu-prompt-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 18, 28, 0.6);
  cursor: pointer;
}

.hualu-prompt-modal-dialog {
  position: relative;
  width: 740px;
  max-width: 92vw;
  margin: 4vh auto 0;
  background: #fff;
  border: 1px solid #ff6a21;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hualu-prompt-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.hualu-prompt-modal-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff6a21;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.hualu-prompt-modal-copy:hover {
  opacity: 0.85;
}

.hualu-prompt-modal-copy svg {
  width: 13px;
  height: 13px;
}

.hualu-prompt-modal-close {
  background: none;
  border: 0;
  color: #1f1f24;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin: -8px -12px 0 0;
  transition: color 0.2s ease;
  line-height: 24px;
}

.hualu-prompt-modal-close:hover {
  color: #ff6a21;
}

.hualu-prompt-modal-body {
  background: #f4f5f7;
  border-radius: 8px;
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  max-height: 70vh;
  scrollbar-width: thin;
}

.hualu-prompt-modal-content {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.hualu-prompt-modal-content::-webkit-scrollbar {
  width: 8px;
}

.hualu-prompt-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.hualu-prompt-modal-content::-webkit-scrollbar-thumb {
  background: #ff6a00;
  border-radius: 4px;
}

@media (max-width: 1080px) {
  .hualu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .hualu-detail {
    grid-template-columns: 1fr;
  }

  .hualu-prompt-box {
    min-height: 420px;
  }

  .hualu-result-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .hualu-result-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .hualu-container {
    width: calc(100% - 20px);
  }

  /* search results page: constrain search bar within container */
  .hualu-container > .hualu-back-link + .hualu-searchbar {
    box-sizing: border-box;
    width: calc(100% - 4px);
  }

  .hualu-topbar .hualu-container {
    min-height: 64px;
  }

  .hualu-brand {
    gap: 10px;
    font-size: 16px;
  }

  .hualu-brand-mark {
    width: 80px;
    height: 26px;
  }

  .hualu-nav {
    gap: 12px;
    font-size: 15px;
  }

  .hualu-nav a.is-active:after,
  .hualu-nav a:hover:after {
    bottom: -9px;
  }

  .hualu-main {
    padding-bottom: 42px;
  }

  .hualu-footer .hualu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hualu-footer-link,
  .hualu-footer-icp {
    display: block;
    width: 100%;
    line-height: 1.5;
  }

  .hualu-hero {
    padding: 16px 0 4px;
  }

  .hualu-hero h1,
  .hualu-hero .hualu-title {
    gap: 10px;
    font-size: 26px;
    line-height: 1.25;
  }

  .hualu-hero .hualu-title .hualu-brand-mark {
    width: 80px;
    height: 26px;
  }

  .hualu-hero .hualu-title span:not(.hualu-brand-mark) {
    font-size: 20px;
  }

  .hualu-searchbar {
    margin-top: 10px;
    padding: 7px 7px 7px 12px;
    gap: 8px;
    border-width: 2px;
  }

  .hualu-searchbar-icon {
    width: 14px;
    height: 14px;
  }

  .hualu-searchbar-icon:after {
    width: 5px;
    right: -3px;
  }

  .hualu-searchbar input {
    min-width: 0;
    font-size: 14px;
  }

  .hualu-searchbar button,
  .hualu-action {
    padding: 5px 5px;
    font-size: 13px;
  }

  .hualu-grid,
  .hualu-reference-grid,
  .hualu-reference-gallery,
  .hualu-reference-grid.is-video {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hualu-grid {
    margin-top: 21px;
  }

  .hualu-card {
    border-radius: 8px;
  }

  .hualu-card-media {
    aspect-ratio: 4 / 5;
  }

  .hualu-card-body {
    padding: 12px 11px 0;
  }

  .hualu-card-tags {
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .hualu-card-tags:before {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
    margin-right: 0;
  }

  .hualu-card-summary {
    min-height: 72px;
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
  }

  .hualu-card-footer {
    margin: auto 0 6px;
    gap: 8px;
    font-size: 13px;
    padding-top: 6px;
    padding-bottom: 0;
  }

  .hualu-ref-links {
    gap: 6px;
  }

  .hualu-favorite {
    font-size: 14px;
  }

  .hualu-favorite:before {
    width: 13px;
    margin-right: 4px;
    font-size: 13px;
  }

  .hualu-favorite.is-liked:before {
    font-size: 13px;
    transform: scale(1.35);
  }

  .hualu-play-badge {
    right: 6px;
    top: 6px;
    width: 21px;
    height: 21px;
    border-width: 1px;
  }

  .hualu-play-badge:after {
    margin-left: -1px;
    margin-top: -4px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 6px;
  }

  .hualu-result-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
    border-radius: 16px;
  }

  .hualu-result-list {
    gap: 14px;
  }

  .hualu-result-thumb {
    width: 100%;
    min-height: 104px;
    border-radius: 12px;
  }

  .hualu-search-results-title {
    margin: var(--hualu-search-title-margin-resp);
    font-size: var(--hualu-search-title-font-size-resp);
    line-height: 1.4;
  }

  .hualu-result-content h3 {
    font-size: 14px;
    line-height: 1.35;
  }

  .hualu-result-content p,
  a.hualu-result-description-link p {
    margin-top: 9px;
    font-size: 16px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
  }

  .hualu-result-footer {
    margin-top: 10px;
    gap: 10px;
  }

  .hualu-result-tags {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hualu-result-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hualu-view-btn {
    min-width: 70px;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-left: auto;
  }

  .hualu-result-media {
    min-height: 104px;
    border-radius: 12px;
  }

  .hualu-view-btn:before {
    width: 14px;
    height: 14px;
    border-width: 2px;
    background: radial-gradient(circle at center, #fff 0 2px, transparent 3px);
  }

  .hualu-result-footer,
  .hualu-detail-meta {
    flex-direction: row;
    align-items: center;
  }

  .hualu-back-link {
    margin: 10px 0;
    font-size: 15px;
  }

  .hualu-section-title {
    gap: 9px;
    margin-bottom: 16px;
    font-size: 20px;
  }

  .hualu-section-title:before {
    width: 8px;
    height: 30px;
  }

  .hualu-detail {
    gap: 18px;
  }

  .hualu-media-frame.is-horizontal,
  .hualu-media-frame.is-vertical {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hualu-media-frame .hualu-play-badge {
    width: 32px;
    height: 32px;
    right: 10px;
    top: 10px;
  }

  .hualu-prompt-box {
    height: auto !important;
    min-height: 0;
    max-height: none;
    padding: 16px 16px 17px;
    border-radius: 16px;
  }

  .hualu-prompt-body {
    max-height: 52vh;
    padding-right: 4px;
  }

  .hualu-prompt-box p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hualu-prompt-box .hualu-action {
    margin-top: 12px;
    min-height: 46px;
    font-size: 16px;
  }

  .hualu-detail-tags {
    gap: 6px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hualu-hint {
    font-size: 13px;
    line-height: 1.6;
  }

  .hualu-section-spacer {
    height: 28px;
  }

  .hualu-reference-grid,
  .hualu-reference-gallery {
    gap: 12px;
  }

  .hualu-reference-card p {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
  }

  .hualu-more {
    margin-top: 22px;
    text-align: center;
    font-size: 16px;
  }

  .hualu-about-page {
    padding: 44px 0 54px;
  }

  .hualu-about-title {
    margin-bottom: 34px;
    font-size: 32px;
  }

  .hualu-about-content {
    font-size: 19px;
    line-height: 1.85;
  }

  .hualu-pagination .hualu-page-nav-btn {
    width: 38px;
    height: 38px;
    margin: 0 3px;
    border-radius: 12px;
    font-size: 16px;
  }

  .hualu-pagination .hualu-page-nav-btn.is-nav {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .hualu-card-body {
    min-height: auto;
  }

  .hualu-result-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hualu-result-thumb {
    width: 100%;
    min-height: 96px;
  }

  .hualu-result-content p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hualu-result-media {
    min-height: 96px;
  }

  .hualu-result-tags {
    font-size: 13px;
  }

  .hualu-lightbox-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 12px;
  }

  .hualu-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hualu-lightbox-nav.is-prev {
    left: 10px;
  }

  .hualu-lightbox-nav.is-next {
    right: 10px;
  }

  .hualu-lightbox-dialog img {
    max-height: calc(100vh - 48px);
  }
}

@media (max-width: 380px) {
  .hualu-container {
    width: calc(100% - 12px);
  }

  .hualu-brand {
    font-size: 14px;
  }

  .hualu-nav {
    font-size: 13px;
  }

  .hualu-searchbar button {
    padding-left: 6px;
    padding-right: 8px;
  }

  .hualu-result-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .hualu-result-thumb {
    width: 100%;
    min-height: 88px;
  }

  .hualu-result-content p {
    font-size: 14px;
  }

  .hualu-view-btn {
    min-width: 66px;
    min-height: 30px;
    padding: 6px 11px;
  }

  .hualu-result-media {
    min-height: 88px;
  }

  .hualu-card-body {
    padding-left: 9px;
    padding-right: 9px;
  }

  .hualu-card-summary {
    font-size: 12px;
  }

  .hualu-pagination .hualu-page-nav-btn {
    width: 38px;
    height: 38px;
    margin: 0 2px;
  }
}
