/* ===================================================================
   狗急加速：PC客户端下载 - 对标 desktop.telegram.org 极简风格
   =================================================================== */

:root {
  --tg-blue: #1d98dc;
  --tg-blue-hover: #1685c2;
  --tg-blue-light: #eff7fd;
  --tg-text: #383a3b;
  --tg-muted: #67696a;
  --tg-border: #e4e4e4;
  --tg-bg: #ffffff;
  --radius-sm: 8px;
  --radius-pill: 30px;
  --transition: all 0.2s ease;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--tg-bg);
  color: var(--tg-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

a {
  color: #0088cc;
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================================
   顶部导航栏 (Navbar 56px 对标 desktop.telegram.org)
   =================================================================== */
header.tg-navbar {
  border-bottom: 1px solid var(--tg-border);
  background: #ffffff;
  height: 56px;
  text-align: left;
}
.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: 9999px;
  background: #f4f4f5;
}

/* ===================================================================
   主体居中内容区 (.td_content_wrap 对标 desktop.telegram.org)
   =================================================================== */
.td-content-wrap {
  padding: 40px 0 70px;
  max-width: 680px;
  margin: 0 auto;
}

/* 笔记本真机视窗模型 (.td_screenshot) */
.td-screenshot-box {
  width: 440px;
  max-width: 90%;
  margin: 20px auto 30px;
  background: #f8fafc;
  border: 1px solid #d2d6dc;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}
.td-laptop-screen {
  padding: 10px 14px;
  background: #edf2f7;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.td-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.td-dot.r { background: #f87171; }
.td-dot.y { background: #fbbf24; }
.td-dot.g { background: #34d399; }
.td-screen-body {
  padding: 22px;
  background: #ffffff;
}
.node-display-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.node-display-row:last-child {
  margin-bottom: 0;
}
.ping-badge-green {
  color: #10b981;
  font-weight: 800;
  font-size: 13px;
}

/* 标题与副标 */
.td-content-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.td-about-tdesktop {
  font-size: 16.5px;
  color: var(--tg-muted);
  line-height: 1.6;
  margin-bottom: 35px;
}

/* 核心下载按键与便携版链接 */
.td-download-wrap {
  margin-bottom: 24px;
}
.td-download-btn-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px 16px;
}
.td-download-btn {
  background: var(--tg-blue);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 270px;
  box-shadow: 0 4px 14px rgba(29, 152, 220, 0.3);
  transition: var(--transition);
}
.td-download-btn:hover {
  background: var(--tg-blue-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 152, 220, 0.4);
}
.td-download-btn b {
  font-weight: 800;
}
.td-download-add {
  font-size: 14.5px;
  color: #0088cc;
  margin-top: 10px;
  display: inline-block;
  cursor: pointer;
}
.td-download-add:hover {
  text-decoration: underline;
}

/* 全平台展开卡片组 (Show all platforms 对标 desktop.telegram.org) */
.td-platforms-expanded {
  margin: 20px 0 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.platform-card-mini {
  background: #f8fafc;
  border: 1px solid var(--tg-border);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}
.platform-card-mini:hover {
  border-color: var(--tg-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 底部协议与社群尾注 (#td_versions .td_about_license 对标 desktop.telegram.org) */
.td-about-license {
  font-size: 14px;
  color: var(--tg-muted);
  line-height: 1.9;
  border-top: 1px solid var(--tg-border);
  padding-top: 35px;
  margin-top: 20px;
}

/* 浮动右侧快速工具 */
.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: 600px) {
  .td-content-title {
    font-size: 24px;
  }
  .td-download-btn {
    min-width: 100%;
  }
}
