/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #1D2129;
  background-color: #F7F8FA;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #165DFF;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #1D2129;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #165DFF;
}

/* Banner部分 */
.banner {
  background: linear-gradient(135deg, #165DFF 0%, #3a8bc5 100%);
  color: white;
  padding: 150px 0 100px;
  text-align: center;
}

.main-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.sub_title {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btn {
  background: #FF7D00;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.cta-btn:hover {
  background: #e56c00;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 模块通用样式 */
.module {
  padding: 80px 0;
  background-color: #F7F8FA;
}

.module-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  color: #1D2129;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #4E5969;
  margin-bottom: 40px;
}

/* 案例库筛选器 */
.filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: bold;
  color: #1D2129;
}

.filter-select {
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  min-width: 150px;
  background-color: #fff;
  color: #1D2129;
}

/* 案例网格 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.case-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #eee;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.case-image {
  height: 180px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 20px;
}

.case-title {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  color: #1D2129;
  font-weight: bold;
}

.case-institution {
  color: #4E5969;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.case-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-tag {
  background: #e6f4ff;
  color: #165DFF;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.load-more-btn {
  background: #165DFF;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background: #0d47c3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(22, 93, 255, 0.4);
}

/* 案例详情弹窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalAppear 0.3s;
}

@keyframes modalAppear {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-content h3 {
  color: #165DFF;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 10px;
}

#modalInstitution {
  font-size: 1.2rem;
  color: #4E5969;
  margin-bottom: 20px;
}

#modalDetails h4 {
  color: #165DFF;
  margin: 20px 0 10px 0;
}

/* 添加表单输入框通用样式 */
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ebedf0;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  color: #1D2129;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

.form-group input::placeholder {
  color: #86909C;
}

/* 信息展示区样式 */
.info-display {
  margin: 20px 0;
}

.info-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f7f8fa;
  border-radius: 5px;
  border-left: 4px solid #165DFF;
}

.info-item h3 {
  color: #165DFF;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.info-item p {
  color: #4E5969;
  margin: 0;
  line-height: 1.5;
}

/* 留资钩子 */
.lead-magnet {
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  border: 1px solid #ebedf0;
}

.lead-magnet h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1D2129;
}

.lead-magnet p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #4E5969;
}

.contact-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 20px;
  border: 1px solid #ebedf0;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 300px;
  background-color: #fff;
  color: #1D2129;
}

.contact-form button {
  background: #FF7D00;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.contact-form button:hover {
  background: #e56c00;
}

/* 模块2：自测问卷 */
.test-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 30px;
  border: 1px solid #ebedf0;
}

.question {
  display: none;
  animation: fadeIn 0.5s;
}

.question.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.question h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #165DFF;
}

.options {
  margin-bottom: 30px;
}

.options label {
  display: block;
  margin: 10px 0;
  padding: 12px 15px;
  background: #f7f8fa;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid #ebedf0;
  color: #1D2129;
}

.options input[type="radio"] {
  margin-right: 10px;
}

.options select {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ebedf0;
  background: white;
  color: #1D2129;
}

.options label:hover {
  background: #e6f4ff;
  border-color: #165DFF;
}

.next-btn, .show-result-btn {
  background: #165DFF;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.show-result-btn {
  background: #FF7D00;
}

.result-content {
  margin: 30px 0;
}

.result-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebedf0;
}

.result-section:last-child {
  border-bottom: none;
}

.result-section h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #165DFF;
}

.success-rate {
  font-weight: bold;
  color: #165DFF;
  font-size: 1.2rem;
}

.result-lead {
  margin-top: 0;
  background: #e6f4ff;
  border: 1px solid #165DFF;
}

/* 模块3：资源包 */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.resource-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border: 1px solid #ebedf0;
}

.resource-item h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #165DFF;
}

.resource-item p {
  color: #4E5969;
}

/* 模块4：专家评估 */
.evaluation-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.evaluation-form {
  flex-direction: column;
  align-items: stretch;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row > * {
  flex: 1;
}

.evaluation-form textarea {
  width: 100%;
  margin-bottom: 20px;
  resize: vertical;
  padding: 12px 20px;
  border: 1px solid #ebedf0;
  border-radius: 5px;
  background-color: #fff;
  color: #1D2129;
}

/* 模块5：诊断 */
.diagnosis-problems, .diagnosis-solutions {
  text-align: center;
  margin-bottom: 40px;
}

.problem-list, .solution-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.problem-item, .solution-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 150px;
}

.problem-icon, .solution-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.problem-text, .solution-text {
  font-size: 1.1rem;
  color: #1D2129;
}

/* 悬浮栏 */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1D2129;
  color: white;
  z-index: 1000;
  padding: 15px 0;
}

.floating-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar-text h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.bar-text p {
  margin: 0;
  opacity: 0.8;
}

.bar-action {
  text-align: right;
}

.bar-action p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.bar-action button {
  background: #FF7D00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
  
  .sub_title {
    font-size: 1.1rem;
  }
  
  .module-title {
    font-size: 1.8rem;
  }
  
  .filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-group {
    width: 100%;
    justify-content: center;
  }
  
  .notice-info {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-form input {
    min-width: 100%;
  }
  
  .floating-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .bar-action {
    text-align: center;
  }
}