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

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

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

.action-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.action-history::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 增强背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-image: url('https://t.alcy.cc/ycy');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b6b;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    color: #4ecdc4;
    margin-bottom: 15px;
    border-bottom: 2px solid #4ecdc4;
    padding-bottom: 5px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bullet-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-weight: bold;
    color: #ffd93d;
}

.input-group input {
    padding: 10px;
    border: 2px solid #4ecdc4;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    width: 120px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-blank {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
}

.btn-live {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-item {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 已知信息区域 */
.known-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffd93d;
}

/* 位置追踪 */
.position-tracker {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-info {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #4ecdc4;
}

.bullet-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    min-height: 60px;
}

.position-bullet {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.position-bullet.unknown {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
}

.position-bullet.blank {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
}

.position-bullet.live {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.position-bullet.current {
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.7);
    transform: scale(1.1);
}

.position-bullet.used {
    opacity: 0.3;
    transform: scale(0.9);
}

.position-bullet.known::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffd93d;
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 概率分析 */
.probability-analysis {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prob-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.probability-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffd93d;
}

.prob-explanation {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
    font-size: 14px;
    line-height: 1.5;
    color: #ecf0f1;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-history {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.history-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border-left: 4px solid #4ecdc4;
    font-size: 14px;
}

.history-item.blank {
    border-left-color: #2c3e50;
}

.history-item.live {
    border-left-color: #e74c3c;
}

.history-item.item {
    border-left-color: #f39c12;
}

.item-descriptions {
    display: grid;
    gap: 10px;
}

.item-desc {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    font-size: 14px;
    line-height: 1.4;
}

.item-desc strong {
    color: #ffd93d;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .bullet-setup {
        flex-direction: column;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .known-info {
        grid-template-columns: 1fr;
    }
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group input {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .prob-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .prob-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .position-bullet {
        width: 35px;
        height: 35px;
        font-size: 12px;
        margin: 3px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .action-buttons .btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .item-buttons {
        gap: 8px;
    }
    
    .item-buttons .btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .history-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .item-descriptions {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 10px;
        margin: 5px auto;
    }
    
    h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .section h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .info-item {
        padding: 8px;
        font-size: 11px;
    }
    
    .prob-item {
        padding: 10px;
        font-size: 13px;
    }
    
    .position-bullet {
        width: 30px;
        height: 30px;
        font-size: 11px;
        margin: 2px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .action-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .item-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .item-buttons .btn {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }
    
    .history-item {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .item-descriptions {
        font-size: 10px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prob-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .prob-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}