html,
body,
#root {
  max-width: 100%;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
}

.hero-media {
  background: #17202a url("/assets/meiyin-hero-poster.jpg") center / cover no-repeat;
}

.page,
.section,
.hero,
.home-directory,
.other-services {
  max-width: 100%;
  overflow-x: clip;
}

.store-tour-overlay > .store-tour-close-fixed {
  position: fixed;
  z-index: 4;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: #17212b;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 64px;
  }

  .site-header {
    right: auto;
    left: 14px;
    width: auto;
    height: 54px;
  }

  .header-inner {
    justify-content: flex-end;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark,
  .brand-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(20, 29, 37, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: auto;
    left: 14px;
    width: min(288px, calc(100vw - 28px));
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(20, 29, 37, 0.18), inset 0 1px rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
  }

  .main-nav a,
  .main-nav button {
    width: 100%;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-grid {
    width: 100%;
    gap: 0;
  }

  .hero-copy {
    padding: 108px 20px 38px;
  }

  .hero-copy h1 {
    display: grid;
    grid-template-columns: repeat(6, max-content);
    justify-content: center;
    overflow-wrap: anywhere;
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.05;
    text-align: center;
  }

  .hero-copy h1 .split-piece:nth-child(7) {
    grid-column: 2;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-actions a,
  .hero-actions button {
    max-width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 20px;
  }

  .hero-facts span {
    justify-content: center;
    gap: 5px;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-facts strong {
    font-size: clamp(22px, 6vw, 30px);
  }

  .hero-media {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
  }

  .hero-media video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: scale(1.12);
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .section-heading h2 {
    overflow-wrap: anywhere;
    font-size: clamp(30px, 9vw, 46px);
  }

  .service-row,
  .about-grid,
  .home-summary-grid,
  .strength-grid,
  .process-list,
  .case-grid,
  .footer-grid,
  .store-tour-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-copy,
  .service-image,
  .about-photo,
  .store-card,
  .case-browser,
  .media-placeholder {
    width: 100%;
    min-width: 0;
  }

  .service-image img,
  .about-photo img,
  .media-placeholder img {
    width: 100%;
    height: auto;
    max-height: 72svh;
    object-fit: cover;
  }

  .film-service-switch,
  .case-filter {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .film-service-switch button,
  .case-filter button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .service-accordion > div > button {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 22px 0;
  }

  .service-accordion > div > button span {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .service-accordion > div > button strong,
  .service-accordion > div > button small {
    grid-column: 2;
    width: auto;
    min-width: 0;
  }

  .service-accordion > div > button small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .service-photo-panel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 360px);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .service-accordion .is-open .service-photo-panel {
    max-height: 560px;
    padding: 14px;
  }

  .service-panel-card {
    min-height: 0;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .service-panel-card img {
    min-height: 0;
  }

  .dome-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dome-tile {
    min-width: 0;
  }

  .dome-lightbox {
    padding: 12px;
  }

  .dome-lightbox img {
    max-width: 100%;
    max-height: 88svh;
    object-fit: contain;
  }

  .store-tour-overlay {
    padding: 8px;
  }

  .store-tour-shell {
    max-height: 94svh;
    overflow-y: auto;
    border-radius: 18px;
  }

  .store-tour-header button {
    position: fixed;
    z-index: 4;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    width: 52px;
    height: 52px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  .store-tour-overlay > .store-tour-close-fixed {
    position: fixed;
    z-index: 4;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    background: #17212b;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  .store-map {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .map-actions {
    display: flex;
    width: 100%;
  }

  .map-actions a,
  .map-actions button {
    flex: 1 1 140px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

.dome-gallery.is-dome:hover .dome-gallery-grid,
.dome-gallery.is-dome:active .dome-gallery-grid,
.dome-gallery.is-dome:focus-within .dome-gallery-grid {
  animation-play-state: running !important;
}

.back-to-top {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #17202a;
  font: 700 24px/1 system-ui, sans-serif;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(20, 29, 37, 0.2), inset 0 1px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top.is-dragging {
  cursor: grabbing;
  box-shadow: 0 18px 44px rgba(20, 29, 37, 0.28), inset 0 1px rgba(255, 255, 255, 0.95);
  transition: none;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(177, 13, 22, 0.35);
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .hero-copy {
    padding-inline: 16px;
  }

  .dome-gallery-grid {
    grid-template-columns: 1fr;
  }

  .button-secondary,
  .hero-actions a,
  .hero-actions button {
    justify-content: center;
    width: 100%;
  }
}
.meiyin-live-content {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(128, 142, 154, 0.25);
}

.meiyin-live-content h3 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 38px);
}

.meiyin-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.meiyin-live-card {
  overflow: hidden;
  border: 1px solid rgba(125, 141, 155, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(19, 32, 43, 0.09);
}

.meiyin-live-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.meiyin-live-card-copy { padding: 20px; }
.meiyin-live-card-copy h3 { margin: 0 0 8px; font-size: 20px; }
.meiyin-live-card-copy p { margin: 0; color: #64717c; line-height: 1.7; }

.meiyin-admin-login {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 15, 20, 0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.meiyin-admin-dialog,
.meiyin-editor-panel {
  color: #17202a;
  background: rgba(246, 249, 251, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 80px rgba(3, 11, 17, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.meiyin-admin-dialog {
  position: relative;
  width: min(440px, 100%);
  border-radius: 28px;
  padding: 34px;
}

.meiyin-admin-dialog h2 { margin: 0 0 10px; }
.meiyin-admin-dialog > p { color: #66737e; line-height: 1.65; }
.meiyin-admin-close,
.meiyin-editor-close {
  border: 0;
  background: rgba(23, 32, 42, 0.08);
  color: #17202a;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
}
.meiyin-admin-close { position: absolute; top: 18px; right: 18px; }

.meiyin-admin-form,
.meiyin-editor-form { display: grid; gap: 14px; }
.meiyin-admin-form input,
.meiyin-editor-form input,
.meiyin-editor-form textarea,
.meiyin-editor-form select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(97, 112, 124, 0.28);
  border-radius: 14px;
  padding: 13px 14px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
}
.meiyin-editor-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.meiyin-admin-form button,
.meiyin-editor-form button,
.meiyin-editor-logout {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: white;
  background: #17202a;
}
.meiyin-admin-status,
.meiyin-editor-status { min-height: 22px; margin: 0; color: #a54444; font-size: 14px; }

.meiyin-editor-panel {
  position: fixed;
  z-index: 10001;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(430px, calc(100vw - 32px));
  overflow: auto;
  border-radius: 28px;
  padding: 25px;
}
.meiyin-editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meiyin-editor-top h2 { margin: 0; }
.meiyin-editor-note { color: #66737e; line-height: 1.6; }
.meiyin-editor-list { display: grid; gap: 10px; margin: 22px 0; }
.meiyin-editor-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: white; }
.meiyin-editor-item strong,
.meiyin-editor-item span { display: block; }
.meiyin-editor-item span { margin-top: 3px; color: #7a8791; font-size: 13px; }
.meiyin-editor-delete { border: 0; border-radius: 10px; padding: 8px 10px; color: #9c3232; background: #faeaea; cursor: pointer; }
.meiyin-editor-logout { width: 100%; color: #17202a; background: rgba(23, 32, 42, 0.1); }

@media (max-width: 760px) {
  .meiyin-live-grid { grid-template-columns: 1fr; }
  .meiyin-editor-panel { inset: 0; width: auto; border-radius: 0; padding: 22px; }
}

#stores {
  background: #ffffff;
}

.meiyin-store-heading {
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  gap: 0;
  align-items: center;
  min-height: 330px;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.meiyin-store-heading h2 {
  white-space: nowrap;
}

.meiyin-store-heading h2 span {
  display: block;
}

.meiyin-store-logo-glass {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  clip-path: url(#meiyin-store-glass-clip);
  background: rgba(142, 184, 216, 0.48);
  box-shadow: 0 18px 48px rgba(40, 86, 122, 0.16), inset 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  animation: meiyin-store-glass-enter 0.9s cubic-bezier(0.22, 0.78, 0.24, 1) both;
}

.meiyin-store-clip-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.meiyin-store-logo-glass::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(82, 139, 184, 0.68), rgba(151, 190, 220, 0.42));
}

.meiyin-store-logo-glass::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  right: -24%;
  bottom: -72%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(8px);
}

.meiyin-store-heading-logo {
  display: block;
  justify-self: start;
  width: 27%;
  max-height: 76%;
  margin-left: 4%;
  height: 76%;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
  mix-blend-mode: screen;
}

@keyframes meiyin-store-glass-enter {
  from {
    opacity: 0;
    transform: translateX(-190px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.meiyin-business-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.meiyin-business-social-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 82px;
  padding: 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(232, 238, 242, 0.66));
  box-shadow: 0 14px 40px rgba(28, 38, 48, 0.13), inset 0 1px rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  color: #111820;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, background 0.3s;
}

.meiyin-business-social-link::after {
  content: "↗";
  font-size: 22px;
  margin-left: auto;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meiyin-business-social-link:hover,
.meiyin-business-social-link:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(205, 222, 234, 0.78));
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 22px 46px rgba(28, 38, 48, 0.18), inset 0 1px rgba(255, 255, 255, 0.94);
}

.meiyin-business-social-link:hover::after,
.meiyin-business-social-link:focus-visible::after {
  transform: rotate(45deg) scale(1.08);
}

/* 统一使用门店玻璃蓝作为全站交互强调色。 */
:root {
  --meiyin-interactive-blue: #78a7cb;
  --meiyin-interactive-blue-deep: #5f91b8;
  --meiyin-interactive-blue-soft: rgba(120, 167, 203, 0.42);
}

.main-nav button:hover,
.main-nav a:hover,
.main-nav button:focus-visible,
.main-nav a:focus-visible,
.main-nav button[aria-current="page"],
.main-nav a[aria-current="page"] {
  color: #24465f;
  background: var(--meiyin-interactive-blue-soft);
}

.hero-actions button:hover,
.hero-actions .preview-button:hover,
.hero-actions button:focus-visible,
.hero-actions .preview-button:focus-visible {
  color: #183b55;
  background: rgba(120, 167, 203, 0.72);
  border-color: rgba(202, 226, 243, 0.9);
}

.film-service-switch button:hover,
.film-service-switch button:focus-visible {
  border-color: var(--meiyin-interactive-blue-deep);
}

.film-service-switch button.active {
  color: #fff;
  border-color: var(--meiyin-interactive-blue-deep);
  background: linear-gradient(135deg, var(--meiyin-interactive-blue-deep), var(--meiyin-interactive-blue));
}

.case-filter button:hover,
.case-filter button.active,
.case-filter button:focus-visible {
  color: #b9daf2;
}

.case-filter button.active::before {
  background: var(--meiyin-interactive-blue);
  box-shadow: 0 0 16px rgba(120, 167, 203, 0.58);
}

/* 施工案例页采用白底黑字，分类选中仍保留玻璃蓝。 */
#cases.section-dark {
  color: #000;
  background: #fff;
}

#cases .section-heading h2 {
  color: #000;
}

#cases .case-filter {
  color: #000;
  border-left-color: rgba(23, 32, 42, 0.22);
}

#cases .case-filter button {
  color: rgba(0, 0, 0, 0.58);
}

#cases .case-filter button:hover,
#cases .case-filter button.active,
#cases .case-filter button:focus-visible {
  color: #000;
}

#cases .dome-gallery.is-dome {
  background: #fff;
  border: 1px solid #e1e7eb;
  box-shadow: 0 20px 55px rgba(28, 38, 48, 0.1);
}

#cases .dome-tile {
  background: #eef2f4;
  border-color: rgba(23, 32, 42, 0.12);
}

/* 门店头图延伸至视口左侧，并给玻璃曲面更充足的横向空间。 */
.meiyin-store-heading {
  width: 100vw;
  margin-left: calc(-1 * var(--gutter));
  grid-template-columns: 52% 48%;
  min-height: 390px;
}

.meiyin-store-heading-logo {
  justify-self: center;
  width: 30%;
  height: 78%;
  margin-left: 0;
  transform: translateX(-55%);
}

.meiyin-store-logo-glass {
  min-height: 390px;
}

.meiyin-store-heading > div:nth-of-type(2) {
  position: relative;
  z-index: 2;
  margin-left: -145px;
}

.store-tour-button b {
  background: var(--meiyin-interactive-blue);
}

.store-tour-button:focus-visible,
.store-tour-header button:focus-visible {
  outline-color: var(--meiyin-interactive-blue);
}

.store-map {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, background 0.3s;
}

.store-map:hover,
.store-map:focus-within {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(205, 222, 234, 0.78));
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 22px 50px rgba(28, 38, 48, 0.17);
}

.map-actions a:hover,
.map-actions a:focus-visible {
  color: #183b55;
  border-color: var(--meiyin-interactive-blue-deep);
  background: rgba(120, 167, 203, 0.5);
  box-shadow: 0 8px 22px rgba(95, 145, 184, 0.2);
  transform: translateY(-2px);
}

.map-actions a {
  transition: color 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s, transform 0.22s;
}

.meiyin-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.meiyin-social-icon-xhs {
  border-radius: 12px;
  background: #ff2442;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.meiyin-social-icon-douyin {
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  text-shadow: -2px -1px 0 #25f4ee, 2px 1px 0 #fe2c55;
}

.meiyin-social-label {
  font: inherit;
}

@media (max-width: 640px) {
  .meiyin-store-heading {
    grid-template-columns: 31% 69%;
    gap: 0;
    min-height: 210px;
  }

  .meiyin-store-logo-glass {
    height: 100%;
    min-height: 210px;
    padding: 0;
    border-radius: 0;
    clip-path: url(#meiyin-store-glass-clip);
  }

  .meiyin-store-heading h2 {
    white-space: normal;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  .meiyin-store-heading-logo {
    border-radius: 0;
    width: 27%;
    height: 72%;
    margin-left: 0;
    transform: translateX(-72%);
  }

  .meiyin-store-heading > div:nth-of-type(2) {
    margin-left: 0;
  }

  .meiyin-business-socials {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meiyin-business-social-link {
    min-height: 68px;
    padding: 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meiyin-store-logo-glass {
    animation: none;
  }
}

.meiyin-edit-indicator {
  position: fixed;
  z-index: 9000;
  top: 92px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px 10px 14px;
  color: #17202a;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(240, 246, 249, 0.82);
  box-shadow: 0 14px 42px rgba(11, 24, 34, 0.2);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.meiyin-edit-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20a968;
  box-shadow: 0 0 0 0 rgba(32, 169, 104, 0.5);
  animation: meiyin-editor-pulse 1.8s infinite;
}

.meiyin-edit-indicator strong { font-size: 13px; white-space: nowrap; }
.meiyin-edit-indicator button {
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  color: #66737e;
  background: rgba(23, 32, 42, 0.08);
  cursor: pointer;
}

@keyframes meiyin-editor-pulse {
  70% { box-shadow: 0 0 0 7px rgba(32, 169, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(32, 169, 104, 0); }
}

.meiyin-case-add {
  min-height: 290px;
  border: 1.5px dashed rgba(176, 207, 231, 0.7);
  border-radius: 34px;
  color: #eaf6ff;
  background: linear-gradient(145deg, rgba(54, 103, 142, 0.58), rgba(27, 55, 78, 0.82));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 18px 44px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 28px;
}
.meiyin-case-add:hover { transform: translateY(-4px); border-color: #fff; }
.meiyin-case-add-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 34px;
  font-weight: 300;
}
.meiyin-case-add strong { font-size: 18px; }
.meiyin-case-add small { opacity: .7; }

.meiyin-added-case-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 34px;
  background: #20364a;
}
.meiyin-added-case-card img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; display: block; }
.meiyin-added-case-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 40px 20px 18px;
  color: white;
  background: linear-gradient(transparent, rgba(5, 14, 22, .86));
}
.meiyin-added-case-caption span { font-size: 13px; opacity: .8; }

.meiyin-edit-case-clone {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 34px;
  background: #20364a;
}
.meiyin-edit-case-clone > img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  display: block;
}
.meiyin-edit-case-clone > strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.meiyin-case-delete,
.meiyin-case-delete-existing {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: rgba(139, 25, 35, .82);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.dome-gallery-grid > button { position: relative; }
.dome-gallery-grid > button[hidden] { display: none !important; }
.meiyin-case-delete:hover,
.meiyin-case-delete-existing:hover { background: #a81924; transform: translateY(-1px); }

.meiyin-case-caption-edit {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: #17202a;
  background: rgba(246,249,251,.86);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.meiyin-case-caption-edit:hover { background: #fff; transform: translateY(-1px); }

.meiyin-film-service-edit {
  margin-top: 22px; border: 1px solid rgba(95,145,184,.55); border-radius: 999px;
  padding: 11px 18px; color: #183b55; background: rgba(185,218,242,.42);
  font: inherit; font-weight: 750; cursor: pointer; transition: .22s ease;
}
.meiyin-film-service-edit:hover { transform: translateY(-2px); background: rgba(185,218,242,.75); }

#services .service-accordion > div > button {
  border-radius: 20px;
  transform-origin: center;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), color .26s;
}
#services .service-accordion > div > button strong,
#services .service-accordion > div > button small,
#services .service-accordion > div > button span {
  transition: color .26s;
}
#services .service-accordion > div > button:hover {
  color: #4f83aa;
  transform: scale(1.018);
}
#services .service-accordion > div > button:hover strong,
#services .service-accordion > div > button:hover span {
  color: #4f83aa;
}
#services .service-accordion > div > button:hover small {
  color: #6f9fbe;
}
#services .service-accordion > div > button:focus-visible {
  color: #183b55;
  transform: scale(1.018);
  outline: 2px solid rgba(95,145,184,.55);
  outline-offset: 5px;
}
.meiyin-general-category-edit {
  position: absolute; z-index: 5; top: 14px; right: 12px;
  display: block !important; width: auto !important; height: auto !important; min-height: 0 !important;
  grid-template-columns: none !important; transform: none;
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 8px 13px !important;
  color: #183b55; background: rgba(245,250,253,.88); backdrop-filter: blur(12px);
  font: inherit; font-size: 12px; font-weight: 750; line-height: 1.2; white-space: nowrap; cursor: pointer;
}
.meiyin-general-category-edit:hover { transform: scale(1.04); }
#services .service-accordion > div { position: relative; }
#services .service-accordion .meiyin-editor-expanded .service-photo-panel {
  max-height: 12000px;
  margin: 0 0 24px;
  padding: 18px;
}
.meiyin-general-card-edit {
  position: absolute; z-index: 4; top: 12px; right: 12px;
  border: 1px solid rgba(255,255,255,.78); border-radius: 999px; padding: 8px 12px;
  color: #17202a; background: rgba(255,255,255,.84); backdrop-filter: blur(12px);
  font: inherit; font-size: 12px; font-weight: 750; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

body.meiyin-case-detail-open { overflow: hidden; }
.meiyin-case-detail-overlay {
  position: fixed; inset: 0; z-index: 10010; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(7,13,18,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.meiyin-case-detail-shell {
  position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  width: min(1180px,100%); height: min(780px,92vh); overflow: hidden; border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px; background: rgba(247,249,250,.98); box-shadow: 0 34px 100px rgba(0,0,0,.42);
}
.meiyin-case-detail-media { min-width: 0; background: #101820; }
.meiyin-case-detail-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.meiyin-case-detail-copy { display: flex; flex-direction: column; overflow: auto; padding: 60px 42px 38px; color: #17202a; }
.meiyin-case-detail-copy small { color: #71808c; letter-spacing: .16em; font-weight: 800; }
.meiyin-case-detail-copy h2 { margin: 14px 0 26px; font-size: clamp(28px,3vw,44px); line-height: 1.08; }
.meiyin-case-detail-text { color: #53616c; white-space: pre-wrap; font-size: 17px; line-height: 1.9; }
.meiyin-case-detail-meta { margin-top: auto; padding-top: 30px; color: #84919a; font-size: 13px; }
.meiyin-case-detail-close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #17202a; color: white; font-size: 28px; cursor: pointer; }
.meiyin-case-detail-edit { align-self: flex-start; border: 0; border-radius: 999px; padding: 12px 18px; color: #fff; background: #4f83aa; font: inherit; font-weight: 750; cursor: pointer; }
.meiyin-case-detail-form { display: grid; gap: 14px; }
.meiyin-case-detail-form textarea { width: 100%; resize: vertical; border: 1px solid #cad4db; border-radius: 16px; padding: 15px; font: inherit; line-height: 1.7; }

.meiyin-case-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 13, 18, .56);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.meiyin-case-editor {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 30px;
  color: #17202a;
  background: rgba(246, 249, 251, .96);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.meiyin-case-editor > small { color: #71808c; letter-spacing: .16em; font-weight: 750; }
.meiyin-case-editor h2 { margin: 8px 0 24px; font-size: 30px; }
.meiyin-case-editor .meiyin-editor-close { position: absolute; top: 18px; right: 18px; }
.meiyin-case-all-option { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.meiyin-case-all-option input { width: 19px; height: 19px; accent-color: #17202a; }
.meiyin-case-delete-name { margin: -12px 0 22px; color: #687681; }
.meiyin-case-delete-hint { margin: 8px 0 18px; color: #74818b; font-size: 13px; line-height: 1.55; }
.meiyin-case-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meiyin-case-delete-actions button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  color: #17202a;
  background: rgba(23,32,42,.1);
}
.meiyin-case-delete-actions button.is-danger { color: #fff; background: #a81924; }
.meiyin-case-delete-actions button.is-primary { color: #fff; background: #17202a; }

@media (max-width: 760px) {
  .meiyin-edit-indicator { top: 82px; right: 14px; }
  .meiyin-case-add,
  .meiyin-added-case-card,
  .meiyin-added-case-card img,
  .meiyin-edit-case-clone,
  .meiyin-edit-case-clone > img { min-height: 230px; }
  .meiyin-case-editor { padding: 28px 20px; border-radius: 24px; }
  .meiyin-case-detail-overlay { padding: 12px; }
  .meiyin-case-detail-shell { grid-template-columns: 1fr; grid-template-rows: minmax(250px,45vh) 1fr; height: calc(100vh - 24px); border-radius: 24px; }
  .meiyin-case-detail-copy { padding: 30px 22px 24px; }
  .meiyin-case-detail-copy h2 { padding-right: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .meiyin-edit-indicator-dot { animation: none; }
}

.meiyin-icp-filing {
  padding: 18px 24px 24px;
  color: rgba(255, 255, 255, .62);
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
}
.meiyin-icp-filing a {
  color: inherit;
  transition: color .2s ease;
}
.meiyin-icp-filing a:hover,
.meiyin-icp-filing a:focus-visible {
  color: #9dcbef;
}
