/* 背景层 - 放在最底层 */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* 关键：负值让背景在内容后面 */
  background-image: url("assets/policy-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 内容层 - 确保在背景上面 */
.content {
  position: relative;
  z-index: 1;
  /* 正值让内容在背景前面 */
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  /* 可选：半透明白色背景让文字更清晰 */
}

p {
  text-indent: 2em;
  /* 首行缩进 2 个字符宽度 */
  text-align: justify;
  /* 可选：两端对齐，让段落更整齐 */
  margin-bottom: 1em;
  /* 段与段之间的间距 */
}

.terms_page {
  display: flex;
  /* justify-content: space-around; */
  padding-bottom: 10px;

  justify-content: flex-start;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);

}

.terms_page_items {
  position: relative;
  cursor: pointer;
  padding: 10px 20px;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none;
}

.terms_page_items .tab-text {
  font-size: 16px;
  color: #c6c6c6;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.terms_page_items.active .tab-text {
  color: #ffffff;
  font-weight: bold;
}

.terms_page_items .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: all 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.terms_page_items .line_change {
  background-color: #007bff;
  width: 100%;
}

.content-item {
  display: none;
  padding: 20px;
}

.content-item.active {
  display: block;
}

.important-notice {
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
}

table td {
  border: 1px solid #999;
  padding: 4px;
}

/* 顶部悬浮导航栏样式 */
#custom-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.9);
  /* 黑色底图，带微透明 */
  backdrop-filter: blur(10px);
  /* 毛玻璃效果 */
  z-index: 10001;
  /* 确保在所有元素之上 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  border-bottom: none !important;
  /* 移除模板默认下划线 */
  cursor: pointer;
}

.nav-item:hover {
  color: #49bf9d !important;
  /* 悬停颜色，可根据需要修改 */
}

.nav-app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 5px 12px 5px 10px;
  color: #ffffff !important;
  text-decoration: none;
  background: #050505;
  border: 1px solid #c8a449 !important;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 143, 0.18), 0 5px 14px rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-app-store:hover {
  color: #ffffff !important;
  background: #111111;
  border-color: #f1c85a !important;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 143, 0.28), 0 7px 18px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
}

.nav-app-store-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.nav-app-store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.nav-app-store-kicker {
  margin-bottom: 3px;
  color: #d6b45a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-app-store-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

/* 适配：给原本的 wrapper 增加顶部内边距，防止内容被遮挡 */
body {
  padding-top: 60px;
}

/* 移动端适配 */
@media screen and (max-width: 736px) {
  .nav-container {
    gap: 10px;
  }

  .nav-item {
    font-size: 0.7rem;
  }
}

/* 底部悬浮版权及联系信息栏 */
#custom-bottom-float {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  /* 与顶部导航栏一致的微透黑 */
  backdrop-filter: blur(10px);
  /* 毛玻璃效果 */
  z-index: 10001;
  /* 确保在最上层 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
}

#custom-bottom-float p {
  margin: 0;
  color: #ffffff;
}

#custom-bottom-float strong {
  color: #ffffff;
  /* 使用模板高亮色点缀邮箱 */
}

/* 移动端适配 */
@media screen and (max-width: 736px) {
  #custom-bottom-float {
    font-size: 0.75rem;
    padding: 10px 15px;
  }
}


/* Update container to ensure vertical centering and spacing */
.nav-container {
    display: flex;
    align-items: center; /* 确保所有元素垂直居中 */
    gap: 20px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* Logo 样式 */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 占满顶栏高度 */
    margin-right: 10px; /* 与第一个 About 按钮保持额外间距 */
    border-bottom: none !important; /* 移除 Dimension 模板的下划线 */
}

.nav-logo img {
    height: 30px; /* 调整图标高度，通常为顶栏高度的一半左右 */
    width: auto;  /* 保持比例 */
    display: block;
}

/* 适配移动端 */
@media screen and (max-width: 736px) {
    .nav-logo img {
        height: 24px; /* 移动端图标变小 */
    }
    .nav-logo {
        margin-right: 5px;
    }

    .nav-app-store {
        min-height: 34px;
        gap: 6px;
        padding: 4px 9px 4px 8px;
    }

    .nav-app-store-symbol {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .nav-app-store-kicker {
        display: none;
    }

    .nav-app-store-label {
        font-size: 13px;
    }
}


/* Preserve the original page's serif default across preview browsers. */
body { font-family: "Times New Roman", Times, serif; color: #fff; padding-bottom: 120px; }
.content { color: rgb(255, 255, 255); }
.content h1 { color: white; text-align: center; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid #007bff; outline-offset: 4px; }
button.terms_page_items { border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.content-item[hidden] { display: none; }
p { overflow-wrap: anywhere; }
#custom-bottom-float { box-sizing: border-box; }
#custom-bottom-float .product-policies { display: inline-flex; gap: 14px; font-size: clamp(11px, 1.7333vw, 13px); }
#custom-bottom-float .footer-address { display: block; margin: 8px auto; color: #bcb3a1; font-size: 9px; line-height: 1.65; }
#custom-bottom-float .footer-address-label { display: block; margin-bottom: 4px; font-size: 8px; }
#custom-bottom-float .footer-address bdi { display: block; font-family: Arial, sans-serif; }
#custom-bottom-float .footer-copyright { direction: ltr; unicode-bidi: isolate; }
