:root {
  --bg: #f5f8fb;
  --surface: #fff;
  --surface2: #eef3f7;
  --line: #dfe7ef;
  --text: #142332;
  --muted: #778897;
  --ink: #0f1e2d;
  --cyan: #18c6c1;
  --cyanDark: #089e9c;
  --violet: #7d67ec;
  --orange: #ff9b62;
  --shadow: 0 20px 55px rgba(33, 65, 92, 0.08);
  --radius: 20px;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', 'Noto Sans SC', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
.hidden {
  display: none !important;
}
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
}
.ambient.a {
  width: 440px;
  height: 440px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, #c8f5ef 0, transparent 68%);
}
.ambient.b {
  width: 320px;
  height: 320px;
  left: 25%;
  bottom: -180px;
  background: radial-gradient(circle, #e5ddff 0, transparent 70%);
}
.toast {
  position: fixed;
  z-index: 20;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: #102131;
  color: #fff;
  border-radius: 12px;
  padding: 11px 17px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.auth-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 550px) 1fr;
  align-items: center;
  gap: 7vw;
  padding: 7vh 11vw;
  position: relative;
  overflow: hidden;
}
.auth-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(20, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--ink);
  color: #c7ff88;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 30, 45, 0.17);
}
.brand-mark.large {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 34px;
  margin-bottom: 25px;
}
.eyebrow,
.card-kicker {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.auth-card h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin: 17px 0 18px;
  color: var(--ink);
  font-weight: 800;
}
.auth-card h1 em {
  font-style: normal;
  color: var(--cyanDark);
}
.auth-copy {
  color: var(--muted);
  max-width: 390px;
  font-size: 16px;
  margin: 0 0 35px;
}
.auth-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.auth-tab {
  background: none;
  padding: 0 0 12px;
  font-weight: 700;
  color: #a7b3be;
  position: relative;
}
.auth-tab.active {
  color: var(--ink);
}
.auth-tab.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
}
.auth-form {
  display: grid;
  gap: 15px;
  max-width: 360px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #536575;
}
.auth-form input {
  height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  transition: 0.2s;
}
.auth-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px #18c6c11f;
}
.btn {
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--cyan);
  color: #083b3c;
  box-shadow: 0 8px 18px #18c6c138;
}
.btn.dark {
  background: var(--ink);
  color: #fff;
}
.btn.soft {
  background: var(--surface2);
  color: #456071;
}
.btn.wide {
  width: 100%;
  height: 48px;
  margin-top: 4px;
}
.form-error {
  min-height: 18px;
  color: #d15a56;
  font-size: 12px;
}
.auth-foot {
  margin-top: 26px;
  color: #8b9ca9;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px #18c6c11f;
}
.auth-aside {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-window {
  width: min(100%, 490px);
  transform: rotate(-4deg);
  background: #15283a;
  border-radius: 19px;
  padding: 0 28px 30px;
  box-shadow: 25px 30px 80px #1a3d4e3b;
  color: #c8e0e7;
}
.window-bar {
  height: 55px;
  border-bottom: 1px solid #dcfaff1a;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: #6f8997;
}
.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f37e67;
}
.window-bar span:nth-child(2) {
  background: #eac36b;
}
.window-bar span:nth-child(3) {
  background: #84d69a;
}
.window-bar b {
  margin-left: auto;
  font-weight: 400;
}
.code-line {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 14px;
}
.code-line i {
  font-style: normal;
  color: #587180;
}
.code-line b {
  color: #8ce5da;
  font-weight: 400;
}
.code-line strong {
  color: #e4f2ac;
  font-weight: 400;
}
.code-line.faded {
  color: #62808a;
  font-size: 12px;
  margin-top: 44px;
}
.orbit-card {
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: 205px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 17px;
  padding: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  box-shadow: 0 16px 40px #233f511f;
  transform: rotate(5deg);
}
.orbit-icon {
  height: 34px;
  width: 34px;
  border-radius: 10px;
  background: #dffbf6;
  color: #159f99;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.orbit-card b {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.orbit-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}
.orbit-card strong span {
  font-size: 11px;
  color: #97a5b1;
  font-weight: 500;
}
.orbit-card small {
  grid-column: 1/-1;
  font-size: 10px;
  color: #82939e;
}
.app-view {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.sidebar {
  width: 246px;
  flex: none;
  background: #ffffffb8;
  border-right: 1px solid #dfe7efd9;
  padding: 25px 17px 17px;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.sidebar.collapsed {
  width: 70px;
}
.sidebar.collapsed .brand div:not(.brand-mark),
.sidebar.collapsed .workspace-pill span:not(.status-dot),
.sidebar.collapsed .nav-item span:not(:first-child),
.sidebar.collapsed .nav-item kbd,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .tip-card,
.sidebar.collapsed .user-meta,
.sidebar.collapsed .user-card > span:last-child,
.sidebar.collapsed .favorite-nav-empty,
.sidebar.collapsed .nav-item.favorite-nav-item span:not(.tool-dot),
.sidebar.collapsed .chat-section-label,
.sidebar.collapsed .nav-count {
  display: none;
}
.sidebar.collapsed .sidebar-top {
  padding: 0 0 23px;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 23px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .brand-mark {
  width: 33px;
  height: 33px;
  font-size: 24px;
  border-radius: 11px;
}
.brand b {
  display: block;
  line-height: 1.05;
  font-size: 14px;
  color: var(--ink);
}
.brand small {
  display: block;
  color: #91a0ad;
  font-size: 9px;
  margin-top: 3px;
  font-family: var(--mono);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: #8b9aa7;
  font-size: 18px;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn:hover {
  background: var(--surface2);
  color: var(--ink);
}
.workspace-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface2);
  border: 1px solid #e7edf2;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 11px;
  color: #536b7c;
  margin-bottom: 24px;
}
.workspace-pill .status-dot {
  width: 6px;
  height: 6px;
}
.pill-lock {
  margin-left: auto;
  color: #a0acb6;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-label {
  font-family: var(--mono);
  font-size: 9px;
  color: #a9b3bc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 10px 7px;
}
.nav-label.spaced {
  margin-top: 21px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 11px;
  border-radius: 10px;
  background: transparent;
  color: #728695;
  font-size: 13px;
  transition: 0.2s;
}
.nav-item > span:first-child {
  width: 16px;
  text-align: center;
  font-size: 17px;
  color: #96a7b3;
}
.nav-item:hover {
  background: #edf8f7;
  color: var(--ink);
}
.nav-item.active {
  background: #dff8f3;
  color: #0b6f6b;
  font-weight: 700;
}
.nav-item.active > span:first-child {
  color: var(--cyanDark);
}
.nav-item kbd {
  font-family: var(--mono);
  font-size: 9px;
  color: #aab5bd;
  margin-left: auto;
}
.nav-count {
  margin-left: auto;
  background: #ffefe7;
  color: #d77d52;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
}
.tool-dot {
  width: 7px !important;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  margin-left: 5px;
}
.tool-dot.violet {
  background: var(--violet);
}
.tool-dot.orange {
  background: var(--orange);
}
.sidebar-bottom {
  margin-top: auto;
}
.tip-card {
  background: #f1f7fa;
  border-radius: 13px;
  padding: 13px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.tip-card:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  right: -20px;
  top: -20px;
  background: #d6f1f0;
  border-radius: 50%;
}
.tip-spark {
  color: var(--cyanDark);
  font-size: 16px;
}
.tip-card b {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}
.tip-card p {
  font-size: 11px;
  color: #78909c;
  line-height: 1.6;
  margin: 4px 0 0;
}
.user-card {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  text-align: left;
}
.user-card:hover {
  background: var(--surface2);
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #d9eefe;
  color: #3474a2;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.avatar.small {
  border: 0;
  width: 31px;
  height: 31px;
  background: #d9eefe;
}
.user-meta {
  display: grid;
  gap: 1px;
  flex: 1;
}
.user-meta b {
  font-size: 11px;
}
.user-meta small {
  font-size: 10px;
  color: #8e9da8;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 44px 55px;
  max-width: 1440px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.breadcrumb .muted,
.breadcrumb span:nth-child(2) {
  color: #9aa7b2;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.top-actions .btn {
  font-size: 12px;
  height: 35px;
}
.icon-btn.has-dot:after {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  right: 7px;
  top: 7px;
  border-radius: 50%;
  background: #ff8e64;
}
.page-section {
  display: none;
  padding-top: 18px;
}
.active-section {
  display: block;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#section-boardgames.active-section {
  flex: 1;
  min-height: calc(100vh - 100px);
}
#section-boardgames.active-section .boardgame-panel {
  flex: 1;
}
#section-boardgames .section-heading {
  display: none;
}
.boardgame-panel {
  flex: 1;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-heading.compact {
  align-items: center;
}
.section-heading h2 {
  margin: 7px 0 4px;
  font-size: 31px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.section-heading p {
  margin: 0;
  color: #82929f;
  font-size: 13px;
}
.wave {
  color: var(--orange);
  font-size: 22px;
}
.date-chip {
  padding: 8px 12px 9px;
  background: #ffffffb3;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 18px auto;
  column-gap: 6px;
  align-items: center;
}
.date-chip span {
  grid-row: span 2;
  color: var(--cyanDark);
  font-size: 18px;
}
.date-chip b {
  font-family: var(--mono);
  font-size: 12px;
}
.date-chip small {
  color: #9aa7b2;
  font-size: 9px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(235px, 0.75fr);
  gap: 18px;
}
.focus-card,
.mood-card,
.panel,
.tool-card,
.tool-workspace,
.feed-panel {
  background: #ffffffe0;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px #314e6112;
  border-radius: var(--radius);
}
.focus-card {
  padding: 26px 29px 25px;
  background: linear-gradient(115deg, #eafaf8, #f7fbfb 55%, #f7fbf7);
}
.card-top,
.panel-head,
.mood-head,
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.focus-card h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.focus-card p {
  color: #82929d;
  font-size: 13px;
  margin: 8px 0 27px;
}
.focus-orb {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: var(--cyanDark);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 5px 18px #11a39d1f;
}
.progress-meta {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #78909d;
  margin-bottom: 9px;
}
.progress-meta b {
  color: #41717a;
  font-family: var(--mono);
  font-size: 10px;
}
.progress-track {
  height: 7px;
  border-radius: 99px;
  background: #d9eeee;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1ac8ba, #9ee879);
  border-radius: 99px;
}
.focus-bottom {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 24px;
}
.focus-bottom .btn {
  font-size: 12px;
  height: 37px;
}
.streak {
  font-size: 10px;
  color: #7b929d;
}
.mood-card {
  padding: 21px;
  text-align: center;
}
.mood-head {
  text-align: left;
}
.more {
  font-size: 13px;
  color: #9daab5;
}
.mood-ring {
  width: 115px;
  height: 115px;
  margin: 9px auto 12px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 72%, #eaf0f3 72%);
  display: grid;
  place-items: center;
  position: relative;
}
.mood-ring:after {
  content: '';
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: 50%;
}
.mood-ring div {
  z-index: 1;
}
.mood-ring strong {
  font-size: 27px;
  letter-spacing: -0.06em;
}
.mood-ring small {
  color: #95a2ac;
  font-size: 10px;
}
.mood-card > b {
  font-size: 14px;
}
.mood-card p {
  font-size: 11px;
  color: #8b9ba5;
  margin: 3px 0 15px;
}
.mood-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a0acb3;
  font-size: 9px;
}
.mood-scale i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd483, #73dac2);
}
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 31px 0 14px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title h3 {
  margin: 0;
  font-size: 16px;
}
.title-mark {
  width: 6px;
  height: 18px;
  border-radius: 5px;
  background: var(--cyan);
}
.keyboard-hint {
  font-size: 10px;
  color: #a3afb7;
}
.text-btn {
  background: transparent;
  color: #70909d;
  font-size: 11px;
  padding: 0 0 0 8px;
}
.text-btn:hover {
  color: var(--cyanDark);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.tool-card {
  position: relative;
  text-align: left;
  padding: 17px;
  min-height: 124px;
  overflow: hidden;
  transition: 0.2s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px #1e3f4f1a;
}
.tool-card:after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -34px;
  bottom: -42px;
  background: #ffffff6b;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ddf9f4;
  color: #11a9a3;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 14px;
}
.base-tool .tool-icon {
  background: #eae5ff;
  color: #755ee8;
}
.timer-tool .tool-icon {
  background: #ffeddf;
  color: #ed8b4d;
  font-size: 18px;
}
.note-tool .tool-icon {
  background: #e8f2ff;
  color: #5791d7;
  font-size: 16px;
}
.tool-title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.tool-desc {
  display: block;
  color: #8b9da7;
  font-size: 10px;
  margin-top: 3px;
}
.tool-arrow {
  position: absolute;
  right: 15px;
  top: 16px;
  color: #a6b1b8;
  font-size: 14px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.panel {
  padding: 21px 22px;
}
.panel h3 {
  margin: 6px 0 0;
  font-size: 16px;
}
.market-list {
  margin: 17px 0 8px;
}
.market-row {
  display: grid;
  grid-template-columns: 1fr 76px 58px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f3;
}
.market-row:last-child {
  border-bottom: 0;
}
.market-symbol b {
  display: block;
  font-size: 12px;
}
.market-symbol small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: #a2afb8;
  margin-top: 2px;
}
.market-price {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: #425a68;
}
.market-change {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
}
.market-change.up {
  color: #0caa95;
}
.market-change.down {
  color: #e47b6e;
}
.panel-foot {
  border-top: 1px solid #edf1f3;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa8b1;
  font-size: 10px;
}
.panel-foot .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
  margin-right: 5px;
}
.game-tag {
  background: #fff0d9;
  color: #c58a42;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
}
.game-stage {
  height: 155px;
  background: linear-gradient(145deg, #edf9ff, #f7f3ff);
  border-radius: 13px;
  margin: 15px 0 12px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.game-stage:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#d6e6f3 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: 0.7;
}
.game-copy {
  position: relative;
  z-index: 1;
  padding: 20px 0 0 20px;
}
.game-copy > b {
  font-size: 15px;
}
.game-copy p {
  font-size: 10px;
  color: #8196a5;
  margin: 4px 0 10px;
}
.game-copy strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  color: #435d76;
  letter-spacing: -0.07em;
}
.game-copy small {
  font-family: var(--mono);
  font-size: 8px;
  color: #96a7b2;
}
.bubble-field {
  position: absolute;
  inset: 0;
}
.bubble {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #7eacef;
  box-shadow: 0 7px 14px #4a81c833;
  transition: 0.15s;
}
.bubble:hover {
  transform: scale(1.17) rotate(15deg);
}
.bubble:active {
  transform: scale(0.8);
}
.b1 {
  right: 23%;
  top: 24%;
  background: #71c9bd;
}
.b2 {
  right: 8%;
  top: 56%;
  background: #ffad72;
}
.b3 {
  right: 35%;
  bottom: 15%;
  background: #a79aee;
}
.b4 {
  right: 14%;
  top: 12%;
  background: #89c6ec;
}
.tool-tabs {
  display: flex;
  gap: 7px;
  margin: 25px 0 17px;
  /* 窄屏换行:一行 tab 放不下时若强行单行,会把布局视口撑宽导致整页被缩小 */
  flex-wrap: wrap;
}
.tool-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: #8597a4;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
}
.tool-tab.active,
.tool-tab:hover {
  background: #dff8f3;
  border-color: #bcebe3;
  color: #0b7773;
  font-weight: 700;
}
.tool-workspace {
  display: none;
  padding: 26px;
}
.active-tool {
  display: block;
}
.workspace-header {
  margin-bottom: 22px;
}
.workspace-header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 7px 0 4px;
}
.workspace-header p {
  margin: 0;
  color: #8999a4;
  font-size: 12px;
}
.workspace-status {
  font-size: 10px;
  color: #8599a5;
  display: flex;
  gap: 6px;
  align-items: center;
}
.workspace-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f2a35e;
}
.workspace-status i.green {
  background: #7edb9b;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.editor-box {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #fafdff;
}
.editor-label {
  height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  color: #5e7482;
}
.ghost-btn {
  background: transparent;
  color: #8ba0ac;
  font-size: 11px;
  padding: 3px 0;
}
.ghost-btn:hover {
  color: var(--cyanDark);
}
textarea,
.editor-box pre {
  border: 0;
  outline: 0;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.editor-box textarea {
  width: 100%;
  min-height: 260px;
  padding: 16px;
  background: transparent;
  color: #314e61;
}
.editor-box pre {
  min-height: 260px;
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
  color: #587081;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
}
.editor-actions .btn {
  height: 33px;
  font-size: 11px;
}
.status-text {
  font-size: 10px;
  font-weight: 400;
  color: #9eabb4;
}
.status-text.ok {
  color: #12aa98;
}
.status-text.bad {
  color: #da766d;
}
.base64-layout {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 14px;
}
.direction-card {
  display: grid;
  gap: 8px;
  align-content: start;
}
.direction {
  border: 1px solid var(--line);
  background: #f7fafc;
  border-radius: 12px;
  text-align: left;
  padding: 15px 13px;
  color: #8a9ba7;
  position: relative;
}
.direction b {
  display: block;
  color: #536a78;
  font-size: 12px;
}
.direction span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.direction strong {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 16px;
  font-weight: 400;
}
.direction.active {
  border-color: #bae9e0;
  background: #e4f9f5;
}
.direction.active b {
  color: #087c76;
}
.timer-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 35px;
  align-items: center;
}
.timer-face {
  background: linear-gradient(145deg, #edfafa, #f7fbff);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  place-items: center;
}
.timer-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 8%, #dceef0 8% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.timer-ring:after {
  content: '';
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%;
}
.timer-ring div {
  z-index: 1;
  text-align: center;
}
.timer-ring strong {
  display: block;
  font-family: var(--mono);
  font-size: 38px;
  letter-spacing: -0.08em;
  color: var(--ink);
}
.timer-ring small {
  color: #8da0aa;
  font-size: 11px;
}
.timer-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}
.timer-actions .btn {
  height: 38px;
  font-size: 11px;
}
.timer-side {
  display: grid;
  gap: 12px;
}
.timer-stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
}
.timer-stat span,
.timer-stat small {
  display: block;
  color: #8b9ca7;
  font-size: 10px;
}
.timer-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1.3;
  color: #3e6270;
}
.timer-stat b span {
  display: inline;
  font-size: 11px;
}
.timer-stat.accent {
  background: #edfaf5;
  border-color: #cceee4;
}
.timer-note {
  display: flex;
  gap: 9px;
  padding: 12px;
  border-radius: 11px;
  background: #fff7e9;
  color: #98704b;
}
.timer-note span {
  color: #ed9b59;
}
.timer-note p {
  font-size: 10px;
  margin: 0;
  line-height: 1.6;
}
.notes-editor {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  background: #fbfdff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
}
.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.notes-footer span {
  font-size: 10px;
  color: #98a6af;
}
.notes-footer .btn {
  height: 36px;
  font-size: 11px;
}
.square-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 18px;
}
.feed-panel {
  padding: 20px;
}
.feed-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 15px;
}
.feed-filter > b {
  font-size: 14px;
}
.feed-filter > div {
  display: flex;
  gap: 4px;
}
.filter {
  background: transparent;
  border-radius: 7px;
  padding: 5px 8px;
  color: #95a3ac;
  font-size: 10px;
}
.filter.active {
  background: #e3f8f4;
  color: #11877f;
  font-weight: 700;
}
.feed-list {
  display: grid;
}
.feed-item {
  padding: 18px 0;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}
.feed-item:last-child {
  border-bottom: 0;
}
.feed-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e3efff;
  color: #4c84bd;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.feed-content {
  min-width: 0;
}
.feed-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}
.feed-meta b {
  font-size: 12px;
}
.feed-meta small {
  font-size: 10px;
  color: #a0adb4;
}
.feed-tag {
  font-size: 9px;
  color: #0e9b92;
  background: #e1f8f3;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: auto;
}
.feed-text {
  font-size: 13px;
  margin: 7px 0 11px;
  color: #526876;
}
.feed-actions {
  display: flex;
  gap: 17px;
  color: #9aaab3;
  font-size: 10px;
}
.feed-actions button {
  background: transparent;
  color: inherit;
  padding: 0;
}
.feed-actions button:hover {
  color: var(--cyanDark);
}
.circle-side {
  display: grid;
  align-content: start;
  gap: 16px;
}
.online-panel {
  background: linear-gradient(145deg, #dff8f4, #f5fbfa);
}
.online-number {
  margin: 16px 0 10px;
}
.online-number b {
  font-size: 31px;
  letter-spacing: -0.08em;
  color: #167871;
  margin-right: 6px;
}
.online-number span {
  font-size: 10px;
  color: #72948f;
}
.avatar-stack {
  display: flex;
  margin: 5px 0 14px;
}
.avatar-stack span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #538b86;
  border: 2px solid #dff8f4;
  margin-left: -5px;
  font-size: 10px;
}
.avatar-stack span:first-child {
  margin-left: 0;
}
.online-bar {
  height: 5px;
  background: #c8ebe5;
  border-radius: 99px;
  overflow: hidden;
}
.online-bar span {
  display: block;
  height: 100%;
  background: #38c8b7;
  border-radius: 99px;
}
.online-panel > small {
  display: block;
  margin-top: 10px;
  color: #78948f;
  font-size: 10px;
}
.online-panel > small b {
  color: #3f7772;
}
.rules-panel h3 {
  font-size: 15px;
  margin: 8px 0 10px;
}
.rules-panel ol {
  margin: 0;
  padding-left: 18px;
  color: #82939d;
  font-size: 11px;
  line-height: 2;
}
.modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: #0f1e2d38;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 23px;
  box-shadow: 0 30px 80px #182f4233;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.modal-card > p {
  font-size: 12px;
  color: #8b9aa3;
  margin: 8px 0 14px;
}
.modal-card textarea {
  width: 100%;
  min-height: 115px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: #fafdff;
  color: var(--text);
  font-family: var(--sans);
  resize: vertical;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}
.modal-actions .btn {
  height: 37px;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .auth-view {
    padding: 6vh 7vw;
    gap: 4vw;
  }
  .main-content {
    padding: 0 27px 45px;
  }
  .sidebar {
    width: 220px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .base64-layout {
    grid-template-columns: 130px 1fr;
  }
  .base64-layout .output-box {
    grid-column: 2;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .mood-card {
    display: none;
  }
}
@media (max-width: 760px) {
  .auth-view {
    display: block;
    padding: 35px 23px;
  }
  .auth-aside {
    display: none;
  }
  .auth-card {
    max-width: none;
  }
  .auth-card h1 {
    font-size: 45px;
  }
  .app-view {
    display: block;
  }
  .sidebar {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-top {
    padding-bottom: 13px;
  }
  .workspace-pill,
  .sidebar-bottom,
  .nav-label.spaced {
    display: none;
  }
  .main-nav {
    flex-direction: row;
    overflow: auto;
    gap: 3px;
  }
  .nav-label {
    display: none;
  }
  .nav-item {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .nav-item kbd,
  .nav-count {
    display: none;
  }
  .main-content {
    padding: 0 16px 40px;
  }
  .topbar {
    height: 63px;
  }
  .top-actions .soft {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .date-chip {
    display: none;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid,
  .square-grid,
  .editor-grid,
  .timer-layout {
    grid-template-columns: 1fr;
  }
  .section-row {
    margin-top: 25px;
  }
  .base64-layout {
    grid-template-columns: 1fr;
  }
  .base64-layout .output-box {
    grid-column: auto;
  }
  .tool-workspace {
    padding: 18px;
  }
  .workspace-header {
    display: block;
  }
  .workspace-status {
    margin-top: 10px;
  }
  .timer-ring {
    width: 205px;
    height: 205px;
  }
  .hero-grid {
    display: block;
  }
  .focus-card {
    margin-bottom: 15px;
  }
  .mood-card {
    display: block;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .focus-card {
    padding: 20px;
  }
  .focus-card h3 {
    font-size: 21px;
  }
  .auth-card h1 {
    font-size: 41px;
  }
}
.market-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.market-search {
  width: 112px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #fbfdff;
  color: var(--text);
  font-size: 10px;
  outline: 0;
}
.market-search:focus {
  border-color: var(--cyan);
}
.timestamp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.timestamp-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafdff;
  padding: 20px;
}
.timestamp-card h4 {
  margin: 7px 0 15px;
  font-size: 15px;
}
.inline-field {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}
.timestamp-card input,
.timestamp-card select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  outline: 0;
}
.timestamp-card input {
  width: 100%;
}
.timestamp-card select {
  width: 80px;
}
.timestamp-card .btn {
  height: 35px;
  font-size: 11px;
}
.result-chip,
.date-output {
  margin-top: 12px;
  border-radius: 9px;
  background: #eaf8f5;
  padding: 10px;
  color: #23776f;
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-word;
}
.date-output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f4f7;
  color: #627988;
}
.date-output b {
  font-weight: 500;
}
@media (max-width: 760px) {
  .timestamp-grid {
    grid-template-columns: 1fr;
  }
}
.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.game-card {
  background: #ffffffe0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  min-height: 235px;
  box-shadow: 0 12px 35px #314e6112;
}
.game-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.game-card h3 {
  margin: 7px 0 4px;
  font-size: 18px;
}
.game-card p {
  margin: 0;
  color: #8999a4;
  font-size: 11px;
  line-height: 1.6;
}
.game-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #dff8f3;
  color: #0c9a91;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.game-card-icon.violet {
  background: #ece8ff;
  color: #7964e8;
}
.game-card-icon.orange {
  background: #fff0df;
  color: #de8a4c;
}
.reaction-target {
  display: grid;
  place-items: center;
  width: 100%;
  height: 88px;
  margin: 18px 0 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6fbf7, #eff5ff);
  color: #39958e;
  font-weight: 800;
  font-size: 13px;
}
.reaction-target.ready {
  background: #b9ef83;
  color: #2d6726;
  box-shadow: 0 0 0 5px #b9ef8338;
}
.game-score-line {
  display: flex;
  justify-content: space-between;
  color: #94a2ab;
  font-size: 10px;
}
.game-score-line b {
  font-family: var(--mono);
  color: #3c6570;
  font-size: 13px;
}
.guess-row {
  display: flex;
  gap: 8px;
  margin: 31px 0 12px;
}
.guess-row input {
  height: 40px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  outline: 0;
}
.guess-row .btn {
  height: 40px;
}
.game-message {
  font-size: 11px;
  color: #79909b;
  min-height: 18px;
}
.guess-card .text-btn {
  margin-top: 11px;
  padding: 0;
}
.battle-preview {
  height: 87px;
  margin: 18px 0 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #12182f, #28386b);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  font-size: 22px;
}
.battle-preview i {
  font-style: normal;
  color: #9eaeff;
  font-size: 18px;
}
.wide-btn {
  width: 100%;
  height: 39px;
  font-size: 11px;
}
.online-room {
  margin-top: 17px;
}
.room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.room-head h3 {
  margin: 7px 0 4px;
  font-size: 18px;
}
.room-head p {
  margin: 0;
  color: #8999a4;
  font-size: 11px;
}
.room-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-top: 20px;
}
.room-actions {
  display: grid;
  align-content: start;
  gap: 9px;
}
.join-row {
  display: flex;
  gap: 7px;
}
.join-row input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  text-transform: uppercase;
}
.join-row .btn {
  height: 38px;
  white-space: nowrap;
  font-size: 11px;
}
.room-main {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafdff;
  padding: 13px 15px;
}
.room-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf1f3;
  padding-bottom: 10px;
}
.room-code-row span {
  font-size: 10px;
  color: #95a3ac;
}
.room-code-row strong {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #315f6e;
}
.room-code-row .ghost-btn {
  margin-left: auto;
}
.room-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  min-height: 54px;
}
.room-player {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e9f7f4;
  color: #39766f;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11px;
}
.room-player.waiting {
  background: #f1f4f6;
  color: #8999a4;
}
.room-player i {
  font-style: normal;
  font-size: 10px;
}
.empty-room {
  color: #9aa8b1;
  font-size: 11px;
}
.room-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.room-footer .btn {
  height: 33px;
  font-size: 11px;
}
.battle-frame-wrap {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.frame-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.frame-head h3 {
  font-size: 16px;
  margin: 6px 0 0;
}
.battle-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}
@media (max-width: 1100px) {
  .game-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .game-hub-grid,
  .room-layout {
    grid-template-columns: 1fr;
  }
  .room-head {
    display: block;
  }
  .room-head .workspace-status {
    margin-top: 10px;
  }
  .battle-frame-wrap iframe {
    height: 680px;
  }
}
.image-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #64808c;
  font-size: 11px;
  cursor: pointer;
  background: #f8fbfd;
}
.upload-btn input {
  display: none;
}
.image-upload-row > span {
  font-size: 10px;
  color: #99a7b0;
}
.feed-image {
  display: block;
  max-width: 320px;
  max-height: 220px;
  border-radius: 11px;
  margin: 8px 0 11px;
  object-fit: cover;
}
.reply-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
  padding-left: 10px;
  border-left: 2px solid #dff1ef;
}
.reply-item {
  font-size: 11px;
  color: #6e858f;
}
.reply-item b {
  color: #3f6871;
  margin-right: 5px;
}
.reply-box {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.reply-box input {
  height: 30px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 11px;
}
.reply-box button {
  height: 30px;
  background: #e3f8f4;
  border-radius: 7px;
  color: #11877f;
  padding: 0 9px;
  font-size: 10px;
}
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.puzzle-card,
.memory-card {
  min-height: 410px;
}
.puzzle-score {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0 10px;
  color: #8a9aa4;
  font-size: 10px;
}
.puzzle-score b {
  font: 700 14px var(--mono);
  color: #315f6e;
}
.puzzle-score .ghost-btn {
  margin-left: auto;
  height: 27px;
  padding: 0 8px;
  font-size: 10px;
}
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 13px;
  background: #d9e4e5;
  touch-action: none;
  outline: 0;
}
.puzzle-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3f1;
  color: #77908e;
  font: 800 20px var(--mono);
  transition:
    transform 0.12s,
    background 0.12s;
}
.puzzle-tile.value-2 {
  background: #f7fff4;
  color: #5f9470;
}
.puzzle-tile.value-4 {
  background: #e7f8dc;
  color: #4c8b65;
}
.puzzle-tile.value-8 {
  background: #c9f0b2;
  color: #36774c;
}
.puzzle-tile.value-16 {
  background: #9be28f;
  color: #fff;
}
.puzzle-tile.value-32 {
  background: #64ca7d;
  color: #fff;
}
.puzzle-tile.value-64 {
  background: #35a96e;
  color: #fff;
}
.puzzle-tile.value-128 {
  background: #ffd98a;
  color: #9c711f;
  font-size: 17px;
}
.puzzle-tile.value-256 {
  background: #ffc260;
  color: #fff;
  font-size: 17px;
}
.puzzle-tile.value-512,
.puzzle-tile.value-1024,
.puzzle-tile.value-2048 {
  background: #ef9660;
  color: #fff;
  font-size: 15px;
}
.puzzle-controls {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}
.puzzle-controls button {
  width: 32px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfd;
  color: #547783;
  font-weight: 800;
  cursor: pointer;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 13px;
  background: #eee9ff;
}
.memory-tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: 9px;
  background: #d9d2ff;
  color: #7768c6;
  font-size: 20px;
  cursor: pointer;
  transition:
    transform 0.16s,
    background 0.16s;
}
.memory-tile.flipped {
  background: #fff;
  color: #765fe0;
  box-shadow: inset 0 0 0 2px #cfc5ff;
}
.memory-tile.matched {
  background: #ddf8eb;
  color: #219a73;
}
.memory-tip {
  margin-top: 12px;
  color: #9a8ed0;
  font-size: 10px;
}
.profile-link {
  cursor: pointer;
}
.feed-avatar {
  overflow: hidden;
  padding: 0;
  border: 0;
}
.feed-avatar img,
.avatar img,
.profile-avatar img,
.avatar-edit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.feed-author,
.reply-author {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.reply-author {
  font-size: 11px;
  color: #3f6871;
  margin-right: 4px;
}
.reply-delete {
  border: 0;
  background: transparent;
  color: #a9b4b9;
  font-size: 10px;
  margin-left: 7px;
  cursor: pointer;
}
.feed-empty,
.profile-empty {
  padding: 36px 15px;
  text-align: center;
  color: #9aa8b1;
  font-size: 12px;
}
.profile-modal {
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
}
.profile-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0 17px;
  border-bottom: 1px solid #edf2f3;
}
.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: #e3efff;
  color: #3d7ca6;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 auto;
}
.profile-hero h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.profile-hero p {
  margin: 0 0 5px;
  color: #788e98;
  font-size: 11px;
  line-height: 1.6;
}
.profile-hero small {
  color: #a0adb3;
  font-size: 10px;
}
.profile-editor {
  padding: 15px 0;
  border-bottom: 1px solid #edf2f3;
}
.profile-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}
.profile-editor-head b {
  font-size: 12px;
}
.profile-editor-head span {
  color: #a1adb3;
  font-size: 10px;
}
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}
.avatar-edit .profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 15px;
}
.bio-label {
  display: block;
  color: #718892;
  font-size: 10px;
  margin-bottom: 5px;
}
.profile-editor textarea {
  min-height: 60px !important;
}
.profile-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.profile-editor-actions .btn {
  height: 34px;
  font-size: 10px;
}
.profile-post-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
  font-size: 12px;
}
.profile-post-heading span {
  font-size: 10px;
  color: #9caab1;
}
.profile-posts {
  display: grid;
  gap: 8px;
}
.profile-post {
  padding: 11px 12px;
  border: 1px solid #edf1f2;
  border-radius: 11px;
  background: #fbfdfe;
}
.profile-post .feed-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-post .feed-text {
  font-size: 11px;
  margin: 8px 0;
}
.profile-post > small {
  font-size: 10px;
  color: #a0adb3;
}
.profile-more {
  display: block;
  margin: 13px auto 0;
  height: 32px;
  font-size: 10px;
}
.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .puzzle-grid {
    grid-template-columns: 1fr;
  }
  .profile-modal {
    padding: 18px;
  }
  .profile-editor-head {
    display: block;
  }
  .profile-editor-head span {
    display: block;
    margin-top: 4px;
  }
}
.todo-panel {
  margin-top: 17px;
}
.todo-add {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.todo-add input {
  height: 37px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  outline: 0;
  background: #fbfdff;
}
.todo-add input:focus {
  border-color: var(--cyan);
}
.todo-add .btn {
  height: 37px;
  font-size: 11px;
}
.todo-list {
  display: grid;
  gap: 7px;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #edf1f2;
  border-radius: 9px;
  background: #fbfdfe;
}
.todo-item input {
  accent-color: var(--cyan);
}
.todo-item span {
  flex: 1;
  font-size: 11px;
  color: #5c737d;
  word-break: break-word;
}
.todo-item.done span {
  text-decoration: line-through;
  color: #a3afb5;
}
.todo-delete {
  border: 0;
  background: transparent;
  color: #a9b4b9;
  cursor: pointer;
  font-size: 13px;
}
.todo-empty {
  color: #a1adb3;
  font-size: 11px;
  padding: 12px 0;
}
.market-live-note {
  font-size: 10px;
  color: #9ba9b0;
}
.feed-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feed-search {
  width: 115px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  background: #fbfdff;
  color: var(--text);
  font-size: 10px;
  outline: 0;
}
.feed-search:focus {
  border-color: var(--cyan);
}
@media (max-width: 760px) {
  .feed-filter-actions {
    flex-wrap: wrap;
  }
  .feed-search {
    width: 100%;
  }
}
.date-chip {
  grid-template-columns: 22px auto auto;
  column-gap: 9px;
  padding: 10px 14px;
}
.date-chip .clock-icon {
  grid-row: span 2;
  font-size: 22px;
}
.beijing-time {
  display: grid;
  gap: 1px;
}
.date-chip .beijing-time b {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.date-chip .beijing-time small,
.offwork-countdown small {
  font-size: 9px;
  color: #91a0aa;
}
.offwork-countdown {
  border-left: 1px solid var(--line);
  padding-left: 10px;
  display: grid;
  gap: 1px;
}
.offwork-countdown b {
  font-family: var(--mono);
  font-size: 13px;
  color: #df8753;
  white-space: nowrap;
}
.bubble {
  z-index: 2;
  cursor: pointer;
  user-select: none;
}
.bubble.pop {
  animation: bubble-pop 0.28s ease;
}
@keyframes bubble-pop {
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 8px #71c9bd33;
  }
}
@media (max-width: 760px) {
  .date-chip {
    display: grid;
    margin-left: auto;
  }
  .date-chip .beijing-time b {
    font-size: 19px;
  }
  .offwork-countdown b {
    font-size: 11px;
  }
  .date-chip .clock-icon {
    font-size: 18px;
  }
}
.quick-composer {
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--line);
}
.quick-composer textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fbfdff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  resize: vertical;
  outline: 0;
}
.quick-composer textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #18c6c118;
}
.quick-composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.quick-composer-bar .upload-btn {
  padding: 6px 9px;
}
.quick-composer-bar > span {
  flex: 1;
  color: #9aa8b1;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-composer-bar .btn {
  height: 31px;
  font-size: 10px;
}
.quick-post-preview {
  margin-top: 8px;
}
.quick-post-preview img {
  display: block;
  max-width: 190px;
  max-height: 120px;
  border-radius: 9px;
  object-fit: cover;
}
.modal-card {
  width: min(620px, 100%);
}
.modal-card textarea {
  min-height: 210px;
}
.modal-card .quick-post-preview img {
  max-width: 260px;
  max-height: 180px;
}
@media (max-width: 760px) {
  .quick-composer-bar {
    flex-wrap: wrap;
  }
  .quick-composer-bar > span {
    min-width: 120px;
  }
  .quick-composer-bar .btn {
    margin-left: auto;
  }
}
.tool-card {
  position: relative;
}
.card-star {
  position: absolute;
  right: 12px;
  top: 24px;
  z-index: 3;
  color: #9aaab3;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s;
}
.card-star:hover,
.card-star.saved {
  color: #e7a23c;
  transform: scale(1.14);
}
.card-star.saved {
  color: #e7a23c;
}
.game-card {
  position: relative;
}
.game-star {
  right: 16px;
  top: 30px;
}
.game-card-head {
  padding-right: 25px;
}
.favorite-nav-empty {
  padding: 7px 11px;
  color: #a5b0b8;
  font-size: 10px;
}
.favorite-nav-item {
  position: relative;
}
.favorite-nav-item .favorite-remove {
  margin-left: auto;
  color: #bdc6ca;
  font-size: 12px;
  opacity: 0;
}
.favorite-nav-item:hover .favorite-remove {
  opacity: 1;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(240px, 310px) 1fr;
  gap: 18px;
  min-height: 560px;
}
.chat-people,
.chat-thread {
  min-height: 560px;
}
.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}
.chat-panel-head h3 {
  margin: 3px 0 0;
}
.chat-search {
  width: 100%;
  border: 1px solid #dbe7eb;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fbfdfe;
  color: var(--ink);
  outline: none;
}
.chat-search:focus {
  border-color: #73c5c7;
  box-shadow: 0 0 0 3px #d9f2f0;
}
.chat-user-list,
.chat-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  max-height: 215px;
  overflow: auto;
}
.chat-section-label {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid #edf2f3;
  color: #97a6ad;
  font: 500 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chat-person,
.chat-conversation {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
}
.chat-person-open,
.chat-conversation-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.chat-person-open:hover,
.chat-conversation-copy:hover,
.chat-person.active .chat-person-open,
.chat-conversation.active .chat-conversation-copy {
  color: var(--cyanDark);
}
.chat-person:hover,
.chat-conversation:hover,
.chat-person.active,
.chat-conversation.active {
  background: #eef8f7;
}
.chat-person .avatar,
.chat-conversation .avatar {
  width: 34px;
  height: 34px;
  flex: none;
  font-size: 12px;
}
.chat-person-copy,
.chat-conversation-copy {
  min-width: 0;
  flex: 1;
}
.chat-person-copy b,
.chat-conversation-copy b {
  display: block;
  font-size: 13px;
}
.chat-person-copy small,
.chat-conversation-copy small {
  display: block;
  color: #95a4a9;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.chat-conversation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.chat-time {
  font: 10px var(--mono);
  color: #a7b3b7;
}
.chat-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e98f71;
  color: #fff;
  font: 700 10px/18px var(--mono);
  text-align: center;
}
.chat-empty {
  padding: 22px 10px;
  text-align: center;
  color: #a2afb3;
  font-size: 12px;
  line-height: 1.7;
}
.chat-thread {
  overflow: hidden;
  padding: 0;
}
.chat-thread-empty {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ba9ad;
  text-align: center;
}
.chat-thread-empty h3 {
  color: #567078;
  margin: 13px 0 4px;
}
.chat-thread-empty p {
  margin: 0;
  font-size: 12px;
}
.chat-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: #eaf8f5;
  color: #39a59e;
  font-size: 25px;
}
.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf2f3;
}
.chat-thread-head .avatar {
  width: 40px;
  height: 40px;
  flex: none;
}
.chat-thread-head > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.chat-thread-head b {
  display: block;
  font-size: 15px;
}
.chat-thread-head small {
  display: block;
  margin-top: 3px;
  color: #99a8ad;
  font-size: 11px;
}
.chat-messages {
  height: 390px;
  padding: 22px 24px;
  overflow: auto;
  background: linear-gradient(180deg, #fbfdfd, #f5faf9);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-message {
  max-width: min(72%, 440px);
  padding: 10px 13px;
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  border: 1px solid #e3eeee;
  color: #435a62;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 3px 13px #254f5910;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.mine {
  align-self: flex-end;
  border-radius: 15px 15px 4px 15px;
  background: #d9f3ef;
  border-color: #c5eae4;
  color: #275c5d;
}
.chat-message time {
  display: block;
  margin-top: 4px;
  color: #9aabad;
  font: 10px var(--mono);
}
.chat-composer {
  padding: 14px 18px;
  border-top: 1px solid #e5eeee;
  background: #fff;
}
.chat-composer textarea {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  color: var(--ink);
  font: 13px/1.55 var(--sans);
}
.chat-composer textarea:focus {
  border-color: #72c6c1;
  box-shadow: 0 0 0 3px #e4f6f3;
}
.chat-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #a0adb1;
  font-size: 10px;
}
.chat-composer-foot .btn {
  padding: 9px 14px;
}
@media (max-width: 800px) {
  .chat-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .chat-people,
  .chat-thread {
    min-height: 0;
  }
  .chat-user-list,
  .chat-conversation-list {
    max-height: 180px;
  }
  .chat-thread-empty {
    min-height: 320px;
  }
  .chat-messages {
    height: 340px;
    padding: 16px;
  }
  .chat-thread-head {
    padding: 13px 15px;
  }
  .chat-thread-head .ghost-btn {
    font-size: 11px;
    padding: 7px 9px;
  }
}
.friend-request-list,
.friend-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.friend-request {
  padding: 8px 9px;
  border-radius: 10px;
  background: #f6fbfb;
  border: 1px solid #e5f0f0;
}
.friend-mini,
.friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.friend-mini {
  min-width: 0;
  flex: 1;
}
.friend-mini .avatar {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 10px;
  flex: none;
}
.friend-mini span:not(.avatar) {
  min-width: 0;
}
.friend-mini b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-mini small {
  display: block;
  color: #9aa8ad;
  font-size: 9px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.friend-request-actions .btn {
  height: 27px;
  padding: 0 9px;
  font-size: 10px;
}
.friend-row {
  padding: 7px 8px;
  border-radius: 10px;
}
.friend-row:hover {
  background: #f0f8f7;
}
.friend-link {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.friend-chat-btn {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: #e1f7f3;
  color: #178b83;
  font-size: 12px;
}
.friend-empty {
  padding: 8px 4px;
  color: #a2afb3;
  font-size: 10px;
  line-height: 1.6;
}
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f3;
}
.profile-actions .btn {
  height: 32px;
  font-size: 10px;
  padding: 0 11px;
}
.profile-actions .ghost-btn {
  padding: 0 5px;
  font-size: 10px;
}
.relationship-hint {
  color: #9ba8ae;
  font-size: 10px;
  margin-left: auto;
}
.profile-friends {
  padding: 13px 0 3px;
  border-bottom: 1px solid #edf2f3;
}
.profile-friends > b {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}
.profile-friends > span {
  color: #a1adb2;
  font-size: 10px;
}
.profile-friend-grid {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.profile-friend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e6eeee;
  background: #f8fcfc;
  border-radius: 9px;
  padding: 5px 7px;
  font-size: 10px;
  color: #55727b;
}
.profile-friend .avatar {
  overflow: hidden;
}
.profile-friend .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.profile-post .feed-image {
  max-width: 100%;
}
.profile-post .feed-image-grid.n1 {
  grid-template-columns: minmax(0, 100%);
}
.profile-friend .avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 9px;
}
.profile-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #718892;
  font-size: 10px;
  margin-top: 10px;
}
.profile-privacy input {
  accent-color: var(--cyan);
}
.chat-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}
.presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6d0d2;
  border: 2px solid #fff;
}
.presence-dot.is-online {
  background: #47c788;
  box-shadow: 0 0 0 2px #47c78833;
}
.chat-person .chat-avatar-wrap .avatar,
.chat-conversation .chat-avatar-wrap .avatar {
  width: 34px;
  height: 34px;
}
.friend-mini .chat-avatar-wrap .avatar {
  width: 29px;
  height: 29px;
}
.friend-row .friend-mini .chat-avatar-wrap .avatar {
  width: 29px;
  height: 29px;
}
.tool-tab {
  position: relative;
  padding-right: 28px;
}
.tool-tab .tab-star {
  top: 50%;
  margin-top: -8px;
}
.tab-star {
  position: absolute;
  right: 8px;
  top: 7px;
  color: #9aaab3;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.tab-star.saved {
  color: #e7a23c;
}
.tab-star:hover {
  color: #e7a23c;
  transform: scale(1.1);
}
.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 13px;
}
.finance-tabs,
.finance-news-tabs {
  display: flex;
  gap: 5px;
}
.finance-tab,
.finance-news-tab {
  border: 1px solid transparent;
  background: #f4f8f9;
  color: #7e9299;
  border-radius: 9px;
  padding: 8px 14px;
  font: 600 11px var(--sans);
  cursor: pointer;
}
.finance-tab.active,
.finance-news-tab.active {
  background: #dff6f1;
  color: #138a82;
  border-color: #c9ebe4;
}
.finance-search {
  position: relative;
  display: flex;
  gap: 7px;
  min-width: 280px;
}
.finance-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  background: #fbfdff;
  color: var(--text);
  outline: 0;
  font-size: 11px;
}
.finance-search input:focus {
  border-color: var(--cyan);
}
.finance-search .icon-btn {
  height: 36px;
  width: 36px;
}
.finance-search-results {
  position: absolute;
  z-index: 6;
  top: 42px;
  left: 0;
  right: 42px;
  background: #fff;
  border: 1px solid #dcebec;
  border-radius: 10px;
  box-shadow: 0 14px 35px #2d5c6818;
  overflow: hidden;
}
.finance-search-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #edf3f3;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.finance-search-results button:hover {
  background: #eef9f7;
}
.finance-search-results b {
  font-size: 11px;
}
.finance-search-results small {
  font: 10px var(--mono);
  color: #91a2a8;
}
.finance-search-results span {
  margin-left: auto;
  color: #12958c;
}
.finance-search-empty {
  padding: 12px;
  color: #9aa8ad;
  font-size: 10px;
}
.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 15px;
}
.finance-watch-panel,
.finance-board-panel,
.finance-discuss-panel,
.finance-news-panel {
  min-width: 0;
}
.finance-list {
  display: grid;
  gap: 3px;
}
.finance-row {
  display: grid;
  /* 名称列 min 0:它内部是 nowrap + ellipsis,可以安全收缩让位给右边的数字列。
     价格列 min 86、涨跌幅列固定 70 不能收缩 —— 数字被截断比名称省略更糟。
     三者的最小内容宽(86+70+按钮+间距)是行的下限,列宽不足时行内容会压到相邻列上。 */
  grid-template-columns: minmax(0, 1.4fr) minmax(86px, 0.85fr) 70px auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f2;
}
.finance-row:last-child {
  border-bottom: 0;
}
.finance-symbol {
  min-width: 0;
}
.finance-symbol b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finance-symbol small {
  display: block;
  margin-top: 3px;
  color: #9ba9ae;
  font: 9px var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finance-price {
  font: 600 11px var(--mono);
  color: #4f6870;
  text-align: right;
  white-space: nowrap;
}
.finance-price em {
  font: 9px var(--sans);
  font-style: normal;
  color: #a3afb2;
}
.finance-change {
  font: 700 11px var(--mono);
  text-align: right;
  white-space: nowrap;
}
.finance-change.up {
  color: #dc7e67;
}
.finance-change.down {
  color: #159a8e;
}
.finance-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.finance-row-actions .ghost-btn {
  height: 26px;
  padding: 0 6px;
  font-size: 9px;
}
.finance-remove {
  width: 25px;
  height: 26px;
  color: #a9b5b8;
}
.finance-empty {
  padding: 18px 4px;
  text-align: center;
  color: #9daab0;
  font-size: 10px;
  line-height: 1.7;
}
.board-columns {
  /* 涨/跌幅两榜并排还是堆叠由可用宽度决定:两列各需 ≥250px(列内行下限约 210px),
     放不下就整列换行,不需要按视口配断点。用 grid 固定两列时,面板被压窄后
     每列只有 145~210px,行内容会溢出并压到相邻列的文字上。 */
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.board-columns > div {
  flex: 1 1 250px;
  min-width: 0;
}
.board-label {
  display: block;
  margin: 2px 0 4px;
  font-size: 10px;
}
.up-label {
  color: #d77f6a;
}
.down-label {
  color: #159a8e;
}
.finance-discuss-panel,
.finance-news-panel {
  margin-top: 15px;
}
.finance-post-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.finance-post {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid #e6f0f0;
  background: #fbfefe;
  border-radius: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: 0.15s;
}
.finance-post:hover {
  border-color: #a8ddd3;
  background: #f4fbf9;
  box-shadow: 0 6px 18px #2d5c680f;
  transform: translateY(-1px);
}
.finance-post .avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px;
}
.finance-post b {
  display: block;
  font-size: 11px;
}
.finance-post small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  color: #6d848c;
  font-size: 11px;
  line-height: 1.6;
  white-space: normal;
}
.finance-post time {
  color: #a3afb4;
  font: 9px var(--mono);
  white-space: nowrap;
}
.finance-post-body {
  min-width: 0;
}
.finance-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.finance-news-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf2f2;
  color: var(--text);
  text-decoration: none;
}
.finance-news-item:hover span {
  color: #138e87;
}
.finance-news-item span {
  font-size: 11px;
  line-height: 1.5;
}
.finance-news-item small {
  color: #9ba8ad;
  font-size: 9px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4dcf8b;
  box-shadow: 0 0 0 3px #4dcf8b25;
}
.post-tag-row {
  margin-top: 10px;
}
.post-tag-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #80949b;
  font-size: 10px;
}
.post-tag-row select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 6px 8px;
  color: var(--text);
  font-size: 10px;
}
@media (max-width: 900px) {
  .finance-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .finance-toolbar {
    display: block;
  }
  .finance-search {
    margin-top: 9px;
    min-width: 0;
  }
  .finance-row {
    grid-template-columns: minmax(90px, 1fr) auto auto;
  }
  .finance-row-actions .ghost-btn {
    display: none;
  }
  .finance-news-list {
    grid-template-columns: 1fr;
  }
  .finance-tabs {
    overflow: auto;
  }
  /* 涨跌榜此时已由 .board-columns 的 flex-wrap 自动堆叠为单列,这里只收字号。 */
  .board-columns .board-label {
    font-size: 11px;
  }
}
.invite-row {
  display: flex;
  gap: 7px;
}
.invite-row select {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdff;
  color: #607b84;
  padding: 0 8px;
  font-size: 10px;
}
.invite-row .btn {
  height: 36px;
  white-space: nowrap;
  padding: 0 9px;
  font-size: 10px;
}
.notification-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e6eeee;
  border-radius: 10px;
  background: #fbfefe;
}
.notification-item.unread {
  border-color: #bfe9df;
  background: #f2fbf9;
}
.notification-item .avatar {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 10px;
  flex: none;
}
.notification-copy {
  min-width: 0;
  flex: 1;
}
.notification-copy b {
  display: block;
  font-size: 11px;
}
.notification-copy small {
  display: block;
  margin-top: 3px;
  color: #91a1a7;
  font-size: 9px;
}
.notification-item .btn {
  height: 27px;
  padding: 0 8px;
  font-size: 9px;
  white-space: nowrap;
}
.notice-modal {
  max-width: 500px;
}
.notice-modal > p {
  margin: 3px 0;
  color: #97a6ac;
  font-size: 10px;
}
/* Optional AI workspace and interaction polish */
:where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid #59cfc055;
  outline-offset: 2px;
}
.page-section.active-section {
  animation: section-in 0.22s ease-out;
}
@keyframes section-in {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e7ecee;
  border-radius: 999px;
  padding: 7px 11px;
  color: #93a2a8;
  background: #fafcfc;
  font-size: 10px;
  white-space: nowrap;
}
.ai-status-pill:before {
  content: '•';
  font-size: 16px;
  line-height: 8px;
  color: #b8c3c6;
}
.ai-status-pill.enabled {
  border-color: #bde9df;
  background: #effbf8;
  color: #138c83;
}
.ai-status-pill.enabled:before {
  color: #38c78c;
}
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 17px;
}
.ai-chat-panel {
  min-height: 610px;
  display: flex;
  flex-direction: column;
}
.ai-chat-panel .panel-head {
  flex: none;
}
.ai-messages {
  flex: 1;
  min-height: 380px;
  max-height: 560px;
  overflow: auto;
  padding: 18px 5px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: linear-gradient(180deg, #fbfefe, #f5fbfa);
  border-top: 1px solid #edf3f3;
  border-bottom: 1px solid #e6f0ef;
}
.ai-message {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 84%;
}
.ai-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ai-message-avatar {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #def7f2;
  color: #169389;
  font-weight: 800;
  font-size: 12px;
}
.ai-message.user .ai-message-avatar {
  background: #e9e6ff;
  color: #7762d8;
}
.ai-message > div:last-child {
  padding: 9px 12px;
  border: 1px solid #e3eeee;
  border-radius: 13px 13px 13px 3px;
  background: #fff;
  box-shadow: 0 3px 12px #2e626510;
}
.ai-message.user > div:last-child {
  border-radius: 13px 13px 3px 13px;
  background: #edf0ff;
  border-color: #dedcff;
}
.ai-message b {
  font-size: 10px;
  color: #789097;
}
.ai-message p {
  margin: 5px 0 0;
  color: #465d65;
  font-size: 12px;
  line-height: 1.65;
  word-break: break-word;
}
.ai-composer {
  padding-top: 13px;
}
.ai-composer textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  color: var(--ink);
  font: 13px/1.55 var(--sans);
}
.ai-composer textarea:focus {
  border-color: #72c6c1;
  box-shadow: 0 0 0 3px #e4f6f3;
}
.ai-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #9ba9ad;
  font-size: 10px;
}
.ai-composer-foot .btn {
  padding: 9px 15px;
}
.ai-composer-foot .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.ai-side {
  display: grid;
  align-content: start;
  gap: 15px;
}
.ai-capability-panel h3,
.ai-config-panel h3 {
  margin: 7px 0 5px;
}
.ai-config-panel p {
  margin: 0;
  color: #718891;
  font-size: 11px;
  line-height: 1.7;
}
.ai-config-panel p code {
  padding: 2px 4px;
  border-radius: 4px;
  background: #eef6f5;
  color: #188b82;
  font: 10px var(--mono);
}
.ai-config-panel > small {
  display: block;
  margin-top: 10px;
  color: #9ca9ad;
  font-size: 10px;
  line-height: 1.6;
}
.ai-capability-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.ai-capability-list button {
  position: relative;
  width: 100%;
  padding: 10px 27px 10px 11px;
  border: 1px solid #e4eeee;
  border-radius: 10px;
  background: #fbfefe;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.ai-capability-list button:hover {
  border-color: #b8e5dd;
  background: #f1fbf9;
}
.ai-capability-list b,
.ai-capability-list small {
  display: block;
}
.ai-capability-list b {
  font-size: 11px;
}
.ai-capability-list small {
  margin-top: 4px;
  color: #94a4a9;
  font-size: 9px;
  line-height: 1.4;
}
.ai-capability-list button > span {
  position: absolute;
  right: 10px;
  top: 18px;
  color: #15998f;
}
.ai-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #83969d;
  font-size: 10px;
  white-space: nowrap;
}
.ai-option input {
  accent-color: var(--cyan);
}
.ai-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 850px) {
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .ai-chat-panel {
    min-height: 560px;
  }
  .ai-side {
    grid-template-columns: 1fr 1fr;
  }
  .ai-messages {
    min-height: 300px;
  }
}
@media (max-width: 600px) {
  .ai-side {
    grid-template-columns: 1fr;
  }
  .ai-composer-foot {
    align-items: flex-end;
  }
  .ai-composer-foot .btn {
    flex: none;
  }
  .ai-option {
    font-size: 9px;
  }
  .ai-message {
    max-width: 94%;
  }
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.admin-stat {
  padding: 14px 15px;
  border: 1px solid #e3eeee;
  border-radius: 13px;
  background: #fbfefe;
}
.admin-stat small {
  display: block;
  color: #8b9da3;
  font-size: 10px;
}
.admin-stat b {
  display: block;
  margin-top: 6px;
  font: 700 19px var(--mono);
  color: #1d3b49;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.admin-list {
  display: grid;
  gap: 5px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f2;
}
.admin-row:last-child {
  border-bottom: 0;
}
.admin-row > .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 10px;
  flex: none;
}
.admin-row > span:nth-child(2),
.admin-post-copy {
  min-width: 0;
  flex: 1;
}
.admin-row b,
.admin-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row b {
  font-size: 11px;
}
.admin-row small {
  margin-top: 3px;
  color: #93a2a7;
  font-size: 9px;
}
.admin-row .ghost-btn {
  height: 27px;
  padding: 0 9px;
  font-size: 9px;
  white-space: nowrap;
}
.admin-row .danger {
  color: #c9786e;
}
.admin-nav-label {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .admin-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .admin-summary {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat b {
    font-size: 15px;
  }
}

.mahjong-preview {
  background: linear-gradient(135deg, #e5faf5, #edf5ff);
  color: #3f7e8b;
}
.mahjong-preview i {
  color: #60a89f;
}
/* 棋牌室：独立牌桌容器与在线状态 */
.boardgame-panel {
  padding: 0;
  overflow: hidden;
  border-color: #dfeeed;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.boardgame-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 12px 0 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.boardgame-status {
  margin-left: auto;
}
.boardgame-tabs::-webkit-scrollbar {
  display: none;
}
.boardgame-tab {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 600 12px var(--sans);
  color: var(--muted);
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.boardgame-tab:hover:not(:disabled) {
  border-color: #bfe1da;
  color: #158b81;
}
.boardgame-tab.active {
  background: #e8f8f4;
  border-color: #9dd6cb;
  color: #0c8478;
  box-shadow: inset 0 1px 0 #fff;
}
.boardgame-tab:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f8f8;
  border-style: dashed;
  color: #aab3bc;
}
.boardgame-frame-wrap {
  position: relative;
  flex: 1;
  height: calc(100vh - 300px);
  min-height: 520px;
  background: #f4f8f8;
}
.boardgame-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.online-room-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.online-room-status {
  color: #739198;
  font-size: 10px;
  white-space: nowrap;
}
.online-room-code {
  padding: 5px 8px;
  border: 1px solid #bfe4de;
  border-radius: 7px;
  background: #f0fbf8;
  color: #157e77;
  font: 700 11px var(--mono);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.15s;
}
.online-room-code:hover {
  border-color: #6fc7ba;
  color: #0c8478;
  background: #e6f7f2;
}
.online-room-code:active {
  transform: scale(0.96);
}
.online-room-bar input {
  width: 72px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #dce9e8;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 10px;
}
.online-room-bar .tb {
  height: 30px;
  padding: 0 9px;
  font-size: 10px;
}
.online-chat {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 220px;
  max-height: 190px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dceae8;
  border-radius: 11px;
  background: #ffffffee;
  box-shadow: 0 8px 25px #1a6b5d18;
  backdrop-filter: blur(8px);
  z-index: 5;
}
.online-chat-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #edf3f2;
  color: #2b5a61;
  font-size: 10px;
}
.online-chat-head span {
  color: #8ca2a6;
  font: 10px var(--mono);
}
.online-chat-messages {
  min-height: 62px;
  max-height: 120px;
  overflow: auto;
  padding: 7px 9px;
}
.online-chat-msg {
  display: flex;
  gap: 5px;
  margin: 4px 0;
  font-size: 10px;
  line-height: 1.4;
}
.online-chat-msg b {
  color: #138b81;
  white-space: nowrap;
}
.online-chat-msg span {
  color: #506970;
  word-break: break-word;
}
.online-chat-empty {
  padding: 14px 3px;
  text-align: center;
  color: #a1afb2;
  font-size: 10px;
}
.online-chat form {
  display: flex;
  gap: 5px;
  padding: 7px;
  border-top: 1px solid #edf3f2;
}
.online-chat input {
  min-width: 0;
  flex: 1;
  height: 28px;
  border: 1px solid #dce9e8;
  border-radius: 7px;
  padding: 0 7px;
  font-size: 10px;
}
.online-chat .tb {
  height: 28px;
  padding: 0 8px;
  font-size: 10px;
}
@media (max-width: 760px) {
  .boardgame-frame-wrap {
    height: 70vh;
    min-height: 480px;
  }
  .boardgame-status {
    display: none;
  }
  .online-room-bar {
    width: 100%;
    margin: 7px 0 0;
  }
  .online-chat {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 8px 10px 0;
    max-height: none;
  }
  .online-chat-messages {
    max-height: 100px;
  }
}
.boardgame-fs-btn {
  padding: 0 12px;
  font-size: 11px;
}
.boardgame-fs-btn.active {
  background: #0c8478;
  border-color: #0c8478;
  color: #fff;
  box-shadow: none;
}
.boardgame-frame-wrap:fullscreen {
  height: 100% !important;
  min-height: 0;
}
.boardgame-frame-wrap:-webkit-full-screen {
  height: 100% !important;
  min-height: 0;
}
.boardgame-frame-wrap:fullscreen iframe,
.boardgame-frame-wrap:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
}
/* 炒股区:市场切换移入涨跌榜卡片头;行情讨论卡片优化 */
.finance-toolbar {
  justify-content: flex-end;
}
.board-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  min-width: 0;
}
.board-head-right .finance-tab {
  padding: 5px 10px;
  font-size: 10px;
}
.finance-discuss-panel .panel-head p {
  max-width: 520px;
}
/* 行情讨论:整行展开式列表,右侧时间/热度/箭头 */
.finance-post-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.finance-post-stats {
  font-size: 9px;
  color: #9aa8ad;
  white-space: nowrap;
}
.finance-post .finance-post-go {
  font-size: 12px;
  color: #c2cdd1;
  transition: 0.15s;
}
.finance-post:hover time {
  color: #12958c;
}
.finance-post:hover .finance-post-go {
  color: #12958c;
  transform: translate(1px, -1px);
}
/* 闲聊/好友头像:图片头像强制约束在容器内(修复无限制撑爆布局) */
.chat-avatar-wrap .avatar {
  overflow: hidden;
}
.chat-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* 发帖多图:朋友圈式九宫格(点＋添加 / ×移除 / 按住拖动排序) */
#imagePreview,
#quickPostPreview {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.post-image-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  touch-action: none;
  cursor: grab;
}
.post-image-thumb:active {
  cursor: grabbing;
}
.post-image-thumb.drag-src img {
  opacity: 0.3;
}
.post-image-thumb img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  pointer-events: none;
}
.post-image-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cfe3e6;
  background: #fff;
  color: #7e9299;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px #2d5c6822;
}
.post-image-remove:hover {
  background: #ffefec;
  border-color: #e8a598;
  color: #c25643;
}
.post-image-add {
  width: 76px;
  height: 76px;
  border: 1px dashed #bfd8dc;
  border-radius: 10px;
  background: #f7fbfb;
  color: #8fa5ab;
  font-size: 26px;
  font-weight: 300;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s;
}
.post-image-add:hover {
  border-color: var(--cyan);
  color: #12958c;
  background: #eef9f7;
}
#imgLightbox {
  position: fixed;
  inset: 0;
  background: #0b222999;
  backdrop-filter: blur(3px);
  display: none;
  place-items: center;
  z-index: 400;
  cursor: zoom-out;
}
#imgLightbox.show {
  display: grid;
}
#imgLightbox img {
  max-width: min(88vw, 860px);
  max-height: 86vh;
  min-width: min(240px, 70vw);
  border-radius: 14px;
  box-shadow: 0 18px 60px #0006;
  background: #fff;
}
.feed-image {
  cursor: zoom-in;
}
.post-image-thumb img {
  cursor: grab;
}
.post-image-ghost {
  position: fixed;
  z-index: 120;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 14px 30px #2d5c6840;
  transform: translate(-50%, -50%) scale(1.06);
}
#imagePreview.hidden,
#quickPostPreview.hidden {
  display: none;
}

/* 信息流多图九宫格 */
.feed-image-grid {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.feed-image-grid .feed-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
  aspect-ratio: 4/3;
}
.feed-image-grid.n1 {
  grid-template-columns: minmax(0, 420px);
}
.feed-image-grid.n1 .feed-image {
  aspect-ratio: 16/10;
}
.feed-image-grid.n2,
.feed-image-grid.n4 {
  grid-template-columns: 1fr 1fr;
}
.feed-image-grid.n3 {
  grid-template-columns: 1fr 1fr 1fr;
}
/* 收藏星统一:面板右上角星(样式对齐游戏区 card-star) */
.starred-panel {
  position: relative;
}
.starred-panel > .panel-head {
  padding-right: 34px;
}
.card-star.panel-star {
  right: 13px;
  top: 14px;
  font-size: 15px;
}
/* 面板星与右上角相邻控件垂直居中(按各面板右侧控件实测标定) */
#fav-financeWatch .panel-star {
  top: 22px;
}
#fav-financeBoard .panel-star {
  top: 38px;
}
#fav-financeNews .panel-star {
  top: 30px;
}
#fav-financeDiscuss .panel-star {
  top: 34px;
}
#fav-aiChat .panel-star {
  top: 24px;
}
.boardgame-tab {
  position: relative;
}
.boardgame-tab .tab-star {
  position: static;
  margin-left: 7px;
  display: inline-block;
  vertical-align: 1px;
}
[id^='fav-'] {
  scroll-margin-top: 84px;
}
/* 极窄屏(≤430px):home 标题行右侧的 .date-chip 是 flex item,内部为 nowrap 的定宽网格,
   无法收缩;与标题争抢同一行时会把布局视口撑宽(360px 下 doc 撑到 366),导致整页被缩放。
   让它独占一行即可从结构上杜绝溢出,顺带收窄内边距/字号避免占满整屏显得笨重。 */
@media (max-width: 430px) {
  .section-heading {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .section-heading .date-chip {
    flex-basis: 100%;
    margin-left: 0;
    grid-template-columns: 16px auto auto;
    column-gap: 8px;
    padding: 7px 10px;
  }
  .section-heading .date-chip .clock-icon {
    font-size: 16px;
  }
  .section-heading .date-chip .beijing-time b {
    font-size: 17px;
  }
  .section-heading .date-chip .offwork-countdown {
    padding-left: 9px;
  }
  .section-heading .date-chip .offwork-countdown b {
    font-size: 10px;
  }
}
