/* ===== Reset & Global ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00424b;     /* 深绿蓝 */
  --accent: #007f6b;      /* 按钮绿色 */
  --text-dark: #12212a;
  --bg-light: #f4f7f8;
  --white: #ffffff;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 8px;
}

/* ===== Header / Nav ===== */
header {
  position: sticky;     /* 关键：吸顶效果 */
  top: 0;               /* 贴在页面顶部 */
  z-index: 1000;        /* 保证盖在内容之上 */
  border-bottom: 1px solid #dde3e6;
  background-color: var(--white);
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;   /* 导航高度，加大一倍 */
}

/* 左边 Logo 图片 */
.brand-logo img {
  height: 50px;   /* 可以根据需要调大/调小 */
  width: auto;
  display: block;
  margin-left: -100px;
}

/* 右边导航链接 */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-image: url("first.png");
  background-size: cover;       /* 像 Jim’s 一样填满宽度 */
  background-position: center;  /* 居中对齐 */
  background-repeat: no-repeat;
  padding: 220px 0 240px;       /* 加大背景高度，像 Jim’s 那样的大气 */
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* 透明黑色，调整亮度 */
}


.hero-inner {
  position: relative;
  z-index: 2;          /* 让文字在遮罩上面 */
  max-width: 720px;
  margin-left: 300px;  /* 精准对齐 Jim’s 左边距 */
}



.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 26px;
  font-weight: 700;
}

/* 按钮 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  text-transform: none;
  font-weight: 700;  /* 加粗 */
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 600;  /* 次级加粗，让层次更明显 */
}


.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* ===== Section 通用 ===== */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 26px;
}
.section-center {
  text-align: center;
}

.section-title-center {
  text-align: center;
  margin-bottom: 22px;
}

.section-body {
  max-width: 780px;      /* 控制文字宽度，居中一条长段落 */
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.7;
 text-align: left; 
}

.section-body p + p {
  margin-top: 14px;      /* 段落之间留点空 */
}


/* ===== Home: 服务概览 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid #dde3e6;
  border-radius: 18px;
  padding: 18px 18px 20px;
  background-color: var(--bg-light);
}

.service-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.service-note {
  font-size: 0.92rem;
}

/* ===== Services 页面 ===== */
.services-intro {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: 1rem;
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-block {
  border-radius: 18px;
  border: 1px solid #dde3e6;
  padding: 20px;
  background-color: var(--white);
}

.service-block h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.service-block p {
  font-size: 0.95rem;
}

/* ===== About 页面 ===== */
.about-layout {
  display: grid;
  gap: 26px;
}

.about-highlight {
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-points {
  list-style: none;
  margin-top: 10px;
}

.about-points li {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.about-tag {
  margin-top: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid #dde3e6;
  background-color: var(--bg-light);
  padding: 18px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  justify-content: space-between;
  align-items: center;
}

.footer-contact span + span {
  margin-left: 16px;
}

/* ===== Responsive 手机端 ===== */
@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;  /* 手机上稍微减小一点高度 */
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 50px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 40px 0;
  }
}
@media (max-width: 768px) {
  .hero-inner {
    margin-left: 20px; /* 手机自动变小，保持美观 */
    margin-right: 20px;
  }
}

/* ===== Quote Modal 弹窗 ===== */

.quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.quote-logo {
  height: 32px;   /* 可以根据效果调大调小 */
  width: auto;
}

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;              /* 默认隐藏 */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.quote-modal-overlay.open {
  display: flex;
}

.quote-modal {
  background: #ffffff;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 22px 22px 24px;
  overflow-y: auto;
  position: relative;
}

.quote-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.quote-step {
  display: none;
}

.quote-step.active-step {
  display: block;
}

.quote-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.quote-subtitle {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* 选择服务网格（复用之前那套） */
.service-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #dde3e6;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.service-option input {
  width: 16px;
  height: 16px;
}

.service-option.selected {
  border-color: var(--accent);
  background-color: #e6f5f2;
  box-shadow: 0 0 0 1px rgba(0, 127, 107, 0.25);
}

/* 选中的服务标签 */
.quote-selected-block {
  margin: 10px 0 20px;
}

.selected-label {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.selected-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-tag {
  background-color: #eef3f5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* 表单与按钮（复用你原来的 form 样式） */
.quote-form {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #dde3e6;
  padding: 16px 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid #dde3e6;
  padding: 8px 10px;
  font-size: 0.95rem;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 127, 107, 0.25);
}

/* 弹窗底部按钮 */
.quote-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}

/* 小屏幕时弹窗自适应 */
@media (max-width: 768px) {
  .quote-modal {
    padding: 16px 14px 18px;
  }

  .quote-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quote-actions .btn-primary,
  .quote-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* 阻止背景滚动（可选） */
body.modal-open {
  overflow: hidden;
}

/* Modal 内的按钮样式覆盖 */
.quote-modal .btn-outline {
  border-color: var(--primary);   /* 深绿蓝边框 */
  color: var(--primary);          /* 深绿蓝文字 */
}

.quote-modal .btn-outline:hover {
  background-color: rgba(0, 66, 75, 0.08); /* 轻微 hover 效果 */
}
.services-page .container {
  margin-left: -100px;   /* 向左拉齐，与 logo 左边一样 */
}
.about-page .container {
  margin-left: -100px;   /* 向左拉齐，与 logo 左边一样 */
}

