*{
  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;
}

.section{
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 25px;
}
.section h2{
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.form-box{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.highlight-box {
  background-color: #ebf8ff;
  border-left: 4px solid #3182ce;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #3182ce;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2b6cb0;
}

.btn-secondary {
  background-color: #edf2f7;
  color: #4a5568;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: #38a169;
  color: #fff;
}

.btn-success:hover {
  background-color: #2f855a;
}

.btn-danger {
  background-color: #fed7d7;
  color: #e53e3e;
}

.btn-danger:hover {
  background-color: #feb2b2;
}

#result, #historySection{
  margin-top: 25px;
}

.hidden{
  display: none;
}

.result-item{
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-item p:first-child {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 12px;
}

.result-item p:last-child {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3182ce;
}

.feature-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.feature-card {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-card:first-child {
  margin-left: 0;
}

.feature-card:last-child {
  margin-right: 0;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3{
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #1a365d;
}

.feature-card p{
  font-size: 1rem;
  opacity: 0.85;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  color: #718096;
  font-size: 0.875rem;
}

.text-success {
  color: #38a169;
}

.text-danger {
  color: #e53e3e;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

thead tr {
  background-color: #f7fafc;
}

tbody tr:hover {
  background-color: #f7fafc;
}

.card{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.card .item{
  padding: 15px;
  background: #f8f9f5;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.card ul{
  padding-left: 25px;
  margin-top: 15px;
  font-size: 0.85rem;
}

.card li{
  opacity: 0.85;
  margin-top: 15px;
}

.card .tip{
  opacity: 0.85;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #e95722;
}

.info-section p{
  margin-top: 15px;
}

.info-section h3{
  font-size: 1.1rem;
  margin-bottom: 15px;
}

footer{
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.8;
}


.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4299e1;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    bottom: 0;
  }

  to {
    opacity: 1;
    bottom: 20px;
  }
}
