/* 
 * 植发价格效果咨询服务网站样式
 * 作者: Craft AI
 * 版本: 1.0
 */

/* 基础样式重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2D4071;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a2a4d;
}

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.m-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: #2D4071;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1a2a4d;
  color: #fff;
}

.btn-secondary {
  background-color: #fff;
  color: #2D4071;
  border: 2px solid #2D4071;
}

.btn-secondary:hover {
  background-color: #f0f2f9;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #2D4071;
}

/* 头部导航 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 2.5rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2D4071;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #2D4071;
  transition: all 0.3s ease;
}

/* 英雄区域 */
.hero-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.hero-content {
  flex: 1;
  padding-right: 4rem;
}

.hero-content h1 {
  font-size: 4.2rem;
  margin-bottom: 1rem;
  color: #2D4071;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: #555;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 服务优势 */
.advantages-section {
  padding: 8rem 0;
  background-color: #fff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.advantage-item {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  margin-bottom: 2rem;
}

.advantage-icon img {
  margin: 0 auto;
}

.advantage-item h3 {
  margin-bottom: 1.5rem;
  color: #2D4071;
}

/* 关于植发 */
.about-section {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: #2D4071;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.about-text li {
  list-style-type: disc;
  margin-bottom: 0.8rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 医院对比 */
.comparison-section {
  padding: 8rem 0;
  background-color: #fff;
}

.comparison-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.comparison-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.comparison-table th {
  background-color: #2D4071;
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.comparison-note {
  text-align: center;
  font-style: italic;
  color: #666;
}

/* 案例展示 */
.cases-section {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.case-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-images {
  display: flex;
}

.case-before,
.case-after {
  flex: 1;
  position: relative;
}

.case-before img,
.case-after img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(45, 64, 113, 0.8);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 1.4rem;
}

.case-info {
  padding: 2rem;
}

.case-info h3 {
  margin-bottom: 1rem;
  color: #2D4071;
}

.case-info p {
  margin-bottom: 0.5rem;
}

.cases-more {
  text-align: center;
  margin-top: 4rem;
}

/* 常见问题 */
.faq-section {
  padding: 8rem 0;
  background-color: #fff;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #f8f9fa;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #2D4071;
}

.faq-toggle {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2D4071;
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 2rem;
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* 咨询表单 */
.form-section {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.form-container {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

#consultation-form {
  flex: 2;
  background-color: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-info {
  flex: 1;
  background-color: #2D4071;
  color: #fff;
  padding: 3rem;
  border-radius: 8px;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  flex: 1;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.6rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2D4071;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 1rem;
  width: auto;
}

.privacy-policy {
  margin-top: 1rem;
}

.form-submit {
  margin-top: 3rem;
}

.form-submit button {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
}

.form-info h3 {
  color: #fff;
  margin-bottom: 2rem;
}

.form-info ul {
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.form-info li {
  list-style-type: disc;
  margin-bottom: 1rem;
}

.guarantee {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 3rem;
}

.guarantee img {
  margin-right: 1.5rem;
}

/*/* 联系信息 */
.contact-section {
  padding: 6rem 0;
  background-color: #fff;
}

.contact-info {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  min-width: 300px;
}

.contact-icon {
  margin-right: 2rem;
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  color: #2D4071;
}

.contact-text .small {
  font-size: 1.4rem;
  color: #666;
}

.qr-code {
  margin-top: 1rem;
}

/* 页脚 */
.footer {
  background-color: #1a2a4d;
  color: #fff;
  padding: 6rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-logo {
  flex: 1;
}

.footer-logo p {
  margin-top: 1.5rem;
  color: #ccc;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-around;
}

.footer-links-column h3 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-links-column ul li {
  margin-bottom: 1rem;
}

.footer-links-column a {
  color: #ccc;
}

.footer-links-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
}

.beian-info {
  display: flex;
  gap: 2rem;
}

.beian-info p {
  display: flex;
  align-items: center;
}

.beian-info img {
  margin-right: 0.5rem;
  display: inline-block;
}

.beian-info a {
  color: #ccc;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  background-color: #2D4071;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #fff;
}

/* 感谢页面 */
.thank-you-section {
  padding: 8rem 0;
  background-color: #f8f9fa;
  text-align: center;
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
  margin-bottom: 3rem;
}

.thank-you-icon img {
  margin: 0 auto;
}

.thank-you-content h1 {
  color: #2D4071;
  margin-bottom: 2rem;
}

.thank-you-content .lead {
  font-size: 2rem;
  margin-bottom: 4rem;
}

.next-steps {
  text-align: left;
  margin-bottom: 4rem;
}

.next-steps h2 {
  margin-bottom: 2rem;
  color: #2D4071;
}

.next-steps ol {
  padding-left: 2rem;
}

.next-steps li {
  list-style-type: decimal;
  margin-bottom: 1rem;
}

.contact-options {
  margin-bottom: 4rem;
}

.contact-options h2 {
  margin-bottom: 2rem;
  color: #2D4071;
}

.contact-options-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.contact-option {
  text-align: center;
}

.contact-option .contact-icon {
  margin: 0 auto 1.5rem;
}

.back-home {
  margin-top: 4rem;
}

/* 错误消息 */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.error-message h3 {
  color: #721c24;
}

.error-message ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.error-message li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 56%;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content,
  .form-container {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 3rem;
  }
  
  .form-info {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 3rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-section .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 4rem;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-options-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: none;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .beian-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content h2 {
    font-size: 2.4rem;
  }
}

/* 快速咨询按钮 */
.quick-consult-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2D4071;
  color: #fff;
  padding: 3.5rem 2.5rem;
  border-radius: 16px 0 0 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.quick-consult-btn:hover {
  background-color: #1a2a4d;
  padding-right: 3.5rem;
}

.consult-text {
  writing-mode: vertical-lr;
  text-orientation: upright;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.consult-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #fff;
  color: #2D4071;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .quick-consult-btn {
    padding: 2.5rem 2rem;
  }
  
  .consult-text {
    font-size: 2rem;
    letter-spacing: 3px;
  }
  
  .consult-icon {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 3rem;
  }
}