.common-web-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 64px;
  background: #F9FBFE;
  box-sizing: border-box;
}

#common-web-iframe {
  flex: 1;
  border: 0;
  padding: 24px;
  overflow: scroll;
}

.micro-app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-size: 14px;
}

.micro-app-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e8e8e8;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: micro-app-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes micro-app-spin {
  to { transform: rotate(360deg); }
}

.micro-app-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-size: 14px;
}

.micro-app-error button {
  margin-top: 16px;
  padding: 6px 20px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.micro-app-error button:hover {
  background: #40a9ff;
}

@media (max-width: 1199px) {
  html, body {
    overflow: hidden;       /* 锁定外层，防止文档整体被拉动导致底部空白 */
    height: 100%;
  }
  .common-web-container {
    margin-top: 12vw;
    height: calc(100vh - 12vw);
    overflow: hidden;
    padding-top: 0;
  }
  #common-web-iframe {
    padding: 0;
    overflow-y: scroll;     /* 唯一滚动层 */
    -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
  }
}

@font-face {
  font-family: 'element-icons';
  src: url('https://cloudpnrcdn.oss-cn-shanghai.aliyuncs.com/dgwebsite/open-public/docs/font/element-icons.woff') format('woff'),
       url('https://cloudpnrcdn.oss-cn-shanghai.aliyuncs.com/dgwebsite/open-public/docs/font/element-icons.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}