:root {
  --page: #e8f4ff;
  --panel: #ffffff;
  --panel-soft: #f5f8fc;
  --line: #d8e1ec;
  --text: #172033;
  --muted: #6b7c90;
  --blue: #2f80d1;
  --blue-soft: #eaf4ff;
  --pink: #ff1f5f;
  --green: #0e9f6e;
  --amber: #b7791f;
  --shadow: 0 8px 24px rgba(70, 111, 148, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(215, 239, 255, 0.96), rgba(235, 244, 255, 0.96)),
    #eaf3fc;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #1f2937;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8abce8;
  box-shadow: 0 0 0 2px rgba(47, 128, 209, 0.12);
}

textarea {
  min-height: 96px;
  padding-top: 8px;
  resize: vertical;
}

.site-header {
  min-height: 68px;
}

.topbar,
.front-page {
  width: 1200px;
  margin: 0 auto;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #061427;
  font-size: 16px;
  font-weight: 800;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.8)),
    repeating-linear-gradient(-18deg, transparent 0 8px, rgba(96, 144, 190, 0.12) 8px 10px);
  color: #2f5e87;
  font-family: Consolas, monospace;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(69, 113, 150, 0.13);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px rgba(69, 113, 150, 0.13);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  color: #425166;
}

.topnav a {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.68);
  color: #0f4f84;
}

.front-page {
  padding-bottom: 20px;
}

.hall-search {
  height: 54px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.no-top-nav.no-global-notice .hall-search {
  position: relative;
  z-index: 5;
  margin-top: -61px;
  padding-left: 300px;
}

.has-top-nav .site-header {
  height: auto;
}

.hall-search-form {
  width: 800px;
  display: grid;
  grid-template-columns: 130px 130px 1fr 76px;
  gap: 8px;
  align-items: center;
}

.hall-search-form input,
.hall-search-form select {
  height: 40px;
  border-color: #e4ebf4;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
}

.hall-search-form input[type="hidden"] {
  display: none;
}

.btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #c6d0dc;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

.btn:hover {
  border-color: #97b7d2;
  color: #155f99;
}

.btn.small {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.btn.primary,
.search-btn {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

.btn.danger {
  border-color: #d45b5b;
  color: #b91c1c;
}

.notice-strip {
  height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #54687f;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-viewport {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.notice-track {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.notice-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.notice-copy {
  pointer-events: none;
}

.notice-item b {
  color: inherit;
  font-weight: 800;
}

.notice-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  color: inherit;
}

.notice-mode-static .notice-track {
  width: 100%;
  gap: 28px;
}

.notice-mode-static .notice-item {
  flex: 0 1 auto;
  max-width: 100%;
}

.notice-led-viewport {
  width: 100%;
  height: 34px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.notice-led-track {
  height: 34px;
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 42px;
  color: #f20f4f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  will-change: transform;
}

.notice-loop-delay .notice-led-track {
  left: 100%;
  animation: notice-led-flow var(--notice-duration, 28s) linear infinite;
}

.notice-loop-seamless .notice-led-track {
  left: 0;
  gap: 0;
  animation: notice-led-seamless var(--notice-duration, 28s) linear infinite;
}

.notice-led-run {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  flex: 0 0 auto;
  padding-right: 42px;
  white-space: nowrap;
}

.notice-led-track .notice-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  flex: 0 0 auto;
  height: 34px;
  line-height: 34px;
}

.notice-led-track .notice-item b,
.notice-led-track .notice-item em {
  color: inherit;
}

.notice-led-track .notice-item em {
  overflow: visible;
  text-overflow: clip;
}

.notice-mode-horizontal:hover .notice-led-track,
.notice-mode-vertical:hover .notice-track {
  animation-play-state: paused;
}

.notice-mode-vertical {
  height: 38px;
}

.notice-mode-vertical .notice-track {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  animation: notice-vertical var(--notice-duration, 12s) linear infinite;
}

.notice-mode-vertical .notice-item {
  height: 34px;
  min-height: 34px;
  width: 100%;
  flex: 0 0 34px;
}

.notice-mode-vertical.notice-single .notice-track {
  animation: none;
}

@keyframes notice-led-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 100vw));
  }
}

@keyframes notice-led-seamless {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes notice-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--notice-count, 1) * -34px));
  }
}

.filter-board,
.sort-strip,
.list-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.filter-board {
  padding: 16px 16px 14px;
  margin-bottom: 12px;
}

.filter-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 37px;
}

.filter-label {
  height: 30px;
  display: flex;
  align-items: center;
  color: #66798f;
  white-space: nowrap;
}

.filter-options,
.selected-tags {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: center;
}

.filter-options a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  color: #111827;
  white-space: nowrap;
}

.filter-options a:hover,
.filter-options a.active {
  background: #edf5fd;
  color: #1165a5;
  font-weight: 700;
}

.price-range-inline {
  display: inline-grid;
  grid-template-columns: 76px 10px 76px 52px;
  gap: 6px;
  align-items: center;
  margin-left: 4px;
}

.price-range-inline input {
  width: 76px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  background: #fff;
}

.price-range-inline span {
  color: #8a9aab;
  text-align: center;
}

.price-range-inline .btn {
  min-height: 28px;
  padding: 0 10px;
}

.filter-options a.price-clear {
  color: #8a9aab;
}

.recommend-line {
  min-height: 82px;
  margin-bottom: 5px;
}

.recommend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.recommend-card {
  width: 64px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #1f2937;
  font-size: 12px;
}

.recommend-card img,
.thumb-fallback {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  background:
    linear-gradient(135deg, #e7f1fb, #f7fbff),
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(47, 128, 209, 0.09) 7px 9px);
}

.thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6f9f;
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.recommend-card span:last-child {
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-tags span,
.selected-tags a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: #f1f6fb;
  color: #53677f;
}

.selected-tags a {
  background: transparent;
  color: #8a9aab;
}

.sort-strip {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 22px;
}

.sort-strip a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #111827;
  font-weight: 800;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
}

.sort-strip a:hover {
  border-color: #b9d8f2;
  background: #edf7ff;
  color: #0f5f9d;
}

.sort-strip a:active {
  transform: translateY(1px);
}

.sort-strip a.active,
.sort-strip a.is-pending {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 31, 95, 0.18);
}

.sort-strip a.active:hover,
.sort-strip a.is-pending:hover {
  background: #e7134f;
  color: #fff;
}

.sort-strip span {
  margin-left: auto;
  color: #6b7c90;
}

.sort-mark {
  margin-left: 7px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}

.product-list {
  display: grid;
  gap: 10px;
}

.list-card {
  position: relative;
  min-height: 146px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 138px;
  gap: 14px;
  align-items: center;
  padding: 34px 40px 14px 18px;
}

.list-no {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 168px;
  height: 30px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  border-radius: 8px 0 22px 0;
  background: #f3f7fb;
  color: #2f4055;
  font-size: 12px;
}

.preview {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid #e1e9f2;
  background:
    linear-gradient(135deg, #e8f1fa, #fbfdff),
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(47, 128, 209, 0.08) 7px 9px);
}

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

.preview span {
  padding: 0 4px;
  color: #255f90;
  font-family: Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.list-main {
  min-width: 0;
}

.list-main h2 {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.35;
}

.list-main h2 a {
  color: #061427;
  font-weight: 800;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 7px;
  color: #3f86d8;
  font-size: 12px;
}

.list-main p {
  margin: 8px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #63758a;
}

.list-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.list-side strong {
  color: var(--pink);
  font-size: 18px;
  font-weight: 900;
}

.discount-badge {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.list-side del,
.pricing-option del,
.package-card del {
  color: #94a3b8;
  font-size: 12px;
}

.view-count {
  color: #334155;
  font-size: 12px;
}

.list-empty,
.empty {
  color: var(--muted);
}

.list-empty {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.hall-pagination {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
}

.hall-pagination.ajax-mode {
  justify-content: center;
}

.hall-pagination .page-link,
.hall-pagination .page-ellipsis,
.hall-pagination button {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  background: #fff;
  color: #0f2747;
  font-weight: 800;
}

.hall-pagination .page-link:hover {
  border-color: #90c2ee;
  background: #eef7ff;
}

.hall-pagination .page-link.active {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.hall-pagination .page-ellipsis {
  min-width: 24px;
  border-color: transparent;
  background: transparent;
  color: #8a9aab;
}

.hall-pagination > span {
  color: #64748b;
  font-size: 13px;
}

.page-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  color: #64748b;
  font-size: 13px;
}

.page-jump-form input {
  width: 64px;
  height: 32px;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #0f2747;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tags span,
.status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #d1dde9;
  border-radius: 4px;
  background: #f9fcff;
  font-size: 12px;
}

.status-online {
  color: var(--green);
  border-color: #a7ddcd;
  background: #f1fbf7;
}

.status-offline {
  color: #64748b;
}

.status-maintenance {
  color: var(--amber);
  border-color: #efd69a;
  background: #fffaf0;
}

.status-draft {
  color: #7c3aed;
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.panel-title {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  font-weight: 800;
}

.detail-page {
  display: grid;
  gap: 12px;
}

.detail-notice {
  margin-bottom: 0;
}

.front-global-notice {
  width: 1200px;
  margin: 0 auto 12px;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: 26px;
  padding: 18px 24px;
  overflow: hidden;
}

.maintenance-stamp {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 64px;
  width: min(560px, 58%);
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px 30px;
  border: 6px solid #8a5f00;
  background:
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.11) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
    linear-gradient(135deg, #ffe66a 0%, #ffc328 52%, #f2a900 100%);
  color: #241600;
  box-shadow:
    0 18px 38px rgba(108, 73, 0, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.38);
  transform: translateX(-50%) rotate(11deg);
  transform-origin: center;
  pointer-events: none;
  opacity: 0.96;
}

.maintenance-stamp::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(80, 52, 0, 0.6);
}

.maintenance-stamp strong {
  position: relative;
  z-index: 1;
  color: #fffef4;
  font-size: 72px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(77, 47, 0, 0.45),
    0 10px 18px rgba(82, 53, 0, 0.22);
}

.maintenance-stamp span {
  position: relative;
  z-index: 1;
  max-width: 92%;
  color: #6b3d00;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.detail-gallery {
  min-width: 0;
}

.gallery-main {
  width: 248px;
  height: 248px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef4fb;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-empty {
  width: 248px;
  height: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eef4fb;
  color: #1d5f97;
  font-family: Consolas, monospace;
  font-size: 28px;
  font-weight: 900;
}

.gallery-thumbs,
.screenshot-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.gallery-thumbs button,
.screenshot-thumbs button {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #eef4fb;
  cursor: pointer;
}

.gallery-thumbs button.active,
.screenshot-thumbs button.active {
  border-color: var(--pink);
}

.gallery-thumbs img,
.screenshot-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-summary {
  min-width: 0;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
  color: #3f86d8;
  font-size: 12px;
}

.detail-summary h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.detail-desc {
  margin: 12px 0;
  color: #40526a;
  line-height: 1.7;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.package-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fd;
}

.package-card span {
  color: #111827;
  font-weight: 800;
}

.package-card strong {
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.package-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.package-card small {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef2f7;
  color: #66798f;
}

.pricing-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: #fbfdff;
}

.pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-head strong {
  color: #111827;
  font-size: 15px;
}

.pricing-head span {
  color: #7b8797;
  font-size: 12px;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(108px, 1fr));
  gap: 10px;
}

.pricing-option {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 10px 10px;
  border: 1px solid #d7dee9;
  border-radius: 8px;
  background: #f7f9fd;
  color: #172033;
  cursor: pointer;
}

.pricing-option:hover {
  border-color: #ff7fa4;
  background: #fff8fb;
}

.pricing-option.active {
  border-color: var(--pink);
  background: #fff5f8;
  box-shadow: inset 0 0 0 1px rgba(255, 31, 95, 0.18);
}

.pricing-option em {
  position: absolute;
  top: -9px;
  right: 8px;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.pricing-option strong {
  color: var(--pink);
  font-size: 22px;
  font-weight: 900;
}

.pricing-option span {
  font-weight: 800;
}

.pricing-option small {
  color: var(--muted);
}

.duration-panel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 126px;
  gap: 7px 10px;
  align-items: start;
}

.pricing-row-label {
  min-height: 32px;
  display: flex;
  align-items: center;
  color: #334155;
  font-weight: 800;
}

.duration-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.duration-choices button,
.duration-stepper button {
  min-height: 32px;
  min-width: 56px;
  border: 1px solid #c9d3df;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

.duration-choices button.active {
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 800;
}

.duration-stepper {
  display: grid;
  grid-template-columns: 36px 54px 36px;
  width: 126px;
  justify-self: end;
}

.duration-stepper button,
.duration-stepper input {
  width: 100%;
  min-height: 32px;
  border-radius: 0;
}

.duration-stepper button {
  min-width: 0;
  padding: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.duration-stepper button:hover {
  border-color: #9fb3ca;
  background: #eef6ff;
}

.duration-stepper button:first-child {
  border-radius: 5px 0 0 5px;
}

.duration-stepper button:last-child {
  border-radius: 0 5px 5px 0;
}

.duration-stepper input {
  padding: 0;
  border-left: 0;
  border-right: 0;
  font-weight: 800;
  text-align: center;
}

.duration-panel small {
  grid-column: 2 / -1;
  display: block;
  min-width: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-result {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f1f5fb;
}

.pricing-result span {
  color: #334155;
}

.pricing-result strong {
  margin-left: auto;
  color: var(--pink);
  font-size: 18px;
  font-weight: 900;
}

.bonus-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ffe0b5;
  border-radius: 6px;
  background: #fffaf2;
}

.bonus-panel:not([open]) {
  padding-bottom: 10px;
}

.bonus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.bonus-head::-webkit-details-marker {
  display: none;
}

.bonus-head strong {
  color: #7c3a00;
  white-space: nowrap;
}

.bonus-head span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: #f05a1a;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bonus-head em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #f4c88d;
  border-radius: 4px;
  background: #fff;
  color: #9a5a15;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.bonus-panel[open] .bonus-head em {
  color: #7c3a00;
}

.bonus-rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bonus-rule {
  display: grid;
  grid-template-columns: 108px 112px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 5px;
  background: #fff;
  color: #334155;
}

.bonus-rule strong {
  color: #172033;
}

.bonus-rule span {
  color: var(--muted);
  font-family: Consolas, monospace;
}

.bonus-rule em {
  color: #e24a0a;
  font-style: normal;
  line-height: 1.55;
  word-break: break-word;
}

.bonus-panel p {
  margin: 0;
  color: #9a5a15;
  font-size: 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 10px;
}

.service-note {
  margin: 0;
  color: #ff6b00;
  font-size: 12px;
}

.detail-info-panel,
.detail-screenshots {
  padding: 24px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.detail-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fd;
}

.info-grid div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #32445b;
}

.info-grid span {
  color: #6b7c90;
}

.info-grid strong {
  font-weight: 700;
}

.screenshot-viewer {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f2f5f9;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.screenshot-viewer.dragging {
  cursor: grabbing;
}

.screenshot-main {
  max-width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.16s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.screenshot-viewer.dragging .screenshot-main {
  cursor: grabbing;
  transition: none;
}

.screenshot-arrow {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.screenshot-arrow:hover {
  background: rgba(47, 128, 209, 0.72);
}

.screenshot-arrow.prev {
  left: 16px;
}

.screenshot-arrow.next {
  right: 16px;
}

.screenshot-thumbs {
  justify-content: center;
}

.screenshot-thumbs button {
  width: 140px;
  height: 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
}

.detail-body {
  padding: 12px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.detail-head h1 {
  margin: 6px 0;
  font-size: 22px;
}

.custom-no {
  color: #1d5f97;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
}

.custom-no.big {
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.image-section {
  margin: 12px 0;
}

.image-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #223349;
  font-weight: 800;
}

.image-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #d9e2ec;
  border-radius: 5px;
  background: #f6f9fc;
  cursor: zoom-in;
  transition: border-color 0.15s ease, filter 0.15s ease;
}

.image-grid img:hover {
  border-color: #7cb4e8;
  filter: brightness(0.97);
}

body.preview-lock {
  overflow: hidden;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(8, 17, 30, 0.86);
  touch-action: none;
  user-select: none;
}

.image-preview-modal.open {
  display: flex;
}

.image-preview-modal img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  background: #111827;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.08s linear;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.image-preview-modal img.is-zoomed {
  cursor: grab;
}

.image-preview-close,
.image-preview-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
}

.image-preview-close {
  top: 18px;
  right: 24px;
  width: 38px;
  height: 38px;
  font-size: 28px;
  line-height: 1;
}

.image-preview-nav {
  top: 50%;
  width: 44px;
  height: 68px;
  transform: translateY(-50%);
  font-size: 44px;
  line-height: 1;
}

.image-preview-prev {
  left: 22px;
}

.image-preview-next {
  right: 22px;
}

.image-preview-close:hover,
.image-preview-nav:hover {
  background: rgba(47, 128, 209, 0.82);
}

.image-preview-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  text-align: center;
  font-family: Consolas, monospace;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.42);
}

.contact-modal-box {
  width: min(420px, calc(100vw - 56px));
  border: 1px solid #c9d6e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(55, 92, 126, 0.24);
}

.contact-modal-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid #d9e2ec;
  background: #f3f7fb;
}

.contact-modal-head button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #c7d3e0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.contact-modal-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.contact-modal-body img {
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid #e1e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.contact-modal-body p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
  line-height: 1.7;
}

.customer-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1200;
  font-size: 14px;
}

.customer-widget-left {
  right: auto;
  left: 28px;
}

.customer-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 116px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  color: #fff;
  background: #ff1f63;
  box-shadow: 0 10px 28px rgba(255, 31, 99, .22);
  cursor: pointer;
}

.customer-float-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-weight: 800;
  overflow: hidden;
}

.customer-float-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-float-btn > span:last-of-type {
  font-weight: 700;
}

.customer-float-btn em {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-style: normal;
  font-size: 12px;
}

.customer-widget[data-cs-status-value="offline"] .customer-float-btn {
  background: #6b7280;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

.customer-widget[data-cs-status-value="away"] .customer-float-btn {
  background: #f59e0b;
  box-shadow: 0 10px 28px rgba(245, 158, 11, .18);
}

.customer-chat-window {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 380px;
  height: min(620px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c9d7e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 39, 71, .22);
}

.customer-widget-left .customer-chat-window {
  right: auto;
  left: 0;
}

.customer-chat-window[hidden] {
  display: none;
}

.customer-chat-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #0f2747;
  background: #f1f7ff;
  border-bottom: 1px solid #d5e2f0;
}

.customer-chat-window-head strong {
  display: block;
  font-size: 15px;
}

.customer-chat-window-head button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid #b9c9dc;
  border-radius: 6px;
  background: #fff;
  color: #0f2747;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.customer-chat-window-head .customer-sound-toggle {
  margin-left: auto;
  color: #0f2747;
}

.customer-chat-window-head .customer-sound-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-chat-window-head .customer-sound-toggle.is-muted {
  color: #7b8797;
  background: #f5f7fb;
}

.customer-status-pill {
  display: inline-block;
  margin-top: 4px;
  color: #12835c;
  font-size: 12px;
}

.customer-widget[data-cs-status-value="offline"] .customer-status-pill {
  color: #6b7280;
}

.customer-widget[data-cs-status-value="away"] .customer-status-pill {
  color: #b45309;
}

.customer-chat-window-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f6f9fd;
}

.customer-faq-box {
  padding: 10px 12px;
  border-bottom: 1px solid #dce7f3;
  background: #fff;
}

.customer-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  cursor: pointer;
  list-style: none;
}

.customer-faq-head::-webkit-details-marker {
  display: none;
}

.customer-faq-head strong {
  font-size: 13px;
}

.customer-faq-head span {
  border: 1px solid #c7d6e7;
  border-radius: 5px;
  background: #fff;
  color: #1d6eaf;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  padding: 0 8px;
}

.customer-faq-head button,
.customer-faq-item button {
  border: 1px solid #c7d6e7;
  border-radius: 5px;
  background: #fff;
  color: #1d6eaf;
  cursor: pointer;
  font-size: 12px;
}

.customer-faq-list {
  display: grid;
  gap: 6px;
}

.customer-faq-box:not([open]) .customer-faq-list,
.customer-faq-box:not([open]) .customer-faq-more,
.customer-faq-box.is-collapsed .customer-faq-list,
.customer-faq-box.is-collapsed .customer-faq-more {
  display: none !important;
}

.customer-faq-more {
  width: 100%;
  margin-top: 6px;
  min-height: 26px;
  border: 1px solid #c7d6e7;
  border-radius: 5px;
  background: #fff;
  color: #1d6eaf;
  cursor: pointer;
}

.customer-faq-item {
  border: 1px solid #e2eaf4;
  border-radius: 6px;
  padding: 6px 8px;
  background: #f9fbff;
}

.customer-faq-item summary {
  cursor: pointer;
  color: #0f2747;
  font-weight: 700;
  font-size: 13px;
}

.customer-faq-item p {
  margin: 6px 0;
  color: #53667c;
  line-height: 1.55;
}

.customer-chat-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.customer-msg {
  display: flex;
  margin-bottom: 9px;
}

.customer-msg-visitor {
  justify-content: flex-end;
}

.customer-msg-bubble {
  max-width: 82%;
  padding: 8px 10px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  background: #fff;
}

.customer-msg-visitor .customer-msg-bubble {
  color: #fff;
  border-color: #ff1f63;
  background: #ff1f63;
}

.customer-msg-system .customer-msg-bubble {
  color: #8a4d00;
  border-color: #ffd89b;
  background: #fff7e8;
}

.customer-msg-recalled .customer-msg-bubble {
  color: #64748b;
  border-color: #d8e3ef;
  border-style: dashed;
  background: #f8fafc;
}

.customer-msg-bubble p {
  margin: 0;
  line-height: 1.55;
  word-break: break-word;
}

.customer-chat-image-btn {
  display: block;
  max-width: 180px;
  margin: 0 0 6px;
  padding: 0;
  border: 1px solid #d7e3f0;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.customer-chat-image {
  display: block;
  max-width: 180px;
  max-height: 150px;
  object-fit: contain;
}

.customer-msg-bubble time {
  display: block;
  margin-top: 4px;
  opacity: .72;
  font-size: 11px;
}

.customer-recall-btn {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 4px;
  padding: 0 7px;
  background: rgba(255, 255, 255, .18);
  color: inherit;
  cursor: pointer;
  font-size: 12px;
}

.customer-chat-window-foot {
  padding: 10px;
  border-top: 1px solid #d5e2f0;
  background: #fff;
}

.customer-emoji-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.customer-emoji-bar button {
  border: 1px solid #c7d6e7;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.customer-permission-notice {
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid #ffd0a6;
  border-radius: 5px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  line-height: 1.5;
}

.customer-quick-replies {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 7px;
}

.customer-quick-replies button,
.customer-file-row button,
.customer-attach-btn {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #c7d6e7;
  border-radius: 5px;
  padding: 0 8px;
  background: #fff;
  color: #0f2747;
  cursor: pointer;
  font-size: 12px;
}

.customer-attach-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #eef2f7;
}

.customer-quick-replies button:disabled,
.customer-emoji-bar button:disabled,
.customer-quick-replies button.is-disabled,
.customer-emoji-bar button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #eef2f7;
}

.customer-file-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 7px;
}

.customer-file-row span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.customer-input-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
}

.customer-input-row textarea {
  resize: none;
  border: 1px solid #c7d6e7;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

.customer-input-row button {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #ff1f63;
  font-weight: 700;
  cursor: pointer;
}

.customer-input-row button:disabled,
.customer-input-row textarea:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.customer-chat-window-foot p,
.customer-chat-window-foot [data-cs-hint] {
  display: none !important;
}

.site-popup-notice[hidden] {
  display: none;
}

.site-popup-notice {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  padding: 28px;
}

.site-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
}

.site-popup-box {
  position: relative;
  z-index: 1;
  width: min(var(--popup-width, 520px), calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #bfd0e2;
  border-radius: 8px;
  background: var(--popup-bg, #fff);
  box-shadow: 0 22px 60px rgba(42, 86, 126, 0.28);
}

.popup-position-center {
  align-items: center;
  justify-content: center;
}

.popup-position-top {
  align-items: flex-start;
  justify-content: center;
  padding-top: 56px;
}

.popup-position-bottom {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px;
}

.popup-font-system .site-popup-box {
  font-family: inherit;
}

.popup-font-microsoft .site-popup-box {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.popup-font-songti .site-popup-box {
  font-family: SimSun, "Songti SC", serif;
}

.popup-font-heiti .site-popup-box {
  font-family: SimHei, "Microsoft YaHei", sans-serif;
}

.popup-font-kaiti .site-popup-box {
  font-family: KaiTi, "Kaiti SC", serif;
}

.site-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #cbd7e6;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.site-popup-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 46px 0 16px;
  border-bottom: 1px solid #dce6f0;
  background: #f7fafd;
}

.site-popup-head strong {
  color: var(--popup-title, #0f2747);
  font-size: var(--popup-title-size, 18px);
}

.site-popup-body {
  overflow: auto;
  padding: 16px;
  color: var(--popup-text, #334155);
  font-size: var(--popup-text-size, 14px);
  line-height: 1.75;
}

.site-popup-body p {
  margin: 0 0 10px;
}

.site-popup-body p:last-child {
  margin-bottom: 0;
}

.site-popup-body img {
  max-width: 100%;
  height: auto;
}

.site-popup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #dce6f0;
  background: #f8fafc;
}

.site-popup-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #c8d5e4;
  border-radius: 5px;
  background: #fff;
  color: #18324f;
  font-weight: 800;
  cursor: pointer;
}

.site-popup-btn.primary {
  border-color: #ff1f63;
  background: #ff1f63;
  color: #fff;
}

.site-popup-btn.danger {
  border-color: #ff6b35;
  background: #fff4ed;
  color: #d93d0b;
}

.detail-list {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px 10px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.pre-line {
  white-space: pre-line;
  line-height: 1.7;
}

.action-box {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.footer-note {
  width: 1200px;
  margin: var(--footer-margin-top, 18px) auto 0;
  padding: var(--footer-padding-y, 10px) var(--footer-padding-x, 12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--footer-radius, 8px);
  background: var(--footer-bg, #ffffff);
  color: var(--footer-text, var(--muted));
  font-size: 12px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

.footer-content {
  min-height: 18px;
}

.footer-align-left {
  text-align: left;
}

.footer-align-center {
  text-align: center;
}

.footer-align-right {
  text-align: right;
}

.footer-width-wide {
  width: min(1440px, calc(100vw - 24px));
}

.footer-width-full {
  width: 100%;
  border-radius: var(--footer-radius, 0);
}

body.has-fixed-footer {
  padding-bottom: 76px;
}

.footer-position-fixed {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 8500;
  transform: translateX(-50%);
  margin-top: 0;
  box-shadow: 0 -10px 28px rgba(54, 96, 132, 0.12);
}

.footer-position-fixed.footer-width-full {
  left: 0;
  right: 0;
  transform: none;
}

.footer-note a {
  color: var(--footer-link, #1d6eaf);
}

.icp-text {
  margin-top: 6px;
  color: inherit;
  opacity: 0.78;
}

.install-page {
  display: grid;
  place-items: start center;
  padding-top: 90px;
}

.install-box {
  width: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ok {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 1220px) {
  html {
    min-width: 0;
  }

  .topbar,
  .front-page {
    width: calc(100vw - 24px);
  }

  .footer-width-boxed,
  .footer-width-wide {
    width: calc(100vw - 24px);
  }

  .footer-width-full {
    width: 100%;
  }

  .hall-search-form {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 12px;
  }

  .site-header {
    height: auto;
  }

  .topbar,
  .front-page {
    width: calc(100vw - 16px);
  }

  .topbar {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    max-width: 100%;
  }

  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo,
  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topnav a {
    flex: 0 0 auto;
  }

  .customer-widget {
    right: 12px;
    bottom: 14px;
  }

  .customer-widget-left {
    left: 12px;
  }

  .customer-chat-window,
  .customer-widget-left .customer-chat-window {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 76px;
    width: auto;
    height: min(620px, calc(100vh - 95px));
  }

  .hall-search {
    height: auto;
    padding: 8px 0;
  }

  .no-top-nav.no-global-notice .hall-search {
    margin-top: 0;
    padding-left: 0;
  }

  .hall-search-form,
  .filter-line,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hall-search-form {
    gap: 7px;
  }

  .notice-strip {
    min-height: 36px;
    height: auto;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .notice-viewport {
    height: auto;
    min-height: 28px;
  }

  .filter-board {
    padding: 10px;
  }

  .filter-line {
    gap: 4px;
    min-height: 0;
    margin-bottom: 8px;
  }

  .filter-label {
    height: auto;
    min-height: 24px;
  }

  .filter-options,
  .selected-tags {
    gap: 6px;
  }

  .price-range-inline {
    grid-template-columns: 1fr 10px 1fr 58px;
    width: 100%;
    margin-left: 0;
  }

  .price-range-inline input {
    width: 100%;
  }

  .gallery-main,
  .gallery-empty {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .detail-page {
    gap: 8px;
  }

  .detail-hero {
    gap: 12px;
    padding: 12px;
    border-radius: 7px;
  }

  .detail-gallery {
    width: 100%;
  }

  .gallery-thumbs,
  .screenshot-thumbs {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .gallery-thumbs button {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .detail-kicker {
    gap: 5px 10px;
    margin-bottom: 6px;
  }

  .detail-summary h1 {
    font-size: 18px;
    line-height: 1.38;
  }

  .detail-desc {
    margin: 8px 0;
    line-height: 1.65;
  }

  .maintenance-stamp {
    top: 116px;
    width: min(92%, 420px);
    min-height: 96px;
    padding: 14px 20px;
    border-width: 4px;
    transform: translateX(-50%) rotate(8deg);
  }

  .maintenance-stamp strong {
    font-size: 44px;
  }

  .maintenance-stamp span {
    font-size: 12px;
  }

  .package-grid,
  .duration-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    gap: 8px;
  }

  .package-card {
    min-height: 92px;
  }

  .pricing-panel {
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 7px;
  }

  .pricing-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pricing-option {
    min-height: 98px;
    padding: 10px 8px 8px;
    gap: 5px;
  }

  .pricing-option strong {
    font-size: 18px;
  }

  .pricing-option em {
    right: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .duration-panel {
    gap: 6px;
  }

  .pricing-row-label {
    min-height: 24px;
  }

  .duration-choices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .duration-choices button {
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
  }

  .pricing-result {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .pricing-result strong {
    margin-left: 0;
  }

  .pricing-result .btn {
    width: 100%;
  }

  .duration-stepper {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    justify-self: stretch;
  }

  .duration-panel small {
    grid-column: 1;
  }

  .bonus-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .bonus-head span {
    grid-column: 1 / -1;
    order: 3;
    text-align: left;
    white-space: normal;
  }

  .bonus-rules,
  .bonus-rule {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .detail-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .detail-info-panel,
  .detail-screenshots {
    padding: 14px;
    border-radius: 7px;
  }

  .info-grid div {
    padding: 10px;
  }

  .detail-list {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .screenshot-viewer {
    min-height: 260px;
    border-radius: 6px;
  }

  .screenshot-main {
    max-width: calc(100vw - 52px);
    max-height: 360px;
  }

  .screenshot-thumbs button {
    flex: 0 0 84px;
    width: 84px;
    height: 44px;
  }

  .screenshot-arrow {
    width: 32px;
    height: 44px;
    font-size: 28px;
  }

  .screenshot-arrow.prev {
    left: 8px;
  }

  .screenshot-arrow.next {
    right: 8px;
  }

  .image-preview-modal {
    padding: 52px 16px;
  }

  .site-popup-notice {
    padding: 14px;
  }

  .popup-position-top {
    padding-top: 24px;
  }

  .popup-position-bottom {
    padding-bottom: 24px;
  }

  .site-popup-box {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .site-popup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-popup-btn {
    width: 100%;
  }

  .sort-strip {
    min-height: 50px;
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px;
  }

  .sort-strip a {
    min-height: 30px;
    padding: 0 10px;
  }

  .sort-strip span {
    width: 100%;
    margin-left: 0;
  }

  .list-card {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 34px 12px 12px;
    align-items: start;
  }

  .list-no {
    min-width: 142px;
    height: 28px;
    padding-left: 12px;
  }

  .preview {
    width: 72px;
    height: 72px;
  }

  .list-main h2 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .list-main p {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .list-side {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid #e7edf5;
  }

  .list-side strong {
    font-size: 17px;
  }

  .hall-pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
  }

  .hall-pagination.ajax-mode {
    justify-content: center;
  }

  .hall-pagination .page-link,
  .hall-pagination .page-ellipsis,
  .hall-pagination button {
    min-width: 32px;
    min-height: 30px;
    padding: 0 9px;
  }

  .hall-pagination > span {
    width: 100%;
    text-align: center;
  }

  .detail-btn {
    min-width: 82px;
  }
}
