/* ===== 基本設定 ===== */
:root {
  --navy: #1e2956;
  --navy-dark: #141c3d;
  --gold: #b48a5a;
  --gold-light: #d9b98c;
  --bg: #f7f4ef;
  --bg-soft: #f1ede6;
  --line: #e2dcd2;
  --text: #2e3442;
  --text-muted: #6b6f78;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', sans-serif;
  --header-h: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 手機版避免動畫中的元素撐出水平捲動 */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* AOS 左右滑入時避免出現水平捲軸；clip 不會影響 sticky 頁首 */
  overflow-x: clip;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn .arrow {
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background: #2b3870;
}

.btn-outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-outline-light:hover {
  color: var(--navy);
  background: #fff;
}

/* ===== 區塊標題 ===== */
.section-label {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ===== 頁首 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  color: var(--gold-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-text strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo-text small {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

.main-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 44px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* 服務項目下拉選單：桌機滑入展開，手機版直接列在選單內 */
.main-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  width: 15px;
  height: 15px;
  transition: transform 0.3s;
}

.main-nav .nav-item:hover .nav-caret,
.main-nav .nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  padding: 10px 0;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.main-nav .nav-item:hover .nav-dropdown,
.main-nav .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.main-nav .nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
}

.main-nav .nav-dropdown a::after {
  display: none;
}

.main-nav .nav-dropdown a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.header-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 56px;
}

.hotline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.hotline-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
}

.hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hotline-text small {
  font-size: 12px;
  color: var(--gold-light);
}

.hotline-text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
}

/* ===== 首頁：主視覺 ===== */
.home .hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 700px;
  padding: 64px 0 96px;
  background:
    linear-gradient(90deg, rgba(247, 240, 230, 0.35) 0%, rgba(247, 240, 230, 0.1) 45%, rgba(0, 0, 0, 0) 70%),
    var(--hero-image, none) center / cover no-repeat;
  overflow: hidden;
}

.home .hero-inner {
  padding-left: 96px;
}

.home .hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.home .hero-lead {
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.26em;
  color: #3b3d44;
}

.home .hero-title {
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 68px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.home .hero-desc {
  margin-bottom: 44px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.24em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.home .scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  transform: translateX(-50%);
}

.home .scroll-mouse {
  position: relative;
  width: 24px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 12px;
}

.home .scroll-mouse::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: #fff;
  border-radius: 1px;
  animation: scrollWheel 1.8s infinite;
}

.home .scroll-text {
  font-size: 11px;
  letter-spacing: 0.2em;
}

.home .scroll-chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===== 首頁：主視覺輪播（一次顯示一張，切換時淡入並重播進場動畫） ===== */
.home .hero-carousel {
  position: relative;
}

.home .hero[hidden] {
  display: none;
}

.home .hero-carousel .hero.is-active {
  animation: fadeOnly 0.8s ease-out both;
}

.home .hero-dots {
  position: absolute;
  right: 48px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.home .hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  cursor: pointer;
  transition: width 0.3s, background-color 0.3s;
}

.home .hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.home .hero-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== 首頁：服務特色 ===== */
.home .features {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.home .features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home .feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 16px;
}

.home .feature-item + .feature-item {
  border-left: 1px solid var(--line);
}

.home .feature-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: #a37b4f;
  background: #fff;
  border: 1px solid #e6dccd;
  border-radius: 50%;
}

.home .feature-icon svg {
  width: 32px;
  height: 32px;
}

.home .feature-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #2b2f3a;
}

.home .feature-item p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6f6f72;
}

/* ===== 首頁：我們的承諾 ===== */
.home .intro {
  padding: 72px 0 96px;
}

.home .intro-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 52px;
}

.home .intro-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(30, 41, 86, 0.08);
}

.home .intro-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(90deg, #000 75%, rgba(0, 0, 0, 0.55) 100%);
}

.home .intro-content {
  padding-left: 46px;
  border-left: 1px solid var(--line);
}

.home .intro-content .section-title {
  margin-bottom: 28px;
}

.home .intro-text {
  margin-bottom: 40px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.28em;
  color: #55585f;
}

/* ===== 頁尾 ===== */
.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer-brand .logo {
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-contact li + li {
  margin-top: 12px;
}

.footer-contact span {
  display: block;
  font-size: 13px;
  color: var(--gold-light);
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-content: start;
  gap: 12px 32px;
  font-size: 15px;
}

.footer-bottom {
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 花禮問卷 ===== */
[hidden] {
  display: none !important;
}

.survey {
  background: var(--bg);
}

.survey .survey-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.survey .survey-preview-banner {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #6b4a14;
  background: #f6dfa8;
}

.survey .survey-header {
  color: #fff;
  background: var(--navy);
}

.survey .survey-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.survey .logo-icon {
  width: 34px;
  height: 34px;
}

.survey .logo-text strong {
  font-size: 20px;
}

.survey .survey-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.survey .survey-call svg {
  width: 20px;
  height: 20px;
}

.survey .survey-main {
  padding: 32px 0 48px;
}

.survey .survey-hero {
  margin-bottom: 24px;
  padding: 32px 28px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('../images/home-hero.webp') center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.survey .survey-deceased {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.survey .survey-age {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.survey .survey-detail {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.survey .survey-schedule {
  display: inline-grid;
  gap: 4px;
  margin: 16px 0 0;
  padding: 14px 28px;
  font-size: 16px;
  text-align: left;
  list-style: none;
  background: var(--bg);
  border-radius: 8px;
}

.survey .survey-schedule span {
  display: inline-block;
  min-width: 88px;
  margin-right: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.survey .survey-intro {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: #55585f;
  white-space: pre-line;
}

.survey .survey-closing {
  margin-top: 16px;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  border-top: 1px dashed var(--line);
}

.survey .survey-info-block {
  margin-bottom: 16px;
  padding: 22px 24px;
  font-size: 15px;
  line-height: 1.9;
  background: #fbf7f0;
  border: 1px solid #eadcc6;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
}

.survey .survey-info-block h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.survey .survey-info-block p,
.survey .survey-desc {
  white-space: pre-line;
  word-break: break-word;
}

.survey .survey-info-block a,
.survey .survey-desc a {
  color: #1f5fae;
  text-decoration: underline;
}

.survey .survey-desc {
  margin: -6px 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.survey .survey-question {
  margin-bottom: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.survey .survey-question.has-error {
  border-color: #d9877e;
}

.survey .survey-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.survey .survey-label small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.survey .survey-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--sans);
  font-size: 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}

.survey .survey-required {
  padding: 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  color: #c0453a;
  background: #fbe9e7;
  border-radius: 11px;
}

.survey .survey-error {
  margin-top: 8px;
  font-size: 14px;
  color: #c0453a;
}

.survey .survey-error:empty {
  display: none;
}

.survey .survey-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.survey .survey-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.survey textarea.survey-input {
  line-height: 1.7;
  resize: vertical;
}

.survey .gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.survey .gift-card {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.survey .gift-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.survey .gift-image {
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.survey .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.survey .gift-info {
  padding: 14px;
}

.survey .gift-info h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.survey .gift-info p {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.survey .gift-price {
  display: block;
  margin: 8px 0 12px;
  font-size: 17px;
  color: var(--gold);
}

.survey .qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border: 1px solid #d8d1c5;
  border-radius: 21px;
}

.survey .qty-stepper button {
  width: 44px;
  height: 100%;
  font-size: 20px;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}

.survey .qty-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.survey .gift-lines {
  display: grid;
  gap: 10px;
}

.survey .gift-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.survey .gift-line.is-selected {
  background: #fdfaf5;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.survey .gift-line-info {
  flex: 1;
  min-width: 0;
}

.survey .gift-line-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.survey .gift-line-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.survey .gift-line .gift-price {
  margin: 2px 0 0;
}

.survey .gift-line .qty-stepper {
  flex-shrink: 0;
  width: 132px;
}

.survey .gift-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.survey .choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.survey .choice-item {
  position: relative;
  cursor: pointer;
}

.survey .choice-item input {
  position: absolute;
  opacity: 0;
}

.survey .choice-item span {
  display: block;
  padding: 10px 22px;
  font-size: 16px;
  background: #fff;
  border: 1.5px solid #d8d1c5;
  border-radius: 24px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.survey .choice-item input:checked + span {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.survey .choice-item input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.35);
}

.survey .choice-other {
  display: flex;
  align-items: center;
  flex: 1 1 100%;
  gap: 10px;
}

.survey .choice-other .survey-input {
  flex: 1;
  min-height: 46px;
}

.survey .survey-submit {
  margin-top: 28px;
  text-align: center;
}

.survey .survey-submit .btn {
  min-width: 240px;
  justify-content: center;
}

.survey .survey-closed {
  padding: 48px 24px;
  font-size: 17px;
  text-align: center;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.survey .survey-total {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(30, 41, 86, 0.08);
}

.survey .survey-total-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.survey .survey-total small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.survey .survey-total strong {
  font-size: 22px;
  color: var(--navy);
}

.survey .survey-total .btn {
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
}

.survey.has-total .survey-footer {
  padding-bottom: 100px;
}

.survey .survey-done .survey-info-block {
  margin: 28px 0;
  text-align: left;
}

.survey .survey-done {
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.survey .survey-done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}

.survey .survey-done-icon svg {
  width: 32px;
  height: 32px;
}

.survey .survey-done h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
}

.survey .survey-done > p {
  margin-bottom: 24px;
  color: #55585f;
}

.survey .survey-line {
  margin-bottom: 24px;
  padding: 22px 20px;
  text-align: center;
  background: #effaf3;
  border: 1px solid #bfe8cd;
  border-radius: 12px;
}

.survey .survey-line-title {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: #0b6b34;
}

.survey .survey-line > p:not(.survey-line-title) {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: #3d4a42;
}

.survey .survey-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  height: 54px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #06c755;
  border-radius: 27px;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.3);
  transition: filter 0.2s;
}

.survey .survey-line-btn:hover {
  filter: brightness(1.06);
}

.survey .survey-line-icon {
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #06c755;
  background: #fff;
  border-radius: 6px;
}

.survey .survey-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 20px;
  font-size: 15px;
  text-align: left;
  background: var(--bg);
  border-radius: 8px;
}

.survey .survey-summary dt {
  color: var(--text-muted);
}

.survey .survey-summary dd {
  margin: 0;
  word-break: break-word;
}

/* 花卡示意（落款名稱預覽） */
/* 花卡落款區塊：每件花禮一張 */
.survey .survey-no-card {
  font-size: 13px;
  background: var(--gold);
}

.survey .survey-card-entry {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.survey .survey-card-entry.has-error .survey-input {
  border-color: #d9877e;
}

.survey .survey-card-caption {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.survey .survey-card-caption span {
  font-weight: 500;
  color: var(--text-muted);
}

.survey .survey-card-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.survey .survey-card-field {
  display: flex;
  gap: 8px;
}

.survey .survey-card-remove {
  flex: 0 0 44px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 8px;
  cursor: pointer;
}

.survey .survey-card-remove:hover {
  color: #c0453a;
  border-color: #d9877e;
}

.survey .survey-card-add {
  align-self: flex-start;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.survey .survey-card-add:hover {
  background: #faf3e6;
}

/* 卡片標題列：左標題、右「複製落款」 */
.survey .survey-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.survey .survey-card-head .survey-card-caption {
  margin: 0;
}

.survey .survey-card-mirror {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f3eee5;
  border-radius: 12px;
  white-space: nowrap;
}

/* 逐張填寫：欄位在左、縮圖在右 */
.survey .survey-card-entry.is-compact {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 0 16px;
  align-items: start;
}

.survey .survey-card-entry.is-compact .survey-card-head {
  grid-column: 1 / -1;
}

.survey .survey-card-entry.is-compact .survey-card-fields {
  margin-bottom: 0;
}

.survey .survey-card-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 112px;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: zoom-in;
}

.survey .survey-card-thumb .flower-card {
  max-width: 112px;
}

.survey .survey-card-thumb .flower-card-paper {
  box-shadow: 0 4px 12px rgba(30, 41, 86, 0.12);
  transition: transform 0.2s;
}

.survey .survey-card-thumb:hover .flower-card-paper {
  transform: translateY(-2px);
}

/* 花卡放大 */
.survey .survey-card-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 41, 86, 0.72);
}

.survey .survey-card-lightbox-inner {
  position: relative;
  width: min(340px, 100%);
}

.survey .survey-card-lightbox-inner .flower-card {
  max-width: none;
}

.survey .survey-card-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

.survey.has-lightbox {
  overflow: hidden;
}

.survey .survey-card-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 直式花卡：尺寸以卡片寬度（cqw）為基準，手機桌機等比例縮放
   比例依實際花卡範例：中央大字約佔寬度 1/4、右欄上款、左欄致贈者字距拉開 */
.survey .flower-card,
.admin-flower-orders .flower-card {
  container-type: inline-size;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.survey .flower-card-paper,
.admin-flower-orders .flower-card-paper {
  display: grid;
  grid-template-columns: 38fr 38fr 24fr;
  aspect-ratio: 5 / 7;
  padding: 8cqw 2cqw;
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.1;
  color: #141414;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 41, 86, 0.08);
}

.survey .flower-card-paper p,
.admin-flower-orders .flower-card-paper p {
  margin: 0;
}

/* 直書元素在 grid 內要明確給高度（直書的行長），否則會被壓成一字一欄 */
.survey .flower-card-to,
.admin-flower-orders .flower-card-to {
  display: flex;
  flex-wrap: wrap;
  gap: 3cqw;
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  align-self: stretch;
  height: 100%;
  writing-mode: vertical-rl;
  font-size: 7.8cqw;
  letter-spacing: 0.06em;
}

.survey .flower-card-main,
.admin-flower-orders .flower-card-main {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: stretch;
  height: 100%;
  writing-mode: vertical-rl;
  font-size: 26cqw;
  line-height: 1;
  letter-spacing: 0;
  /* 四個字平均分配整個高度，上下留白才會一致 */
  text-align: justify;
  text-align-last: justify;
}

.survey .flower-card-from,
.admin-flower-orders .flower-card-from {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8cqw;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: stretch;
  padding-top: 28cqw;
}

.survey .flower-card-names,
.admin-flower-orders .flower-card-names {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5cqw;
}

.survey .flower-card-name,
.admin-flower-orders .flower-card-name {
  max-height: 82cqw;
  writing-mode: vertical-rl;
  font-size: 12cqw;
  letter-spacing: 0.45em;
  transition: color 0.2s;
}

.survey .flower-card-name.is-medium,
.admin-flower-orders .flower-card-name.is-medium {
  font-size: 9cqw;
  letter-spacing: 0.2em;
}

.survey .flower-card-name.is-long,
.admin-flower-orders .flower-card-name.is-long {
  font-size: 7.5cqw;
  letter-spacing: 0.08em;
}

.survey .flower-card-sign,
.admin-flower-orders .flower-card-sign {
  writing-mode: vertical-rl;
  font-size: 7.5cqw;
  letter-spacing: 0.3em;
}

.survey .flower-card.is-empty .flower-card-name,
.admin-flower-orders .flower-card.is-empty .flower-card-name {
  color: #b9b2a6;
}

.survey .survey-card-done {
  margin: 0 0 20px;
  text-align: left;
}

.survey .survey-card-done-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.survey .survey-card-done-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
}

.survey .survey-footer {
  padding: 24px 0;
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.survey .survey-footer a {
  color: var(--navy);
}

/* ===== 靜思頁面 ===== */
.memorial {
  --night: #0e2146;
  --night-deep: #091733;
  --paper: #f3eee4;
  --memorial-gold: #c9a46a;
  color: #fff;
  background: var(--night-deep);
}

.memorial .memorial-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 撕紙邊緣 */
.memorial .memorial-paper,
.memorial .memorial-night {
  position: relative;
}

.memorial .memorial-paper::before,
.memorial .memorial-night::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  z-index: 2;
  height: 40px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.memorial .memorial-paper::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C90 12 160 26 250 18s170-14 260-4 150 16 240 6 180-18 270-10 160 14 250 6 110-10 170-6V40z' fill='%23f3eee4'/%3E%3C/svg%3E");
}

.memorial .memorial-night::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V18c110 10 200-8 300 0s160 16 260 8 170-20 280-12 190 18 290 10 190-16 310-8V40z' fill='%230e2146'/%3E%3C/svg%3E");
}

.memorial .memorial-paper {
  color: var(--navy);
  background:
    radial-gradient(circle at 85% 30%, rgba(201, 164, 106, 0.08), transparent 40%),
    var(--paper);
}

.memorial .memorial-night {
  background:
    linear-gradient(var(--night) 0, rgba(14, 33, 70, 0.9) 120px, rgba(9, 23, 51, 0.94) calc(100% - 160px), var(--night-deep) 100%),
    url('../images/news-01.webp') center / cover no-repeat;
}

/* 標題 */
.memorial .memorial-heading {
  margin-bottom: 40px;
  text-align: center;
}

.memorial .memorial-heading h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.memorial .memorial-heading p {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.memorial .memorial-lotus {
  display: block;
  width: 32px;
  height: 20px;
  margin: 0 auto 8px;
  color: var(--memorial-gold);
}

/* 主視覺 */
.memorial .memorial-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 120px;
  background:
    linear-gradient(90deg, rgba(9, 23, 51, 0.55) 0%, rgba(9, 23, 51, 0.15) 50%, rgba(9, 23, 51, 0.35) 100%),
    linear-gradient(180deg, rgba(9, 23, 51, 0.1) 60%, rgba(9, 23, 51, 0.6) 100%),
    url('../images/memorial/hero-bg.webp') 70% center / cover no-repeat;
}

.memorial .memorial-portrait-wrap {
  position: relative;
}

.memorial .memorial-deco-lily {
  position: absolute;
  left: -70px;
  bottom: -60px;
  z-index: 2;
  width: 220px;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.memorial .memorial-deco-candle {
  position: absolute;
  left: 70px;
  bottom: -46px;
  z-index: 3;
  width: 56px;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 200, 120, 0.6));
}

.memorial .memorial-hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 72px;
  min-height: 360px;
}

.memorial .memorial-portrait {
  margin: 0;
  padding: 10px;
  background: #f6f0e3;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}

.memorial .memorial-portrait img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.memorial .memorial-hero-text h1 {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.memorial .memorial-hero-subtitle {
  position: relative;
  margin-top: 10px;
  padding-bottom: 22px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.2em;
}

.memorial .memorial-hero-subtitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 1px;
  background: var(--memorial-gold);
}

.memorial .memorial-hero-desc {
  margin-top: 22px;
  font-size: 16px;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.memorial .memorial-hero-quote {
  position: absolute;
  right: 24px;
  bottom: -60px;
  padding-bottom: 8px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.15em;
  white-space: pre-line;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0.9;
  transform: rotate(-10deg);
}

/* 往生者介紹 */
.memorial .memorial-profile {
  padding: 40px 0 88px;
  text-align: center;
}

.memorial .memorial-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.memorial .memorial-name::before,
.memorial .memorial-name::after {
  content: '';
  width: 64px;
  height: 1px;
  margin: 0 18px;
  background: var(--memorial-gold);
  align-self: center;
}

.memorial .memorial-name small {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.memorial .memorial-dates {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #3d4659;
}

.memorial .memorial-quote {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.12em;
  color: #9a6b33;
  white-space: pre-line;
}

.memorial .memorial-intro {
  margin-top: 18px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: #3d4659;
  white-space: pre-line;
}

/* 生平回顧 */
.memorial .memorial-life {
  padding: 56px 0 96px;
}

.memorial .memorial-timeline {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memorial .memorial-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 8%, rgba(255, 255, 255, 0.55) 92%, transparent);
}

.memorial .memorial-timeline li {
  position: relative;
  padding-top: 32px;
  text-align: center;
}

.memorial .timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  background: #fff6e0;
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(255, 228, 170, 0.6);
}

.memorial .timeline-year {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.memorial .memorial-timeline h3 {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.memorial .memorial-timeline p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  opacity: 0.8;
}

/* 回憶相冊 */
.memorial .memorial-album {
  padding: 40px 0 88px;
}

.memorial .memorial-album .memorial-heading {
  margin-bottom: 28px;
}

.memorial .album-carousel {
  position: relative;
  padding: 0 52px;
}

.memorial .album-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.memorial .album-track::-webkit-scrollbar {
  display: none;
}

.memorial .album-item {
  flex: 0 0 calc((100% - 56px) / 5);
  margin: 0;
  scroll-snap-align: start;
}

.memorial .album-item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(30, 41, 86, 0.15);
  transition: transform 0.3s;
}

.memorial .album-item a:hover img {
  transform: translateY(-3px);
}

.memorial .album-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: #5b6272;
}

.memorial .album-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -36px;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(30, 41, 86, 0.18);
  cursor: pointer;
  transition: opacity 0.2s;
}

.memorial .album-nav svg {
  width: 20px;
  height: 20px;
}

.memorial .album-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.memorial .album-prev {
  left: 0;
}

.memorial .album-next {
  right: 0;
}

.memorial .album-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.memorial .album-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #cfc6b6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.memorial .album-dots button.active {
  background: var(--navy);
}

/* 留下思念 */
.memorial .memorial-messages {
  padding: 48px 0 64px;
}

.memorial .message-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 36px;
}

.memorial .message-intro h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.memorial .message-intro p {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.memorial .message-textarea {
  position: relative;
}

.memorial .message-textarea textarea {
  width: 100%;
  height: 96px;
  padding: 14px 16px 28px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: 6px;
  outline: none;
  resize: none;
}

.memorial .message-textarea textarea:focus {
  box-shadow: 0 0 0 3px rgba(201, 164, 106, 0.5);
}

.memorial .message-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: #9a9ea8;
}

.memorial .message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.memorial .message-name {
  width: 160px;
  height: 38px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  outline: none;
}

.memorial .message-name::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.memorial .message-name:focus {
  border-color: var(--memorial-gold);
}

.memorial .message-anonymous {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.9;
}

.memorial .message-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-left: auto;
  padding: 0 24px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #d2b07a, #b48a5a);
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition: filter 0.2s;
}

.memorial .message-submit:hover {
  filter: brightness(1.08);
}

.memorial .message-submit svg {
  width: 16px;
  height: 16px;
}

.memorial .message-feedback {
  margin-top: 10px;
  font-size: 14px;
  color: #e8d3a8;
}

.memorial .message-feedback.is-error {
  color: #ffb4a8;
}

.memorial .message-feedback:empty {
  display: none;
}

.memorial .message-closed,
.memorial .message-empty {
  padding: 20px;
  font-size: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  opacity: 0.85;
}

.memorial .message-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.memorial .message-list .message-empty {
  grid-column: 1 / -1;
}

.memorial .message-card {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.memorial .message-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.memorial .message-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  background: #efe4cf;
  border-radius: 50%;
}

.memorial .message-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.memorial .message-card time {
  font-size: 12px;
  opacity: 0.65;
}

.memorial .message-card p {
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-word;
}

.memorial .message-more {
  margin-top: 24px;
  text-align: center;
}

.memorial .message-more button {
  height: 38px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 19px;
  cursor: pointer;
}

/* 頁尾 */
.memorial .memorial-footer {
  padding: 32px 24px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 196, 120, 0.18), transparent 60%),
    var(--night-deep);
}

.memorial .memorial-footer-deco {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.memorial .memorial-footer-deco img {
  filter: drop-shadow(0 0 16px rgba(255, 200, 120, 0.55));
}

.memorial .deco-lotus {
  width: 76px;
}

.memorial .deco-lotus-2 {
  width: 60px;
}

.memorial .deco-candle-footer {
  width: 40px;
}

.memorial .memorial-footer p {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.15em;
}

.memorial .memorial-footer small {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  opacity: 0.55;
}

.memorial .memorial-copyright {
  margin-top: 18px;
  padding-top: 16px;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.5;
}

.memorial .memorial-footer a:hover {
  color: var(--memorial-gold);
}

.memorial-preview-banner {
  position: relative;
  z-index: 60;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  color: #6b4a14;
  background: #f6dfa8;
}

.memorial .memorial-private {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  font-size: 17px;
  text-align: center;
}

.memorial .memorial-private a {
  color: var(--memorial-gold);
}

/* ===== 相簿燈箱 ===== */
.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(5, 12, 28, 0.94);
  animation: lightboxFade 0.25s ease;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.lightbox-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== 內頁共用 ===== */
.btn-sm {
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
}

.page-hero {
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 56px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(30, 41, 86, 0.92) 0%, rgba(30, 41, 86, 0.7) 38%, rgba(30, 41, 86, 0.1) 75%),
    var(--hero-image) var(--hero-position, center) / cover no-repeat;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-hero-sub {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.2em;
}

.list-section {
  padding: 48px 0 96px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.filter-tab {
  min-width: 120px;
  height: 42px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d9d2c6;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-tab:hover {
  border-color: var(--navy);
}

.filter-tab.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.filter-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
}

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

.cta-band {
  padding: 72px 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(30, 41, 86, 0.55), rgba(30, 41, 86, 0.75)),
    var(--cta-image) center / cover no-repeat;
}

.cta-band-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.cta-band-sub {
  margin-top: 10px;
  font-size: 17px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.cta-band-split {
  text-align: left;
}

.cta-band-split .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ===== 關於我們 ===== */
.about .about-intro {
  padding: 80px 0 64px;
}

.about .about-intro-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
}

.about .about-intro-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(30, 41, 86, 0.1);
}

.about .about-intro-content .section-title {
  margin-bottom: 24px;
  font-size: 36px;
  color: var(--gold);
}

.about .about-intro-content p {
  font-size: 18px;
  line-height: 2.1;
  letter-spacing: 0.12em;
  color: #55585f;
}

.about .about-intro-content p + p {
  margin-top: 12px;
}

.about .about-values {
  padding: 0 0 88px;
}

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

.about .value-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 41, 86, 0.06);
}

.about .value-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about .value-card-body {
  padding: 24px 28px 28px;
}

.about .value-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.about .value-card p {
  font-size: 16px;
  line-height: 1.9;
  color: #55585f;
}

/* ===== 服務項目 ===== */
.services .service-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 41, 86, 0.06);
}

.services .service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.services .service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 28px 28px;
}

.services .service-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.services .service-card p {
  flex: 1;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: #55585f;
}

/* ===== 最新消息 ===== */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 41, 86, 0.06);
}

.news-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card-image {
  overflow: hidden;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gold);
}

.news-meta span {
  padding: 0 10px;
  font-size: 12px;
  line-height: 22px;
  color: var(--navy);
  background: #ece6db;
  border-radius: 11px;
}

.news-meta .news-tag-notice {
  color: #fff;
  background: var(--gold);
}

.news-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.news-card h3 a:hover {
  color: var(--gold);
}

.news-card-body > p:not(.news-meta) {
  flex: 1;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.news-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.news-more:hover .arrow {
  transform: translateX(4px);
}

.news-more .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s;
}

/* ===== 文章內頁 ===== */
.news-detail .article {
  padding: 48px 0 96px;
}

.news-detail .article-inner {
  max-width: 860px;
}

.news-detail .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.news-detail .breadcrumb a:hover {
  color: var(--navy);
}

.news-detail .article-header h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.news-detail .article-cover {
  width: 100%;
  margin: 28px 0 36px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.news-detail .article-content {
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.news-detail .article-content p {
  margin-bottom: 20px;
}

.news-detail .article-content h2 {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.news-detail .article-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  font-family: var(--serif);
  font-size: 20px;
  color: #9a6b33;
  background: #fbf7f0;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.news-detail .article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.news-detail .article-nav-prev {
  font-size: 15px;
  color: var(--navy);
}

.news-detail .article-nav-prev small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 常見問題 ===== */
.faq .faq-section {
  padding: 56px 0 96px;
  background:
    url('../images/memorial/deco-petals.webp') left 40px bottom 80px / 140px no-repeat,
    var(--bg);
}

.faq .faq-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 40px;
  max-width: 1080px;
}

.faq .faq-cats {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 6px;
}

.faq .faq-cat {
  height: 46px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text);
  background: #f1ede6;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.faq .faq-cat:hover {
  background: #e7e0d4;
}

.faq .faq-cat.active {
  color: #fff;
  background: var(--navy);
}

.service-detail .faq-list,
.faq .faq-list {
  display: grid;
  gap: 12px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.service-detail .faq-item,
.faq .faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-detail .faq-question,
.faq .faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 20px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}

.service-detail .faq-q,
.faq .faq-q {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--sans);
  font-size: 15px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}

.service-detail .faq-text,
.faq .faq-text {
  flex: 1;
}

.service-detail .faq-chevron,
.faq .faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.service-detail .faq-question[aria-expanded="true"] .faq-chevron,
.faq .faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(-135deg);
}

.service-detail .faq-answer,
.faq .faq-answer {
  padding: 0 24px 20px 70px;
  font-size: 16px;
  line-height: 1.95;
  color: #55585f;
  white-space: pre-line;
}

/* ===== 服務項目內容頁 ===== */
.service-detail .service-section {
  padding: 64px 0;
}

.service-detail .service-section .section-label {
  text-align: center;
}

.service-detail .service-section > .container > .section-title {
  margin-bottom: 40px;
  font-size: 34px;
  text-align: center;
}

.service-detail .service-intro {
  padding-top: 32px;
}

.service-detail .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-detail .breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.service-detail .service-intro-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}

.service-detail .service-intro-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(30, 41, 86, 0.1);
}

.service-detail .service-intro-content .section-label {
  text-align: left;
}

.service-detail .service-intro-content .section-title {
  margin-bottom: 20px;
  font-size: 34px;
}

.service-detail .service-intro-content p:not(.section-label) {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #55585f;
}

.service-detail .service-intro-content p + p {
  margin-top: 14px;
}

.service-detail .service-highlights {
  background: #fff;
}

.service-detail .service-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-detail .service-highlight {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
}

.service-detail .service-highlight h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.service-detail .service-highlight p {
  font-size: 15px;
  line-height: 1.9;
  color: #55585f;
}

.service-detail .service-step-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.service-detail .service-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
}

.service-detail .service-step::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 19px;
  width: 1px;
  background: var(--line);
}

.service-detail .service-step:last-child::before {
  display: none;
}

.service-detail .service-step-no {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}

.service-detail .service-step h3 {
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.service-detail .service-step p {
  font-size: 16px;
  line-height: 1.9;
  color: #55585f;
}

.service-detail .service-faq {
  background: #fff;
}

.service-detail .service-faq .faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0;
  border-left: 0;
}

.service-detail .service-faq .faq-item {
  background: var(--bg);
}

/* 橫幅主要按鈕與線上訂購區塊 */
.service-detail .page-hero-actions {
  margin-top: 28px;
  animation: heroRise 1s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-detail .page-hero-actions .btn {
  height: 56px;
  padding: 0 32px;
  font-size: 17px;
  background: var(--gold);
  border-color: var(--gold);
}

.service-detail .page-hero-actions .btn:hover {
  background: #9c7647;
  border-color: #9c7647;
}

.service-detail .service-order-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 56px;
  padding: 36px 44px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, #1c3763 100%);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(30, 41, 86, 0.18);
}

.service-detail .service-order-banner .section-label {
  color: var(--gold-light);
}

.service-detail .service-order-banner h3 {
  margin: 4px 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-detail .service-order-text {
  flex: 1;
  min-width: 260px;
}

.service-detail .service-order-text p:last-child {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.service-detail .service-order-banner .btn-lg {
  height: 64px;
  padding: 0 40px;
  font-size: 19px;
  background: var(--gold);
  border-color: var(--gold);
}

.service-detail .service-order-banner .btn-lg:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.services .service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.service-detail .service-cta {
  color: #fff;
  background: var(--navy);
}

.service-detail .service-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-detail .service-cta h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-detail .service-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.service-detail .service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-detail .service-others {
  padding-bottom: 96px;
}

.service-detail .service-other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-detail .service-other {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-detail .service-other:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(30, 41, 86, 0.1);
}

.service-detail .service-other img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-detail .service-other span {
  display: block;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--navy);
}

/* ===== 花禮訂購（型錄＋下單）：body 同時掛 survey 以共用問卷表單樣式 ===== */
.flowers .page-hero {
  min-height: 300px;
}

.flowers .flowers-intro {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  color: var(--text-muted);
}

.flowers .flowers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.flowers .flowers-field.is-full {
  grid-column: 1 / -1;
}

.flowers .flowers-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.flowers .flowers-field.has-error .survey-input {
  border-color: #d9877e;
}

.flowers .flowers-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.flowers select.survey-input {
  padding-right: 40px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}

.flowers .flowers-order-no {
  margin: -8px 0 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.flowers .flowers-order-no strong {
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* 獨立頁面（無頁首頁尾）：底部留白給固定的合計列 */
.flowers.has-total main {
  padding-bottom: 110px;
}

.flowers .page-hero {
  margin-top: 0;
}

/* 第 2 步起訃聞資訊收合，只留往生者 */
.survey .survey-hero.is-compact .survey-age,
.survey .survey-hero.is-compact .survey-detail,
.survey .survey-hero.is-compact .survey-schedule,
.survey .survey-hero.is-compact .survey-intro,
.survey .survey-hero.is-compact .survey-closing {
  display: none;
}

.survey .survey-hero.is-compact {
  padding: 18px 24px;
}

.survey .survey-hero.is-compact .survey-deceased {
  margin: 0;
  font-size: 22px;
}

.survey .flower-card-to .is-placeholder,
.admin-flower-orders .flower-card-to .is-placeholder {
  color: #c4beb3;
}

/* 步驟指示 */
.survey .survey-steps {
  display: flex;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.survey .survey-steps li {
  position: relative;
  flex: 1;
}

.survey .survey-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #ddd5c8;
}

.survey .survey-steps li.is-done:not(:last-child)::after {
  background: var(--gold);
}

.survey .survey-step-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.survey .survey-step-title {
  line-height: 1.3;
  text-align: center;
}

.survey .survey-step-btn:disabled {
  cursor: default;
}

.survey .survey-step-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  border: 2px solid #ddd5c8;
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.survey .survey-steps li.is-active .survey-step-no {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.survey .survey-steps li.is-active .survey-step-btn {
  font-weight: 700;
  color: var(--navy);
}

.survey .survey-steps li.is-done .survey-step-no {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.survey .survey-steps li.is-done .survey-step-btn:hover .survey-step-no {
  background: #9c7647;
}

.survey .survey-draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.survey .survey-draft button {
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--gold);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.survey .survey-step[hidden] {
  display: none;
}

.survey .survey-gift-group + .survey-gift-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.survey .survey-gift-group.has-error .survey-gift-title {
  color: #c0453a;
}

.survey .survey-gift-title .survey-required {
  margin-left: 8px;
}

.survey .survey-gift-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.survey .survey-total-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* 花卡輓詞選擇 */
.survey .survey-card-phrase {
  margin-bottom: 16px;
}

.survey .survey-card-phrase label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

/* 花卡張數選擇 */
.survey .survey-card-counts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.survey .survey-card-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
}

.survey .survey-card-count-info strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.survey .survey-card-count-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.survey .survey-card-count-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.survey .survey-card-stepper {
  width: 150px;
  flex-shrink: 0;
  background: #fff;
}

.survey .survey-card-count-input {
  width: 56px;
  height: 100%;
  padding: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  background: none;
  border: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.survey .survey-card-count-input::-webkit-outer-spin-button,
.survey .survey-card-count-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.survey .survey-card-count-input:focus {
  outline: none;
}

.survey .survey-pill {
  min-width: 56px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 18px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.survey .survey-pill:hover {
  border-color: var(--gold);
}

.survey .survey-pill.is-selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.survey .survey-edit {
  margin-left: 6px;
  padding: 2px 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 12px;
  cursor: pointer;
}

.survey .survey-edit:hover {
  border-color: var(--gold);
  background: #faf3e6;
}

.survey .survey-summary-edit {
  grid-template-columns: 180px 1fr;
}

.survey .survey-summary-edit dt {
  line-height: 1.7;
}

.survey .survey-edit {
  white-space: nowrap;
  vertical-align: middle;
}

.survey .survey-card-done .survey-card-caption {
  display: flex;
  align-items: center;
}

/* ===== 聯絡我們 ===== */
.contact .contact-section {
  padding: 72px 0 96px;
}

.contact .contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  max-width: 1160px;
}

.contact .contact-info {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact .contact-info li {
  display: flex;
  gap: 20px;
}

.contact .contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}

.contact .contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact .contact-icon-line {
  font-size: 13px;
  font-weight: 700;
  background: #06c755;
}

.contact .contact-info small {
  font-size: 14px;
  color: var(--gold);
}

.contact .contact-phone {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.contact .contact-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}

.contact .contact-info p {
  margin-bottom: 8px;
  font-size: 16px;
  color: #55585f;
}

.contact .contact-info a[href^="mailto"] {
  font-size: 17px;
  color: var(--navy);
}

.contact .contact-form-wrap {
  padding-left: 56px;
  border-left: 1px solid var(--line);
}

.contact .contact-form-wrap h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.contact .contact-form-desc {
  margin: 4px 0 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.contact .form-field {
  margin-bottom: 18px;
}

.contact .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.contact .required {
  color: #c0453a;
}

.contact .form-field input,
.contact .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact .form-field input {
  height: 48px;
}

.contact .form-field textarea {
  line-height: 1.7;
  resize: vertical;
}

.contact .form-field input:focus,
.contact .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.contact .form-field.has-error input,
.contact .form-field.has-error textarea {
  border-color: #d9877e;
}

.contact .field-error {
  margin-top: 4px;
  font-size: 13px;
  color: #c0453a;
}

.contact .field-error:empty {
  display: none;
}

.contact .form-success {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 15px;
  color: #2f6b47;
  background: #e8f4ec;
  border-radius: 6px;
}

/* ===== 右下角社群按鈕 ===== */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(30, 41, 86, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30, 41, 86, 0.32);
}

.social-float-btn svg {
  width: 26px;
  height: 26px;
}

.social-facebook {
  background: #1877f2;
}

.social-line {
  background: #06c755;
}

.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-float-label {
  position: absolute;
  right: 60px;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  color: #fff;
  background: rgba(30, 41, 86, 0.88);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.social-float-btn:hover .social-float-label,
.social-float-btn:focus-visible .social-float-label {
  opacity: 1;
  transform: translateX(0);
}

.back-to-top {
  padding: 0;
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(217, 185, 140, 0.6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* 隱藏時收合，不佔位置 */
.back-to-top:not(.is-visible) {
  height: 0;
  margin-top: -12px;
  overflow: hidden;
  border-width: 0;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top.is-visible:hover {
  transform: translateY(-2px);
}

/* 花禮問卷頁底部有合計列，往上移 */
.survey.has-total .social-float {
  bottom: 96px;
}

/* ===== 首頁：Google 評價 ===== */
.home .reviews {
  padding: 88px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.home .reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.home .reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home .reviews-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: 700;
  color: #4285f4;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
}

.home .reviews-score {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.home .reviews-stars,
.home .review-stars {
  color: #d9d2c6;
  letter-spacing: 2px;
}

.home .reviews-stars {
  font-size: 18px;
}

.home .reviews-stars .is-on,
.home .review-stars .is-on {
  color: #f4b400;
}

.home .reviews-total {
  font-size: 13px;
  color: var(--text-muted);
}

.home .reviews-demo {
  margin: -16px 0 24px;
  padding: 8px 14px;
  font-size: 13px;
  color: #8a5a12;
  background: #fbf1df;
  border-radius: 6px;
}

.home .reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.home .review-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(30, 41, 86, 0.05);
}

.home .review-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home .review-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--serif);
  font-size: 18px;
  color: #fff;
  object-fit: cover;
  background: var(--gold);
  border-radius: 50%;
}

.home .review-author {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.home .review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.home .review-stars {
  font-size: 14px;
}

.home .review-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4f5a;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.home .review-card.is-open .review-text {
  display: block;
}

.home .review-more {
  align-self: flex-start;
  margin-top: 8px;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--gold);
  background: none;
  border: 0;
  cursor: pointer;
}

.home .reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.home .reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home .reviews-source {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-outline-gold {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
  color: #fff;
  background: var(--gold);
}

/* ===== 最新消息：公告與 FB 貼文 ===== */
.news .news-tabs-section {
  padding: 48px 0 96px;
}

.news .news-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.news .news-tab {
  position: relative;
  min-width: 160px;
  height: 56px;
  padding: 0 28px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.news .news-tab::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.news .news-tab:hover {
  color: var(--navy);
}

.news .news-tab.active {
  color: var(--navy);
}

.news .news-tab.active::after {
  transform: scaleX(1);
}

.news .panel-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.news .panel-head:has(> [hidden]:only-child) {
  display: none;
}

.news .notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.news .notice-list li + li {
  border-top: 1px solid var(--line);
}

.news .notice-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  transition: background-color 0.2s;
}

.news .notice-list a:hover {
  background: #fcfaf6;
}

.news .notice-list time {
  flex-shrink: 0;
  min-width: 96px;
  font-size: 15px;
  color: var(--gold);
}

.news .notice-pin {
  flex-shrink: 0;
  padding: 0 10px;
  font-size: 12px;
  line-height: 22px;
  color: #fff;
  background: #c0453a;
  border-radius: 11px;
}

.news .notice-title {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
}

.news .notice-arrow {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.news .notice-list a:hover .notice-arrow {
  transform: translateX(4px);
}

/* 連結型公告：點標題另開外部網址 */
.news .notice-list a:hover .notice-external {
  transform: translate(3px, -3px);
}

.news .fb-page-link {
  font-size: 15px;
  font-weight: 500;
  color: #1877f2;
}

.news .fb-page-link .arrow {
  margin-left: 6px;
}

.news .fb-demo {
  margin-bottom: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #8a5a12;
  background: #fbf1df;
  border-radius: 6px;
}

.news .fb-tag {
  color: #fff !important;
  background: #1877f2 !important;
}

.news .fb-message {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4f5a;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.news .fb-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ===== 進場動畫（頁首、橫幅；載入即播放，不靠捲動） ===== */
@keyframes headerDrop {
  from { transform: translateY(-100%); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
}

@keyframes kenBurns {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(36px); filter: blur(8px); }
}

@keyframes heroTitleIn {
  from { opacity: 0; letter-spacing: 0.32em; filter: blur(10px); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes fadeOnly {
  from { opacity: 0; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
}

@keyframes portraitIn {
  from { opacity: 0; transform: translateY(40px) scale(0.85); filter: blur(6px); }
}

/* 頁首：整條滑入，Logo、選單、電話依序出現 */
.site-header {
  animation: headerDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header .logo {
  animation: fadeDown 0.6s 0.3s ease-out both;
}

.main-nav > a,
.main-nav > .nav-item {
  animation: fadeDown 0.5s ease-out both;
}

.main-nav > :nth-child(1) { animation-delay: 0.4s; }
.main-nav > :nth-child(2) { animation-delay: 0.48s; }
.main-nav > :nth-child(3) { animation-delay: 0.56s; }
.main-nav > :nth-child(4) { animation-delay: 0.64s; }
.main-nav > :nth-child(5) { animation-delay: 0.72s; }
.main-nav > :nth-child(6) { animation-delay: 0.8s; }

.header-hotline,
.nav-toggle {
  animation: fadeDown 0.6s 0.9s ease-out both;
}

/* 橫幅背景：複製原本背景到 ::before 做慢速拉遠 */
.home .hero::before,
.page-hero::before,
.memorial .memorial-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  animation: kenBurns 9s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.home .hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.home .hero .scroll-hint {
  position: absolute;
  z-index: 1;
}

.home .hero::after {
  z-index: 2;
  transform-origin: center;
  animation: lineGrow 1.4s 1.6s ease-out both;
}

/* 首頁橫幅文字 */
.home .hero-lead {
  animation: heroRise 1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .hero-title {
  animation: heroTitleIn 1.4s 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .hero-desc {
  animation: heroRise 1s 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home .hero-actions .btn {
  animation: popIn 0.7s ease-out both;
}

.home .hero-actions .btn:nth-child(1) { animation-delay: 1.55s; }
.home .hero-actions .btn:nth-child(2) { animation-delay: 1.7s; }

.home .scroll-hint {
  animation: fadeOnly 1s 2.1s ease-out both;
}

/* 內頁橫幅文字 */
.page-hero-title {
  animation: heroTitleIn 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero-sub {
  animation: heroRise 1s 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 靜思頁主視覺 */
.memorial .memorial-portrait-wrap {
  animation: portraitIn 1.3s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.memorial .memorial-deco-lily,
.memorial .memorial-deco-candle {
  animation: heroRise 1s 1.2s ease-out both;
}

.memorial .memorial-hero-text h1 {
  animation: heroTitleIn 1.4s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.memorial .memorial-hero-subtitle {
  animation: heroRise 1s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.memorial .memorial-hero-desc {
  animation: heroRise 1s 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.memorial .memorial-hero-quote {
  animation: fadeOnly 1.4s 1.8s ease-out both;
}

/* ===== 頁首、頁尾波浪邊緣（深藍波浪＋金色細線，緩慢流動） ===== */
@keyframes waveDrift {
  to { background-position: 1440px 0, 1440px 0; }
}

.site-header::after,
.survey .survey-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: -1;
  height: 22px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 9.00 L8 9.21 L16 9.42 L24 9.63 L32 9.84 L40 10.04 L48 10.25 L56 10.45 L64 10.65 L72 10.85 L80 11.05 L88 11.25 L96 11.44 L104 11.63 L112 11.82 L120 12.00 L128 12.18 L136 12.36 L144 12.53 L152 12.69 L160 12.86 L168 13.01 L176 13.17 L184 13.32 L192 13.46 L200 13.60 L208 13.73 L216 13.85 L224 13.97 L232 14.09 L240 14.20 L248 14.30 L256 14.39 L264 14.48 L272 14.56 L280 14.64 L288 14.71 L296 14.77 L304 14.82 L312 14.87 L320 14.91 L328 14.94 L336 14.97 L344 14.99 L352 15.00 L360 15.00 L368 15.00 L376 14.99 L384 14.97 L392 14.94 L400 14.91 L408 14.87 L416 14.82 L424 14.77 L432 14.71 L440 14.64 L448 14.56 L456 14.48 L464 14.39 L472 14.30 L480 14.20 L488 14.09 L496 13.97 L504 13.85 L512 13.73 L520 13.60 L528 13.46 L536 13.32 L544 13.17 L552 13.01 L560 12.86 L568 12.69 L576 12.53 L584 12.36 L592 12.18 L600 12.00 L608 11.82 L616 11.63 L624 11.44 L632 11.25 L640 11.05 L648 10.85 L656 10.65 L664 10.45 L672 10.25 L680 10.04 L688 9.84 L696 9.63 L704 9.42 L712 9.21 L720 9.00 L728 8.79 L736 8.58 L744 8.37 L752 8.16 L760 7.96 L768 7.75 L776 7.55 L784 7.35 L792 7.15 L800 6.95 L808 6.75 L816 6.56 L824 6.37 L832 6.18 L840 6.00 L848 5.82 L856 5.64 L864 5.47 L872 5.31 L880 5.14 L888 4.99 L896 4.83 L904 4.68 L912 4.54 L920 4.40 L928 4.27 L936 4.15 L944 4.03 L952 3.91 L960 3.80 L968 3.70 L976 3.61 L984 3.52 L992 3.44 L1000 3.36 L1008 3.29 L1016 3.23 L1024 3.18 L1032 3.13 L1040 3.09 L1048 3.06 L1056 3.03 L1064 3.01 L1072 3.00 L1080 3.00 L1088 3.00 L1096 3.01 L1104 3.03 L1112 3.06 L1120 3.09 L1128 3.13 L1136 3.18 L1144 3.23 L1152 3.29 L1160 3.36 L1168 3.44 L1176 3.52 L1184 3.61 L1192 3.70 L1200 3.80 L1208 3.91 L1216 4.03 L1224 4.15 L1232 4.27 L1240 4.40 L1248 4.54 L1256 4.68 L1264 4.83 L1272 4.99 L1280 5.14 L1288 5.31 L1296 5.47 L1304 5.64 L1312 5.82 L1320 6.00 L1328 6.18 L1336 6.37 L1344 6.56 L1352 6.75 L1360 6.95 L1368 7.15 L1376 7.35 L1384 7.55 L1392 7.75 L1400 7.96 L1408 8.16 L1416 8.37 L1424 8.58 L1432 8.79 L1440 9.00 L1440 0 Z' fill='%231e2956'/%3E%3C/svg%3E") 0 0 / 1440px 22px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22' preserveAspectRatio='none'%3E%3Cpath d='M0 13.00 L8 13.21 L16 13.42 L24 13.63 L32 13.84 L40 14.04 L48 14.25 L56 14.45 L64 14.65 L72 14.85 L80 15.05 L88 15.25 L96 15.44 L104 15.63 L112 15.82 L120 16.00 L128 16.18 L136 16.36 L144 16.53 L152 16.69 L160 16.86 L168 17.01 L176 17.17 L184 17.32 L192 17.46 L200 17.60 L208 17.73 L216 17.85 L224 17.97 L232 18.09 L240 18.20 L248 18.30 L256 18.39 L264 18.48 L272 18.56 L280 18.64 L288 18.71 L296 18.77 L304 18.82 L312 18.87 L320 18.91 L328 18.94 L336 18.97 L344 18.99 L352 19.00 L360 19.00 L368 19.00 L376 18.99 L384 18.97 L392 18.94 L400 18.91 L408 18.87 L416 18.82 L424 18.77 L432 18.71 L440 18.64 L448 18.56 L456 18.48 L464 18.39 L472 18.30 L480 18.20 L488 18.09 L496 17.97 L504 17.85 L512 17.73 L520 17.60 L528 17.46 L536 17.32 L544 17.17 L552 17.01 L560 16.86 L568 16.69 L576 16.53 L584 16.36 L592 16.18 L600 16.00 L608 15.82 L616 15.63 L624 15.44 L632 15.25 L640 15.05 L648 14.85 L656 14.65 L664 14.45 L672 14.25 L680 14.04 L688 13.84 L696 13.63 L704 13.42 L712 13.21 L720 13.00 L728 12.79 L736 12.58 L744 12.37 L752 12.16 L760 11.96 L768 11.75 L776 11.55 L784 11.35 L792 11.15 L800 10.95 L808 10.75 L816 10.56 L824 10.37 L832 10.18 L840 10.00 L848 9.82 L856 9.64 L864 9.47 L872 9.31 L880 9.14 L888 8.99 L896 8.83 L904 8.68 L912 8.54 L920 8.40 L928 8.27 L936 8.15 L944 8.03 L952 7.91 L960 7.80 L968 7.70 L976 7.61 L984 7.52 L992 7.44 L1000 7.36 L1008 7.29 L1016 7.23 L1024 7.18 L1032 7.13 L1040 7.09 L1048 7.06 L1056 7.03 L1064 7.01 L1072 7.00 L1080 7.00 L1088 7.00 L1096 7.01 L1104 7.03 L1112 7.06 L1120 7.09 L1128 7.13 L1136 7.18 L1144 7.23 L1152 7.29 L1160 7.36 L1168 7.44 L1176 7.52 L1184 7.61 L1192 7.70 L1200 7.80 L1208 7.91 L1216 8.03 L1224 8.15 L1232 8.27 L1240 8.40 L1248 8.54 L1256 8.68 L1264 8.83 L1272 8.99 L1280 9.14 L1288 9.31 L1296 9.47 L1304 9.64 L1312 9.82 L1320 10.00 L1328 10.18 L1336 10.37 L1344 10.56 L1352 10.75 L1360 10.95 L1368 11.15 L1376 11.35 L1384 11.55 L1392 11.75 L1400 11.96 L1408 12.16 L1416 12.37 L1424 12.58 L1432 12.79 L1440 13.00' fill='none' stroke='%23d9b98c' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 1440px 22px repeat-x;
  animation: waveDrift 40s linear infinite;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 22px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 L0 13.00 L8 12.79 L16 12.58 L24 12.37 L32 12.16 L40 11.96 L48 11.75 L56 11.55 L64 11.35 L72 11.15 L80 10.95 L88 10.75 L96 10.56 L104 10.37 L112 10.18 L120 10.00 L128 9.82 L136 9.64 L144 9.47 L152 9.31 L160 9.14 L168 8.99 L176 8.83 L184 8.68 L192 8.54 L200 8.40 L208 8.27 L216 8.15 L224 8.03 L232 7.91 L240 7.80 L248 7.70 L256 7.61 L264 7.52 L272 7.44 L280 7.36 L288 7.29 L296 7.23 L304 7.18 L312 7.13 L320 7.09 L328 7.06 L336 7.03 L344 7.01 L352 7.00 L360 7.00 L368 7.00 L376 7.01 L384 7.03 L392 7.06 L400 7.09 L408 7.13 L416 7.18 L424 7.23 L432 7.29 L440 7.36 L448 7.44 L456 7.52 L464 7.61 L472 7.70 L480 7.80 L488 7.91 L496 8.03 L504 8.15 L512 8.27 L520 8.40 L528 8.54 L536 8.68 L544 8.83 L552 8.99 L560 9.14 L568 9.31 L576 9.47 L584 9.64 L592 9.82 L600 10.00 L608 10.18 L616 10.37 L624 10.56 L632 10.75 L640 10.95 L648 11.15 L656 11.35 L664 11.55 L672 11.75 L680 11.96 L688 12.16 L696 12.37 L704 12.58 L712 12.79 L720 13.00 L728 13.21 L736 13.42 L744 13.63 L752 13.84 L760 14.04 L768 14.25 L776 14.45 L784 14.65 L792 14.85 L800 15.05 L808 15.25 L816 15.44 L824 15.63 L832 15.82 L840 16.00 L848 16.18 L856 16.36 L864 16.53 L872 16.69 L880 16.86 L888 17.01 L896 17.17 L904 17.32 L912 17.46 L920 17.60 L928 17.73 L936 17.85 L944 17.97 L952 18.09 L960 18.20 L968 18.30 L976 18.39 L984 18.48 L992 18.56 L1000 18.64 L1008 18.71 L1016 18.77 L1024 18.82 L1032 18.87 L1040 18.91 L1048 18.94 L1056 18.97 L1064 18.99 L1072 19.00 L1080 19.00 L1088 19.00 L1096 18.99 L1104 18.97 L1112 18.94 L1120 18.91 L1128 18.87 L1136 18.82 L1144 18.77 L1152 18.71 L1160 18.64 L1168 18.56 L1176 18.48 L1184 18.39 L1192 18.30 L1200 18.20 L1208 18.09 L1216 17.97 L1224 17.85 L1232 17.73 L1240 17.60 L1248 17.46 L1256 17.32 L1264 17.17 L1272 17.01 L1280 16.86 L1288 16.69 L1296 16.53 L1304 16.36 L1312 16.18 L1320 16.00 L1328 15.82 L1336 15.63 L1344 15.44 L1352 15.25 L1360 15.05 L1368 14.85 L1376 14.65 L1384 14.45 L1392 14.25 L1400 14.04 L1408 13.84 L1416 13.63 L1424 13.42 L1432 13.21 L1440 13.00 L1440 22 Z' fill='%231e2956'/%3E%3C/svg%3E") 0 0 / 1440px 22px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22' preserveAspectRatio='none'%3E%3Cpath d='M0 9.00 L8 8.79 L16 8.58 L24 8.37 L32 8.16 L40 7.96 L48 7.75 L56 7.55 L64 7.35 L72 7.15 L80 6.95 L88 6.75 L96 6.56 L104 6.37 L112 6.18 L120 6.00 L128 5.82 L136 5.64 L144 5.47 L152 5.31 L160 5.14 L168 4.99 L176 4.83 L184 4.68 L192 4.54 L200 4.40 L208 4.27 L216 4.15 L224 4.03 L232 3.91 L240 3.80 L248 3.70 L256 3.61 L264 3.52 L272 3.44 L280 3.36 L288 3.29 L296 3.23 L304 3.18 L312 3.13 L320 3.09 L328 3.06 L336 3.03 L344 3.01 L352 3.00 L360 3.00 L368 3.00 L376 3.01 L384 3.03 L392 3.06 L400 3.09 L408 3.13 L416 3.18 L424 3.23 L432 3.29 L440 3.36 L448 3.44 L456 3.52 L464 3.61 L472 3.70 L480 3.80 L488 3.91 L496 4.03 L504 4.15 L512 4.27 L520 4.40 L528 4.54 L536 4.68 L544 4.83 L552 4.99 L560 5.14 L568 5.31 L576 5.47 L584 5.64 L592 5.82 L600 6.00 L608 6.18 L616 6.37 L624 6.56 L632 6.75 L640 6.95 L648 7.15 L656 7.35 L664 7.55 L672 7.75 L680 7.96 L688 8.16 L696 8.37 L704 8.58 L712 8.79 L720 9.00 L728 9.21 L736 9.42 L744 9.63 L752 9.84 L760 10.04 L768 10.25 L776 10.45 L784 10.65 L792 10.85 L800 11.05 L808 11.25 L816 11.44 L824 11.63 L832 11.82 L840 12.00 L848 12.18 L856 12.36 L864 12.53 L872 12.69 L880 12.86 L888 13.01 L896 13.17 L904 13.32 L912 13.46 L920 13.60 L928 13.73 L936 13.85 L944 13.97 L952 14.09 L960 14.20 L968 14.30 L976 14.39 L984 14.48 L992 14.56 L1000 14.64 L1008 14.71 L1016 14.77 L1024 14.82 L1032 14.87 L1040 14.91 L1048 14.94 L1056 14.97 L1064 14.99 L1072 15.00 L1080 15.00 L1088 15.00 L1096 14.99 L1104 14.97 L1112 14.94 L1120 14.91 L1128 14.87 L1136 14.82 L1144 14.77 L1152 14.71 L1160 14.64 L1168 14.56 L1176 14.48 L1184 14.39 L1192 14.30 L1200 14.20 L1208 14.09 L1216 13.97 L1224 13.85 L1232 13.73 L1240 13.60 L1248 13.46 L1256 13.32 L1264 13.17 L1272 13.01 L1280 12.86 L1288 12.69 L1296 12.53 L1304 12.36 L1312 12.18 L1320 12.00 L1328 11.82 L1336 11.63 L1344 11.44 L1352 11.25 L1360 11.05 L1368 10.85 L1376 10.65 L1384 10.45 L1392 10.25 L1400 10.04 L1408 9.84 L1416 9.63 L1424 9.42 L1432 9.21 L1440 9.00' fill='none' stroke='%23d9b98c' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 1440px 22px repeat-x;
  animation: waveDrift 40s linear infinite reverse;
}

/* ===== 頁首往下捲動時縮小 ===== */
.header-inner {
  transition: height 0.35s ease;
}

.site-header {
  transition: box-shadow 0.35s ease;
}

.site-header .logo-icon,
.site-header .logo-text strong,
.site-header .logo-text small,
.site-header .hotline-icon,
.site-header .hotline-text strong {
  transition: all 0.35s ease;
}

.site-header.is-scrolled {
  --header-h: 70px;
  box-shadow: 0 6px 20px rgba(30, 41, 86, 0.25);
}

.site-header.is-scrolled .logo-icon {
  width: 34px;
  height: 34px;
}

.site-header.is-scrolled .logo-text strong {
  font-size: 21px;
}

.site-header.is-scrolled .logo-text small {
  font-size: 11px;
}

.site-header.is-scrolled .hotline-icon {
  width: 38px;
  height: 38px;
}

.site-header.is-scrolled .hotline-text strong {
  font-size: 17px;
}

.survey .survey-header {
  position: relative;
  z-index: 10;
}

/* ===== 頁首：會員登入 ===== */
.header-member {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 40px;
  padding: 6px 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  animation: fadeDown 0.6s 0.85s ease-out both;
}

.header-member svg {
  width: 17px;
  height: 17px;
}

.header-member:hover,
.header-member.active {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.header-member + .header-hotline {
  margin-left: 24px;
}

/* 電話圖示：滑過／點擊效果同會員登入 */
.header-hotline:hover .hotline-icon,
.header-hotline:active .hotline-icon,
.header-hotline.is-pressed .hotline-icon,
.header-hotline:focus-visible .hotline-icon {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.site-header .hotline-icon {
  transition: width 0.35s, height 0.35s, background-color 0.15s, border-color 0.15s;
}

.header-hotline .hotline-icon svg {
  transition: color 0.15s;
}

.header-hotline:hover .hotline-icon svg,
.header-hotline:active .hotline-icon svg,
.header-hotline.is-pressed .hotline-icon svg,
.header-hotline:focus-visible .hotline-icon svg {
  color: var(--navy);
}

/* ===== 會員登入 ===== */
.member-auth {
  display: flex;
  justify-content: center;
  padding: 80px 16px 100px;
  background:
    linear-gradient(rgba(247, 244, 239, 0.9), rgba(247, 244, 239, 0.9)),
    url('../images/home-hero.webp') center / cover no-repeat;
}

.member-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 44px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(30, 41, 86, 0.1);
}

.member-auth-card h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--navy);
}

.member-auth-desc {
  margin: 8px 0 28px;
  font-size: 15px;
  text-align: center;
  color: var(--text-muted);
}

.member-field {
  margin-bottom: 18px;
}

.member-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.member-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #d8d1c5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.member-line-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #06c755;
  border: 0;
  border-radius: 27px;
  cursor: pointer;
  transition: filter 0.2s;
}

.member-line-login:hover {
  filter: brightness(1.06);
}

.member-line-login:disabled {
  cursor: wait;
  opacity: 0.7;
}

.member-line-login svg {
  width: 26px;
  height: 26px;
}

.member-auth-card .member-error {
  margin-top: 14px;
}

.member-not-member {
  margin-top: 16px;
  padding: 16px;
  font-size: 14px;
  text-align: center;
  background: #fbf7f0;
  border: 1px solid #eadcc6;
  border-radius: 10px;
}

.member-not-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.member-line-tag {
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #06c755;
  border-radius: 4px;
}

.member-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: #c0453a;
  background: #fbe9e7;
  border-radius: 6px;
}

.member-submit {
  justify-content: center;
  width: 100%;
}

.member-demo-hint {
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
  color: #8a5a12;
  background: #fbf1df;
  border-radius: 6px;
}

.member-auth-help {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.member-auth-help a {
  color: var(--navy);
  font-weight: 500;
}

/* ===== 會員中心 ===== */
.member-center-section {
  padding: 64px 0 96px;
}

.member-center-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 40px;
}

.member-profile {
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-family: var(--serif);
  font-size: 28px;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}

.member-profile h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
}

.member-relation {
  font-size: 14px;
  color: var(--text-muted);
}

.member-profile dl {
  margin: 20px 0 24px;
  padding-top: 16px;
  font-size: 14px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.member-profile dt {
  color: var(--text-muted);
}

.member-profile dd {
  margin: 0 0 10px;
  word-break: break-all;
}

.member-section-title {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.member-memorial {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(30, 41, 86, 0.05);
}

.member-memorial img {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 6px;
}

.member-memorial h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
}

.member-memorial-dates {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.member-contract {
  margin-top: 4px;
  font-size: 14px;
  color: #8a6235;
}

.member-memorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.member-badge {
  padding: 0 10px;
  font-size: 12px;
  line-height: 22px;
  border-radius: 11px;
}

.member-badge.is-public {
  color: #2f6b47;
  background: #e8f4ec;
}

.member-memorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 靜思頁面：點一盞燈 ===== */
.memorial .memorial-lamps {
  padding: 56px 0 72px;
}

.memorial .lamp-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.memorial .lamp-main {
  position: relative;
  width: 200px;
  height: 160px;
}

.memorial .lamp-float {
  position: relative;
  z-index: 2;
  animation: lampFloat 5s ease-in-out infinite;
}

.memorial .lamp-main img {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 98%);
  filter: drop-shadow(0 0 18px rgba(255, 200, 120, 0.45));
  animation: lampGlow 3.2s ease-in-out infinite;
}

/* 疊在圖片燭火上的動態火焰 */
.memorial .lamp-big-flame {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 18px;
  height: 34px;
  margin-left: -9px;
  background: radial-gradient(ellipse at 50% 72%, #fffbe8 0%, #ffe39a 35%, #ffb04a 70%, rgba(255, 140, 40, 0) 100%);
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  box-shadow: 0 0 22px 8px rgba(255, 196, 110, 0.55);
  mix-blend-mode: screen;
  transform-origin: 50% 90%;
  animation: flameFlicker 1.6s ease-in-out infinite;
}

.memorial .lamp-reflection {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 170px;
  height: 26px;
  margin-left: -85px;
  background: radial-gradient(ellipse, rgba(255, 205, 130, 0.45) 0%, rgba(255, 190, 110, 0.12) 50%, transparent 72%);
  border-radius: 50%;
  animation: lampReflect 5s ease-in-out infinite;
}

/* 持續往上飄的光點 */
.memorial .lamp-sparks {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.memorial .lamp-sparks span,
.memorial .lamp-burst-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  background: #ffe7b0;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 210, 140, 0.8);
  opacity: 0;
}

.memorial .lamp-sparks span {
  animation: sparkRise 5s ease-out infinite;
}

.memorial .lamp-sparks span:nth-child(1) { --x: -60px; animation-delay: 0s; }
.memorial .lamp-sparks span:nth-child(2) { --x: 40px; animation-delay: 0.7s; width: 4px; height: 4px; }
.memorial .lamp-sparks span:nth-child(3) { --x: -20px; animation-delay: 1.4s; }
.memorial .lamp-sparks span:nth-child(4) { --x: 70px; animation-delay: 2.1s; width: 3px; height: 3px; }
.memorial .lamp-sparks span:nth-child(5) { --x: -80px; animation-delay: 2.8s; width: 4px; height: 4px; }
.memorial .lamp-sparks span:nth-child(6) { --x: 15px; animation-delay: 3.5s; }
.memorial .lamp-sparks span:nth-child(7) { --x: 55px; animation-delay: 4.2s; width: 3px; height: 3px; }
.memorial .lamp-sparks span:nth-child(8) { --x: -40px; animation-delay: 4.6s; width: 4px; height: 4px; }

.memorial .lamp-burst-spark {
  animation: sparkBurst 1.8s ease-out forwards;
}

@keyframes lampFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes lampGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 200, 120, 0.4)); }
  50% { filter: drop-shadow(0 0 28px rgba(255, 210, 140, 0.75)); }
}

@keyframes lampReflect {
  0%, 100% { opacity: 0.9; transform: scaleX(1); }
  50% { opacity: 0.55; transform: scaleX(0.85); }
}

@keyframes sparkRise {
  0% { opacity: 0; transform: translate(0, 20px) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), -150px) scale(1); }
}

@keyframes sparkBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1.4); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.4); }
}

/* 點燈當下：燈往上輕彈 */
.memorial .lamp-main.is-burst .lamp-float {
  animation: lampPop 1s cubic-bezier(0.34, 1.56, 0.64, 1), lampFloat 5s 1s ease-in-out infinite;
}

@keyframes lampPop {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-24px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

.memorial .lamp-halo {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.45) 0%, rgba(255, 190, 110, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  animation: lampBreath 4s ease-in-out infinite;
}

.memorial .lamp-main.is-lit img {
  animation-duration: 2.4s;
}

.memorial .lamp-main.is-lit .lamp-big-flame {
  box-shadow: 0 0 30px 12px rgba(255, 200, 120, 0.7);
}

.memorial .lamp-main.is-burst .lamp-halo {
  animation: lampBurst 1.6s ease-out, lampBreath 4s 1.6s ease-in-out infinite;
}

@keyframes lampBreath {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes lampBurst {
  0% { opacity: 1; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1.9); }
  100% { opacity: 0.75; transform: scale(1); }
}

.memorial .lamp-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 16px;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.memorial .lamp-count strong {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: #f3d79e;
}

.memorial .lamp-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.memorial .lamp-input {
  width: 100%;
  max-width: 320px;
  height: 44px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  outline: none;
}

.memorial .lamp-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.memorial .lamp-input:focus {
  border-color: var(--memorial-gold);
}

.memorial .lamp-wishes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.memorial .lamp-wish {
  position: relative;
  cursor: pointer;
}

.memorial .lamp-wish input {
  position: absolute;
  opacity: 0;
}

.memorial .lamp-wish span {
  display: block;
  padding: 6px 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.memorial .lamp-wish input:checked + span {
  color: var(--navy);
  background: #f3d79e;
  border-color: #f3d79e;
}

.memorial .lamp-wish input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(243, 215, 158, 0.45);
}

.memorial .lamp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  margin-top: 4px;
  padding: 0 36px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: linear-gradient(135deg, #f6dfaa, #d2a868);
  border: 0;
  border-radius: 25px;
  box-shadow: 0 0 24px rgba(243, 200, 120, 0.45);
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.memorial .lamp-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 34px rgba(243, 200, 120, 0.65);
}

.memorial .lamp-button svg {
  width: 20px;
  height: 20px;
}

.memorial .lamp-button:disabled {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  cursor: default;
  filter: none;
}

.memorial .lamp-feedback {
  min-height: 22px;
  font-size: 14px;
  color: #f3d79e;
}

.memorial .lamp-wall {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.memorial .lamp-item time {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.5;
}

/* 全部點燈／完整留言彈窗 */
.memorial-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(5, 12, 28, 0.88);
  animation: lightboxFade 0.25s ease;
}

.memorial-modal[hidden] {
  display: none;
}

.memorial-modal-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  color: #fff;
  background: linear-gradient(180deg, #13284f, #0b1a3a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.memorial-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.memorial-modal-header h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.memorial-modal-close {
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.8;
}

.memorial-modal-body {
  overflow-y: auto;
  padding: 20px 22px 24px;
}

.memorial-modal .modal-lamp-wall {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  margin-top: 0;
}

.memorial-modal .modal-message-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.memorial-modal .message-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.memorial-modal .message-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.memorial-modal .message-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--serif);
  color: var(--navy);
  background: #efe4cf;
  border-radius: 50%;
}

.memorial-modal .message-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.memorial-modal .message-card time {
  font-size: 12px;
  opacity: 0.65;
}

.memorial-modal .message-card p {
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-word;
}

.memorial-modal .lamp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.memorial .lamp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.memorial .lamp-item.is-new {
  border-color: #f3d79e;
  box-shadow: 0 0 20px rgba(243, 215, 158, 0.35);
  animation: lampNew 1.2s ease-out;
}

@keyframes lampNew {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
}

.memorial .lamp-item strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memorial .lamp-item small {
  font-size: 12px;
  color: #f3d79e;
}

/* 小燈：燈座＋搖曳火焰 */
.memorial .lamp-mini {
  position: relative;
  width: 26px;
  height: 34px;
  margin-bottom: 4px;
}

.memorial .lamp-mini::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 14px;
  background: linear-gradient(#f5ead6, #d9c7a6);
  border-radius: 3px 3px 5px 5px;
}

.memorial .lamp-flame {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 18px;
  margin-left: -5px;
  background: radial-gradient(ellipse at 50% 70%, #fff6d8 0%, #ffd27a 45%, #ff9f43 80%, transparent 100%);
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  box-shadow: 0 0 12px 4px rgba(255, 190, 100, 0.45);
  transform-origin: 50% 90%;
  animation: flameFlicker 1.8s ease-in-out infinite;
}

.memorial .lamp-item:nth-child(3n) .lamp-flame { animation-duration: 2.2s; }
.memorial .lamp-item:nth-child(3n + 1) .lamp-flame { animation-delay: -0.7s; }

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) rotate(-2deg); opacity: 1; }
  30% { transform: scale(1.06, 0.94) rotate(2deg); opacity: 0.9; }
  60% { transform: scale(0.95, 1.05) rotate(-1deg); opacity: 1; }
}

/* ===== LINE LIFF 入口 ===== */
.liff-page {
  background: var(--bg);
}

.liff-wrap {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.liff-hero {
  padding: 22px 20px 26px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(30, 41, 86, 0.75), rgba(30, 41, 86, 0.95)),
    url('../images/memorial/hero-bg.webp') center / cover no-repeat;
  border-radius: 0 0 24px 24px;
}

.liff-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.liff-brand svg {
  width: 26px;
  height: 26px;
  color: var(--gold-light);
}

.liff-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.liff-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  background: var(--gold-light);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

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

.liff-greeting {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.liff-sub {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.8;
}

.liff-demo {
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 12px;
  color: #6b4a14;
  background: #f6dfa8;
  border-radius: 6px;
}

.liff-main {
  padding: 8px 16px 24px;
}

.liff-section {
  margin-top: 22px;
}

.liff-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.liff-title svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.liff-list {
  display: grid;
  gap: 10px;
}

.liff-empty {
  padding: 18px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.liff-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(30, 41, 86, 0.05);
}

.liff-card-body {
  flex: 1;
  min-width: 0;
}

.liff-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
}

.liff-card small {
  font-size: 12px;
  color: var(--text-muted);
}

.liff-card-action {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 18px;
}

.liff-memorial {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(30, 41, 86, 0.05);
}

.liff-memorial-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.liff-memorial-main img,
.liff-photo-empty {
  flex-shrink: 0;
  width: 56px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
}

.liff-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  background: var(--gold);
}

.liff-memorial-main strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
}

.liff-memorial-main small {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.liff-memorial-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.liff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 19px;
  cursor: pointer;
}

.liff-btn-gold {
  color: var(--navy);
  background: linear-gradient(135deg, #f6dfaa, #d2a868);
  border-color: transparent;
}

.liff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.liff-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.liff-tile svg {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  color: var(--gold);
}

.liff-tile strong {
  font-size: 15px;
  color: var(--navy);
}

.liff-tile small {
  font-size: 12px;
  color: var(--text-muted);
}

.liff-footer {
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.liff-close {
  width: 100%;
  height: 46px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  cursor: pointer;
}

.liff-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background: rgba(30, 41, 86, 0.92);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.25s;
}

.liff-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 花禮問卷：LINE 身分提示 */
.survey .survey-line-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
  background: #effaf3;
  border: 1px solid #bfe8cd;
  border-radius: 10px;
}

.survey .survey-line-user strong {
  color: #0b6b34;
}

/* ===== LINE LIFF 會員頁：頁籤、表單、服務、訂購紀錄 ===== */
.liff-title-gap {
  margin-top: 26px;
}

.liff-memorial-actions-2 {
  grid-template-columns: repeat(2, 1fr);
}

.liff-tabbar.liff-tabbar-2,
.liff-tabbar:has(> .liff-tab:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.liff-memorial-contract {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.liff-status.is-expired {
  color: #c0453a;
  background: #fbe9e7;
}

.liff-memorial-pending {
  background: #fdfaf4;
  border-style: dashed;
}

#myMemorials {
  margin-bottom: 22px;
}

.liff-plans {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
  text-align: left;
}

.liff-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eadcc6;
  border-radius: 10px;
}

.liff-plan strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.liff-plan small {
  font-size: 12px;
  color: var(--text-muted);
}

.liff-plan-price {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: #9a6b33;
}

.liff-plan-price span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.liff-plan-empty {
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.liff-plan-empty a {
  font-weight: 700;
  color: var(--navy);
}

.liff-plan-options {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.liff-plan-option {
  position: relative;
  cursor: pointer;
}

.liff-plan-option input {
  position: absolute;
  opacity: 0;
}

.liff-plan-option span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid #d8d1c5;
  border-radius: 10px;
  transition: border-color 0.2s, background-color 0.2s;
}

.liff-plan-option strong {
  font-size: 15px;
  color: var(--navy);
}

.liff-plan-option em {
  font-style: normal;
  font-weight: 700;
  color: #9a6b33;
}

.liff-plan-option input:checked + span {
  background: #fdf8ef;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.liff-plan-option input:focus-visible + span {
  outline: 2px solid var(--gold);
}

.liff-apply {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadcc6;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(30, 41, 86, 0.06);
}

.liff-apply-intro,
.liff-apply-done {
  padding: 22px 18px;
  text-align: center;
  background:
    linear-gradient(rgba(251, 247, 240, 0.92), rgba(251, 247, 240, 0.92)),
    url('../images/memorial/hero-bg.webp') center / cover no-repeat;
}

.liff-apply-intro h2,
.liff-apply-done h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.liff-apply-intro p,
.liff-apply-done p {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #55585f;
}

.liff-apply-done p {
  margin-bottom: 0;
}

.liff-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 22px;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}

.liff-apply-form {
  border: 0;
  border-radius: 0;
}

.liff-form-title {
  margin: 4px 0 12px;
  padding-bottom: 6px;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.liff-form-title ~ .liff-form-title {
  margin-top: 20px;
}

.liff-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.liff-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid #d8d1c5;
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

.liff-field textarea:focus {
  border-color: var(--gold);
}

.liff-required {
  color: #c0453a;
}

.liff-cancel {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.liff-page .liff-wrap {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.liff-panel {
  padding-top: 20px;
}

.liff-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 520px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(30, 41, 86, 0.06);
  transform: translateX(-50%);
}

.liff-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 64px;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.liff-tab svg {
  width: 24px;
  height: 24px;
}

.liff-tab.active {
  font-weight: 700;
  color: var(--navy);
}

.liff-tab.active svg {
  color: var(--gold);
}

.liff-form {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.liff-field {
  margin-bottom: 16px;
}

.liff-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.liff-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #d8d1c5;
  border-radius: 8px;
  outline: none;
}

.liff-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 90, 0.15);
}

.liff-error {
  margin-bottom: 12px;
  padding: 8px 12px;
  font-size: 14px;
  color: #c0453a;
  background: #fbe9e7;
  border-radius: 6px;
}

.liff-submit {
  width: 100%;
  height: 48px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 24px;
  cursor: pointer;
}

.liff-service {
  display: flex;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.liff-service img {
  flex-shrink: 0;
  width: 112px;
  object-fit: cover;
}

.liff-service-body {
  padding: 12px 14px;
}

.liff-service h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
}

.liff-service p {
  margin: 2px 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.liff-service-btn {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 14px;
}

.liff-order {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.liff-order header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.liff-status {
  padding: 0 10px;
  font-size: 12px;
  line-height: 22px;
  border-radius: 11px;
}

.liff-status.is-pending {
  color: #8a5a12;
  background: #fbf1df;
}

.liff-status.is-confirmed {
  color: #1f4f8a;
  background: #e6eef9;
}

.liff-status.is-done {
  color: #2f6b47;
  background: #e8f4ec;
}

.liff-order h3 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
}

.liff-order ul {
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.liff-order li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.liff-order li + li {
  margin-top: 4px;
}

.liff-order-total {
  margin-top: 10px;
  font-size: 14px;
  text-align: right;
  color: var(--text-muted);
}

.liff-order-total strong {
  font-size: 17px;
  color: var(--navy);
}

/* ===== RWD ===== */
/* ===== 全站按鈕統一滑過／點擊效果（同頁首會員登入：金色底、深藍字） ===== */
/* 不含：後台頁面、LINE 綠色按鈕、社群浮動按鈕、點燈按鈕（品牌色／特效） */
body:not([class*="admin"]) .btn,
.survey .survey-call,
.survey .survey-card-add,
.survey .survey-edit,
.survey .survey-pill,
.memorial .message-submit,
.memorial .album-nav,
.lightbox-nav,
.filter-tab,
.faq .faq-cat,
.liff-btn,
.liff-submit {
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, transform 0.3s;
}

body:not([class*="admin"]) .btn:hover,
body:not([class*="admin"]) .btn:active,
body:not([class*="admin"]) .btn:focus-visible,
.service-detail .page-hero-actions .btn:hover,
.service-detail .service-order-banner .btn-lg:hover,
.survey .survey-call:hover,
.survey .survey-call:active,
.survey .survey-card-add:hover,
.survey .survey-card-add:active,
.survey .survey-edit:hover,
.survey .survey-edit:active,
.survey .survey-pill:not(.is-selected):hover,
.survey .survey-pill:not(.is-selected):active,
.memorial .message-submit:hover,
.memorial .message-submit:active,
.memorial .album-nav:not(:disabled):hover,
.memorial .album-nav:not(:disabled):active,
.lightbox-nav:hover,
.lightbox-nav:active,
.back-to-top.is-visible:hover,
.back-to-top.is-visible:active,
.filter-tab:not(.active):hover,
.filter-tab:not(.active):active,
.faq .faq-cat:not(.active):hover,
.faq .faq-cat:not(.active):active,
.liff-btn:hover,
.liff-btn:active,
.liff-submit:hover,
.liff-submit:active {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
  filter: none;
}

/* ===== 最新消息：公告（後台文章）無資料與分頁 ===== */
.news .notice-list .notice-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
}

.news .notice-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.news .notice-pager-info {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== 錯誤頁（404／403）與網站維護中 ===== */
.error-page {
  padding: 120px 0 140px;
  text-align: center;
}

.error-page .error-code {
  margin: 0;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.error-page .error-title {
  margin: 20px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.error-page .error-desc {
  margin: 0 0 36px;
  color: var(--text-muted);
}

.error-page .error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 1366px) {
  .main-nav {
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .main-nav {
    gap: 24px;
  }

  .header-hotline {
    margin-left: 32px;
  }

  .home .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 991px) {
  :root {
    --header-h: 72px;
  }

  .container {
    padding: 0 24px;
  }

  .logo-text strong {
    font-size: 19px;
  }

  .header-hotline {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: 16px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
  }

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

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

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

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

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

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-item {
    display: block;
    height: auto;
  }

  .main-nav .nav-item > a {
    display: flex;
    width: 100%;
    border-bottom: 0;
  }

  .nav-caret {
    display: none;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 8px;
    background: none;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .main-nav .nav-dropdown a {
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 0;
  }

  .home .hero {
    min-height: 640px;
  }

  .home .hero-inner {
    padding-left: 24px;
  }

  .home .hero-title {
    font-size: 44px;
  }

  .home .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .home .feature-item:nth-child(3) {
    border-left: 0;
  }

  .home .feature-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .home .intro {
    padding: 80px 0;
  }

  .home .intro-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home .intro-content {
    padding-left: 0;
    border-left: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hotline-text {
    display: none;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text small {
    font-size: 11px;
  }

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

  .home .hero {
    min-height: 580px;
    padding: 56px 0 64px;
    background:
      linear-gradient(180deg, rgba(247, 240, 230, 0.25) 0%, rgba(0, 0, 0, 0) 35%, rgba(30, 41, 86, 0.55) 75%, rgba(30, 41, 86, 0.75) 100%),
      var(--hero-image, none) 65% center / cover no-repeat;
  }

  .home .scroll-hint {
    display: none;
  }

  .home .hero-inner {
    padding-left: 16px;
  }

  .home .hero-lead,
  .home .hero-desc {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .home .hero-title {
    font-size: 32px;
    letter-spacing: 0.04em;
  }

  .home .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .home .feature-item {
    padding: 24px 8px;
  }

  .home .feature-item h3 {
    font-size: 16px;
  }

  .home .feature-item p {
    font-size: 13px;
  }

  .home .intro-text {
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .home .intro-text br {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== 花禮問卷 RWD ===== */
@media (max-width: 600px) {
  .survey .survey-container {
    padding: 0 16px;
  }

  .survey .survey-header-inner {
    height: 64px;
  }

  .survey .survey-main {
    padding: 20px 0 32px;
  }

  .survey .survey-hero {
    padding: 24px 18px;
  }

  .survey .survey-deceased {
    font-size: 24px;
  }

  .survey .survey-detail,
  .survey .survey-intro,
  .survey .survey-closing {
    font-size: 15px;
  }

  .survey .survey-schedule {
    padding: 12px 18px;
    font-size: 15px;
  }

  .survey .survey-schedule span {
    min-width: 76px;
    margin-right: 8px;
  }

  .survey .survey-info-block {
    padding: 18px 16px;
  }

  .survey .gift-line {
    gap: 10px;
    padding: 12px;
  }

  .survey .gift-line .qty-stepper {
    width: 116px;
  }

  .survey .survey-question {
    padding: 20px 16px;
  }

  .survey .survey-label {
    font-size: 17px;
  }

  .survey .gift-grid {
    gap: 10px;
  }

  .survey .gift-info {
    padding: 10px;
  }

  .survey .gift-info h3 {
    font-size: 15px;
  }

  .survey .gift-price {
    font-size: 15px;
  }

  .survey .qty-stepper button {
    width: 38px;
  }

  .survey.has-total .survey-submit {
    display: none;
  }

  .survey .survey-total-inner {
    height: 70px;
  }

  .survey .survey-total strong {
    font-size: 19px;
  }

  .survey .survey-summary {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .survey .survey-summary dd {
    margin-bottom: 10px;
  }

  .survey .survey-card-done-grid {
    grid-template-columns: 1fr;
  }

  .survey .survey-card-entry.is-compact {
    grid-template-columns: 1fr 96px;
    gap: 0 12px;
  }

  .flowers .flowers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .survey .survey-step-btn {
    font-size: 11px;
    gap: 6px;
  }

  .survey .survey-step-no {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .survey .survey-steps li:not(:last-child)::after {
    top: 14px;
  }

  .survey .survey-total .btn {
    padding: 0 18px;
    font-size: 15px;
  }

  .survey .survey-total .survey-total-actions .btn-outline-gold {
    padding: 0 14px;
  }

  .service-detail .service-section {
    padding: 44px 0;
  }

  .service-detail .service-section > .container > .section-title,
  .service-detail .service-intro-content .section-title {
    font-size: 28px;
  }

  .service-detail .service-highlight-grid,
  .service-detail .service-other-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .service-detail .service-order-banner {
    padding: 28px 24px;
  }

  .service-detail .service-order-banner h3 {
    font-size: 24px;
  }

  .service-detail .service-order-banner .btn-lg,
  .service-detail .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-detail .service-cta-actions,
  .service-detail .service-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .survey .survey-card-thumb,
  .survey .survey-card-thumb .flower-card {
    width: 96px;
    max-width: 96px;
  }

}

/* ===== 靜思頁面 RWD ===== */
@media (max-width: 991px) {
  .memorial .memorial-hero-inner {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .memorial .memorial-hero-text h1 {
    font-size: 60px;
  }

  .memorial .album-item {
    flex-basis: calc((100% - 28px) / 3);
  }

  .memorial .message-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .memorial .message-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .memorial .memorial-container {
    padding: 0 16px;
  }

  .memorial .memorial-hero {
    padding: 48px 0 96px;
  }


  .memorial .memorial-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .memorial .memorial-portrait-wrap {
    width: 220px;
    margin: 0 auto;
  }

  .memorial .memorial-deco-lily {
    left: -50px;
    bottom: -40px;
    width: 150px;
  }

  .memorial .memorial-deco-candle {
    left: 44px;
    bottom: -30px;
    width: 40px;
  }

  .memorial .memorial-hero-text h1 {
    font-size: 48px;
  }

  .memorial .memorial-hero-subtitle {
    font-size: 20px;
  }

  .memorial .memorial-hero-subtitle::after {
    left: 50%;
    margin-left: -36px;
  }

  .memorial .memorial-hero-desc {
    font-size: 15px;
  }

  .memorial .memorial-hero-quote {
    position: static;
    justify-self: center;
    font-size: 16px;
    transform: rotate(-6deg);
  }

  .memorial .memorial-name {
    font-size: 32px;
  }

  .memorial .memorial-name::before,
  .memorial .memorial-name::after {
    width: 28px;
    margin: 0 8px;
  }

  .memorial .memorial-name small {
    font-size: 18px;
  }

  .memorial .memorial-dates {
    font-size: 16px;
  }

  .memorial .memorial-quote {
    font-size: 19px;
  }

  .memorial .memorial-intro {
    font-size: 15px;
  }

  .memorial .memorial-heading h2 {
    font-size: 26px;
  }

  .memorial .memorial-heading p {
    font-size: 14px;
  }

  /* 時間軸改直式 */
  .memorial .memorial-timeline {
    grid-auto-flow: row;
    gap: 28px;
    padding-left: 28px;
  }

  .memorial .memorial-timeline::before {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 6%, rgba(255, 255, 255, 0.55) 94%, transparent);
  }

  .memorial .memorial-timeline li {
    padding-top: 0;
    text-align: left;
  }

  .memorial .timeline-dot {
    top: 8px;
    left: -28px;
    margin-left: 0;
  }

  .memorial .album-carousel {
    padding: 0;
  }

  .memorial .album-nav {
    display: none;
  }

  .memorial .album-item {
    flex-basis: 72%;
  }

  .memorial .message-actions {
    gap: 10px;
  }

  .memorial .message-name {
    flex: 1;
    width: auto;
  }

  .memorial .message-submit {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .memorial .message-list {
    grid-template-columns: 1fr;
  }
}

/* ===== 相簿燈箱 RWD ===== */
@media (max-width: 768px) {
  .lightbox {
    padding: 56px 12px 40px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 20px;
    width: 42px;
    height: 42px;
    margin-top: 0;
  }

  .lightbox-figure img {
    max-height: calc(100% - 80px);
  }
}

/* ===== 內頁 RWD ===== */
@media (max-width: 991px) {
  .page-hero {
    min-height: 280px;
  }

  .page-hero-title {
    font-size: 42px;
  }

  .card-grid,
  .about .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about .about-intro-inner,
  .contact .contact-inner,
  .service-detail .service-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail .service-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail .service-other-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact .contact-form-wrap {
    padding-left: 0;
    border-left: 0;
  }

  .faq .faq-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq .faq-cats {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .faq .faq-cat {
    flex-shrink: 0;
    padding: 0 18px;
  }

  .faq .faq-list {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 220px;
    padding: 40px 0;
    background:
      linear-gradient(90deg, rgba(30, 41, 86, 0.9) 0%, rgba(30, 41, 86, 0.6) 100%),
      var(--hero-image) var(--hero-position, center) / cover no-repeat;
  }

  .page-hero-title {
    font-size: 32px;
  }

  .page-hero-sub {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .list-section {
    padding: 32px 0 64px;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -16px 28px;
    padding: 0 16px 4px;
    overflow-x: auto;
  }

  .filter-tab {
    flex-shrink: 0;
    min-width: 0;
    padding: 0 16px;
    font-size: 14px;
  }

  .card-grid,
  .about .value-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 52px 0;
  }

  .cta-band-title {
    font-size: 22px;
    letter-spacing: 0.08em;
  }

  .cta-band-sub {
    font-size: 15px;
  }

  .cta-band-split .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .about .about-intro {
    padding: 48px 0;
  }

  .about .about-intro-content p {
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .news-detail .article-header h1 {
    font-size: 28px;
  }

  .news-detail .article-content {
    font-size: 16px;
  }

  .faq .faq-section {
    padding: 32px 0 64px;
    background: var(--bg);
  }

  .faq .faq-question,
  .service-detail .faq-question {
    gap: 12px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .faq .faq-q {
    width: 30px;
    height: 30px;
  }

  .faq .faq-answer {
    padding: 0 16px 16px 56px;
    font-size: 15px;
  }

  .contact .contact-section {
    padding: 40px 0 64px;
  }

  .contact .contact-phone {
    font-size: 26px;
  }

  .contact .contact-form-wrap h2 {
    font-size: 26px;
  }

  .contact .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 右下角社群按鈕 RWD ===== */
@media (max-width: 600px) {
  .social-float {
    right: 12px;
    bottom: 16px;
    gap: 10px;
  }

  .social-float-btn {
    width: 44px;
    height: 44px;
  }

  .social-float-btn svg {
    width: 23px;
    height: 23px;
  }

  .social-float-label {
    display: none;
  }

  .survey.has-total .social-float {
    bottom: 86px;
  }

  .back-to-top:not(.is-visible) {
    margin-top: -10px;
  }
}

/* ===== 首頁：Google 評價 RWD ===== */
@media (max-width: 768px) {
  .home .reviews {
    padding: 56px 0 64px;
  }

  .home .reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home .reviews-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== 最新消息：公告與 FB 貼文 RWD ===== */
@media (max-width: 600px) {
  .news .news-tab {
    flex: 1;
    min-width: 0;
    font-size: 18px;
  }

  .news .notice-list a {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 16px;
  }

  .news .notice-list time {
    min-width: 0;
    font-size: 13px;
  }

  .news .notice-title {
    flex-basis: 100%;
    font-size: 16px;
  }

  .news .notice-arrow {
    display: none;
  }
}

/* ===== 進場動畫 RWD：手機改用上浮，避免字距動畫造成標題暫時換行 ===== */
@media (max-width: 600px) {
  .home .hero-title,
  .page-hero-title,
  .memorial .memorial-hero-text h1 {
    animation-name: heroRise;
  }
}

/* ===== 進場動畫：系統開啟「減少動態效果」時關閉 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 頁首縮小 RWD ===== */
@media (max-width: 991px) {
  .site-header.is-scrolled {
    --header-h: 60px;
  }
}

/* ===== 會員 RWD ===== */
@media (max-width: 1200px) {
  .header-member {
    margin-left: 24px;
  }
}

@media (max-width: 991px) {
  .header-member {
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    border-radius: 50%;
  }

  .header-member svg {
    width: 18px;
    height: 18px;
  }

  .header-member span {
    display: none;
  }

  /* 手機版電話圖示與會員按鈕同尺寸、同框線、同圖示色 */
  .site-header .hotline-icon,
  .site-header.is-scrolled .hotline-icon {
    width: 40px;
    height: 40px;
  }

  .hotline-icon {
    border-color: rgba(255, 255, 255, 0.4);
  }

  .site-header .hotline-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
  }

  .header-member + .header-hotline {
    margin-left: 12px;
  }

  .member-center-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .member-auth {
    padding: 40px 16px 64px;
  }

  .member-auth-card {
    padding: 32px 22px;
  }

  .member-center-section {
    padding: 32px 0 64px;
  }

  .member-memorial {
    flex-direction: column;
  }

  .member-memorial img {
    width: 120px;
  }
}

/* ===== 點一盞燈 RWD ===== */
@media (max-width: 600px) {
  .memorial .lamp-main {
    width: 160px;
    height: 128px;
  }

  .memorial .lamp-count strong {
    font-size: 32px;
  }

  .memorial .lamp-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .memorial-modal .modal-message-list {
    grid-template-columns: 1fr;
  }

  .memorial-modal .modal-lamp-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .memorial .lamp-item {
    padding: 12px 6px 10px;
  }
}

/* ===== 點燈 9 欄：中等寬度改為 5 欄避免過擠 ===== */
@media (min-width: 601px) and (max-width: 991px) {
  .memorial .lamp-wall:not(.modal-lamp-wall) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
