﻿/* 鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲
   閲忓寲鍐涚伀搴?路 100% 杩樺師 eaxau.com
   鍩轰簬婧愮珯 Tailwind + React Native Web
鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  border: 0 solid #e5e7eb;
}

:root {
  --color-background: #ffffff;
  --color-surface:    #f9fafb;
  --color-border:     #e5e7eb;
  --color-primary:    #3b82f6;
  --color-foreground: #111827;
  --color-muted:      #6b7280;
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-error:      #ef4444;
  --color-accent:     #8b5cf6;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  line-height: inherit;
  margin: 0;
  background-color: #f5f5f5;
  color: var(--color-foreground);
  font-size: 14px;
}

a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, [role=button] { cursor: pointer; font-family: inherit; background: none; border: none; outline: none; padding: 0; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; outline: none; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit; margin: 0; }

/* 鈺愨晲 App Shell 鈺愨晲 */
#app-root {
  background-color: var(--color-background);
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}

/* 鈺愨晲 Header 鈺愨晲 */
header.site-header {
  background-color: var(--color-background);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-foreground);
  cursor: pointer;
}

.logo-icon {
  width: 28px; height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
}
.logo-icon span { border-radius: 2px; display: block; }
.logo-icon span:nth-child(1) { background: #3b82f6; }
.logo-icon span:nth-child(2) { background: #f59e0b; }
.logo-icon span:nth-child(3) { background: #10b981; }
.logo-icon span:nth-child(4) { background: #ef4444; }

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 妗岄潰瀵艰埅 */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 8px;
}
.desktop-nav a {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 14px;
  color: var(--color-muted);
  transition: all .15s;
  white-space: nowrap;
}
.desktop-nav a:hover { background: #eff6ff; color: var(--color-primary); opacity: 1; }
.desktop-nav a.active {
  background: #eff6ff;
  color: var(--color-primary);
  font-weight: 600;
}
.nav-emoji { font-size: 14px; }

/* 涓婃灦EA 鎸夐挳 */
.btn-header-primary {
  display: flex; align-items: center; gap: 5px;
  background: var(--color-primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-header-primary:hover { opacity: .9; }

/* 鎼滅储鍥炬爣 */
.btn-search-icon {
  width: 34px; height: 34px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  font-size: 16px;
  transition: background .15s;
}
.btn-search-icon:hover { background: var(--color-surface); }

/* 鈺愨晲 Filter Tabs 鈺愨晲 */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.tab-pill {
  flex-shrink: 0;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  transition: all .15s;
  cursor: pointer;
}
.tab-pill:hover { opacity: .85; }
.tab-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* 鈺愨晲 Strategy Card Grid 鈺愨晲 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--color-surface);
}

.s-card {
  background: var(--color-background);
  display: block;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow .3s, transform .3s;
}
.s-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
  z-index: 2;
  position: relative;
}

/* 鍥剧墖鍖?*/
.s-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56%;
  background: #0f172a;
  overflow: hidden;
}
.s-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.s-card-img-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  z-index: 0;
  background: #0f172a;
}

/* 骞冲彴鏍囩 宸︿笂 */
.s-card-platform {
  position: absolute; top: 10px; left: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .3px;
}
.s-card-platform.mt5 { background: #059669; }

/* 璁㈤槄鍥炬爣 鍙充笂 */
.s-card-sub {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  z-index: 2;
}

/* 鏀剁泭鐜囪鏍?鍙充笅 */
.s-card-return {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(16,185,129,.92);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: .2px;
}
.s-card-return.neg { background: rgba(239,68,68,.92); }

/* 鍗＄墖鍐呭鍖?*/
.s-card-body {
  padding: 12px 14px 14px;
}

.s-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.s-card-row1 {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.price-free { color: var(--color-success); font-size: 14px; font-weight: 700; }
.price-paid { color: var(--color-error);   font-size: 14px; font-weight: 700; }

.s-card-stats {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--color-muted);
}
.stat-item { display: flex; align-items: center; gap: 3px; }
.s-card-winrate { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

/* 鈺愨晲 Bottom Nav 鈺愨晲 */
[data-bottom-nav] {
  display: none;
  position: sticky; bottom: 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  z-index: 200;
}
.bottom-nav {
  display: none;
  position: sticky; bottom: 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  z-index: 200;
}

/* 鈺愨晲 Page content 鈺愨晲 */
.page-content { flex: 1; }

/* 鈺愨晲 Section 鈺愨晲 */
.section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}
.section-title {
  font-size: 15px; font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 16px;
}

/* 鈺愨晲 CTA Banner 鈺愨晲 */
.cta-banner {
  margin: 20px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.cta-banner .cta-icon { font-size: 36px; margin-bottom: 10px; }
.cta-banner h3 { font-size: 16px; font-weight: 700; color: var(--color-foreground); margin-bottom: 6px; }
.cta-banner p  { font-size: 13px; color: var(--color-muted); margin-bottom: 16px; }
.cta-btn {
  display: inline-block;
  background: var(--color-primary); color: #fff;
  padding: 10px 28px; border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  transition: opacity .2s;
}
.cta-btn:hover { opacity: .9; }

/* 鈺愨晲 Form 鈺愨晲 */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.form-label .req { color: var(--color-error); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--color-background);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: var(--color-foreground);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--color-muted); margin-top: 4px; }

.btn-primary {
  width: 100%; background: var(--color-primary); color: #fff;
  border: none; border-radius: 9999px; padding: 13px;
  font-size: 15px; font-weight: 700;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .9; }

/* 鈺愨晲 Tags 鈺愨晲 */
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
}
.tag-mt4 { background: #dbeafe; color: #1d4ed8; }
.tag-mt5 { background: #d1fae5; color: #065f46; }

/* 鈺愨晲 Mobile 鈺愨晲 */
@media (max-width: 767px) {
  body { background: #fff; }
  #app-root { max-width: 100%; box-shadow: none; }
  header.site-header { padding: 12px 16px; }
  .desktop-nav { display: none; }
  .btn-header-primary { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .filter-tabs { padding: 10px 12px; }
  .section { padding: 16px; }
  .bottom-nav { display: flex; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #app-root { max-width: 768px; }
}

.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px 10px;
  gap: 3px;
  color: var(--color-muted);
  font-size: 11px;
  transition: color .15s;
}
.bottom-nav a.active { color: var(--color-primary); }
.bottom-nav a .nav-icon { font-size: 20px; line-height: 1; }
