/* 新增表单样式 - CSS Variables 定义 */
:root {
  --primary-color: #27ae60;
  --secondary-color: #1a1a1a;
  --accent-color: #ff6b35;
  --light-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --success-color: #27ae60;
  --focus-color: #27ae60;
}

/* 全局重置 */
/* :root {
    --#27ae60: #296a4e;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 表单样式导入 */
body {
  /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* display: flex; */
  justify-content: center;
  /* padding: 40px 20px; */
  min-height: 100vh;
}

.header-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 左边按钮 */
.back-btn {
    z-index: 2;
    background-color: #27ae60;
    border-radius: 10px;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

/* 中间标题真正居中 */
.header-form h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* 右边占位 */
.header-right {
    width: 60px;
}

.form-container {
  background: white;
  width: 100%;
  max-width: 100%;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  /* margin-bottom: 10px; */
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
}

p {
  /* margin-bottom: 10px; */
  font-size: 15px;
  /* font-weight: 700; */
  color: #27ae60;
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
}

.input-group {
  margin-bottom: 15px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

input[type="text"], 
input[type="tel"], 
input[type="date"], 
input[type="datetime-local"], 
input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fafafa;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--focus-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

/* 美化 datetime-local 输入框 */
input[type="datetime-local"] {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
}

/* Chrome、Edge、Safari 中美化日期时间选择器 */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 2px;
  opacity: 0.6;
  filter: invert(0.3);
  transition: all 0.2s ease;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(0);
}

input::placeholder {
  color: var(--text-light);
}

/* datetime-local 占位符样式 */
input[type="datetime-local"]::placeholder {
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.3px;
}

input[type="datetime-local"]::-webkit-input-placeholder {
  color: #bbb;
  font-size: 12px;
}

input[type="datetime-local"]:-moz-placeholder {
  color: #bbb;
  font-size: 12px;
}

input[type="datetime-local"]::-moz-placeholder {
  color: #bbb;
  font-size: 12px;
}

.checkbox-section {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.checkbox-section:hover {
  border-color: var(--focus-color);
  background-color: #fff;
}

.checkbox-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 15px;
  display: block;
}

.checkbox-grid {
  display: grid;
}

.single-col { grid-template-columns: 1fr 1fr; }
.double-col { grid-template-columns: 1fr 1fr; }

.checkbox-grid label {
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-grid label:hover {
  background-color: rgb(76 175 80 / 64%);
}

.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #27ae60 0%, #2a6643 100%);
  color: #fbfbfb;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgb(76 175 80 / 55%);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(76 175 80 / 52%);
  background: linear-gradient(135deg, #2a6643 0%, #27ae60 100%);
}

.submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  body {
    padding: 20px 15px;
  }
  
  .form-container {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .form-subtitle {
    font-size: 11px;
    margin-bottom: 25px;
  }
  
  .input-group {
    margin-bottom: 18px;
  }
  
  label {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  input[type="text"], 
  input[type="tel"], 
  input[type="date"], 
  input[type="datetime-local"], 
  input[type="number"] {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .checkbox-section {
    padding: 15px;
    margin-bottom: 18px;
  }
  
  .checkbox-section-title {
    font-size: 10px;
    margin-bottom: 12px;
  }
  
  .checkbox-grid {
    gap: 10px;
  }
  
  .checkbox-grid label {
    font-size: 11px;
    padding: 6px 8px;
    gap: 8px;
  }
  
  .checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  
  .submit-btn {
    padding: 12px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

.service-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px 20px;
    text-align: center;
    /* min-height: 100vh; */
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
}

/* 标题 */
.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--#27ae60) 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #204422;
    background-clip: text;
    letter-spacing: -1px;
}

.section-subtitle {
    color: #000000;
    margin-bottom: 50px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1300px;
    /* margin: auto; */
}

/* 卡片 */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(250, 190, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(250, 190, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #296a4e 0%, #296a4e 100%);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(250, 190, 0, 0.15);
}

/* 内容 */
.service-content {
    padding: 35px;
    text-align: left;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.service-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

/* 按钮 */
.service-btn {
    margin-bottom:10px;
    background: linear-gradient(135deg, #296a4e 0%, #296a4e 100%);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #296a4e 0%, #296a4e 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #2c815c;
}

.service-btn:active {
    transform: translateY(-1px);
}


/* 图片 */
.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
    padding-bottom:10px;
}

.service-card:hover img {
    transform: scale(1.05);
}


/* 超小屏幕 (480px 及以下) */
@media (max-width: 480px) {
    .service-section {
        padding: 40px 10px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .service-grid {
        /* padding-top:30px; */
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .service-card {
        border-radius: 14px;
        box-shadow: 0 5px 20px rgba(250, 190, 0, 0.06);
    }

    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 15px 35px rgba(250, 190, 0, 0.12);
    }

    .service-content {
        padding: 16px;
    }

    .service-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .service-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
        color: #777;
    }

    .service-btn {
        padding: 9px 20px;
        font-size: 12px;
        border-radius: 5px;
        font-weight: 600;
    }

    .service-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(250, 190, 0, 0.3);
    }

    .service-card img {
        height: 150px;
    }
}