/* 基本样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation
}

.lang-ja {
  font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

.lang-zh {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "ヒラギノ角ゴ ProN",
    "Hiragino Kaku Gothic ProN",
    "メイリオ",
    Meiryo,
    sans-serif;
}

.lang-en {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* header */

.header {
  background-color: #9b5f2c;
  width: 100%;
  height: 60px;
  -webkit-user-select: none;
  /* Safari */
  user-select: none;
  transition: all 0.3s ease;
}

/* 🌟 Transparent Header Variant */
#header-placeholder.is-transparent .header {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-box {
  width: 100%;
  max-width: 1200px;
  height: 60px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
  padding: 0 20px;
}

.header-logo {
  width: 54px;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .header-box {
    padding: 0 20px;
  }

  .header-logo {
    width: 54px;
  }
}

.header-btn {
  width: 105px;
  height: 32px;
  line-height: 32px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.header-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-user-select: none;
  /* Safari */
  user-select: none;
}

.header-btn-login img {
  height: 16px;
}

.header-lang {
  position: relative;
}

.header-lang-btn {
  cursor: pointer;
  align-items: center;
}

.header-order-check{
  cursor: pointer;
  margin-right: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* 下拉菜单 */
.header-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 6px;
  display: none;
  min-width: 100px;
  z-index: 1000;
}

.header-lang-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.header-lang-item:hover {
  background: #f5f5f5;
}


.footer-lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #3d3d3d;
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 6px;
  display: none;
  min-width: 100px;
  z-index: 1000;
  width: 100%;
}

.footer-lang-item {
  padding: 20px 12px;
  cursor: pointer;
  white-space: nowrap;
}



/* 箭头 */
.lang-arrow {
  font-size: 10px;
}


/* footer */
.footer {
  width: 100%;
  -webkit-user-select: none;
  /* Safari */
  user-select: none;
}

.footer-kmm {
  width: 100%;
  font-size: 12px;
  width: 100%;
  color: white;
  padding-top: 30px;
}


.footer-box {
  width: 100%;
  color: white;
  font-size: 14px;
  text-align: center;
  background-color: black;
  padding-bottom: 30px;
}

.footer-box-policy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background-color: black;
  padding: 20px 0;
}

.footer-box-policy-node {
  all: unset;
  /* 重置所有属性（包括颜色、下划线、hover状态等） */
  cursor: pointer;
  color: white;
}

.footer-box-policy-node-lang {
  display: none;
}

.footer-box-policy-node-title {
  margin: 6px 10px;
}

.footer-license {
  border-radius: 5px;
  padding: 20px 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1f1f1f;
  width: 1000px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.footer-license img {
  color: black;
  height: 50px;
}

.footer-box-logo {
  width: 100%;
  font-weight: bold;
  background-color: black;
  border-radius: 3px;
  color: gray;
  fill: #fff;
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-box-logo img {
  height: 22px;
}

.footer-box-logo-card {
  padding: 0 10px;
}

.footer-box-logo-globe {
  padding: 0 10px;
}

.etiPartnerLogo {
  height: 22px;
  width: auto;
}

.footer-allrights {
  width: 100%;
  height: 34px;
  background-color: black;
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 34px;
}

/* 自定义警告弹窗 */
/* 遮罩层 */
#customAlertOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 弹窗主体 */
#customAlertBox {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 400px;
  max-width: 90%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#customAlertBox-title {
  background-color: #095f70;
  height: 50px;
  width: 100%;
  text-align: center;
}

#customAlertBox-title-logo {
  height: 70%;
  margin-top: 8px;
  margin-left: 30px;
}

#customAlertMessage {
  padding: 20px;
}

#customAlertBox button {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 3px;
  background: #ffc11c;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  color: #222;
  cursor: pointer;
  white-space: nowrap;
  line-height: 44px;
  width: 250px;
  text-align: center;
  transition: all 0.1s;
  -webkit-user-select: none;
  user-select: none;
  margin-bottom: 20px;
}

.customMessageBtn1 {
  margin-bottom: 10px !important;
}

.customMessageBtn2 {
  background: #1ba1ff !important;
  color: white !important;
  margin-bottom: 30px !important;
}

#customAlertBox button:hover {
  background-color: #d6a10f;
}

.input-arrow {
  display: none;
}

/* Pikaday-master日期选择框定制css */

.pika-lendar {
  float: left;
  width: 400px !important;
  margin: 8px;
}

.pika-table th {
  color: #999;
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
  text-align: center;
  height: 35px;
}

.pika-button {
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  outline: none;
  border: 0;
  margin: 0;
  width: 100%;
  padding: 5px;
  color: #666;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  background: #f5f5f5;
  height: 35px !important;
}

.lang-en .hanzi {
  display: none;
}

.lang-en .kana {
  display: none;
}

.lang-zh .kana {
  display: none;
}


@media screen and (max-width: 767px) {
  .header-lang {
    display: none;
  }

  .header-order-check{
    display: none;
  }

  .footer-box-policy-node-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: auto;
    margin-left: 5%;
    padding: 5px 10px;
    position: relative;
    border: 1px solid white;
    border-radius: 5px;
    margin-bottom: 6px;
  }

  .footer-box-policy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  .footer-license {
    border-radius: 5px;
    padding: 20px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1f1f1f;
    width: 1000px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-box-policy-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid white;
    padding: 10px 0;
    position: relative;
  }

  .footer-box-policy-node-title {
    text-align: left;
  }

  .footer-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    /* 45度旋转成箭头形 */
    margin: 6px 10px;
  }

  .footer-box-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap
  }

  .footer-box-logo-card {
    width: 25%;
    padding: 0 10px 15px 10px;
  }

  .footer-box-logo-globe {
    width: 30%;
    padding: 0 10px;
  }

  /* Pikaday-master日期选择框定制css */

  .pika-single {
    z-index: 9999;
    display: block;
    position: relative;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom-color: #bbb;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 100%;
  }

  .pika-lendar {
    float: left;
    width: calc(100% - 16px) !important;
    margin: 8px;
  }
}

/* login流光代码 */

/* 让文字在最上层，避免被SVG/伪元素影响 */
#header-btn {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

#header-btn {
  z-index: 1;
}

#header-btn * {
  position: relative;
  z-index: 2;
}

/* 关键：SVG 放底层（否则会挡住伪元素的视觉） */
#header-btn .trace-svg {
  z-index: 1 !important;
  opacity: 0;
  /* ✅ 直接隐藏你原来的SVG流光（可删） */
}

/* 白色扫光条 */
#header-btn::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  pointer-events: none;
  z-index: 3;

  /* 白色渐变：中间亮，两边透明 */
  background: linear-gradient(120deg,
      rgba(120, 220, 255, 0) 0%,
      rgba(120, 220, 255, 0.18) 35%,
      rgba(200, 250, 255, 0.9) 50%,
      rgba(120, 220, 255, 0.18) 65%,
      rgba(120, 220, 255, 0) 100%);

  transform: translateX(0) skewX(-20deg);
  opacity: 0;

  /* 3.2秒一个周期：前2.2秒不动，后1秒刷过去 */
  animation: loginShineOnce 4.2s ease-in-out infinite;
}

.header-logo-word{
  margin-left: 4px;
  margin-right: auto;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: Georgia, "Times New Roman", serif;
  color: transparent;
  background: linear-gradient(
    180deg,
    #fffbe8 0%,
    #ffe9a3 14%,
    #f7c94d 28%,
    #fff4c7 42%,
    #d79a22 58%,
    #b87412 72%,
    #f5d46c 86%,
    #fffdf3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(120, 73, 6, 0.55);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.55),
    0 2px 0 rgba(214,164,43,0.45),
    0 4px 8px rgba(0,0,0,0.18),
    0 10px 18px rgba(0,0,0,0.12);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.header-logo-word::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #0d3566;
  text-shadow:
    0 2px 0 rgba(7, 32, 67, 0.85),
    0 4px 10px rgba(0,0,0,0.2);
  transform: translate(2px, 3px);
  opacity: 0.55;
}

.header-logo-word::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    115deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.95) 48%,
    rgba(255,255,255,0) 60%
  );
  background-size: 220% 100%;
  background-position: 140% 0;
  animation: royalLogoShine 3.2s ease-in-out infinite;
}

.header-logo-word:hover{
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2));
  transition: all .25s ease;
}

@keyframes royalLogoShine{
  0%, 20%{
    background-position: 140% 0;
    opacity: 0;
  }
  30%{
    opacity: 1;
  }
  60%{
    background-position: -40% 0;
    opacity: 1;
  }
  100%{
    background-position: -40% 0;
    opacity: 0;
  }
}

@media (max-width: 768px){
  .header-logo-word{
    font-size: clamp(24px, 7vw, 40px);
    letter-spacing: 0;
    -webkit-text-stroke: 0.8px rgba(120, 73, 6, 0.55);
  }

  .header-logo-word::before{
    transform: translate(1.5px, 2px);
  }
}

.header-logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img{
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

/* 动画：等待 -> 刷过去 -> 消失 */
@keyframes loginShineOnce {

  0%,
  68% {
    opacity: 0;
    transform: translateX(0) skewX(-20deg);
  }

  69% {
    opacity: 1;
  }

  92% {
    opacity: 1;
    transform: translateX(360%) skewX(-20deg);
  }

  100% {
    opacity: 0;
    transform: translateX(360%) skewX(-20deg);
  }
}

/* hover 更频繁一点（可选） */
#header-btn:hover::before {
  animation-duration: 2.2s;
}