/* hga030.pro 客服联系页。账号只改 /js/config.js */

:root {
  --nav: #3f271c;
  --gold: #c9a24a;
  --gold-2: #e4c36a;
  --gold-deep: #8c6a28;
  --text: #3a2e26;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.splash-active {
  overflow: hidden;
}

html.skip-splash .splash {
  display: none;
}

html.skip-splash body.splash-active {
  overflow: auto;
}

.phone {
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(520px 280px at 50% 38%, rgba(201, 162, 74, 0.32), transparent 68%),
    linear-gradient(165deg, #5c3d2c 0%, #3f271c 52%, #2c1b14 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 340px;
  height: 180px;
  border-radius: 50%;
  background: rgba(228, 195, 106, 0.28);
  filter: blur(30px);
}

.splash-inner {
  position: relative;
  padding: 1rem;
  color: #f8f3ea;
  text-align: center;
}

.splash-logo {
  width: min(210px, 58vw);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: screen;
  animation: crownIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both, crown-glow 3.2s ease-in-out 0.7s infinite;
}

.splash-title {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.splash-slogan {
  margin-top: 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.splash-title.gold-flow {
  animation: fadeUp 0.45s ease 0.06s both, slogan-flow 2.6s linear 0.5s infinite;
}

.splash-slogan.gold-flow {
  animation: fadeUp 0.45s ease 0.14s both, slogan-flow 2.6s linear 0.6s infinite;
}

.splash-bar {
  width: 148px;
  height: 3px;
  margin: 1.1rem auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.splash-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fff4d2 70%, var(--gold-2));
  animation: load 1.55s ease forwards;
}

@keyframes crownIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes load {
  to { width: 100%; }
}

.mast {
  color: #f6efe4;
  background:
    radial-gradient(520px 200px at 18% 0%, rgba(228, 195, 106, 0.2), transparent 58%),
    linear-gradient(180deg, #5a3a28 0%, #3f271c 58%, #3a241b 100%);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
}

.mark {
  display: block;
}

.mark-lg {
  margin: 0 auto 0.2rem;
}

.brand img {
  width: 132px;
  height: auto;
  mix-blend-mode: screen;
  animation: crown-glow 3.2s ease-in-out infinite;
}

.brand strong {
  display: block;
  margin-top: 0.15rem;
  padding-left: 0.28em;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
}

.slogan {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.gold-flow {
  color: transparent;
  background-image: linear-gradient(
    105deg,
    #7a5a22 0%,
    #c9a24a 16%,
    #fff6d2 30%,
    #e8c56a 42%,
    #fffdf4 50%,
    #d4b15a 58%,
    #8c6a28 74%,
    #f3e2b8 88%,
    #7a5a22 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slogan-flow 2.6s linear infinite;
}

@keyframes slogan-flow {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes crown-glow {
  0%,
  100% {
    filter: brightness(0.9);
  }

  50% {
    filter: brightness(1.28);
  }
}

.wrap {
  flex: 1 0 auto;
  width: calc(100% - 1.25rem);
  margin: 0 auto;
  padding: 1rem 0 0;
}

.group {
  margin: 0.15rem 0.15rem 0.55rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.group + .actions {
  margin-bottom: 1rem;
}

.auto-banner {
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid var(--gold);
  color: var(--nav);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.auto-banner a {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold-deep);
  text-decoration: underline;
}

.actions {
  display: grid;
  gap: 0.65rem;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 56px;
  padding: 0.75rem 0.8rem;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(228, 195, 106, 0.55);
  animation: btn-rise 0.5s ease both;
}

.actions .btn:nth-child(2) { animation-delay: 0.08s; }
.actions .btn:nth-child(3) { animation-delay: 0.16s; }
.actions + .group + .actions .btn:nth-child(1) { animation-delay: 0.32s; }
.actions + .group + .actions .btn:nth-child(2) { animation-delay: 0.4s; }
.actions + .group + .actions .btn:nth-child(3) { animation-delay: 0.48s; }
.actions + .group + .actions .btn:nth-child(4) { animation-delay: 0.56s; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(228, 195, 106, 0.42) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: btn-sheen 8.4s ease-in-out infinite;
  pointer-events: none;
}

.actions .btn:nth-child(1)::before { animation-delay: 0.4s; }
.actions .btn:nth-child(2)::before { animation-delay: 1.6s; }
.actions .btn:nth-child(3)::before { animation-delay: 2.8s; }
.actions + .group + .actions .btn:nth-child(1)::before { animation-delay: 4s; }
.actions + .group + .actions .btn:nth-child(2)::before { animation-delay: 5.2s; }
.actions + .group + .actions .btn:nth-child(3)::before { animation-delay: 6.4s; }
.actions + .group + .actions .btn:nth-child(4)::before { animation-delay: 7.6s; }

@keyframes btn-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes btn-sheen {
  0%,
  14% {
    transform: translateX(-130%);
  }

  30%,
  100% {
    transform: translateX(130%);
  }
}

.btn .ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.btn-site::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--gold-2);
  border-right: 1.5px solid var(--gold-2);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.btn:active {
  filter: brightness(1.08);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.note {
  margin-top: auto;
  padding: 1.2rem 0.8rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: #8d8174;
  font-size: 0.75rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-title,
  .splash-slogan,
  .splash-bar span,
  .btn,
  .btn::before,
  .gold-flow,
  .brand img {
    animation: none;
  }

  .gold-flow {
    color: #f3e2b8;
    background: none;
    -webkit-text-fill-color: #f3e2b8;
  }

  .splash {
    transition: none;
  }
}
