/* ===== 全局 reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 设置网站字体初始值 ===== */
html {
    font-size: 16px;
    font-family: "Cormorant Garamond", serif;
}

/* ===== 导航栏整体 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f5f5f5;
    z-index: 1000;
}

/* ===== 内部容器 ===== */
.nav-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* ===== logo区域 ===== */
.logo {
    display: flex;
    align-items: center;
    /* ⚠️ 关键：固定一个基础宽度，但允许缩小 */
    min-width: 10rem;
   
}

/* 控制logo图片 */
.logo img {
    height: 2.5rem;   /* ✅ 控高度 */
    width: auto;    /* ✅ 保持比例 */
    display: block; /* ✅ 去掉底部间隙 */
    padding-left: 1rem;
    
}

/* ===== 菜单区域 ===== */
.menu {
    flex: 1; 
    /* ⚠️ 吃掉剩余空间 */

    display: flex;

    /* 水平居中 */
    justify-content: center;

    /* 垂直居中 */
    align-items: center;

    gap: 3.7rem;

    /* 防止缩太小挤爆 */
    flex-wrap: wrap;
}

/* ===== 菜单项 ===== */
.menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* 导航栏点击变色 */
.menu a:hover {
    color: #c6a46a;
}

/* 当前页面导航下划线 */
.menu a.active {
    position: relative;  /* 必须加，才能定位伪元素 */
    color: #c6a46a;      
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 30%;
    bottom: -8px;  /* 下划线距离文字的间距，可调 */
    width: 40%;
    height: 2px;   /* 下划线高度，可调 */
    background-color: #c6a46a;  /* 下划线颜色，可以自己改 */
    border-radius: 2px; /* 圆角，看起来高级一点 */
}


/* ===== 手机端导航栏：只影响手机，不影响电脑和 iPad ===== */
@media (max-width: 600px) {
  body {
    padding-top: 96px;
  }

  .header {
    height: 96px;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    width: 100%;
    min-width: 0;
    height: 54px;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    height: 2.35rem;
    padding-left: 1rem;
  }

  .menu {
    flex: none;
    width: 100%;
    height: 42px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;

    gap: 0;
    padding: 0 10px 8px;

    flex-wrap: nowrap;
  }

  .menu a {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
  }
}


/* ===== 联系页 Hero 外层 ===== */
.contact-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  color: #fff;
}

/* ===== 背景图 ===== */
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== 遮罩 ===== */
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background: linear-gradient(
    to right,
    rgba(5, 15, 22, 0.82) 0%,
    rgba(5, 15, 22, 0.52) 42%,
    rgba(5, 15, 22, 0.18) 100%
  );
}

/* ===== 主内容区域：不包含底部优势栏 ===== */
.contact-hero-inner {
  position: relative;
  z-index: 3;

  width: 88%;
  max-width: 1500px;
  height: calc(100% - 118px);

  margin: 0 auto;

  display: flex;
  align-items: center;
}

/* ===== 左侧文字 ===== */
.contact-hero-text {
  max-width: 640px;
}

.contact-hero-text h1 {
  font-size: 45px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 6px;
  margin-bottom: 24px;

  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

.contact-hero-text p {
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

.contact-hero-line {
  width: 78px;
  height: 2px;
  background: #c9a76a;
}

/* ===== 底部优势栏整条深色背景 ===== */
.contact-feature-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;

  width: 100%;
  height: 118px;

  background: rgba(4, 20, 29, 0.9);
  backdrop-filter: blur(8px);
}

/* ===== 优势栏内部内容 ===== */
.contact-feature-inner {
  width: 88%;
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 40px;
}

/* ===== 单个优势 ===== */
.contact-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== 圆形图标 ===== */
.contact-feature-icon {
  width: 54px;
  height: 54px;

  border: 1px solid rgba(201, 167, 106, 0.76);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.contact-feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.contact-feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #d8b674;
  margin-bottom: 6px;
}

.contact-feature-item p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== 平板 ===== */
@media (max-width: 1100px) {
  .contact-hero {
    height: 700px;
  }

  .contact-hero-inner {
    height: calc(100% - 210px);
  }

  .contact-hero-text h1 {
    font-size: 44px;
  }

  .contact-feature-bar {
    height: 210px;
  }

  .contact-feature-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 44px;
  }
}

/* ===== 手机 ===== */
@media (max-width: 768px) {
  .contact-hero {
    height: 760px;
  }

  .contact-hero-inner {
    width: 90%;
    height: calc(100% - 260px);
  }

  .contact-hero-text h1 {
    font-size: 34px;
    line-height: 1.45;
    letter-spacing: 2px;
  }

  .contact-hero-text p {
    font-size: 15px;
  }

  .contact-feature-bar {
    height: 260px;
  }

  .contact-feature-inner {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .contact-feature-icon {
    width: 44px;
    height: 44px;
  }

  .contact-feature-icon img {
    width: 44px;
    height: 44px;
  }

  .contact-feature-item h3 {
    font-size: 14px;
  }

  .contact-feature-item p {
    font-size: 12px;
  }
}

/* ===== 联系我们表格 ===== */
.contact-section {
  width: 100%;
  padding: 80px 6%;
  background: #fbf8f3;
}

.contact-header {
  text-align: center;
  margin-bottom: 46px;
}

.contact-header h2 {
  font-size: 34px;
  font-weight: 500;
  color: #222;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.contact-header p {
  font-size: 15px;
  color: #666;
}

.contact-container {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.contact-form {
  width: 100%;
}

.contact-form label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  height: 44px;

  margin-bottom: 20px;
  padding: 0 14px;

  border: 1px solid #e6ded2;
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.75);

  font-size: 14px;
  color: #333;
  outline: none;
}

.contact-form textarea {
  height: 100px;
  padding-top: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #c9a76a;
  box-shadow: 0 0 0 3px rgba(201, 167, 106, 0.12);
}

.agree-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px !important;
}

.agree-row input {
  width: auto;
  height: auto;
  margin: 0;
}

.agree-row span {
  font-size: 13px;
  color: #666;
}

.submit-btn {
  width: 100%;
  height: 52px;

  border: none;
  border-radius: 6px;

  background: linear-gradient(135deg, #c9a76a, #b58a44);
  color: #fff;

  font-size: 16px;
  letter-spacing: 2px;

  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(181, 138, 68, 0.26);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: #b58a44;
}

/* 右侧卡片 */
.contact-card {
  border: 1px solid #eee4d7;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.contact-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.contact-card-content {
  padding: 34px;
}

.contact-card-content h3 {
  font-size: 24px;
  font-weight: 500;
  color: #222;
  margin-bottom: 16px;
}

.contact-card-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  margin-bottom: 26px;
}

.contact-card-content a {
  color: #b58a44;
  text-decoration: none;
  font-size: 15px;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== footer整体 ===== */
.footer {
  width: 100%;
  background: #fff;
  padding: 60px 6% 32px;
  color: #333;
  border-top: 1px solid #eee;
}

/* ===== footer内部四栏布局 ===== */
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 260px 160px 1fr;
  column-gap: 50px;
  align-items: flex-start;
}

/* ===== 左侧品牌区 ===== */
.footer-brand {
  width: 220px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo img {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
}

.footer-brand p {
  font-size: 11px;
  color: #6f7685;
  line-height: 1.5;
}

/* ===== 公共标题 ===== */
.footer h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

/* ===== 服务联系 ===== */
.footer-contact p {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}

.business {
  margin-top: 18px;
}

/* ===== 导航 ===== */
.footer-nav a {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  display: block;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  margin-bottom: 13px;
  transition: 0.25s ease;
}

.footer-nav a:hover {
  color: #c6a46a;
  transform: translateX(4px);
}

/* ===== 关注我们 ===== */
.footer-follow {
  min-width: 0;
}

.qr-list {
  display: grid;
  grid-template-columns: repeat(4, 110px);
  gap: 18px;
  justify-content: start;
}

/* ===== 单个二维码 ===== */
.qr-item {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  font-weight: 350;
  text-align: center;
}

.qr-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  display: block;

  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 10px;

  transition: 0.3s ease;
}

.qr-item:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* ===== 二维码标签 ===== */
.qr-label {
  display: inline-block;
  padding: 5px 10px;

  font-size: 12px;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
}

.qr-label.green {
  background: #25a64a;
}

.qr-label.red {
  background: #ff2b4f;
}

/* ===== 底部备案 ===== */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #777;
} 

/* ===== 平板响应式 ===== */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 220px 1fr;
    row-gap: 46px;
    column-gap: 150px;
    justify-content: center;
  }

  .footer-brand,
  .footer-nav {
    width: 220px;
    justify-self: start;
    text-align: center;
  }

  .footer-nav a {
    text-align: center;
  }

  .qr-list {
    grid-template-columns: repeat(4, 110px);
  }
}

/* ===== 手机响应式 ===== */
@media (max-width: 768px) {
  .footer {
    padding: 48px 5% 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 38px;
    text-align: center;
  }

  .footer-brand {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-nav {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
  }

  .footer-nav h3,
  .footer-nav a {
    text-align: center;
  }

  .footer-nav a:hover {
    transform: none;
  }

  .qr-list {
    grid-template-columns: repeat(2, 110px);
    justify-content: center;
    gap: 18px 22px;
  }

  .footer-bottom {
    margin-top: 38px;
    font-size: 12px;
  }
}
