* {
  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;
  display: flex;
  flex-direction: column;
}

.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;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.control-panel, .result-panel  {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.box{
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.box .input-group{
  flex: 1;
}

.panel-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title i {
  font-size: 1.6rem;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
  font-size: 1.05rem;
}

.container input[type="text"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.container input[type="text"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.font-select-wrapper {
  position: relative;
}

.container select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.05rem;
  background-color: white;
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.2rem;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.btn {
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #2ecc71;
  color: white;
}

.btn-secondary:hover {
  background-color: #27ae60;
}

.btn-warning {
  background-color: #e74c3c;
  color: white;
}

.btn-warning:hover {
  background-color: #c0392b;
}

.btn-info {
  background-color: #9b59b6;
  color: white;
}

.btn-info:hover {
  background-color: #8e44ad;
}

.result-container {
  flex: 1;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
  overflow: auto;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #adb5bd;
  text-align: center;
}

.result-placeholder i {
  font-size: 4rem;
  margin-bottom: 20px;
}

.result-placeholder p {
  max-width: 300px;
  line-height: 1.6;
}

.features {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.features-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 20px;
  color: #3498db;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-desc {
  color: #7f8c8d;
  line-height: 1.7;
}

.instructions {
  background: #2c3e50;
  color: white;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
}

.instructions .container {
  max-width: 1000px;
}

.instructions-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.instruction-list {
  padding-left: 20px;
}

.instruction-list li {
  margin-top: 10px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}
