/* ===================================================================
   狗急加速器：在线服务平台 - 专属样式表
   Design System & Layout Skeleton inspired by Telegram Applications
   Palette: Telegram Azure Blue + Snow White + Slate Charcoal
   =================================================================== */

:root {
  --telegram-blue: #2481cc;
  --telegram-blue-hover: #1e70b3;
  --telegram-cyan: #229ed9;
  --bg-white: #ffffff;
  --bg-page: #ffffff;
  --bg-subtle: #f4f5f8;
  --text-dark: #212121;
  --text-body: #474747;
  --text-muted: #707579;
  --border-light: #e5e7eb;
  --border-card: #e6e8eb;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 980px; /* Telegram 经典单栏聚焦居中宽度 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--telegram-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--telegram-blue-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   Header & Navigation (Telegram 经典居中标签顶栏)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-tabs-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-tab-link {
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  padding: 16px 0;
  position: relative;
  display: inline-block;
}

.nav-tab-link:hover,
.nav-tab-link.active {
  color: var(--telegram-blue);
  text-decoration: none;
}

.nav-tab-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--telegram-blue);
  border-radius: 3px 3px 0 0;
}

.header-tools-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-action {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--telegram-blue);
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-header-action:hover {
  background: var(--telegram-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ===================================================================
   Hero 聚焦首屏与吉祥物 (Telegram Apps 结构复刻)
   =================================================================== */
.hero-apps-section {
  padding: 50px 0 35px;
  text-align: center;
}

.apps-title-h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.mascot-illustration-box {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 36px;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.2);
}

.mascot-illustration-box svg {
  width: 72px;
  height: 72px;
  fill: var(--telegram-blue);
}

.open-security-statement {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.open-security-statement strong {
  color: var(--text-dark);
}

/* ===================================================================
   平台分类目录 (Platform Directory Matrix)
   =================================================================== */
.directory-section {
  padding: 20px 0 50px;
}

.category-block {
  margin-bottom: 36px;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apps-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 6px;
}

.app-entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.app-entry-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--telegram-blue);
  font-size: 20px;
  flex-shrink: 0;
}

.app-entry-link {
  font-weight: 600;
  color: var(--telegram-blue);
}

.app-entry-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 6px;
}

/* ===================================================================
   安全审计与源码透明度 (Source Code & Audit Section)
   =================================================================== */
.audit-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}

.audit-head-h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.audit-lead-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.repo-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.repo-card-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.repo-card-box:hover {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.repo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.repo-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.repo-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #6b7280;
}

.btn-apk-direct {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--telegram-blue);
  padding: 4px 10px;
  border-radius: 4px;
}

.btn-apk-direct:hover {
  background: var(--telegram-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ===================================================================
   安全漏洞赏金计划 (Bug Bounty Program)
   =================================================================== */
.bounty-section {
  padding: 35px 0 50px;
  border-top: 1px solid var(--border-light);
}

.bounty-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.bounty-title {
  font-size: 17px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 8px;
}

.bounty-text {
  font-size: 14px;
  color: #15803d;
  line-height: 1.7;
}

/* ===================================================================
   Footer (Telegram 经典 4 栏页脚)
   =================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 50px 0 35px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-4col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--telegram-blue);
}

.footer-copyright-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* ===================================================================
   Floating Right Tool Bar
   =================================================================== */
.floating-side-bar {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.float-btn:hover {
  background: #e0f2fe;
  color: var(--telegram-blue);
}

.float-btn.active-dl {
  background: var(--telegram-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.35);
}

/* ===================================================================
   Download Page Details
   =================================================================== */
.dl-deck-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.dl-card-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: var(--transition);
}

.dl-card-item:hover {
  background: #ffffff;
  border-color: var(--telegram-blue);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .apps-title-h1 {
    font-size: 26px;
  }
  .repo-items-grid,
  .footer-4col-grid,
  .dl-deck-cards {
    grid-template-columns: 1fr;
  }
  .floating-side-bar {
    right: 12px;
    bottom: 30px;
  }
}
