/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(-45deg, #1a1a1a, #4a4a4a, #2c3e50, #3498db);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

/* 号码区域样式 */
.lottery-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.front-numbers, .back-numbers {
    margin-bottom: 30px;
}

h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    justify-items: center;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.number:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.number.selected-front {
    background: rgba(0, 123, 255, 0.8);
    color: white;
    animation: pulse 1s infinite, rainbow 3s linear infinite;
    border-width: 3px;
    border-style: solid;
}

.number.selected-back {
    background: rgba(255, 193, 7, 0.8);
    color: black;
    animation: pulse 1s infinite, rainbow 3s linear infinite;
    border-width: 3px;
    border-style: solid;
}

/* 按钮样式 */
.control-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

/* 爆炸动画效果 */
@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.explosion-particle {
    position: absolute;
    pointer-events: none;
    animation: explode 0.8s ease-out forwards;
}

/* 闪光动画 */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff6b6b;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff6b6b;
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .number {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 5px;
    }

    .number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 彩带动画效果 */
.ribbon-particle {
    position: absolute;
    pointer-events: none;
    transform-origin: center;
    z-index: 1000;
}

@keyframes ribbon-wave {
    0% {
        transform: rotate(0deg) translateX(0) scaleX(1);
    }
    50% {
        transform: rotate(180deg) translateX(100px) scaleX(2);
    }
    100% {
        transform: rotate(360deg) translateX(200px) scaleX(0);
    }
}

/* 幸运数字提示 */
.lucky-number {
    position: relative;
}

.lucky-number::after {
    content: "★";
    position: absolute;
    top: -10px;
    right: -10px;
    color: #FFD700;
    animation: twinkle 1s infinite;
}

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

/* 中奖动画 */
@keyframes jackpot {
    0% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.2); filter: brightness(150%); }
    100% { transform: scale(1); filter: brightness(100%); }
}

.jackpot {
    animation: jackpot 0.5s ease-in-out;
}

/* 历史记录样式优化 */
.history-item {
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.history-item:hover {
    transform: translateX(10px) scale(1.02);
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.3));
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

/* 走势图标记 */
.hot-number {
    position: relative;
}

.hot-number::before {
    content: "🔥";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    animation: float 2s ease-in-out infinite;
}

.cold-number {
    position: relative;
}

.cold-number::before {
    content: "❄️";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    animation: float 2s ease-in-out infinite;
}

/* 背景动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 数字悬浮效果 */
.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.number:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 彩虹光效果 */
@keyframes rainbow {
    0% { border-color: #ff0000; }
    20% { border-color: #ffd700; }
    40% { border-color: #00ff00; }
    60% { border-color: #00ffff; }
    80% { border-color: #ff00ff; }
    100% { border-color: #ff0000; }
}

.selected-front, .selected-back {
    border-width: 3px;
    border-style: solid;
    animation: pulse 1s infinite, rainbow 3s linear infinite;
}

.selected-front {
    background: rgba(0, 123, 255, 0.8);
    color: white;
}

.selected-back {
    background: rgba(255, 193, 7, 0.8);
    color: black;
}

/* 按钮发光效果 */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* 3D翻转效果 */
@keyframes flip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.number.flipping {
    animation: flip 0.8s ease-in-out;
    transform-style: preserve-3d;
}

/* 数字标记动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.hot-number::before,
.cold-number::before,
.lucky-number::after {
    animation: float 2s ease-in-out infinite;
}

/* 模态框动画 */
.modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* 新增中奖概率指示器 */
.probability-indicator {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.number:hover .probability-indicator {
    opacity: 1;
}

/* 数字组合建议 */
.combination-suggestion {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.combination-suggestion::before {
    content: '💡';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.combination-suggestion-text {
    margin-left: 35px;
}

/* 数字能量波动效果 */
@keyframes energyWave {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.number.energy-pulse {
    animation: energyWave 1s infinite;
}

/* 数字连线效果 */
.connection-line {
    position: absolute;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    height: 2px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
    transform-origin: left center;
    animation: drawLine 0.3s ease-out forwards;
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: rotate(180deg);
}

/* 暗色主题 */
[data-theme="dark"] {
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #2c3e50, #1a1a1a);
}

[data-theme="light"] {
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #c3cfe2, #f5f7fa);
    color: #333;
}

/* 数字标签 */
.number-tag {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.number:hover .number-tag {
    opacity: 1;
}

/* 胜率图表 */
.stats-chart {
    width: 100%;
    height: 100px;
    margin: 20px 0;
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to top, #ff6b6b, #ffd93d);
    border-radius: 5px 5px 0 0;
    transition: height 0.5s ease;
}

/* 数字分布热图 */
.heatmap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.1) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.number:hover .heatmap {
    opacity: 1;
}

/* 智能推荐标记 */
.ai-recommended {
    position: relative;
}

.ai-recommended::after {
    content: '🤖';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 14px;
    animation: float 2s ease-in-out infinite;
}

/* 数字能量等级 */
.energy-level {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.energy-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    width: 0%;
    transition: width 0.3s ease;
}

/* 新增动画效果 */
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-in-out infinite;
}

/* 智能分析模块样式 */
.analysis-content {
    display: grid;
    grid-gap: 20px;
    padding: 20px 0;
}

.number-distribution,
.hot-cold-analysis,
.winning-probability {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hot-cold-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.hot-cold-section h4 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

.hot-numbers,
.cold-numbers {
    margin: 10px 0;
    line-height: 1.6;
}

.hot-numbers span,
.cold-numbers span {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 14px;
}

.hot-numbers span {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.cold-numbers span {
    background: rgba(107, 185, 255, 0.2);
    color: #6bb9ff;
}

.probability-display {
    text-align: center;
    margin: 20px 0;
}

.probability-text {
    margin-bottom: 15px;
}

.probability-text p {
    margin: 5px 0;
    color: #666;
}

.probability-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.probability-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: width 0.5s ease;
}

.probability-suggestion {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.probability-suggestion h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.probability-suggestion ul {
    list-style: none;
    padding: 0;
}

.probability-suggestion li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
}

.probability-suggestion li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 图表样式 */
#distributionChart {
    display: flex;
    align-items: flex-end;
    height: 200px;
    padding: 20px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #ff6b6b, #ffd93d);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
    position: relative;
    min-width: 15px;
}

.chart-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
}

/* 动画效果 */
.analysis-content > div {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-content > div:nth-child(1) { animation-delay: 0.1s; }
.analysis-content > div:nth-child(2) { animation-delay: 0.2s; }
.analysis-content > div:nth-child(3) { animation-delay: 0.3s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .analysis-content {
        grid-template-columns: 1fr;
    }
    
    .hot-numbers span,
    .cold-numbers span {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }
    
    .chart-bar {
        min-width: 10px;
    }
} 