/* ===================================================================
   狗急加速：iOS客户端下载 - 专属样式表
   Design System & Layout Skeleton inspired by Sunlogin Download Center
   Palette: Coral Red + Speed Cobalt Blue + Soft Light Grey
   =================================================================== */

:root {
  --coral-red: #ef4444;
  --coral-red-hover: #dc2626;
  --cobalt-blue: #2563eb;
  --cobalt-blue-hover: #1d4ed8;
  --primary: #2563eb;
  --accent-orange: #f97316;
  --bg-page: #f5f6fa;
  --bg-white: #ffffff;
  --text-dark: #1f2329;
  --text-muted: #8f959e;
  --border-light: #e5e6eb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 32px rgba(31, 35, 41, 0.08);
  --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(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--cobalt-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--coral-red);
}

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(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.logo-text span {
  color: var(--coral-red);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #4e5969;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--coral-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.45);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===================================================================
   双层分类 Tab 导航系统 (Sunlogin 特色组件)
   =================================================================== */
.download-nav-section {
  padding: 35px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

/* 第一层：业务/用户属性分流 */
.tier1-editions-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f2f3f5;
  padding: 6px;
  border-radius: var(--radius-full);
  max-width: 480px;
  margin: 0 auto 28px;
}

.tier1-btn {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #4e5969;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}

.tier1-btn.active {
  background: #ffffff;
  color: var(--coral-red);
  box-shadow: var(--shadow-sm);
}

/* 第二层：系统平台标签 */
.tier2-platforms-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #4e5969;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.platform-tab-item:hover {
  color: var(--coral-red);
}

.platform-tab-item.active {
  color: var(--coral-red);
  font-weight: 700;
}

.platform-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--coral-red);
  border-radius: 2px;
}

/* ===================================================================
   Hero 专属平台下载卡片区 (向日葵个人版主体)
   =================================================================== */
.platform-hero-section {
  padding: 60px 0 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.platform-hero-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-box-left h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-box-left h1 span {
  color: var(--coral-red);
}

.hero-box-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-cta-action-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-main-platform-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cobalt-blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
  max-width: 380px;
}

.btn-main-platform-dl:hover {
  background: var(--cobalt-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.version-meta-text {
  font-size: 13px;
  color: var(--text-muted);
}

.auxiliary-versions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #f2f3f5;
}

.aux-btn-link {
  font-size: 13px;
  color: #4e5969;
  background: #f2f3f5;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.aux-btn-link:hover {
  background: #e5e6eb;
  color: var(--cobalt-blue);
}

/* 右侧设备交互示意图 */
.hero-box-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-mobile-container {
  width: 290px;
  height: 480px;
  background: #ffffff;
  border: 8px solid #1f2329;
  border-radius: 40px;
  padding: 24px 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-notch {
  width: 100px;
  height: 18px;
  background: #1f2329;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-screen-header {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #1f2329;
  border-bottom: 1px solid #f2f3f5;
  padding-bottom: 12px;
}

.mobile-connect-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.mobile-connect-circle span {
  font-size: 15px;
  font-weight: 800;
}

.mobile-connect-circle small {
  font-size: 11px;
  opacity: 0.85;
}

.mobile-status-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
}

/* ===================================================================
   3 大核心场景与技术优势 (Feature Highlights)
   =================================================================== */
.features-3col-section {
  padding: 90px 0;
  background: var(--bg-page);
}

.section-title-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-title-h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-desc-p {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  transition: var(--transition);
}

.feature-item-card:hover {
  transform: translateY(-5px);
  border-color: #fca5a5;
  box-shadow: var(--shadow-lg);
}

.feature-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fee2e2;
  color: var(--coral-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.feature-item-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   4 场景解决方案 (Scenarios)
   =================================================================== */
.scenarios-section {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.scenarios-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.scenario-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  transition: var(--transition);
}

.scenario-card:hover {
  background: #ffffff;
  border-color: var(--cobalt-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.scenario-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.scenario-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.scenario-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   常见问题解答 (FAQ)
   =================================================================== */
.faq-section {
  padding: 90px 0;
  background: var(--bg-page);
}

.faq-wrap-box {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-q-btn {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-q-btn:hover {
  color: var(--coral-red);
}

.faq-a-body {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: #191c24;
  color: #8f959e;
  padding: 75px 0 35px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.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: #64748b;
  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: #8f959e;
}

.footer-col-nav a:hover {
  color: #f87171;
}

.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: #64748b;
}

/* ===================================================================
   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 8px 25px 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: #64748b;
  background: transparent;
  transition: var(--transition);
}

.float-btn:hover {
  background: #fee2e2;
  color: var(--coral-red);
}

.float-btn.active-dl {
  background: var(--coral-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .platform-hero-box {
    grid-template-columns: 1fr;
    padding: 36px 30px;
  }
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
  .scenarios-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-box-left h1 {
    font-size: 28px;
  }
  .scenarios-grid-4 {
    grid-template-columns: 1fr;
  }
  .tier2-platforms-nav {
    gap: 12px;
  }
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .floating-side-bar {
    right: 12px;
    bottom: 30px;
  }
}
