body {
  background-color: #f7f9fb;
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

footer {
  background-color: #f8f9fa;
  padding: 10px 0;
  text-align: center;
  width: 100%;
}

#browser-info {
  margin: 0;
  font-size: 0.8em;
  color: #888;
}

.card {
  background-color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  margin: 20px 0;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
}

.result-section > div {
  flex: 1;
  min-width: 0; /* 允許元素縮小到小於其內容大小 */
}

.result-value {
  font-size: 36px;
  color: #007bff;
  font-weight: bold;
}

.result-label {
  font-size: 18px;
  color: #6c757d;
  margin-top: 5px;
}

.heart-icon {
  font-size: 24px;
  color: #ccc;
  text-align: center;
  transition: color 0.3s;
}

.heart-icon.active {
  color: red;
  animation: pulse 1s infinite;
}

.card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.top-buttons {
  padding: 15px 0;
  background: #f8f9fa;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 5px;
}
.top-buttons .btn {
  margin: 0 10px;
}
.container {
  padding-top: 20px;
}
#bl-icon {
  margin-left: 10px;
  vertical-align: middle;
}

.output {
  background-color: #f0f0f0;
  border-radius: 0.75em;
  display: block;
  margin: 0.5em;
  padding: 0.5em;
  text-align: left;
}

#status {
  margin: .5em 0;
  font-style: italic;
}

#log {
  margin: .5em 0;
  white-space: pre-wrap;
}

#status:empty, #log:empty, #content:empty {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .card {
    padding: 15px;
  }

  .result-section {
    flex-wrap: wrap;
    gap: 10px;
  }

  .result-section > div {
    width: 30%;
    min-width: 80px;
  }

  .result-value {
    font-size: 22px;
  }

  .result-label {
    font-size: 14px;
  }

  .button-group button {
    min-width: 150px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .result-section {
    gap: 5px;
  }

  .result-section > div {
    width: 30%;
    min-width: 70px;
  }

  .result-value {
    font-size: 20px;
  }

  .result-label {
    font-size: 12px;
  }

  .button-group button {
    width: 90%;
    max-width: none;
  }
}

h2 {
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}
