/* Custom styles for Bicester Village Shanghai registration page */

/* Source Han Sans SC Font Face Declarations */
@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiYuan";
  src: local("Source Han Sans SC Regular"), local("Source Han Sans Regular"),
    local("source-han-sans-simplified-c-regular"),
    url("../fonts/SiYuan/SourceHanSansCN-Normal.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SiYuan";
  src: local("Source Han Sans SC Light"), local("Source Han Sans Light"),
    local("source-han-sans-simplified-c-light"),
    url("../fonts/SiYuan/SourceHanSansCN-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "SiYuanSong";
  src: local("Source Han Serif SC Regular"), local("Source Han Serif Regular"),
    local("source-han-serif-sc-regular"),
    url("../fonts/SiYuan/Source Han Serif SC.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "BrownStd";
  src: url("../fonts/BrownStd/BrownStd-Regular.otf");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "BrownStd";
  src: url("../fonts/BrownStd/BrownStd-Light.otf");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "sangbleukingdom";
  src: url("../fonts/sangbleukingdom/sangbleukingdom-light.otf");
  font-display: swap;
}

:root {
  --olive-green: #7b8b52;
  --light-olive: #9ca97e;
  --font-sans: "BrownStd", "SiYuan", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --font-en: "BrownStd", "SiYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-zh: "SiYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Global Font Settings */
html {
  font-family: var(--font-sans);
  font-weight: 400;
}

/* Inter font settings from rsms.me */
@supports (font-variation-settings: normal) {
  html {
    font-family: "Inter var", var(--font-sans);
  }
}

/* Language-specific font settings */
:lang(zh),
:lang(zh-CN) {
  font-family: var(--font-zh);
}

:lang(en) {
  font-family: var(--font-en);
}

/* Menu icons */
.menu-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.close-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Menu styles */
#sideMenu {
  overflow-y: auto;
  position: fixed;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100vh; /* Full height on mobile */
  background-image: url("../images/menu-bg-sh.png");
  background-size: 100%;
  background-position: 0px 85px;
  background-repeat: no-repeat;
}

#sideMenu.is-suzhou {
  background-image: url("../images/menu-bg-sz.png");
}

/* Menu content container */
#sideMenu > div {
  min-height: 100%;
}

/* Language toggle styles */
.language-toggle {
  display: inline-flex;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 9999px; /* fully rounded */
  background-color: white;
}

.language-toggle span {
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  font-size: 12px;
}

.language-toggle .active {
  color: var(--olive-green);
}

.language-toggle .divider {
  color: #9ca3af; /* gray-400 */
  cursor: default;
  padding: 0.25rem 0;
}

/* Desktop styles */
@media (min-width: 768px) {
  #sideMenu {
    height: auto;
    max-height: 80vh;
    border-radius: 0 0 8px 8px;
  }

  #sideMenu > div {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 8px 8px;
  }
}

/* Logo image */
.logo-image {
  height: 30px;
  width: auto;
  /* 处理2倍图 */
  object-fit: contain;
}

.bg-olive-green {
  background-color: var(--olive-green);
}

.text-olive-green {
  color: var(--olive-green);
}

.border-olive-green {
  border-color: var(--olive-green);
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--olive-green);
}

/* Gender selection */
.gender-selected {
  border-color: var(--olive-green);
  background-color: var(--olive-green);
  color: white;
}

/* Button hover effects */
button[type="submit"]:hover {
  background-color: var(--light-olive);
}

/* Checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--olive-green);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background-color: var(--olive-green);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Dropdown arrow styling */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #888;
  margin-left: 5px;
}

/* QR code styling */
.qr-code {
  border: 1px solid #ddd;
  padding: 5px;
  background-color: white;
}

/* QR code container dividers for PC view */
.qr-codes-container .qr-code-item {
  position: relative;
}

/* Only apply dividers on large screens */
@media (min-width: 1024px) {
  .qr-codes-container .qr-code-item:not(:last-child):before {
    content: "";
    position: absolute;
    right: -68px;
    top: 36%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: #e5e7eb; /* gray-200 */
  }
}

/* Footer social icons */
.social-icon {
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}

footer {
  margin-top: 120px;

  .business-info {
    margin-top: -120px;
  }
}

/* Business info dividers for PC view */
@media (min-width: 1024px) {
  footer {
    margin-top: 60px;

    .business-info {
      margin-top: -60px;
    }
  }
  .business-info .divider-container {
    position: relative;
  }
}

/* Sitemap dividers for PC view */
@media (min-width: 1024px) {
  .sitemap-section {
    position: relative;
  }

  .sitemap-section:not(:last-child):after {
    content: "";
    position: absolute;
    right: -68px;
    top: 50%;
    transform: translateY(-50%);
    height: 90%;
    width: 1px;
    background-color: #e5e7eb;
  }
}

/* Mobile optimizations */
@media (max-width: 375px) {
  .max-w-md {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Member Card Styles */
.member-card-bg {
  background: linear-gradient(
    180deg,
    rgba(127, 138, 75, 0.025) 36.54%,
    rgba(127, 138, 75, 0.1) 53.85%,
    rgba(127, 138, 75, 0.228571) 73.08%,
    rgba(127, 138, 75, 0.4) 100%
  );
}

.member-card-shadow {
  box-shadow: 0px 0px 5px 0px #0000001a;
}

/* App Icon Dividers */
.grid-cols-4 > .flex.flex-col.items-center {
  position: relative;
}

.grid-cols-4
  > .flex.flex-col.items-center:not(:nth-child(4n)):not(:nth-child(7)):after {
  content: "";
  position: absolute;
  right: -8px;
  top: 30%;
  transform: translateY(-30%);
  height: 24px;
  width: 1px;
  background-color: #e5e7eb; /* gray-200 */
}

.grid-cols-3 > .flex.flex-col.items-center {
  position: relative;
}

.grid-cols-3 > .flex.flex-col.items-center:not(:nth-child(3n)):after {
  content: "";
  position: absolute;
  right: -8px;
  top: 30%;
  transform: translateY(-30%);
  height: 24px;
  width: 1px;
  background-color: #e5e7eb; /* gray-200 */
}

.ticket-card {
  .ticket-card-content {
    overflow: hidden;
    position: relative;
    height: 116px;
  }

  .ticket-card-left {
    background-size: 100% 100%;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px;
    width: 157px;
  }
  .ticket-card-right {
    position: absolute;
    left: 120px;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 8px;
    padding-left: 30px;
    background-image: url("../images/card-right-bg.png");
    background-size: 100% 100%;
    background-position: center;
  }

  .ticket-card-gradient {
    background: linear-gradient(
      180deg,
      rgba(127, 138, 75, 0.8) 0%,
      rgba(127, 138, 75, 0.457143) 26.92%,
      rgba(127, 138, 75, 0.2) 46.15%,
      rgba(127, 138, 75, 0.05) 63.46%
    );
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }
}
@keyframes glowing {
  0% {
    box-shadow: 0px 0px 10px 2px rgba(229, 181, 7, 0.993);
  }
  50% {
    box-shadow: 0px 0px 20px 3px rgba(248, 223, 121, 0.7);
  }
  100% {
    box-shadow: 0px 0px 10px 2px rgba(248, 223, 121, 0.7);
  }
}

.ticket-card-active .ticket-card-content {
  box-shadow: 0px 0px 10px 4px #f8df79;
  animation: glowing 1.5s ease-in-out infinite;
}

.ticket-card-expired {
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .login-bg {
    min-height: 730px;
    background-image: url("../images/center-bg-sh.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .login-bg.is-suzhou {
    background-image: url("../images/center-bg-sz.jpg");
  }

  .login-panel {
    background: linear-gradient(
      163.45deg,
      rgba(255, 255, 255, 0.3) 1.6%,
      #ffffff 40.88%,
      rgba(255, 255, 255, 0.8) 74.2%,
      rgba(255, 255, 255, 0.4) 96.62%
    );
    border: 1px solid;

    border-image-source: linear-gradient(
      163.49deg,
      #ffffff 11.5%,
      rgba(255, 255, 255, 0) 60.54%,
      rgba(255, 255, 255, 0.7) 93.76%
    );
    box-shadow: 0px 0px 5px 0px #0000001a;
    backdrop-filter: blur(17.5px);
  }

  .member-center-bg {
    min-height: 730px;
    background-image: url("../images/banner-sh.jpg");
    background-size: cover;
    background-position: bottom 0px center;
    background-repeat: no-repeat;
  }
  .member-center-bg.is-suzhou {
    background-image: url("../images/banner-sz.jpg");
  }

  .member-card-bg {
    background: linear-gradient(
      163.45deg,
      rgba(255, 255, 255, 0.3) 1.6%,
      #ffffff 40.88%,
      rgba(255, 255, 255, 0.8) 74.2%,
      rgba(255, 255, 255, 0.4) 96.62%
    );
    border: 1px solid;
    border-image-source: linear-gradient(
      163.49deg,
      #ffffff 11.5%,
      rgba(255, 255, 255, 0) 60.54%,
      rgba(255, 255, 255, 0.7) 93.76%
    );
    box-shadow: 0px 0px 5px 0px #0000001a;
    backdrop-filter: blur(6px);
  }

  .ticket-card {
    min-width: 400px;
  }
  .applet-section {
    position: relative;
  }
  .applet-section.has-ticket::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: #e5e7eb;
  }
}
