/* 狙击手 - 大科技动态自选股池 | Self-contained CSS (no external deps) */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.5; color: #e6edf3; background: #0d1117; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* === Layout === */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.inline-grid { display: inline-grid; }
.grid { display: grid; }
.hidden { display: none !important; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* === Position === */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* === Sizing === */
.w-full { width: 100%; }
.w-1\.5 { width: 0.375rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.h-0\.5 { height: 0.125rem; }
.h-1\.5 { height: 0.375rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-\[100dvh\] { height: 100dvh; }
.min-h-\[44px\] { min-height: 44px; }
.max-w-md { max-width: 28rem; }
.max-w-\[200px\] { max-width: 200px; }
.max-w-\[160px\] { max-width: 160px; }
.max-w-7xl { max-width: 80rem; }
.min-w-0 { min-width: 0; }

/* === Spacing: Padding === */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-8 { padding-left: 2rem; }
.pb-\[calc\(64px\+env\(safe-area-inset-bottom\,0px\)\)\] { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* === Spacing: Margin === */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* === Spacing: Gap === */
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Space-y utilities */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* === Typography === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* === Colors: Text === */
.text-white { color: #ffffff; }
.text-\[\#e6edf3\] { color: #e6edf3; }
.text-\[\#8b949e\] { color: #8b949e; }
.text-\[\#f85149\] { color: #f85149; }
.text-\[\#58a6ff\] { color: #58a6ff; }
.text-\[\#3fb950\] { color: #3fb950; }
.text-\[\#d29922\] { color: #d29922; }
.text-\[\#f0887e\] { color: #f0887e; }

/* === Colors: Background === */
.bg-transparent { background: transparent; }
.bg-\[\#0d1117\] { background-color: #0d1117; }
.bg-\[\#161b22\] { background-color: #161b22; }
.bg-\[\#58a6ff\] { background-color: #58a6ff; }
.bg-\[\#3fb950\] { background-color: #3fb950; }

/* === Colors: Border === */
.border-\[\#30363d\] { border-color: #30363d; }
.border-\[\#58a6ff\] { border-color: #58a6ff; }
.border-\[\#f85149\]\/30 { border-color: rgba(248, 81, 73, 0.3); }
.border-\[\#f85149\]\/20 { border-color: rgba(248, 81, 73, 0.2); }
.border-\[\#d29922\]\/20 { border-color: rgba(210, 153, 34, 0.2); }

/* === Colors: Background with opacity === */
.bg-\[\#3fb950\]\/15 { background-color: rgba(63, 185, 80, 0.15); }
.bg-\[\#d29922\]\/10 { background-color: rgba(210, 153, 34, 0.1); }
.bg-\[\#f85149\]\/10 { background-color: rgba(248, 81, 73, 0.1); }

/* === Hover === */
.hover\:bg-\[\#4a9eff\]:hover { background-color: #4a9eff; }

/* === Border === */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-t-transparent { border-top-color: transparent; }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* === Overflow === */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* === Transitions === */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-in-out; }

/* === Animations === */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* === Table === */
table { width: 100%; text-indent: 0; border-color: inherit; }
thead { display: table-header-group; }
tbody { display: table-row-group; }
tr { display: table-row; vertical-align: middle; }
td, th { display: table-cell; }
th { font-weight: inherit; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }
* { scrollbar-width: thin; scrollbar-color: #30363d #0d1117; }

/* === Responsive: md (768px) === */
@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}
@media (max-width: 767px) {
  .md\:block { display: none !important; }
  .md\:hidden { display: flex !important; }
}

/* === Responsive: lg (1024px) === */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* === Responsive: sm (640px) === */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* === Safe Area === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* === Last child === */
.last\:pb-0:last-child { padding-bottom: 0; }
