/* 宣纸、淡墨山峦与朱砂印记。纹理和山形全部由 CSS / inline SVG 绘制。 */
.member-app.shanshui-shell {
  --ss-rail-width: 204px;
  --ss-paper: #efe9dc;
  --ss-toolbar: #f6f1e7;
  --ss-rail: #e8e1d2;
  --ss-rail-text: #244b44;
  --ss-rail-muted: #617268;
  --ss-rail-line: #244b4424;
  --ss-rail-hover: #244b4409;
  --ss-rail-active: #244b440d;
  --ss-focus: #a75f4b;
  --ss-seal: #a75f4b;
  --ss-paper-fiber: #244b4405;
  --ss-paper-wash: #a75f4b08;
  min-width: 0;
  min-height: 100svh;
  padding: 0;
  background-color: var(--ss-paper);
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
}
html[data-theme="dark"] .member-app.shanshui-shell {
  --ss-paper: #1c2521;
  --ss-toolbar: #25302a;
  --ss-rail: #2b352e;
  --ss-rail-text: #e9e4d8;
  --ss-rail-muted: #b8b9a9;
  --ss-rail-line: #e9e4d826;
  --ss-rail-hover: #e9e4d80c;
  --ss-rail-active: #e9e4d811;
  --ss-focus: #d19a83;
  --ss-seal: #d19a83;
  --ss-paper-fiber: #e9e4d805;
  --ss-paper-wash: #d19a8308;
}
.shanshui-shell .m-main {
  min-width: 0;
  min-height: 100svh;
  margin-left: var(--ss-rail-width);
}
.shanshui-shell .m-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  width: var(--ss-rail-width);
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--ss-rail-line);
  border-radius: 0;
  color: var(--ss-rail-text);
  background-color: var(--ss-rail);
  background-image: repeating-linear-gradient(85deg, var(--ss-paper-fiber) 0 1px, transparent 1px 5px), repeating-linear-gradient(7deg, var(--ss-paper-fiber) 0 1px, transparent 1px 7px), radial-gradient(ellipse at 0 12%, var(--ss-paper-wash), transparent 70%);
  box-shadow: none;
  overflow: hidden;
  transform: none;
  visibility: visible;
}
.shanshui-shell .m-rail-landscape { position: absolute; right: 0; bottom: 83px; width: 100%; height: auto; color: var(--ss-rail-text); pointer-events: none; }
.shanshui-shell .m-sidebar > :not(.m-rail-landscape) { position: relative; z-index: 1; }
.shanshui-shell .m-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 104px;
  padding: 24px 20px;
  border: 0;
  margin-bottom: 16px;
  box-shadow: inset 0 -1px var(--ss-rail-line);
}
.shanshui-shell .m-sidebar .m-brand { gap: 10px; color: var(--ss-rail-text); }
.shanshui-shell .m-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--m-text);
}
.shanshui-shell .m-brand-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--ss-rail-line);
  border-radius: 3px;
  background: var(--ss-toolbar);
  overflow: hidden;
}
.shanshui-shell .m-brand-symbol img { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.shanshui-shell .m-brand > .m-brand-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 650;
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
  line-height: 1.2;
  letter-spacing: .06em;
}
.shanshui-shell .m-brand small {
  display: block;
  margin-top: 5px;
  color: var(--m-muted);
  font-size: 7px;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Times New Roman", serif;
  letter-spacing: .13em;
}
.shanshui-shell .m-sidebar .m-brand small { color: var(--ss-rail-muted); }
.shanshui-shell .m-navigation-title,
.shanshui-shell #member-nav-close,
.shanshui-shell .m-mobile-nav-toggle,
.shanshui-shell .m-bottom-nav { display: none; }
.shanshui-shell .m-sidebar .m-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 12px 24px;
  gap: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ss-rail-line) transparent;
}
.shanshui-shell .m-sidebar .m-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ss-rail-text) !important;
  background: transparent;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  white-space: normal;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.shanshui-shell .m-sidebar .m-nav-link::before {
  position: absolute;
  inset: 13px auto 13px -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--ss-seal);
  content: "";
  opacity: 0;
}
.shanshui-shell .m-sidebar .m-nav-link .m-icon { width: 19px; height: 19px; opacity: .86; }
.shanshui-shell .m-nav-name { min-width: 0; overflow-wrap: anywhere; }
.shanshui-shell .m-nav-index { color: var(--ss-rail-muted); opacity: .65; font-size: 9px; font-variant-numeric: tabular-nums; }
.shanshui-shell .m-sidebar .m-nav-link:hover { background: var(--ss-rail-hover); border-color: transparent; transform: translateX(2px); }
.shanshui-shell .m-sidebar .m-nav-link.is-active { background: var(--ss-rail-active); border-color: var(--ss-rail-line); font-weight: 600; }
.shanshui-shell .m-sidebar .m-nav-link.is-active::before { opacity: 1; }
.shanshui-shell .m-sidebar .m-nav-link[href="#/shop"],
.shanshui-shell .m-sidebar .m-nav-link[href="#/shop"]:hover { color: #315a95 !important; }
.shanshui-shell .m-sidebar .m-nav-link[href="#/invite"],
.shanshui-shell .m-sidebar .m-nav-link[href="#/invite"]:hover { color: #684785 !important; }
html[data-theme="dark"] .shanshui-shell .m-sidebar .m-nav-link[href="#/shop"],
html[data-theme="dark"] .shanshui-shell .m-sidebar .m-nav-link[href="#/shop"]:hover { color: #b5ccf3 !important; }
html[data-theme="dark"] .shanshui-shell .m-sidebar .m-nav-link[href="#/invite"],
html[data-theme="dark"] .shanshui-shell .m-sidebar .m-nav-link[href="#/invite"]:hover { color: #d6bbec !important; }
.shanshui-shell .m-sidebar :is(a, button):focus-visible { outline: 2px solid var(--ss-focus); outline-offset: 3px; }
.shanshui-shell .m-sidebar .m-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 84px;
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--ss-rail-line);
}
.shanshui-shell .m-sidebar .m-user-card .m-avatar { width: 32px; height: 32px; border-radius: 3px; color: var(--ss-rail-text); background: var(--ss-rail-hover); border-color: var(--ss-rail-line); }
.shanshui-shell .m-sidebar .m-user-card .m-icon { width: 15px; height: 15px; }
.shanshui-shell .m-sidebar .m-user-card > div { flex: 1; min-width: 0; }
.shanshui-shell .m-sidebar .m-user-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ss-rail-text); font-size: 11px; font-weight: 550; font-family: system-ui, sans-serif; }
.shanshui-shell .m-sidebar .m-user-card > div > span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ss-rail-muted); font-size: 9px; font-family: system-ui, sans-serif; }
.shanshui-shell .m-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--ss-toolbar);
  background-image: repeating-linear-gradient(7deg, var(--ss-paper-fiber) 0 1px, transparent 1px 7px);
  border-bottom: 1px solid var(--m-border);
}
.shanshui-shell.m-mobile-open .m-app-header { z-index: 20; }
.shanshui-shell .m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  height: 74px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.2vw, 48px);
}
.shanshui-shell .m-topbar-title { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.shanshui-shell .m-topbar .m-brand-symbol { width: 29px; height: 29px; border: 0; border-radius: 3px; background: transparent; }
.shanshui-shell .m-topbar .m-brand-symbol img { width: 29px; height: 29px; }
.shanshui-shell .m-topbar .m-brand > .m-brand-name { font-size: 16px; letter-spacing: .04em; }
.shanshui-shell .m-topbar .m-brand small { font-size: 6px; letter-spacing: .1em; }
.shanshui-shell .m-local-mark { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--m-border); border-radius: 4px; background: transparent; color: var(--m-muted); font-size: 9px; line-height: 1.3; }
.shanshui-shell .m-local-mark::before { width: 4px; height: 4px; border-radius: 1px; background: var(--ss-seal); content: ""; }
.shanshui-shell .m-topbar-tools { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; }
.shanshui-shell .m-topbar .m-icon-button { width: 44px; min-width: 44px; height: 44px; padding: 11px; border-radius: 7px; }
.shanshui-shell .m-topbar .m-icon-button .m-icon { width: 19px; height: 19px; }
.shanshui-shell .m-account-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: 9px; margin-left: 10px; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--m-border); border-radius: 0; background: transparent; color: var(--m-text); }
.shanshui-shell .m-account-button > .m-account-label { display: block; max-width: 118px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.shanshui-shell .m-account-button .m-avatar { width: 30px; height: 30px; border-radius: 8px; color: var(--m-primary); background: var(--m-active); border: 1px solid var(--m-border); }
.shanshui-shell .m-account-button .m-avatar .m-icon { width: 16px; height: 16px; }
.shanshui-shell .m-dropdown { top: 50px; z-index: 40; min-width: 164px; max-width: min(260px, calc(100vw - 24px)); padding: 5px; border-radius: 9px; background: var(--m-panel); border-color: var(--m-border); box-shadow: 0 12px 28px #17352f14; }
.shanshui-shell .m-dropdown :is(a, button) { min-height: 44px; border-radius: 5px; font-size: 12px; }
.shanshui-shell .m-content {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px clamp(24px, 3.2vw, 48px) 48px;
}
.shanshui-shell .m-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; width: calc(100% - clamp(48px, 6.4vw, 96px)); max-width: 1344px; margin: 0 auto; padding: 18px 0; border-top: 1px solid var(--m-border); color: var(--m-faint); font-size: 9px; }
.shanshui-shell .m-mobile-scrim { display: none; }

@media (max-width: 1023px) {
  .member-app.shanshui-shell { --ss-rail-width: 0px; }
  .shanshui-shell .m-main { margin-left: 0; }
  .shanshui-shell .m-sidebar {
    z-index: 52;
    width: min(284px, calc(100vw - 56px));
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 240ms ease, visibility 240ms ease;
  }
  .shanshui-shell.m-mobile-open .m-sidebar { transform: translateX(0); visibility: visible; }
  .shanshui-shell .m-drawer-heading { min-height: 92px; padding: 22px 18px; gap: 8px; }
  .shanshui-shell .m-sidebar .m-brand { flex: 1; }
  .shanshui-shell #member-nav-close { display: inline-flex; width: 44px; min-width: 44px; height: 44px; padding: 12px; color: var(--ss-rail-text); background: transparent; }
  .shanshui-shell #member-nav-close:hover { color: var(--ss-rail-text); background: var(--ss-rail-hover); }
  .shanshui-shell .m-topbar { height: 74px; gap: 16px; padding: 0 24px; }
  .shanshui-shell .m-topbar-title { gap: 12px; }
  .shanshui-shell .m-topbar .m-mobile-nav-toggle { display: inline-flex; }
  .shanshui-shell .m-topbar .m-brand > .m-brand-name { font-size: 18px; }
  .shanshui-shell .m-topbar .m-brand small { font-size: 6.5px; letter-spacing: .13em; }
  .shanshui-shell .m-content { padding: 28px 24px 40px; }
  .shanshui-shell .m-footer { width: calc(100% - 48px); }
  .shanshui-shell .m-mobile-scrim { position: fixed; inset: 0; z-index: 50; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #0b201b73; backdrop-filter: blur(3px); }
  .shanshui-shell .m-mobile-scrim:active { transform: none; }
}

@media (max-width: 767px) {
  .member-app.shanshui-shell { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .shanshui-shell .m-main { min-height: calc(100svh - 66px - env(safe-area-inset-bottom, 0px)); }
  .shanshui-shell .m-topbar { height: 66px; gap: 6px; padding: 0 12px; }
  .shanshui-shell .m-topbar-title { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .shanshui-shell .m-topbar .m-mobile-nav-toggle { display: none; }
  .shanshui-shell .m-topbar .m-brand { gap: 8px; flex: 0 1 auto; min-width: 0; }
  .shanshui-shell .m-topbar .m-brand-symbol { width: 30px; height: 30px; }
  .shanshui-shell .m-topbar .m-brand-symbol img { width: 30px; height: 30px; }
  .shanshui-shell .m-topbar .m-brand > .m-brand-name { font-size: 18px; letter-spacing: .05em; }
  .shanshui-shell .m-topbar .m-brand small { display: block; margin-top: 4px; font-size: 6.5px; letter-spacing: .11em; }
  .shanshui-shell .m-topbar-tools { gap: 0; }
  .shanshui-shell .m-topbar .m-local-mark { display: inline-flex; gap: 4px; padding: 3px 5px; font-size: 8px; }
  .shanshui-shell .m-topbar .m-account-button { width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 7px; border: 0; border-radius: 7px; }
  .shanshui-shell .m-account-button > .m-account-label { display: none; }
  .shanshui-shell .m-dropdown { max-width: calc(100vw - 24px); }
  .shanshui-shell .m-content { padding: 18px 14px 28px; }
  .shanshui-shell .m-content:has(.m-plan-center) { padding-top: 14px; }
  .shanshui-shell .m-footer { width: calc(100% - 28px); padding: 16px 0; font-size: 8px; }
  .shanshui-shell .m-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--m-border);
    background-color: var(--ss-toolbar);
    background-image: repeating-linear-gradient(7deg, var(--ss-paper-fiber) 0 1px, transparent 1px 7px);
    box-shadow: 0 -4px 20px #17352f05;
  }
  .shanshui-shell .m-bottom-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 5px 2px;
    border: 0;
    border-radius: 6px;
    color: var(--m-muted);
    background: transparent;
    font-size: 10px;
    font-weight: 450;
    line-height: 1.3;
    text-align: center;
    transition: background 160ms ease, transform 160ms ease;
  }
  .shanshui-shell .m-bottom-link .m-icon { width: 20px; height: 20px; }
  .shanshui-shell .m-bottom-link span { white-space: nowrap; }
  .shanshui-shell .m-bottom-link::before { position: absolute; inset: 0 auto auto; width: 16px; height: 2px; border-radius: 2px; background: currentColor; content: ""; opacity: 0; }
  .shanshui-shell .m-bottom-link:hover { background: var(--m-hover); }
  .shanshui-shell .m-bottom-link:active { transform: scale(.97); }
  .shanshui-shell .m-bottom-link.is-active { color: var(--m-primary); background: transparent; font-weight: 600; }
  .shanshui-shell .m-bottom-link.is-active::before { opacity: 1; }
  .shanshui-shell .m-bottom-link[href="#/shop"] { color: #315a95; }
  .shanshui-shell .m-bottom-link[href="#/invite"], .shanshui-shell .m-bottom-link[href="#/invite"].is-active { color: #684785; background: transparent; }
  html[data-theme="dark"] .shanshui-shell .m-bottom-link[href="#/shop"] { color: #b5ccf3; }
  html[data-theme="dark"] .shanshui-shell .m-bottom-link[href="#/invite"], html[data-theme="dark"] .shanshui-shell .m-bottom-link[href="#/invite"].is-active { color: #d6bbec; background: transparent; }
  .shanshui-shell .m-sidebar {
    inset: auto 0 0;
    z-index: 52;
    width: 100%;
    height: auto;
    max-height: min(540px, calc(100dvh - 28px));
    padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--ss-rail-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 48px #0d211b33;
    transform: translateY(100%);
  }
  .shanshui-shell.m-mobile-open .m-sidebar { transform: translateY(0); }
  .shanshui-shell .m-sidebar::before { align-self: center; flex: 0 0 auto; width: 34px; height: 3px; margin-bottom: 4px; border-radius: 3px; background: var(--ss-rail-line); content: ""; }
  .shanshui-shell .m-sidebar .m-drawer-heading { min-height: 52px; padding: 0 14px 6px 20px; margin-bottom: 0; box-shadow: none; }
  .shanshui-shell .m-sidebar .m-drawer-heading .m-brand,
  .shanshui-shell .m-sidebar .m-user-card { display: none; }
  .shanshui-shell .m-sidebar .m-rail-landscape { bottom: 0; width: min(204px, 54vw); opacity: .65; }
  .shanshui-shell .m-navigation-title { display: block; color: var(--ss-rail-text); font-size: 16px; font-weight: 550; letter-spacing: .03em; }
  .shanshui-shell .m-sidebar .m-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 7px; flex: 1 1 auto; padding: 4px 14px 4px; overflow: auto; }
  .shanshui-shell .m-sidebar .m-nav-link { grid-template-columns: 19px minmax(0, 1fr); gap: 10px; min-width: 0; min-height: 56px; padding: 11px 12px; border: 1px solid var(--ss-rail-line); border-radius: 3px; color: var(--ss-rail-text) !important; background: transparent; font-size: 12px; }
  .shanshui-shell .m-sidebar .m-nav-link.is-active { border-color: var(--ss-rail-line); background: var(--ss-rail-active); }
  .shanshui-shell .m-sidebar .m-nav-link .m-nav-index { display: none; }
  .shanshui-shell .m-sidebar .m-nav-link:hover { transform: none; background: var(--ss-rail-hover); }
}

@media (max-width: 380px) {
  .shanshui-shell .m-topbar .m-local-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shanshui-shell .m-sidebar,
  .shanshui-shell .m-sidebar .m-nav-link,
  .shanshui-shell .m-bottom-link { transition: none; }
}
