* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

.calculator {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
}

.input-section,
.result-section {
  flex: 1;
  min-width: 500px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: flex;
  align-items: center;
  justify-content:space-between;
  margin-bottom: 10px;
}

label span{
  font-weight: bold;
  color: #444;
}

label .capital-amount {
  font-size: 14px;
  color: #666;
  height: 20px;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.button-group {
  display: flex;
  gap: 20px;
}

button {
  padding: 13px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1;
}

.calculate-btn {
  background-color: #3498db;
  color: white;
}

.calculate-btn:hover {
  background-color: #2980b9;
}

.example-btn {
  background-color: #2ecc71;
  color: white;
}

.example-btn:hover {
  background-color: #27ae60;
}

.copy-btn {
  background-color: #9b59b6;
  color: white;
}

.copy-btn:hover {
  background-color: #8e44ad;
}

.clear-btn {
  background-color: #e74c3c;
  color: white;
}

.clear-btn:hover {
  background-color: #c0392b;
}

.result-section {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.result-section h2{
  font-size: 24px;
  margin-bottom: 25px;
}

.result-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed #ddd;
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-label {
  font-size: 15px;
  margin-bottom: 15px;
  color: #444;
  font-weight: 600;
}

.result-value {
  font-size: 28px;
  color: #1173d5;
  font-weight: bold;
}
.result-item .capital-amount{
  padding-top: 10px;
  font-size: 14px;
  color: #666;
}
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

.section-box {
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.item-section{
  margin-bottom: 20px;
}

.item-section:last-child{
  margin-bottom: 0px;
}

.item-section p,.item-section li{
  margin-top: 10px;
}

.item-section ul{
  padding-left: 25px;
}

.item-section h2 {
  color: #2c3e50;
  font-size: 20px;
  margin-bottom: 15px;
}

