* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', 'STKaiti', serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); min-height: 100vh; padding: 15px; color: #e2e8f0; overflow-x: auto; }
.container { max-width: 1200px; margin: 0 auto; }
header { color: white; margin-bottom: 15px; }
.header-top { display: flex; align-items: center; justify-content: space-between; }
.date-info { display: flex; flex-direction: column; gap: 3px; }
.date { font-size: 0.85rem; color: #999; }
.ganzhi { font-size: 0.75rem; color: #ffd700; }
.header-right { display: flex; align-items: center; gap: 12px; }
.user-manager-btn { padding: 7px 16px; border-radius: 20px; font-size: 0.85rem; background: linear-gradient(135deg, #4CAF50, #45a049); color: white; border: none; cursor: pointer; font-weight: bold; transition: all 0.3s; }
.user-manager-btn:hover { transform: scale(1.03); }
#user-select { padding: 6px 14px; border-radius: 16px; font-size: 0.85rem; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; min-width: 120px; }
#user-select option { background: #1a1a2e; color: white; }
.add-user-btn { padding: 7px 16px; border-radius: 20px; font-size: 0.9rem; background: linear-gradient(135deg, #ffd700, #ff8c00); color: #1a1a2e; border: none; cursor: pointer; font-weight: bold; transition: all 0.3s; }
.add-user-btn:hover { transform: scale(1.03); }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #1a1a2e; margin: 15% auto; padding: 20px; border-radius: 15px; width: 90%; max-width: 380px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.close { color: #aaa; float: right; font-size: 24px; font-weight: bold; cursor: pointer; }
.close:hover { color: #fff; }
.modal-content h3 { color: #e2e8f0; margin-bottom: 18px; text-align: center; font-size: 1.3rem; }
.modal-desc { color: #a0aec0; font-size: 0.85rem; text-align: center; margin-bottom: 15px; }
.modal-footer { display: flex; gap: 10px; margin-top: 15px; }
.cancel-btn { flex: 1; padding: 10px; background: rgba(255,255,255,0.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; }
.cancel-btn:hover { background: rgba(255,255,255,0.2); }

/* 管理模态框 */
.manage-modal { max-width: 650px; }
.manage-stock-list { max-height: 320px; overflow-y: auto; padding-right: 6px; }
.manage-stock-list::-webkit-scrollbar { width: 4px; }
.manage-stock-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.manage-stock-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.manage-stock-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.manage-stock-item { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 10px; 
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); 
    border-radius: 8px; 
    margin-bottom: 6px; 
    cursor: move; 
    transition: all 0.2s; 
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.manage-stock-item:hover { 
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); 
    transform: translateY(-0.5px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.manage-stock-item.dragging { 
    opacity: 0.5; 
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.06)); 
    border-color: rgba(255, 215, 0, 0.25);
}

.manage-stock-item .drag-handle { 
    font-size: 0.9rem; 
    color: #667eea; 
    cursor: grab; 
    padding: 4px 5px; 
    transition: all 0.2s;
    border-radius: 4px;
}
.manage-stock-item .drag-handle:hover { 
    background: rgba(102, 126, 234, 0.15); 
    color: #818cf8;
}
.manage-stock-item.dragging .drag-handle {
    cursor: grabbing;
    color: #ffd700;
}

.manage-stock-item .stock-info { 
    flex: 1; 
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.manage-stock-item .stock-code { 
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 4px;
    color: #7c9aff; 
    font-weight: 600; 
    font-size: 0.7rem;
    font-family: 'Monaco', 'Consolas', monospace;
    flex-shrink: 0;
}
.manage-stock-item .stock-name { 
    color: #b0bec5; 
    font-size: 0.75rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manage-stock-item .action-buttons {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.manage-stock-item .action-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
    color: #a0aec0;
}

.manage-stock-item .action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    transform: translateY(-0.5px);
}

.manage-stock-item .action-btn.top:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.06));
    color: #66bb6a;
}

.manage-stock-item .action-btn.up:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.06));
    color: #64b5f6;
}

.manage-stock-item .action-btn.down:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.06));
    color: #ffb74d;
}

.manage-stock-item .delete-btn { 
    padding: 3px 8px; 
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.15), rgba(239, 83, 80, 0.06)); 
    color: #ef5350; 
    border: none; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-weight: 500;
    margin-left: 3px;
}
.manage-stock-item .delete-btn:hover { 
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.22), rgba(239, 83, 80, 0.12)); 
    transform: translateY(-0.5px);
    box-shadow: 0 1px 6px rgba(239, 83, 80, 0.15);
}

.manage-stock-list .empty-state { 
    text-align: center; 
    padding: 60px 20px; 
    color: #a0aec0; 
}
.manage-stock-list .empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}
.manage-stock-list .empty-state p {
    margin: 0;
    font-size: 0.95rem;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: #e2e8f0; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 0.95rem; background: rgba(255,255,255,0.05); color: #e2e8f0; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #ffd700; }
.save-btn { width: 100%; padding: 10px; background: linear-gradient(135deg, #ffd700, #ff8c00); color: #1a1a2e; border: none; border-radius: 20px; font-size: 0.95rem; font-weight: bold; cursor: pointer; transition: all 0.3s; }
.save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,215,0,0.3); }
.nav-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.tab-btn { padding: 10px 22px; border: none; border-radius: 22px; background: rgba(255,255,255,0.1); color: white; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; }
.tab-btn:hover { background: rgba(255,255,255,0.2); }
.tab-btn.active { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #1a1a2e; font-weight: bold; }
.tab-btn.hidden-tab { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.fortune-card, .result-card, .wenwang-card { 
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%); 
    border-radius: 20px; 
    padding: 22px; 
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}
.stock-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}
.fortune-card.hidden, .result-card.hidden, .loading.hidden { display: none; }
.fortune-header, .result-header { background: linear-gradient(135deg, #8b4513, #d4a574); padding: 15px; text-align: center; color: white; border-radius: 10px; margin-bottom: 15px; }
.fortune-header h3 { font-size: 1.1rem; margin-bottom: 4px; }
.fortune-header .desc { font-size: 0.8rem; opacity: 0.9; }
.zodiac-icon { font-size: 2rem; }
.result-header h2 { font-size: 1.3rem; margin-top: 8px; }
.ai-badge {
    font-size: 0.75rem;
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.3), rgba(156, 39, 176, 0.3));
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 6px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.fortune-content, .result-content { padding: 0; }
.luck-level { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 10px 12px; background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.08)); border-radius: 8px; border: 1px solid rgba(255,215,0,0.2); }
.luck-level .label { font-weight: 600; color: #ffd700; font-size: 0.9rem; }
.stars { font-size: 1.2rem; letter-spacing: 1px; }
.stars span { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; margin: 0 1px; border-radius: 3px; }
.stars .filled { color: #ffd700; background: linear-gradient(135deg, #ffd700, #ff8c00); box-shadow: 0 1px 4px rgba(255,215,0,0.4); }
.stars .empty { color: #a0aec0; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.fortune-section { margin-bottom: 12px; padding: 10px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.fortune-section h3 { color: #e2e8f0; margin-bottom: 6px; font-size: 0.95rem; }
.fortune-section p { color: #a0aec0; line-height: 1.6; font-size: 0.88rem; margin: 0; }
.fortune-tips { background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.08)); border-radius: 8px; padding: 12px; margin-top: 15px; border-left: 3px solid #4caf50; border: 1px solid rgba(76,175,80,0.2); }
.fortune-tips h3 { color: #81c784; margin-bottom: 6px; font-size: 0.95rem; }
.fortune-tips p { color: #a5d6a7; line-height: 1.5; font-size: 0.88rem; margin: 0; }

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, rgba(255,215,0,0.15), rgba(255,215,0,0.08));
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,215,0,0.2);
}

#user-avatar {
    font-size: 2.5rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

#user-details {
    flex: 1;
}

#user-name-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e2e8f0;
    margin-bottom: 3px;
}

#user-zodiac-display, #user-birthday-display {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 2px 0;
}

.calc-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    margin-top: 15px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
}

.calc-btn.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 25px;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.manager-card { background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%); border-radius: 15px; padding: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); }
.manager-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.manager-card h3 { color: #e2e8f0; margin: 0; font-size: 1.15rem; }
.manager-actions { display: flex; gap: 10px; }
.action-btn { padding: 8px 14px; border: none; border-radius: 12px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.export-btn { background: linear-gradient(135deg, #2196F3, #1976D2); color: white; }
.export-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(33, 150, 243, 0.4); }
.import-btn { background: linear-gradient(135deg, #4CAF50, #45a049); color: white; cursor: pointer; }
.import-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4); }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.user-card { background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border-radius: 12px; padding: 16px; box-shadow: 0 3px 10px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.user-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.zodiac-emoji { font-size: 1.6rem; }
.user-card-header h4 { font-size: 1.1rem; color: #e2e8f0; margin: 0; }
.user-card-body p { color: #a0aec0; margin: 5px 0; font-size: 0.85rem; line-height: 1.5; }
.user-card-actions { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.select-btn { background: linear-gradient(135deg, #4CAF50, #45a049); color: white; }
.select-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4); }
.delete-btn { background: linear-gradient(135deg, #f44336, #da190b); color: white; }
.delete-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4); }

.wenwang-header {
    background: linear-gradient(135deg, #8b4513, #d4a574);
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.wenwang-header::before {
    content: '◈';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 1.2rem;
    opacity: 0.4;
}

.wenwang-header::after {
    content: '◈';
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.4;
}

.wenwang-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.wenwang-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wenwang-header .desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hexagram-container {
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.hexagram-decoration-top,
.hexagram-decoration-bottom {
    text-align: center;
    font-size: 1.5rem;
    color: #d4a574;
    opacity: 0.7;
    margin: 5px 0;
}

.hexagram-decoration-top {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hexagram-display {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.hexagram-line {
    font-size: 1.6rem;
    padding: 4px 24px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.hexagram-line:hover {
    transform: scale(1.05);
}

.hexagram-line.yang {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    border: 1px solid #cc8400;
}

.hexagram-line.yin {
    color: #ffffff;
    background: linear-gradient(135deg, #8b4513, #654321);
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.5);
    border: 1px solid #5d4037;
}

.hexagram-symbol {
    font-size: 2rem;
    text-align: center;
    margin-top: 10px;
    color: #c62828;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.result-card .result-header { 
    background: linear-gradient(135deg, #8b4513, #a0522d); 
    position: relative;
    overflow: hidden;
}

.result-card .result-header::before {
    content: '☯';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.result-card .result-header::after {
    content: '◈';
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.3;
}

.result-icon {
    font-size: 1.8rem;
    margin-right: 8px;
    animation: float 3s ease-in-out infinite;
}

.result-card .fortune-section { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,215,0,0.2);
}

.wenwang-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wenwang-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4a574;
    margin-bottom: 0;
}

.section-icon {
    font-size: 1.1rem;
}

.wenwang-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wenwang-tips h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #81c784;
    margin-bottom: 0;
}

.wenwang-main {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wenwang-left {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.2);
}

.wenwang-left .hexagram-display {
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.wenwang-left .hexagram-name {
    text-align: center;
    flex-shrink: 0;
}

.wenwang-left .hexagram-name h3 {
    color: #d4a574;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.wenwang-left .hexagram-name p {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'STKaiti', 'KaiTi', serif;
    margin: 0;
}

.wenwang-left .hexagram-name .luck-info {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'STKaiti', 'KaiTi', serif;
    color: #d4a574;
    text-align: center;
}

.wenwang-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 22px; 
    background: linear-gradient(145deg, #c62828 0%, #b71c1c 30%, #8b0000 70%, #5a0000 100%);
    padding: 18px 24px;
    border-radius: 18px;
    border: 2px solid #ef5350;
    box-shadow: 
        0 8px 25px rgba(198, 40, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stock-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -35%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.stock-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 138, 138, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.stock-header h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}


.stock-header h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.stock-icon {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

@keyframes float-icon {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-5px) rotate(3deg); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-3px) rotate(-2deg); 
        opacity: 0.95;
    }
}

.stock-lucky {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #ef5350, #c62828);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1.5px solid #ff8a80;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.stock-header-buttons { display: flex; gap: 10px; }
.add-stock-btn, .refresh-stock-btn, .manage-stock-btn { 
    padding: 8px 16px; 
    border: none; 
    border-radius: 18px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: flex;
    align-items: center;
    gap: 5px;
}
.add-stock-btn { background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2); }
.add-stock-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(255, 255, 255, 0.15); background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12)); }
.refresh-stock-btn { background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2); }
.refresh-stock-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(255, 255, 255, 0.15); background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12)); }
.manage-stock-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.manage-stock-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
.clear-cache-btn { 
    padding: 8px 16px; 
    border: none; 
    border-radius: 18px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.3), rgba(239, 83, 80, 0.15)); 
    color: #ffccbc; 
    border: 1px solid rgba(239, 83, 80, 0.4); 
}
.clear-cache-btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 3px 8px rgba(239, 83, 80, 0.3); 
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.4), rgba(239, 83, 80, 0.2)); 
}

.index-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 20px;
    justify-items: stretch;
    padding: 5px;
}

.index-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
    background-clip: padding-box;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 110px;
}

.index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #c62828 0%, 
        #ef5350 25%, 
        #ff8a80 50%, 
        #ef5350 75%, 
        #c62828 100%);
    background-size: 300% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -300% 0; }
    50% { background-position: 300% 0; }
}

.index-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(244, 67, 54, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.index-card:hover::after {
    transform: scale(1.5);
}

.index-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 
        0 15px 35px rgba(244, 67, 54, 0.35),
        0 0 0 2px rgba(244, 67, 54, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.index-card:active {
    transform: translateY(-3px) scale(1.02);
}

.index-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        opacity: 0.9; 
        transform: translateY(-4px) rotate(2deg); 
    }
    75% { 
        opacity: 0.9; 
        transform: translateY(-2px) rotate(-2deg); 
    }
}

.index-name {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.index-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 8px;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.5px;
}

.index-change {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    min-width: 80px;
}

.index-change.up {
    color: #fff;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.index-change.down {
    color: #fff;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.4);
}

.index-change.error {
    color: #fff;
    background: linear-gradient(135deg, #757575, #424242);
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.4);
}

.empty-stock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.lucky-card {
    background: linear-gradient(145deg, rgba(244, 67, 54, 0.15) 0%, rgba(239, 83, 80, 0.08) 100%);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid rgba(244, 67, 54, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.lucky-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.lucky-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #c62828;
    position: relative;
    z-index: 1;
}

.lucky-icon {
    font-size: 1.8rem;
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.lucky-header h3 {
    color: #ef9a9a;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lucky-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lucky-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-radius: 14px;
    border: 1px solid rgba(244, 67, 54, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lucky-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

.lucky-emoji {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c62828, #ef5350);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.4);
    transition: transform 0.3s ease;
}

.lucky-item:hover .lucky-emoji {
    transform: scale(1.1) rotate(5deg);
}

.lucky-item span:last-child {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.stock-list { margin-top: 10px; }

.stock-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.stock-table thead { background: linear-gradient(135deg, #2d3748, #4a5568); color: white; }
.stock-table th { padding: 8px 6px; text-align: center; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.stock-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.08); transition: background-color 0.2s; }
.stock-table tbody tr:hover { background-color: rgba(255,255,255,0.08); }
.stock-table tbody tr:last-child { border-bottom: none; }
.stock-table td { padding: 8px 6px; color: #e2e8f0; font-size: 0.85rem; text-align: center; vertical-align: middle; }
.stock-table td.nowrap { white-space: nowrap; }
.stock-table td.price-up { color: #ef5350; font-weight: 600; }
.stock-table td.price-down { color: #66bb6a; font-weight: 600; }
.stock-table td.stock-code-cell { color: #90cdf4; font-size: 0.8rem; font-family: 'Monaco', 'Consolas', monospace; }
.stock-table td.stock-name-link { color: #e2e8f0; text-decoration: none; font-weight: 500; }
.stock-table td.stock-name-link:hover { color: #63b3ed; text-decoration: underline; }
.stock-table td.detail-cell { padding: 4px 6px; }

.checkbox-label { display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 13px; height: 13px; cursor: pointer; accent-color: #4CAF50; }
.checkbox-label span { font-size: 0.7rem; color: #a0aec0; }

.delete-stock-btn { padding: 4px 10px; background: linear-gradient(135deg, #f44336, #da190b); color: white; border: none; border-radius: 10px; font-size: 0.7rem; cursor: pointer; transition: all 0.2s; }
.delete-stock-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4); }

.detail-stock-btn { padding: 5px 12px; background: linear-gradient(135deg, #2196F3, #1976D2); color: white; border: none; border-radius: 10px; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; }
.detail-stock-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4); }

.analysis-btn { padding: 4px 10px; background: linear-gradient(135deg, #2196F3, #1976D2); color: white; border: none; border-radius: 10px; font-size: 0.7rem; cursor: pointer; transition: all 0.2s; }
.analysis-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4); }

.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group label { margin: 0; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 15px; height: 15px; accent-color: #ffd700; }

#stock-user-avatar {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a5568, #718096);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(74, 85, 104, 0.3);
}

#stock-user-details {
    flex: 1;
}

#stock-user-name {
    font-size: 1rem;
    font-weight: bold;
    color: #e2e8f0;
    margin-bottom: 3px;
}

#stock-user-zodiac {
    font-size: 0.82rem;
    color: #a0aec0;
}

.prob-cell {
    font-weight: 600;
}

.advice-cell {
    font-size: 0.72rem !important;
}

.signal-cell {
    padding: 6px 10px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.signal-cell.signal-strong {
    animation: pulse 2s infinite;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.signal-cell.signal-normal {
    opacity: 0.8;
}



.indicator-block {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: help;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.indicator-block:hover {
    transform: scale(1.2);
}

.ai-analysis-cell {
    padding: 3px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.expand-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.ai-analysis-content {
    clear: both;
    margin-top: 4px;
    padding: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.7rem;
}

.signal-row {
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 3px;
    font-weight: 600;
}

.advice-row {
    padding: 4px 8px;
    color: #a0aec0;
    line-height: 1.4;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tarot-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tarot-card {
    width: 100px;
    height: 150px;
    perspective: 1000px;
    cursor: pointer;
}

.tarot-card-back, .tarot-card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tarot-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #5a4a8a;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.tarot-card-face {
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border: 2px solid rgba(255,215,0,0.3);
    transform: rotateY(180deg);
    padding: 10px;
    text-align: center;
}

.tarot-card.reveal .tarot-card-back {
    transform: rotateY(180deg);
}

.tarot-card.reveal .tarot-card-face {
    transform: rotateY(0deg);
}

.tarot-card-pattern {
    font-size: 3rem;
    margin-bottom: 8px;
}

.tarot-card-name {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #d4a574;
    font-weight: bold;
}

.tarot-card-meaning {
    font-size: 0.7rem;
    color: #a0aec0;
    line-height: 1.3;
}

.fortune-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.fortune-luck-bar {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 12px;
    border: 1px solid rgba(255,215,0,0.2);
}

.fortune-luck-display {
    text-align: center;
}

.fortune-luck-display .label {
    font-weight: 600;
    color: #d4a574;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.fortune-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fortune-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fortune-section-item {
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,215,0,0.2);
}

.fortune-section-item h3 {
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.fortune-section-item p {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .fortune-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .fortune-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .fortune-sections {
        grid-template-columns: 1fr;
    }
}

.tarot-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.tarot-card-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tarot-card-row .tarot-card {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
}

.tarot-card-reading {
    flex: 1;
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.tarot-card-reading h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1rem;
    margin-top: 0;
}

.tarot-card-reading p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    text-align: justify;
}

.tarot-summary {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.tarot-summary h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.tarot-summary p {
    color: #a0aec0;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    text-align: justify;
}

@media (max-width: 768px) {
    .tarot-card-row {
        flex-direction: column;
        align-items: center;
    }
    
    .tarot-card-reading {
        width: 100%;
    }
}

.constellation-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.constellation-luck-display {
    text-align: center;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 12px;
    border: 1px solid rgba(255,215,0,0.2);
}

.constellation-luck-display .label {
    font-weight: 600;
    color: #ffd700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.large-stars .filled,
.large-stars .empty {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 1.1rem;
}

.constellation-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.constellation-section {
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,215,0,0.2);
}

.constellation-section h3 {
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.constellation-section p {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.constellation-tips {
    background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.08));
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #4caf50;
    border: 1px solid rgba(76,175,80,0.2);
}

.constellation-tips h3 {
    color: #81c784;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.constellation-tips p {
    color: #a5d6a7;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .constellation-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .tarot-cards {
        gap: 10px;
    }
    
    .tarot-card {
        width: 80px;
        height: 120px;
    }
}

.daily-stock-card {
    background: linear-gradient(145deg, rgba(244,67,54,0.15) 0%, rgba(244,67,54,0.08) 100%);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 22px 0;
    border: 1px solid rgba(244,67,54,0.3);
    position: relative;
    overflow: hidden;
}

.daily-stock-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -25%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(244, 67, 54, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.daily-stock-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.daily-stock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid #ef5350;
    position: relative;
    z-index: 1;
}

.daily-stock-icon {
    font-size: 2.2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.daily-stock-header h3 {
    color: #c62828;
    font-size: 1.45rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
}

.purple-badge {
    background: linear-gradient(135deg, #c62828 0%, #ef5350 50%, #ff8a80 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(156, 39, 176, 0.6);
        transform: scale(1.02);
    }
}

.daily-stock-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.daily-stock-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(244,67,54,0.15), rgba(244,67,54,0.08));
    border-radius: 16px;
    border: 2px solid rgba(244,67,54,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stock-code {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

.stock-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #e2e8f0;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stock-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #c62828;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    text-shadow: 0 2px 4px rgba(198, 40, 40, 0.3);
}

.daily-stock-analysis {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 10px;
    font-size: 0.92rem;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.analysis-item.purple-highlight {
    background: linear-gradient(145deg, rgba(244,67,54,0.15), rgba(244,67,54,0.1));
    border: 2px solid rgba(244,67,54,0.5);
    color: #ef9a9a;
    font-weight: 700;
}

.analysis-icon {
    font-size: 1.15rem;
}

.add-watchlist-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 50%, #e53935 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(211, 47, 47, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.add-watchlist-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(211, 47, 47, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 置信度徽章 */
.confidence-badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* 推荐理由区块 */
.recommendation-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 16px;
    padding: 20px;
    border: 1.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.recommendation-icon {
    font-size: 1.3rem;
}

.recommendation-header h4 {
    color: #ef9a9a;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(145deg, rgba(244,67,54,0.1), rgba(244,67,54,0.05));
    border-radius: 12px;
    border-left: 3px solid #ef5350;
    border: 1px solid rgba(244,67,54,0.2);
    transition: all 0.3s ease;
}

.recommendation-reason:hover {
    background: linear-gradient(145deg, rgba(244,67,54,0.15), rgba(244,67,54,0.1));
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.2);
}

.reason-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c62828, #ef5350);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.reason-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reason-text {
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 股票价格行 */
.stock-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.stock-change {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

/* 数据源信息 */
.data-source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(145deg, rgba(33,150,243,0.15), rgba(33,150,243,0.08));
    border-radius: 10px;
    border: 1px solid rgba(33,150,243,0.3);
    margin-top: 5px;
}

.source-icon {
    font-size: 0.95rem;
}

.source-text {
    color: #64b5f6;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 风险提示 */
.risk-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(145deg, rgba(255,193,7,0.15), rgba(255,193,7,0.08));
    border-radius: 10px;
    border: 1px solid rgba(255,193,7,0.3);
    margin-top: 5px;
}

.warning-icon {
    font-size: 1rem;
}

.warning-text {
    color: #ffca28;
    font-size: 0.85rem;
    font-weight: 500;
}







.stock-name-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.stock-name-link:hover {
    color: #90caf9;
    text-decoration: underline;
    transform: translateX(2px);
}

.chart-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.chart-modal-content {
    background-color: #1a1a2e;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.chart-modal-content-large {
    background-color: #1a1a2e;
    margin: 2% auto;
    padding: 20px;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.realtime-stock-info {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.realtime-price {
    font-size: 2.5rem;
    font-weight: bold;
}

.realtime-change {
    font-size: 1.2rem;
    font-weight: 600;
}

.realtime-detail {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: #a0aec0;
}

.realtime-detail span {
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.chart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chart-modal-header h3 {
    color: #e2e8f0;
    margin: 0;
    font-size: 1.3rem;
}

.close-modal-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #e2e8f0;
    transform: rotate(90deg);
}

.chart-container {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.chart-info {
    display: flex;
    gap: 30px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    flex-wrap: wrap;
}

.chart-price-info,
.chart-change-info,
.chart-volume-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-info .label {
    color: #a0aec0;
    font-size: 0.95rem;
}

.chart-price-info span:last-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e2e8f0;
}

.chart-change-info span:last-child {
    font-size: 1.3rem;
    font-weight: bold;
}

.chart-volume-info span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a0aec0;
}

/* 赛博抽签样式 */
.cyber-lottery-card {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cyber-lottery-header {
    margin-bottom: 25px;
}

.cyber-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: cyberGlow 2s ease-in-out infinite;
}

@keyframes cyberGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.8)); }
}

.cyber-lottery-header h3 {
    color: #64c8ff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.lottery-draw-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    perspective: 500px;
}

.lottery-draw-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(100, 200, 255, 0.1), rgba(100, 200, 255, 0.05));
    border: 1px solid rgba(100, 200, 255, 0.2);
}

.lottery-draw-btn:hover {
    transform: scale(1.08);
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.3);
}

.lottery-draw-btn.drawing {
    animation: shake 0.3s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: scale(1.08) rotate(-5deg) translateX(-2px); }
    25% { transform: scale(1.08) rotate(5deg) translateX(2px); }
    50% { transform: scale(1.08) rotate(-3deg) translateX(-1px); }
    75% { transform: scale(1.08) rotate(3deg) translateX(1px); }
}

.lottery-tube {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 50px;
    height: 130px;
}

.tube-opening {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 8px;
    background: linear-gradient(180deg, 
        #2A1810 0%, 
        #1a0f0a 50%,
        #0d0805 100%);
    border-radius: 0 0 4px 4px;
    z-index: 18;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.tube-lid {
    width: 52px;
    height: 18px;
    background: linear-gradient(180deg, 
        #6B4423 0%, 
        #8B5A2B 30%, 
        #6B4423 70%,
        #4A3015 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 
        0 -2px 6px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7);
    position: relative;
    border: 2px solid #3D2314;
    border-bottom: none;
    z-index: 20;
}

.tube-lid::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 43px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(139, 90, 43, 0.8) 0%, 
        rgba(255, 215, 0, 0.6) 50%, 
        rgba(139, 90, 43, 0.8) 100%);
    border-radius: 1px;
}

.tube-body {
    width: 48px;
    height: 118px;
    background: 
        linear-gradient(90deg, 
            #3D2314 0%, 
            #5C3D2E 15%,
            #6B4423 30%,
            #7A5535 50%,
            #6B4423 70%,
            #5C3D2E 85%,
            #3D2314 100%
        ),
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 22px,
            rgba(0, 0, 0, 0.1) 22px,
            rgba(0, 0, 0, 0.1) 24px,
            transparent 24px
        ),
        radial-gradient(ellipse at 35% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    overflow: visible;
    border: 2px solid #2A1810;
    border-top: none;
    z-index: 10;
}

.tube-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(145deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-bottom: 2px solid #654321;
}

.tube-body::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 8px;
    height: 80%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    border-radius: 4px;
    animation: tubeShine 3s ease-in-out infinite;
}

@keyframes tubeShine {
    0%, 100% { opacity: 0.4; transform: translateX(0) scaleX(1); }
    50% { opacity: 1; transform: translateX(5px) scaleX(1.2); }
}

.tube-body .tube-inner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, 
        rgba(255, 215, 0, 0.15) 0%, 
        transparent 60%);
    pointer-events: none;
    animation: innerGlowPulse 2s ease-in-out infinite;
}

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

.tube-decoration {
    position: absolute;
    width: 92%;
    left: 4%;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.7) 20%, 
        rgba(160, 82, 45, 0.8) 50%, 
        rgba(139, 69, 19, 0.7) 80%, 
        transparent 100%);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tube-decoration:nth-child(1) { top: 20%; }
.tube-decoration:nth-child(2) { top: 50%; }
.tube-decoration:nth-child(3) { top: 80%; }

.tube-ring {
    position: absolute;
    width: 100%;
    left: 0;
    height: 6px;
    background: linear-gradient(145deg, #8B4513, #A0522D, #8B4513);
    border-radius: 3px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.tube-ring.top { top: 15%; }
.tube-ring.bottom { bottom: 10%; }

.lottery-sticks {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5px;
    z-index: 15;
    align-items: flex-end;
    width: 30px;
    justify-content: center;
}

.stick {
    width: 4px;
    height: 55px;
    background: 
        linear-gradient(90deg, 
            #C4B494 0%, 
            #D4C4A8 10%,
            #EDE4C8 30%, 
            #F5EDD8 50%,
            #EDE4C8 70%,
            #D4C4A8 90%,
            #C4B494 100%
        );
    border-radius: 2px 2px 0 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 1px 6px rgba(0, 0, 0, 0.12),
        inset 0 0.5px 1px rgba(255, 255, 255, 0.5),
        inset 0 -0.5px 1px rgba(0, 0, 0, 0.08);
    border: 0.5px solid #B8A888;
    border-bottom: none;
}

.stick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, 
        #E53935 0%, 
        #C62828 20%, 
        #B71C1C 40%,
        #8B0000 70%,
        #6B0000 100%
    );
    border-radius: 1.5px 1.5px 2px 2px;
    box-shadow: 
        0 1px 3px rgba(139, 0, 0, 0.3),
        inset 0 0.5px 2px rgba(255, 255, 255, 0.3),
        inset 0 -0.5px 1.5px rgba(0, 0, 0, 0.4);
    border: 0.5px solid #5B0000;
}

.stick-inner {
    position: absolute;
    top: 20px;
    left: 0.5px;
    right: 0.5px;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 8px,
            rgba(139, 90, 43, 0.04) 8px,
            rgba(139, 90, 43, 0.04) 9px,
            transparent 9px
        );
}

.stick-grain {
    position: absolute;
    top: 20px;
    left: 0.5px;
    right: 0.5px;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.stick:nth-child(1) { height: 48px; transform: rotate(-5deg) translateX(-5px); }
.stick:nth-child(2) { height: 56px; transform: rotate(4deg) translateX(4px); }
.stick:nth-child(3) { height: 52px; transform: translateX(0); }
.stick:nth-child(4) { height: 50px; transform: rotate(-4deg) translateX(-3px); }
.stick:nth-child(5) { height: 54px; transform: rotate(5deg) translateX(3px); }

.lottery-draw-btn:hover .stick {
    animation: stickWiggle 0.5s ease-in-out infinite;
}

.stick:nth-child(1) { animation-delay: 0s; }
.stick:nth-child(2) { animation-delay: 0.08s; }
.stick:nth-child(3) { animation-delay: 0.16s; }
.stick:nth-child(4) { animation-delay: 0.24s; }
.stick:nth-child(5) { animation-delay: 0.32s; }

@keyframes stickWiggle {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(6deg) translateX(2px); }
    75% { transform: rotate(-6deg) translateX(-2px); }
}

.lottery-draw-btn.drawing .stick {
    animation: stickDraw 0.18s ease-in-out infinite;
}

.stick.drawing {
    animation: stickPullOut 0.8s ease-out forwards;
}

/* ==================== 打新通知（居中弹窗） ==================== */
#ipo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: ipoModalFadeIn 0.25s ease-out;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

@keyframes ipoModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ipoModalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ipoModalPopIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ipo-modal {
    background: #fff;
    border-radius: 14px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: ipoModalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ipo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
}

.ipo-modal-title {
    font-size: 16px;
    font-weight: 700;
}

.ipo-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.9;
}

.ipo-modal-close:hover {
    opacity: 1;
}

.ipo-modal-body {
    padding: 18px;
}

.ipo-modal-tip {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.ipo-modal-tip b {
    color: #f57c00;
    font-size: 18px;
}

.ipo-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ipo-modal-item:last-child {
    margin-bottom: 0;
}

.ipo-modal-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.ipo-modal-code {
    font-size: 13px;
    color: #888;
    font-family: Consolas, monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

.ipo-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    body {
        padding: 8px 6px;
        font-size: 14px;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
    }

    /* Header：纵向堆叠 */
    .header-top {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .date-info {
        align-items: center;
        text-align: center;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    #user-select {
        min-width: 90px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .add-user-btn,
    .user-manager-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Tab 导航：横向滚动，不换行 */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin-bottom: 12px;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 7px 14px;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 指数卡片：6列 → 3列 */
    .index-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
        padding: 2px;
    }

    .index-card {
        padding: 12px 6px;
        border-radius: 12px;
    }

    .index-icon {
        font-size: 1.3rem;
    }

    .index-name {
        font-size: 0.7rem;
    }

    .index-price {
        font-size: 0.9rem;
    }

    .index-change {
        font-size: 0.68rem;
    }

    /* ===== 股票表格 → 卡片布局 ===== */
    .stock-table thead {
        display: none;
    }

    .stock-table,
    .stock-table tbody,
    .stock-table tr,
    .stock-table td {
        display: block;
        width: 100%;
    }

    .stock-table {
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .stock-table tr {
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 8px 10px;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .stock-table tr:hover {
        background: rgba(255,255,255,0.05);
    }

    .stock-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        font-size: 0.85rem;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .stock-table td:last-child {
        border-bottom: none;
    }

    /* 每个单元格左侧显示标签 */
    .stock-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #a0aec0;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    /* 低点/高点/统计：标签在左，基准价+百分比贴紧对齐 */
    .stock-table td[data-label="低点"],
    .stock-table td[data-label="高点"],
    .stock-table td[data-label="统计"] {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .stock-table td[data-label="低点"]::before,
    .stock-table td[data-label="高点"]::before,
    .stock-table td[data-label="统计"]::before {
        margin-right: auto;
    }

    /* 基准价：固定宽度右对齐，三行对齐 */
    .stock-table td[data-label="低点"] > div:first-child,
    .stock-table td[data-label="高点"] > div:first-child,
    .stock-table td[data-label="统计"] > div:first-child {
        min-width: 4em;
        text-align: right;
    }

    /* 百分比：固定宽度右对齐，三行对齐 */
    .stock-table td[data-label="低点"] > div:last-child,
    .stock-table td[data-label="高点"] > div:last-child,
    .stock-table td[data-label="统计"] > div:last-child {
        min-width: 4.5em;
        text-align: right;
    }

    .stock-table td.stock-code-cell {
        font-size: 0.8rem;
    }

    .stock-table td.stock-code-cell::before {
        color: #90cdf4;
    }

    /* 第一行（代码）和第二行（名称）并排显示 */
    .stock-table td[data-label="代码"] {
        display: none;
    }

    .stock-table td[data-label="名称"] {
        font-size: 1rem;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 6px;
        margin-bottom: 4px;
    }

    .stock-table td[data-label="名称"]::before {
        display: none;
    }

    .stock-table td[data-label="名称"] .stock-name-link {
        font-size: 1rem;
    }

    .stock-table td[data-label="名称"]::after {
        content: attr(data-code);
        font-size: 0.72rem;
        color: #90cdf4;
        font-family: 'Monaco', 'Consolas', monospace;
    }

    /* 价格行用网格2列 */
    .stock-table td[data-label="现价"],
    .stock-table td[data-label="涨跌幅"],
    .stock-table td[data-label="涨跌值"] {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* 操作按钮居中，隐藏标签 */
    .stock-table td[data-label="操作"] {
        justify-content: center;
        padding-top: 6px;
    }

    .stock-table td[data-label="操作"]::before {
        display: none;
    }

    .detail-stock-btn {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    /* 弹窗：边距缩小 */
    .modal-content {
        margin: 8% auto;
        padding: 14px;
        width: 94%;
    }

    .manage-modal {
        max-width: 95%;
    }

    .manage-stock-item {
        padding: 6px 8px;
        font-size: 0.82rem;
    }

    /* 打新弹窗：适配窄屏 */
    .ipo-modal {
        width: 90vw;
    }

    .ipo-modal-body {
        padding: 14px;
    }

    .ipo-modal-item {
        padding: 8px 10px;
    }

    .ipo-modal-name {
        font-size: 0.9rem;
    }

    /* 卡片间距缩小 */
    .card,
    .stock-card {
        padding: 10px;
    }

    /* 自选股 header：纵向堆叠，标题居中 */
    .stock-header {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }

    .stock-header h3 {
        position: relative;
        left: auto;
        transform: none;
        justify-content: center;
    }

    /* 按钮组：2x2 网格整齐排列 */
    .stock-header-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        margin-top: 8px;
    }

    .stock-header-buttons button {
        padding: 7px 4px;
        font-size: 0.72rem;
        text-align: center;
        justify-content: center;
    }

    /* 运程布局纵向堆叠 */
    .fortune-layout,
    .constellation-layout {
        flex-direction: column;
    }
}

/* 超小屏（≤480px）额外调整 */
@media (max-width: 480px) {
    .index-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .index-card {
        padding: 10px 4px;
    }

    .index-icon {
        font-size: 1.1rem;
    }

    .index-name {
        font-size: 0.65rem;
    }

    .index-price {
        font-size: 0.82rem;
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .stock-table td {
        font-size: 0.8rem;
    }
}

.ipo-modal-hint {
    font-size: 11px;
    color: #bbb;
}

.ipo-modal-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ipo-modal-btn:hover {
    opacity: 0.9;
}

@keyframes stickDraw {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(10deg) translateX(2px); }
    50% { transform: rotate(-10deg) translateX(-2px); }
    75% { transform: rotate(8deg) translateX(2px); }
}

@keyframes stickPullOut {
    0% { 
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    30% { 
        transform: translateX(6px) rotate(12deg);
        opacity: 1;
    }
    60% { 
        transform: translateX(20px) rotate(25deg);
        opacity: 1;
    }
    100% { 
        transform: translateX(35px) rotate(40deg) translateY(-40px);
        opacity: 0;
    }
}

.stick-glow {
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.lottery-draw-btn:hover .stick-glow {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.draw-text {
    color: #64c8ff;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
    letter-spacing: 2px;
    transition: all 0.3s;
}

.lottery-draw-btn:hover .draw-text {
    color: #87CEEB;
    text-shadow: 0 0 25px rgba(100, 200, 255, 0.8);
}

.lottery-draw-btn.drawing .draw-text {
    animation: textPulse 0.3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.cyber-spinner {
    border-color: #64c8ff;
    border-top-color: transparent;
}

.lottery-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.2);
    position: relative;
    overflow: hidden;
}

.lottery-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.lottery-number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(145deg, rgba(255,215,0,0.15), rgba(255,215,0,0.08));
    border-radius: 16px;
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#lottery-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
}

.lottery-label {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lottery-rank-display {
    text-align: center;
}

.lottery-rank {
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffd700, #ff9800);
    color: #1a1a2e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 3px 10px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    font-family: 'STKaiti', 'KaiTi', serif;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
}

.lottery-rank::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.lottery-rank.level-7 {
    animation: pulseGlow 2s ease-in-out infinite;
}

.lottery-rank.level-1,
.lottery-rank.level-2 {
    color: #f5f5f5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.lottery-rank.level-3,
.lottery-rank.level-4 {
    color: #2c3e50;
}

.lottery-rank.level-5,
.lottery-rank.level-6,
.lottery-rank.level-7 {
    color: #1a1a2e;
}

@keyframes pulseGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.lottery-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lottery-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 5px;
    text-align: center;
    font-family: 'STKaiti', 'KaiTi', serif;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.lottery-poem {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 2;
    text-align: center;
    font-family: 'STKaiti', 'KaiTi', serif;
    padding: 20px 25px;
    background: rgba(255,215,0,0.08);
    border-radius: 12px;
    border-left: 4px solid #d4a574;
    border: 1px solid rgba(255,215,0,0.2);
    letter-spacing: 1.5px;
}

.lottery-interpretation {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.7;
    padding: 18px 22px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: justify;
}

.lottery-story {
    font-size: 0.85rem;
    color: #b0a080;
    line-height: 1.7;
    padding: 12px 18px;
    background: rgba(212,165,116,0.08);
    border-radius: 10px;
    border-left: 3px solid #d4a574;
    text-align: left;
    font-style: italic;
    display: block;
}

.lottery-advice {
    font-size: 0.9rem;
    color: #ffab91;
    line-height: 1.8;
    padding: 16px 20px;
    background: rgba(239,83,80,0.1);
    border-radius: 12px;
    border: 1px solid rgba(239,83,80,0.4);
    border-left: 4px solid #ef5350;
    text-align: left;
    display: none;
}

.lottery-luck-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luck-label {
    font-size: 0.85rem;
    color: #a0aec0;
    min-width: 65px;
    font-weight: 500;
}

.luck-bar-container {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.luck-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.luck-bar-fill.good {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.luck-bar-fill.medium {
    background: linear-gradient(90deg, #ffd700, #ff9800);
}

.luck-bar-fill.bad {
    background: linear-gradient(90deg, #f44336, #e91e63);
}

.luck-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
    min-width: 35px;
    text-align: right;
}