        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f5f5;
            padding: 20px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .index-tabs {
            display: flex;
            gap: 10px;
            padding: 20px 20px 0 20px;
            background: white;
            border-bottom: 2px solid #e9ecef;
        }
        .tab-btn {
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 8px 8px 0 0;
            transition: all 0.3s;
            color: #666;
        }
        .tab-btn:hover {
            background: #f8f9fa;
        }
        .tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .period-tabs {
            display: flex;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            border-bottom: 1px solid #e9ecef;
        }
        .period-btn {
            padding: 5px 12px;
            font-size: 13px;
            border: 1px solid #dee2e6;
            background: white;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.3s;
            color: #666;
        }
        .period-btn:hover {
            background: #f8f9fa;
        }
        .period-btn.active {
            background: #4c6ef5;
            color: white;
            border-color: #4c6ef5;
        }
        .index-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .card {
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            backdrop-filter: blur(10px);
        }
        .card-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 5px;
        }
        .card-value {
            font-size: 20px;
            font-weight: bold;
        }
        .card-value.up { color: #ff6b6b; }
        .card-value.down { color: #51cf66; }
        .chart-container {
            padding: 20px;
            border-bottom: 1px solid #e9ecef;
            position: relative;
        }
        #main-chart {
            width: 100%;
            height: 750px;
        }
        .data-range {
            text-align: center;
            font-size: 12px;
            color: #868e96;
            margin-top: 5px;
        }
        .events-section {
            padding: 20px;
            background: #f8f9fa;
        }
        .events-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .events-header h2 {
            font-size: 20px;
            color: #333;
        }
        .add-event-btn {
            background: #4c6ef5;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }
        .add-event-btn:hover {
            background: #3b5bdb;
        }
        .events-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .event-item {
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .event-header {
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            background: #fafbfc;
            border-bottom: 1px solid #e9ecef;
        }
        .event-header:hover {
            background: #f1f3f5;
        }
        .event-date {
            font-weight: bold;
            min-width: 100px;
        }
        .event-type {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 10px;
        }
        .event-type.up {
            background: #ff6b6b20;
            color: #ff6b6b;
            border: 1px solid #ff6b6b;
        }
        .event-type.down {
            background: #51cf6620;
            color: #51cf66;
            border: 1px solid #51cf66;
        }
        .event-summary {
            flex: 1;
            margin: 0 16px;
            color: #666;
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .event-actions button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            margin-left: 8px;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .event-actions .edit-btn:hover { background: #e9ecef; }
        .event-actions .delete-btn:hover { background: #ffe3e3; color: #fa5252; }
        .event-detail {
            padding: 16px;
            display: none;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
        }
        .event-detail.show {
            display: block;
        }
        .detail-section {
            margin-bottom: 16px;
        }
        .detail-section h4 {
            color: #4c6ef5;
            margin-bottom: 8px;
            font-size: 14px;
        }
        .detail-section p {
            color: #333;
            line-height: 1.6;
            font-size: 14px;
            white-space: pre-wrap;
        }
        .empty-events {
            text-align: center;
            padding: 40px;
            color: #868e96;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 85%;
            overflow: auto;
            padding: 24px;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #e9ecef;
        }
        .close-modal {
            cursor: pointer;
            font-size: 24px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
        }
        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }
        .type-selector {
            display: flex;
            gap: 20px;
        }
        .type-selector label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-weight: normal;
        }
        .type-selector input{
             width: 100px;
        }
        .submit-btn {
            background: #4c6ef5;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
        }
        .submit-btn:hover {
            background: #3b5bdb;
        }
        #intraday-chart {
            width: 100%;
            height: 400px;
        }
        .filter-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        .filter-btn {
            padding: 5px 12px;
            border: 1px solid #dee2e6;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
        }
        .filter-btn.active {
            background: #4c6ef5;
            color: white;
            border-color: #4c6ef5;
        }
        .toolbar {
            display: flex;
            justify-content: flex-end;
            padding: 10px 20px;
            background: white;
            border-bottom: 1px solid #e9ecef;
            gap: 10px;
        }
        .tool-btn {
            padding: 4px 12px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }
        .tool-btn:hover {
            background: #e9ecef;
        }
        .loading-indicator {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #4c6ef5;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            display: none;
            z-index: 1000;
        }
        /* 登录/注册相关样式 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-modal {
    background: white;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    padding: 30px;
    position: relative;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    position: relative;
}

.auth-tab.active {
    color: #4c6ef5;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4c6ef5;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #4c6ef5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-form button:hover {
    background: #3b5bdb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    padding: 0 20px;
}

.user-name {
    color: #4c6ef5;
    font-weight: bold;
}

.logout-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.logout-btn:hover {
    background: #f8f9fa;
}
/* 留言面板样式 */
.message-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
}

.message-panel.minimized {
    height: 48px;
    width: 200px;
    right: 20px;
    bottom: 80px;
}

.message-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.message-header h3 {
    margin: 0;
    font-size: 14px;
}

.message-header .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.message-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
}

.message-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message-user {
    font-weight: bold;
    color: #4c6ef5;
    font-size: 12px;
    margin-bottom: 5px;
}

.message-time {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

.message-content {
    font-size: 13px;
    color: #333;
    margin: 5px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-reply {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e9ecef;
}

.reply-item {
    margin-top: 6px;
    font-size: 12px;
    background: #f1f3f5;
    padding: 6px 8px;
    border-radius: 6px;
}

.reply-admin {
    color: #ff6b6b;
    font-weight: bold;
}

.message-actions {
    margin-top: 5px;
    text-align: right;
}

.message-actions button {
    background: none;
    border: none;
    font-size: 11px;
    cursor: pointer;
    color: #999;
    margin-left: 8px;
}

.message-actions button:hover {
    color: #4c6ef5;
}

.reply-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reply-form input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
}

.reply-form button {
    padding: 6px 12px;
    background: #4c6ef5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}

.message-input-area {
    padding: 12px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
}

.message-input-area textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    resize: none;
    font-size: 12px;
    font-family: inherit;
}

.message-input-area button {
    padding: 8px 16px;
    background: #4c6ef5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.message-open-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 24px;
    z-index: 9999;
    transition: all 0.3s;
}

.message-open-btn:hover {
    transform: scale(1.05);
}
/* 指标按钮样式 */
#indicator-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#indicator-buttons .period-btn {
    padding: 4px 10px;
    font-size: 12px;
}

#stock-search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

#stock-search-input:focus {
    outline: none;
    border-color: #4c6ef5;
}