/* ====================================================
   GEO诊断报告 表单页样式 v4
   纯表单页 | 一屏显示 | 亮色白底 | 标签+输入框横向排列
   ==================================================== */

/* ===== 1. 自包含 CSS 变量（无需依赖 style.css） ===== */
:root {
  /* 基础变量（来自主站 style.css） */
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* 亮色主题 */
  --geo-bg-page:       #F0F2F5;
  --geo-bg-card:       #FFFFFF;
  --geo-bg-input:      #F5F7FA;
  --geo-bg-input-focus:#EEF2FF;
  --geo-border:        #DDE1E7;
  --geo-border-hover:  #C0C7D2;
  --geo-border-focus:  #6366F1;
  --geo-text-primary:  #1A1A2E;
  --geo-text-secondary:#5A6070;
  --geo-text-muted:    #959DAD;
  --geo-text-placeholder: #B0B8C5;
  --geo-gradient-btn:  linear-gradient(135deg, #0052CC 0%, #6366F1 50%, #8B5CF6 100%);
  --geo-gradient-btn-hover: linear-gradient(135deg, #0065FF 0%, #7C3AED 50%, #A78BFA 100%);
  --geo-gradient-accent: linear-gradient(135deg, #0052CC 0%, #8B5CF6 100%);
  --geo-shadow-card:   0 2px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --geo-shadow-btn:    0 4px 16px rgba(99,102,241,0.30);
  --geo-radius-input:  8px;
  --geo-label-width:   160px;
  --geo-input-height:  42px;
}

/* ===== 2. 页面整体布局 ===== */
.geo-page {
  height: 100vh;
  background: var(--geo-bg-page);
  color: var(--geo-text-primary);
  font-family: var(--font-sans);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

/* 背景光晕装饰 */
.geo-page::before {
  content: '';
  position: fixed;
  top: -160px; right: -160px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.geo-page::after {
  content: '';
  position: fixed;
  bottom: -100px; left: -100px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(0,198,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== 3. 表单卡片 ===== */
.geo-form-card {
  width: 800px;
  max-width: calc(100vw - 32px);
  height: 100vh;
  background: var(--geo-bg-card);
  border-radius: 0;
  padding: 20px 64px 16px;
  box-shadow: var(--geo-shadow-card);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 顶部渐变装饰线 */
.geo-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%;
  width: 70%; height: 3px;
  background: var(--geo-gradient-accent);
  border-radius: 0 0 6px 6px;
}

/* 表单头部 */
.geo-form-header {
  text-align: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.geo-form-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(99,102,241,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
}

.geo-form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--geo-text-primary);
}

.geo-form-subtitle {
  font-size: 13px;
  color: var(--geo-text-muted);
  margin: 0;
}

/* ===== 4. 表单 — 单列纵向，标签在上输入框在下 ===== */
.geo-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* 每个字段：标签 + 输入框 纵向堆叠 */
.geo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.geo-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--geo-text-secondary);
  line-height: 1.4;
}

.geo-label .geo-required {
  color: #EF4444;
  margin-left: 2px;
}

.geo-input {
  width: 100%;
  height: var(--geo-input-height);
  background: var(--geo-bg-input);
  border: 1px solid var(--geo-border);
  border-radius: var(--geo-radius-input);
  padding: 0 14px;
  color: var(--geo-text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.geo-input::placeholder {
  color: var(--geo-text-placeholder);
}

.geo-input:hover {
  border-color: var(--geo-border-hover);
}

.geo-input:focus {
  border-color: var(--geo-border-focus);
  background: var(--geo-bg-input-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}

.geo-textarea {
  width: 100%;
  height: 88px;
  padding: 10px 14px;
  resize: none;
  overflow: hidden;
  line-height: 1.6;
}

/* 提交按钮 */
.geo-submit {
  width: 100%;
  height: 46px;
  background: var(--geo-gradient-btn);
  border: none;
  border-radius: var(--geo-radius-input);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--geo-shadow-btn);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.geo-submit:hover {
  background: var(--geo-gradient-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
}

.geo-submit:active {
  transform: translateY(0);
}

/* 表单底部说明 */
.geo-form-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--geo-text-muted);
  line-height: 1.5;
  flex-shrink: 0;
  margin-top: 10px;
}

.geo-form-footnote a {
  color: #6366F1;
  text-decoration: none;
}

.geo-form-footnote a:hover {
  text-decoration: underline;
}

/* ===== 5. 成功提示 ===== */
.geo-success {
  display: none;
  text-align: center;
  padding: 40px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.geo-success.show {
  display: flex;
}

.geo-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,200,117,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.geo-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--geo-text-primary);
  margin: 0 0 4px 0;
}

.geo-success-desc {
  font-size: 12px;
  color: var(--geo-text-secondary);
  line-height: 1.6;
}

/* ===== 6. 响应式 ===== */

/* 平板：标签宽度缩小 */
@media (max-width: 860px) {
  .geo-form-card {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    padding: 24px 32px 16px;
    border-radius: 0;
  }

  :root {
    --geo-label-width: 130px;
  }

  .geo-form-title {
    font-size: 20px;
  }
}

/* 手机：标签上移，横向变纵向 */
@media (max-width: 560px) {
  .geo-form-card {
    padding: 20px 18px 14px;
  }

  .geo-form {
    gap: 12px;
  }

  .geo-field {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .geo-label {
    width: auto;
    min-width: auto;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
  }

  .geo-field--textarea .geo-label {
    padding-top: 0;
  }

  .geo-submit-wrap {
    padding-left: 0;
  }

  .geo-input {
    height: 40px;
    font-size: 12px;
    padding: 0 12px;
  }

  .geo-textarea {
    height: 72px;
    padding: 8px 12px;
  }

  .geo-submit {
    height: 42px;
    font-size: 14px;
  }

  .geo-form-title {
    font-size: 18px;
  }

  .geo-form-header {
    margin-bottom: 14px;
  }
}

/* 小屏高度压缩 */
@media (max-height: 680px) {
  .geo-form-card {
    padding: 12px 48px 10px;
  }

  .geo-form-header {
    margin-bottom: 12px;
  }

  .geo-form-icon {
    width: 36px; height: 36px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .geo-form-title {
    font-size: 19px;
  }

  .geo-form {
    gap: 10px;
  }

  .geo-input {
    height: 38px;
    font-size: 12px;
  }

  .geo-textarea {
    height: 68px;
  }

  .geo-submit {
    height: 40px;
    font-size: 14px;
  }

  .geo-form-footnote {
    margin-top: 6px;
  }
}
