@charset "utf-8";

*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body
{
  color: #333;
  font-size: 0.26rem;
  font-family: Microsoft Yahei, Arial, Helvetica, sans-serif;
  max-width: 640px;
  margin: 0 auto;
  background: #f1f1f1;
}

img
{
  border: none;
}

ul
{
  list-style: none;
}

table
{
  border-collapse: collapse;
}

input,
button
{
  font-family: Microsoft Yahei, sans-serif;
  background: none;
  border: none;
}

a
{
  text-decoration: none;
  color: #333
}

a
{
  -webkit-tap-highlight-color: transparent
}

.logo
{
  width: 100%;
}

.logo.hospital1
{
  background: #0052A6;
  padding: 0.2rem;
}

.logo img
{
  width: 100%;
  display: block;
}

.tupian
{
  width: 100%;
}

.tupian img
{
  width: 100%;
}

.tit
{
  width: 100%;
  line-height: 0.8rem;
  text-align: center;
  background: #f1f1f1;
  color: #0052A6;
  font-size: 0.36rem;
}

.tit.hospital2
{
  color: #F2395B;
}

/* 现代化表单样式 - 已移除旧的 .biao 样式 */

.foot
{
  width: 100%;
  text-align: center;
  padding: 0.2rem 0;
  float: left;
  background: #fff;
}

.foot h2
{
  width: 100%;
  color: #F43C70;
  font-size: 0.22rem;
  float: left;
  padding-bottom: 0.1rem;
}

.foot p
{
  width: 100%;
  font-size: 0.16rem;
  line-height: 0.3rem;
  float: left;
}

/* 加载遮罩 */
.loading-overlay
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner
{
  background: white;
  padding: 0.4rem;
  border-radius: 0.1rem;
  text-align: center;
}

.loading-spinner::before
{
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #FF6600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.2rem;
}

@keyframes spin
{
  0%
  {
    transform: rotate(0deg);
  }

  100%
  {
    transform: rotate(360deg);
  }
}

/* 消息提示 */
.error-message,
.success-message
{
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.3rem 0.4rem;
  border-radius: 0.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: none;
  max-width: 80%;
  text-align: center;
}

.error-message
{
  border-left: 4px solid #ff4444;
  color: #ff4444;
}

.success-message
{
  border-left: 4px solid #4CAF50;
  color: #4CAF50;
}

/* 现代化表单样式 */
.modern-form
{
  background: #fff;
  padding: 0.4rem 0.5rem;
  border-radius: 0.12rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group
{
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
  min-height: 0.6rem;
}

.form-label
{
  flex: 0 0 1.2rem;
  font-size: 0.26rem;
  color: #333;
  font-weight: 500;
  margin-right: 0.2rem;
}

.form-input-wrapper
{
  flex: 1;
  position: relative;
}

.form-input,
.form-select
{
  width: 100%;
  padding: 0.15rem 0.1rem;
  font-size: 0.24rem;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus
{
  border-bottom-color: #FF6600;
}

.form-input::placeholder
{
  color: #999;
}

/* 性别选择样式 */
.gender-group
{
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.radio-wrapper
{
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-input
{
  display: none;
}

.radio-label
{
  display: flex;
  align-items: center;
  font-size: 0.24rem;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.radio-icon
{
  width: 0.16rem;
  height: 0.16rem;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 0.08rem;
  position: relative;
  transition: all 0.3s ease;
}

.radio-input:checked+.radio-label
{
  color: #FF6600;
}

.radio-input:checked+.radio-label .radio-icon
{
  border-color: #FF6600;
}

.radio-input:checked+.radio-label .radio-icon::after
{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.08rem;
  height: 0.08rem;
  background: #FF6600;
  border-radius: 50%;
}

/* 日期时间选择器 */
.datetime-picker
{
  width: 100%;
  padding: 0.15rem 0.1rem;
  font-size: 0.24rem;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  outline: none;
}

.datetime-picker:focus
{
  border-bottom-color: #FF6600;
}

/* 日期时间弹出框 */
.datetime-modal
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.datetime-content
{
  background: white;
  width: 90%;
  max-width: 5rem;
  max-height: 80%;
  border-radius: 0.12rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.datetime-header
{
  padding: 0.3rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.datetime-title
{
  font-size: 0.28rem;
  font-weight: 500;
  color: #333;
}

.datetime-close
{
  width: 0.4rem;
  height: 0.4rem;
  background: none;
  border: none;
  font-size: 0.3rem;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.datetime-body
{
  display: flex;
  flex: 1;
  overflow: hidden;
}

.date-section
{
  flex: 1;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  max-height: 5rem;
}

.time-section
{
  flex: 1;
  overflow-y: auto;
  max-height: 5rem;
}

.date-item,
.time-item
{
  padding: 0.2rem 0.3rem;
  font-size: 0.24rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-item:hover,
.time-item:hover
{
  background: #f8f9fa;
}

.date-item.active,
.time-item.active
{
  background: #FF6600;
  color: white;
}

.date-item.disabled
{
  color: #ccc;
  cursor: not-allowed;
}

.datetime-footer
{
  padding: 0.2rem 0.3rem;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  text-align: right;
}

.datetime-confirm
{
  padding: 0.12rem 0.3rem;
  background: #FF6600;
  color: white;
  border: none;
  border-radius: 0.06rem;
  font-size: 0.24rem;
  cursor: pointer;
}

.datetime-confirm:disabled
{
  background: #ccc;
  cursor: not-allowed;
}

/* 按钮样式 */
.submit-button
{
  width: 100%;
  height: 0.7rem;
  background: #FF6600;
  color: white;
  border: none;
  border-radius: 0.08rem;
  font-size: 0.28rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.2rem;
}

.submit-button:hover
{
  background: #e55a00;
}

.submit-button:active
{
  transform: translateY(1px);
}

.button-disabled
{
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.input-error
{
  border-bottom-color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.05) !important;
}

/* 响应式设计 */
@media (max-width: 480px)
{
  .modern-form
  {
    padding: 0.3rem 0.4rem;
  }

  .form-label
  {
    flex: 0 0 1rem;
    font-size: 0.24rem;
  }

  .form-input,
  .form-select
  {
    font-size: 0.22rem;
  }

  .gender-group
  {
    gap: 0.2rem;
  }

  .datetime-content
  {
    width: 95%;
    max-height: 85%;
  }
}