:root {
  --primary-color: #333;
  --accent-color: #4a90e2;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --bg-color: #f5f5f5;
}

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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
}

header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.seal-generator {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-section {
  padding: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  min-height: 600px;
  justify-content: center;
}

#sealCanvas {
  width: 500px;
  height: 500px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.generate-btn,
.download-btn,
.clear-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-btn {
  background-color: var(--accent-color);
  color: white;
  width: 100%;
}

.download-btn {
  background-color: var(--success-color);
  color: white;
}

.clear-btn {
  background-color: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.generate-btn:hover,
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.clear-btn:hover {
  background-color: #e9ecef;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media screen and (max-width: 1200px) {
  #sealCanvas {
    width: 450px;
    height: 450px;
  }
}

@media screen and (max-width: 992px) {
  #sealCanvas {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .seal-generator {
    grid-template-columns: 1fr;
  }
  
  .preview-section {
    padding: 1rem;
    min-height: auto;
  }
  
  #sealCanvas {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

.size-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-with-button input {
  flex: 1;
}

.random-btn {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f8f9fa;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  line-height: 1;
}

.random-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.random-btn:active {
  transform: translateY(0);
}

.spacing-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spacing-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  background: #ddd;
  border-radius: 3px;
  outline: none;
}

.spacing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spacing-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.spacing-value {
  min-width: 2.5em;
  text-align: center;
  color: #666;
}

.text-controls {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.control-item {
  margin-bottom: 0.8rem;
}

.control-item label {
  font-size: 0.9rem;
  color: #666;
}

.control-item:last-child {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.advanced-controls {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

/* 页脚样式 */
footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.contact-info {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.contact-link {
  text-decoration: none;
  color: #495057;
  transition: transform 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f8f9fa;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-icon.telegram {
  color: #0088cc;
}

.contact-icon.skype {
  color: #00aff0;
}

.contact-icon.email {
  color: #ea4335;
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 0.125rem;
}

.contact-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-item {
    width: 100%;
    max-width: 300px;
  }
} 