/* ============================================================
   博彩监管机构模块独立样式表 v2（WordPress 作用域隔离版）
   所有选择器均以 .gr- 为前缀，避免与 WordPress 主题样式冲突
   更新：支持整张监管机构卡片点击跳转、悬停反馈与键盘焦点样式
   ============================================================ */

.gr-section {
  --gr-bg-start: #1c3168;
  --gr-bg-mid: #243f82;
  --gr-bg-end: #172855;
  --gr-surface: rgba(255, 255, 255, 0.06);
  --gr-surface-hover: rgba(255, 255, 255, 0.11);
  --gr-surface-deep: rgba(11, 22, 52, 0.36);
  --gr-border: rgba(255, 255, 255, 0.12);
  --gr-border-hover: rgba(96, 185, 255, 0.55);
  --gr-text-primary: #ffffff;
  --gr-text-secondary: #cfdcf7;
  --gr-text-muted: #a9bee8;
  --gr-accent: #38bdf8;
  --gr-accent-light: #7dd3fc;
  --gr-radius-lg: 18px;
  --gr-radius-md: 14px;
  --gr-radius-sm: 10px;
  --gr-shadow-card: 0 12px 30px rgba(7, 15, 38, 0.24);
  --gr-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;

  position: relative;
  width: 100%;
  padding: 52px 24px;
  background: linear-gradient(145deg, var(--gr-bg-start) 0%, var(--gr-bg-mid) 52%, var(--gr-bg-end) 100%);
  border-radius: var(--gr-radius-lg);
  color: var(--gr-text-primary);
  font-family: var(--gr-font-family);
  line-height: 1.65;
  box-sizing: border-box;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.gr-section *,
.gr-section *::before,
.gr-section *::after {
  box-sizing: border-box;
}

/* 背景柔和光晕装饰 */
.gr-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 70%);
  pointer-events: none;
}

.gr-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- 头部标题区 ---------- */
.gr-header {
  margin: 0 0 34px;
  text-align: left;
}

.gr-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
}

.gr-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gr-text-primary);
  letter-spacing: 0.01em;
}

.gr-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gr-text-secondary);
}

/* ---------- 四大监管机构卡片网格 ---------- */
.gr-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 36px;
}

a.gr-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--gr-surface);
  border: 1px solid var(--gr-border);
  border-radius: var(--gr-radius-md);
  box-shadow: var(--gr-shadow-card);
  color: var(--gr-text-primary) !important;
  text-decoration: none !important;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.gr-card:hover,
a.gr-card:focus-visible {
  transform: translateY(-4px);
  background: var(--gr-surface-hover);
  border-color: var(--gr-border-hover);
  box-shadow: 0 16px 36px rgba(7, 15, 38, 0.36);
  outline: none;
}

a.gr-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 16px 36px rgba(7, 15, 38, 0.36);
}

.gr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gr-logo-box {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 18, 44, 0.24);
  transition: transform 0.25s ease;
}

a.gr-card:hover .gr-logo-box {
  transform: scale(1.03);
}

.gr-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.gr-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #dbeafe;
  background: rgba(15, 29, 68, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 999px;
  white-space: nowrap;
}

.gr-card-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gr-text-primary);
  transition: color 0.2s ease;
}

a.gr-card:hover .gr-card-title {
  color: #e0f2fe;
}

.gr-card-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--gr-text-secondary);
}

.gr-card-more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gr-accent-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.gr-card-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

a.gr-card:hover .gr-card-more {
  color: #ffffff;
}

a.gr-card:hover .gr-card-arrow {
  transform: translateX(4px);
}

/* ---------- 博彩监管的核心作用 ---------- */
.gr-benefits-block {
  padding: 28px 26px;
  background: var(--gr-surface-deep);
  border: 1px solid var(--gr-border);
  border-radius: var(--gr-radius-md);
  margin: 0 0 34px;
}

.gr-benefits-header {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gr-benefits-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gr-text-primary);
}

.gr-benefits-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--gr-text-muted);
}

.gr-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.gr-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--gr-radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gr-benefit-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
}

.gr-benefit-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gr-accent);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
}

.gr-benefit-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.gr-benefit-content {
  min-width: 0;
}

.gr-benefit-heading {
  margin: 0 0 6px;
  padding: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gr-text-primary);
}

.gr-benefit-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gr-text-secondary);
}

/* ---------- 底部双按钮区 ---------- */
.gr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: var(--gr-radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gr-btn-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.gr-btn:hover .gr-btn-arrow {
  transform: translateX(3px);
}

.gr-btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2596ff 0%, #0d74e7 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(13, 116, 231, 0.36);
}

.gr-btn-primary:hover,
.gr-btn-primary:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #35a3ff 0%, #1682f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 116, 231, 0.48);
  outline: none;
}

.gr-btn-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.gr-btn-secondary:hover,
.gr-btn-secondary:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  .gr-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gr-section {
    padding: 36px 18px;
    border-radius: 14px;
  }

  .gr-benefits-block {
    padding: 22px 18px;
  }

  .gr-benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .gr-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gr-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gr-btn {
    width: 100%;
    min-width: 0;
  }
}
