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

body {
  font-family: "Noto Serif SC", serif;
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  background: white;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #eaeaea;
}

.form-header {
  background: white;
  color: #333;
  padding: 30px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.form-header h1 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
  color: #222;
}

.form-header p {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

.form-content {
  padding: 40px;
}

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

.el-form-item__label {
  font-weight: 500;
  color: #333;
  padding-bottom: 8px;
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.el-input__inner {
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 48px;
  padding: 0 15px;
  font-size: 1rem;
  font-family: "Noto Serif SC", serif;
  transition: all 0.3s;
  color: #333;
  background: #fff;
}

.el-input__inner:focus {
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
  outline: none;
}

.agreement-container {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 3px;
  padding: 18px;
  margin: 30px 0 20px;
}

.agreement-content {
  display: flex;
  align-items: center;
}

.agreement-link {
  color: #333;
  margin-left: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  font-size: 0.95rem;
  text-decoration: underline;
}

.agreement-link:hover {
  color: #222;
  text-decoration: underline;
}

.agreement-link i {
  margin-right: 6px;
  color: #666;
}

.dialog-content {
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 500px;
  overflow-y: auto;
  color: #333;
  background: #fcfcfc;
  border-top: 1px solid #f0f0f0;
}

.dialog-content h3 {
  margin-bottom: 15px;
  color: #333;
  text-align: center;
  font-weight: 600;
}

.dialog-content p {
  margin: 10px 0;
}

.license-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.license-header h2 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #000;
}

.license-header .subtitle {
  color: #777;
  font-style: italic;
}

.license-content {
  padding: 10px 0;
}

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

.license-section h4 {
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.submit-area {
  text-align: center;
  margin-top: 10px;
}

.submit-btn {
  background: #409eff;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 14px 40px;
  font-size: 1rem;
  font-family: "Noto Serif SC", serif;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  font-weight: 500;
  /* border: 1px solid #333; */
}

.submit-btn:hover {
  /* background: #222; */
  opacity: 0.7;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #999;
  border-color: #999;
  cursor: not-allowed;
  transform: none;
}

.form-footer {
  padding: 25px 40px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.form-footer p {
  margin: 5px 0;
}

.scientific-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #aaa, transparent);
  opacity: 0.4;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .form-header {
    padding: 25px 20px;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .form-content {
    padding: 30px 20px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .el-input__inner {
    height: 46px;
  }

  .submit-btn {
    padding: 13px 35px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-header {
    padding: 20px 15px;
  }

  .form-content {
    padding: 20px 15px;
  }

  .form-header h1 {
    font-size: 1.3rem;
  }

  .agreement-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .agreement-link {
    margin: 12px 0 0 0;
  }
}

.required-asterisk:after {
  content: "*";
  color: #e53935;
  margin-left: 4px;
}

.agreement-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.agreement-container.error {
  border-color: #ffcdd2;
}

.agreement-container.error .agreement-error {
  display: block;
}

/* 简约装饰元素 */
.form-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #333;
  opacity: 0.1;
}

.form-row::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: #eee;
  margin-top: 8px;
}

.el-dialog__header {
  border-bottom: 1px solid #eee;
}

.el-dialog__title {
  color: #333;
  font-weight: 600;
}

.el-dialog__body {
  padding: 0;
}
