/* finesse · register=h5 · morph=A-app-shell · A=oxblood+warm-paper · B=system-750/450
 * C=brand-search and photo cover · D=quiet press feedback · E=Ganrao chamber
 * SOUL=7 SPECTACLE=3 DENSITY=7 */
#root {
  --gr-demo-red: #9e2930;
  --gr-demo-paper: #f7f3ef;
  --gr-demo-card: #fffdfa;
  --gr-demo-ink: #2f2425;
  --gr-demo-muted: #6f5f5e;
  --gr-demo-line: #ebded7;
}

#root .gr-original-home.gr-video-demo-home {
  display: block;
  padding-bottom: 20px;
  background: var(--gr-demo-paper) !important;
  color: var(--gr-demo-ink);
}

#root .gr-demo-masthead {
  position: relative;
  isolation: isolate;
  padding: max(10px, env(safe-area-inset-top, 0px)) 14px 26px;
  background:
    linear-gradient(136deg, transparent 50%, rgb(241 178 129 / 19%) 50.2%, transparent 51%),
    linear-gradient(122deg, transparent 65%, rgb(253 186 140 / 20%) 65.2%, transparent 80%),
    linear-gradient(107deg, #802028, #9b2931 61%, #b6443a);
  color: #fff9f2;
}

#root .gr-demo-home-navline {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#root .gr-demo-home-navline h1 { margin: 0; min-width: 0; color: inherit; font-size: 20px; font-weight: 750; }
#root .gr-demo-home-navline .gr-original-identity { color: inherit !important; gap: 8px; font-size: inherit; white-space: nowrap; }
#root .gr-demo-home-navline .gr-original-identity > span { color: #fff9f2; font-size: inherit; font-weight: 750; }
#root .gr-demo-home-navline .gr-original-identity img { width: 31px; height: 31px; border: 1px solid rgb(255 221 185 / 72%); }
#root .gr-demo-home-header-actions { display: flex; flex: none; align-items: center; gap: 2px; }

#root .gr-demo-home-city,
#root .gr-demo-home-notices {
  position: relative;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

#root .gr-demo-home-unread {
  position: absolute;
  inset: 2px 1px auto auto;
  min-width: 16px;
  padding: 1px 3px;
  border-radius: 9px;
  background: #ffe2ab;
  color: #692220;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

#root .gr-demo-home-search {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid rgb(111 38 29 / 12%);
  border-radius: 999px;
  background: #fffaf5;
  color: var(--gr-demo-muted);
  font-size: 14px;
  text-align: start;
}

#root .gr-demo-home-search > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#root .gr-demo-home-search strong { padding-inline-start: 8px; border-inline-start: 1px solid var(--gr-demo-line); color: var(--gr-demo-red); font-weight: 750; }

#root .gr-home-promo {
  position: relative;
  display: grid;
  width: calc(100% - 28px);
  min-height: 148px;
  aspect-ratio: 2.1;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  margin: -12px 14px 0;
  padding: 14px 16px;
  border-radius: 15px;
  background: #201918;
  color: #fff8f0;
  text-align: left;
  text-decoration: none;
}

#root .gr-home-promo img,
#root .gr-home-promo::before { position: absolute; inset: 0; width: 100%; height: 100%; }
#root .gr-home-promo img { z-index: -2; object-fit: cover; object-position: 71% 54%; }
#root .gr-home-promo::before {
  z-index: -1;
  background: linear-gradient(90deg, rgb(27 19 19 / 91%), rgb(33 23 23 / 59%) 39%, transparent 72%);
  content: "";
}

#root .gr-home-promo-copy { display: grid; max-width: 54%; justify-items: start; gap: 6px; }
#root .gr-home-promo-label {
  padding: 2px 6px;
  border: 1px solid rgb(255 231 209 / 38%);
  border-radius: 4px;
  color: #f5ddc7;
  font-size: 11px;
  line-height: 1.4;
}
#root .gr-home-promo-copy h2 {
  margin: 0;
  color: #fffaf6;
  font-size: clamp(27px, 7.6vw, 34px);
  font-weight: 790;
  line-height: 1.16;
  white-space: nowrap;
}
#root .gr-home-promo-text { color: #fff1e3; font-size: 13px; line-height: 1.4; }
#root .gr-home-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px 3px 8px;
  border: 1px solid rgb(255 231 209 / 54%);
  border-radius: 6px;
  background: rgb(32 25 24 / 82%);
  color: #fffaf6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
#root .gr-home-promo:focus-visible { outline: 2px solid #fff1e3; outline-offset: -4px; }
#root .gr-home-promo:active { filter: brightness(.94); }

#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"] { --gr-tab-color: #842833; }
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"] > span:first-child,
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"][aria-current="page"] > span:first-child {
  width: 36px;
  height: 32px;
  border-radius: 11px;
  background: #922c37 !important;
  color: #fff5ee;
}
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"][aria-current="page"] > span:first-child { box-shadow: 0 0 0 2px #eed3d2; }
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"] > span:first-child svg { width: 22px; height: 22px; fill: currentColor; }
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"][aria-current="page"] > span:first-child svg { fill: currentColor; }
#root nav[aria-label="底部导航"]:not(.gr-bottom-navigation) [data-nav="/ai-agent"] > span:last-child { font-weight: 750; }

#root .gr-demo-home-hero {
  position: relative;
  display: flex;
  width: calc(100% - 28px);
  min-height: 143px;
  aspect-ratio: 2.23;
  isolation: isolate;
  overflow: hidden;
  align-items: flex-end;
  margin: -12px 14px 0;
  padding: 16px;
  border: 0;
  border-radius: 15px;
  background: #4b302b;
  color: #fff9f1;
  text-align: start;
}

#root .gr-demo-home-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

#root .gr-demo-home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(84deg, rgb(33 23 23 / 79%), rgb(33 23 23 / 33%) 59%, transparent 100%),
    linear-gradient(0deg, rgb(33 23 23 / 43%), transparent 66%);
  content: "";
}

#root .gr-demo-home-hero-copy { display: grid; gap: 6px; }
#root .gr-demo-home-hero-copy > strong { font-size: 25px; font-weight: 780; line-height: 1.23; }
#root .gr-demo-home-hero-copy > span { display: flex; align-items: center; gap: 2px; color: #fff2e4; font-size: 13px; font-weight: 600; }

#root .gr-demo-home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 13px 14px 0;
  padding: 7px 3px;
  border: 1px solid var(--gr-demo-line);
  border-radius: 15px;
  background: var(--gr-demo-card);
}

#root .gr-demo-home-shortcuts > button {
  display: grid;
  min-width: 0;
  min-height: 69px;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 3px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gr-demo-ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

#root .gr-demo-home-shortcuts > button > span:first-child {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 10px;
  background: var(--shortcut-paper, #f6e1db);
  color: var(--shortcut-ink, #a52e34);
}

#root .gr-demo-home-shortcuts > [data-tone="amber"] { --shortcut-paper: #faebcf; --shortcut-ink: #8a5119; }
#root .gr-demo-home-shortcuts > [data-tone="clay"] { --shortcut-paper: #fbe6db; --shortcut-ink: #9f4130; }
#root .gr-demo-home-shortcuts > [data-tone="plum"] { --shortcut-paper: #eee5ef; --shortcut-ink: #65416e; }

#root .gr-demo-home-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 12px 14px 0;
}

#root .gr-demo-home-actions > button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 76px;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(115deg, var(--action-dark, #841f28), var(--action-light, #a13238));
  color: #fffaf4;
  text-align: start;
}

#root .gr-demo-home-actions > [data-tone="indigo"] { --action-dark: #273b70; --action-light: #3a5891; }
#root .gr-demo-home-actions > [data-tone="bronze"] { --action-dark: #865224; --action-light: #9e6130; }
#root .gr-demo-home-actions > [data-tone="plum"] { --action-dark: #58386b; --action-light: #784a87; }

#root .gr-demo-action-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
#root .gr-demo-action-copy strong { overflow-wrap: anywhere; font-size: 16px; font-weight: 750; line-height: 1.26; }
#root .gr-demo-action-copy small { color: #fff3e9; font-size: 12px; line-height: 1.3; }

#root .gr-demo-action-icon {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  align-self: center;
  place-items: center;
  isolation: isolate;
  border: 1px solid rgb(255 245 235 / 25%);
  border-radius: 50%;
  background: rgb(255 245 235 / 14%);
  color: #fff0dd;
}

#root .gr-demo-action-icon::before {
  position: absolute;
  z-index: -1;
  inset: -10px;
  border: 1px solid rgb(255 245 235 / 13%);
  border-radius: inherit;
  content: "";
}

#root .gr-video-demo-home .gr-map-entry {
  --gr-map-brand: #8c2b31;
  --gr-map-paper: #fffaf3;
  --gr-map-border: var(--gr-demo-line);
  --gr-map-ink: var(--gr-demo-ink);
  --gr-map-secondary: var(--gr-demo-muted);
  margin: 12px 14px 0;
  border-radius: 13px;
  background: #eee5d8;
}

#root .gr-video-demo-home .gr-map-entry-open {
  min-height: 75px;
  grid-template-columns: 38px minmax(0,1fr) 33px;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #fff8ee 0 38%, rgb(255 248 238 / 95%) 52%, transparent 88%);
}

#root .gr-video-demo-home .gr-map-entry-art { inset-inline-start: 37%; }
#root .gr-video-demo-home .gr-map-entry-icon { width: 38px; height: 38px; border-radius: 9px; }
#root .gr-video-demo-home .gr-map-entry-label strong { font-size: 16px; }
#root .gr-video-demo-home .gr-map-entry-label small { font-size: 12px; }
#root .gr-video-demo-home .gr-map-entry-arrow { width: 32px; height: 32px; }

#root .gr-demo-home-section { min-width: 0; margin: 15px 14px 0; }
#root .gr-demo-home-section-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
#root .gr-demo-home-section-head h2 { margin: 0; min-width: 0; font-size: 19px; font-weight: 770; overflow-wrap: anywhere; }
#root .gr-demo-home-section-head button { display: flex; min-height: 44px; align-items: center; gap: 2px; padding: 0 4px 0 11px; border: 0; color: var(--gr-demo-red); font-size: 13px; white-space: nowrap; }

#root .gr-demo-home-news ul { margin: 0; padding: 0 10px; list-style: none; border: 1px solid var(--gr-demo-line); border-radius: 13px; background: var(--gr-demo-card); }
#root .gr-demo-home-news li + li { border-top: 1px solid var(--gr-demo-line); }
#root .gr-demo-home-news li > button {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: minmax(0,1fr) 73px;
  align-items: center;
  gap: 9px;
  padding: 8px 1px;
  border: 0;
  text-align: start;
}

#root .gr-demo-news-copy { display: grid; min-width: 0; gap: 5px; }
#root .gr-demo-news-copy strong { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#root .gr-demo-news-copy > span { display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: center; color: var(--gr-demo-muted); font-size: 12px; }
#root .gr-demo-news-copy em { border-radius: 4px; background: #f6e5df; color: #8e3333; font-style: normal; padding: 1px 4px; }
#root .gr-demo-news-photo { width: 73px; height: 51px; object-fit: cover; }

#root :is(.gr-demo-activity-rail,.gr-demo-member-rail) { display: flex; gap: 9px; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
#root :is(.gr-demo-activity-rail,.gr-demo-member-rail) > button { flex: none; overflow: hidden; border: 1px solid var(--gr-demo-line); border-radius: 12px; background: var(--gr-demo-card); scroll-snap-align: start; }
#root .gr-demo-activity-rail > button { width: min(84%, 280px); padding: 0; text-align: start; }
#root .gr-demo-activity-photo { display: block; width: 100%; height: 112px; object-fit: cover; border-radius: 0; }
#root .gr-demo-activity-copy { display: grid; padding: 9px; gap: 4px; color: var(--gr-demo-muted); font-size: 12px; }
#root .gr-demo-activity-copy strong { color: var(--gr-demo-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
#root .gr-demo-activity-status { width: fit-content; padding: 1px 6px; border-radius: 9px; background: #f6e5df; color: #8e3333; }
#root .gr-demo-member-rail > button { display: grid; min-width: 94px; justify-items: center; gap: 4px; padding: 9px 6px; font-size: 13px; }
#root .gr-demo-home-demands > div:not(.gr-demo-home-section-head) { margin-inline: 0; box-shadow: none; border: 1px solid var(--gr-demo-line); }

#root .gr-video-demo-home .gb-home-empty { margin: 14px 14px 0; border-radius: 13px; border-color: var(--gr-demo-line); background: var(--gr-demo-card); box-shadow: none; }
#root .gr-video-demo-home .gb-home-empty h2 { color: var(--gr-demo-ink); font-size: 16px; }
#root .gr-video-demo-home .gb-home-empty p { color: var(--gr-demo-muted); }
#root .gr-video-demo-home .gb-home-empty .gb-btn { min-height: 44px; }
#root .gr-video-demo-home .gb-home-empty .gb-btn:not(.secondary) { background: var(--gr-demo-red); }
#root .gr-video-demo-home .gb-home-empty .gb-btn.secondary { border-color: var(--gr-demo-line); background: #f9ece7; color: #862830; }

#root .gr-demo-home-footer { padding: 18px 12px 9px; color: var(--gr-demo-muted); font-size: 12px; text-align: center; }
#root .gr-demo-city-options > button { display: flex; width: 100%; min-height: 44px; justify-content: space-between; align-items: center; padding: 3px 9px; border: 0; color: var(--gr-demo-ink); text-align: left; }
#root .gr-demo-city-options > [aria-pressed="true"] { border-radius: 10px; background: #f5e5df; color: var(--gr-demo-red); font-weight: 700; }
#root .gr-video-demo-home button:focus-visible { outline: 2px solid #8d2b32; outline-offset: -2px; }
#root .gr-demo-masthead :is(.gr-demo-home-city,.gr-demo-home-notices):focus-visible { outline-color: #fff7e8; }
#root .gr-video-demo-home button:active { filter: brightness(.94); }

#root [code-path$="ui.tsx:405:5"] { border-top-color: var(--gr-demo-line) !important; background: var(--gr-demo-card); }
#root [code-path$="ui.tsx:409:11"]:has(> span:first-child[style*="251, 234, 236"]) { --gr-tab-color: var(--gr-demo-red); }
#root [code-path$="ui.tsx:409:11"]:has(> span:first-child[style*="251, 234, 236"]) svg { fill: var(--gr-demo-red); }
#root [code-path$="ui.tsx:409:11"]:has(> span:first-child[style*="251, 234, 236"]) [code-path$="ui.tsx:413:13"] { color: var(--gr-demo-red) !important; }

@media (max-width: 345px) {
  #root .gr-demo-home-navline h1 { font-size: 18px; }
  #root .gr-demo-home-actions > button { padding-inline: 8px; }
  #root .gr-demo-action-icon { width: 32px; height: 32px; flex-basis: 32px; }
  #root .gr-demo-action-icon svg { width: 22px; height: 22px; }
  #root .gr-demo-action-copy small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  #root .gr-video-demo-home * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
