:root {
  --bg: #fdfbf7;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --text: #2c2c2e;
  --muted: #8a8a8e;
  --accent: #ff8c94;
  --accent-2: #a78bfa;
  --bar-gradient: linear-gradient(90deg, #ffd6dc 0%, #f5ddff 52%, #fff1c7 100%);
  --line: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --sidebar: 296px;
  font-family: "Nunito", "PingFang SC", "MiSans", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 140, 148, 0.2), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(167, 139, 250, 0.2), transparent 28rem),
    linear-gradient(180deg, #fff5f2 0%, #fdfbf7 38%, #f3efff 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(calc(100% - 24px), 1180px);
  height: 60px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 20px;
}

.brand-mark {
  min-width: max-content;
  padding: 0 12px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.brand-mark:hover {
  color: var(--accent);
}

.brand-mark:active,
.topbar button:active,
.module-circle:active,
.tab-btn:active,
.sidebar-link:active {
  transform: scale(0.97);
}

.quick-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav button {
  min-width: max-content;
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.4s var(--ease);
}

.quick-nav button:hover,
.quick-nav button.active {
  background: rgba(255, 140, 148, 0.14);
  color: var(--text);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.4s var(--ease);
}

.icon-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.view {
  width: min(calc(100% - 24px), 1180px);
  margin: 28px auto 70px;
  animation: pageIn 0.45s var(--ease) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero {
  min-height: calc(100vh - 100px);
  display: grid;
  align-content: start;
  gap: clamp(22px, 5vw, 38px);
  padding-top: clamp(10px, 3vw, 24px);
}

.home-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 16px 42px rgba(44, 44, 46, 0.08);
}

.home-banner img {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  height: auto;
  object-fit: contain;
}

.top-banner img {
  object-position: center;
}

.bottom-banner img {
  object-position: center;
}

.profile {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.owner-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 34px);
  flex-wrap: wrap;
}

.owner-profile {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.owner-card {
  width: min(100%, 520px);
  border-radius: 20px;
  padding: 0 0 clamp(18px, 4vw, 26px);
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 16px;
  background: rgba(255, 218, 168, 0.42) !important;
  border-color: rgba(255, 190, 120, 0.35);
}

.profile-avatar {
  width: clamp(118px, 30vw, 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 52px rgba(255, 140, 148, 0.22);
  transition: all 0.4s var(--ease);
  text-decoration: none;
}

.profile-avatar:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 68px rgba(167, 139, 250, 0.28);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.78);
}

.profile h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.05em;
}

.profile p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 600;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: clamp(14px, 3vw, 24px);
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.price-table-box {
  border-radius: 20px;
  padding: 0 clamp(14px, 4vw, 28px) clamp(18px, 4vw, 28px);
  overflow: hidden;
  background: rgba(255, 218, 168, 0.42) !important;
  border-color: rgba(255, 190, 120, 0.35);
}

.section-bar {
  width: calc(100% + clamp(28px, 8vw, 56px));
  margin: 0 calc(clamp(14px, 4vw, 28px) * -1) clamp(18px, 4vw, 26px);
  padding: 13px 18px;
  background: var(--bar-gradient);
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.home-hero .section-bar {
  background: linear-gradient(90deg, #FFBA84 0%, #FFD4A8 50%, #FFBA84 100%);
  border-bottom: 1px solid rgba(255, 186, 132, 0.45);
}

.owner-card .section-bar,
.message-board .section-bar,
.order-notice .section-bar {
  width: 100%;
  margin: 0 0 clamp(18px, 4vw, 26px);
}

.section-bar h2 {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.module-grid::-webkit-scrollbar {
  display: none;
}

.module-circle {
  position: relative;
  isolation: isolate;
  min-width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease);
}

.module-circle.simple-circle {
  padding: 18px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
  text-align: center;
}

.module-circle:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.module-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-circle .circle-label {
  position: absolute;
  inset: auto 14px 16px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.6);
  color: #ffffff;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  animation: ripple 0.62s var(--ease) forwards;
  transform: translate(-50%, -50%) scale(0);
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}

.message-board {
  width: min(100%, 860px);
  margin: 10px auto 0;
  border-radius: 20px;
  padding: 0 clamp(18px, 4vw, 26px) clamp(18px, 4vw, 26px);
  overflow: hidden;
}

.message-board h2,
.section-title h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 18px rgba(255, 140, 148, 0.16);
}

.message-board p,
.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 600;
}

.message-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.message-form textarea {
  resize: vertical;
  min-height: 104px;
  border: 1px solid rgba(44, 44, 46, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.4s var(--ease);
}

.message-form textarea:focus {
  border-color: rgba(255, 140, 148, 0.5);
  box-shadow: 0 0 0 5px rgba(255, 140, 148, 0.13);
}

.primary-btn {
  justify-self: end;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 140, 148, 0.24);
  transition: all 0.4s var(--ease);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.message-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  padding: 2px 2px 10px;
  scroll-snap-type: y proximity;
}

.message-list h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.message-item {
  min-height: auto;
  border-radius: 16px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 245, 247, 0.52)),
    rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all 0.4s var(--ease);
  scroll-snap-align: start;
}

.message-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.message-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.message-pagination button {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-weight: 800;
  transition: all 0.3s var(--ease);
}

.message-pagination button:hover:not(:disabled) {
  background: var(--accent);
  color: #ffffff;
}

.message-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.message-pagination .page-info {
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.message-meta strong {
  color: var(--text);
  font-size: 14px;
}

.message-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message-item p {
  color: var(--text);
  line-height: 1.7;
  font-weight: 700;
}

.order-notice {
  width: min(100%, 860px);
  margin: 0 auto;
  border-radius: 20px;
  padding: 0 clamp(18px, 4vw, 28px) clamp(18px, 4vw, 28px);
  overflow: hidden;
}

.order-notice p {
  margin: 12px 0 0;
  line-height: 1.8;
  font-weight: 700;
  color: var(--text);
}

.layout-a {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.desktop-sidebar {
  position: fixed;
  left: max(12px, calc((100vw - 1180px) / 2));
  top: 96px;
  z-index: 20;
  width: var(--sidebar);
  max-height: calc(100vh - 116px);
  border-radius: 20px;
  padding: 16px;
  overflow: auto;
  display: none;
}

body.has-sidebar .desktop-sidebar {
  display: block;
}

body.has-sidebar .view {
  max-width: 1180px;
}

.sidebar-spacer {
  width: var(--sidebar);
}

.search-box {
  width: 100%;
  border: 1px solid rgba(44, 44, 46, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: all 0.4s var(--ease);
}

.search-box:focus {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 5px rgba(167, 139, 250, 0.12);
}

.sidebar-group {
  margin-top: 14px;
}

.group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease);
}

.group-toggle:hover {
  background: rgba(255, 140, 148, 0.1);
}

.sidebar-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.sidebar-group.collapsed .sidebar-list {
  display: none;
}

.sidebar-link {
  width: 100%;
  position: relative;
  text-align: left;
  padding: 10px 10px 10px 16px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.4s var(--ease);
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-link.active::before {
  background: var(--accent);
}

.section-title {
  margin-bottom: 18px;
  text-align: center;
}

.poster-stack {
  display: grid;
  gap: 22px;
}

.poster-card {
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.4s var(--ease);
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.poster-shell {
  position: relative;
  min-height: 340px;
  background: rgba(255, 255, 255, 0.44);
}

.poster-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.68) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

.poster-shell.loaded::before {
  display: none;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.poster-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.poster-shell.loaded .poster-img {
  opacity: 1;
}

.poster-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--muted);
  font-weight: 700;
}

.poster-caption strong {
  color: var(--text);
}

.poster-note {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.75;
  white-space: normal;
}

.light-layout {
  display: grid;
  gap: 18px;
}

.tabs {
  position: sticky;
  top: 84px;
  z-index: 18;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-radius: 20px;
  padding: 8px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  min-width: max-content;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: all 0.4s var(--ease);
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 140, 148, 0.14);
}

.light-grid {
  columns: 1;
  column-gap: 18px;
}

.light-grid .poster-card {
  break-inside: avoid;
  margin-bottom: 18px;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(44, 44, 46, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.drawer-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 330px);
  padding: 18px;
  overflow: auto;
  transform: translateX(-110%);
  transition: transform 0.4s var(--ease);
  border-radius: 0 20px 20px 0;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(44, 44, 46, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.entry-modal {
  position: relative;
  width: min(100%, 640px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: 20px;
  padding: clamp(22px, 5vw, 34px);
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s var(--ease);
}

.modal-backdrop.open .entry-modal {
  transform: translateY(0) scale(1);
}

.entry-modal h2 {
  margin: 0 42px 16px 0;
  font-size: clamp(22px, 5vw, 34px);
  letter-spacing: 0.05em;
}

.modal-copy {
  display: grid;
  gap: 10px;
}

.modal-copy p {
  margin: 0;
  line-height: 1.75;
  color: var(--text);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  transition: all 0.4s var(--ease);
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(8deg);
}

.modal-confirm {
  margin-top: 20px;
  justify-self: start;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(44, 44, 46, 0.86);
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-hover);
  transition: all 0.4s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  padding: 20px;
  border-radius: 16px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .light-grid {
    columns: 2;
  }
}

@media (min-width: 980px) {
  body.has-sidebar .view {
    width: min(calc(100% - 24px), 1180px);
  }

  .layout-a .content-column {
    grid-column: 2;
  }
}

@media (max-width: 979px) {
  .icon-btn {
    display: flex;
  }

  body:not(.has-sidebar) .menu-toggle {
    visibility: hidden;
  }

  .desktop-sidebar {
    display: none !important;
  }

  .layout-a {
    display: block;
  }

  .sidebar-spacer {
    display: none;
  }

  .quick-nav {
    max-width: 52vw;
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .view {
    width: calc(100% - 16px);
    margin-top: 18px;
  }

  .brand-mark {
    padding: 0 4px;
  }

  .module-grid {
    grid-template-columns: repeat(5, 132px);
  }

  .home-banner img {
    max-height: none;
  }

  .owner-links {
    gap: 14px;
  }

  .profile-avatar {
    width: min(38vw, 136px);
  }

  .poster-shell {
    min-height: 240px;
  }

  .poster-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}
