* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

/* 控制面板样式 */
.control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 25px;
  padding: 20px;
  background: #fff;
}

.group-box{
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 20px;
  margin: 20px 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.container input,
.container select,
.container textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
  min-height: 50px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.container input[type="color"]{
  padding: 8px;
  height: 46px;
}

.container input[type="range"]{
  padding: 14px 0px;
}

.color-picker {
  display: flex;
  align-items: center;
}

.range-container {
  display: flex;
  align-items: center;
}

.range-value {
  margin-left: 10px;
  font-weight: 600;
  color: #4a86e8;
  min-width: 40px;
}

button {
  padding: 13px 76px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin: auto;
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

/* 预览区域样式 */
.preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  margin-bottom: 25px;
}
.preview-area h3{
  font-size: 20px;
  margin-bottom: 15px;
}
.preview-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#led-display {
  width: 100%;
  /* 移除固定高度 */
  min-height: 100px; /* 设置一个最小高度 */
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: #000;
}

#text-display {
  white-space: nowrap;
  position: absolute;
  font-weight: bold;
  color: #ff0000;
  font-size: 36px;
  top: 50%;
  transform: translateY(-50%);
}

.instruction {
  margin: 20px 0;
  padding: 15px;
  background: #fff8e1;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

/* 底部信息区域 */
footer {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

footer h2{
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.feature {
  flex: 1;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

footer .tip{
  text-align: center;
  font-size: 15px;
  color: #888;
  margin-top: 20px;
}

/* 通知样式 */
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: #323232;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

/* 使用场景样式 */
.use-cases {
  display: flex;
  gap: 20px;
}

.use-case {
  flex: 1;
  text-align: center;
  padding: 20px 15px;
  background: white;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.use-case-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
