* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f0f2f5;
}

.page-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-container {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-container {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.calculate-btn {
    background-color: #4CAF50;
}

.clear-btn {
    background-color: #f44336;
}

.refresh-btn {
    background-color: #1e90ff;
}

button:hover {
    opacity: 0.9;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.result-item {
    margin: 5px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.total {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
}

.history-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.history-item {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #c82333;
}

.history-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: bold;
    font-size: 18px;
}

.lottery-info {
    margin: 10px 0 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.lottery-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.lottery-details {
    line-height: 1.8;
}

.winning-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3f3;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

.winning-item {
    margin: 5px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #e4393c;
}

.winning-total {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
    color: #e4393c;
    padding: 10px;
    background-color: #fff3f3;
    border-radius: 4px;
}

/* 波色相关样式 */
.wave-red {
    color: #dc3545;
}

.wave-blue {
    color: #007bff;
}

.wave-green {
    color: #28a745;
}


.match-highlight {
    background-color: #fff3f3;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: bold;
}

/* 中奖汇总样式 */
.winning-summary {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e4393c;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px dashed #ffcdd2;
    font-size: 15px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: bold;
    color: #c0392b;
}

.summary-amount {
    font-weight: bold;
    color: #e4393c;
    font-size: 16px;
}

.summary-grand-total {
    background-color: #e4393c;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}

.summary-grand-total .summary-label,
.summary-grand-total .summary-amount {
    color: white;
    font-size: 18px;
}

/* 中奖分类样式 */
.winning-category {
    margin-bottom: 15px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    overflow: hidden;
}

.winning-category-title {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
}

.winning-category .winning-item {
    margin: 0;
    border: none;
    border-bottom: 1px solid #ffecec;
    border-radius: 0;
    font-size: 13px;
    padding: 6px 12px;
}

.winning-category .winning-item:last-child {
    border-bottom: none;
}
