/* 《石光旅团》独立专题介绍页（sgl.html）专属样式。
   严格遵守官网 CSP（零内联样式），支持桌面多列手机壳截图画廊、移动端自适应与全屏高清灯箱放大。 */

.sgl-page {
  --sgl-ink: #1b2438;
  --sgl-muted: #55627d;
  --sgl-deep: #0f162c;
  --sgl-indigo: #232b5c;
  --sgl-pink: #ff3b78;
  --sgl-pink-deep: #b8154b;
  --sgl-gold: #ffbf2e;
  --sgl-gold-deep: #b86b0d;
  --sgl-cyan: #1e96c8;
  --sgl-card: #ffffff;
  --sgl-soft: #f5f7fc;
  --sgl-line: #dce3f2;
  background: #eff3fa;
}

.sgl-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 64px;
  color: var(--sgl-ink);
  -webkit-tap-highlight-color: transparent;
}

/* ===== Hero 首屏 ===== */
.sgl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 28px;
  padding: 36px 34px 34px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 92, 148, .42), transparent 42%),
    radial-gradient(circle at 14% 92%, rgba(79, 214, 255, .3), transparent 45%),
    radial-gradient(rgba(255, 255, 255, .1) 1.4px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(145deg, #0d1329 0%, #221c52 50%, #5c1c58 100%);
  box-shadow: 0 10px 0 rgba(15, 22, 44, .18), 0 22px 42px rgba(15, 22, 44, .28);
  overflow: hidden;
}
.sgl-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #4fd6ff, #ff5c8c, #ffd166, #ff5c8c, #4fd6ff);
}
.sgl-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #ffe38e;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 227, 142, .45);
}
.sgl-hero h1 {
  margin: 0;
  font-family: var(--font-title, "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: 3px;
  color: #ffd86e;
  text-shadow: 0 4px 0 #26103d, 0 0 24px rgba(255, 92, 140, .55);
}
.sgl-lead {
  margin: 10px 0 0;
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 900;
  color: #fff5dc;
}
.sgl-intro {
  margin: 12px 0 0;
  line-height: 1.78;
  font-size: 15px;
  color: #e4ecff;
}
.sgl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.sgl-badges li {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff9e6;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}
.sgl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.sgl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 99px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .52);
}
.sgl-btn-play {
  color: #fff;
  background: linear-gradient(180deg, #ff6292, #e02060);
  border-color: #ff9ebc;
  box-shadow: 0 4px 0 #8f0d38;
}
.sgl-btn-apk {
  color: #452400;
  background: linear-gradient(180deg, #ffe27a, #ffa828);
  border-color: #ffeeb0;
  box-shadow: 0 4px 0 #ad5d09;
}

.sgl-hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sgl-hero-ph {
  width: 31%;
  border-radius: 16px;
  border: 2.5px solid rgba(255, 255, 255, .7);
  overflow: hidden;
  background: #0b0f1a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}
.sgl-hero-ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.sgl-hero-ph-center {
  width: 36%;
  border-color: #ffd166;
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .62), 0 0 22px rgba(255, 92, 140, .5);
}

/* ===== 联动提示条 & 章节导航 ===== */
.sgl-link-banner {
  margin-top: 18px;
  padding: 15px 20px;
  border-radius: 18px;
  line-height: 1.75;
  background: linear-gradient(90deg, #fff8e3, #fff0f6);
  border: 2px dashed #eb9ab8;
  color: #4a2338;
  font-size: 14.5px;
}
.sgl-link-banner b { color: #b8154b; }
.sgl-link-banner a { color: #b8154b; font-weight: 900; }

.sgl-toc {
  position: sticky;
  top: 64px;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 4px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--sgl-line);
  box-shadow: 0 6px 18px rgba(20, 32, 66, .08);
}
.sgl-toc a {
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--sgl-indigo);
  background: var(--sgl-soft);
  border: 1.5px solid var(--sgl-line);
}

/* ===== 通用章节卡片 ===== */
.sgl-sec {
  margin-top: 24px;
  padding: 26px 28px 26px;
  border-radius: 24px;
  background: var(--sgl-card);
  border: 2px solid var(--sgl-line);
  box-shadow: 0 6px 0 rgba(27, 36, 56, .06);
  scroll-margin-top: 132px;
}
.sgl-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sgl-soft);
}
.sgl-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #ff5c8c, #d91c5c);
  box-shadow: 0 3px 0 #8f0e39;
}
.sgl-sec-head h2 {
  margin: 0;
  font-family: var(--font-title, "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif);
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--sgl-deep);
}
.sgl-sec-head small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--sgl-muted);
}
.sgl-sec p {
  margin: 8px 0;
  line-height: 1.82;
  font-size: 15px;
}
.sgl-sec h3 {
  margin: 18px 0 8px;
  font-size: 17.5px;
  color: var(--sgl-indigo);
}

/* ===== 8 宫格概览与特性网格 ===== */
.sgl-kv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.sgl-kv-item {
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff, #eef3fc);
  border: 1.5px solid #d5dff2;
}
.sgl-kv-item strong {
  display: block;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--sgl-pink-deep);
  margin-bottom: 4px;
}
.sgl-kv-item span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sgl-muted);
}

.sgl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.sgl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sgl-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--sgl-soft);
  border: 1.5px solid var(--sgl-line);
}
.sgl-card-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #2b3a78, #5c2670);
}
.sgl-card h4 {
  margin: 2px 0 6px;
  font-size: 16.5px;
  color: var(--sgl-deep);
}
.sgl-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: #3d4a66;
}
.sgl-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.72;
  color: #3d4a66;
}

/* ===== 竖屏实机截图画廊（手机视窗造型 + 点击放大） ===== */
.sgl-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.sgl-shots-2 { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
.sgl-shots-3 { grid-template-columns: repeat(3, minmax(0, 270px)); justify-content: center; }

.sgl-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #0d1222;
  border: 2px solid #283354;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(13, 18, 34, .18);
}
.sgl-zoom {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
}
.sgl-zoom img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform .25s ease;
}
.sgl-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(11, 15, 26, .74);
  border: 1px solid rgba(255, 255, 255, .28);
  pointer-events: none;
}
.sgl-fig figcaption {
  padding: 9px 11px 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #dce5ff;
  text-align: center;
  background: linear-gradient(180deg, #131a30, #0c1020);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ===== 底部行动召唤面板 ===== */
.sgl-bottom-cta {
  margin-top: 28px;
  padding: 28px 24px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #151b3d 0%, #3d1d5c 52%, #8c1e58 100%);
  box-shadow: 0 12px 30px rgba(21, 27, 61, .26);
}
.sgl-bottom-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-title, "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif);
  font-size: 28px;
  color: #ffd86e;
}
.sgl-bottom-cta p {
  margin: 0 auto 18px;
  max-width: 680px;
  color: #e6ecff;
  line-height: 1.7;
}
.sgl-bottom-cta .sgl-cta-row { justify-content: center; }

.sgl-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--sgl-muted);
  line-height: 1.8;
}
.sgl-foot a { color: var(--sgl-indigo); font-weight: 800; }

/* ===== 全屏截图放大灯箱 ===== */
.sgl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 18, .9);
  backdrop-filter: blur(6px);
}
.sgl-lightbox.is-open { display: flex; }
.sgl-lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}
.sgl-lb-img {
  max-width: min(88vw, 540px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 214, 102, .65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .75);
}
.sgl-lb-cap {
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-align: center;
}
.sgl-lb-close,
.sgl-lb-prev,
.sgl-lb-next {
  position: fixed;
  border: 2px solid rgba(255, 255, 255, .45);
  background: rgba(18, 24, 44, .82);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  border-radius: 99px;
}
.sgl-lb-close { top: 18px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
.sgl-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 24px; }
.sgl-lb-next { right: 18px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 24px; }

@media (hover: hover) {
  .sgl-btn:hover, .sgl-toc a:hover { transform: translateY(-2px); filter: brightness(1.06); }
  .sgl-zoom:hover img, .sgl-hero-ph:hover img { transform: scale(1.03); }
}

@media (max-width: 960px) {
  .sgl-hero { grid-template-columns: 1fr; padding: 26px 20px; }
  .sgl-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgl-grid-3, .sgl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgl-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgl-shots-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .sgl-sec { padding: 20px 16px; }
  .sgl-grid, .sgl-grid-3, .sgl-grid-4 { grid-template-columns: 1fr; }
  .sgl-toc { position: static; }
  .sgl-lb-prev { left: 8px; }
  .sgl-lb-next { right: 8px; }
}
