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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title i {
    color: #ffd700;
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* 输入区域 */
.input-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-label i {
    color: #ffd700;
    margin-right: 8px;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.predict-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.predict-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.predict-btn:active {
    transform: translateY(-1px);
}

/* 结果区域 */
.result-section {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.result-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.result-title i {
    color: #ffd700;
}

.prediction-display {
    margin-bottom: 25px;
}

.prediction-number {
    font-size: 4rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    animation: numberReveal 0.8s ease-out;
}

.prediction-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.prediction-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.detail-value {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 5px;
}

/* 历史记录 */
.history-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.history-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-title i {
    color: #ffd700;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.history-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.history-result {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 信息区域 */
.info-section {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: #ffd700;
}

.info-card ul {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
}

.info-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: "•";
    color: #ffd700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes numberReveal {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .prediction-number {
        font-size: 3rem;
    }
    
    .prediction-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .container {
        padding: 15px;
    }
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* 更小屏幕适配 */
@media (max-width: 480px) {
    .container {
        padding: 6px;
    }
    .input-section, .result-card, .history-section, .info-card {
        padding: 14px 6px;
        border-radius: 12px;
    }
    .title {
        font-size: 1.2rem;
        gap: 4px;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .input-label {
        font-size: 0.95rem;
    }
    .input-field {
        font-size: 1rem;
        padding: 10px 12px;
        border-radius: 8px;
    }
    .predict-btn {
        font-size: 1rem;
        padding: 12px;
        border-radius: 8px;
    }
    .result-card, .history-section, .info-card {
        margin-bottom: 16px;
    }
    .prediction-number {
        font-size: 2.1rem;
    }
    .detail-item {
        padding: 8px 6px;
        font-size: 0.95rem;
    }
    .history-title, .result-title {
        font-size: 1.1rem;
        gap: 4px;
    }
    .history-item {
        flex-direction: column;
        gap: 6px;
        padding: 8px 4px;
    }
}
@media (max-width: 375px) {
    .container {
        padding: 2px;
    }
    .input-section, .result-card, .history-section, .info-card {
        padding: 6px 2px;
        border-radius: 8px;
    }
    .title {
        font-size: 1rem;
    }
    .input-field, .predict-btn {
        font-size: 0.95rem;
        padding: 8px 6px;
    }
    .prediction-number {
        font-size: 1.3rem;
    }
} 