/* === common.css — 通用组件样式 (按钮、输入框等) === */

.button {
  background-color: rgba(214, 110, 253, 0.9);
  border-radius: 8px;
  border: none;
  color: white;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s;
}
.button:hover {
  background-color: rgba(167, 85, 196, 0.9);
  color: #dcdcdc;
  cursor: pointer;
}
.button:active {
  transform: scale(0.92);
}

.input {
    height: 40px;
    margin: 0;
    font-size: large;
    text-align: center;
    border-color: rgba(214, 110, 253, 0.9);
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s;
}
.input:hover {
    background-color: #f5f5f5;
    transform: scale(0.98);
}
.input:active {
    transform: scale(0.92);
}

/* 重置main边距 (避免与固定导航冲突) */
main {
    margin-top: 0;
}