@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #F5F7FA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* App container: keeps mobile layout on desktop */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F5F7FA;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #F3F4F6;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  margin: 0 auto;
  max-width: 480px;
}

@media (min-width: 481px) {
  .bottom-nav .inner {
    max-width: 480px;
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #9CA3AF;
  padding: 6px 0;
}

.nav-tab.active {
  color: #2B6EFF;
}

.nav-tab span {
  font-size: 10px;
  margin-top: 2px;
}

/* Language trigger */
.lang-trigger-fixed {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483647;
}

/* Primary button */
.btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #2B6EFF;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marquee animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: inline-flex;
  animation: marquee 60s linear infinite;
}

.home-marquee {
  animation-duration: 120s;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dashed divider */
.dashed-line {
  border-top: 1px dashed #E5E7EB;
  margin: 0.75rem 0;
}

/* Shadow utility used across pages */
.shadow-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Common H5 form/input styles */
.input-h5 {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #f3f4f6;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  color: #1f2937;
}

.input-h5::placeholder {
  color: #9ca3af;
}

/* Custom utilities */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.mb-nav {
  margin-bottom: 80px;
}

/* Safe area padding for bottom fixed nav */
.pb-bottom-nav {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Prevent horizontal overflow on mobile */
.overflow-safe {
  overflow-x: hidden;
  word-break: break-word;
}

