/* ==========================================================================
   华泰腾飞 官方下载落地页样式表
   规范：UI/UX Pro Max - Fintech & Securities Clean Style
   ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;
  --secondary: #0EA5E9;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --emerald-500: #10B981;
  --emerald-50: #ECFDF5;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* 顶部导航 */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.brand-verify {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--emerald-500);
  font-weight: 500;
}

.nav-action .nav-web-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  transition: all 0.2s ease;
}

.nav-action .nav-web-link:hover {
  background: #DBEAFE;
  color: var(--primary-hover);
}

/* Hero 模块 */
.hero-section {
  text-align: center;
  padding: 24px 12px 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0F172A 30%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-metrics {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.metric-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: var(--slate-200);
}

/* 下载主要排版区域 */
.layout-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 840px) {
  .layout-main {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.download-container {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* 平台切换 Tabs */
.platform-tabs {
  display: flex;
  background: var(--slate-100);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  color: var(--slate-900);
}

.tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 平台面板 */
.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.panel-app-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.panel-app-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.panel-app-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.panel-version {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-align: right;
  white-space: nowrap;
}

/* 下载按钮组 */
.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .action-btn-group {
    flex-direction: row;
  }
}

.btn-primary {
  flex: 1.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-primary.btn-android {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary.btn-android:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* 步骤指南卡片 */
.guide-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 14px;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-badge {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-800);
}

.step-desc {
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.4;
  margin-top: 2px;
}

/* 桌面端扫码区 */
.qr-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
}

.qr-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.qr-desc {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 18px;
}

.qr-box-wrapper {
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.qr-box img {
  display: block;
  margin: 0 auto;
}

.qr-footer .qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--emerald-50);
  color: var(--emerald-500);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* 平台特色模块 */
.features-section {
  margin-bottom: 48px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.sub-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.main-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon.tone-blue { background: #EFF6FF; color: #2563EB; }
.feature-icon.tone-indigo { background: #EEF2FF; color: #4F46E5; }
.feature-icon.tone-sky { background: #F0F9FF; color: #0284C7; }
.feature-icon.tone-teal { background: #F0FDFA; color: #0D9488; }

.feature-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* 页脚 */
.page-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* 微信引导弹层 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: 20px;
  align-items: flex-start;
  justify-content: center;
}

.overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.overlay-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  max-width: 380px;
  width: 100%;
  margin-top: 60px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.overlay-arrow {
  position: absolute;
  top: -45px;
  right: 15px;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  animation: bounce 1.2s infinite;
}

.overlay-arrow svg {
  width: 40px !important;
  height: 40px !important;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.overlay-icon-wrap {
  width: 52px;
  height: 52px;
  background: #FEF3C7;
  color: #D97706;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.overlay-icon-wrap svg {
  width: 36px !important;
  height: 36px !important;
}

.overlay-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.overlay-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
}
