* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 25%, #FF6347 50%, #FFD700 75%, #FFA500 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    padding: 30px;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(139, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.2);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '福';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.5);
    opacity: 0.9;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #DC143C;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.back-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF6347 100%);
    color: #FFD700;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.5);
}

header::after {
    content: '🎊 🎊 🎊';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

header h1 {
    font-size: 3em;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    display: inline-block;
}

header h1::before {
    content: '🧧';
    margin-right: 15px;
    font-size: 0.8em;
    animation: shake 1s ease-in-out infinite;
}

header h1::after {
    content: '🧧';
    margin-left: 15px;
    font-size: 0.8em;
    animation: shake 1s ease-in-out infinite 0.5s;
}

@keyframes shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.subtitle {
    color: #DC143C;
    font-size: 1.3em;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

.tab-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 18px 25px;
    font-size: 1.2em;
    border: 2px solid #DC143C;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFFFFF 100%);
    color: #DC143C;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

.tab-content {
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFFFFF 100%);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.15);
    border: 2px solid #FFD700;
    position: relative;
}

.tab-content::before {
    content: '🏮';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0.6;
}

.tab-content h2 {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.rule-info {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5E6 100%);
    border-left: 5px solid #DC143C;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.1);
    position: relative;
}

.rule-info::before {
    content: '💰';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    opacity: 0.5;
}

.rule-info p {
    color: #DC143C;
    font-weight: 600;
    font-size: 1.05em;
}

.number-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.select-zone {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    position: relative;
}

.select-zone::before {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1em;
    opacity: 0.4;
}

.select-zone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.25);
    border-color: #DC143C;
}

.select-zone h3 {
    color: #DC143C;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.numbers.front-zone {
    grid-template-columns: repeat(7, 1fr);
}

.numbers.back-zone {
    grid-template-columns: repeat(4, 1fr);
}

.number-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.95em;
    user-select: none;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.number-ball::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.number-ball:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.6);
    border-color: #FFD700;
}

.number-ball.selected {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.7), 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #FFD700;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(220, 20, 60, 0.7), 0 0 15px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 6px 20px rgba(220, 20, 60, 0.7), 0 0 25px rgba(255, 215, 0, 0.8); }
}

.number-ball.front-zone .number-ball {
    font-size: 0.85em;
}

.selected-numbers {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
    border: 2px solid #FFD700;
    position: relative;
}

.selected-numbers::before {
    content: '🎉';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0.5;
}

.selected-numbers h3 {
    color: #DC143C;
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF6347 100%);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.5);
}

.cost-display {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF8DC 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
    border: 2px solid #FFD700;
    position: relative;
}

.cost-display::before {
    content: '💵';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0.5;
}

.cost-display h3 {
    color: #DC143C;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
}

.cost-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(255, 154, 158, 0.1);
}

.cost-row.total {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.cost-row.total .cost-label,
.cost-row.total .cost-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.cost-label {
    color: #666;
    font-weight: 600;
    font-size: 1em;
}

.cost-value {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.selected-display {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 120px;
    align-items: flex-start;
    align-content: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFFFFF 100%);
    border-radius: 12px;
    border: 2px dashed #DC143C;
    max-height: 350px;
    overflow-y: auto;
}

.selected-display::-webkit-scrollbar {
    width: 8px;
}

.selected-display::-webkit-scrollbar-track {
    background: #FFF5E6;
    border-radius: 4px;
}

.selected-display::-webkit-scrollbar-thumb {
    background: #DC143C;
    border-radius: 4px;
}

.selected-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    font-weight: bold;
    font-size: 1em;
    margin: 3px;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.selected-ball::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.selected-ball.front {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
    border-color: #FFD700;
}

.selected-ball.back {
    background: linear-gradient(135deg, #FF6347 0%, #DC143C 100%);
    box-shadow: 0 4px 10px rgba(255, 99, 71, 0.4);
    border-color: #FFD700;
}

.selected-ball.position {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    border-color: #DC143C;
}

.control-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-buttons button {
    flex: 1;
    min-width: 160px;
    padding: 16px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.control-buttons button:nth-child(1) {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border: 2px solid #FFD700;
}

.control-buttons button:nth-child(2) {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
}

.control-buttons button:nth-child(3) {
    background: linear-gradient(135deg, #FF6347 0%, #DC143C 100%);
    border: 2px solid #FFD700;
}

.control-buttons button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.advanced-options {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
    border: 2px solid #FFD700;
    position: relative;
}

.advanced-options::before {
    content: '🎯';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0.5;
}

.advanced-options h3 {
    color: #DC143C;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-group label {
    color: #333;
    font-weight: 600;
    min-width: 90px;
    font-size: 1.05em;
}

.number-input {
    width: 70px;
    padding: 10px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-size: 1.05em;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #FFF9E6;
}

.number-input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
    background: white;
}

.option-group button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.option-group button:hover {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.6);
    border-color: #FFD700;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.15);
    border: 1px solid #FFD700;
}

.result-index {
    min-width: 60px;
    color: #DC143C;
    font-weight: bold;
}

.result-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 3px 8px rgba(220, 20, 60, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.result-ball.front {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    box-shadow: 0 3px 8px rgba(139, 0, 0, 0.4);
    border-color: #FFD700;
}

.result-ball.back {
    background: linear-gradient(135deg, #FF6347 0%, #DC143C 100%);
    box-shadow: 0 3px 8px rgba(255, 99, 71, 0.4);
    border-color: #FFD700;
}

.multiple-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.history-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 154, 158, 0.2);
    border: 2px solid #ffe8eb;
}

.history-section h2 {
    color: #fd79a8;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: bold;
}

.history-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.history-controls button {
    flex: 1;
    min-width: 140px;
    padding: 14px 25px;
    font-size: 1.05em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.history-controls button:nth-child(1) {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.history-controls button:nth-child(2) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fd79a8 100%);
}

.history-controls button:nth-child(3) {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.history-controls button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.history-list {
    max-height: 450px;
    overflow-y: auto;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #ff9a9e;
}

.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: #fff5f7;
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #ff9a9e;
    border-radius: 4px;
}

.history-item {
    background: white;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 5px solid #ff9a9e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 12px rgba(255, 154, 158, 0.15);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 18px rgba(255, 154, 158, 0.25);
}

.history-item .info {
    flex: 1;
}

.history-item .type {
    font-weight: bold;
    color: #fd79a8;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.history-item .numbers {
    color: #333;
    font-size: 1em;
    line-height: 1.8;
}

.history-item .time {
    color: #999;
    font-size: 0.9em;
    margin-left: 20px;
    white-space: nowrap;
}

.history-item .delete-btn {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(225, 112, 85, 0.3);
}

.history-item .delete-btn:hover {
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(225, 112, 85, 0.5);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 154, 158, 0.3);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(255, 154, 158, 0.4);
    border: 3px solid #ff9a9e;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff9a9e;
}

.modal-header h3 {
    color: #fd79a8;
    font-size: 1.8em;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fd79a8;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-footer button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-footer button.confirm {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.modal-footer button.cancel {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    padding: 18px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.5);
    animation: slideIn 0.4s ease;
    z-index: 2000;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #FFD700;
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 - 电脑端优化 */
@media (min-width: 1200px) {
    .container {
        padding: 50px;
    }
    
    header h1 {
        font-size: 3.5em;
    }
    
    .subtitle {
        font-size: 1.4em;
    }
    
    .tab-buttons {
        gap: 20px;
    }
    
    .tab-btn {
        font-size: 1.3em;
        padding: 20px 30px;
    }
    
    .number-selector {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .fun-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: 35px;
    }
    
    header h1 {
        font-size: 2.8em;
    }
    
    .tab-buttons {
        justify-content: center;
    }
    
    .number-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fun-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 20px;
        border-radius: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .tab-btn {
        font-size: 1em;
        padding: 12px 18px;
        min-width: 100px;
    }
    
    .number-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .numbers {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 0.85em;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .control-buttons button {
        min-width: auto;
    }
    
    .fun-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-controls {
        flex-direction: column;
    }
    
    .history-controls button {
        min-width: auto;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-item .time {
        margin-left: 0;
        font-size: 0.85em;
    }
    
    .history-item .delete-btn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .tab-btn {
        font-size: 0.9em;
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
    
    .selected-ball {
        width: 35px;
        height: 35px;
        font-size: 0.85em;
    }
    
    .fun-buttons {
        grid-template-columns: 1fr;
    }
}

/* 胆拖选号颜色说明 */
.dantuo-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 15px;
    background: #FFF9E6;
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.dantuo-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dantuo-legend-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
}

.dantuo-legend-ball.dan {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border: 2px solid #FFD700;
}

.dantuo-legend-ball.tuo {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
}

.dantuo-legend-text {
    color: #666;
    font-size: 0.9em;
}

/* 装饰元素 */
.decoration {
    position: fixed;
    font-size: 2.5em;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: decorationFloat 3s ease-in-out infinite;
}

.decoration-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.decoration-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.decoration-top-left {
    left: 30px;
    top: 80px;
    animation-delay: 0.5s;
}

.decoration-top-right {
    right: 30px;
    top: 80px;
    animation-delay: 2s;
}

.decoration-bottom-left {
    left: 30px;
    bottom: 30px;
    animation-delay: 1s;
}

.decoration-bottom-right {
    right: 30px;
    bottom: 30px;
    animation-delay: 2.5s;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

