* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.calculator-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section, .result-section, .detail-section{
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.detail-section {
  flex: 1.5;
  max-height: 600px;
  overflow-y: auto;
}

.section-title {
  line-height: 1;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e1e1e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #4a6491;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 100, 145, 0.2);
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

button {
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-calculate {
  background: linear-gradient(135deg, #2c3e50, #4a6491);
  color: white;
}

.btn-example {
  background: #f0f7ff;
  color: #2c3e50;
  border: 1px solid #4a6491;
}

.btn-copy {
  background: #e6f7ee;
  color: #1f8c4d;
  border: 1px solid #1f8c4d;
}

.btn-clear {
  background: #fff2f0;
  color: #d9363e;
  border: 1px solid #d9363e;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.summary-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  text-align: center;
}

.summary-value {
  line-height: 1;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 13.5px;
}

.summary-label {
  font-size: 14px;
  color: #666;
}

.disclaimer {
  margin-top: 20px;
  padding: 15px;
  background: #fff9e6;
  border-left: 4px solid #faad14;
  border-radius: 4px;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f5f5f7;
  font-weight: 600;
}

tr:hover {
  background-color: #f5f7fa;
}

.footer {
  background: #fff;
  padding: 20px;
}

.footer h3 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.feature-item h4 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: #333;
  color: white;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}
