/* ================================================
   首页样式 - guguyun
   ================================================ */

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: #111111;
  color: #F2F2F2;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid #111111;
}

.btn-dark:hover { background: #333333; border-color: #333333; color: #F2F2F2; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: transparent;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(17, 17, 17, 0.45);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline:hover { border-color: #111111; background: rgba(17, 17, 17, 0.04); color: #111111; }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: #F2F2F2;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid #F2F2F2;
}

.btn-white:hover { background: #FFFFFF; border-color: #FFFFFF; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  background: transparent;
  color: rgba(242, 242, 242, 0.80);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid rgba(242, 242, 242, 0.35);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline-white:hover { border-color: rgba(242, 242, 242, 0.75); color: #F2F2F2; }

/* ======================== Hero 主视觉 */

.hero {
  min-height: 100vh;
  background: #F2F2F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 960px;
  padding: 0 32px;
}

.hero-frame {
  position: relative;
  display: inline-block;
  padding: 44px 80px 40px;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(17, 17, 17, 0.30);
  border-style: solid;
}

.corner-tl { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.corner-tr { top: 0;    right: 0; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(17, 17, 17, 0.07);
  color: rgba(17, 17, 17, 0.60);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.8px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.18;
  color: #111111;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(17, 17, 17, 0.55);
  line-height: 1.75;
  max-width: 600px;
  margin: 28px auto 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(17, 17, 17, 0.20);
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.45);
  letter-spacing: 0.3px;
}

/* ======================== 产品 */

.products { background: #FFFFFF; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  align-items: center;
  padding: 28px 24px;
  background: #F7F7F7;
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  transition: all 0.22s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(17, 17, 17, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  background: #F2F2F2;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #111111;
  flex-shrink: 0;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg { width: 22px; height: 22px; color: #F2F2F2; }

.product-info { flex: 1; min-width: 0; }

.product-title { font-size: 15px; font-weight: 600; color: #111111; margin-bottom: 5px; }

.product-desc { font-size: 13px; color: rgba(17, 17, 17, 0.50); line-height: 1.55; }

.product-arrow {
  font-size: 16px;
  color: rgba(17, 17, 17, 0.22);
  margin-left: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.product-card:hover .product-arrow { color: #111111; transform: translateX(4px); }

/* ======================== 核心优势 */

.advantages { background: #F2F2F2; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.adv-card {
  padding: 36px 28px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  transition: box-shadow 0.2s ease;
}

.adv-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07); }

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.adv-icon svg { width: 24px; height: 24px; color: #111111; }

.adv-card h5 { font-size: 17px; font-weight: 600; color: #111111; margin-bottom: 10px; }

.adv-card p { font-size: 14px; color: rgba(17, 17, 17, 0.55); line-height: 1.75; }

/* ======================== 基础设施数据 */

.infra-section { background: #F2F2F2; }

.infra-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.infra-stat {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(17, 17, 17, 0.08);
}

.infra-stat:last-child { border-right: none; }

.infra-num {
  font-size: 52px;
  font-weight: 700;
  color: #111111;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.infra-label { font-size: 15px; font-weight: 600; color: rgba(17, 17, 17, 0.65); margin-bottom: 8px; }

.infra-desc { font-size: 13px; color: rgba(17, 17, 17, 0.40); }

/* ======================== 新闻 */

.news { background: #FFFFFF; }

/* 新闻模块盒子 */
.news-module {
  flex: 1;
  min-width: 280px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background: #F2F2F2;
}

.news-module .news-cont {
  flex: none;
  min-width: 0;
  padding: 24px 28px;
}

/* ======================== CTA */

.cta-section { background: #111111; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 72px 0;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-size: 30px;
  font-weight: 700;
  color: #F2F2F2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.cta-text p { font-size: 16px; color: rgba(242, 242, 242, 0.55); line-height: 1.7; }

.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ======================== 全页轨道线 */

.page-rail-v {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17, 17, 17, 0.09);
  z-index: 500;
  pointer-events: none;
  overflow: hidden;
}

#rail-left  { left:  max(20px, calc(50vw - 700px)); }
#rail-right { right: max(20px, calc(50vw - 700px)); }

/* ======================== 模块框线系统 */

.section { position: relative; }

/* section-content 覆盖（帧线系统专用页面） */
.section .section-content {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

/* 内容区内部间距包裹 */
.sec-padded {
  padding: 56px 0;
}

/* 横向框线 — 普通块元素，宽度随 section-content 内容区 */
.sec-hline {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(17, 17, 17, 0.09);
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

/* 四角 L 形角标 — 相对 section-content 定位 */
.sec-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 11;
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.28);
  pointer-events: none;
}

/* left/right: 14px = section-content 左内边距(20px) - 角标半宽(6px)，精确对齐轨道线 */
.sec-tl { top:    -6px; left:  14px; border-width: 2px 0 0 2px; }
.sec-tr { top:    -6px; right: 14px; border-width: 2px 2px 0 0; }
.sec-bl { bottom: -6px; left:  14px; border-width: 0 0 2px 2px; }
.sec-br { bottom: -6px; right: 14px; border-width: 0 2px 2px 0; }

/* 模块内部分隔线（标题区 / 内容区） */
.sec-sub-hline {
  height: 1px;
  background: rgba(17, 17, 17, 0.09);
  overflow: hidden;
  margin-bottom: 48px;
}

/* 模块内标题区底部间距调整 */
.section-content .section-title { margin-bottom: 40px; }

/* 深色区块 */
.section-dark .sec-hline        { background: rgba(242, 242, 242, 0.10); }
.section-dark .sec-corner       { border-color: rgba(242, 242, 242, 0.22); }
.section-dark .sec-sub-hline    { background: rgba(242, 242, 242, 0.10); }
.section-dark ~ #rail-left,
.section-dark ~ #rail-right     { background: rgba(180, 180, 180, 0.10); }

/* ======================== 流光动画 */

.glow-streak {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  border-radius: 1px;
  z-index: 5;
}

.glow-streak-h {
  top: -1px;
  height: 3px;
  width: 10%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(125, 211, 252, 0.85) 30%,
    rgba(196, 181, 253, 0.95) 60%,
    rgba(167, 139, 250, 0.70) 80%,
    transparent 100%
  );
  filter: blur(0.8px);
}

.glow-streak-v {
  left: -1px;
  width: 3px;
  height: 10%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(125, 211, 252, 0.85) 30%,
    rgba(196, 181, 253, 0.95) 60%,
    rgba(167, 139, 250, 0.70) 80%,
    transparent 100%
  );
  filter: blur(0.8px);
}

@keyframes glow-flow-h {
  0%   { left: -10%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes glow-flow-v {
  0%   { top: -10%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.glow-run-h { animation: glow-flow-h 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.glow-run-v { animation: glow-flow-v 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ======================== 响应式 */

@media screen and (max-width: 1200px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-stats { grid-template-columns: repeat(2, 1fr); }
  .infra-stat:nth-child(2) { border-right: none; }
  .infra-stat:nth-child(3), .infra-stat:nth-child(4) {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
  }
}

@media screen and (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-frame { padding: 36px 40px 32px; }
  .hero-stats { gap: 32px; }
  .cta-box { flex-direction: column; text-align: center; }
}

@media screen and (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .infra-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 32px; }
  .hero-frame { padding: 28px 20px; }
  .infra-num { font-size: 40px; }
  .page-rail-v, .sec-hline, .sec-corner, .sec-sub-hline { display: none; }
  .section .section-content { padding-top: 40px; padding-bottom: 40px; }
  .sec-padded { padding: 0; }
}
