/* 输入页样式 */
.container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header {
  padding: 60px 20px 40px;
  text-align: center;
  color: #fff;
}

.logo {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.content {
  padding: 30px 20px;
}

.input-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.mac-input {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s;
}

.mac-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: #ccc;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:active {
  background: #999;
}

.history-section {
  margin-bottom: 20px;
}

.history-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-tag {
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.history-tag:active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.query-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.query-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 12px;
  opacity: 0.9;
}

.footer {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* PC端适配 */
@media (min-width: 768px) {
  .logo {
    font-size: 100px;
  }
  
  .header h1 {
    font-size: 32px;
  }
  
  .features {
    max-width: 400px;
    margin: 30px auto 0;
  }
}
