/* Full width / hide theme chrome on builder pages */
body.hflb-builder-page {
  margin: 0 !important;
  background: var(--hflb-bg);
}

body.hflb-builder-page .site-header,
body.hflb-builder-page header.site-header,
body.hflb-builder-page #masthead,
body.hflb-builder-page .ast-above-header-wrap,
body.hflb-builder-page .ast-primary-header-bar,
body.hflb-builder-page .ast-desktop-header-content,
body.hflb-builder-page .ast-mobile-header-wrap,
body.hflb-builder-page .site-footer,
body.hflb-builder-page footer.site-footer,
body.hflb-builder-page #colophon,
body.hflb-builder-page .ast-footer-wrap,
body.hflb-builder-page .footer-outer,
body.hflb-builder-page .entry-header,
body.hflb-builder-page .page-header,
body.hflb-builder-page .post-navigation,
body.hflb-builder-page .comments-area {
  display: none !important;
}

body.hflb-builder-page #page,
body.hflb-builder-page .site,
body.hflb-builder-page .site-content,
body.hflb-builder-page .content-area,
body.hflb-builder-page .site-main,
body.hflb-builder-page .ast-container,
body.hflb-builder-page .container,
body.hflb-builder-page .entry-content,
body.hflb-builder-page article.page,
body.hflb-builder-page article.post {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.hflb-builder-page .entry-content > .hflb-site:first-child {
  margin-top: 0 !important;
}

body.hflb-builder-page .hflb-site {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 房屋理財家：溫暖安心生活型前台樣式 */
:root {
  --hflb-primary: #5F725C;
  --hflb-accent: #D97724;
  --hflb-line: #06C755;
  --hflb-bg: #F7F2E8;
  --hflb-card: #FFFDF7;
  --hflb-ink: #2F3328;
  --hflb-muted: #6F7568;
  --hflb-border: #E7DDCE;
  --hflb-soft: #EFF3E8;
  --hflb-shadow: 0 14px 36px rgba(64, 58, 44, .08);
  --hflb-radius: 22px;
}

.hflb-site,
.hflb-site * {
  box-sizing: border-box;
}

.hflb-site {
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hflb-ink);
  background: var(--hflb-bg);
  line-height: 1.75;
  letter-spacing: .02em;
  overflow: hidden;
}

.hflb-site a {
  color: inherit;
  text-decoration: none;
}

.hflb-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hflb-header {
  background: rgba(255, 253, 247, .95);
  border-bottom: 1px solid var(--hflb-border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.hflb-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.hflb-brand,
.hflb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hflb-primary);
  font-weight: 800;
  white-space: nowrap;
}

.hflb-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--hflb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #fff;
}

.hflb-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #3E4438;
  font-weight: 700;
}

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

.hflb-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--hflb-border);
  border-radius: 10px;
  background: #fffdf7;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 42;
}

.hflb-mobile-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: var(--hflb-primary);
  transition: transform .2s ease, opacity .2s ease;
}

.hflb-mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hflb-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.hflb-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hflb-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hflb-mini-btn,
.hflb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.hflb-mini-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 13px;
}

.hflb-mini-primary,
.hflb-btn-primary {
  background: var(--hflb-accent);
  color: #fff !important;
}

.hflb-mini-line,
.hflb-btn-line {
  background: var(--hflb-line);
  color: #fff !important;
}

.hflb-btn {
  min-height: 50px;
  padding: 13px 30px;
  border-radius: 11px;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.hflb-btn:hover,
.hflb-mini-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}

.hflb-actions,
.hflb-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hflb-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 35%),
    linear-gradient(110deg, #FCF7EE 0%, #F3E7D4 52%, #EFE7D7 100%);
  padding: 74px 0 64px;
  border-bottom: 1px solid var(--hflb-border);
}

.hflb-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hflb-eyebrow {
  color: var(--hflb-primary);
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.hflb-hero h1,
.hflb-page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.23;
  margin: 0 0 18px;
  color: #334030;
  font-weight: 900;
  letter-spacing: .01em;
}

.hflb-hero p,
.hflb-page-hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: #56604F;
  margin: 0 0 30px;
  max-width: 640px;
}

.hflb-hero-visual {
  min-height: 340px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.3));
  box-shadow: var(--hflb-shadow);
  position: relative;
}

.hflb-family-card {
  height: 380px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,253,247,.85)),
    radial-gradient(circle at 70% 22%, rgba(222, 172, 120, .42), transparent 22%),
    linear-gradient(135deg, #F2E1C8, #FFF8EE 56%, #E9D9C4);
  overflow: hidden;
}

.hflb-family-card:before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 42%;
  border-radius: 80% 0 0 0;
  background: rgba(255, 255, 255, .46);
}

.hflb-sun {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  top: 46px;
  right: 70px;
  background: rgba(225, 157, 83, .35);
}

.hflb-person {
  position: absolute;
  bottom: 72px;
  border-radius: 50% 50% 42% 42%;
  background: #DDD0BE;
  box-shadow: inset 0 -22px 0 rgba(95, 114, 92, .28);
}

.hflb-person:before {
  content: "";
  position: absolute;
  width: 48%;
  height: 32%;
  left: 26%;
  top: -22%;
  border-radius: 999px;
  background: #B17D55;
}

.hflb-person.one {
  width: 98px;
  height: 150px;
  right: 220px;
}

.hflb-person.two {
  width: 86px;
  height: 132px;
  right: 122px;
  background: #EFE5D8;
  box-shadow: inset 0 -20px 0 rgba(217, 119, 36, .2);
}

.hflb-person.child {
  width: 58px;
  height: 90px;
  right: 190px;
  bottom: 54px;
  background: #F7EEE0;
  box-shadow: inset 0 -16px 0 rgba(95, 114, 92, .2);
}

.hflb-home-shape {
  position: absolute;
  left: 58px;
  bottom: 64px;
  width: 124px;
  height: 92px;
  border-radius: 16px;
  background: rgba(255, 253, 247, .9);
  color: var(--hflb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  box-shadow: 0 12px 30px rgba(91, 71, 48, .1);
}

.hflb-section {
  padding: 74px 0;
  background: #fffaf2;
}

.hflb-section:nth-of-type(even) {
  background: var(--hflb-bg);
}

.hflb-section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  color: #334030;
  line-height: 1.32;
  margin: 0 0 34px;
  font-weight: 900;
}

.hflb-grid {
  display: grid;
  gap: 22px;
}

.hflb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hflb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hflb-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.hflb-card {
  background: var(--hflb-card);
  border: 1px solid var(--hflb-border);
  border-radius: var(--hflb-radius);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(66, 57, 38, .055);
}

.hflb-icon-card,
.hflb-service-card,
.hflb-steps .hflb-card {
  text-align: center;
}

.hflb-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: #F5EDDE;
  color: var(--hflb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hflb-card h3 {
  color: #334030;
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 900;
}

.hflb-card p,
.hflb-note {
  color: var(--hflb-muted);
  margin: 0;
}

.hflb-soft-panel {
  background: linear-gradient(180deg, #EFF3E7, #F9F6ED);
  border-radius: 28px;
  padding: 42px;
  border: 1px solid var(--hflb-border);
}

.hflb-steps .hflb-card span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--hflb-primary);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.hflb-split-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.hflb-promise-card,
.hflb-case-highlight {
  border-radius: 24px;
  border: 1px solid var(--hflb-border);
  box-shadow: var(--hflb-shadow);
  padding: 34px;
  background: #FFFDF7;
}

.hflb-promise-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.96)),
    radial-gradient(circle at 85% 50%, rgba(217, 119, 36, .16), transparent 36%),
    #F7E7D4;
}

.hflb-promise-card h2,
.hflb-case-highlight h2 {
  text-align: left;
  margin-bottom: 18px;
}

.hflb-promise-card ul,
.hflb-check-list,
.hflb-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hflb-promise-card li,
.hflb-check-list li,
.hflb-contact-list li {
  padding: 8px 0;
  color: #4D5747;
}

.hflb-promise-card li:before,
.hflb-check-list li:before {
  content: "✓";
  color: var(--hflb-accent);
  font-weight: 900;
  margin-right: 8px;
}

.hflb-case-box {
  background: #FFF9EF;
  border: 1px solid var(--hflb-border);
  border-radius: 18px;
  padding: 24px;
}

.hflb-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.hflb-metrics span {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--hflb-border);
  padding: 14px;
}

.hflb-metrics b {
  display: block;
  color: var(--hflb-accent);
  font-size: 20px;
}

.hflb-metrics small {
  color: var(--hflb-muted);
}

.hflb-form-band {
  background: linear-gradient(180deg, #FFF6E9, #F6ECDB) !important;
}

.hflb-lead-form {
  background: rgba(255, 253, 247, .96);
  border: 1px solid var(--hflb-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--hflb-shadow);
}

.hflb-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hflb-lead-form label {
  color: #3F473C;
  font-size: 14px;
  font-weight: 800;
}

.hflb-lead-form input,
.hflb-lead-form select,
.hflb-lead-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--hflb-border) !important;
  background: #fff !important;
  color: var(--hflb-ink) !important;
  border-radius: 10px !important;
  min-height: 46px;
  padding: 12px 13px !important;
  font-size: 15px;
  box-shadow: none !important;
}

.hflb-form-wide {
  grid-column: 1 / -1;
}

.hflb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hflb-muted) !important;
}

.hflb-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.hflb-form-actions {
  justify-content: center;
  margin-top: 20px;
}

.hflb-alert-success {
  background: #E7F7ED;
  border: 1px solid rgba(6,199,85,.35);
  color: #23723D;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 800;
}

.hflb-page-hero {
  padding: 76px 0;
  background: linear-gradient(130deg, #F7ECDB, #FFFDF7 58%, #EEF3E7);
  border-bottom: 1px solid var(--hflb-border);
  text-align: center;
}

.hflb-page-hero p {
  margin-left: auto;
  margin-right: auto;
}

.hflb-soft-bg {
  background: #EFF3E7 !important;
}

.hflb-cta {
  text-align: center;
  background: linear-gradient(120deg, var(--hflb-primary), #7F8D75) !important;
  color: #fff;
}

.hflb-cta h2 {
  color: #fff;
}

.hflb-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #F4E8D5;
  color: var(--hflb-accent);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 12px;
}

.hflb-post-card h3 a:hover,
.hflb-text-link:hover {
  color: var(--hflb-accent);
}

.hflb-text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--hflb-primary);
  font-weight: 900;
}

.hflb-case-card small {
  display: block;
  color: var(--hflb-muted);
  margin-top: 12px;
}

.hflb-faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.hflb-faq-list details {
  background: var(--hflb-card);
  border: 1px solid var(--hflb-border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 10px 24px rgba(66,57,38,.045);
}

.hflb-faq-list summary {
  cursor: pointer;
  color: #334030;
  font-weight: 900;
}

.hflb-faq-list p {
  margin: 12px 0 0;
  color: var(--hflb-muted);
}

.hflb-category-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}

.hflb-category-row span {
  border-radius: 999px;
  border: 1px solid var(--hflb-border);
  background: #FFFDF7;
  color: var(--hflb-primary);
  padding: 8px 14px;
  font-weight: 800;
}

.hflb-footer {
  background: #E6EFE0;
  border-top: 1px solid #D4DFC9;
  padding: 42px 0 34px;
  color: #3D4738;
}

.hflb-footer-main {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.hflb-footer p {
  margin: 4px 0 0;
  color: #5B6654;
}

.hflb-footer-links {
  margin: 28px 0 18px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(95,114,92,.22);
  padding-top: 20px;
  font-weight: 800;
}

.hflb-legal,
.hflb-copyright {
  text-align: center;
  font-size: 13px;
}

.hflb-floating-line {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: var(--hflb-line);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(6, 199, 85, .35);
  z-index: 9999;
}

.hflb-mobile-sticky {
  display: none;
}

.hflb-contact-card .hflb-form-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1080px) {
  .hflb-header-inner {
    position: relative;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hflb-mobile-toggle {
    display: inline-flex;
    order: 3;
  }

  .hflb-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px;
    background: #fffdf7;
    border: 1px solid var(--hflb-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 30px rgba(47, 51, 40, .12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 40;
  }

  .hflb-nav.is-open {
    display: flex;
  }

  .hflb-nav a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hflb-border);
  }

  .hflb-nav a:last-child {
    border-bottom: 0;
  }

  .hflb-grid-4,
  .hflb-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hflb-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hflb-hero-grid,
  .hflb-split-grid {
    grid-template-columns: 1fr;
  }

  .hflb-hero {
    padding: 54px 0 44px;
  }

  .hflb-grid-3,
  .hflb-form-grid {
    grid-template-columns: 1fr;
  }

  .hflb-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hflb-container {
    width: min(100% - 28px, 1160px);
  }

  .hflb-header-actions {
    display: none;
  }

  .hflb-brand {
    font-size: 15px;
  }

  .hflb-mobile-toggle {
    width: 42px;
    height: 42px;
    order: 2;
  }

  .hflb-nav {
    top: 100%;
  }

  .hflb-hero-copy {
    text-align: left;
  }

  .hflb-hero-visual {
    min-height: 250px;
  }

  .hflb-family-card {
    height: 275px;
  }

  .hflb-person.one { right: 150px; }
  .hflb-person.two { right: 70px; }
  .hflb-person.child { right: 130px; }
  .hflb-home-shape { left: 22px; width: 90px; height: 72px; font-size: 52px; }

  .hflb-section {
    padding: 52px 0;
  }

  .hflb-grid-4,
  .hflb-grid-5 {
    grid-template-columns: 1fr;
  }

  .hflb-card,
  .hflb-lead-form,
  .hflb-soft-panel,
  .hflb-promise-card,
  .hflb-case-highlight {
    padding: 22px;
    border-radius: 18px;
  }

  .hflb-actions,
  .hflb-form-actions {
    align-items: stretch;
  }

  .hflb-btn {
    width: 100%;
  }

  .hflb-floating-line {
    right: 16px;
    bottom: 78px;
    width: 56px;
    height: 56px;
    font-size: 13px;
  }

  .hflb-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 253, 247, .96);
    border-top: 1px solid var(--hflb-border);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .08);
  }

  .hflb-mobile-sticky .hflb-btn {
    min-height: 44px;
    padding: 10px;
    font-size: 14px;
  }

  .hflb-footer-main {
    grid-template-columns: 1fr;
  }
}

/* v1.0.2 carousel / social / legal / QR updates */
.hflb-ad-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(430px, 46vw, 690px);
  overflow: hidden;
  background: linear-gradient(115deg, #f7efe1 0%, #edf4e7 54%, #d8e7cf 100%);
}
.hflb-ad-track { position: relative; width: 100%; height: clamp(430px, 46vw, 690px); }
.hflb-ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .65s ease, visibility .65s ease;
}
.hflb-ad-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hflb-ad-slide-image img { width:100%; height:100%; object-fit:cover; display:block; }
.hflb-ad-slide-copy { background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.8), transparent 32%), linear-gradient(115deg, #f7efe1 0%, #edf4e7 54%, #d8e7cf 100%); }
.hflb-ad-slide-case { background: linear-gradient(115deg, rgba(47,64,48,.92), rgba(95,114,92,.9)), radial-gradient(circle at 78% 30%, rgba(217,119,36,.42), transparent 28%); color:#fff; }
.hflb-ad-inner { width:min(1160px, calc(100% - 40px)); margin:0 auto; padding:60px 0; }
.hflb-ad-inner h1, .hflb-ad-inner h2 { font-size: clamp(34px, 5.4vw, 64px); line-height:1.15; max-width: 760px; margin:0 0 18px; color:inherit; }
.hflb-ad-inner p { max-width: 720px; font-size: clamp(17px, 2vw, 22px); color: inherit; opacity:.92; }
.hflb-btn-ghost { background: rgba(255,255,255,.72); color:#344232 !important; }
.hflb-ad-dots { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); display:flex; gap:10px; z-index:4; }
.hflb-ad-dots span { width:10px; height:10px; border-radius:99px; background:rgba(255,255,255,.65); box-shadow:0 2px 8px rgba(0,0,0,.18); cursor:pointer; transition:all .25s ease; }
.hflb-ad-dots span.is-active { width:26px; background:#ffffff; }
.hflb-stats-band { position: relative; margin-top:-52px; z-index:5; }
.hflb-stats-grid { background: rgba(255,255,255,.94); border: 4px solid rgba(210,30,30,.78); box-shadow: 0 18px 40px rgba(30,40,50,.16); display:grid; grid-template-columns:repeat(4,1fr); gap:0; transform:skewX(-8deg); }
.hflb-stats-grid > div { padding:22px 28px; text-align:center; border-right:1px solid rgba(95,114,92,.18); transform:skewX(8deg); }
.hflb-stats-grid > div:last-child { border-right:0; }
.hflb-stats-grid b { display:block; color:#36a141; font-size:clamp(26px,3vw,44px); line-height:1; font-weight:900; }
.hflb-stats-grid span { display:block; color:#2f3d2d; font-size:14px; font-weight:800; margin-top:8px; }
.hflb-home-cases { padding-top:90px; background:#fffdf8; }
.hflb-section-subtitle { text-align:center; max-width:780px; margin:0 auto 30px; }
.hflb-case-teasers .hflb-case-card ul { padding-left: 1.2em; color: var(--hflb-primary); font-weight:700; }
.hflb-social-btn { width:38px; height:38px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; color:#fff !important; font-weight:900; font-size:18px; }
.hflb-phone-btn { background:#79b9df; }
.hflb-fb-btn { background:#4267B2; font-family:Arial,sans-serif; }
.hflb-round { width:54px; height:54px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff !important; font-weight:900; box-shadow:0 10px 22px rgba(0,0,0,.12); }
.hflb-round-line { background:#00c300; font-size:12px; }
.hflb-round-phone { background:#82bee4; font-size:24px; }
.hflb-round-fb { background:#4267B2; font-size:26px; font-family:Arial,sans-serif; }
.hflb-footer-socials { display:flex; justify-content:center; gap:13px; margin:22px 0 8px; }
.hflb-footer-main-v2 { grid-template-columns: 1.6fr .9fr 1fr .8fr 1fr .9fr; align-items:center; }
.hflb-footer-qr { text-align:center; }
.hflb-footer-qr img { width:94px; height:94px; object-fit:cover; border-radius:10px; background:#fff; padding:5px; box-shadow:0 8px 20px rgba(0,0,0,.08); }
.hflb-footer-qr small { display:block; margin-top:6px; color:#4b5b48; font-weight:700; }
.hflb-legal-links { flex-wrap:wrap; font-weight:800; color:#2f3d2d; }
.hflb-legal-page { font-size:18px; max-width:900px; margin:0 auto; }
.hflb-legal-page p { font-size:17px; color:#4d5848; }
.hflb-qr-card { background:#fffdf7; border:1px solid var(--hflb-border); border-radius:22px; padding:32px; box-shadow:var(--hflb-shadow); display:grid; gap:14px; justify-items:start; }
.hflb-qr-card img { width:min(220px, 100%); border-radius:16px; box-shadow:0 10px 26px rgba(0,0,0,.1); }
.hflb-faq-filter { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:0 0 26px; }
.hflb-faq-filter button { border:1px solid var(--hflb-border); background:#fffdf8; color:#3a4436; border-radius:999px; padding:10px 16px; font-weight:800; cursor:pointer; }
.hflb-faq-filter button.is-active { background:var(--hflb-primary); color:#fff; border-color:var(--hflb-primary); }
.hflb-faq-list details[hidden] { display:none !important; }
.hflb-case-card small { color:#74806e; display:block; margin-top:10px; }
@media (max-width: 980px) {
  .hflb-ad-carousel, .hflb-ad-track { min-height:520px; height:520px; }
  .hflb-ad-slide-image img { object-position:center; }
  .hflb-stats-grid { grid-template-columns:repeat(2,1fr); transform:none; }
  .hflb-stats-grid > div { transform:none; border-bottom:1px solid rgba(95,114,92,.18); }
  .hflb-footer-main-v2 { grid-template-columns:1fr 1fr; }
}
@media (max-width: 767px) {
  .hflb-ad-carousel, .hflb-ad-track { min-height:460px; height:460px; }
  .hflb-ad-inner { width:calc(100% - 32px); padding:42px 0; }
  .hflb-ad-inner h1, .hflb-ad-inner h2 { font-size:32px; }
  .hflb-ad-inner p { font-size:16px; }
  .hflb-stats-band { margin-top:0; }
  .hflb-stats-grid { width:100%; max-width:100%; grid-template-columns:1fr 1fr; border-width:0; box-shadow:none; }
  .hflb-stats-grid > div { padding:18px 12px; }
  .hflb-home-cases { padding-top:56px; }
  .hflb-header-actions .hflb-social-btn { display:none; }
  .hflb-footer-main-v2 { grid-template-columns:1fr; text-align:center; }
  .hflb-footer-brand { justify-content:center; }
  .hflb-qr-card { justify-items:center; text-align:center; }
}

.hflb-floating-socials { position:fixed; right:22px; bottom:22px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.hflb-floating-socials a { width:56px; height:56px; border-radius:999px; color:#fff !important; display:flex; align-items:center; justify-content:center; font-weight:900; text-decoration:none; box-shadow:0 10px 26px rgba(0,0,0,.18); }
.hflb-floating-phone { background:#82bee4; font-size:24px; }
.hflb-floating-fb { background:#4267B2; font-size:26px; font-family:Arial,sans-serif; }
.hflb-floating-socials .hflb-floating-line { position:static; width:56px; height:56px; right:auto; bottom:auto; font-size:12px; }
@media (max-width:767px) { .hflb-floating-socials { display:none; } .hflb-mobile-sticky { grid-template-columns: 1fr 1fr 1fr; } }


/* 成功案例單篇共用版型 */
.hflb-case-single-main { background: var(--hflb-bg); }
.hflb-case-single-hero {
  padding: 78px 0 64px;
  background: linear-gradient(135deg,#fbf5e9 0%,#f1eadc 52%,#e8efe3 100%);
  border-bottom: 1px solid var(--hflb-border);
}
.hflb-case-back { display:inline-flex; margin-bottom:24px; font-weight:800; color:var(--hflb-primary)!important; }
.hflb-case-single-hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
.hflb-case-single-hero h1 { margin:16px 0 18px; font-size:clamp(34px,5vw,56px); line-height:1.2; color:#334030; }
.hflb-case-single-hero p { margin:0; max-width:720px; color:var(--hflb-muted); font-size:18px; }
.hflb-case-featured,.hflb-case-visual-placeholder { width:100%; min-height:300px; border-radius:28px; box-shadow:var(--hflb-shadow); }
.hflb-case-featured { display:block; object-fit:cover; }
.hflb-case-visual-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:linear-gradient(145deg,#fffdf7,#eadbc3); color:var(--hflb-primary); }
.hflb-case-visual-placeholder span { width:86px;height:86px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#fff;font-size:40px; }
.hflb-case-visual-placeholder strong { font-size:24px; }
.hflb-case-single-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:34px; align-items:start; }
.hflb-case-content-card { background:#fffdf8; border:1px solid var(--hflb-border); border-radius:24px; padding:clamp(28px,5vw,58px); box-shadow:var(--hflb-shadow); }
.hflb-case-content-card h2,.hflb-case-content-card h3 { position:relative; margin:34px 0 12px; padding-left:18px; color:#30392d; }
.hflb-case-content-card h2:before,.hflb-case-content-card h3:before { content:""; position:absolute; left:0; top:.25em; bottom:.25em; width:5px; border-radius:10px; background:var(--hflb-accent); }
.hflb-case-content-card h3 { font-size:28px; }
.hflb-case-content-card p,.hflb-case-content-card li { font-size:18px; color:#646b61; line-height:1.9; }
.hflb-case-content-card ul { margin:10px 0 24px; padding:0; list-style:none; }
.hflb-case-content-card li { position:relative; padding-left:28px; margin:8px 0; }
.hflb-case-content-card li:before { content:"✓"; position:absolute; left:0; color:var(--hflb-accent); font-weight:900; }
.hflb-case-content-card small { display:block; margin-top:30px; padding:16px 18px; border-radius:12px; background:#f2f4ec; color:#697064; }
.hflb-case-sidebar { position:sticky; top:96px; display:grid; gap:22px; }
.hflb-case-cta { text-align:center; }
.hflb-case-cta h2 { font-size:26px; margin-top:0; }
.hflb-case-cta .hflb-btn { width:100%; margin-top:10px; }
.hflb-case-cta img { width:150px; height:150px; object-fit:cover; margin:22px auto 8px; display:block; border-radius:12px; }
.hflb-case-cta small { color:var(--hflb-muted); }
.hflb-case-note strong { color:var(--hflb-accent); font-size:20px; }
.hflb-case-bottom-cta { padding:50px 0; background:linear-gradient(90deg,#eaf0e4,#fbf3e5); }
.hflb-case-bottom-cta .hflb-container { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.hflb-case-bottom-cta h2 { margin:0 0 6px; }
.hflb-case-bottom-cta p { margin:0; color:var(--hflb-muted); }
@media (max-width: 900px) {
  .hflb-case-single-hero-grid,.hflb-case-single-layout { grid-template-columns:1fr; }
  .hflb-case-sidebar { position:static; }
  .hflb-case-bottom-cta .hflb-container { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 767px) {
  .hflb-case-single-hero { padding:52px 0 42px; }
  .hflb-case-single-hero-grid { gap:26px; }
  .hflb-case-featured,.hflb-case-visual-placeholder { min-height:220px; }
  .hflb-case-content-card { padding:24px 20px; border-radius:18px; }
  .hflb-case-content-card h3 { font-size:23px; }
  .hflb-case-content-card p,.hflb-case-content-card li { font-size:16px; }
}


/* v1.0.8 pagination, address and mobile phone CTA */
.hflb-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:34px;
}
.hflb-pagination .page-numbers,
.hflb-pagination button {
  min-width:42px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--hflb-border);
  border-radius:10px;
  background:#fffdf8;
  color:#344232;
  font-weight:800;
  padding:8px 13px;
  cursor:pointer;
  text-decoration:none;
}
.hflb-pagination .page-numbers.current,
.hflb-pagination button.is-active {
  background:var(--hflb-primary);
  border-color:var(--hflb-primary);
  color:#fff;
}
.hflb-pagination .page-numbers:hover,
.hflb-pagination button:hover {
  border-color:var(--hflb-primary);
}
@media (max-width:640px) {
  .hflb-mobile-sticky .hflb-track-phone {
    background:#FFFFFF !important;
    color:#556B57 !important;
    border:2px solid #556B57 !important;
    box-shadow:none !important;
  }
  .hflb-mobile-sticky .hflb-track-phone:hover,
  .hflb-mobile-sticky .hflb-track-phone:focus {
    background:#EEF5FA !important;
    color:#556B57 !important;
  }
}


/* v1.0.11 robust mobile menu icon */
.hflb-mobile-toggle {
  color: var(--hflb-primary) !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
}
.hflb-mobile-toggle .hflb-mobile-toggle-icon {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  color: currentColor !important;
  border-radius: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon {
  font-size: 0 !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon::before {
  content: "×";
  font-size: 32px;
  line-height: 1;
}
@media (max-width: 1080px) {
  .hflb-mobile-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* v1.0.12 minimal three-line hamburger: no box, border, or shadow */
.hflb-mobile-toggle {
  width: 40px !important;
  height: 40px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.hflb-mobile-toggle:hover,
.hflb-mobile-toggle:focus,
.hflb-mobile-toggle:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.hflb-mobile-toggle .hflb-mobile-toggle-icon {
  width: 25px !important;
  height: 19px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}
.hflb-mobile-toggle .hflb-mobile-toggle-icon i {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  margin: 0 !important;
  border-radius: 3px !important;
  background: var(--hflb-primary) !important;
  opacity: 1 !important;
  transform: none !important;
  transition: transform .2s ease, opacity .2s ease !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon {
  font-size: inherit !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon::before {
  content: none !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon i:nth-child(1) {
  transform: translateY(8px) rotate(45deg) !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon i:nth-child(2) {
  opacity: 0 !important;
}
.hflb-mobile-toggle.is-open .hflb-mobile-toggle-icon i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg) !important;
}

/* v1.0.14 mobile phone CTA: white background with deep navy border */

/* v1.1.0 Enterprise — safe post cards and article layout */
.hflb-post-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.hflb-post-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2ea; }
.hflb-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hflb-post-card:hover .hflb-post-card-image img { transform: scale(1.04); }
.hflb-post-card-placeholder { display:flex; align-items:center; justify-content:center; color:var(--hflb-primary); font-weight:700; background:linear-gradient(135deg,#f7f1e7,#e7efe3); }
.hflb-post-card-body { padding: 24px; display:flex; flex-direction:column; flex:1; }
.hflb-post-card-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.hflb-post-card-meta time { color:#7b8179; font-size:13px; }
.hflb-post-card h3 { margin:0 0 12px; }
.hflb-post-card p { flex:1; }
.hflb-post-card .hflb-text-link { margin-top:8px; }



/* v2.0 共用內容版型：最新文章沿用成功案例視覺語言 */
.hflb-enterprise-post-page .entry-header,
.hflb-enterprise-post-page .post-title,
.hflb-enterprise-post-page .entry-title { display:none!important; }
.hflb-enterprise-post-page .entry-content,
.hflb-enterprise-post-page main,
.hflb-enterprise-post-page .site-main { max-width:none!important; padding:0!important; }
.hflb-enterprise-article { width:100%; margin:0; color:#344237; background:var(--hflb-bg); }
.hflb-enterprise-breadcrumb { width:min(100% - 40px,1180px); margin:22px auto; display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#6d776e; font-size:14px; }
.hflb-enterprise-breadcrumb a { color:var(--hflb-primary); text-decoration:none; }
.hflb-enterprise-breadcrumb [aria-current="page"] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:420px; }
.hflb-article-single-hero { padding:64px max(20px,calc((100% - 1180px)/2)); }
.hflb-article-single-hero .hflb-case-single-hero-grid { width:100%; }
.hflb-article-single-hero .hflb-enterprise-meta { justify-content:flex-start; margin-top:18px; }
.hflb-article-featured { aspect-ratio:4/3; min-height:0; }
.hflb-article-placeholder { aspect-ratio:4/3; min-height:0; }
.hflb-article-single-section { padding:72px max(20px,calc((100% - 1180px)/2)); }
.hflb-article-single-section .hflb-case-single-layout { width:100%; }
.hflb-article-content-card > *:first-child { margin-top:0; }
.hflb-article-content-card h2 { font-size:32px; }
.hflb-article-content-card h3 { font-size:26px; }
.hflb-article-content-card img { max-width:100%; height:auto; border-radius:16px; }
.hflb-article-content-card blockquote { margin:28px 0; padding:20px 24px; border-left:5px solid var(--hflb-accent); background:#f2f4ec; border-radius:0 14px 14px 0; }
.hflb-article-content-card table { width:100%; border-collapse:collapse; margin:24px 0; }
.hflb-article-content-card th,.hflb-article-content-card td { padding:14px; border:1px solid var(--hflb-border); text-align:left; }
.hflb-article-content-card th { background:#eef3eb; }
.hflb-enterprise-meta { display:flex; flex-wrap:wrap; gap:8px 20px; color:#6d776e; font-size:14px; }
.hflb-enterprise-post-nav { margin:46px 0 0; padding-top:28px; border-top:1px solid #dde4da; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hflb-enterprise-post-nav-link { display:flex; flex-direction:column; gap:6px; padding:18px; border:1px solid #dde4da; border-radius:16px; text-decoration:none!important; color:#344237!important; background:#fff; }
.hflb-enterprise-post-nav-link.next { text-align:right; }
.hflb-enterprise-post-nav-link small { color:#7a837a; }
.hflb-enterprise-post-nav-link:hover { border-color:var(--hflb-primary); }
.hflb-article-bottom-cta { padding:50px max(20px,calc((100% - 1180px)/2)); }
.hflb-article-bottom-cta > div { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.hflb-article-bottom-cta h2 { margin:0 0 6px; }
.hflb-article-bottom-cta p { margin:0; color:var(--hflb-muted); }
@media (max-width:900px) {
  .hflb-article-single-hero .hflb-case-single-hero-grid,
  .hflb-article-single-section .hflb-case-single-layout { grid-template-columns:1fr; }
  .hflb-article-bottom-cta > div { flex-direction:column; align-items:flex-start; }
}
@media (max-width:767px) {
  .hflb-enterprise-breadcrumb { width:min(100% - 24px,1180px); margin:16px auto; }
  .hflb-enterprise-breadcrumb [aria-current="page"] { max-width:180px; }
  .hflb-article-single-hero { padding:46px 20px 38px; }
  .hflb-article-single-hero h1 { font-size:34px; }
  .hflb-article-single-section { padding:42px 12px; }
  .hflb-article-content-card { padding:24px 20px; }
  .hflb-article-content-card h2 { font-size:26px; }
  .hflb-article-content-card h3 { font-size:22px; }
  .hflb-enterprise-post-nav { grid-template-columns:1fr; }
  .hflb-article-bottom-cta { padding:38px 20px; }
  .hflb-article-bottom-cta .hflb-actions { width:100%; display:grid; }
}

/* v2.0.1 full article page template */
.hflb-page-article-single{min-height:100vh;background:#f7f2e8}
.hflb-article-full-page{background:#f7f2e8}
.hflb-article-breadcrumb-band{padding:22px 0 0;background:#f7f2e8}
.hflb-article-breadcrumb-band .hflb-enterprise-breadcrumb{margin:0;max-width:none}
.hflb-page-article-single .hflb-article-single-hero{padding-top:30px}
.hflb-page-article-single .hflb-article-content-card{font-size:18px;line-height:1.9}
.hflb-page-article-single .hflb-article-content-card>h2{margin-top:1.8em;padding-bottom:.35em;border-bottom:2px solid rgba(95,114,92,.18)}
.hflb-page-article-single .hflb-article-content-card>h3{margin-top:1.5em;color:#4f624d}
.hflb-page-article-single .hflb-article-content-card img{max-width:100%;height:auto;border-radius:16px}
.hflb-page-article-single .hflb-article-content-card blockquote{margin:28px 0;padding:20px 24px;border-left:5px solid #5f725c;background:#f4f7f1;border-radius:0 12px 12px 0}
.hflb-page-article-single .hflb-article-content-card table{width:100%;border-collapse:collapse;margin:28px 0;background:#fff}
.hflb-page-article-single .hflb-article-content-card th,.hflb-page-article-single .hflb-article-content-card td{padding:14px;border:1px solid #e1ddd4;text-align:left}
.hflb-page-article-single .hflb-article-content-card th{background:#eef3eb;color:#40513f}
@media(max-width:767px){
  .hflb-article-breadcrumb-band{padding-top:14px}
  .hflb-page-article-single .hflb-article-single-hero{padding-top:18px}
  .hflb-page-article-single .hflb-article-content-card{font-size:16px;line-height:1.85}
}

/* v2.1 Footer：後台可編輯的完整聯絡與選單區 */
.hflb-footer-main-v21{display:grid;grid-template-columns:1.35fr 1fr .9fr 1.2fr auto;gap:28px;align-items:start}
.hflb-footer-main-v21 a{color:inherit;text-decoration:none}
.hflb-footer-main-v21 a:hover{text-decoration:underline}
.hflb-footer-info strong{display:block;margin-bottom:10px}
.hflb-footer-info p{margin:0 0 7px}
.hflb-footer-text-link{display:inline-block;margin-top:4px;font-weight:700;color:var(--hflb-primary)!important}
.hflb-footer-menu{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px 24px;padding:24px 0 18px;border-top:1px solid rgba(95,114,92,.18);border-bottom:1px solid rgba(95,114,92,.18);margin-top:26px}
.hflb-footer-menu a{color:#354433;text-decoration:none;font-weight:700}
.hflb-footer-menu a:hover{color:var(--hflb-accent)}
.hflb-footer-socials-v21{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:22px 0}
.hflb-footer-contact{min-height:46px;display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border:1px solid rgba(95,114,92,.35);border-radius:999px;background:#fff;color:#354433;text-decoration:none;font-weight:700}
.hflb-footer-contact:hover{transform:translateY(-2px);border-color:var(--hflb-primary)}
.hflb-footer-contact-icon{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 5px;border-radius:50%;font-size:12px;font-weight:800}
.hflb-footer-line .hflb-footer-contact-icon{background:#06c755;color:#fff}
.hflb-footer-facebook .hflb-footer-contact-icon{background:#1877f2;color:#fff;font-size:20px}
.hflb-footer-phone .hflb-footer-contact-icon,.hflb-footer-map .hflb-footer-contact-icon{background:var(--hflb-primary);color:#fff}
@media(max-width:1024px){.hflb-footer-main-v21{grid-template-columns:1fr 1fr}.hflb-footer-main-v21 .hflb-footer-qr{grid-column:span 2}}
@media(max-width:640px){.hflb-footer-main-v21{grid-template-columns:1fr;text-align:center}.hflb-footer-main-v21 .hflb-footer-qr{grid-column:auto}.hflb-footer-brand{justify-content:center}.hflb-footer-menu{gap:10px 16px}.hflb-footer-contact{width:100%;justify-content:center;max-width:280px}}
