* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-image: url('123.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.calculator {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

label {
    font-weight: bold;
    font-size: 18px;
}

input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 80px;
}

button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-left: auto;
}

button:hover {
    background-color: #2980b9;
}

.results {
    margin-top: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.stats, .materials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.stat, .material {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.stat-label, .material-label {
    font-weight: bold;
    min-width: 80px;
}

.stat-value, .material-value {
    font-size: 18px;
    color: #e74c3c;
}

#current-rank-level {
    color: #e74c3c;
    font-weight: bold;
}

/* 可点击复制的数值样式 */
#hp, #attack, #baseHp, #baseAttack {
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 3px;
}

#hp:hover, #attack:hover, #baseHp:hover, #baseAttack:hover {
    background-color: #3498db;
    color: white;
    transform: scale(1.05);
}