:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #222; background: #0b0b0b; --app-height: 100dvh; }
* { box-sizing: border-box; }
html { margin: 0; width: 100%; min-height: 100%; background: #0b0b0b; overflow: hidden; }
body { margin: 0; width: 100%; min-height: 100%; background: linear-gradient(to bottom, #1c2326 0 75%, #0b0b0b 75% 100%); overflow: hidden; }
body { overscroll-behavior: none; }
button { border: 0; background: none; font: inherit; cursor: pointer; }
.app-shell, .page { width: 100%; height: var(--app-height); min-height: var(--app-height); }
.page[hidden] { display: none; }
.home-page { position: fixed; top: 0; right: 0; bottom: auto; left: 0; overflow: hidden; color: #fff; background: #1c2326; }
.home-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: #1c2326; }
.video-search-hit { position: absolute; z-index: 2; top: 5%; right: 0; width: 14%; height: 8%; opacity: 0; }
.video-profile-hit { position: absolute; z-index: 2; right: 0; bottom: 0; width: 20%; height: 9%; opacity: 0; }
.home-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0 18%, transparent 35%, rgba(0,0,0,.12) 100%); pointer-events: none; }
.home-header { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 20px; z-index: 2; }
.icon-button { color: white; position: relative; width: 40px; height: 40px; }
.menu-button span { display: block; height: 2px; width: 28px; background: #fff; margin: 6px 0; }
.menu-button b { position: absolute; top: -3px; right: -2px; background: #f43b68; border-radius: 10px; font-size: 11px; padding: 2px 5px; }
.search-icon { display: block; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; margin: 4px; }
.search-icon:after { content: ""; position: absolute; width: 11px; height: 3px; background: #fff; transform: rotate(45deg); right: 4px; bottom: 8px; border-radius: 2px; }
.home-actions { position: absolute; right: 11px; bottom: 190px; z-index: 2; display: grid; gap: 16px; text-align: center; }
.home-actions button { color: #fff; font-size: 37px; text-shadow: 0 1px 4px #000; }
.home-actions small { display: block; font-size: 13px; margin-top: -3px; }
.home-caption { position: absolute; z-index: 2; bottom: 67px; left: 14px; right: 58px; text-shadow: 0 1px 3px #000; font-size: 15px; }
.home-caption strong { font-size: 17px; }.home-caption p { line-height: 1.45; margin: 10px 0; }.home-caption div { font-size: 14px; }
.bottom-nav { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 60px; background: rgba(8,8,8,.9); display: flex; align-items: center; justify-content: space-around; }
.bottom-nav a { color: #eee; font-size: 17px; position: relative; }.bottom-nav a.active { font-weight: 700; }.bottom-nav button { color: #fff; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; font-size: 32px; line-height: 40px; }.bottom-nav em { position: absolute; top: -12px; right: -20px; font-style: normal; font-size: 10px; background: #fb3d6a; border-radius: 10px; padding: 2px 5px; }
.search-page { background: #fff; color: #222; overflow: hidden; padding-top: env(safe-area-inset-top); }
.search-topbar { position: relative; height: 72px; padding: 0; }
.back-button { position: absolute; top: 21px; left: 16px; z-index: 2; display: grid; width: 24px; height: 30px; padding: 0; place-items: center; color: #222; font-size: 0; -webkit-appearance: none; appearance: none; }
.back-button::before { content: ""; display: block; width: 10px; height: 10px; border-bottom: 3px solid currentColor; border-left: 3px solid currentColor; transform: rotate(45deg); }
.search-form { position: absolute; top: 11px; right: 65px; left: 45px; display: flex; align-items: center; height: 50px; min-width: 0; background: #f1f2f6; border-radius: 14px; }
.search-form input { width: 100%; padding: 0 48px 0 16px; border: 0; outline: 0; background: transparent; color: #555; font-size: 18px; }
.search-form input::-webkit-search-cancel-button { display: none; }
.camera-icon { position: absolute; right: 13px; width: 23px; height: 18px; border: 2px solid #777; border-radius: 5px; }
.camera-icon:before { content: ""; position: absolute; left: 6px; top: 3px; width: 7px; height: 7px; border: 2px solid #777; border-radius: 50%; }
.camera-icon:after { content: ""; position: absolute; left: 5px; top: -6px; width: 9px; height: 5px; border: 2px solid #777; border-bottom: 0; border-radius: 3px 3px 0 0; }
.clear-button { display: none; position: absolute; right: 46px; color: #aaa; font-size: 22px; }
.search-form.has-value .clear-button { display: block; }
.submit-search { position: absolute; top: 11px; right: 14px; z-index: 2; display: block; width: 45px; height: 50px; padding: 0; color: #222; font-size: 18px; font-weight: 700; line-height: 50px; text-align: center; white-space: nowrap; -webkit-appearance: none; appearance: none; }
.search-scroll { height: calc(var(--app-height) - 72px - env(safe-area-inset-top)); overflow-x: hidden; overflow-y: auto; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.section-tabs, .hot-tabs { display: flex; align-items: center; gap: clamp(18px, 5.5vw, 26px); padding: 8px 18px; white-space: nowrap; overflow: hidden; }
.section-tabs button, .hot-tabs button { flex: 0 0 auto; color: #888; font-size: 17px; }
.section-tabs .selected { color: #222; font-weight: 700; }
.section-tabs .refresh { margin-left: auto; }
.section-tabs .more { font-size: 26px; }
.suggestions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 14px; padding: 8px 18px 18px; }
.suggestions button { min-width: 0; overflow: hidden; color: #222; font-size: 17px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.hot-tabs { gap: 28px; padding-top: 10px; padding-bottom: 8px; border-top: 1px solid #f7f7f7; overflow-x: auto; scrollbar-width: none; }
.hot-tabs::-webkit-scrollbar { display: none; }
.hot-tabs .selected { color: #ff523d; font-weight: 700; }
.hot-list { margin: 0; padding: 0 18px; list-style: none; }
.hot-list li { display: flex; align-items: center; min-height: 45px; margin: 4px 0; padding: 0 10px; gap: 10px; border-radius: 12px; background: linear-gradient(100deg, #f5f6fb, #fff); font-size: 17px; }
.hot-list li:nth-child(1), .hot-list li:nth-child(2), .hot-list li:nth-child(3) { background: linear-gradient(100deg, #fff2ef, #fff); }
.rank { flex: 0 0 24px; width: 24px; color: #99afd5; font-weight: 700; }
.hot-list li:nth-child(-n+3) .rank { color: #ff6043; }
.hot-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { flex: 0 0 auto; color: #aaa; font-size: 13px; }
.new { flex: 0 0 auto; padding: 2px 4px; border-radius: 4px; background: #ff4772; color: #fff; font-size: 11px; }
.voice-search { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; z-index: 4; padding: 14px 26px; transform: translateX(-50%); border-radius: 28px; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.13); font-weight: 700; white-space: nowrap; }
.ai-button { position: fixed; right: 20px; bottom: max(19px, env(safe-area-inset-bottom)); z-index: 4; width: 54px; height: 54px; border-radius: 50%; background: #f8f8ff; box-shadow: 0 2px 14px rgba(0,0,0,.08); color: #7672ff; font-size: 21px; font-weight: 800; }
@media (max-width: 380px) {
  .back-button { left: 12px; }
  .search-form { right: 59px; left: 39px; }
  .submit-search { right: 10px; width: 43px; }
  .search-form input, .suggestions button { font-size: 16px; }
  .submit-search, .section-tabs button, .hot-tabs button, .hot-list li { font-size: 16px; }
  .section-tabs, .hot-tabs { padding-right: 14px; padding-left: 14px; }
  .suggestions { column-gap: 20px; padding-right: 14px; padding-left: 14px; }
  .hot-list { padding-right: 14px; padding-left: 14px; }
}
.result-page, .profile-page, .binding-page { background: #fff; color: #222; overflow: hidden; padding-top: env(safe-area-inset-top); }
.result-topbar { position: relative; height: 68px; }
.result-back, .simple-back { position: absolute; top: 19px; left: 16px; display: grid; width: 24px; height: 30px; padding: 0; place-items: center; color: #222; -webkit-appearance: none; appearance: none; }
.result-back::before, .simple-back::before { content: ""; width: 10px; height: 10px; border-bottom: 3px solid currentColor; border-left: 3px solid currentColor; transform: rotate(45deg); }
.result-search-form { position: absolute; top: 9px; right: 65px; left: 45px; height: 50px; background: #f1f2f6; border-radius: 14px; }
.result-search-form input { width: 100%; height: 100%; padding: 0 42px 0 16px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.result-search-form input::-webkit-search-cancel-button { display: none; }
.result-clear { position: absolute; top: 50%; right: 12px; width: 22px; height: 22px; padding: 0; transform: translateY(-50%); border-radius: 50%; background: #c7c9cd; color: #fff; font-size: 18px; line-height: 20px; }
.result-submit { position: absolute; top: 9px; right: 14px; width: 45px; height: 50px; padding: 0; color: #222; font-size: 18px; font-weight: 700; }
.result-scroll { height: calc(var(--app-height) - 68px - env(safe-area-inset-top)); overflow-x: hidden; overflow-y: auto; background: #f7f8fa; }
.result-types { display: flex; align-items: center; height: 42px; padding: 0 18px; gap: 30px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.result-types::-webkit-scrollbar, .result-chips::-webkit-scrollbar, .reward-strip::-webkit-scrollbar { display: none; }
.result-types button { position: relative; flex: 0 0 auto; padding: 0; color: #666; font-size: 17px; }
.result-types button.active { color: #222; font-weight: 700; }
.result-types button.active::after { content: ""; position: absolute; right: 5px; bottom: -10px; left: 5px; height: 3px; border-radius: 2px; background: #222; }
.result-chips { display: flex; gap: 8px; padding: 12px 18px 16px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.result-chips button { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; background: #f4f5f8; color: #666; font-size: 16px; }
.result-chips button.active { color: #222; font-weight: 700; }
.activity-banner { padding: 6px 18px 14px; background: #fff; }
.activity-banner img { display: block; width: 100%; aspect-ratio: 24 / 7; border-radius: 10px; object-fit: cover; }
.reward-section { margin-top: 6px; padding: 0 0 14px; background: #fff; }
.reward-section header { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 18px; }
.reward-section h2 { margin: 0; font-size: 19px; letter-spacing: 0; }
.reward-section header button { color: #999; font-size: 24px; }
.reward-strip { display: flex; gap: 8px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.reward-strip img { flex: 0 0 calc((100% - 16px) / 3); width: calc((100% - 16px) / 3); aspect-ratio: 382 / 515; border-radius: 9px; object-fit: cover; }
.result-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 6px; padding: 6px 5px calc(20px + env(safe-area-inset-bottom)); background: #fff; }
.result-feed article { overflow: hidden; border-radius: 6px; background: #f2f2f2; }
.result-feed img { display: block; width: 100%; height: auto; }
.simple-header { position: relative; display: flex; align-items: center; justify-content: center; height: 62px; border-bottom: 1px solid #eee; }
.simple-header .simple-back { top: 16px; }
.simple-header h1 { margin: 0; font-size: 18px; letter-spacing: 0; }
.profile-body { height: calc(var(--app-height) - 62px - env(safe-area-inset-top)); overflow-y: auto; background: #f6f7f9; }
.profile-summary { display: flex; align-items: center; gap: 14px; padding: 28px 20px 18px; background: #fff; }
.profile-avatar { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: #ff4e25; color: #fff; font-size: 28px; font-weight: 800; }
.profile-summary h2 { margin: 0 0 7px; font-size: 22px; }
.profile-summary p { margin: 0; color: #999; font-size: 13px; }
.profile-stats { display: flex; justify-content: space-around; padding: 12px 10px 22px; background: #fff; }
.profile-stats span { display: grid; gap: 4px; color: #777; font-size: 13px; text-align: center; }
.profile-stats b { color: #222; font-size: 18px; }
.setting-row { display: flex; align-items: center; width: 100%; margin-top: 10px; padding: 18px 20px; background: #fff; color: #222; text-align: left; }
.setting-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; margin-right: 12px; place-items: center; border-radius: 10px; background: #fff0eb; color: #ff4e25; font-size: 22px; }
.setting-row > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.setting-row b { font-size: 17px; }
.setting-row small { color: #999; font-size: 13px; }
.setting-row strong { color: #aaa; font-size: 28px; font-weight: 400; }
.binding-form { height: calc(var(--app-height) - 62px - env(safe-area-inset-top)); padding: 24px 18px; overflow-y: auto; background: #f6f7f9; }
.binding-form label { display: block; margin: 0 0 9px; font-size: 15px; font-weight: 700; }
.binding-form > input { width: 100%; height: 48px; margin-bottom: 24px; padding: 0 14px; border: 1px solid #e2e3e6; border-radius: 8px; outline: 0; background: #fff; font-size: 17px; }
.activity-choice { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e9e9eb; border-radius: 9px; background: #fff; }
.activity-choice img { width: 92px; height: 54px; border-radius: 6px; object-fit: cover; }
.activity-choice span { display: grid; flex: 1; gap: 5px; }
.activity-choice b { font-size: 16px; }
.activity-choice small { color: #888; font-size: 12px; }
.activity-choice i { color: #ff4e25; font-size: 12px; font-style: normal; }
.save-binding { width: 100%; height: 48px; margin-top: 28px; border-radius: 8px; background: #ff4e25; color: #fff; font-size: 17px; font-weight: 700; }
.binding-status { min-height: 24px; color: #ff4e25; font-size: 14px; text-align: center; }
@media (min-width: 600px) {
  html, body { background: #111; }
  .app-shell { position: relative; width: 430px; max-width: 430px; height: 100vh; min-height: 100vh; margin: 0 auto; overflow: hidden; box-shadow: 0 0 32px rgba(0,0,0,.45); }
  .page, .home-page { position: absolute; top: 0; right: auto; bottom: auto; left: 0; width: 430px; height: 100vh; min-height: 100vh; }
  .voice-search, .ai-button { position: absolute; }
  .result-page, .profile-page, .binding-page { position: absolute; }
}
