/* ===================================
   CSS Reset and Base Styles
   =================================== */

body.suapp-page.keke-group-page .keke-membership-content > .keke_warning {
  left: 50%;
  right: auto;
  width: max-content;
  min-width: 130px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  transform: translateX(-50%);
}

body.suapp-page.keke-group-page .keke-membership-content > .keke_warning img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.keke-membership-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.keke-membership-content button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.keke-membership-content a {
  text-decoration: none;
  color: inherit;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1em 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* ===================================
   Main Content Styles
   =================================== */
.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em 1em;
  padding-top: 6em;
}

.hero-section {
  text-align: center;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1em, 3vw, 1.5em);
  color: #64748b;
  margin-bottom: 2em;
  line-height: 1.4;
}

.cta-button {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 1em 2em;
  border-radius: 0.75em;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.cta-button:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.cta-button:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* ===================================
   Footer Styles
   =================================== */
.site-footer {
  background: #f8fafc;
  padding: 2em 0;
  border-top: 1px solid #e2e8f0;
}

.footer-text {
  color: #64748b;
  font-size: 0.9em;
}

/* ===================================
   Modal Styles
   =================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1em;
  align-items: center;
}

.modal-backdrop1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px);
}

.modal-content1 {
  position: relative;
  border-radius: 1em;
  overflow: hidden;
  max-width: 90vw;
  margin: 0 auto;

  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-button {
  position: absolute;
  top: 1em;
  right: 1em;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5em;
  border-radius: 50%;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.close-button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-grid {
  display: flex;
  height: 100%;
}

.modal-image-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-section {
  background: linear-gradient(0deg, #1e3b31 0%, #1e3b31 100%),
    linear-gradient(135deg, #09090b 0%, #000 50%, #18181b 100%);
  padding: 40px 2em 0px 2em;
  display: flex;
  align-items: center;
  width: 500px;
  position: relative;
}

.modal-content-wrapper {
  width: 100%;
  color: white;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
}

.modal-header1 {
  text-align: center;
}
/* ===================================
   Countdown Timer Styles
   =================================== */
.countdown-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5em;
}

.countdown-display {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.time-unit {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.5em;
  padding: 0.5em 0.75em;
  min-width: 3em;
  text-align: center;
}

.time-value {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  color: #fca5a5;
  font-variant-numeric: tabular-nums;
}

.time-label {
  display: block;
  font-size: 0.75em;
  color: #fca5a5;
  margin-top: 0.25em;
}

.time-separator {
  color: rgba(220, 38, 38, 0.4);
  font-size: 1.25em;
  font-weight: 700;
  margin: 0 0.25em;
}

/* ===================================
   Modal Header Styles
   =================================== */

.modal-title {
  font-size: 2.3em;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5em;
  line-height: 1.2;
  white-space: nowrap;
}

.modal-subtitle {
  font-size: 1.5em;
  color: #e2e8f0;
  margin-bottom: 1em;
  line-height: 1.4;
  text-align: center;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.5em 0.75em;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.375em;
  color: #f87171;
  font-size: 0.875em;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #334155, transparent);
  margin: 1.5em 0;
}

/* ===================================
   Modal Content Styles
   =================================== */
.modal-description {
  color: #cbd5e1;
  line-height: 1.5;
  text-align: center;
  font-size: 1.2em;
}

.BLACK-FRIDAY {
  top: 0;
  width: 100%;
  height: 64px;
  /*background: #0d0b09;*/
  background: #003d14;
  line-height: 64px;
  /*color: #fff;*/
  color: #fdf6c4;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
  font-size: 20px;
  font-weight: bold;
  overflow: hidden;
  cursor: pointer;
  z-index: 98;
}

.BLACK-FRIDAY .text {
  width: fit-content;
  white-space: nowrap; /* 防止文本换行 */
  animation: roll 30s infinite linear;
}
.BLACK-FRIDAY .text span {
  padding: 0 50px;
}

@keyframes roll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* 滚动到一半，实现无缝效果 */
  }
}

/* ===================================
   Offers Section Styles
   =================================== */
.offers-section {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 150px;
  overflow-y: auto;
  padding-top: 1em;
  flex: 1;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  width: 100%;
  align-items: center;
  justify-content: center;
}

.offer-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid #334155;
  border-radius: 0.75em;
  padding: 1em;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
}

.offer-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(30, 41, 59, 0.5);
  transform: translateY(-1px);
}

.offer-icon {
  width: 2.25em;
  height: 2.25em;
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.offer-icon-pro {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.offer-icon-max {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

.offer-icon-trial {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.2);
}

.offer-content {
  flex: 1;
}

.offer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25em;
  font-size: 1em;
  line-height: 1.4;
}

.offer-description {
  color: #94a3b8;
  font-size: 0.875em;
  line-height: 1.4;
}

/* ===================================
   Call to Action Section
   =================================== */
.cta-section {
  position: absolute;
  left: 0;
  text-align: center;
  background: linear-gradient(0deg, #1e3b31 0%, #1e3b31 100%),
    linear-gradient(135deg, #09090b 0%, #000 50%, #18181b 100%);
  width: 100%;
  padding: 16px 40px 40px;
  bottom: 0;
}

.cta-description {
  color: #cbd5e1;
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.4;
  text-align: center;
}

.cta-button-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: linear-gradient(135deg, #ef312a, #d92920);
  color: white;
  padding: 1em 2em;
  border-radius: 0.75em;
  font-weight: 600;
  font-size: 1.5em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 49, 42, 0.3);
  text-decoration: none;
  width: 100%;
  cursor: pointer;
}

.cta-button-primary:hover {
  background: linear-gradient(135deg, #d92920, #c12018);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(239, 49, 42, 0.4);
}

.cta-button-primary:focus {
  outline: 2px solid #ef312a;
  outline-offset: 2px;
}

.cta-button-primary svg {
  transition: transform 0.3s ease;
}

.cta-button-primary:hover svg {
  transform: translateX(4px);
}

.modal-content-cristmas {
  width: 100%;
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.left-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: -20px;
  background: #1e3b31;
  transform: translate(0, -50%);
}
.right-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  right: -20px;
  background: #1e3b31;
  transform: translate(0, -50%);
}
.modal-image-cristmas {
  position: absolute;
  top: -170px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 300px;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0, 0.8, 0.4, 1);
}
.modal-image-cristmas-container {
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);

  margin-bottom: 10px;
  height: 130px;
  display: flex;
  justify-content: center;
}
.modal-offer-description {
  text-align: center;
  font-family: Arial;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  color: #fff;
}

.line-separator {
  width: 100%;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
}
.modal-offer-expiring-soon {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-family: Arial;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  padding: 14px 0;
}
.modal-offer-title {
  display: flex;
  align-self: flex-end;
}

.modal-countdown-container {
  margin: 36px 0;
  width: 100%;
}
.modal-countdown-text {
  color: #c2ffea;
  text-align: center;
  font-family: Arial;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}
.modal-countdown-container .single-text {
  display: flex;
  width: 80px;
  height: 80px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 0.667px solid rgba(113, 184, 160, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #c2ffea;
  font-family: Arial;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.modal-countdown-container .dot {
  color: rgba(0, 231, 177, 0.6);
  font-family: Arial;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.modal-countdown-container .coupon-countdown1 {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet Styles */
@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .countdown-display {
    flex-wrap: nowrap;
  }

  .time-unit {
    min-width: 3.5em;
    padding: 0.75em 1em;
  }

  .time-value {
    font-size: 1.5em;
  }
}

/* Large Tablet/Desktop Styles */
@media (min-width: 1024px) {
  :root {
    --font-size: 14px;
  }
  .offer-card {
    padding: 1.25em;
  }

  .offer-icon {
    width: 2.5em;
    height: 2.5em;
  }
}

/* Large Desktop Styles */
@media (min-width: 1280px) {
  .container {
    padding: 0 2em;
  }

  .modal-content1 {
    max-width: min(80vw, calc(90vh * 1.2));
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75em;
  }

  .hero-subtitle {
    font-size: 1em;
  }

  .cta-button {
    padding: 0.875em 1.5em;
    font-size: 1em;
  }

  .modal-content1 {
    max-width: 95vw;
    height: 95vh;
  }

  .modal-content-section {
    padding: 1.5em;
  }

  .countdown-display {
    gap: 0.25em;
  }

  .time-unit {
    min-width: 2.5em;
    padding: 0.375em 0.5em;
  }

  .time-value {
    font-size: 1em;
  }

  .time-label {
    font-size: 0.625em;
  }

  .time-separator {
    font-size: 1em;
    margin: 0 0.125em;
  }

  .offer-card {
    padding: 0.75em;
    gap: 0.5em;
  }

  .offer-icon {
    width: 2em;
    height: 2em;
  }

  .offer-title {
    font-size: 0.875em;
  }

  .offer-description {
    font-size: 0.75em;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .site-header,
  .site-footer,
  .main-content {
    padding: 0;
  }

  .keke-membership-content {
    background: white;
    color: black;
  }
}

/* ===================================
   High Contrast Mode Support
   =================================== */
@media (prefers-contrast: high) {
  .modal-content1 {
    border: 2px solid #000;
  }

  .offer-card {
    border-width: 2px;
  }

  .cta-button,
  .cta-button-primary {
    border: 2px solid #000;
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
  .keke-membership-content {
    background-color: #0f172a;
    color: #f1f5f9;
  }

  .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .brand-title {
    color: #f1f5f9;
  }

  .hero-title {
    color: #f1f5f9;
  }

  .hero-subtitle {
    color: #94a3b8;
  }

  .site-footer {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

@media screen and (max-height: 900px) {
  .modal-content-section {
    width: 380px;
    padding: 40px 24px 24px 24px;
  }
  .modal-content-cristmas {
    max-height: 200px;
  }
  .modal-title {
    font-size: 24px;
  }

  .modal-subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .modal-description {
    font-size: 14px;
  }
  .offers-section {
    justify-content: flex-start;
    margin-bottom: 100px;
    padding: 0;
    gap: 0;
  }

  .modal-countdown-container {
    margin: 0;
    margin-top: 16px;
  }

  .cta-section {
    padding: 0 24px 24px 24px;
  }

  .cta-button-primary {
    font-size: 16px;
  }
  .cta-description {
    font-size: 12px;
  }

  .modal-countdown-text {
    font-size: 16px;
  }
}

@media screen and (max-height: 1000px) {
  .modal-content-cristmas {
    max-height: 280px;
  }
  .modal-content-cristmas img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .modal-countdown-container {
    margin-top: 12px;
  }
  .modal-countdown-container .coupon-countdown1 .single-text {
    width: 64px !important;
    height: 64px !important;
    font-size: 36px !important;
  }
  .offers-section{
    overflow: hidden;
  }
}
