:root {
  --primary-color: #3b9e9c;
  --secondary-color: #c48113;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f5f7fa;
  --border-radius: 6px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

.container {
  padding: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.header-title {
  text-align: center;
  margin-bottom: 50px;
}

.header-title h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.header-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

header {
  background-color: #3b9e9c;
  color: white;
  padding: 20px 0;
  margin-bottom: 10px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

h1 {
  margin-bottom: 0.5rem;
}

.modal {
  width: 100%;
  height: 100%;
}

pre {
  background-color: #f1f1f1;
  padding: 0.8rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f1f1f1;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

small {
  color: #666;
  font-size: 0.85rem;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border-radius: var(--border-radius);
}

.copy-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  float: right;
  margin-top: -5px;
}

.copy-btn:hover {
  background-color: #3485db;
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.parameter-table th,
.parameter-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.parameter-table th {
  background-color: #f2f2f2;
}

.example-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eaeaea;
}

h3,
h4 {
  margin-top: 1.5rem;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 4px;
  display: none; /* Hidden by default */
  z-index: 9999;
  font-size: 0.9em;
}

.related-articles a {
  color: #3b9e9c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
