* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  height: 100vh;
  padding-bottom: 60px;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  overflow: hidden;
  height: 100vh;
  overscroll-behavior: none;
}

.mobile-app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-page-container {
  display: none !important;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
}

.mobile-page-container.active {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

#mobileIntroPage.active {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

#mobileIntroPage .mobile-intro-header {
  flex-shrink: 0;
}

#mobileIntroPage .mobile-intro-scroll-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

#mobileIntroPage .mobile-intro-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

#mobileApplyPage {
  background: var(--bg-white);
  display: none !important;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#mobileApplyPage.active {
  display: flex !important;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.mobile-banner {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-section {
  padding: 16px;
}

.mobile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.mobile-section-more {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
}

.mobile-product-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.app-section::-webkit-scrollbar {
  display: none;
}

.app-grid .product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.app-grid .product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-grid .product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.app-grid .product-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.app-grid .product-name {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-slider-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

.mobile-product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.mobile-product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-product-icon {
  font-size: 32px;
}

.mobile-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-product-tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mobile-product-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 4px;
}

.mobile-product-info {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.mobile-product-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: 8px;
}

.mobile-stat-item {
  text-align: center;
}

.mobile-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.mobile-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.mobile-apply-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
}

.mobile-apply-btn:hover {
  background: var(--primary-dark);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: none;
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: scale(1.1);
}

.mobile-nav-item.active .mobile-nav-label {
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav-icon {
  font-size: 24px;
  transition: transform 0.3s;
}

.mobile-nav-label {
  font-size: 11px;
  color: var(--text-light);
}

#mobileNewsPage {
  background: var(--bg-white);
  display: none !important;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#mobileNewsPage.active {
  display: flex !important;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.mobile-news-hero {
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 20px 16px;
  text-align: center;
}

.mobile-news-categories {
  flex-shrink: 0;
}

.mobile-news-hero h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mobile-news-hero p {
  font-size: 12px;
  opacity: 0.9;
}

.mobile-news-categories {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: white;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.mobile-news-categories::-webkit-scrollbar {
  display: none;
}

.mobile-news-category {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f1f5f9;
  color: var(--text-gray);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-news-category.active {
  background: var(--primary);
  color: white;
}

.news-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.news-scroll-container::-webkit-scrollbar {
  display: none;
}

.mobile-news-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.mobile-news-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-light);
}

.mobile-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-news-content {
  padding: 12px;
}

.mobile-news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.mobile-news-meta {
  font-size: 11px;
  color: var(--text-light);
}

.mobile-article-view {
  padding: 16px;
  padding-bottom: 80px;
  background: var(--bg-white);
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
}

.mobile-article-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.mobile-article-header {
  margin-bottom: 16px;
}

.mobile-article-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.mobile-article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.mobile-article-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-gray);
}

.mobile-article-content p {
  margin-bottom: 16px;
}

.mobile-article-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.mobile-article-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.mobile-article-content ul,
.mobile-article-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.mobile-article-content li {
  margin-bottom: 8px;
}

.mobile-article-back {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

#mobileIntroPage {
  background: var(--bg-white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-intro-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.mobile-intro-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  overflow: hidden;
}

.mobile-intro-logo span {
  font-size: 48px;
}

.mobile-intro-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mobile-intro-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mobile-intro-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.mobile-intro-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--bg-light);
}

.mobile-intro-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.mobile-intro-section p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

.mobile-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mobile-advantage-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}

.mobile-advantage-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.mobile-advantage-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.mobile-advantage-desc {
  font-size: 12px;
  color: var(--text-light);
}

.mobile-partners-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-partners-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-partner-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  min-width: 100px;
}

.mobile-partner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  overflow: hidden;
}

.mobile-partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-partner-name {
  font-size: 12px;
  color: var(--text-gray);
  text-align: center;
}

.mobile-back-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.scroll-notification-container {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(251, 146, 60, 0.95) 100%);
  z-index: 100;
  overflow: hidden;
  height: 140px;
}

.scroll-notification-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scroll-notification-title span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.scroll-notification-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}

.scroll-notification-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  white-space: nowrap;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  height: 38px;
}

.scroll-notification-item .icon { font-size: 14px; }
.scroll-notification-item .name { font-weight: 600; }
.scroll-notification-item .phone { font-size: 11px; opacity: 0.9; }
.scroll-notification-item .time { font-size: 11px; opacity: 0.8; }
.scroll-notification-item .type { 
  font-size: 10px; 
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.scroll-notification-item .message { margin-left: auto; }
.scroll-notification-item .amount { 
  font-weight: 700; 
  font-size: 16px; 
  color: #fbbf24; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}