/* 方案三 · 青绿山水：电脑端（≥621px）排版。顶部导航共用一个组件；内容最宽 1200；
   主内容加侧栏两栏，窄到放不下侧栏时侧栏落到主内容下方。手机端（≤620px）不受影响。 */
@media (min-width: 621px) {
  html body.shanshui { background: #f4f1ea !important; padding-bottom: 0 !important; font-family: var(--ss-sans); }
  html body.shanshui::before, html body.shanshui::after, html body.shanshui .dream-atmosphere { display: none !important; }
  html body.shanshui > .mobile-tab-bar, html body.shanshui .home-mobile-tabs, html body.shanshui > .mobile-task-strip { display: none !important; }

  /* ---------- 顶部导航 ---------- */
  html body.shanshui .site-header { position: sticky; top: 0; z-index: 30; background: #fffdf8 !important; border-bottom: 1px solid #e6e1d5 !important; box-shadow: none !important; backdrop-filter: none !important; }
  html body.shanshui .site-header .site-nav-bar { box-sizing: border-box; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 28px; width: 100%; max-width: 1200px; min-height: 72px; margin: 0 auto; padding: 0 24px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html body.shanshui .site-header .site-brand { flex: 0 0 auto; height: 72px; display: flex; align-items: center; margin: 0; }
  html body.shanshui.shanshui .site-header .site-brand :is(.site-brand-name, .brand-name) { width: 124px; height: 48px; }
  html body.shanshui .site-header :is(.site-nav-panel, .site-nav-toggle, .personal-center-toggle:not(#homeSearchToggle)) { display: none !important; }
  html body.shanshui .site-header .home-header-actions { order: 3; margin: 0 0 0 auto; gap: 8px; }
  html body.shanshui .site-header .home-header-actions > :not(#homeSearchToggle) { display: none !important; }
  html body.shanshui .site-header #homeSearchToggle { width: 44px; height: 44px; border: 1px solid #e6e1d5 !important; border-radius: 8px; background: #fffdf8 !important; color: #1f5c57 !important; box-shadow: none !important; }
  html body.shanshui .ss-topnav { order: 2; display: flex; flex: 0 1 auto; gap: 4px; margin-right: auto; }
  html body.shanshui .site-nav-bar:has(.home-header-actions) .ss-topnav { margin-right: 0; }
  html body.shanshui .ss-topnav a { display: flex; align-items: center; height: 72px; padding: 0 12px; color: #4a5652; font: 500 16px/1 var(--ss-sans); text-decoration: none; box-sizing: border-box; }
  html body.shanshui .ss-topnav a:hover { color: #1f5c57; }
  html body.shanshui .ss-topnav a[aria-current] { color: #1f5c57; font-weight: 700; box-shadow: inset 0 -3px 0 #1f5c57; }
  html body.shanshui .ss-topactions { order: 4; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
  html body.shanshui .ss-topactions [hidden] { display: none !important; }
  html body.shanshui .ss-quota-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: #f4ebd7; color: #7a5a1c; font: 600 14px/1 var(--ss-sans); text-decoration: none; white-space: nowrap; }
  html body.shanshui .ss-profile-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border: 1px solid #e6e1d5; border-radius: 999px; background: #fffdf8; color: #1a2421; font: 600 14px/1 var(--ss-sans); text-decoration: none; box-sizing: border-box; white-space: nowrap; }
  html body.shanshui .ss-profile-chip b { max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
  html body.shanshui .ss-profile-chip svg { fill: none; stroke: #4a5652; stroke-width: 2; }
  html body.shanshui .ss-avatar.is-current { box-shadow: 0 0 0 2px #fffdf8, 0 0 0 4px #1f5c57; }
  html body.shanshui :is(.ss-top-login, .ss-top-register) { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 8px; font: 600 14px/1 var(--ss-sans); text-decoration: none; box-sizing: border-box; white-space: nowrap; }
  html body.shanshui .ss-top-login { border: 1px solid #e6e1d5; background: #fffdf8; color: #1a2421; }
  html body.shanshui .ss-top-register { background: #1f5c57; color: #fffdf8; }

  /* ---------- 面包屑与通用页面抬头 ---------- */
  html body.shanshui .ss-crumb { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #4a5652; font-size: 14px; }
  html body.shanshui .ss-crumb a { color: #1f5c57; text-decoration: none; }
  html body.shanshui .ss-crumb a:hover { text-decoration: underline; }
  html body.shanshui .recharge-notice { border-radius: 12px !important; }
  html body.shanshui :is(.wx-back, .account-settings-back) { display: none !important; }

  /* ---------- 今日 ---------- */
  html body.shanshui.home-refresh .home-main { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); grid-template-rows: auto auto auto auto 1fr auto auto; column-gap: 24px; row-gap: 0; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
  html body.shanshui.home-refresh .home-main > * { margin: 0 0 24px; min-width: 0; }
  html body.shanshui.home-refresh .home-main > :is(.home-rhythm-strip, #homeTools, .recharge-notice, .home-refresh-checkin, .home-highlights, .guest-recent, .home-play-entry, .home-mobile-daily) { display: none !important; }
  html body.shanshui.home-refresh .home-main > .home-hero { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 0; padding: 0; background: none; border: 0; }
  html body.shanshui.home-refresh .home-hero-copy { flex: 1; min-width: 0; padding: 0; min-height: 0; }
  html body.shanshui.home-refresh .home-hero-copy > :not(.ss-date) { display: none !important; }
  html body.shanshui.home-refresh .ss-date h1 { font-size: 32px; }
  html body.shanshui.home-refresh .ss-date .ss-date-lunar { font-size: 18px; }
  html body.shanshui.home-refresh .ss-date .ss-ganzhi { font-size: 14px; letter-spacing: 2px; }
  html body.shanshui.home-refresh .home-hero-art { position: relative !important; inset: auto !important; flex: 0 0 auto; width: 112px !important; height: 112px !important; margin: 0; transform: none !important; }
  html body.shanshui.home-refresh .home-hero-art img { width: 100% !important; height: auto !important; max-width: 100%; position: static !important; transform: none !important; }
  html body.shanshui.home-refresh .home-main > :is(.ss-today, .ss-newcomer) { grid-column: 1; grid-row: 2; }
  html body.shanshui.home-refresh .home-main > .ss-ownday { grid-column: 1; grid-row: 3; }
  html body.shanshui.home-refresh .home-main > .ss-home-inspiration { grid-column: 1; grid-row: 4; }
  html body.shanshui.home-refresh .home-main > .ss-home-aside { grid-column: 2; grid-row: 2 / 6; align-self: start; display: flex; flex-direction: column; gap: 16px; }
  html body.shanshui.home-refresh .home-main > .home-daily-details { grid-column: 1 / -1; grid-row: 6; }
  html body.shanshui.home-refresh .home-main > .home-footer { grid-column: 1 / -1; grid-row: 7; margin-bottom: 0; }
  html body.shanshui .ss-today { flex-direction: column; gap: 18px; padding: 24px; }
  html body.shanshui .ss-today-main { flex: auto; }
  html body.shanshui .ss-today-title { font-size: 30px; letter-spacing: 2px; }
  html body.shanshui .ss-today-summary { font-size: 16px; }
  html body.shanshui .ss-today-hints { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; border-top: 0; padding-top: 0; font-size: 16px; }
  html body.shanshui .ss-today-kicker { justify-content: flex-start; font-size: 14px; }
  html body.shanshui .ss-today-wear { flex: auto; flex-direction: row; align-items: center; padding: 14px 0 0; }
  html body.shanshui .ss-wear-colors { font-size: 16px; }
  html body.shanshui .ss-swatch i { width: 20px; height: 20px; }
  html body.shanshui .ss-wear-actions { margin: 0 0 0 auto; flex-wrap: wrap; }
  html body.shanshui .ss-wear-actions button { padding: 0 4px; border: 0; text-decoration: underline; text-underline-offset: 4px; }
  html body.shanshui .ss-newcomer { gap: 16px; padding: 32px; }
  html body.shanshui .ss-newcomer h2 { font-size: 36px; letter-spacing: 3px; }
  html body.shanshui .ss-newcomer p { font-size: 16px; }
  html body.shanshui .ss-newcomer-form input#ssNewcomerQuestion { min-height: 52px !important; }
  html body.shanshui .ss-newcomer-form button { flex: 0 0 auto; min-height: 52px; padding: 0 28px; }
  html body.shanshui .ss-ownday { padding: 24px; }
  html body.shanshui .ss-ownday h2 { font-size: 22px; }
  html body.shanshui .ss-ownday p { font-size: 16px; }
  html body.shanshui .ss-ownday .ss-btn-soft { flex: 0 0 auto; min-height: 48px; padding: 0 24px; font-size: 16px; }
  html body.shanshui .ss-home-question { padding: 0; border: 0; border-radius: 0; background: transparent; }
  html body.shanshui .ss-home-question h2 { font-size: 20px; }
  html body.shanshui .ss-home-ask textarea#ssHomeQuestionInput { height: 72px; min-height: 72px !important; overflow: auto; padding-right: 14px !important; }
  html body.shanshui .ss-home-ask .ss-icon-submit { display: none; }
  html body.shanshui .ss-home-ask-actions > a { min-height: 44px; font-size: 14px; }
  html body.shanshui .ss-home-ask-actions > .ss-btn-soft { background: transparent; border-color: transparent; }
  html body.shanshui .ss-home-aside > .ss-checkin { gap: 10px; padding: 16px 0 0; border: 0; border-top: 1px solid #e6e1d5; border-radius: 0; background: transparent; }
  html body.shanshui .ss-home-aside .ss-continue { padding: 12px 0; border: 0; border-top: 1px solid #e6e1d5; border-bottom: 1px solid #e6e1d5; border-radius: 0; background: transparent; }
  html body.shanshui .ss-checkin-dots i { width: 16px; height: 16px; }
  html body.shanshui .ss-home-inspiration h2 { font-size: 22px; }
  html body.shanshui .ss-home-inspiration > div { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
  html body.shanshui .ss-home-inspiration > div a { min-height: 64px; padding: 12px 16px; font-size: 15px; }
  html body.shanshui.home-refresh .home-daily-details { border-radius: 16px; }
  html body.shanshui[data-ss-page='ask'] .home-main, html body.shanshui[data-ss-page='charts'] .home-main { display: none !important; }

  /* ---------- 问事 / 命盘 中枢 ---------- */
  html body.shanshui .ss-hub:not([hidden]) { display: block; box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
  html body.shanshui .ss-page-head { margin: 0 0 24px; }
  html body.shanshui .ss-page-head h1 { font-size: 32px; }
  html body.shanshui .ss-page-lead { font-size: 16px; }
  html body.shanshui .ss-ask .ss-head-icon { display: none; }
  html body.shanshui .ss-hub-cols { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
  html body.shanshui .ss-hub-main { flex: 999 1 560px; gap: 24px; }
  html body.shanshui .ss-hub-aside { flex: 1 1 300px; }
  html body.shanshui .ss-question-field { padding: 0; }
  html body.shanshui .ss-question-field textarea#ssQuestion { min-height: 96px !important; }
  html body.shanshui .ss-recommend { margin: 0; }
  html body.shanshui .ss-recommend h2 { font-size: 22px; }
  html body.shanshui .ss-recommend fieldset { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
  html body.shanshui .ss-recommend label { padding: 16px; }
  html body.shanshui #ssAskForm { gap: 18px; }
  html body.shanshui .ss-ask-submit { flex-direction: row; align-items: center; gap: 16px; }
  html body.shanshui .ss-ask-submit .ss-primary { width: auto; padding: 0 32px; }
  html body.shanshui .ss-ask-submit .ss-quota { text-align: left; font-size: 14px; color: #4a5652; }
  html body.shanshui .ss-other { margin: 0; }
  html body.shanshui .ss-ask .ss-hub-aside { padding-left: 24px; border-left: 1px solid #e6e1d5; }
  html body.shanshui .ss-ask .ss-recent { padding: 0; border: 0; border-radius: 0; background: transparent; }
  html body.shanshui .ss-card { padding: 24px; }
  html body.shanshui .ss-charts .ss-page-head { flex-wrap: wrap; }
  html body.shanshui .ss-chart-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
  html body.shanshui .ss-chart-tabs { flex: 0 1 372px; }
  html body.shanshui .ss-chart-basis { flex: 1 1 auto; justify-content: flex-end; font-size: 14px; }
  html body.shanshui .ss-card-head h2 { font-size: 22px; }
  html body.shanshui .ss-glyph { font-size: 44px; }
  html body.shanshui .ss-pillar { padding: 16px 4px; gap: 6px; }
  html body.shanshui .ss-pillar small, html body.shanshui .ss-pillar .ss-shen { font-size: 14px; }
  html body.shanshui .ss-glyph-row { font-size: 28px; }
  html body.shanshui .ss-dayun { padding: 12px 4px; }
  html body.shanshui .ss-dayun small, html body.shanshui .ss-dayun .ss-shen { font-size: 14px; }
  html body.shanshui .ss-annual { font-size: 16px; }
  html body.shanshui .ss-wx-legend { justify-content: flex-start; gap: 24px; font-size: 16px; }
  html body.shanshui .ss-wx-bar { height: 12px; }
  html body.shanshui .ss-open-full { width: auto; align-self: flex-start; padding: 0 28px; }
  html body.shanshui .ss-chart-card { padding: 40px 32px; }

  /* ---------- 工具页通用：容器、抬头、去掉紫色插画 ---------- */
  html body.shanshui :is(main.page-shell, .play-main, .checkin-main, .astro-main, .hehun-main, .ziwei-main, .dream-main, .xiangshu-main, .wx-main) { box-sizing: border-box; width: 100%; max-width: 1200px !important; margin-left: auto; margin-right: auto; padding: 24px 24px 64px !important; }
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero, .play-heading, .orchid-input-intro) { display: block; min-height: 0 !important; margin: 0 0 24px !important; padding: 0 !important; text-align: left !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero)::before,
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero)::after { display: none !important; }
  html body.shanshui :is(.mystic-tool-art, .hero .mystic-tool-art, .hehun-hero-art, .astro-hero-art, .ziwei-hero-art) { display: none !important; }
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero, .play-heading) .eyebrow { display: none !important; }
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero, .play-heading) h1 { margin: 0 !important; max-width: none !important; color: #1a2421 !important; font: 700 32px/1.4 var(--ss-serif) !important; letter-spacing: 1px !important; text-align: left !important; }
  html body.shanshui :is(.hero.mystic-tool-intro, .hehun-hero, .ziwei-entry-head, .astro-hero, .play-heading) :is(.hero-copy, p:not(.eyebrow)) { margin: 8px 0 0 !important; max-width: 720px; color: #4a5652 !important; font-size: 16px !important; line-height: 1.7 !important; text-align: left !important; }
  html body.shanshui .orchid-stepper { display: none !important; }
  html body.shanshui .mystic-tool-intro { display: block !important; min-height: 0 !important; margin: 0 0 24px !important; padding: 0 !important; text-align: left !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html body.shanshui .mystic-tool-intro::before, html body.shanshui .mystic-tool-intro::after, html body.shanshui :is(.astro-main, .astro-hero, .hehun-main)::before, html body.shanshui :is(.astro-main, .astro-hero, .hehun-main)::after { display: none !important; }
  html body.shanshui .mystic-tool-intro :is(.eyebrow, .hehun-orbit), html body.shanshui .astro-hero :is(.astro-eyebrow, .astro-jewel) { display: none !important; }
  html body.shanshui .mystic-tool-intro :is(h1, h2), html body.shanshui .astro-hero h1 { margin: 0 !important; max-width: none !important; color: #1a2421 !important; font: 700 32px/1.4 var(--ss-serif) !important; letter-spacing: 1px !important; text-align: left !important; }
  html body.shanshui .mystic-tool-intro :is(p:not(.eyebrow), .hero-copy), html body.shanshui .astro-hero .astro-lead { margin: 8px 0 0 !important; max-width: 760px !important; color: #4a5652 !important; font-size: 16px !important; line-height: 1.7 !important; text-align: left !important; }
  html body.shanshui .mystic-tool-intro > div, html body.shanshui .hehun-hero-copy { max-width: none !important; width: auto !important; text-align: left !important; }
  html body.shanshui .astro-hero { display: block !important; min-height: 0 !important; margin: 0 0 24px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html body.shanshui :is(.paper-card, .glass, .hehun-panel, .astro-card, .game-panel, .checkin-card) { border-radius: 16px !important; }

  /* ---------- 记录 ---------- */
  html body.shanshui .records-main { box-sizing: border-box; display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto auto 1fr; column-gap: 24px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
  html body.shanshui .records-main > * { grid-column: 2; min-width: 0; }
  html body.shanshui .records-main > :is(.account-settings-back, .records-hero) { display: none !important; }
  html body.shanshui .records-main > .ss-records-head { display: block; grid-column: 1 / -1; grid-row: 1; margin: 0 0 24px; }
  html body.shanshui .ss-records-head h1 { margin: 0; color: #1a2421; font: 700 32px/1.4 var(--ss-serif); }
  html body.shanshui .records-main > .records-controls { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: min(360px, 100%); margin: 0 0 24px; padding: 0 !important; border: 0 !important; background: none !important; }
  html body.shanshui .records-controls .records-search { margin: 0; border-radius: 999px !important; background: #fffdf8 !important; }
  html body.shanshui .records-main > .ss-records-side { grid-column: 1; grid-row: 2 / 8; align-self: start; display: flex; flex-direction: column; gap: 16px; }
  html body.shanshui .ss-records-side #recordTypeFilters { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; }
  html body.shanshui .ss-records-side #recordTypeFilters button { justify-content: flex-start; width: 100%; min-height: 44px; padding: 0 14px; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: #1a2421 !important; font-size: 15px !important; text-align: left; }
  html body.shanshui .ss-records-side #recordTypeFilters button[aria-pressed='true'] { background: #e3eeea !important; color: #174843 !important; font-weight: 700; }
  html body.shanshui .ss-records-side .records-favorite { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; color: #1a2421; font-size: 14px; flex-direction: row-reverse; }
  html body.shanshui .records-main > #recordsStatus { grid-row: 2; }
  html body.shanshui .records-main > #recordsRetry { grid-row: 3; justify-self: start; }
  html body.shanshui .records-main > #recordsCount { grid-row: 4; margin: 0 0 12px; color: #4a5652; }
  html body.shanshui .records-main > #recordsList { grid-row: 5; }
  html body.shanshui .records-main > #recordsEmpty { grid-row: 6; }

  /* ---------- 我的 / 账号：左侧菜单 ---------- */
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side { box-sizing: border-box; display: grid !important; grid-template-columns: 240px minmax(0, 1fr); grid-auto-rows: auto; column-gap: 24px; row-gap: 16px; align-content: start; width: 100%; max-width: 1200px !important; margin: 0 auto; padding: 32px 24px 64px !important; }
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side > * { grid-column: 2; min-width: 0; margin-top: 0 !important; margin-bottom: 0 !important; }
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side > .ss-side { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
  html body.shanshui .ss-side-who { display: flex; align-items: center; gap: 12px; }
  html body.shanshui .ss-side-who > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  html body.shanshui .ss-side-who b { overflow: hidden; color: #1a2421; font: 600 16px/1.4 var(--ss-serif); text-overflow: ellipsis; white-space: nowrap; }
  html body.shanshui .ss-side-who small { color: #4a5652; font-size: 12px; }
  html body.shanshui .ss-side-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; }
  html body.shanshui .ss-side-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #1a2421; font-size: 15px; text-decoration: none; }
  html body.shanshui .ss-side-menu a:hover { background: #f4f1ea; }
  html body.shanshui .ss-side-menu a[aria-current] { background: #e3eeea; color: #174843; font-weight: 700; }
  html body.shanshui .mine-main.ss-with-side > :is(.orchid-page-heading) { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 !important; }
  html body.shanshui .mine-main.ss-with-side .orchid-page-heading :is(p, span) { display: none; }
  html body.shanshui .mine-main.ss-with-side .orchid-page-heading h1, html body.shanshui .account-settings-main.ss-with-side .account-settings-heading h1 { margin: 0; color: #1a2421 !important; font: 700 32px/1.4 var(--ss-serif) !important; }
  html body.shanshui .account-settings-main.ss-with-side > .account-settings-back { display: none !important; }
  html body.shanshui .account-settings-main.ss-with-side .account-settings-heading :is(p, span) { display: none; }
  html body.shanshui .account-settings-main.ss-with-side .account-settings-heading { padding: 0 !important; }
  html body.shanshui .mine-main.ss-with-side .orchid-heading-link { display: none !important; }
  /* 灵感游乐场：左侧玩法列表 + 右侧玩法 */
  html body.shanshui .play-main { display: grid !important; grid-template-columns: 260px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  html body.shanshui .play-main > * { grid-column: 2; min-width: 0; }
  html body.shanshui .play-main > :is(.ss-crumb, .play-heading) { grid-column: 1 / -1; }
  html body.shanshui .play-main > .game-tabs { grid-column: 1; grid-row: span 6; display: flex !important; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; position: sticky; top: 96px; }
  html body.shanshui .play-main > .game-tabs button { display: grid !important; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 56px !important; padding: 8px 12px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; text-align: left; box-shadow: none !important; }
  html body.shanshui .play-main > .game-tabs button > span { grid-row: 1 / 3; width: 32px !important; height: 32px !important; }
  html body.shanshui .play-main > .game-tabs button b { color: #1a2421 !important; font-size: 15px !important; }
  html body.shanshui .play-main > .game-tabs button small { color: #4a5652 !important; }
  html body.shanshui .play-main > .game-tabs button[aria-selected='true'] { background: #e3eeea !important; }
  html body.shanshui .play-main > .game-tabs button[aria-selected='true'] :is(b, small, span) { color: #174843 !important; }
  html body.shanshui .mine-main.ss-with-side .mine-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
}

/* 中间宽度：侧栏放不下时，侧栏落到主内容下方 */
@media (min-width: 621px) and (max-width: 900px) {
  html body.shanshui.home-refresh .home-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  html body.shanshui.home-refresh .home-main > * { grid-column: 1 !important; grid-row: auto !important; }
  html body.shanshui.home-refresh .home-main > .home-hero { order: 1; }
  html body.shanshui.home-refresh .home-main > :is(.ss-today, .ss-newcomer) { order: 2; }
  html body.shanshui.home-refresh .home-main > .ss-ownday { order: 3; }
  html body.shanshui.home-refresh .home-main > .ss-home-aside { order: 4; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  html body.shanshui.home-refresh .home-main > .ss-home-inspiration { order: 5; }
  html body.shanshui.home-refresh .home-main > .home-daily-details { order: 6; }
  html body.shanshui.home-refresh .home-main > .home-footer { order: 7; }
  html body.shanshui .records-main { grid-template-columns: minmax(0, 1fr); }
  html body.shanshui .records-main > * { grid-column: 1 !important; grid-row: auto !important; order: 3; }
  html body.shanshui .records-main > .ss-records-head { order: 0; }
  html body.shanshui .records-main > .records-controls { order: 1; }
  html body.shanshui .records-main > .ss-records-side { order: 2; margin-bottom: 16px; }
  html body.shanshui .records-main > .records-controls { justify-self: stretch; width: auto; }
  html body.shanshui .ss-records-side #recordTypeFilters { flex-direction: row; flex-wrap: wrap; }
  html body.shanshui .ss-records-side #recordTypeFilters button { width: auto; }
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side { grid-template-columns: minmax(0, 1fr); }
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side > * { grid-column: 1 !important; }
  html body.shanshui :is(.mine-main, .account-settings-main).ss-with-side > .ss-side { grid-row: auto; position: static; }
  html body.shanshui .ss-side-menu { flex-direction: row; flex-wrap: wrap; }
  html body.shanshui .ss-topnav a { padding: 0 8px; }
  html body.shanshui .site-header .site-nav-bar { gap: 0 16px; }
  html body.shanshui .ss-profile-chip { display: none !important; }
}

/* 登录 / 注册 / 重设：左侧深色品牌栏，右侧表单 */
.ss-auth-aside { display: none; }
@media (min-width: 621px) {
  html[data-account-page='standalone'] body.shanshui #accountDialog .account-dialog-surface { min-height: 100vh; min-height: 100dvh; grid-template-rows: minmax(100dvh, auto); display: grid !important; grid-template-columns: minmax(320px, 1fr) minmax(420px, 1fr); align-items: stretch; padding: 0 !important; background: #fffdf8 !important; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-aside { display: flex; flex-direction: column; justify-content: center; gap: 20px; position: relative; padding: 48px 56px; background: #173b37; color: #f1ede3; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-brand { position: absolute; top: 32px; left: 32px; display: flex; align-items: center; gap: 10px; margin: 0; font: 700 22px/1 var(--ss-serif); letter-spacing: 2px; }
  html[data-account-page='standalone'] body.shanshui .ss-seal { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: #b8432f; color: #fffdf8; font: 900 15px/1 var(--ss-serif); letter-spacing: 0; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-aside h2 { margin: 0; color: #f1ede3; font: 700 40px/1.45 var(--ss-serif); letter-spacing: 3px; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-aside ul { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; color: #d6e3dc; font-size: 16px; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-aside li { display: flex; align-items: center; gap: 12px; }
  html[data-account-page='standalone'] body.shanshui .ss-auth-aside li::before { content: ''; width: 10px; height: 10px; background: #d8b66a; transform: rotate(45deg); }
  html[data-account-page='standalone'] body.shanshui .ss-auth-browse { position: absolute; left: 32px; bottom: 32px; color: #d8b66a; font-size: 14px; font-weight: 600; text-decoration: none; }
  html[data-account-page='standalone'] body.shanshui #accountDialog .account-dialog-surface > .mystic-login-content { align-self: center; justify-self: center; width: min(420px, calc(100% - 64px)); margin: 48px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  html[data-account-page='standalone'] body.shanshui .account-dialog-surface > .login-page-footer { position: absolute; right: 32px; bottom: 20px; }
  html[data-account-page='standalone'] body.shanshui #accountDialog .app-dialog-mask { background: #fffdf8 !important; }
  html[data-account-page='standalone'] body.shanshui #accountDialog .login-atmosphere { display: none !important; }
  html[data-account-page='standalone'] body.shanshui #accountDialog .mystic-login-wordmark { mix-blend-mode: multiply; }
  html[data-account-page='standalone'] body.shanshui .account-page-close { z-index: 2; }
}

@media (min-width: 621px) and (max-width: 960px) {
  html body.shanshui .ss-ask .ss-hub-aside { padding: 20px 0 0; border-left: 0; border-top: 1px solid #e6e1d5; }
}

/* Keep the loading shell aligned with the simplified sidebar. */
@media (min-width: 621px) {
  html body.shanshui .ss-first-aside > .ss-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
  html body.shanshui .ss-ask .ss-hub-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (min-width: 621px) and (max-width: 960px) {
  html body.shanshui .ss-ask .ss-hub-cols { grid-template-columns: minmax(0, 1fr); }
}
