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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 80px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 24px;
  color: #1890ff;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #666;
}

.form-section {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.hint {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #1890ff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card:hover {
  border-color: #1890ff;
}

.card.selected {
  border-color: #1890ff;
  border-width: 3px;
  background: #e6f7ff;
  color: #1890ff;
  font-weight: 600;
}

.card.disabled {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  opacity: 0.6;
}

.card.blocked {
  background: #fafafa;
  color: #999;
  border-color: #e0e0e0;
  cursor: not-allowed;
  position: relative;
}

.card.blocked::after {
  content: "您的部门";
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  background: #ff4d4f;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

.submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.submit-btn {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  display: block;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: #1890ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
  background: #096dd9;
}

.submit-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.message-box {
  background: white;
  padding: 60px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #333;
}

.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #52c41a;
  color: white;
  font-size: 48px;
  line-height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.success-message {
  font-size: 18px;
  color: #666;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 360px) {
  .card {
    font-size: 12px;
    padding: 12px 8px;
  }
}
