:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  color: #18202b;
  background: #eaf0f5;
  --blue: #056de8;
  --muted: #75808e;
  --line: #edf0f3;
  --app-height: 100vh;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  display: grid;
  place-items: center;
  background: radial-gradient(
    ellipse at 50% 25%,
    #f9fbfc 0,
    #eff3f7 48%,
    #e7edf3 100%
  );
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
button:disabled {
  cursor: default;
}
button img {
  pointer-events: none;
}
input,
textarea {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button .icon {
  pointer-events: none;
}
.icon {
  flex: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
#phone {
  --status: 34px;
  --safe: 14px;
  --bar: 64px;
  --pad: 21px;
  --chat-h: 54%;
  --buddy-x: calc(100% - 92px);
  --lift: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: calc(100vh - 32px);
  height: calc(var(--app-height) - 32px);
  max-height: 940px;
  overflow: hidden;
  overflow: clip;
  border-radius: 27px;
  background: #fff;
  box-shadow:
    0 18px 65px #253e5f19,
    0 2px 9px #22384f0a,
    0 0 0 1px #b9c7d380;
}
.statusbar {
  height: var(--status);
  flex: 0 0 var(--status);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 26px 0 29px;
  color: #13171e;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cell-bars {
  display: block;
  width: 15px;
  height: 11px;
  background:
    linear-gradient(to top, currentColor 100%, transparent) 0 100%/2.8px 35%,
    linear-gradient(to top, currentColor 100%, transparent) 4px 100%/2.8px 56%,
    linear-gradient(to top, currentColor 100%, transparent) 8px 100%/2.8px 77%,
    linear-gradient(to top, currentColor 100%, transparent) 12px 100%/2.8px 100%;
  background-repeat: no-repeat;
}
.battery {
  width: 20px;
  height: 10px;
  border: 1px solid #41454a;
  border-radius: 2.8px;
  position: relative;
  box-shadow: inset 0 0 0 1px #fff;
  background: currentColor;
}
.battery:after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 1.6px;
  height: 4px;
  background: #737781;
  border-radius: 0 1px 1px 0;
}
#header {
  z-index: 2;
  flex: none;
  background: #fff;
}
.home-head {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pad);
}
.wordmark {
  width: 53px;
  height: auto;
  display: block;
  filter: saturate(1.7);
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 35px;
  min-width: 0;
  text-align: left;
  border-radius: 20px;
  background: #f3f5f7;
  padding: 0 12px;
  color: #84909d;
  font-size: 14px;
}
.search-pill input {
  flex: 1;
  width: 100%;
  font-size: 16px;
  color: #233144;
}
.icon-btn {
  min-width: 34px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #343c46;
}
.tabs {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}
.tab-links {
  height: 100%;
  display: flex;
  gap: 31px;
}
.tab-links button {
  height: 100%;
  position: relative;
  font-size: 16px;
  color: #75808b;
}
.tab-links .active {
  color: #141d28;
  font-size: 20px;
  font-weight: 720;
}
.tab-links .active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--blue);
}
.tab-more {
  margin-right: -3px;
  color: #6c7886;
  width: 32px;
  height: 40px;
}
#page {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  outline: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
#page::-webkit-scrollbar,
#conversation::-webkit-scrollbar {
  display: none;
}
#page:after {
  content: "";
  display: block;
  height: 58px;
  pointer-events: none;
}
.hero {
  position: relative;
  isolation: isolate;
  margin: 16px var(--pad) 0;
  border-radius: 13px;
  overflow: hidden;
  height: 180px;
  height: clamp(167px, 43vw, 197px);
  background: #325474;
  color: #fff;
}
.hero-photo,
.hero-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  pointer-events: none;
}
.hero-shade {
  background: linear-gradient(
    180deg,
    #0b263248 0%,
    transparent 33%,
    #05203539 50%,
    #061a2fc9 100%
  );
}
.hero-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.daily {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-date {
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 650;
  text-shadow: 0 1px 3px #20303960;
}
.hero-bottom {
  max-width: 90%;
  margin-bottom: 7px;
}
.hero-category {
  font-size: 12px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #f3f7fb;
}
.hero-category:before {
  content: "";
  width: 15px;
  height: 2px;
  background: #8ac5ff;
}
.hero h2 {
  font-size: 22px;
  font-size: clamp(21px, 4.9vw, 24px);
  font-weight: 720;
  line-height: 1.38;
  letter-spacing: 0.1px;
  text-wrap: balance;
  text-shadow: 0 2px 7px #12213244;
}
.hero-dots {
  position: absolute;
  bottom: 0;
  right: 12px;
  display: flex;
  align-items: center;
}
.hero-dots button {
  height: 25px;
  padding: 0 3px;
  display: grid;
  place-items: center;
}
.hero-dots i {
  width: 4px;
  height: 4px;
  border-radius: 5px;
  background: #ffffff80;
}
.hero-dots .active i {
  width: 14px;
  background: #fff;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px var(--pad) 5px;
  gap: 8px;
}
.section-title h2 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.1px;
  font-weight: 720;
}
.muted-link,
.plain-blue,
.muted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.muted-link {
  min-height: 31px;
}
.plain-blue {
  color: var(--blue);
  font-size: 15px;
}
.feed-card {
  border-bottom: 1px solid var(--line);
  margin: 0 var(--pad);
  padding: 15px 0 13px;
}
.feed-link {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.feed-copy {
  min-width: 0;
  flex: 1;
}
.feed-card h3,
.rank-row h3,
.answer-option h3,
.video-link h3 {
  font-size: 17px;
  font-weight: 680;
  line-height: 1.46;
  letter-spacing: 0.05px;
}
.feed-copy p,
.other-answer p,
.answer-option p {
  font-size: 14px;
  line-height: 1.57;
  color: #637080;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumb {
  width: 100px;
  width: clamp(93px, 24vw, 111px);
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
  margin-top: 2px;
}
.feed-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #788592;
  font-size: 12px;
  line-height: 20px;
  margin-top: 9px;
}
.author-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #5d6a78;
}
.avatar {
  width: 19px;
  height: 19px;
  object-fit: cover;
  display: inline-block;
  border-radius: 50%;
  background: #e6ecf2;
  flex: none;
}
.avatar.letter {
  display: inline-grid;
  place-items: center;
  background: #e1eaf8;
  color: #5074a2;
  font-weight: 650;
}
.meta-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #b9c1ca;
}
.meta-action {
  font-size: 12px;
  color: inherit;
}
.feed-card:last-child {
  border-bottom: 0;
}
#nav {
  flex: none;
  height: var(--bar);
  background: #fff;
  border-top: 1px solid #e9edf0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 3;
}
#nav button {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: #77818d;
  font-size: 11px;
  font-weight: 500;
}
#nav .active {
  color: var(--blue);
}
#nav .active .icon-home {
  fill: var(--blue);
}
#nav .active .icon-bell {
  fill: #dbeaff;
}
#nav .active .icon-user {
  stroke-width: 2.2;
}
#nav .create-icon {
  width: 43px;
  height: 31px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
}
.safe-area {
  height: var(--safe);
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 6;
  pointer-events: none;
}
.safe-area i {
  width: 95px;
  height: 4px;
  background: #222a32;
  border-radius: 8px;
}
#buddy {
  position: absolute;
  left: var(--buddy-x);
  bottom: calc(var(--safe) + var(--bar) + 2px + var(--lift));
  width: 88px;
  height: 88px;
  z-index: 5;
  touch-action: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition:
    left 0.26s ease,
    bottom 0.28s ease,
    width 0.24s ease,
    height 0.24s ease,
    transform 0.22s ease;
  filter: drop-shadow(0 2px 3px #1f4e8512);
}
#phone.dragging #buddy {
  transition: none;
}
#phone.scrolling:not(.chat-open) #buddy {
  opacity: 0.8;
  transform: translateY(4px) scale(0.87);
}
#guide-spot {position:absolute;z-index:29;pointer-events:none;border-radius:12px;box-shadow:0 0 0 2px #d3e8ff,0 0 0 200vmax rgba(22,29,39,.77)}
.guide-buddy #guide-spot {background:rgba(22,29,39,.77);box-shadow:none;border-radius:0;left:0!important;top:0!important;width:100%!important;height:100%!important}
#phone.guide-buddy #buddy {z-index:30;filter:drop-shadow(0 2px 7px #101b3055)}
#phone.guide-planet #buddy {visibility:hidden}
.guide-planet-stage {position:absolute;z-index:30;right:15px;bottom:calc(var(--safe) + var(--bar) + 2px);width:88px;height:88px;pointer-events:none}
.guide-planet-stage kan-shan {display:block;width:100%;height:100%}
#phone.guiding #buddy-tip,#phone.guiding #buddy-say {display:none}
#kanshan-guide {position:absolute;z-index:31;top:0;right:0;bottom:0;left:0;pointer-events:none;color:#fff}
.guide-cue {position:absolute;width:max-content;max-width:calc(100% - 32px);text-align:center;line-height:1.45;text-shadow:0 1px 4px #0005}
#kanshan-guide small,#kanshan-guide strong,#kanshan-guide span {display:block}
#kanshan-guide small {color:#d5e6f8;font-size:12px;letter-spacing:.07em;margin-bottom:5px}
#kanshan-guide strong {font-weight:650;font-size:19px}
#kanshan-guide span {margin:4px auto 0;max-width:25em;color:#f1f5fb;font-size:14px}
#kanshan-guide button {pointer-events:auto;min-height:44px;padding:0 14px;background:transparent;color:white;font-size:14px}
.guide-cue button {text-decoration:underline;text-underline-offset:4px}
#kanshan-guide .guide-primary {display:block;min-width:136px;min-height:48px;margin:10px auto 0;padding:8px 24px;border:1px solid #a8d5ff;border-radius:24px;background:#0563c8;color:white;font-size:16px;font-weight:650;text-decoration:none;box-shadow:0 3px 10px #10244755}
#kanshan-guide .guide-primary:focus-visible {outline:3px solid white;outline-offset:3px}
#kanshan-guide .guide-primary:active {background:#064d9d}
.guide-actions {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;margin-top:10px}
#kanshan-guide .guide-actions .guide-primary {margin:0}
#kanshan-guide [data-guide="sound"] {border-radius:24px;padding:0 12px;color:white;background:#18202abd;border:1px solid #ffffff70;text-decoration:none}
#kanshan-guide [data-guide="sound"][aria-pressed="true"] {border-color:#a8d5ff}
#kanshan-guide [data-guide="exit"] {position:absolute;z-index:1;right:12px;top:var(--status);top:max(var(--status),env(safe-area-inset-top));border-radius:24px;background:rgba(24,32,42,.6);border:1px solid #ffffff66;min-width:64px}
.app-locked #kanshan-guide,.app-locked #guide-spot {display:none}
.guide-cue.guide-over-window {background:rgba(22,29,39,.92);border-radius:14px;padding:8px 12px}
#phone.guiding.chat-full .chat-bar {padding-right:94px}
#phone.buddy-stowed #buddy,
#phone:not(.buddy-stowed) .recall-buddy {display:none}
#buddy-stow-hint {position:absolute;z-index:12;bottom:calc(var(--safe) + var(--bar) + 12px);left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:14px;background:#263a50;color:white;font-size:13px;white-space:nowrap;pointer-events:none}
.answer-more {position:relative}
.answer-more summary {display:grid;place-items:center;width:42px;height:42px;cursor:pointer;list-style:none}
.answer-more summary::-webkit-details-marker {display:none}
.answer-more[open]>div {position:absolute;z-index:3;right:0;top:100%;min-width:124px;padding:4px;background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 5px 18px #22395624}
.answer-more button {display:flex;width:100%;align-items:center;gap:8px;padding:6px 10px;min-height:42px;white-space:nowrap}
#buddy:focus-visible {
  border-radius: 18px;
}
.subhead,
.root-head,
.search-head {
  height: 53px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  gap: 9px;
  border-bottom: 1px solid var(--line);
}
.subhead {
  display: grid;
  grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) minmax(44px, max-content);
  height: auto;
  min-height: 53px;
  padding: 5px max(6px, calc(var(--pad) - 9px));
}
.subhead > .icon-btn { min-width: 44px; height: 44px; justify-self: start; }
.search-head > .icon-btn {
  margin-left: -9px;
}
.subhead h1 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: break-word;
}
.head-right {
  margin-left: auto;
}
.root-head {
  justify-content: space-between;
}
.root-head h1 {
  font-size: 23px;
  letter-spacing: 0.2px;
}
.search-head {
  gap: 6px;
}
.author-line,
.author-summary,
.author-bar,
.author-profile,
.author-link,
.topic-link,
.tool-btn,
.vote-btn,
.follow-btn,
.player-controls,
.list-row,
.profile-cover {
  display: flex;
  align-items: center;
}
.article,
.question-intro,
.video-heading {
  padding: 20px var(--pad);
}
.article h1,
.question-intro h1,
.video-heading h1,
.author-profile h1,
.profile-cover h1 {
  font-size: 24px;
  line-height: 1.48;
  font-weight: 730;
  letter-spacing: 0.1px;
}
.article h1 button {
  text-align: left;
  font-weight: inherit;
}
.topic-link {
  border-radius: 5px;
  color: #347ac3;
  background: #eff6fe;
  padding: 4px 8px;
  font-size: 12px;
  gap: 3px;
  margin: 0 0 12px;
}
.author-bar {
  justify-content: space-between;
  gap: 10px;
  padding: 16px var(--pad);
}
.article .author-bar,
.video-heading .author-bar {
  padding: 19px 0;
}
.author-summary {
  gap: 9px;
  text-align: left;
}
.avatar.large {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.avatar.xl {
  width: 64px;
  height: 64px;
  font-size: 27px;
}
.author-summary b,
.author-summary small {
  display: block;
}
.author-summary b,
.author-line strong {
  font-size: 15px;
}
.author-summary small {
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted);
}
.follow-btn {
  gap: 3px;
  font-size: 13px;
  color: var(--blue);
  background: #eaf3ff;
  border-radius: 16px;
  padding: 6px 11px;
  font-weight: 600;
  white-space: nowrap;
}
.follow-btn.following {
  background: #f2f4f6;
  color: #7c8792;
}
.article-body,
.pin-detail,
.video-heading > p,
.question-intro > p {
  font-size: 16px;
  line-height: 1.92;
  color: #303944;
}
.article-body p + p,
.article-body figure + p {
  margin-top: 16px;
}
.article-body figure {
  margin-top: 16px;
}
.article-body img,
.pin-detail img {
  width: 100%;
  display: block;
  border-radius: 8px;
  max-height: 280px;
  object-fit: cover;
}
.article-foot,
.notice-box > span {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.article {
  border-bottom: 6px solid #f5f6f8;
}
.other-answer,
.answer-option {
  display: block;
  width: 100%;
  padding: 16px var(--pad);
  text-align: left;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.other-answer p {
  padding-right: 25px;
}
.other-answer > .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  color: #8b95a1;
}
.answer-option small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.question-intro {
  background: linear-gradient(170deg, #f7faff, #fff);
  border-bottom: 5px solid #f5f6f8;
}
.question-intro > p {
  margin-top: 12px;
}
.comment-preview {
  padding: 12px var(--pad);
  color: #53606e;
  line-height: 1.65;
}
#page-tools {
  flex: none;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: #fff;
}
.article-actions,
#comment-form {
  height: var(--bar);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vote-btn,
.tool-btn {
  gap: 5px;
  font-size: 14px;
}
.vote-btn {
  border-radius: 18px;
  padding: 7px 13px;
  color: var(--blue);
  background: #edf5ff;
}
.vote-btn .icon {
  fill: currentColor;
  stroke-width: 1;
}
.vote-btn.is-on {
  background: var(--blue);
  color: #fff;
}
.tool-btn {
  color: #65717f;
}
.tool-btn.is-on {
  color: var(--blue);
}
.tool-btn.is-on svg {
  fill: #dcecff;
}
#comment-input,
#chat-input,
.write-form input {
  background: #f3f5f7;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 16px;
  flex: 1;
}
.context-strip {
  padding: 13px var(--pad);
  background: #f7f9fb;
  font-size: 14px;
  color: #677689;
}
.context-strip button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  align-items: center;
  text-align: left;
}
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 var(--pad);
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.comment-item b {
  font-size: 14px;
}
.comment-item p {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 6px;
}
.comment-avatar,
.self-avatar,
.msg-icon {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  font-size: 14px;
  background: #e4effa;
  color: #487699;
}
.comment-avatar.c1 {
  background: #e8ecde;
  color: #688048;
}
.comment-avatar.c2 {
  background: #fae9dc;
  color: #926540;
}
.chips,
.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px var(--pad) 18px;
}
.chip {
  padding: 7px 12px;
  border-radius: 17px;
  background: #f3f5f7;
  font-size: 14px;
}
.search-hot {
  padding: 8px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.search-word {
  text-align: left;
  padding: 8px 0;
  font-size: 15px;
}
.search-word em,
.rank-row em {
  font:
    700 17px/1.3 Arial,
    sans-serif;
  color: #d8853d;
  margin-right: 11px;
}
.rank-row {
  width: 100%;
  padding: 15px var(--pad);
  display: flex;
  align-items: flex-start;
  text-align: left;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}
.rank-row em {
  font-size: 22px;
  width: 16px;
  margin-right: 7px;
  color: #a0acb8;
}
.rank-row:nth-child(-n + 4) em {
  color: #e97b47;
}
.rank-row div {
  flex: 1;
}
.rank-row small,
.msg-row p,
.profile-scores span,
.author-profile p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.rank-row img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
}
.hot-head {
  padding: 24px var(--pad) 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ce622a;
}
.hot-head b {
  font-size: 23px;
  color: #333;
}
.hot-head span {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.pin-card {
  padding: 18px var(--pad);
  border-bottom: 6px solid #f4f6f8;
}
.author-line {
  gap: 8px;
}
.author-line .avatar {
  width: 29px;
  height: 29px;
}
.pin-content {
  display: block;
  text-align: left;
  width: 100%;
}
.pin-content p,
.pin-detail p {
  font-size: 16px;
  line-height: 1.75;
  margin: 12px 0;
}
.pin-content img {
  object-fit: cover;
  width: 100%;
  height: 165px;
  border-radius: 9px;
}
.pin-detail {
  padding: 0 var(--pad);
}
.pin-detail div {
  margin: 10px 0;
}
.author-profile {
  padding: 26px var(--pad);
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(#eef5fc, white);
}
.author-profile p {
  margin: 0 0 5px;
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.topic-tile {
  position: relative;
  height: 82px;
  background: #344c61;
  color: white;
  overflow: hidden;
  border-radius: 9px;
}
.topic-tile img,
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topic-tile:after,
.video-cover:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(transparent, #13263988);
}
.topic-tile b {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 1;
}
.topic-cover {
  padding: 25px var(--pad);
  background: #495a70 center/cover;
  color: white;
}
.topic-cover h1 {
  font-size: 27px;
  margin-top: 14px;
}
.topic-cover span {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-link {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px var(--pad) 0;
}
.video-cover {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  height: 160px;
}
.video-cover span,
.video-cover small {
  position: absolute;
  z-index: 1;
  color: #fff;
}
.video-cover span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 45px;
  width: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #14253a60;
  border: 1px solid #ffffffb0;
}
.video-cover .icon {
  fill: white;
}
.video-cover small {
  bottom: 10px;
  right: 12px;
}
.video-link h3 {
  margin-top: 9px;
}
.video-player {
  position: relative;
  background: #0d1a2b;
}
.video-player canvas {
  display: block;
  width: 100%;
  height: auto;
}
.player-controls {
  gap: 12px;
  padding: 8px 12px;
  color: white;
  background: #132034;
}
.player-controls input {
  flex: 1;
  accent-color: #5aabff;
}
.player-controls time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.play-btn {
  width: 35px;
  height: 35px;
}
.list-row {
  width: 100%;
  height: 56px;
  padding: 0 var(--pad);
  gap: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.list-row > .icon:first-child {
  color: #5d7490;
}
.list-row > .icon-kanshan:first-child {
  width: 32px;
  height: 32px;
  margin: 0 -5.5px;
  object-fit: contain;
}
.list-row b {
  font-size: 15px;
  font-weight: 550;
}
.list-row small {
  margin-left: auto;
}
.list-row > .icon:last-child {
  color: #a3acb5;
}
.profile-cover {
  padding: 29px var(--pad) 20px;
  gap: 15px;
  background: linear-gradient(165deg, #edf5ff, #fff);
}
.self-avatar {
  width: 60px;
  height: 60px;
  background: #dceaff;
  color: #4b80bd;
}
.profile-scores {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  border-bottom: 6px solid #f4f6f8;
}
.profile-scores strong,
.profile-scores span {
  display: block;
}
.profile-scores strong {
  font-size: 20px;
}
.msg-row {
  display: flex;
  width: 100%;
  gap: 14px;
  text-align: left;
  align-items: center;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
}
.msg-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
}
.msg-icon.green {
  background: #e5f3ee;
  color: #439779;
}
.msg-icon.gold {
  background: #fff1d9;
  color: #c68a28;
}
.msg-row b {
  font-size: 16px;
}
.msg-row p {
  line-height: 1.5;
}
.unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-left: auto;
}
.notice-box {
  padding: 20px var(--pad);
}
.notice-box h2 {
  font-size: 18px;
  line-height: 1.6;
  margin: 13px 0;
}
.write-form {
  padding: 22px var(--pad);
  display: grid;
  gap: 13px;
}
.write-form label {
  font-size: 15px;
  font-weight: 650;
}
.write-form textarea,
.write-form input {
  border-radius: 9px;
  background: #f5f7f9;
  padding: 12px;
  width: 100%;
  font-size: 16px;
}
.write-form textarea {
  min-height: 90px;
}
.write-form textarea#write-body {
  min-height: 140px;
}
.primary {
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 15px;
}
.empty {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 13px;
  padding: 66px var(--pad);
  color: #7e8b99;
}
.empty h2 {
  font-size: 17px;
  color: #424e5c;
}
.empty p {
  font-size: 14px;
  line-height: 1.7;
}
.chat-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-identity strong {
  font-size: 19px;
}
.chat-identity > span {
  color: #7b899a;
  background: #f3f6f9;
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 5px;
}
.chat-tools {
  display: flex;
  gap: 3px;
}
.chat-tools button {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  color: #657584;
}
.chat-tools button:last-child {
  border-radius: 50%;
  background: #f4f6f8;
}
#chat-context {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #567596;
  border-radius: 7px;
  margin: 0 17px 3px;
  padding: 8px 10px;
  background: #f1f6fc;
  font-size: 13px;
}
#chat-context span {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#conversation {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 12px 17px;
  position: relative;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.welcome h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 4px 0 10px;
}
.suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  padding: 8px 11px;
  color: #3d5167;
  font-size: 14px;
  text-align: left;
}
.suggestions .icon {
  color: #829ab0;
}
.user-msg {
  margin: 3px 0 14px auto;
  max-width: 87%;
  width: fit-content;
  padding: 9px 13px;
  border-radius: 14px 14px 3px 14px;
  background: #e8f2ff;
  color: #184775;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.bot-msg {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.speaker {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #377bc3;
}
.speaker i {
  width: 6px;
  height: 6px;
  background: #69a8ec;
  transform: rotate(45deg);
  border-radius: 1px;
}
.reply-part {
  margin: 7px 0 10px;
}
.reply-part strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}
.reply-part p {
  color: #354456;
}
.citation {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4ebf3;
  background: #f9fbfd;
  border-radius: 8px;
  padding: 8px 9px;
  width: 100%;
  text-align: left;
  margin: 6px 0;
}
.citation > span {
  width: 29px;
  height: 30px;
  border-radius: 6px;
  background: #eaf3ff;
  display: grid;
  place-items: center;
  color: #397abf;
}
.citation > div {
  flex: 1;
  min-width: 0;
}
.citation b,
.citation small {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.citation b {
  font-size: 13px;
}
.citation small {
  font-size: 12px;
  color: #748090;
  margin-top: 2px;
}
.citation > .icon {
  color: #8795a4;
}
.thinking {
  font-size: 14px;
  color: #71849b;
}
.thinking span {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.25;
  }
}
#chat-form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
#chat-input {
  width: 100%;
  height: 39px;
}
#chat-send {
  width: 35px;
  height: 35px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
#chat-send:disabled {
  background: #e5edf6;
  color: #95abc3;
}
#toast {
  position: absolute;
  z-index: 13;
  bottom: calc(var(--safe) + var(--bar) + 22px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: #253341ec;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  width: max-content;
  max-width: calc(100% - 24px);
  overflow-wrap: break-word;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 540px) {
  body {
    background: #fff;
  }
  #phone {
    position: fixed;
    top: var(--app-top, 0px);
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height);
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    --pad: 17px;
    --status: 0px;
    --status: env(safe-area-inset-top, 0px);
    --safe: 0px;
    --safe: env(safe-area-inset-bottom, 0px);
  }
  .statusbar,
  .safe-area {
    padding: 0;
  }
  .statusbar > *,
  .safe-area i {
    display: none;
  }
  .hero {
    height: 180px;
    height: clamp(165px, 42vw, 205px);
  }
  #chat {
    max-height: 100%;
  }
  .home-head {
    gap: 12px;
  }
  .tab-links {
    gap: 29px;
  }
}
@media (max-width: 370px) {
  #phone {
    --pad: 14px;
  }
  .home-head {
    gap: 9px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .thumb {
    width: 85px;
    height: 70px;
  }
  .tab-links {
    gap: 24px;
  }
  .feed-meta {
    gap: 6px;
  }
  .hero-link {
    padding: 14px;
  }
  .chat-identity {
    gap: 4px;
  }
}
.android-handset #phone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: var(--app-height, 100vh);
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  --status: env(safe-area-inset-top, 0px);
  --safe: env(safe-area-inset-bottom, 0px);
}
.android-handset .statusbar, .android-handset .safe-area {padding:0}
.android-handset .statusbar > *, .android-handset .safe-area > * {display:none}
.android-tab #phone {--status:0px}
.android-tab .statusbar {display:none}
@media (max-height: 620px) {
  #phone {
    --chat-h: 66%;
  }
  .hero {
    height: 145px;
  }
}
#phone.scrolling[data-side="right"]:not(.chat-open) #buddy {
  transform: translateX(30px) scale(0.86);
}
#phone.scrolling[data-side="left"]:not(.chat-open) #buddy {
  transform: translateX(-30px) scale(0.86);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.live-row .live-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  color: #637080;
  font-size: 14px;
  line-height: 1.6;
}
.official-link,.more-answers {display:inline-block;margin:14px 0;color:var(--blue);text-decoration:none;font-size:14px}
.more-answers {width:100%;text-align:center}
a.citation {color:inherit;text-decoration:none}
.live-row {color:inherit;text-decoration:none}
.reading-result {border-bottom:1px solid var(--line)}
.reading-result .live-row {border-bottom:0;padding-bottom:0}

.official-body {overflow-wrap:anywhere;white-space:pre-line}
.official-body :is(ul,ol,blockquote,pre) {margin:12px 0;padding-inline-start:1.4em}
.official-body :is(pre,table) {max-width:100%;overflow:auto}
.official-body img {max-height:none;object-fit:contain}
.reply-part p,.article-body p[data-selectable] {white-space:pre-line}

/* ---------- launch splash + login gate ---------- */
.self-avatar { overflow: hidden; }
.self-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-card {
  margin: 4px var(--pad) 0;
  padding: 16px;
  border-radius: 12px;
  background: #f5f7f9;
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #44505d;
}
.account-card small { color: var(--muted); }
.knowledge-surprises { gap: 10px; min-width: 0; }
.knowledge-surprises h2 { margin: 0; font-size: 15px; }
.knowledge-surprises img { display: block; width: 100%; height: auto; border-radius: 8px; }
.logout-btn {
  justify-self: start;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d9dfe6;
  color: #c2473b;
  background: #fff;
  font-size: 14px;
}
#gate {
  position: absolute;
  top: var(--status);
  right: 0;
  bottom: 0;
  left: 0;
  inset: var(--status) 0 0;
  z-index: 40;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#gate.leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }
.splash {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 16px;
  padding: 48px 0 76px;
}
.splash-skip {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 5px 14px;
  border-radius: 99px;
  background: #0000000d;
  color: #59636f;
  font-size: 13px;
}
.splash-board {
  position: relative;
  flex: none;
  width: 198px;
  width: clamp(132px, 26.4vh, 220px);
  height: 270px;
  height: clamp(180px, 36vh, 300px);
  margin-left: -10px;
}
.splash-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: url(#splash-ink);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.splash-frame path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.play .splash-frame path { animation: frameDraw 0.9s cubic-bezier(0.55, 0, 0.3, 1) forwards; }
.play .splash-frame path + path { animation-delay: 0.25s; }
.splash-words {
  position: absolute;
  left: -36px;
  top: 37%;
  display: grid;
  gap: 6px;
  font-size: 32px;
  font-size: clamp(26px, 4.8vh, 37px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 3px;
  color: #3b4049;
  white-space: nowrap;
}
.splash-words > span { opacity: 0; }
.play .splash-words .w1 { animation: rise 0.55s 0.3s ease-out forwards; }
.play .splash-words .w2 { animation: rise 0.6s 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.15) forwards; }
.w2 { position: relative; display: block; height: 1.2em; }
.w2 b { font-weight: 500; color: var(--blue); }
.splash-buddy {
  position: relative;
  flex: none;
  width: 120px;
  width: clamp(88px, 18vh, 150px);
  height: 120px;
  height: clamp(88px, 18vh, 150px);
}
.splash-buddy kan-shan { width: 100%; height: 100%; transform: translateY(12px); opacity: 0; }
.play .splash-buddy kan-shan { animation: rise .55s ease-out forwards; }
.splash-buddy.code-stage {width:100%;height:clamp(118px,29vh,248px);min-height:76px;flex-shrink:1;isolation:isolate;}
.splash-3d {gap:clamp(8px,1.7vh,16px);}
@media(max-height:640px){
  .splash-3d {padding:34px 0 46px;}
  .splash-3d .splash-board {height:clamp(86px,30vh,182px);width:clamp(63px,22vh,134px);}
  .splash-3d .splash-words {font-size:clamp(18px,4.5vh,27px);gap:3px;}
  .splash-3d .splash-brand {bottom:10px;}
}
@media(max-height:450px){
  .splash-3d {padding:24px 0 44px;gap:5px;}
  .splash-3d .splash-board {height:24vh;width:17.6vh;}
  .splash-3d .shout {gap:2px;}
  .splash-3d .shout strong {font-size:20px;}
}
.play .code-stage kan-shan {display:block;opacity:1;transform:none;animation:none;}
.code-stage .splash-glow {width:150px;left:50%;right:auto;margin-left:-75px;}
.splash-glow {
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: -6px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #7b6cf545, #5aa9f41f 45%, transparent 70%);
  opacity: 0;
  z-index: -1;
}
.play .splash-glow { animation: rise 0.6s 1s ease-out forwards; }
.shout {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.shout small { font-size: 15px; font-weight: 500; color: #5d6776; letter-spacing: 1px; }
.shout strong {
  position: relative;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 3px;
  color: #0a66e8;
  text-shadow: 0 6px 18px #0a66e826;
}
/* light sweep: a copy of the headline painted with a moving bright band */
.shout strong::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  color: transparent;
  background: linear-gradient(105deg, transparent 38%, #ffffffd9 50%, transparent 62%) -160% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  letter-spacing: inherit;
}
.play .shout strong::after { animation: shine 1.3s calc(1.5s + var(--n) * 55ms) ease-in-out; }
.shout span { display: inline-block; opacity: 0; }
.play .shout span { animation: blurIn 0.55s calc(1.3s + var(--i) * 55ms) cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes shine { from { background-position: 160% 0; } to { background-position: -160% 0; } }
.splash-brand {
  position: absolute;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a95a1;
  font-size: 13px;
  letter-spacing: 2px;
}
.splash-brand span { padding-left: 10px; border-left: 1px solid #d6dce3; }
@keyframes frameDraw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes swapOut { to { opacity: 0; transform: translateY(-14px); filter: blur(2px); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes walkIn {
  0% { opacity: 0; transform: translateX(-160px); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes pop { to { opacity: 1; transform: translateX(-38%) scale(1); } }
@keyframes letter {
  from { opacity: 0; transform: translateY(6px) scale(0.7); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .play .splash-frame path { stroke-dashoffset: 0; animation: none; }
  .play .splash-words > span,
  .play .splash-glow,
  .play .shout span { opacity: 1; animation: none; }
  .play .splash-buddy kan-shan { opacity: 1; transform: none; animation: none; }
  .play .shout strong::after { animation: none; }
}
.login {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 20px 30px 26px;
  animation: rise 0.4s ease-out;
}
.login-hero {
  position: relative;
  align-self: center;
  display: grid;
  justify-items: center;
  margin: 18px 0 6px;
}
.login-hero kan-shan { width: 112px; height: 112px; }
.login-bubble {
  padding: 7px 13px;
  border-radius: 14px;
  background: #eef5ff;
  color: #1f5fae;
  font-size: 14px;
  position: relative;
}
.login-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #eef5ff;
  border-bottom: 0;
}
.login h2 { text-align: center; font-size: 21px; margin-top: 6px; }
.login-zhihu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.login-zhihu img { filter: brightness(0) invert(1); }
.login-zhihu.is-off { background: #c9d6e4; }
.login-tip { margin-top: 8px; text-align: center; font-size: 12.5px; color: #8a95a1; }
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #98a2ad;
  font-size: 13px;
}
.login-or::before,
.login-or::after { content: ""; flex: 1; height: 1px; background: #e8ecf0; }
#login-form { display: grid; gap: 11px; }
#login-form input {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f5f7f9;
  font-size: 16px;
}
#login-form input:focus { box-shadow: inset 0 0 0 1.5px #8cbcf5; }
#login-form .primary,
.offline-enter { height: 46px; border-radius: 10px; font-size: 16px; font-weight: 600; }
#login-form .primary { background: #1a2433; }
.login-error { min-height: 22px; margin-top: 12px; text-align: center; color: #d14a3c; font-size: 13.5px; }
.login-note { margin-top: auto; padding-top: 14px; text-align: center; font-size: 12px; color: #a0a9b3; line-height: 1.6; }

/* ===== 首页：对齐知乎 App 当前首页 ===== */
.home-head {height:52px;gap:10px;padding:0 var(--pad) 0 calc(var(--pad) - 8px)}
.menu-btn {color:#1f2328;min-width:38px}
.search-pill.outlined {height:40px;border-radius:22px;background:#fff;border:1.5px solid #b9d3f5;padding:0 6px 0 16px;color:#56616e;font-size:16px}
.search-pill.outlined .search-hint {flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-sep {width:1.5px;height:16px;background:#9cc1f2;border-radius:1px}
.search-pill.outlined b {color:var(--blue);font-weight:650;padding:0 10px 0 8px}
.tabs {height:46px;border-bottom:0;padding:0}
.tab-links {gap:0;overflow-x:auto;scrollbar-width:none;padding:0 calc(var(--pad) - 9px);width:100%}
.tab-links::-webkit-scrollbar {display:none}
.tab-links button {flex:none;padding:0 9px;font-size:17px;color:#2b2f36}
.tab-links .active {font-size:17px;font-weight:800;color:#121212}
.tab-links .active:after {width:28px;height:3.5px;background:#121212;bottom:3px}
.hot-topics {display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:8px var(--pad) 4px}
.hot-topics::-webkit-scrollbar {display:none}
.hot-topic {flex:none;width:168px;text-align:left;background:#f5f6f8;border-radius:10px;padding:11px 12px;display:flex;flex-direction:column;gap:6px}
.hot-topic b {font-size:15.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hot-topic small {display:flex;align-items:center;gap:6px;color:#8590a0;font-size:12.5px}
.hot-topic .avatar {width:18px;height:18px}
.hot-row {gap:12px;padding:16px var(--pad)}
.hot-row h3 {font-size:17px;line-height:1.55;font-weight:700;color:#121212;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hot-row small {display:block;margin-top:8px;color:#8a94a2;font-size:13.5px}
.hot-row img {width:86px;height:86px;border-radius:8px;object-fit:cover;flex:none;margin-top:3px}
.hot-row > div {min-width:0}
.rank {flex:none;width:20px;margin:2px 0 0!important;font:italic 800 19px/1.25 Arial,sans-serif!important;text-align:center;color:#f09b45!important}
.rank.r1,.rank.r2,.rank.r3 {color:#fff!important;font-size:15px!important;font-style:normal!important;padding:3px 0 7px;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
.rank.r1 {background:#ec4d47}
.rank.r2 {background:#f5873b}
.rank.r3 {background:#f3b33c}
.hot-lead {display:flex;align-items:center;gap:5px;margin-top:9px;background:#f6f7f9;border-radius:16px;padding:5px 11px;color:#4a5260;font-size:13px}
.hot-lead .icon {color:#f0563b;flex:none}
.hot-lead span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#nav {height:var(--bar);border-top:1px solid #eef0f2;padding:0 8px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
#nav button {color:#77818d;font-size:11px;gap:3px}
#nav .active {color:#121212;font-weight:650}
#nav .active .icon-home, #nav .active .icon-bell {fill:none}
#nav .nav-create {width:100%;height:var(--bar);align-self:center;justify-self:center;border-radius:14px;justify-content:center}
#nav .nav-create .create-icon {display:flex;align-items:center;justify-content:center}
#nav .create-icon {width:48px;height:38px;border-radius:18px;background:linear-gradient(120deg,#0875ed,#54a9fc);color:#fff;box-shadow:none;transition:transform .2s}
#nav .nav-create:active .create-icon {transform:scale(.92)}

/* ===== 看山 ===== */
#buddy-figure {display:block;position:relative}
#buddy kan-shan {display:block;width:88px;height:88px}
#buddy {filter:none;-webkit-touch-callout:none}
#buddy.pressed {transform:translateY(2px)}
#phone.chat-full #buddy {opacity:0;pointer-events:none}
#phone.drop-ready #buddy {transform:translateY(-6px)}
#buddy-tip {position:absolute;z-index:6;right:8px;bottom:calc(100% + 2px);width:max-content;max-width:190px;pointer-events:none;background:#fff;border:1px solid #d7e6fa;color:#24568f;font-size:12.5px;line-height:1.55;border-radius:12px;padding:8px 12px;box-shadow:0 6px 18px #22406a1f;animation:tipIn .5s cubic-bezier(.34,1.5,.64,1)}
#phone[data-side="left"] #buddy-tip {right:auto;left:8px}
/* 待机气泡：挂在看山头顶，跟着拖动一起走；纯文字，点它等于点看山 */
#buddy-say {position:absolute;z-index:7;bottom:calc(100% + 2px);width:max-content;max-width:190px;background:#fff;border:1px solid #d7e6fa;color:#24568f;font-size:13px;line-height:1.5;border-radius:14px;padding:7px 11px;box-shadow:0 6px 18px #22406a1f;text-align:center;pointer-events:none;animation:tipIn .38s cubic-bezier(.34,1.5,.64,1)}
#phone[data-side="right"] #buddy-say {right:2px;border-bottom-right-radius:4px}
#phone[data-side="left"] #buddy-say {left:2px;border-bottom-left-radius:4px}
#buddy-say::after {content:"";position:absolute;bottom:-5px;width:10px;height:10px;background:#fff;border-right:1px solid #d7e6fa;border-bottom:1px solid #d7e6fa;transform:rotate(45deg)}
#phone[data-side="right"] #buddy-say::after {right:26px}
#phone[data-side="left"] #buddy-say::after {left:26px}
#buddy-say[hidden] {display:none}
@keyframes tipIn {from {opacity:0;transform:translateY(8px) scale(.9)}}
#selection {position:absolute;z-index:10;display:flex;align-items:center;max-width:calc(100% - 16px);background:#182737;color:#fff;border-radius:14px;box-shadow:0 6px 18px #0003;padding:4px;user-select:none;-webkit-user-select:none}
#selection button {min-height:36px;padding:7px 12px;color:inherit;font-size:13px;white-space:nowrap;border-radius:10px}
#selection button+button {border-left:1px solid #ffffff26;border-top-left-radius:0;border-bottom-left-radius:0}
#selection button:hover,#selection button:focus-visible {background:#ffffff1f}
#selection button:disabled {opacity:.5}
.app-locked #selection,.memory-open #selection,.cropping #selection,.chat-open #selection {display:none}
#note {position:absolute;z-index:12;pointer-events:none;max-width:200px;background:#fffef6;color:#3b3a33;border:1px solid #eadfb4;border-radius:6px;padding:6px 9px;font-size:12.5px;box-shadow:0 6px 14px #0002;white-space:nowrap}

/* ===== 悬浮对话窗 ===== */
#chat-backdrop {position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:8;cursor:default;touch-action:none;background:rgba(20,40,66,.06)}
#chat {position:absolute;z-index:9;touch-action:pan-y;outline:0;left:10px;right:10px;bottom:calc(var(--safe) + var(--bar) + 92px);height:var(--chat-h);max-height:calc(100% - var(--status) - var(--safe) - var(--bar) - 110px);background:#fff;border:1px solid #dfe7ef;border-radius:22px;box-shadow:0 18px 48px #1d3a5f33,0 2px 8px #1d3a5f14;display:flex;flex-direction:column;overflow:hidden;will-change:transform}
#phone.chat-top #chat {bottom:auto;top:calc(var(--status) + 58px)}
/* Insets are fractions of the phone shell, so rotation also keeps the window inside the safe area. */
#phone.chat-sized #chat {left:var(--win-left);right:var(--win-right);top:calc(var(--status) + var(--win-top));bottom:calc(var(--safe) + var(--win-bottom));height:auto;max-height:none}
.chat-tools {display:none}
#close-chat {width:44px;height:44px}
#phone.chat-full #nav {z-index:10}
#nav.chat-nav-overlay {position:absolute;left:0;right:0;bottom:var(--safe)}
#phone.chat-full #chat {left:0;right:0;top:var(--status);bottom:calc(var(--safe) + var(--bar));height:auto;max-height:none;border:0;border-radius:0;box-shadow:none;z-index:9}
.chat-grab {height:14px;flex:none;display:grid;place-items:center;cursor:grab;touch-action:none}
.chat-grab i {width:36px;height:4px;border-radius:3px;background:#d3dae2}
#pinch-close-hint {position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;padding:7px 12px;border-radius:16px;background:#20344b;color:#fff;font-size:13px}
.chat-bar {display:flex;align-items:center;justify-content:space-between;padding:0 12px 6px 16px;min-height:40px;gap:8px;touch-action:none;cursor:grab}
.chat-identity strong {font-size:17px}
.chat-ball {width:24px;height:24px}
#phone.chat-full .chat-grab {visibility:hidden;height:8px}
#chat-form {display:flex;align-items:center;gap:4px;padding:8px 10px;border-top:1px solid var(--line)}
#chat-input {flex:1;height:38px;border-radius:19px;background:#f3f5f8;padding:0 14px;font-size:16px}
#crop-btn,#mic-btn {width:36px;height:38px;display:grid;place-items:center;color:#5c6b7b;flex:none}
#chat-send {flex:none}
.quick-ways {display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.quick-ways button {display:flex;align-items:center;gap:5px;font-size:13px;color:#24568f;background:#eef5fe;border-radius:16px;padding:6px 12px}
.voice-tag {display:inline-flex;align-items:center;gap:3px;font-size:11px;opacity:.85;margin-right:6px;padding:1px 6px;border-radius:8px;background:#ffffff33}
.cited {color:inherit;text-decoration:underline;text-decoration-color:#8dbaf3;text-decoration-thickness:1.5px;text-underline-offset:3px;cursor:pointer;border-radius:3px}
.cited:active {background:#e8f1fd}
details.refs {margin-top:8px;font-size:13px}
details.refs summary {list-style:none;display:inline-flex;align-items:center;gap:5px;color:#6a7889;cursor:pointer;padding:4px 0}
details.refs summary::-webkit-details-marker {display:none}
details.refs summary:after {content:"›";transform:rotate(90deg);display:inline-block;transition:transform .2s}
details.refs[open] summary:after {transform:rotate(-90deg)}
.msg-tools {margin-top:6px}
.msg-tools button {display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:#7a8796;padding:3px 0}
#phone.speaking .msg-tools button {color:var(--blue)}
#cite-pop {position:absolute;left:12px;right:12px;z-index:3;background:#fff;border:1px solid #dbe5f1;border-radius:14px;box-shadow:0 10px 30px #1d3a5f2e;padding:8px 10px;animation:tipIn .35s cubic-bezier(.34,1.5,.64,1)}
.cite-head {display:flex;align-items:center;gap:5px;font-size:12px;color:#7a8796;margin:2px 2px 4px}
#cite-pop .citation {margin-top:4px}

/* ===== 圈选提问 ===== */
#crop {position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:11;background:#0b1a2b59;cursor:crosshair;touch-action:none}
.crop-hint {position:absolute;left:50%;top:calc(var(--status) + 14px);transform:translateX(-50%);background:#fff;border-radius:14px;padding:9px 14px;text-align:center;box-shadow:0 8px 24px #0003;display:flex;flex-direction:column;gap:2px;width:max-content;max-width:88%}
.crop-hint b {font-size:14.5px}
.crop-hint span {font-size:12px;color:#7a8796}
#crop-box {position:absolute;border:2px solid #fff;border-radius:10px;box-shadow:0 0 0 9999px #0b1a2b40,0 0 0 4px #056de899;background:#ffffff10}
#crop-box.snap {transition:transform .2s;transform:scale(.97)}
#crop-cancel {position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--safe) + 22px);background:#fff;border-radius:20px;padding:8px 24px;font-size:14px;box-shadow:0 6px 18px #0003}
#phone.cropping #buddy {z-index:12;pointer-events:none}
#crop,#crop * {-webkit-user-select:none;user-select:none}

/* ===== 语音 ===== */
#voice {position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:10;background:linear-gradient(180deg,#0b1a2b10,#0b1a2b66)}
.voice-card {position:absolute;left:14px;right:14px;bottom:calc(var(--safe) + var(--bar) + 100px);background:#fff;border-radius:22px;padding:18px 18px 14px;box-shadow:0 18px 48px #1d3a5f40;text-align:center;animation:tipIn .45s cubic-bezier(.34,1.5,.64,1)}
.voice-wave {height:34px;display:flex;align-items:center;justify-content:center;gap:5px}
.voice-wave i {width:5px;height:8px;border-radius:3px;background:#056de8}
#voice[data-stage="native"] .voice-wave i {height:var(--peak,29px);animation:wave 1s ease-in-out var(--delay,0s) infinite}
.voice-wave i:nth-child(1),.voice-wave i:nth-child(7) {--peak:8px}
.voice-wave i:nth-child(2),.voice-wave i:nth-child(6) {--peak:16px}
.voice-wave i:nth-child(3),.voice-wave i:nth-child(5) {--peak:22px}
#voice[data-stage="recording"] .voice-wave i {height:calc(5px + var(--level,0) * var(--peak,29px));transition:height .1s}
.voice-wave i:nth-child(2){--delay:-.8s}
.voice-wave i:nth-child(3){--delay:-.6s}
.voice-wave i:nth-child(4){--delay:-.4s}
.voice-wave i:nth-child(5){--delay:-.2s}
.voice-wave i:nth-child(6){--delay:-.7s}
.voice-wave i:nth-child(7){--delay:-.3s}
@keyframes wave {50% {height:32px;opacity:.6}}
#voice-status {margin:8px auto 0;max-width:25em;font-size:15px;color:#384557;line-height:1.6}
#voice-status b {color:#2b2f36;font-weight:600}
.voice-actions {display:flex;justify-content:center;gap:12px;margin-top:12px}
.voice-actions button {padding:7px 18px;border-radius:18px;background:#f2f4f7;font-size:14px;color:#3d4a59}
.voice-actions {flex-wrap:wrap}
#voice-action {background:var(--blue);color:white}
#voice-level {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media (prefers-reduced-motion:reduce) {
  #voice .voice-wave i {animation:none!important;transition:none!important}
}
.voice-card {max-height:calc(100% - 24px);overflow:auto}
#phone.keyboard-open .voice-card {bottom:8px}
#phone.listening #buddy {z-index:11}
#phone.listening #buddy-tip,#phone.listening #buddy-say {display:none}

/* ===== 看山设置 ===== */
.personality-settings {padding:22px var(--pad) 18px;border-bottom:8px solid #f5f6f8}
.personality-settings h2 {font-size:19px;font-weight:650;line-height:1.4}
.personality-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:17px}
.personality-card {display:flex;flex-direction:column;min-width:0;text-align:left;border:1px solid #e1e7ee;border-radius:14px;padding:12px;background:#fff}
.personality-card[aria-pressed="true"] {border-color:var(--blue);background:#f2f7ff;box-shadow:inset 0 0 0 1px var(--blue)}
.personality-card-head {display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:9px}
.personality-symbol {width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-weight:600;font-variant-numeric:tabular-nums}
.personality-symbol.lively {color:#b57617;background:#fff1d6}.personality-symbol.quiet {color:#5b7b66;background:#edf5ef}
.personality-symbol.rational {color:#437ac2;background:#e7f0ff}.personality-symbol.gentle {color:#b36680;background:#fbeaf0}
.personality-check {min-width:28px;color:var(--blue);font-size:11px;font-weight:600}
.personality-card b {font-size:16px;line-height:1.4}.personality-card small {margin-top:3px;color:#75808e;font-size:11px;line-height:1.5}
.personality-sample {display:block;margin-top:10px;font-size:12px;line-height:1.7;color:#4d5b6c;overflow-wrap:break-word}
.personality-preview {margin-top:15px;padding:13px 14px;background:#f7f9fc;border-radius:12px}
.personality-preview-head {display:flex;align-items:center;justify-content:space-between;gap:8px}
.personality-preview-head b {font-size:12px;color:#68788a;font-weight:500}
.personality-refresh {min-height:32px;color:var(--blue);font-size:12px;white-space:nowrap}
.personality-preview p {margin:6px 0 9px;font-size:15px;line-height:1.8;min-height:54px}
.personality-preview small {display:block;color:#75808e;font-size:12px;line-height:1.6}
.personality-hint {margin-top:11px;color:#75808e;font-size:11.5px;line-height:1.7}
.pref-list {padding:6px 0}
.pref-row {width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:14px var(--pad);border-bottom:1px solid var(--line)}
.pref-row > span {flex:1;display:flex;flex-direction:column;gap:4px}
.pref-row b {font-size:15.5px;display:flex;align-items:center;gap:8px}
.pref-row small {color:#7a8796;font-size:12.5px;line-height:1.5}
.soon {font-size:11px;font-weight:500;color:#b5681d;background:#fff3e2;border-radius:8px;padding:1px 7px}
.switch {flex:none;width:44px;height:26px;border-radius:13px;background:#d9dee5;position:relative;transition:background .2s}
.switch:after {content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .25s cubic-bezier(.34,1.5,.64,1)}
.switch.on {background:var(--blue)}
.switch.on:after {transform:translateX(18px)}
.pref-note {padding:14px var(--pad);color:#7a8796;font-size:13px;line-height:1.7}

/* ===== 看山式回答：不同观点分段 ===== */
.viewpoint {
  margin: 11px 0 3px;
  padding: 11px 13px 12px;
  border-radius: 12px;
  background: #f6f8fa;
  border-left: 3px solid #c9d3de;
}
.viewpoint h3 {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.4px;
  color: #5b6775;
  margin-bottom: 5px;
}
.viewpoint p {
  margin: 3px 0;
  font-size: 14.5px;
  line-height: 1.72;
}
.viewpoint ul {
  margin: 0;
  padding-left: 17px;
}
.viewpoint li {
  margin: 5px 0;
  font-size: 14.5px;
  line-height: 1.68;
}
.v-agree { border-left-color: #2ea86a; background: #f0faf4; }
.v-agree h3 { color: #1d8352; }
.v-split { border-left-color: #e08a2f; background: #fdf7ee; }
.v-split h3 { color: #a8651b; }
.v-first { border-left-color: #056de8; background: #f1f6ff; }
.v-first h3 { color: #1a5fae; }
.v-comments { border-left-color: #8a63d2; background: #f7f3fd; }
.v-comments h3 { color: #6b46b0; }
.v-open { border-left-color: #b6bec9; background: #f5f6f8; }
.v-open h3 { color: #6d7885; }
.demo-tag {
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 7px;
  background: #fff3e2;
  color: #b5681d;
  font-size: 11px;
  font-weight: 500;
  vertical-align: 1px;
}

#boot-message, #no-script-message {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #fff;
  color: #44505d;
  line-height: 1.8;
  text-align: center;
}
#no-script-message { z-index: 101; }
#phone.app-locked > :not(#gate):not(#boot-message):not(.statusbar) { pointer-events: none; visibility: hidden; }
.login > * { flex-shrink: 0; }
#buddy, .chat-grab, .chat-bar, #crop { -webkit-touch-callout: none; }
#buddy { -webkit-user-select: none; user-select: none; }
#conversation { -webkit-overflow-scrolling: touch; }
.no-flex-gap .home-head > * + * { margin-left: 10px; }
.no-flex-gap .search-pill > * + * { margin-left: 8px; }
.no-flex-gap .chat-identity > * + * { margin-left: 6px; }
.no-flex-gap .chat-tools > * + *, .no-flex-gap #chat-form > * + * { margin-left: 4px; }
.no-flex-gap .login-zhihu > * + * { margin-left: 8px; }
.no-flex-gap .suggestions > * + * { margin-top: 7px; }
.no-flex-gap .quick-ways > * { margin-right: 8px; margin-top: 8px; }
.no-flex-gap .voice-actions > * + * { margin-left: 12px; }
.no-flex-gap .hot-topics > * + * { margin-left: 10px; }
@media (max-width: 540px) {
  #phone.keyboard-open:not(.chat-full) .chat-tools {display:flex}
  #phone.keyboard-open:not(.chat-full) #chat {
    top: var(--status);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: none;
    border-radius: 0;
  }
}

.ref-list { margin-top: 8px; }
.answer-read-meta { display: flex; justify-content: space-between; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.snapshot-article .article-foot { margin-top: 22px; font-size: 12px; line-height: 1.8; }
.question-tags { display: flex; flex-wrap: wrap; margin-top: 16px; }
.question-tags span { border: 1px solid var(--line); border-radius: 16px; padding: 3px 10px; margin: 0 7px 6px 0; color: #53606e; font-size: 12px; }
.question-answer-card { border-top: 8px solid #f5f6f8; }
.question-answer-card .author-bar { padding-bottom: 4px; }
.question-answer-card .answer-option { width: 100%; padding: 12px var(--pad) 18px; text-align: left; }
.question-answer-card .answer-option small { display: block; margin-top: 12px; color: var(--muted); }
.discussion-title { width: 100%; justify-content: space-between; padding: 14px var(--pad); text-align: left; color: #375b85; background: #f7f9fb; font-size: 14px; }
.discussion-title .icon { flex: none; margin-left: 8px; }
.discussion-context { border-bottom: 8px solid #f5f6f8; }
.discussion-note { padding: 0 var(--pad) 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.comment-main { flex: 1; min-width: 0; }
.comment-author { display: flex; flex-wrap: wrap; align-items: center; }
.comment-author small { margin-left: 8px; font-size: 11px; color: var(--muted); }
.comment-item p { overflow-wrap: break-word; white-space: pre-line; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #8b939e; font-size: 12px; }
.comment-actions button { min-height: 32px; padding: 3px 0; }
.comment-like { display: flex; align-items: center; }
.comment-like .icon { margin-right: 5px; }
.comment-like.is-on { color: var(--blue); }
.comment-like.is-on .icon { fill: #dcecff; }
.reply-count { border-radius: 18px; padding: 7px 12px; margin-top: 10px; background: #f5f6f8; color: #687384; font-size: 12px; }
.reply-count .icon { margin-left: 6px; }
.snapshot-actions { padding-left: 12px; padding-right: 12px; gap: 6px; }
.dock-author { display: flex; align-items: center; flex: 1; min-width: 0; max-width: 45%; border-radius: 22px; padding: 5px; background: #f7f8fa; }
.dock-author .avatar { flex: none; width: 28px; height: 28px; }
.dock-author b { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.snapshot-actions .vote-btn, .snapshot-actions .tool-btn { display: flex; flex-direction: column; justify-content: center; flex: none; min-width: 44px; min-height: 44px; padding: 3px; border-radius: 8px; background: transparent; color: #53606e; font-size: 11px; gap: 2px; }
.snapshot-actions .vote-btn .icon { fill: none; stroke-width: 1.6; }
.snapshot-actions .is-on { color: var(--blue); }
.snapshot-actions .vote-btn.is-on .icon { fill: #dcecff; }
.source-ask { margin: 16px var(--pad); border-radius: 20px; padding: 9px 15px; color: var(--blue); background: #edf5ff; }
.source-ask .icon { margin-right: 6px; }
.snapshot-article .article-body, .snapshot-article h1, .question-intro h1, .question-answer-card p { overflow-wrap: break-word; word-wrap: break-word; }
.stories-page {background:#f5f5fa;padding:16px 12px 24px}
.story-banner {padding:18px;border-radius:16px;background:linear-gradient(120deg,#fff0d7,#fff9ed);color:#835b37;margin-bottom:14px}
.story-banner h2 {font-size:22px;margin:7px 0}.story-banner p {font-size:13px;color:#a17a57}
.story-shelf,.story-picked {padding:16px 12px;border-radius:16px;background:#fff}
.story-shelf h2,.story-picked h2 {font-size:19px;margin-bottom:16px}
.story-ranking {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
.story-rank {display:flex;align-items:center;gap:9px;text-align:left;min-width:0}
.story-rank>span:last-child {min-width:0}.story-rank b {font-size:13px;display:block;overflow-wrap:anywhere}
.story-rank small {display:block;font-size:10px;color:var(--muted);margin-top:6px}
.story-cover {display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:51px;height:72px;border-radius:5px;box-shadow:inset 2px 0 #ffffff33;background:linear-gradient(145deg,#253c69,#9c8cbd);color:#fff;overflow:hidden}
.story-cover i {font:normal 27px/1.1 serif;border:1px solid #ffffff77;padding:7px 5px}
.story-cover small {font-size:8px;letter-spacing:1px;color:#fff;margin:0}
.story-cover.violet {background:linear-gradient(150deg,#504a86,#be92ab)}
.story-cover.green {background:linear-gradient(150deg,#367569,#adc1a0)}
.story-cover.amber {background:linear-gradient(150deg,#6d4542,#b88c5d)}
.story-shortcuts {display:flex;gap:8px;margin:13px 0}.story-shortcuts span {flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;background:#fff;border-radius:12px;padding:13px 2px;color:#7c708e;font-size:12px}
.story-card {display:flex;width:100%;gap:13px;text-align:left;padding:19px 0;border-bottom:1px solid var(--line)}
.story-card .story-cover {width:63px;height:90px}.story-card>span:last-child {min-width:0;flex:1}
.story-card b {font-size:18px;display:block}.story-card small {font-size:11px;color:var(--muted);display:block;margin-top:6px}
.story-card p {font-size:14px;line-height:1.65;margin-top:10px}.story-card em {display:block;font-size:11px;color:var(--blue);font-style:normal;margin-top:8px}
.story-disclosure,.story-end {font-size:11px;color:var(--muted);line-height:1.8}
.story-reading {padding-bottom:110px}.story-reading-head {display:flex;gap:16px;padding:24px var(--pad);background:#faf7f3;align-items:center}
.story-reading-head .story-cover {width:66px;height:92px}.story-reading-head small {font-size:10px;color:var(--muted)}
.story-reading-head h1 {font-size:23px;margin:9px 0}.story-reading-head p {font-size:11px;color:var(--muted)}
.story-reading>.article-body {padding:16px var(--pad) 0;font-size:17px;line-height:1.95}
.story-card .story-cover small,.story-reading-head .story-cover small {color:#fff}
.story-end {padding:0 var(--pad)}
#read-tools {position:absolute;z-index:7;left:10px;right:10px;bottom:calc(var(--safe) + var(--bar) + 100px + var(--lift));max-height:calc(100% - var(--status) - var(--safe) - var(--bar) - 110px - var(--lift));overflow:auto;padding:12px;border:1px solid #c7dcf5;border-radius:16px;background:#f7fbff;box-shadow:0 4px 24px #1d395a1a}
#read-tools p {font-size:12px;line-height:1.6;color:#405b7c;margin-bottom:9px;overflow-wrap:anywhere}
#read-tools>div {display:flex;gap:9px}#read-tools button {flex:1;min-height:40px;border-radius:12px;background:#e7effb;color:#225d9d;font-size:13px}
#read-tools [data-read="ask"] {background:var(--blue);color:#fff}#read-tools button:disabled {opacity:.5}
.co-reading {padding-bottom:calc(255px + var(--lift))!important}.co-reading p[data-selectable],.co-reading [data-selectable] p {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer;border-radius:5px;transition:background .15s}
.reading-chosen {background:#e7f1ff;outline:1px solid #95bcee;outline-offset:4px}
.reading-mark {text-decoration:underline;text-decoration-color:#e8b243;text-decoration-thickness:2px;text-underline-offset:5px;background:#fff5d633}
.app-locked #read-tools,.chat-open #read-tools,.cropping #read-tools {display:none}
.story-news {padding:20px var(--pad) 110px;background:#faf9f6;font-size:12px;line-height:1.9;color:#6c7180}
.story-news h2 {font-size:17px;color:#28313e;margin-bottom:8px}.story-news small {display:block;font-size:11px}
.story-news a {display:inline-flex;align-items:center;color:var(--blue);margin-top:8px;text-decoration:none}
.msg-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.msg-tools [data-evidence] {color:var(--blue)}
.evidence-unavailable,.reading-scope {font-size:11px;color:#768397;line-height:1.6}
.reading-scope {padding:0 2px 10px}
#reading-evidence {position:absolute;z-index:7;left:10px;right:10px;bottom:calc(var(--safe) + 12px);padding:12px;border:1px solid #cbdff8;border-radius:16px;background:#f7fbff;box-shadow:0 4px 24px #1d395a1a}
.evidence-heading {display:flex;align-items:center;gap:8px;color:#486386;font-size:11px;line-height:1.6}
.evidence-heading b {flex:1;font-weight:500}.evidence-heading button {font-size:23px;line-height:1;min-width:32px;min-height:32px;color:#6c7f99}
#reading-evidence p {font-size:13px;line-height:1.7;margin:5px 0 12px;max-height:85px;overflow:auto;overflow-wrap:anywhere;color:#243a55}
.evidence-actions {display:flex;gap:8px}.evidence-actions button {flex:1;min-height:40px;padding:6px;border-radius:12px;background:#e7effb;color:#225d9d;font-size:12px}
.evidence-actions [data-evidence-action="save"] {background:var(--blue);color:#fff}
.reading-evidence-glow {background:#dceeff;box-shadow:0 0 0 2px #dceeff;border-radius:2px}
.reading-saved-quote {text-decoration:underline;text-decoration-color:#e8b243;text-decoration-thickness:2px;text-underline-offset:5px;background:#fff5d633}
.evidence-open #page {padding-bottom:240px}
.app-locked #reading-evidence,.chat-open #reading-evidence,.cropping #reading-evidence {display:none}
.memory-library {padding:0 var(--pad) 105px}
.memory-toolbar {display:flex;align-items:center;gap:2px;min-height:48px;border-bottom:1px solid #e4eaf1}
.memory-count {flex:1;font-size:12px;color:#687b90;overflow-wrap:anywhere}
.memory-toolbar button,.memory-more summary {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;color:#526a83;font-size:13px;cursor:pointer}
.memory-toolbar [data-memory="ask-all"] {color:var(--blue)}
.memory-more {position:relative}.memory-more summary {list-style:none}.memory-more summary::-webkit-details-marker {display:none}
.memory-more button {position:absolute;right:0;top:100%;z-index:2;white-space:nowrap;background:white;border:1px solid #e1e7ee;border-radius:8px;color:#ad4545;padding:0 16px;box-shadow:0 3px 12px #23364e16}
.memory-list {list-style:none;margin:0;padding:0}.memory-row {width:100%;display:grid;gap:4px;text-align:left;padding:10px 2px;border-bottom:1px solid #e9eef3}
.memory-row:focus-visible {outline:2px solid var(--blue);outline-offset:-2px}.memory-row:active {background:#f4f8fc}
.memory-row-meta {font-size:11px;color:#617b96;display:flex;justify-content:space-between}.memory-row time {color:#778798}
.memory-row strong,.memory-preview {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.memory-row strong {color:#202c39;font-size:15px}.memory-preview {font-size:13px;color:#627387}
.memory-detail {padding-top:12px}.memory-detail blockquote,.memory-detail .memory-answer {max-height:none;overflow:visible}.memory-detail blockquote {margin:10px 0}
#memory-search {display:flex;margin:8px 0}
#memory-query {min-width:0;flex:1;border:1px solid #dce5ef;border-radius:12px;padding:11px;background:#fafcff;font-size:14px}
#memory-search[hidden] {display:none}
.memory-card {border:1px solid #e1e8f0;background:#fff;border-radius:16px;padding:15px;margin-bottom:13px;overflow-wrap:anywhere}
.memory-card-meta {display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#95a0ac;margin-bottom:10px}
.memory-card-meta span {padding:3px 8px;color:#3f72a9;background:#edf5ff;border-radius:6px}
.memory-card h2 {font-size:15px;line-height:1.6;font-weight:600;margin-bottom:10px}
.memory-card blockquote,#memory-editor blockquote {border-left:3px solid #efcb70;padding:8px 10px;background:#fffcf3;font-size:13px;line-height:1.9;color:#506073;white-space:pre-wrap;max-height:175px;overflow:auto}
.memory-card p {font-size:13px;line-height:1.8;white-space:pre-wrap}
.memory-question {color:#344d69;margin-bottom:8px}.memory-answer {max-height:180px;overflow:auto;color:#7c8997}
.memory-note {background:#f6f9fe;border-radius:10px;padding:10px;margin-top:12px;color:#3d5a7c}
.memory-note b {display:block;font-size:11px;color:#8a9aaf;margin-bottom:4px}
.memory-card-actions {display:flex;flex-wrap:wrap;gap:9px 14px;margin-top:14px}
.memory-card-actions button {font-size:12px;color:#55779d;min-height:30px}
.memory-card-actions [data-memory="delete"] {color:#9a7d7d}
.memory-empty {padding:38px 10px;text-align:center;font-size:13px;line-height:1.9;color:#8c9aaa}
.memory-detail .memory-card blockquote {max-height:none;overflow:visible}
#memory-editor {position:absolute;inset:0;z-index:35;display:flex;align-items:flex-end;background:#172b4859;padding-top:25px}
#memory-editor[hidden] {display:none}
#memory-editor form {width:100%;max-height:100%;overflow:auto;background:#fff;border-radius:22px 22px 0 0;padding:20px 18px calc(var(--safe) + 20px)}
.memory-editor-head {display:flex;justify-content:space-between;align-items:center;gap:12px}
.memory-editor-head h2 {font-size:18px}.memory-editor-head button {font-size:26px;color:#7b8a9d;min-width:38px;min-height:38px}
#memory-editor blockquote {margin-bottom:16px;overflow-wrap:anywhere;max-height:115px}
#memory-editor label {display:block;font-size:13px;color:#556b85;margin-bottom:8px}
#memory-editor textarea {width:100%;resize:vertical;border:1px solid #d7e2ef;border-radius:12px;padding:11px;font-size:16px;line-height:1.7;min-height:100px;box-sizing:border-box}
.memory-error {color:#b65353;font-size:12px;line-height:1.7;margin-top:6px}
.memory-editor-actions {display:flex;gap:12px;margin-top:16px}.memory-editor-actions button {flex:1;padding:12px;border-radius:12px;background:#eef3f9;color:#547392}
.memory-editor-actions [type="submit"] {background:var(--blue);color:#fff}
.chat-memory-tools {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.chat-memory-tools button {background:#edf4fd;border-radius:14px;color:#4f7097;padding:6px 10px;font-size:11px}
.chat-memory-pair {display:inline-flex;gap:8px;white-space:nowrap}
.chat-memory-pair [data-way="save-latest"]:not(:disabled) {color:var(--blue)}
.chat-memory-pair button:disabled {color:var(--muted);background:#f1f3f6}
.memory-references {margin-top:12px;display:flex;flex-wrap:wrap;gap:6px;font-size:11px}
.memory-references>span {width:100%;color:#8b9aae}.memory-references button {display:inline-flex;align-items:center;gap:4px;border:1px solid #d9e6f6;border-radius:8px;padding:6px 8px;max-width:100%;text-align:left;color:#4e729b;overflow-wrap:anywhere}
.memory-open #read-tools,.memory-open #reading-evidence {visibility:hidden}
.memory-library .sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
