/* ===== Auth Page: Hero ===== */
.hero {
  padding-bottom: 46px;
  background-image: url('../img/authorization/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  margin-top: 142px;
}

/* ===== Main Content ===== */
.main-content {
  padding: 24px 0 0;
}

.auth-content {
  padding-bottom: 24px;
}

/* 中间授权卡片区 */
.auth-cards-area {
  flex: 1;
  min-width: 0;
}

.auth-card,
.section-divider {
  scroll-margin-top: 24px;
}

/* 授权卡片通用样式 */
.auth-card {
  background: #f7faff;
  border-radius: 2px;
  border: 1px solid #e5eeff;
  overflow: hidden;
}

.card-header {
  height: 54px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: url('../img/authorization/card-header-bg.png') no-repeat center center;
  background-size: cover;
}

.card-title {
  z-index: 1;
  display: block;
  font-size: 19px;
  font-family: 'PingFang SC', 'PingFangSC-Semibold', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  color: #00264e;
  margin-left: 25px;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 15px 7px;
  gap: 5px;
}

.card-cell {
  width: 100%;
  min-width: 0;
  height: 60px;
  background: linear-gradient(180deg, #eff5ff 0%, #dbeafe 100%);
  border: 1px solid #deeafe;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.card-cell--link {
  color: inherit;
  text-decoration: none;
}

.card-cell--link:hover,
.card-cell--qq:hover {
  background: #007dff;
  border-color: #007dff;
}

.card-cell--link:hover .cell-domain,
.card-cell--qq:hover .cell-domain {
  color: #fff;
}

.card-cell--link:active,
.card-cell--qq:active {
  background: #0066d6;
  border-color: #0066d6;
}

.card-cell--highlight {
  background: #007dff;
}

.cell-domain {
  display: block;
  font-size: 13px;
  font-family: 'PingFang SC', 'PingFangSC-Regular', 'Microsoft YaHei', sans-serif;
  color: #333;
  text-align: center;
  line-height: 20px;
}

.cell-domain--white {
  color: #fff;
}

/* 卡片间距 */
.auth-card + .section-divider,
.auth-card + .auth-card {
  margin-top: 24px;
}

/* 分隔标题（导流站等只有标题无内容的区域） */
.section-divider {
  margin-top: 24px;
  background: #f7faff;
  border-radius: 2px;
  border: 1px solid #e5eeff;
  overflow: hidden;
}

.section-divider .section-divider-bg {
  position: absolute;
  right: -63px;
  top: -32px;
  width: 299px;
  height: 158px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.section-divider-title {
  display: block;
  font-size: 19px;
  font-family: 'PingFang SC', 'PingFangSC-Semibold', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  color: #00264e;
  line-height: 63px;
  margin-left: 25px;
}

.section-divider {
  position: relative;
  height: 63px;
}

.single-cards {
  margin-top: 24px;
}

.auth-card--wide {
  margin-bottom: 24px;
}

.auth-card--wide:last-child {
  margin-bottom: 157px;
}

.auth-card--header-only {
  margin-bottom: 24px;
}

.card-grid--single {
  grid-template-columns: repeat(4, 1fr);
}
