*{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.tool-container {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.control-panel,.result-panel {
  flex: 1;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.result-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f1f2f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 1.1rem;
}

input[type="number"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #e1e5eb;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

input[type="number"]:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.input-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-query {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.btn-copy {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: white;
}

.btn-clear {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(0);
}

.pi-result {
  flex: 1;
  border: 2px solid #e1e5eb;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  line-height: 1.7;
  overflow-y: auto;
  min-height: 190px;
  background-color: #fafafa;
  word-break: break-all;
}

.pi-result .nodata{
  color: #666;
}

.instructions {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.instructions h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions p {
  margin-top: 15px;
  font-size: 1rem;
}

.formulas {
  margin-top: 20px;
}

.formula-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.formula-item {
  background: #f8f9ff;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #2575fc;
}

.formula-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}

footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}
