/*
 * 鼎点H5PC鸿蒙前端开发
 * 学习首页免费20题父页面自适应与大图预览
 * 版本：V2.11.9.36.1.71
 * 仅 question.html 引用
 */

.dd-guest-portal{
  width:min(1520px,calc(100vw - 28px))!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:clamp(16px,2vw,28px) 0 clamp(30px,4vw,52px)!important;
}
.dd-guest-title{
  margin-bottom:clamp(14px,1.5vw,22px)!important;
  padding:clamp(20px,2vw,30px) clamp(22px,2.4vw,36px)!important;
  border-radius:20px!important;
}
.dd-guest-title h1{font-size:clamp(25px,2.1vw,34px)!important}
.dd-guest-title p{font-size:clamp(14px,1.05vw,17px)!important;line-height:1.65}
.dd-guest-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.72fr) minmax(320px,.72fr)!important;
  gap:clamp(14px,1.5vw,24px)!important;
  align-items:stretch!important;
}
.dd-practice-frame-card{
  min-width:0;
  min-height:760px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border-radius:18px!important;
}
.dd-free-practice-frame{
  display:block;
  width:100%;
  height:760px;
  min-height:760px;
  border:0;
  background:#fff;
  border-radius:18px;
}
.dd-auth-card{
  width:100%;
  min-width:0;
  height:100%;
  min-height:100%;
  position:relative!important;
  top:auto!important;
  align-self:stretch!important;
  display:flex;
  flex-direction:column;
}


/* 学习首页与注册登录区域统一字重和正式商业版排版。 */
.dd-guest-portal,
.dd-guest-portal button,
.dd-guest-portal input,
.dd-guest-portal label,
.dd-guest-portal span,
.dd-guest-portal p,
.dd-guest-portal b,
.dd-guest-portal h1,
.dd-guest-portal h2{
  font-weight:700!important;
}
.dd-guest-title h1,
.dd-auth-head h2,
.dd-auth-tabs button.active,
.dd-auth-primary{
  font-weight:900!important;
}
.dd-auth-card .dd-auth-form:not([hidden]){display:grid!important}
.dd-auth-card .dd-auth-form{width:100%}
.dd-auth-card .dd-auth-primary{margin-top:2px}
.dd-auth-card input::placeholder{font-weight:600;color:#8a9ba0}

/* 父页面统一大图预览，避免iframe内部弹窗只覆盖左侧卡片。 */
.dd-home-image-modal{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px,2.4vw,34px);
  background:rgba(5,22,24,.72);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
}
.dd-home-image-modal[hidden]{display:none!important}
.dd-home-image-dialog{
  width:min(1080px,calc(100vw - 34px));
  max-height:92vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.34);
  border-radius:24px;
  background:#fff;
  box-shadow:0 32px 110px rgba(0,0,0,.42);
  animation:ddHomeImageIn .2s ease both;
}
@keyframes ddHomeImageIn{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.dd-home-image-head{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px 12px 24px;
  border-bottom:1px solid #e3eeee;
  background:linear-gradient(180deg,#fff,#f7fbfa);
}
.dd-home-image-head span{
  display:block;
  margin-bottom:3px;
  color:#0a8d83;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.dd-home-image-head h2{
  margin:0;
  color:#16373c;
  font-size:clamp(20px,1.7vw,27px);
  line-height:1.2;
}
.dd-home-image-head button{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border:1px solid #d6e7e5;
  border-radius:50%;
  background:#f0f8f7;
  color:#23484c;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transition:.18s ease;
}
.dd-home-image-head button:hover{background:#e3f4f1;color:#047d75;transform:rotate(4deg)}
.dd-home-image-stage{
  min-height:min(68vh,680px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px,2vw,28px);
  overflow:auto;
  background:
    radial-gradient(circle at 50% 42%,rgba(51,114,112,.62),transparent 48%),
    linear-gradient(145deg,#16383b,#0c2528 72%);
}
.dd-home-image-stage img{
  display:block;
  width:min(100%,980px);
  height:auto;
  max-width:100%;
  max-height:72vh;
  object-fit:contain;
  border-radius:15px;
  box-shadow:0 24px 76px rgba(0,0,0,.42);
  cursor:zoom-out;
  background:#fff;
}
.dd-home-image-tip{
  margin:0;
  padding:11px 18px 13px;
  border-top:1px solid #e4eeee;
  color:#6f8589;
  font-size:12px;
  line-height:1.5;
  text-align:center;
  background:#fbfdfd;
}
body.dd-home-image-open{overflow:hidden!important}

@media (min-width:1700px){
  .dd-guest-portal{width:min(1580px,calc(100vw - 40px))!important}
  .dd-guest-grid{grid-template-columns:minmax(0,1.82fr) minmax(340px,.68fr)!important}
}

@media (max-width:1180px){
  .dd-guest-portal{width:min(980px,calc(100vw - 24px))!important}
  .dd-guest-grid{grid-template-columns:1fr!important}
  .dd-auth-card{position:static!important;max-width:760px;height:auto;min-height:0;margin:0 auto}
  .dd-practice-frame-card{min-height:790px!important}
  .dd-free-practice-frame{height:790px;min-height:790px}
}

@media (max-width:760px){
  .dd-guest-portal{width:calc(100vw - 18px)!important;padding:10px 0 28px!important}
  .dd-guest-title{align-items:flex-start!important;padding:18px!important;border-radius:16px!important}
  .dd-guest-title>b{display:none!important}
  .dd-practice-frame-card,
  .dd-free-practice-frame{border-radius:14px!important}
  .dd-practice-frame-card{min-height:880px!important}
  .dd-free-practice-frame{height:880px;min-height:880px}
  .dd-home-image-modal{padding:8px}
  .dd-home-image-dialog{width:calc(100vw - 16px);max-height:94vh;border-radius:18px}
  .dd-home-image-head{min-height:62px;padding:10px 12px 10px 16px}
  .dd-home-image-head button{width:38px;height:38px;flex-basis:38px}
  .dd-home-image-stage{min-height:54vh;padding:10px}
  .dd-home-image-stage img{max-height:68vh;border-radius:11px}
}

/* V2.11.9.36.1.70 大图预览：只保留精致白色画框、图片和关闭按钮。 */
.dd-home-image-modal{
  padding:clamp(12px,2.2vw,28px)!important;
  background:rgba(6,25,28,.62)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
.dd-home-image-dialog{
  position:relative!important;
  display:inline-flex!important;
  width:auto!important;
  max-width:calc(100vw - 30px)!important;
  max-height:92vh!important;
  padding:10px!important;
  overflow:visible!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 30px 95px rgba(3,30,32,.38)!important;
}
.dd-home-image-head,
.dd-home-image-tip{display:none!important}
.dd-home-image-close{
  position:absolute;
  right:8px;
  top:8px;
  z-index:5;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #cfe4e1;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#17343b;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(14,55,57,.18);
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease;
}
.dd-home-image-close:hover{
  transform:scale(1.04);
  border-color:#0fa79d;
  background:#effbf9;
  color:#087d76;
}
.dd-home-image-stage{
  display:flex!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:calc(100vw - 50px)!important;
  max-height:88vh!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  background:#fff!important;
  cursor:zoom-out;
}
.dd-home-image-stage img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(1100px,calc(100vw - 50px))!important;
  max-height:88vh!important;
  object-fit:contain!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  cursor:zoom-out!important;
}
@media (max-width:760px){
  .dd-home-image-dialog{max-width:calc(100vw - 16px)!important;padding:6px!important;border-radius:15px!important}
  .dd-home-image-stage{max-width:calc(100vw - 28px)!important;border-radius:11px!important}
  .dd-home-image-stage img{max-width:calc(100vw - 28px)!important;max-height:86vh!important;border-radius:11px!important}
  .dd-home-image-close{right:5px;top:5px;width:36px;height:36px;font-size:25px}
}


/* V2.11.9.36.1.71 大图：移除X，放大显示，点击图片或遮罩关闭。 */
.dd-home-image-close{display:none!important}
.dd-home-image-dialog{
  width:min(1160px,calc(100vw - 32px))!important;
  max-width:none!important;
  padding:10px!important;
}
.dd-home-image-stage{
  width:100%!important;
  max-width:none!important;
}
.dd-home-image-stage img{
  width:100%!important;
  max-width:1120px!important;
  max-height:86vh!important;
  object-fit:contain!important;
}
@media(max-width:760px){
  .dd-home-image-dialog{width:calc(100vw - 16px)!important}
  .dd-home-image-stage img{max-width:100%!important}
}
