* { box-sizing: border-box; margin:0; padding:0; }
html, body { height:100%; }
body{
  font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, Microsoft YaHei;
  width:100%; height:100vh; background-color:#f8f8f8; max-width:750px;
  -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;
}
a { color:#fff; text-decoration:none; }
img { width:100%; height:100%; }

/* container / hero */
.contain{ width:100%; height:100vh; position:relative; background:url(../images/bg-PBdhR.gif) no-repeat center/100% 100%; }
#section1{ position:absolute; top:36%; left:9%; width:81%; z-index:10; }
.boxcontent .boxword { padding:5% 8%; z-index:1; width:100%; }
.boxcontent .boxword .title { font-size:30px; text-align:center; font-weight:bold; color:#fff; }
.boxcontent .boxword .con { margin-top:2%; font-size:20px; color:#fff; font-weight:bold; line-height:22px; }

/* input & buttons */
.inputcode {
  width:100%; height:8%; border-radius:2rem; margin-top:1rem; padding:1rem 2rem;
  text-align:center; font-size:14px; background:rgba(17,67,92,0.5); color:#fff; outline:none;
  border:0;
}
.inputcode::placeholder{ color:#9ca8ce; }

.fxbtn, .btn2, .btn {
  width:100%; padding:14px 0; border:0; border-radius:24px;
  background: linear-gradient(90deg,#12ebd0 0%,#12ebd0 100%); color:#fff; font-size:1.1rem; font-weight:600;
  cursor:pointer; transition:background .2s; margin-top:15px; box-shadow:0 2px 8px rgba(30,198,230,0.18);
  animation: btn-breath 1.8s ease-in-out infinite;
}
#chat-btn{ background:#15a223; color:#fff; padding:12px 0; border-radius:8px; width:100%; display:flex; justify-content:center; align-items:center; }

/* modal & result */
#tc-modal{ position:fixed; inset:0; display:none; justify-content:center; align-items:center; z-index:9999; background:rgba(0,0,0,0.7); color:#fff; }
.resultcontain, .probox { background:rgb(5,16,26); border-radius:12px; padding:32px 18px; max-width:340px; margin:60px auto; }
.word{ font-size:18px; font-weight:bold; }

/* error overlay */
.error{ position:fixed; inset:0; display:flex; z-index:99999; align-items:center; justify-content:center; background:rgba(0,0,0,0.7); }
.error-content{
  padding:30px; line-height:1.5; word-break:break-all; overflow:auto; font-size:18px; color:#fff;
  background:rgba(0,0,0,0.8); border-radius:10px; box-shadow:0 4px 8px rgba(0,0,0,0.5); max-width:750px; text-align:center; width:100%;
}

/* progress bars */
.progress-box { margin-top:8px; }
.layui-progress { background:#eee; border-radius:8px; height:16px; overflow:hidden; }
.layui-progress-bar{ height:100%; border-radius:8px; background:#00dcf4; width:0; transition:width .2s ease; }

/* responsive */
@media screen and (min-width:700px){ html { display:flex; justify-content:center; } }
@media all and (max-width:767px){
  .boxcontent .boxword{ padding:8% 6%; }
  .boxcontent .boxword .title{ font-size:20px; }
  .boxcontent .boxword .con{ font-size:14px; }
}

@keyframes btn-breath {
  0% { box-shadow: 0 2px 16px rgba(30,198,230,0.25),0 2px 8px rgba(30,198,230,0.18); transform:scale(1); }
  50% { box-shadow: 0 4px 32px rgba(30,198,230,0.38),0 2px 16px rgba(30,198,230,0.22); transform:scale(1.04); }
  100% { box-shadow: 0 2px 16px rgba(30,198,230,0.25),0 2px 8px rgba(30,198,230,0.18); transform:scale(1); }
}
