/* ============================================================
   恩賜良緣婚介有限公司 · 全站样式
   莫兰迪浅紫 × 金色 · PC+移动端响应式
   ============================================================ */
:root {
  --gold: #B8985A;
  --gold-dark: #8B6F3E;
  --gold-line: #C9A96A;
  --purple: #5A4A7A;
  --purple-deep: #4A3B68;
  --nav-bg: #E5DEF4;
  --footer-bg: #E9E2F5;
  --logo-bg: #EFEAF7;
  --tab-bg: #E3DBF3;
  --font-serif: "Noto Serif TC", "Songti TC", "SimSun", serif;
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--purple);
  background: #F2EDF6 url("../img/bg-page.jpg") center top / 100% auto repeat-y;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* ================= 导航条 ================= */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--nav-bg);
  padding: 0 40px;
  height: 46px;
  position: relative;
  z-index: 100;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: space-around;
}
.nav-item {
  font-size: 14px;
  color: var(--purple-deep);
  padding: 4px 14px;
  line-height: 1.6;
  white-space: nowrap;
  transition: color .2s;
}
.nav-item:hover { color: var(--gold-dark); }
.nav-item.active {
  border: 1px solid var(--gold-line);
  color: var(--gold-dark);
  background: rgba(255,255,255,.35);
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 10px; }
.lang-btn {
  font-size: 13px;
  color: var(--purple-deep);
  padding: 2px 8px;
  border: 1px solid transparent;
}
.lang-btn.active {
  border-color: var(--gold-line);
  color: var(--gold-dark);
}
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.hamburger span { width: 20px; height: 2px; background: var(--purple-deep); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================= Logo 区 ================= */
.site-logo {
  line-height: 0;
}
.site-logo a { display: block; max-width: 1080px; margin: 0 auto; }
.site-logo img { display: block; width: 100%; max-width: 1080px; height: auto; margin: 0 auto; }

/* ================= 首页 ================= */
.hero-banner {
  max-width: 1080px;
  margin: 0 auto;
}
.hero-banner img { width: 100%; height: auto; }

.tabs {
  max-width: 1080px;
  margin: 26px auto 0;
  display: flex;
  background: var(--tab-bg);
}
.tab-item {
  flex: 1;
  text-align: center;
  font-size: 16px;
  color: var(--purple-deep);
  padding: 15px 8px;
  position: relative;
  cursor: pointer;
  letter-spacing: 1px;
}
.tab-item + .tab-item::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: rgba(255,255,255,.9);
}
.tab-item:hover, .tab-item.active { color: var(--gold-dark); }

.carousel-zone {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  padding: 0 70px;
}
.carousel {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: auto; }
.slide-hot {
  position: absolute;
  left: 19%; bottom: 13%;
  width: 33%; height: 17%;
  border-radius: 8px;
  display: block;
}
.slide-hot:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.5) inset; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  padding: 0;
  z-index: 5;
  opacity: .85;
  transition: opacity .2s;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: 12px; transform: translateY(-50%) scaleX(-1); }
.carousel-btn.next { right: 12px; }
.carousel-btn img { width: 100%; height: 100%; }

.home-intro {
  max-width: 1080px;
  margin: 60px auto;
  padding: 0 30px;
  text-align: center;
  font-size: 22px;
  line-height: 2;
  color: var(--purple);
  font-family: var(--font-serif);
}
.promise-wrap { max-width: 1080px; margin: 0 auto 70px; }
.promise-wrap img { width: 100%; height: auto; }

/* ================= 内页通用 ================= */
.page-main { max-width: 1080px; margin: 0 auto; padding: 50px 30px 70px; }
.page-title { text-align: center; margin-bottom: 44px; }
.page-title img { display: inline-block; width: 330px; max-width: 80%; height: auto; }
.page-title.plain h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--gold-dark);
  letter-spacing: 6px;
  font-weight: 600;
}

/* ---------- 联络页 ---------- */
.contact-welcome {
  text-align: center;
  font-size: 20px;
  color: var(--purple-deep);
  margin-bottom: 48px;
  line-height: 1.8;
}
.contact-info-zone {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.qr-pair { display: flex; gap: 44px; }
.qr-item { text-align: center; }
.qr-item img {
  width: 195px; height: 195px;
  cursor: pointer;
  transition: transform .2s;
  background: #fff;
  padding: 6px;
}
.qr-item img:hover { transform: scale(1.04); }
.qr-item .qr-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--purple-deep);
  letter-spacing: 2px;
}
.contact-detail {
  max-width: 560px;
  font-size: 17px;
  line-height: 2.15;
  color: var(--purple-deep);
  padding-top: 6px;
}
.contact-detail .row { display: flex; }
.contact-detail .row .lb { white-space: nowrap; }
.contact-detail a { color: var(--gold-dark); }
.contact-detail a:hover { text-decoration: underline; }
.map-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: block;
  transition: opacity .2s;
}
.map-wrap:hover { opacity: .92; }
.map-wrap img { width: 100%; height: auto; }
.map-hint {
  text-align: center;
  font-size: 13px;
  color: #9A8FB5;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ---------- 微信弹层 ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(50,40,70,.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }
.modal-card {
  background: #FBF9FD;
  padding: 34px 40px 28px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(60,45,90,.3);
}
.modal-card img { width: 300px; height: 300px; }
.modal-card h3 {
  font-size: 18px;
  color: var(--purple-deep);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 26px;
  color: #9A8FB5;
  line-height: 1;
}

/* ---------- 占位页 ---------- */
.placeholder-zone {
  text-align: center;
  padding: 40px 0 30px;
}
.placeholder-zone p {
  font-size: 19px;
  color: var(--purple);
  margin-bottom: 38px;
  line-height: 1.9;
}
.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, #D8B877 0%, #B8985A 55%, #9C7C42 100%);
  color: #fff;
  font-size: 19px;
  letter-spacing: 4px;
  padding: 14px 54px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(155,124,66,.35);
  transition: transform .2s, box-shadow .2s;
  font-family: var(--font-serif);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(155,124,66,.45); }

/* ================= Footer ================= */
.site-footer {
  background: var(--footer-bg);
  margin-top: 40px;
  padding-top: 54px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.6fr;
  gap: 30px;
  padding: 0 60px 40px;
}
.f-col h4 {
  font-size: 19px;
  color: var(--purple-deep);
  margin-bottom: 22px;
  letter-spacing: 3px;
  font-weight: 600;
  font-family: var(--font-serif);
}
.f-quick-cols { display: flex; gap: 60px; }
.f-quick-col { display: flex; flex-direction: column; gap: 14px; }
.f-link {
  font-size: 15px;
  color: var(--purple);
  transition: color .2s;
}
.f-link:hover { color: var(--gold-dark); }
.f-legal { display: flex; flex-direction: column; gap: 14px; }
.f-contact-block { display: inline-block; }
.f-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 56px;
}
.f-item { display: flex; align-items: center; gap: 10px; }
.f-item img { width: 24px; height: 24px; }
.f-item em { font-style: normal; font-size: 15px; color: var(--purple); }
.f-contact-block:hover .f-item em { color: var(--gold-dark); }
.f-copy {
  border-top: 1px solid rgba(90,74,122,.25);
  text-align: center;
  font-size: 14px;
  color: #7C6FA0;
  padding: 18px 20px 22px;
  letter-spacing: 1px;
}

/* ================= 移动端 ================= */
@media (max-width: 900px) {
  .site-nav { padding: 0 14px; height: 44px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 44px; left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 10px 0 16px;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(60,45,90,.15);
  }
  .nav-menu.open { display: flex; }
  .nav-item { padding: 10px 20px; font-size: 15px; width: 100%; text-align: center; }
  .nav-item.active { border: none; background: rgba(184,152,90,.15); }
  .hamburger { display: flex; }
  .lang-switch { gap: 6px; }
  .lang-btn { font-size: 12px; padding: 2px 6px; }
  .site-logo a { max-width: 94%; }
  .site-logo img { max-width: 94%; }
  .hero-banner { max-width: 94%; }
  .tabs { max-width: 94%; margin-top: 14px; }
  .tab-item { font-size: 12px; padding: 11px 4px; letter-spacing: 0; }
  .carousel-zone { max-width: 100%; padding: 0 8px; }
  .carousel { max-width: 100%; }
  .carousel-btn { width: 34px; height: 34px; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .home-intro { max-width: 94%; font-size: 15px; margin: 34px auto; }
  .promise-wrap { max-width: 94%; margin-bottom: 40px; }
  .page-main { padding: 30px 16px 50px; max-width: 100%; }
  .page-title { margin-bottom: 30px; }
  .page-title.plain h1 { font-size: 26px; letter-spacing: 4px; }
  .contact-welcome { font-size: 15px; margin-bottom: 30px; padding: 0 6px; }
  .contact-info-zone { gap: 30px; margin-bottom: 36px; }
  .qr-pair { gap: 22px; }
  .qr-item img { width: 138px; height: 138px; }
  .qr-item .qr-label { font-size: 13px; }
  .contact-detail { font-size: 14.5px; line-height: 2; }
  .map-hint { font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 0 22px 30px; }
  .f-col h4 { margin-bottom: 14px; font-size: 17px; }
  .f-quick-cols { gap: 44px; }
  .f-contact-grid { gap: 12px 30px; }
  .f-copy { font-size: 12px; }
  .modal-card { padding: 24px 22px 20px; }
  .modal-card img { width: 230px; height: 230px; }
  .placeholder-zone p { font-size: 15.5px; }
  .btn-gold { font-size: 16px; padding: 12px 42px; }
}

/* ================= 内容页（關於我們 / FAQ / 條款） ================= */
.sec { max-width: 1080px; margin: 0 auto 56px; }
.sec-h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--gold-dark);
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 6px;
}
.sec-sub { text-align: center; font-size: 14.5px; color: #9A8FB5; letter-spacing: 2px; margin-bottom: 26px; }
.sec-body { font-size: 16px; line-height: 2.15; color: var(--purple-deep); }
.sec-body p { margin-bottom: 13px; }
.ornament { text-align: center; color: var(--gold-line); font-size: 12px; letter-spacing: 12px; margin: 52px 0; user-select: none; }

.poem-card {
  max-width: 780px; margin: 0 auto;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(201,169,106,.5);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 17px; line-height: 2.35; color: var(--purple-deep);
}
.poem-card .en { font-size: 13.5px; color: #9A8FB5; letter-spacing: 1.5px; margin-top: 14px; font-family: var(--font-sans); }

.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vision-card { background: rgba(255,255,255,.55); border-radius: 14px; padding: 28px 26px; border-top: 3px solid var(--gold-line); }
.vision-card h3 { font-family: var(--font-serif); font-size: 19px; color: var(--gold-dark); text-align: center; letter-spacing: 3px; margin-bottom: 14px; }
.vision-card p { font-size: 15.5px; line-height: 2.1; color: var(--purple-deep); }

.bullet-list { list-style: none; }
.bullet-list li { position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 15.5px; line-height: 2.05; color: var(--purple-deep); }
.bullet-list li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-line); }

.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.promise-card { background: rgba(255,255,255,.62); border-radius: 14px; padding: 26px 24px; border-top: 3px solid var(--gold-line); box-shadow: 0 4px 16px rgba(90,74,122,.06); }
.promise-card h3 { font-family: var(--font-serif); font-size: 18px; color: var(--gold-dark); letter-spacing: 1px; margin-bottom: 12px; }
.promise-card p { font-size: 14.5px; line-height: 2.05; color: var(--purple-deep); margin-bottom: 10px; }
.promise-card p:last-child { margin-bottom: 0; }

.dedicate-card {
  max-width: 780px; margin: 30px auto 0;
  background: linear-gradient(135deg, rgba(233,226,245,.65), rgba(248,242,233,.72));
  border-radius: 14px; padding: 30px 30px;
  font-family: var(--font-serif); text-align: center;
  font-size: 16px; line-height: 2.3; color: var(--purple-deep);
}
.dedicate-card .lead-line { font-size: 18px; color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 10px; }

.mentor-card {
  display: flex; gap: 32px; align-items: flex-start;
  background: rgba(255,255,255,.62); border-radius: 16px; padding: 28px;
  margin-bottom: 26px; box-shadow: 0 4px 18px rgba(90,74,122,.07);
}
.mentor-card.rev { flex-direction: row-reverse; }
.mentor-card .mentor-photo { width: 250px; flex-shrink: 0; }
.mentor-card .mentor-photo img { width: 100%; border-radius: 12px; }
.mentor-card h3 { font-family: var(--font-serif); font-size: 19px; color: var(--gold-dark); letter-spacing: 1px; margin-bottom: 12px; line-height: 1.7; }
.mentor-card p, .mentor-card li { font-size: 15px; line-height: 2.05; color: var(--purple-deep); }
.mentor-card .mini-h { font-weight: 700; color: var(--purple); margin: 10px 0 4px; }

.founder-zone { display: flex; gap: 34px; align-items: flex-start; }
.founder-zone .founder-photo { width: 290px; flex-shrink: 0; }
.founder-zone .founder-photo img { width: 100%; border-radius: 14px; box-shadow: 0 6px 20px rgba(90,74,122,.12); }
.founder-zone .sec-body { flex: 1; }
.founder-sign { text-align: right; font-family: var(--font-serif); font-size: 16px; color: var(--gold-dark); letter-spacing: 1px; margin-top: 18px; }

.venue-photo { border-radius: 16px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 6px 22px rgba(90,74,122,.12); }
.venue-photo img { width: 100%; height: auto; display: block; }

.doc-banner { max-width: 1080px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(90,74,122,.12); }
.doc-banner img { width: 100%; height: auto; display: block; }
.doc-meta { text-align: center; font-size: 14px; color: #9A8FB5; letter-spacing: 2px; margin-bottom: 26px; }
.doc-note {
  background: rgba(233,226,245,.5);
  border-left: 4px solid var(--gold-line);
  border-radius: 0 10px 10px 0;
  padding: 13px 18px; margin-bottom: 30px;
  font-size: 14.5px; line-height: 1.95; color: var(--purple-deep);
}
.doc-body h2 {
  font-family: var(--font-serif); font-size: 20px; color: var(--gold-dark);
  letter-spacing: 2px; margin: 36px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(201,169,106,.35);
}
.doc-body h3 { font-size: 16.5px; color: var(--purple); font-weight: 700; margin: 22px 0 10px; }
.doc-body p, .doc-body li { font-size: 15px; line-height: 2.05; color: var(--purple-deep); margin-bottom: 9px; }
.doc-body ul { padding-left: 22px; margin-bottom: 10px; }
.doc-body ul li { margin-bottom: 6px; }

.faq-cat { margin-bottom: 44px; }
.faq-cat-h {
  font-family: var(--font-serif); font-size: 21px; color: var(--gold-dark);
  letter-spacing: 2px; margin-bottom: 18px; padding-left: 14px;
  border-left: 4px solid var(--gold-line);
}
.faq-item { background: rgba(255,255,255,.62); border-radius: 12px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(90,74,122,.05); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 20px; font-size: 15.5px; font-weight: 700; color: var(--purple-deep); line-height: 1.8;
}
.faq-q .faq-arrow { color: var(--gold-dark); font-size: 12px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 15px; line-height: 2.05; color: var(--purple); }
.faq-a-inner ul { list-style: none; margin: 6px 0; }
.faq-a-inner ul li { position: relative; padding-left: 20px; margin-bottom: 5px; }
.faq-a-inner ul li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line); }

/* ---- 内容页移动端 ---- */
@media (max-width: 900px) {
  .sec { margin-bottom: 40px; }
  .sec-h2 { font-size: 20px; letter-spacing: 2px; }
  .sec-sub { font-size: 13px; margin-bottom: 18px; }
  .sec-body { font-size: 14.5px; }
  .ornament { margin: 34px 0; }
  .poem-card { font-size: 14.5px; padding: 24px 18px; }
  .vision-grid, .promise-grid { grid-template-columns: 1fr; }
  .vision-card, .promise-card { padding: 20px 18px; }
  .dedicate-card { font-size: 14px; padding: 22px 18px; }
  .mentor-card, .mentor-card.rev { flex-direction: column; gap: 18px; padding: 20px 16px; }
  .mentor-card .mentor-photo { width: 100%; max-width: 320px; margin: 0 auto; }
  .mentor-card h3 { font-size: 17px; }
  .founder-zone { flex-direction: column; }
  .founder-zone .founder-photo { width: 100%; max-width: 340px; margin: 0 auto; }
  .founder-sign { font-size: 14.5px; }
  .doc-banner { margin-bottom: 26px; border-radius: 12px; }
  .doc-meta { font-size: 13px; }
  .faq-cat-h { font-size: 17px; }
  .faq-q { font-size: 14.5px; padding: 13px 14px; }
  .faq-a-inner { padding: 0 14px 15px; font-size: 14px; }
  .doc-body h2 { font-size: 17.5px; margin: 28px 0 12px; }
  .doc-body h3 { font-size: 15px; }
  .doc-body p, .doc-body li { font-size: 14px; }
}

/* ================= 双语正文切换（简体 lang-cn 块） ================= */
.lang-cn { display: none; }
html[data-lang="cn"] .lang-zh { display: none; }
html[data-lang="cn"] .lang-cn { display: block; }
.lang-en { display: none; }
html[data-lang="en"] .lang-zh,
html[data-lang="en"] .lang-cn { display: none; }
html[data-lang="en"] .lang-en { display: block; }

/* ================= 简体模式字体栈（统一简体字形粗细） ================= */
html[data-lang="cn"] {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
