/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #333;
}

header h1 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.total-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item .label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
}

.summary-item .value.negative {
    color: #ff4444;
}

/* 主内容区域 */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

section h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
}

/* 日历样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.nav-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.4);
}

#current-month {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.has-profit {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.calendar-day.has-loss {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

.calendar-day.selected {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.day-number {
    font-weight: bold;
    margin-bottom: 2px;
}

.day-profit {
    font-size: 0.7rem;
    color: #00ff88;
}

.day-loss {
    font-size: 0.7rem;
    color: #ff4444;
}

/* 记录列表样式 */
.records-list {
    max-height: 400px;
    overflow-y: auto;
}

.record-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.record-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.record-date {
    font-weight: bold;
    color: #00d4ff;
}

.record-profit {
    font-weight: bold;
    font-size: 1.1rem;
}

.record-profit.positive {
    color: #00ff88;
}

.record-profit.negative {
    color: #ff4444;
}

.record-stocks {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.record-notes {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.record-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-delete {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: rgba(255, 68, 68, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .total-summary {
        gap: 20px;
    }
    
    .summary-item {
        padding: 10px 15px;
    }
    
    .summary-item .value {
        font-size: 1.4rem;
    }
    
    section {
        padding: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        padding: 10px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}