/* 表单弹窗样式 - 从 homeFrom.scss 转换 */
.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.page-container {
  position: absolute;
  z-index: 99;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 420px;
}
.title-section {
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}
.title-section .main-title {
  font-size: calc(var(--content-subhea) - 6px);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.375rem;
}
.title-section .iconfont {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 22px;
  opacity: 0.6;
  z-index: 10;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-section .sub-title {
  color: var(--text-color2);
  font-size: 0.75rem;
}
.form-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 1.125rem;
  padding-top: 2rem;
  max-width: 420px;
  width: 420px;
  max-height: 85vh;
  position: relative;
  overflow-y: auto;
  color: #000;
}
@media (max-width: 768px) {
  .page-container {
    width: 92vw;
  }
  
  .form-card {
    padding: 0.75rem;
    padding-top: 1.75rem;
    width: 100% !important;
    max-height: 88vh;
  }
  
  .title-section {
    margin-bottom: 0.75rem;
  }
  
  .title-section .main-title {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
  }
  
  .title-section .sub-title {
    font-size: 0.6875rem;
  }
  
  .title-section .iconfont {
    top: 0.375rem;
    right: 0.375rem;
    font-size: 18px;
    width: 24px;
    height: 24px;
  }
}
.form-section {
  margin-top: 1rem;
}
.form-section.section-divider {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}
.form-section .section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 0.625rem;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .platform-grid {
    gap: 0.3125rem;
  }
  
  .form-section {
    margin-top: 0.625rem;
  }
  
  .form-section.section-divider {
    padding-top: 0.625rem;
  }
  
  .form-section .section-title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}
.platform-card {
  display: block;
  cursor: pointer;
}
.card-select {
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.5rem 0.375rem;
  min-height: 2.5rem;
}
.card-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.card-select.selected {
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: var(--primary-color);
  color: #fff;
}
.platform-name {
  text-align: center;
  font-size: 0.75rem;
}
.business-type-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .business-type-container { flex-direction: row; }
}
.business-type-card {
  display: block;
  cursor: pointer;
  flex: 1;
}
.btn-select {
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.625rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.btn-select:hover {
  border-color: var(--primary-color);
}
.btn-select.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-select .type-name {
  font-weight: 600;
  font-size: 0.8125rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group .form-label {
  display: block;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.appeal-type-container,
.ip-type-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  margin-bottom: 0.125rem;
}
.appeal-type-tag,
.ip-type-tag {
  cursor: pointer;
  min-width: 6.25rem;
}
.tag-select {
  flex: 1;
  display: block;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  transition: all 0.3s ease;
  font-size: calc(var(--font-size-base) - 4px);
  font-weight: 500;
  text-align: center;
}
.tag-select:hover {
  border-color: var(--primary-color);
}
.tag-select.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}
.text-area,
.text-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-size: 0.75rem;
}

/* 移动端样式优化 */
@media (max-width: 768px) {
  .card-select {
    padding: 0.375rem 0.25rem;
    min-height: 2.125rem;
    border-radius: 0.375rem;
  }
  
  .platform-name {
    font-size: 0.6875rem;
  }
  
  .business-type-container {
    gap: 0.375rem;
  }
  
  .btn-select {
    padding: 0.5rem 0.375rem;
    border-radius: 0.375rem;
  }
  
  .btn-select .type-name {
    font-size: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 0.625rem;
  }
  
  .form-group .form-label {
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
  }
  
  .tag-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
  
  .text-area,
  .text-input {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    border-radius: 0.3125rem;
  }
}
.text-area:focus,
.text-input:focus {
  outline: none;
  border: 2px solid var(--primary-color);
}
.text-area {
  resize: vertical;
  min-height: 4.375rem;
}
.lawsuit-response-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.lawsuit-response-card {
  display: block;
  cursor: pointer;
}
.response-name {
  text-align: center;
  font-size: 0.75rem;
}
.submit-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1rem;
}
.submit-btn span {
  font-weight: 600 !important;
}
.submit-btn:hover {
  background-color: var(--primary-color-hover);
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
  .text-area {
    min-height: 3.75rem;
  }
  
  .lawsuit-response-grid {
    gap: 0.375rem;
    margin-bottom: 1rem;
  }
  
  .response-name {
    font-size: 0.6875rem;
  }
  
  .submit-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 0.3125rem;
    gap: 0.25rem;
  }
}
