/* ===================================================================
   狗急加速：使用教程 - 对标 telegram.org 经典天蓝极简风格
   =================================================================== */

:root {
  --tg-blue: #2481cc;
  --tg-blue-hover: #1a6da8;
  --tg-blue-light: #eff7fd;
  --tg-text: #222222;
  --tg-muted: #707579;
  --tg-border: #e4e4e4;
  --tg-bg: #ffffff;
  --tg-bg-alt: #f4f4f5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 9999px;
  --transition: all 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tg-text);
  background-color: var(--tg-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tg-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================================
   顶部导航栏 (Navbar 对标 telegram.org)
   =================================================================== */
header.tg-navbar {
  border-bottom: 1px solid var(--tg-border);
  background: #ffffff;
  height: 56px;
}
.tg-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.tg-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.tg-nav-links a {
  font-size: 14px;
  color: var(--tg-muted);
  font-weight: 500;
}
.tg-nav-links a:hover, .tg-nav-links a.active {
  color: var(--tg-blue);
  text-decoration: none;
  font-weight: 600;
}
.tg-lang-select {
  font-size: 13px;
  color: var(--tg-muted);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tg-bg-alt);
}

/* ===================================================================
   Hero 居中徽标与直达下载 (对标 telegram.org 核心首屏)
   =================================================================== */
.hero-center-section {
  text-align: center;
  padding: 55px 0 45px;
}
.tg-hero-logo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.3);
  transition: transform 0.3s ease;
}
.tg-hero-logo:hover {
  transform: scale(1.05);
}
.tg-hero-logo svg {
  width: 64px;
  height: 64px;
  fill: currentColor;
}

.hero-main-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--tg-text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.hero-slogan-eng {
  font-size: 15px;
  color: var(--tg-muted);
  margin-bottom: 30px;
}

/* 核心下载按键药丸胶囊 */
.download-pill-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.btn-pill-download {
  background: var(--tg-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.25);
  transition: var(--transition);
}
.btn-pill-download:hover {
  background: var(--tg-blue-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 129, 204, 0.35);
}

.desktop-links-line {
  font-size: 14.5px;
  color: var(--tg-muted);
  margin-bottom: 18px;
}
.desktop-links-line a {
  font-weight: 600;
}

.btn-browse-more {
  display: inline-block;
  background: var(--tg-blue-light);
  color: var(--tg-blue);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.btn-browse-more:hover {
  background: #e2f0fb;
  text-decoration: none;
}

/* ===================================================================
   精选教程与动态卡片 (Recent Guides / News 对标 telegram.org)
   =================================================================== */
.recent-guides-section {
  padding: 45px 0 55px;
  border-top: 1px solid var(--tg-border);
}
.section-headline-tg {
  font-size: 22px;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 24px;
}
.section-headline-tg a {
  color: var(--tg-text);
}
.section-headline-tg a:hover {
  color: var(--tg-blue);
  text-decoration: none;
}

.news-cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-card-item {
  background: #ffffff;
  border: 1px solid var(--tg-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.news-card-item:hover {
  border-color: var(--tg-blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card-desc {
  font-size: 13.5px;
  color: var(--tg-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.news-card-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more-tag {
  color: var(--tg-blue);
  font-weight: 600;
}

/* ===================================================================
   “Why GojiSpeed?” 3×3 九宫格优势矩阵 (对标 Why Telegram?)
   =================================================================== */
.why-tg-section {
  padding: 55px 0 70px;
  border-top: 1px solid var(--tg-border);
}
.grid-3x3-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-top: 28px;
}
.cell-3x3-card {
  display: flex;
  flex-direction: column;
}
.cell-icon-sticker {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}
.cell-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tg-blue);
  margin-bottom: 8px;
}
.cell-desc {
  font-size: 13.5px;
  color: var(--tg-muted);
  line-height: 1.65;
}

/* ===================================================================
   结构化极简页脚 (Footer 对标 telegram.org)
   =================================================================== */
footer.tg-footer {
  border-top: 1px solid var(--tg-border);
  padding: 50px 0 40px;
  font-size: 13.5px;
  color: var(--tg-muted);
  background: #ffffff;
}
.footer-top-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 35px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.footer-top-links a {
  color: var(--tg-muted);
}
.footer-top-links a:hover {
  color: var(--tg-blue);
  text-decoration: none;
}

.footer-4col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--tg-border);
}
.footer-col h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--tg-muted);
}
.footer-col ul li a:hover {
  color: var(--tg-blue);
  text-decoration: none;
}

.footer-bottom-text {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
}

/* 浮动右侧快速工具 */
.floating-side-bar {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
  transition: var(--transition);
}
.float-btn:hover {
  transform: translateY(-2px);
  background: var(--tg-blue);
  color: #ffffff;
  border-color: var(--tg-blue);
}
.float-btn.active-dl {
  background: var(--tg-blue);
  color: #ffffff;
}

/* 响应式适配 */
@media (max-width: 820px) {
  .news-cards-2col {
    grid-template-columns: 1fr;
  }
  .grid-3x3-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-4col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .hero-main-title {
    font-size: 28px;
  }
  .download-pill-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-pill-download {
    justify-content: center;
  }
  .grid-3x3-cards {
    grid-template-columns: 1fr;
  }
  .footer-4col-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
