/* ===== 全局重置 & 蓝白主题 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background: #f0f7ff;
  color: #0b2b4a;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-container {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(0, 80, 200, 0.08);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(0, 112, 243, 0.10);
}

.main-content {
  padding: 20px 20px 12px;
}

/* ===== 头部品牌 ===== */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6f0ff;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #1a6dff, #0047c7);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 6px 12px rgba(0, 80, 255, 0.25);
  background-image: url('/img/172.png');
  background-size: cover;
  background-position: center;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #0047c7, #1a6dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 12px;
  color: #4a6a8b;
  background: #eaf2fd;
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
  -webkit-text-fill-color: #1a4d7a;
}

/* ===== 核心入口卡片 ===== */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 20px;
}

.cta-card {
  background: #f5faff;
  border-radius: 22px;
  padding: 18px 12px;
  text-align: center;
  border: 1px solid rgba(26, 109, 255, 0.15);
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 60, 180, 0.04);
  text-decoration: none;
  color: #0b2b4a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-card:active {
  transform: scale(0.96);
  background: #e6f0ff;
  border-color: #1a6dff;
}

.cta-icon {
  font-size: 28px;
  line-height: 1;
}

.cta-label {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.cta-desc {
  font-size: 11px;
  color: #3a6a94;
  font-weight: 400;
  opacity: 0.8;
}

.highlight-badge {
  background: #1a6dff;
  color: white;
  border-radius: 40px;
  padding: 2px 14px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}

/* ===== 信息卡片 ===== */
.info-card {
  background: #f8fcff;
  border-radius: 28px;
  padding: 18px 16px;
  margin: 24px 0 18px;
  border-left: 5px solid #1a6dff;
  box-shadow: 0 6px 14px rgba(0, 80, 200, 0.06);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #d9e9ff;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #1f4b77;
  font-weight: 500;
  font-size: 14px;
}

.info-value {
  color: #003b99;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.code-highlight {
  background: #e1edff;
  padding: 2px 14px;
  border-radius: 40px;
  font-family: 'SF Mono', monospace;
  letter-spacing: 0.5px;
}

/* ===== 按钮 ===== */
.btn-primary {
  background: linear-gradient(145deg, #1a6dff, #0047c7);
  border: none;
  color: white;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 60px;
  width: 100%;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 80, 255, 0.25);
  transition: 0.15s;
  margin: 18px 0 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0, 60, 200, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #1a6dff;
  color: #1a6dff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 60px;
  width: 100%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: 0.15s;
  margin: 8px 0;
}

.btn-outline:active {
  background: #e6f0ff;
  transform: scale(0.97);
}

/* ===== 底部导航栏 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 80, 200, 0.12);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 env(safe-area-inset-bottom, 12px);
  box-shadow: 0 -6px 20px rgba(0, 60, 150, 0.06);
  max-width: 480px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 32px 32px 0 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #3b6a96;
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  transition: 0.15s;
  padding: 4px 12px;
  border-radius: 40px;
  background: transparent;
}

.nav-item.active {
  color: #0047c7;
  background: #e6f0ff;
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-item span {
  font-size: 11px;
}

.nav-item:active {
  transform: scale(0.92);
}

/* ===== 工具类 ===== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #b6d4ff, transparent);
  margin: 18px 0;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #2a6292;
  padding: 8px 6px 4px;
}

/* ===== 暗色模式适配 ===== */
@media (prefers-color-scheme: dark) {
  body { background: #eaf2fc; }
  .app-container { background: #ffffff; }
  .bottom-nav { background: rgba(255, 255, 255, 0.96); }
}

/* ===== 响应式 ===== */
@media (max-width: 400px) {
  .brand-title { font-size: 18px; }
  .cta-card { padding: 14px 8px; }
}