@charset "UTF-8";
/* ==========================================================================
   GOG Blogs & News 模块  v2.0
   独立样式表（不依赖主题）｜默认宽度 1600px ｜含分页器与响应式
   ▸ 改主色：短码里加 accent="#xxxxxx"，或改下方 --gogbn-accent
   ▸ 改宽度：短码里加 max_width="1400"（默认 1600）
   ========================================================================== */

.gogbn {
  --gogbn-accent: #4cb3dd;
  --gogbn-accent-dark: #2f9cc9;
  --gogbn-card: #f3f6f7;
  --gogbn-text: #201e1c;
  --gogbn-sub: #4a4846;
  --gogbn-muted: #6f6d6b;
  --gogbn-line: #dcdcdc;
  --gogbn-max-width: 1600px;
  --gogbn-gap: 20px;
  --gogbn-radius: 15px;

  padding: 70px 0;
  color: var(--gogbn-text);
  font-family: inherit;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gogbn *,
.gogbn *::before,
.gogbn *::after { box-sizing: border-box; }

/* ---------- 容器 ---------- */
.gogbn__inner {
  width: 100%;
  max-width: var(--gogbn-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gogbn__heading {
  margin: 0 0 22px;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--gogbn-text);
}

/* ---------- 顶部条：Tab + 按钮 ---------- */
.gogbn__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.gogbn__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

/* Tab 现在直接是 <a>（不再套 li），
   选择器带 .gogbn__tabs 前缀把权重抬到 (0,2,0)，
   避免被主题的 a:link / a:visited (0,1,1) 抢走颜色。 */
.gogbn__tabs .gogbn__tab {
  display: inline-block;
  margin: 0;
  padding: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  color: #969696;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  box-shadow: none;
  transition: color .25s ease, border-color .25s ease;
}

.gogbn__tabs .gogbn__tab:hover,
.gogbn__tabs .gogbn__tab:focus-visible {
  color: var(--gogbn-accent);
  border-bottom-color: var(--gogbn-accent);
}

.gogbn__tabs .gogbn__tab.is-active {
  color: var(--gogbn-accent);
  border-bottom-color: var(--gogbn-accent);
}

/* 键盘聚焦时给个可见轮廓（tab 用方向键/空格操作，必须有焦点提示） */
.gogbn__tabs .gogbn__tab:focus-visible {
  outline: 2px solid var(--gogbn-accent);
  outline-offset: 3px;
}

/* ---------- 按钮 ---------- */
.gogbn__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.gogbn__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--gogbn-accent);
  border-radius: 60px;
  transition: background-color .25s ease, color .25s ease;
}

.gogbn__btn--dark { background: var(--gogbn-accent); color: #fff; }
.gogbn__btn--dark:hover,
.gogbn__btn--dark:focus-visible { background: #fff; color: var(--gogbn-accent); }

.gogbn__btn--light { background: transparent; color: var(--gogbn-accent); }
.gogbn__btn--light:hover,
.gogbn__btn--light:focus-visible { background: var(--gogbn-accent); color: #fff; }

/* ---------- 面板 / 分组 ---------- */
.gogbn__panel { display: none; }
.gogbn__panel.is-active { display: block; }
.gogbn__panel:target { display: block; } /* 无 JS 时点标签也能跳转显示 */

/* 分组：默认全部可见（SEO / 无 JS 友好），有 JS 时才收起非当前组 */
.gogbn__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: var(--gogbn-gap);
}

.gogbn--js .gogbn__group { display: none; }
.gogbn--js .gogbn__group.is-active {
  display: flex;
  animation: gogbnFade .3s ease;
}

@keyframes gogbnFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 卡片 ---------- */
.gogbn__item {
  width: 49%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  background: var(--gogbn-card);
  border-radius: var(--gogbn-radius);
  overflow: hidden;
  transition: box-shadow .25s ease;
}

.gogbn__item:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.gogbn__item.is-featured { width: 100%; }

/* 图片区：强制 4:3（align-self 必须写，否则会被 flex 拉伸导致比例失效） */
.gogbn__img {
  position: relative;
  display: block;
  flex: 0 0 45%;
  width: 45%;
  align-self: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eaea;
  text-decoration: none;
}

.gogbn__img img,
.gogbn__img .gogbn__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.gogbn__item:hover .gogbn__img img { transform: scale(1.04); }

.gogbn__noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e9edee 0%, #dfe4e5 100%);
}

.gogbn__noimg::after {
  content: "GOG";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  letter-spacing: 2px;
  color: #b9c0c1;
}

.gogbn__desc {
  flex: 1 1 55%;
  width: 55%;
  padding: 28px 32px;
}

.gogbn__time {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gogbn-muted);
}

.gogbn__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.gogbn__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--gogbn-text);
  text-decoration: none;
  transition: color .25s ease;
}

.gogbn__title a:hover,
.gogbn__title a:focus-visible { color: var(--gogbn-accent); }

.gogbn__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gogbn-sub);
}

/* 通栏大卡 */
.gogbn__item.is-featured .gogbn__desc { padding: 36px 40px; }
.gogbn__item.is-featured .gogbn__title { font-size: 30px; line-height: 1.35; }
.gogbn__item.is-featured .gogbn__time { font-size: 15px; }
.gogbn__item.is-featured .gogbn__excerpt {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

/* ---------- 分页圆点（无数字、无左右箭头；样式参考 ruy-power 的 banner dots） ----------
   未选中：10px 小圆点；当前项：拉长成 30px 胶囊并变主色
   点击区用 ::after 扩大到约 28px，方便手指点按 */
.gogbn__dots { display: none; }

.gogbn--js .gogbn__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.gogbn__dot {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  background: #d5d8d9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: width .4s ease, border-radius .4s ease, background-color .4s ease;
}

.gogbn__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
}

.gogbn__dot:hover { background: #b9bec0; }

.gogbn__dot.is-active,
.gogbn__dot[aria-current="page"] {
  width: 30px;
  border-radius: 6px;
  background: var(--gogbn-accent);
  cursor: default;
}

.gogbn__dot:focus-visible {
  outline: 2px solid var(--gogbn-accent);
  outline-offset: 4px;
}

.gogbn__empty {
  margin: 0;
  padding: 48px 30px;
  font-size: 16px;
  text-align: center;
  color: var(--gogbn-muted);
  background: var(--gogbn-card);
  border-radius: var(--gogbn-radius);
}

.gogbn .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1440px) {
  .gogbn__item.is-featured .gogbn__title { font-size: 27px; }
  .gogbn__item.is-featured .gogbn__desc { padding: 32px 34px; }
}

@media (max-width: 1199px) {
  .gogbn { padding: 56px 0; }
  .gogbn__heading { font-size: 32px; }
  .gogbn__tabs .gogbn__tab { font-size: 22px; }
  .gogbn__tabs { gap: 24px; }
  .gogbn__item.is-featured .gogbn__title { font-size: 24px; line-height: 1.4; }
  .gogbn__item.is-featured .gogbn__excerpt { font-size: 16px; -webkit-line-clamp: 2; }
  .gogbn__img,
  .gogbn__item.is-featured .gogbn__img { flex-basis: 42%; width: 42%; }
  .gogbn__desc { padding: 24px 24px; }
}

/* 平板：小卡改为单列（避免窄栏里图文拥挤） */
@media (max-width: 1023px) {
  .gogbn__item { width: 100%; }
  .gogbn__item:not(.is-featured) .gogbn__img { flex-basis: 38%; width: 38%; }
  .gogbn__item:not(.is-featured) .gogbn__desc { padding: 22px 26px; }
}

/* 手机：全部纵向排列，图片通栏 4:3 */
@media (max-width: 782px) {
  .gogbn { padding: 40px 0; }
  .gogbn__inner { padding: 0 18px; }
  .gogbn__heading { font-size: 26px; }

  .gogbn__bar { gap: 16px; margin-bottom: 24px; }
  .gogbn__tabs { gap: 18px; }
  .gogbn__tabs .gogbn__tab { font-size: 18px; padding-bottom: 4px; border-bottom-width: 2px; }

  .gogbn__btns { width: 100%; }
  .gogbn__btn { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; font-size: 15px; }

  .gogbn__item,
  .gogbn__item.is-featured { width: 100%; flex-wrap: wrap; }

  .gogbn__img,
  .gogbn__item.is-featured .gogbn__img,
  .gogbn__item:not(.is-featured) .gogbn__img {
    flex: 0 0 100%;
    width: 100%;
    align-self: auto;
  }

  .gogbn__desc,
  .gogbn__item.is-featured .gogbn__desc,
  .gogbn__item:not(.is-featured) .gogbn__desc {
    flex: 1 1 100%;
    width: 100%;
    padding: 20px 20px 24px;
  }

  .gogbn__title,
  .gogbn__item.is-featured .gogbn__title { font-size: 20px; line-height: 1.4; }
  .gogbn__excerpt,
  .gogbn__item.is-featured .gogbn__excerpt { font-size: 15px; -webkit-line-clamp: 2; }

  .gogbn--js .gogbn__dots { margin-top: 26px; gap: 10px; }
}

@media (max-width: 480px) {
  .gogbn__heading { font-size: 22px; }
  .gogbn__tabs .gogbn__tab { font-size: 16px; }
  .gogbn__tabs { gap: 14px; }
  .gogbn__btn { height: 44px; font-size: 14px; }
  .gogbn--js .gogbn__dots { gap: 9px; }
  .gogbn__dot.is-active,
  .gogbn__dot[aria-current="page"] { width: 24px; }
}

/* 打印：把分页全部展开，别丢内容 */
@media print {
  .gogbn__group { display: flex !important; }
  .gogbn__dots { display: none !important; }
}
