@charset "UTF-8";

:root {
  --gold: #b68a3c;
  --gold-dark: #8a6423;
  --ink: #2b2620;
  --cream: #faf7f1;
  --line: #e7ded0;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* 现代化跨平台无衬线黑体字型链，完美兼顾 iOS、Android、Mac 与 Windows */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Apple LiGothic Medium", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: 1px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,241,0.96);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  --logo-text-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: calc(var(--logo-text-size) * 1.5);
  width: calc(var(--logo-text-size) * 1.5);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 文字 LOGO 降级样式：优雅的粗体与黄金主题色，确保在没有 Logo 图片时依旧大方好看 */
.logo-text {
  font-size: var(--logo-text-size);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  display: inline-block;
  white-space: nowrap;
  font-family: inherit;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 15px;
  letter-spacing: 2px;
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s;
}

nav a:hover::after {
  width: 100%;
}

/* 汉堡按钮容器 (桌面版隐藏，直向弹性排列) */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  height: 50vh;
  min-height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 10, .15), rgba(20, 15, 10, .55));
  display: flex;
  align-items: flex-end;
}

.hero-caption {
  color: #fff;
  padding: 60px 24px;
  width: 100%;
}

.hero-caption .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  padding-top: 10px;
  margin-bottom: 14px;
}

.hero-caption h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
}

/* 首页胶囊型圆弧自订按钮 */
.hero-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 40px;
  background-color: var(--gold);
  color: #fff !important;
  border-radius: 50px; /* 胶囊圆弧 */
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

button.hero-btn {
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

/* 自订按钮悬停（Hover）：改为白框白字与柔和白光发光 */
.hero-btn:hover {
  background-color: rgba(255, 255, 255, 0.08); /* 微微白色半透明底色 */
  color: #fff !important;                       /* 纯白文字 */
  border-color: #fff !important;                 /* 纯白边框 */
  transform: translateY(-2px);                   /* 微幅悬浮 */
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18); /* 柔和白色阴影 */
}

section {
  padding: 0px 0;
  scroll-margin-top: 90px; /* 让平滑卷动停下时，区块标题不会被固定在顶部的选单列挡住 */
}

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

.section-title span {
  display: block;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 30px;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* News */
.news {
  padding: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.news-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.news-body {
  padding: 24px;
}

.news-body time {
  font-size: 13px;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.news-body h3 {
  font-size: 18px;
  margin: 10px 0 12px;
  line-height: 1.5;
}

.news-body p {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.more-link {
  display: block;
  width: fit-content;
  margin: 56px auto 0;
  border: 1px solid var(--gold);
  padding: 12px 60px;
  font-size: 14px;
  letter-spacing: 3px;
  transition: .3s;
  text-align: center;
  box-sizing: border-box;
}

.more-link:hover {
  background: var(--gold);
  color: #fff;
}

/* About */
.about {
  background: #fff;
  padding: 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.about-logo {
  text-align: center;
}

.about-logo img {
  margin: 0 auto;
  width: 100%;
  max-width: 300px;    /* 最大宽度限制 300px */
  height: 300px;       /* 限制高度 300px */
  object-fit: contain; /* 确保不同比例的商标图不变形 */
}

/* 关于我们区块：无 Logo 上传时的降级盾牌文字标章样式 */
.about-logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  border: 3px solid var(--gold);
  padding: 24px 16px;
  display: inline-block;
  letter-spacing: 2px;
  text-align: center;
  background: #fff;
  margin: 0 auto;
  max-width: 220px;
  word-break: break-all;
  box-shadow: 0 6px 16px rgba(0,0,0,0.02);
}

.about-text h3 {
  font-size: 20px;
  color: var(--gold-dark);
  margin: 28px 0 12px;
}

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

.about-text p {
  font-size: 15px;
  color: #444;
  margin-bottom: 14px;
}

.about-text ul, .about-text ol {
  margin-left: 20px;
  margin-bottom: 14px;
}

.about-text li {
  font-size: 15px;
  color: #444;
}

.about-text a {
  color: var(--gold);
  text-decoration: underline;
}

.about-text a:hover {
  color: var(--gold-dark);
}

/* Services (电脑桌机版预设：双栏排列，100x100 圆形框缩图) */
.service {
  padding: 50px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 36px;
}

.service-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
}

.service-thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

/* Team */
.team {
  background: #fff;
  padding: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  filter: grayscale(15%);
}

.team-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 13px;
  color: #666;
}

/* Testimonials - 改为弹性置中排列 */
.testi {
  padding: 50px;
}

.testi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.testi-card {
  background: #fff;
  padding: 30px 22px;
  border-top: 3px solid var(--gold);
  text-align: center;
  flex: 1 1 calc(25% - 28px);
  max-width: calc(25% - 21px);
  min-width: 240px;
  box-sizing: border-box;
}

.testi-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.testi-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.testi-card p {
  font-size: 13px;
  color: #666;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #fff, var(--cream));
  padding: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--gold-dark);
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #444;
}

.contact-info .detail {
  font-size: 15px;
  margin-bottom: 8px;
  word-break: break-all; /* 防止长 Email 或电话在手机端挤压排版并超出版面 */
}

.contact-map {
  margin-top: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* 「加入我的手机联络人」按钮:只在手机浏览时显示,位于 Google 地图上方 */
.vcard-inline-btn {
  display: none;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .3s ease;
}
.vcard-inline-btn:hover {
  background: var(--gold-dark);
}
@media (max-width: 900px) {
  .vcard-inline-btn { display: block; }
}

/* 确保嵌入的 Google 地图 iframe 能满版且在手机上不会溢出 */
.contact-map iframe {
  width: 100% !important;
  max-width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form input, form textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
}

form textarea {
  min-height: 220px;
  resize: vertical;
}

form button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 15px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: .3s;
}

form button:hover {
  background: var(--gold-dark);
}

/* Footer */
footer {
  background: var(--ink);
  color: #cfc7ba;
  padding: 50px 0 30px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.social-icons a, .social-icons button {
  width: 40px;
  height: 40px;
  border: 1px solid #6c6355;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

.social-icons a:hover, .social-icons button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* 复制帐号按钮（微信 / TikTok）的「已复制」提示 */
.social-copy-btn .copied-tip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.social-copy-btn.copied .copied-tip {
  opacity: 1;
}

footer .copy {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8d8474;
}

footer .copy a {
  color: #b6a888;
  margin-left: 10px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  z-index: 200;
}

/* Responsive */
@media (max-width: 900px) {

/* 手机版关于我们 Logo 满版宽度设定 */
  .about-logo img {
    max-width: 100% !important; 
    width: 100% !important;
    height: auto !important;     /* 高度改为自适应比例，避免图片宽度拉大时高度扁平变形 */
  }

  /* 缩减手机版的区块内距，左右留白 20px 以腾出更多内容空间，防止元素溢出 */
  .news, .about, .service, .team, .testi, .contact {
    padding: 40px 20px;
  }

  nav ul {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: .3s;
  }
  nav ul.open {
    transform: translateY(0);
  }
  .menu-btn {
    display: flex;
  }

  /* 将最新消息、优秀团队及服务项目统一为标准的手机双栏网格 (已将 .testi-grid 移出以套用弹性排版) */
  .news-grid, .team-grid, .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  /* 手机版服务项目样式微调（强制缩图不挤压、变成与团队成员卡片一样宽大的圆角图，并垂直排版） */
  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .service-thumb {
    width: 100% !important; /* 宽度撑满网格栏位 */
    height: auto !important;
    aspect-ratio: 1/1;       /* 强制 1:1 正方形比例 */
    border-radius: 6px !important; /* 改为与团队照片相同的 6px 圆角 */
    border: none !important;       /* 移除圆形金框，贴齐团队卡片质感 */
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  /* 在窄屏手机（例如直向拿手机时），最新消息维持单栏折叠并置中 */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* 服务项目、优秀团队:预设在窄屏手机折叠为单栏,后台可选择改为双栏 (.mobile-cols-2) */
  .service-list, .team-grid {
    grid-template-columns: 1fr;
  }
  .service-list.mobile-cols-2, .team-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .service-list.mobile-cols-2 .service-item {
    gap: 10px;
  }

  /* 客户推荐:预设在窄屏手机每列显示一张,后台可选择改为双栏 (.mobile-cols-2) */
  .testi-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .testi-grid.mobile-cols-2 .testi-card {
    flex: 1 1 calc(50% - 14px);
    max-width: calc(50% - 7px);
    min-width: 0;
    padding: 20px 14px;
  }

  .about-logo-text {
    max-width: 100%;
  }
}
/* Quill 富文本编辑器内容于前台的对应样式 (颜色为 inline style 不需额外处理,这里补上文字大小 class) */
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }
.rich-content p, .about-text p { margin-bottom: 10px; }

/* 回到顶部按钮：固定在画面右下角，滚动一段距离后才淡入显示 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-dark);
}
@media (max-width: 560px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 18px; }
}

/* 加我微信浮动按钮：固定在画面右下角，叠在回到顶部按钮正上方 */
.line-float-btn {
  position: fixed;
  right: 24px;
  bottom: 82px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #07C160;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  z-index: 999;
  transition: transform .3s ease, background .3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.line-float-btn:hover {
  background: #06ad56;
  transform: scale(1.08);
}
@media (max-width: 560px) {
  .line-float-btn { right: 16px; bottom: 70px; width: 42px; height: 42px; font-size: 19px; }
}

/* 加入我的联络人 (vCard) 浮动按钮:只在手机浏览时显示,固定在画面右下角、LINE 按钮的下方 */
.vcard-float-btn {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 82px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  z-index: 999;
  transition: transform .3s ease, background .3s ease;
}
.vcard-float-btn:hover {
  background: var(--gold-dark);
  transform: scale(1.08);
}
@media (max-width: 900px) {
  /* 只在手机浏览宽度(含平板直向)时显示此按钮,并把 LINE 按钮往上推,让出下方位置 */
  .vcard-float-btn { display: flex; }
  .line-float-btn { bottom: 140px; }
}
@media (max-width: 560px) {
  .vcard-float-btn { right: 16px; bottom: 70px; width: 42px; height: 42px; font-size: 18px; }
  .line-float-btn { bottom: 124px; }
}
