* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 762px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0D1117;
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  width: calc(100% - 10px); /* 调整宽度 */
  left: 5px; /* 新增左侧定位 */
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: #161B22;
  z-index: 100;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.title {
  margin-left: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.language-switch {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative; /* 新增定位上下文 */
}

.content {
  margin-top: 56px;
  margin-bottom: 64px;
  overflow-y: auto;
  padding: 0 10px; /* 新增内边距 */
}

.banner {
  position: relative;
  margin: 0 5px;  /* 添加外边距 */
  border-radius: 8px; /* 新增圆角 */
}

.banner-main-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0 5px 12px; /* 添加左右margin */
}

.banner-subtitle {
  font-size: 14px;
  color: #E0E0E0;
  line-height: 1.5;
  margin: 0 5px 16px; /* 添加左右margin */
}

.banner-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 5px;  /* 新增容器内边距 */
}

.banner-features span {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  font-size: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 24px 5px 12px;
}

.about {
  margin: 0 5px;
}

.about-content {
  font-size: 14px;
  color: #A0AEC0;
  line-height: 1.6;
  background: #161B22;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px; /* 与标题保持间距 */
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 5px;
}

.business-item {
  background: #161B22;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.business-text {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 5px;
  margin-bottom: 32px;
}

.partner-item {
  padding: 16px;
  background: #1A1F2E;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.business-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  width: calc(100% - 10px); /* 调整宽度 */
  left: 5px; /* 新增左侧定位 */
  height: 64px;
  background: #161B22;
  border-top: 1px solid #2D3748;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #666;
}

.tab-item i {
  font-size: 22px; /* 从默认16px扩大一倍 */
}

.tab-item.active {
  color: #4080FF;
}

.tab-text {
  font-size: 12px;
}

.language-popup {
  position: fixed;
  top: 56px;
  right: 5px;  /* 改为右侧定位 */
  width: auto;
  min-width: 120px;
  background: #161B22;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid #2D3748;
  z-index: 1000;
  display: none;
}

.language-popup.show {
  display: block;
}

.language-header {
  padding: 12px 16px;
  border-bottom: 1px solid #2D3748;
}

.language-title {
  color: #fff;
  font-size: 14px;
}

.language-list {
  padding: 0 16px;
}

.language-item {
  color: #A0AEC0;
  padding: 12px 16px;
}

.language-item:hover {
  background: rgba(255,255,255,0.05);
}

.fa-times {
  color: #A0AEC0;
}

.language-selected {
  color: #4080FF;
}

.mask {
  display: none !important;
}

.announcement {
  margin: 16px 5px 0;
}

.announcement-container {
  background: #161B22;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer; /* 添加指针效果 */
}

.announcement-text {
  font-size: 14px;
  color: #A0AEC0;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden; 
  text-overflow: ellipsis; /* 添加缩略号 */
  flex: 1; /* 自动填充剩余空间 */
}
.announcement-container i {
  color: #4080FF;
  font-size: 18px;
  flex-shrink: 0; 
}

.nav-bar {
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 50;
      background-color: #1A1F2E;
      min-height: 64px; /* 新增高度设置 */
      display: flex;
      align-items: center;
      padding: 0 1rem; /* 调整左右间距 */
  }

  /* 新增右侧定位样式 */
  .nav-bar > button:last-child {
      margin-left: auto;
      margin-right: 0.5rem; /* 保持适当间距 */
  }

  .nav-bar > div { /* 新增选择器 */
      flex: 1; /* 左右元素平分空间 */
      text-align: center; /* 标题强制居中 */
  }

  .nav-bar > div:first-child { /* logo容器 */
      text-align: left;
  }

  .nav-bar > div:last-child { /* 语言按钮容器 */
      text-align: right;
  }
  .announcement-container i img {
    width: 24px; /* 调整图片宽度 */
    height: 24px; /* 调整图片高度 */
    object-fit: contain; /* 保持图片比例 */
  }
  .notification-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
  }
  .tab-active {
      color: #007AFF;
      border-bottom: 2px solid #007AFF;
  }
  .bell-icon {
      background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
  }
  .main-content {
    margin-top: 60px;
    margin-bottom: 20px;
  }
  .highlight {
      color: #007AFF;
  }
  .content-section {
      margin-bottom: 16px;
      line-height: 1.6;
  }
  .content-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 16px;
    padding: 20px;
  }
  .back-button {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background-color: #007AFF;
  }

  .fl_left {
	    float: left;
	}

	.fl_right {
	    float: right;
	}
  .product-image {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 12px;
  }
  .card {
    background-color: #232A40;
    border-radius: 16px;
  }
  .recharge-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
}
.price-tag {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 16px;
}
.buy-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #007AFF;
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.paymentMask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.paymentPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1A1F2E;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
}
.payment-button {
    background: #007AFF;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
}
.content_user {
  padding-top: 64px;
  margin-bottom: 100px;
  min-height: calc(100vh - 184px);
  padding: 0 10px;
}


.qr-container {
  background-color: #252B3C; /* 新增，比背景色稍亮的深色 */
  border-radius: 16px; /* 可选，保持圆角一致 */
  padding: 16px; /* 可选，添加内边距 */
  margin: 15px;
}

.line {
  border-bottom: 1px solid #374151; /* 浅灰色分隔线 */
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.mar_top4{
  margin-top: 4px;
}
#static_income::after {
  content: "";
  display: table;
  clear: both;
}

.stats-item {
  background: rgba(255, 255, 255, 0.05);
}
.copy-btn {
  background: linear-gradient(45deg, #1E90FF, #4169E1);
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #252B3C;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
}
input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
}
input::placeholder {
  color: #8b949e;
}
.input-container {
  border-bottom: 1px solid #252B3C;
  padding: 12px 0;
  margin-bottom: 16px;
}
.gradient-card {
  background-color: #252B3C;
}

.tl_center {
  text-align: center;
  width: fit-content; /* 或者指定具体宽度 */
  margin:0 auto;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-primary {
  --tw-text-opacity: 1;
  color: rgb(30 144 255 / var(--tw-text-opacity, 1));
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: #252B3C;
}

.bg-primary {
  background-color: #007AFF;
}