/* 桐果云官网 - 演示预约页面专用样式文件 */
/* 避免与其他页面样式相互干扰 */

/* ===== 1. 演示预约页面标题区 ===== */
.demo-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 167, 243, 0.05) 0%, rgba(0, 149, 224, 0.05) 100%);
  padding-top: 120px;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.demo-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.demo-hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.demo-hero p {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-actions .btn {
  min-width: 220px;
}

/* ===== 2. 演示表单区域 ===== */
.demo-screen {
  padding: 5rem 0;
  background-color: var(--white);
}

.demo-screen .section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 1rem;
}

.demo-screen .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.demo-screen .section-subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.demo-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

/* 表单组样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: var(--font-size-base);
}

.form-group .required {
  color: var(--danger-color);
  margin-left: 0.25rem;
}

/* 复选框组样式 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.checkbox-item:hover {
  background-color: rgba(0, 167, 243, 0.1);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
}

/* 下拉选择框样式 */
.select-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* 表单提交按钮 */
.form-submit {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.form-submit .btn {
  min-width: 200px;
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ===== 3. 响应式设计 ===== */
@media (max-width: 992px) {
  .demo-hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .demo-hero p {
    font-size: var(--font-size-base);
  }
  
  .demo-screen .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .demo-screen .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .demo-form-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .demo-hero {
    min-height: 50vh;
    padding-top: 100px;
    padding-bottom: 3rem;
  }
  
  .demo-hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .demo-hero p {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .demo-screen {
    padding: 3rem 0;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .checkbox-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .demo-hero {
    min-height: 40vh;
    padding-top: 80px;
    padding-bottom: 2rem;
  }
  
  .demo-hero h1 {
    font-size: var(--font-size-xl);
  }
  
  .demo-form-container {
    padding: 1.5rem;
  }
  
  .form-submit .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== 4. 动画效果 ===== */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-form-container {
  animation: formFadeIn 0.5s ease-out;
}

/* ===== 5. 表单验证样式 ===== */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger-color);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) + .form-error {
  display: block;
}

.form-error {
  display: none;
  color: var(--danger-color);
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

/* ===== 6. 成功提交状态 ===== */
/* .form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--success-color);
  margin-top: 1.5rem;
}

.form-success i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--success-color);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray-600);
  margin-bottom: 0;
} */

/* ===== 7. 加载状态 ===== */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-spinner 0.8s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}
