Initial commit
This commit is contained in:
@@ -0,0 +1,266 @@
|
||||
/* ═══════════════════════════════════════
|
||||
auth.css - Login and registration styles
|
||||
Lines: 261
|
||||
═══════════════════════════════════════ */
|
||||
|
||||
/* ========== 登录相关样式 ========== */
|
||||
|
||||
.title-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.title-bar h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.username {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.login-btn, .logout-btn {
|
||||
padding: 6px 14px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
|
||||
color: var(--bg-dark);
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
background: rgba(255, 68, 68, 0.2);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
.logout-btn:hover {
|
||||
background: rgba(255, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
/* 登录弹窗 */
|
||||
.login-modal {
|
||||
background: var(--bg-dark);
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
width: 90%;
|
||||
max-width: 360px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.login-head.title-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid var(--border-glass);
|
||||
}
|
||||
|
||||
.title-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.current-model {
|
||||
font-size: 12px;
|
||||
color: var(--accent);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.login-header h3 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.login-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-field {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.login-field label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.login-field input {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border-glass);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.login-field input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.login-error {
|
||||
color: #ff4444;
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login-success {
|
||||
color: #00ff88;
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login-submit {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
|
||||
color: var(--bg-dark);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.login-submit:hover {
|
||||
transform: scale(1.01);
|
||||
}
|
||||
|
||||
.login-submit:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.login-switch {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.login-switch a {
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
/* 登录选项卡 */
|
||||
.login-tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--border-glass);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-tab {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.login-tab.active {
|
||||
color: var(--text-primary);
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.login-tab:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-close-btn {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-close-btn:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
/* 登录页面(未登录状态) */
|
||||
.login-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 80vh;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-page-header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.login-icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.login-page-header h1 {
|
||||
font-size: 28px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.login-page-header p {
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.login-modal-inline {
|
||||
width: 100%;
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.loading-auth {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 80vh;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,709 @@
|
||||
/* ═══════════════════════════════════════
|
||||
base.css - Root variables, body, navigation, layout
|
||||
Lines: 700
|
||||
═══════════════════════════════════════ */
|
||||
|
||||
:root {
|
||||
--bg-dark: #0a0a0a;
|
||||
--bg-glass: rgba(255, 255, 255, 0.05);
|
||||
--bg-glass-hover: rgba(255, 255, 255, 0.08);
|
||||
--border-glass: rgba(255, 255, 255, 0.1);
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: rgba(255, 255, 255, 0.7);
|
||||
--text-muted: rgba(255, 255, 255, 0.4);
|
||||
--accent: #ffffff;
|
||||
--success: #00ff88;
|
||||
--danger: #ff4444;
|
||||
--warning: #ffaa00;
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', sans-serif;
|
||||
background: var(--bg-dark);
|
||||
min-height: 100vh;
|
||||
color: var(--text-primary);
|
||||
padding: 0;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
padding: 20px 16px;
|
||||
padding-top: max(20px, env(safe-area-inset-top));
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 24px;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.main-title-date {
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.market-status {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.market-status.open {
|
||||
color: var(--success);
|
||||
background: rgba(0, 255, 136, 0.15);
|
||||
}
|
||||
|
||||
.market-status.closed {
|
||||
color: var(--text-muted);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* 玻璃卡片基础样式 */
|
||||
.glass {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* 导航标签 */
|
||||
.nav-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 20px;
|
||||
padding: 4px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
backdrop-filter: blur(20px);
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.nav-tab {
|
||||
flex: 1;
|
||||
padding: 14px 20px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 紧凑导航样式 */
|
||||
.nav-tabs-compact {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.nav-tabs-compact .nav-tab {
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.nav-tab:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.nav-tab.active {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
|
||||
color: var(--bg-dark);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.nav-tab.active::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
||||
}
|
||||
|
||||
/* 子导航标签 */
|
||||
.sub-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin-bottom: 16px;
|
||||
padding: 3px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.sub-tab {
|
||||
flex: 1;
|
||||
padding: 10px 14px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.sub-tab:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sub-tab.active {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sub-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 9px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sub-tab.active .sub-badge {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.add-watch-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin-left: auto;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px dashed rgba(255, 255, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.add-watch-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
color: var(--text-primary);
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.add-watch-input {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
padding: 12px;
|
||||
background: var(--bg-glass);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.add-watch-input input {
|
||||
flex: 1;
|
||||
padding: 8px 12px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.add-watch-input input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.add-watch-input button {
|
||||
padding: 8px 16px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.add-watch-input button:hover:not(:disabled) {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.add-watch-input button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 输入区域 */
|
||||
.input-section {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(20px);
|
||||
border: none;
|
||||
padding: 20px;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.input-group:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.input-group label {
|
||||
display: block;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 8px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.input-group input {
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
font-size: 16px;
|
||||
color: var(--text-primary);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.input-group input:focus {
|
||||
outline: none;
|
||||
border-color: var(--text-primary);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.input-group input::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.analyze-btn {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
padding: 0 16px;
|
||||
background: var(--text-primary);
|
||||
color: var(--bg-dark);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
transition: all 0.2s;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.analyze-btn:active {
|
||||
transform: scale(0.98);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.analyze-btn:disabled {
|
||||
background: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 扫描控制区 */
|
||||
.scan-control {
|
||||
margin-bottom: 12px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.scan-source-select {
|
||||
flex: 0 0 150px;
|
||||
padding: 14px 16px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 12px;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 12px center;
|
||||
padding-right: 36px;
|
||||
}
|
||||
|
||||
.scan-source-select:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
|
||||
}
|
||||
|
||||
.scan-source-select option {
|
||||
background: #1a1a2e;
|
||||
color: var(--text-primary);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.scan-btn {
|
||||
flex: 1;
|
||||
padding: 14px 28px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.scan-btn:hover:not(:disabled) {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.scan-btn:active:not(:disabled) {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.scan-btn:disabled {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.scan-status-bar {
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
padding: 10px;
|
||||
margin-bottom: 12px;
|
||||
background: var(--bg-glass);
|
||||
border-radius: 8px;
|
||||
animation: pulse 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
/* 扫描结果 */
|
||||
.scan-results {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(20px);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 12px;
|
||||
margin-bottom: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.scan-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.scan-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.scan-item .rank {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.scan-item:nth-child(-n+3) .rank {
|
||||
background: rgba(0, 255, 136, 0.2);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.scan-stock-info {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.scan-stock-info:hover {
|
||||
background: rgba(0, 255, 136, 0.15);
|
||||
}
|
||||
|
||||
.scan-code {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
min-width: 55px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.scan-name {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.scan-price {
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.scan-rate {
|
||||
padding: 3px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
min-width: 36px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.scan-rate.buy {
|
||||
background: rgba(0, 255, 136, 0.15);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.scan-add-btn {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.scan-add-btn:hover {
|
||||
color: var(--success);
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.scan-add-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.scan-add-btn:disabled {
|
||||
color: var(--text-muted);
|
||||
cursor: default;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* 历史记录下拉 */
|
||||
.history-dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #1a1a1a;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
z-index: 100;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.history-item {
|
||||
padding: 14px 16px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border-bottom: 1px solid var(--border-glass);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.history-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.history-item:active {
|
||||
background: var(--bg-glass-hover);
|
||||
}
|
||||
|
||||
.history-item .code {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.history-item .name {
|
||||
flex: 1;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.history-item .remove {
|
||||
color: var(--text-muted);
|
||||
font-size: 18px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
/* 股票信息条 */
|
||||
.stock-info-bar {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(20px);
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.stock-info-bar .stock-code {
|
||||
background: var(--text-primary);
|
||||
color: var(--bg-dark);
|
||||
padding: 6px 12px;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.stock-info-bar .stock-name {
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 60px 20px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.error {
|
||||
background: rgba(255, 68, 68, 0.1);
|
||||
border: 1px solid rgba(255, 68, 68, 0.2);
|
||||
color: var(--danger);
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 信号卡片 */
|
||||
.recommendation-card {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(20px);
|
||||
border: none;
|
||||
border-radius: 20px;
|
||||
padding: 24px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.recommendation-card.buy {
|
||||
border-color: rgba(0, 255, 136, 0.3);
|
||||
background: rgba(0, 255, 136, 0.05);
|
||||
}
|
||||
|
||||
.recommendation-card.sell {
|
||||
border-color: rgba(255, 68, 68, 0.3);
|
||||
background: rgba(255, 68, 68, 0.05);
|
||||
}
|
||||
|
||||
.signal-icon {
|
||||
font-size: 40px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.signal-text {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.recommendation-card.buy .signal-text { color: var(--success); }
|
||||
.recommendation-card.sell .signal-text { color: var(--danger); }
|
||||
|
||||
.signal-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.signal-details {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.signal-detail-item {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 14px;
|
||||
border-radius: 12px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.signal-detail-item h4 {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 6px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.signal-detail-item .value {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,237 @@
|
||||
/* ═══════════════════════════════════════
|
||||
responsive.css - PC / 桌面端适配
|
||||
手机端保持现有样式不变
|
||||
断点: 768px (PC 及以上应用以下样式)
|
||||
═══════════════════════════════════════ */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
/* ===== 主容器 ===== */
|
||||
.container {
|
||||
max-width: 880px;
|
||||
padding: 28px 32px;
|
||||
padding-top: max(28px, env(safe-area-inset-top));
|
||||
}
|
||||
|
||||
/* ===== 标题栏 ===== */
|
||||
.title-bar {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.title-bar h1 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.main-title-date {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.current-model {
|
||||
margin-top: 6px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ===== 导航标签 ===== */
|
||||
.nav-tabs {
|
||||
margin-bottom: 24px;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.nav-tabs-compact .nav-tab {
|
||||
padding: 12px 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.sub-tabs {
|
||||
margin-bottom: 20px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.sub-tab {
|
||||
padding: 12px 18px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ===== 提醒汇总区 ===== */
|
||||
.alerts-summary.top-summary {
|
||||
padding: 16px 24px;
|
||||
gap: 12px 16px;
|
||||
}
|
||||
|
||||
.alerts-summary.top-summary .summary-label {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.alerts-summary.top-summary .summary-value {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* ===== 卡片与区块 ===== */
|
||||
.card,
|
||||
.input-section,
|
||||
.scan-results {
|
||||
padding: 24px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.recommendation-card {
|
||||
padding: 28px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.signal-details {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.signal-detail-item .value {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* ===== 图表 ===== */
|
||||
.chart-container {
|
||||
height: 240px;
|
||||
}
|
||||
|
||||
/* ===== 数据表格 ===== */
|
||||
.data-table {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.data-table th,
|
||||
.data-table td {
|
||||
padding: 14px 12px;
|
||||
}
|
||||
|
||||
/* ===== 汇总网格 ===== */
|
||||
.summary-grid {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.summary-item {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.summary-item .value {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
/* ===== 弹窗 / 模态框 ===== */
|
||||
.login-modal {
|
||||
max-width: 420px;
|
||||
}
|
||||
|
||||
.confirm-dialog {
|
||||
min-width: 360px;
|
||||
max-width: 480px;
|
||||
}
|
||||
|
||||
.smart-result-modal {
|
||||
max-width: 540px;
|
||||
}
|
||||
|
||||
/* ===== 扫描控制 ===== */
|
||||
.scan-control {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.scan-source-select {
|
||||
flex: 0 0 180px;
|
||||
}
|
||||
|
||||
.scan-btn {
|
||||
padding: 16px 32px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* ===== 扫描结果项 ===== */
|
||||
.scan-item {
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.scan-code {
|
||||
font-size: 14px;
|
||||
min-width: 60px;
|
||||
}
|
||||
|
||||
.scan-name {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.scan-price,
|
||||
.scan-rate {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ===== 按钮 ===== */
|
||||
.analyze-btn {
|
||||
height: 48px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* ===== 技术信号 ===== */
|
||||
.tech-result-card {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.tech-result-header h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* ===== 模拟交易 ===== */
|
||||
.sim-stats-card {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.sim-stats-header h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.sim-stats-grid {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.sim-stat-value {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.sim-stat-label {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* ===== 信号排名 ===== */
|
||||
.signal-rank-item {
|
||||
grid-template-columns: 28px 80px 48px 1fr;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ===== 输入组 ===== */
|
||||
.input-group label {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.input-group input {
|
||||
padding: 16px 18px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* ===== Toast ===== */
|
||||
.toast-container {
|
||||
max-width: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 更大屏幕 (1200px+) 进一步放宽 */
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
max-width: 1000px;
|
||||
padding: 32px 40px;
|
||||
}
|
||||
|
||||
.signal-details {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192" fill="none">
|
||||
<rect width="192" height="192" rx="32" fill="#0a0a0a"/>
|
||||
<path d="M32 144L64 104L96 128L144 72L160 96" stroke="url(#grad)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M144 72H160V88" stroke="url(#grad)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="64" cy="104" r="8" fill="#00ff88"/>
|
||||
<circle cx="96" cy="128" r="8" fill="#00ff88"/>
|
||||
<circle cx="144" cy="72" r="8" fill="#00ff88"/>
|
||||
<defs>
|
||||
<linearGradient id="grad" x1="32" y1="72" x2="160" y2="144" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" stop-color="#00ff88"/>
|
||||
<stop offset="100%" stop-color="#00ccff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 770 B |
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "股票投资",
|
||||
"short_name": "股票投资",
|
||||
"description": "股票投资分析与管理系统",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#0a0a0a",
|
||||
"theme_color": "#0a0a0a",
|
||||
"orientation": "portrait",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/static/icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user