/* ===================================================================
   狗急加速：客户端安装 - 专属样式表
   Design System & Layout Skeleton inspired by V2RaySH
   Palette: Dark Graphite Charcoal + Luminous Cyber Gold + Neon Mint
   =================================================================== */

:root {
  --gold: #facc15;
  --gold-hover: #eab308;
  --gold-glow: rgba(250, 204, 21, 0.35);
  --dark-base: #18191c;
  --dark-surface: #202124;
  --dark-card: #282a2e;
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-border-hover: rgba(250, 204, 21, 0.4);
  --text-white: #ffffff;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --mint-green: #10b981;
  --cyan-blue: #38bdf8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1180px;
}

* {
  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(--dark-base);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ffffff;
}

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
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(24, 25, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18191c;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #18191c;
}

.logo-text span {
  color: var(--gold);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #18191c;
  background: var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4);
}

.btn-header-cta:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.5);
  color: #18191c;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

/* ===================================================================
   Hero 聚焦首屏 (V2RaySH 风格极客暗黑布局)
   =================================================================== */
.hero-section {
  padding: 75px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, #2a2c33 0%, #18191c 70%);
  border-bottom: 1px solid var(--dark-border);
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--gold);
}

.hero-lead-p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.btn-hero-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #18191c;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px var(--gold-glow);
  transition: var(--transition);
}

.btn-hero-download:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(250, 204, 21, 0.5);
  color: #18191c;
}

.btn-hero-tutorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-border);
  transition: var(--transition);
}

.btn-hero-tutorial:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

/* 4 端快捷图标行 (V2RaySH 特色) */
.hero-platform-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.pf-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.pf-shortcut-item:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.pf-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* 协议胶囊组 */
.hero-protocol-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.protocol-pill {
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
}

/* ===================================================================
   交互式设置示意视窗 (V2RaySH 拟真设置窗口)
   =================================================================== */
.settings-window-section {
  padding: 40px 0 80px;
}

.settings-window-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #111215;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.window-title-bar {
  background: #1c1d22;
  border-bottom: 1px solid #2a2c33;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots-wrap {
  display: flex;
  gap: 6px;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.win-title-text {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
}

.window-tabs-header {
  display: flex;
  background: #18191c;
  border-bottom: 1px solid var(--dark-border);
  overflow-x: auto;
}

.win-tab-btn {
  padding: 12px 22px;
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.win-tab-btn:hover {
  color: #ffffff;
}

.win-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(250, 204, 21, 0.05);
}

.window-body-content {
  padding: 30px;
}

.tab-pane-view {
  display: none;
}

.tab-pane-view.active {
  display: block;
}

.setting-card-block {
  background: #1c1d22;
  border: 1px solid #2a2c33;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.setting-block-h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-block-p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
}

/* ===================================================================
   按系统选择客户端 (4 宫格平台卡片)
   =================================================================== */
.platform-cards-section {
  padding: 70px 0;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.section-head-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-head-h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-head-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.platform-cards-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pf-card-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pf-card-box:hover {
  transform: translateY(-4px);
  border-color: var(--dark-border-hover);
  box-shadow: var(--shadow-md);
}

.pf-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pf-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pf-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-pf-goto {
  padding: 10px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}

.pf-card-box:hover .btn-pf-goto {
  background: var(--gold);
  color: #18191c;
  border-color: var(--gold);
}

/* ===================================================================
   5 维核心网络设置深度指南 (5 Technical Sections)
   =================================================================== */
.deep-dive-section {
  padding: 85px 0;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.deep-dive-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
}

.deep-dive-card:hover {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: var(--shadow-md);
}

.deep-dive-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deep-dive-title span {
  color: var(--gold);
}

.deep-dive-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   五步闭环指引条
   =================================================================== */
.step-loop-strip {
  background: #111215;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin-top: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.step-loop-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.step-loop-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ===================================================================
   近期技术排障笔记 (Recent Technical Notes)
   =================================================================== */
.notes-section {
  padding: 80px 0;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
}

.notes-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.note-card-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.note-card-box:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.note-title-h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 12px;
}

.note-desc-p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.note-footer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: #111215;
  color: #9ca3af;
  padding: 75px 0 35px;
  font-size: 14px;
  border-top: 1px solid var(--dark-border);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-about p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col-nav h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-nav a {
  color: #9ca3af;
}

.footer-col-nav a:hover {
  color: var(--gold);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

/* ===================================================================
   Floating Right Tool Bar
   =================================================================== */
.floating-side-bar {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #202124;
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--dark-border);
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: transparent;
  transition: var(--transition);
}

.float-btn:hover {
  background: #282a2e;
  color: var(--gold);
}

.float-btn.active-dl {
  background: var(--gold);
  color: #18191c;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .platform-cards-4grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deep-dive-grid,
  .notes-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 30px;
  }
  .hero-platform-icons-row {
    gap: 20px;
  }
  .platform-cards-4grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .floating-side-bar {
    right: 12px;
    bottom: 30px;
  }
}
