:root {
  --bg: #01411a;
  --card: #0c5e2a;
  --accent: #f6ca00;
  --text: #f6f6f6;
  --muted: #b9d9c7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.app {
  width: 100%;
  max-width: 430px;
  background: #00682d;
  padding: 0 12px 60px;
  position: relative;
}
header.top-bar {
  height: 56px;
  background: #03522c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin: 0 -12px 16px -12px;
  width: calc(100% + 24px);
  position: relative;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f7f7f7;
}
.logo img {
  height: 30px;
  display: block;
}
.badge img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
.badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #f6ca00, #c68d00);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0d3512;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #0b6b34 0%, #02572c 100%);
  padding: 6px 0 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 12px rgba(0,0,0,0.3);
  overflow: hidden;
}
nav .item {
  display: grid;
  gap: 3px;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
}
nav .item a {
  text-decoration: none;
  color: #ffffff;
  display: grid;
  gap: 3px;
  place-items: center;
  width: 100%;
}
nav .item img { height: 20px; width: auto; display: block; }
nav .active { color: var(--accent); }
nav .active img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }

.warrant-banner {
  background: #1a522d;
  padding: 16px;
  margin: -18px -12px 16px -12px;
  width: calc(100% + 24px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.warrant-banner .banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.warrant-banner .banner-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.warrant-banner .banner-description {
  margin: 10px 0;
  font-size: 13px;
  color: white;
  font-weight: bold;
  text-align: left;
  line-height: 1.6;
}
.warrant-banner .banner-link {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
  margin-top: -17px;
}
.warrant-banner .banner-flag {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warrant-banner .banner-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.warrant-title {
  margin-left: 20px;
  margin-right: 10px;
  font-size: 19px;
  font-weight: bold;
  text-align: left;
  text-transform: none;
  font-family: "Times New Roman", serif;
}

.promo-card {
  background: #1a522d;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.promo-card-header {
  text-align: center;
  margin-bottom: 12px;
}
.promo-card-logo {
  display: block;
  margin-bottom: 12px;
}
.promo-card-logo img {
  height: 32px;
  display: block;
  margin: 0 auto;
}
.promo-card-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.promo-card-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card-offer {
  text-align: center;
  color: #f6ca00;
  font-size: 16px;
  font-weight: 800;
  margin: 12px 0 8px 0;
  line-height: 1.4;
}
.promo-card-button {
  background: #f6ca00;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.promo-card-button-wrapper {
  text-align: center;
}
.promo-card-button img {
  width: 25px;
  height: 25px;
}
.promo-card-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 16px 0;
  padding-top: 16px;
}
.promo-card-stat {
  text-align: center;
}
.promo-card-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0);
}
.promo-card-stat-label {
  color: #b9d9c7;
  font-size: 12px;
  margin-bottom: 6px;
}
.promo-card-stat-value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}
.promo-card-stat-value.highlight {
  color: #00ff00;
  font-size: 16px;
}
.promo-card-more {
  text-align: center;
  background-color: #03522c;
  padding: 6px;
  font-size: 20px;
  font-weight: bold;
  color: #fee001;
  border-top: 1px solid #555;
  cursor: pointer;
}
.promo-card-more-link {
  color: #f6ca00;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* 卡片状态样式 */
.promo-card-state {
  transition: all 0.3s ease;
}

/* 初始状态显示，切换状态隐藏 */
.promo-card-state-initial {
  display: block;
}

.promo-card-state-switch {
  display: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}

/* 切换状态激活时显示 */
.promo-card.switched .promo-card-state-initial {
  display: none;
}

.promo-card.switched .promo-card-state-switch {
  display: block;
}

/* 切换状态内容样式 */
.promo-card-switch-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.promo-card-switch-title {
  color: #f6ca00;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  margin-left: -10vw;
}

.promo-card-switch-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: -10px 0;
  flex-wrap: wrap;
  margin-left: -47vw;
}

.payment-icon {
  max-height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.promo-card-switch-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 15px 0;
  width: 100%;
}

.promo-card-switch-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  text-align: left;
  justify-content: center;
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #fff;
  color: #1a7d1a;
  border-radius: 50%;
  font-size: 14px;
  margin-right: 8px;
}

.feature-text {
  color: rgb(221, 221, 221);
  flex: 1;
  text-align: left;
  max-width: 300px;
  font-size: 12px;
}

.promo-card-switch-button-wrapper {
  text-align: center;
  margin: -20px 0;
  width: 100%;
}

.promo-card-switch-button {
  background: #f6ca00;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promo-card-switch-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(15%) sepia(98%) saturate(3344%) hue-rotate(107deg) brightness(97%) contrast(103%);
}

.promo-card-more {
  text-align: center;
  background-color: transparent;
  padding: 10px 0 0;
  font-size: 14px;
  font-weight: bold;
  color: #f6ca00;
  border-top: 1px solid #f6ca00;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  font-family: Arial, sans-serif;
}

.promo-card-more-link {
  color: #f6ca00;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}

.promo-card-link {
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Flying Plane */
.flying-plane {
    position: fixed;
    bottom: 80px;
    right: 10px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    pointer-events: none;
}

.flying-plane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
  .app {
    padding: 0 10px 60px;
  }
  .flying-plane {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 8px;
    }
}
@media (min-width: 431px) {
  .app {
    margin: 0 auto;
  }
  nav {
    left: 50%;
    transform: translateX(-50%);
  }
}

