:root {
    --bg-color: #f0f2f5;
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --red-ball: #ff4d4d;
    --blue-ball: #008cff;
    --green-ball: #2ecc71;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 基础重置 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: var(--bg-color); 
    margin: 0; 
    padding: 10px;
    line-height: 1.4;
}

.container { max-width: 480px; margin: 0 auto; }

header { text-align: center; margin: 20px 0; }
header h1 { color: var(--primary-color); margin: 0; font-size: 1.6rem; }

/* 预测面板 */
.predict-control { 
    background: white; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

select { 
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px solid #dcdfe6; 
    font-size: 1rem; 
    background: #fff;
    margin-bottom: 15px;
    outline: none;
}

.btn-main { 
    width: 100%; 
    padding: 15px; 
    border-radius: 10px; 
    border: none; 
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white; 
    font-weight: bold; 
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-main:active { opacity: 0.8; }

/* 结果文本域 */
.result-box { 
    display: none; 
    background: #2c3e50; 
    border-radius: 16px; 
    padding: 15px; 
    margin-bottom: 20px; 
    animation: fadeIn 0.3s ease;
}

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

textarea { 
    width: 100%; 
    height: 400px; 
    background: #1a252f; 
    border: 1px solid #3e4f5f; 
    color: #00ffc8; /* 科技感颜色 */
    font-family: "Courier New", Courier, monospace; 
    font-size: 1rem; 
    padding: 12px; 
    line-height: 1.6; 
    resize: none; 
    border-radius: 8px;
    outline: none;
}

.action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.btn-copy, .btn-save { padding: 12px; border: none; border-radius: 8px; font-weight: bold; color: white; cursor: pointer; }
.btn-copy { background: #5d6d7e; }
.btn-save { background: #27ae60; }

/* 历史记录卡片 */
.record-card { 
    background: white; 
    border-left: 6px solid var(--primary-color); 
    padding: 15px; 
    margin: 12px 0; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.card-time { display: flex; justify-content: space-between; font-size: 0.85rem; color: #7f8c8d; margin-bottom: 5px; }

.record-card pre { 
    white-space: pre-wrap; 
    word-break: break-all; 
    background: #fdfefe; 
    padding: 10px; 
    border-radius: 6px; 
    border: 1px solid #ebedf0; 
    font-family: "Courier New", monospace;
    font-size: 0.95rem; 
    line-height: 1.5; 
    color: #2c3e50;
}

.countdown-badge { 
    font-variant-numeric: tabular-nums; 
    color: var(--accent-color); 
    font-weight: bold;
}

.btn-toggle { 
    width: 100%; 
    padding: 12px; 
    background: #fff; 
    border: 1px solid #dcdfe6; 
    border-radius: 10px; 
    font-weight: bold; 
    margin: 10px 0; 
    cursor: pointer;
    color: #606266;
}

/* 开奖球展示 */
.history-item { 
    background: white; 
    border-radius: 12px; 
    padding: 15px; 
    margin: 10px 0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}

.item-info { font-size: 0.9rem; font-weight: bold; margin-bottom: 10px; color: #555; }
.item-balls { display: flex; align-items: center; justify-content: space-between; }

.ball-box { display: flex; flex-direction: column; align-items: center; width: 42px; }
.ball-n { 
    width: 36px; height: 36px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    color: white; 
    font-size: 0.95rem;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}

.ball-z { font-size: 0.85rem; font-weight: bold; margin-top: 5px; color: #333; }
.ball-plus { font-size: 1.4rem; color: #999; font-weight: bold; margin: 0 2px; }

.red { background: linear-gradient(145deg, #ff6b6b, #ee5253); }
.blue { background: linear-gradient(145deg, #54a0ff, #2e86de); }
.green { background: linear-gradient(145deg, #1dd1a1, #10ac84); }
