/**
 * Theme Name:  Grat
 * Description: 子主题，用于安全地添加自定义样式与功能。
 * Template:    astra
 * Version:     1.0.0
 * Author:      Bili
 */


 a:active, a:focus {
	outline: 0;
	border: none;
	-moz-outline-style: none;
}

button,.button {
    box-shadow: none;
}

html,
body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#ast-scroll-top .ast-icon.icon-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.uagb-container__video-wrap {
	border-radius: 8px;
}

.wp-block-video video{
    border-radius: 8px;
}

/*限制宽度*/
html,body{
    overflow-x:hidden;
    width:100%;
}
img{
    max-width:100%;
    height:auto;
}


html {
    scroll-padding-top: 100px;
}
@media (max-width:768px){
    html {
        scroll-padding-top:70px;
    }
}



/*FAQ*/
 .faq-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.faq-title-wrapper {
  margin: 0;
  padding: 22px 22px;
  background-color: #ffffff;
  color: #111827;
  transition: background-color 0.25s ease;
  border-radius: 8px 8px 0 0;
}
.faq-content-wrapper {
  padding: 0 22px;
  background-color: #ffffff;
}
.faq-content-wrapper p {
  margin: 0;
  padding: 0 0 18px;
  color: #4b5563;
  white-space: pre-line;
}
.rank-math-list-item {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}
/* ===== Tab标签样式 ===== */
.wp-block-tab-list {
  position: relative;
}
/* Tab按钮 */
.wp-block-tab-list button[role="tab"] {
  position: relative;
  transition: color 0.25s ease;
  border: none;
}
/* 选中状态 aria-selected="true" */
.wp-block-tab-list button[role="tab"][aria-selected="true"] {
  color: #046BD2 !important;
}
/* 选中按钮底部蓝色线条 */
.wp-block-tab-list button[role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height:2px;
  background-color:#046BD2;
}