/* 原始样式 */
.zaofontsslphp-container {
  max-width: 800px; /* 设置最大宽度 */
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.zaofontsslphp-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.zaofontsslphp-h1 {
  font-size: 1.2em;
  margin: 0;
}

.zaofontsslphp-subtitle {
  font-size: 0.6em;
  color: gray;
  margin-top: -17px;
}

.zaofontsslphp-slider-container {
  display: flex;
  align-items: center;
}

.zaofontsslphp-slider {
  margin-right: 10px;
}

.zaofontsslphp-preview-area {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  cursor: text;
  min-height: 100px;
  white-space: pre-wrap;
  transition: border-color 0.3s ease;
}

.zaofontsslphp-small-text,
.zaofontsslphp-large-text {
  outline: none;
}

.zaofontsslphp-small-text {
  font-size: 2em;
  font-weight: bold;
}

.zaofontsslphp-large-text {
  font-size: 3em;
  font-weight: bold;
  margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 767px) {
  .zaofontsslphp-subtitle {
    display: none;
  }
  .zaofontsslphp-small-text {
    font-size: 1em;
  }
  .zaofontsslphp-large-text {
    font-size: 1em;
  }
}

/* 隐藏标题 */
@media (max-width: 767px) {
  .zaofontsslphp-h1 {
    display: none;
  }
}

/* 预览按钮样式 */
.zaofontsslphp-preview-btn {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease-in-out;
  font-size: 0.8em;
}

/* 按钮按下时的下沉效果 */
.zaofontsslphp-preview-btn:active {
  transform: translateY(2px);
}

/* 暗黑模式样式 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #fff;
  }
  .zaofontsslphp-container {
    background-color: #222;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  .zaofontsslphp-preview-area {
    border-color: #666;
  }
  .zaofontsslphp-preview-btn {
    background-color: #0056b3;
  }
  .zaofontsslphp-subtitle {
    color: #aaa;
  }
}