/* ============================================================
   親愛婚姻媒合 — 主樣式表
   Bootstrap 5 擴充 + 品牌色系
   設計語言：明亮活力風（Bright）+ 雜誌式不對稱拼接排版
   ============================================================ */

/* ── CSS 變數 ── */
:root {
  --bg:             #FFFFFF;   /* 全站頁面底色 */
  --panel:          #FFF2F6;   /* 淺色區塊（交替節奏用） */
  --surface:        #FFFFFF;   /* 卡片表面 */
  --surface-hover:  #FFF7F9;   /* 卡片 hover 表面 */
  --deep:           #7A2E52;   /* 深彩色重點區塊（Hero覆蓋／Footer／CTA），非黑色 */
  --deep-2:         #591F3C;
  --text-dark:      #2B2230;   /* 主文字 */
  --text-mid:       #8A7B85;   /* 次要文字 */
  --primary:        #E8577B;
  --primary-light:  #F589A5;
  --primary-dark:   #C23C60;
  --gold:           #F0A93A;
  --gold-light:     #F7C669;
  --border:         #F5D9E1;
  --border-soft:    #FBE9EE;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── Base ── */
body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  font-size: .96rem;
}
h1, h2, h3, .navbar-brand-text, .hero h1, .svc-hero-title {
  font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── Topbar ── */
.topbar {
  background: var(--deep);
  color: #fff;
  font-size: .8rem;
  padding: 7px 0;
  letter-spacing: .02em;
}
.topbar-badge { color: var(--gold-light); }
.topbar-badge i { margin-right: .4rem; color: var(--gold-light); }
.topbar-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.topbar-links a:hover { color: var(--gold-light); }
.topbar-sep { opacity: .4; margin: 0 .4rem; }

/* ── Navbar ── */
.navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: box-shadow .25s, padding .25s;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(232,87,123,.1);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-dark) !important;
}
.navbar-brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.navbar-brand-text {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.navbar-brand-text em { color: var(--primary); font-style: normal; }
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: .93rem;
  padding: .5rem 1rem !important;
  border-radius: 20px;
  transition: all .2s;
}
.nav-link:hover,
.nav-link.active {
  background: var(--panel);
  color: var(--primary) !important;
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: .5rem 1.3rem !important;
  box-shadow: 0 4px 14px rgba(232,87,123,.3);
}
.nav-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(232,87,123,.42);
}

/* ── Hero Banner ── */
.hero {
  background: var(--deep);
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(122,46,82,.35) 0%, rgba(122,46,82,.25) 40%, rgba(89,31,60,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 3rem 2rem; width: 100%; display: flex; justify-content: center; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0,0,0,.2);
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  color: rgba(255,255,255,.92);
  font-size: 1.04rem;
  margin-top: 1.1rem;
  max-width: 34rem;
}
.hero .btn { border-radius: 30px; }
.hero .btn-warning {
  background: linear-gradient(135deg, var(--gold), #E0921E) !important;
  border-color: transparent !important;
  color: #3a2410 !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(240,169,58,.4);
}
.hero .btn-warning:hover { filter: brightness(1.05); }
.hero .btn-outline-light {
  border-width: 1.5px;
  backdrop-filter: blur(4px);
}

/* ── Hero Carousel ── */
.hero-carousel { background: var(--deep); }
.hero-carousel .carousel-item { transition: transform .7s ease; }
.carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
}
.carousel-indicators .active { background: var(--gold-light); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--panel);
  color: var(--text-dark);
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: .84rem; color: var(--text-mid); margin-top: .4rem; }

/* ── Section Title ── */
.section-title { text-align: center; margin-bottom: 2.6rem; }
.section-title h2,
.section-title h1 {
  font-size: 1.85rem;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h2::after,
.section-title h1::after {
  content: '❖';
  display: block;
  font-size: .75rem;
  color: var(--gold);
  margin: .7rem auto 0;
  letter-spacing: .5em;
  text-indent: .5em;
}
.section-title.text-start { text-align: left; }
.section-title.text-start h2::after,
.section-title.text-start h1::after {
  margin: .7rem 0 0;
  letter-spacing: 0;
  text-indent: 0;
}
.section-title p { color: var(--text-mid); margin-top: .6rem; }

/* ── Country Filter Tabs ── */
.country-tabs .tab-link {
  display: inline-block;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 30px;
  margin: 3px;
  font-size: .89rem;
  padding: .4rem 1.1rem;
  transition: all .2s;
  text-decoration: none;
}
.country-tabs .tab-link.active,
.country-tabs .tab-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Profile Card ── */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.profile-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 16px 32px rgba(232,87,123,.18);
}
.profile-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 2.5rem;
}
.profile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-card-body { padding: 1.1rem; }
.profile-card-body h5 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: .5rem;
  font-size: .98rem;
}
.profile-badge {
  background: var(--panel);
  color: var(--text-mid);
  font-size: .72rem;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 2px 1px;
}
.profile-card-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: .4rem 1.2rem;
  font-size: .84rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
  display: block;
  text-align: center;
  box-shadow: 0 3px 10px rgba(232,87,123,.25);
}
.profile-card-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 5px 16px rgba(232,87,123,.35);
}

/* ── Bento：精選佳麗拼接格 ── */
.bento-profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 1.2rem;
}
.bento-profiles-grid .profile-card { display: flex; flex-direction: column; }
.bento-profiles-grid .profile-card-img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; object-position: center; }
.bento-profiles-grid .profile-card-img img { object-position: center 20%; }
.bento-profiles-grid .bento-span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-profiles-grid .bento-span-2 .profile-card-body h5 { font-size: 1.2rem; }

/* ── Success Story Card ── */
.story-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(232,87,123,.16);
}
.story-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.story-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--gold-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}
.story-caption {
  padding: .7rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Bento：成功案例馬賽克 ── */
.bento-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 110px;
  gap: .7rem;
}
.bento-stories-grid .story-card { height: 100%; }
.bento-stories-grid .story-card img,
.bento-stories-grid .story-card .story-placeholder { aspect-ratio: auto; height: 100%; }
.bento-stories-grid .bento-span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

/* ── News List ── */
.news-item {
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--gold);
  margin-bottom: .8rem;
  transition: box-shadow .2s, transform .2s;
}
.news-item:hover { box-shadow: 0 8px 20px rgba(232,87,123,.1); transform: translateX(3px); }
.news-date { font-size: .78rem; color: var(--primary); font-weight: 700; margin-bottom: .25rem; }
.news-title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-title:hover { color: var(--primary); }

/* ── News Card（消息列表頁，含縮圖） ── */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 24px rgba(232,87,123,.14);
}
.news-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.news-card-title { margin: 0; }
.news-card-title .news-title {
  -webkit-line-clamp: 2;
  font-size: .98rem;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--panel), #FDE4EC);
  padding: 4.2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { font-family: 'Noto Serif TC', serif; color: var(--text-dark); }
.cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: .85rem 2.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 6px 18px rgba(232,87,123,.32);
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover {
  filter: brightness(1.05);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(232,87,123,.42);
}
.cta-section .btn-outline-danger { border-radius: 30px; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: .7rem 0;
}
.breadcrumb { margin: 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-mid); }

/* ── Sidebar ── */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-family: 'Noto Serif TC', serif;
  color: var(--text-dark);
  font-size: 1.02rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
}
.sidebar-link {
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .9rem;
  transition: color .15s;
}
.sidebar-link:hover { color: var(--primary); }
.sidebar-link.active { color: var(--primary); font-weight: 700; }

/* ── Footer ── */
footer {
  background: var(--deep);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
  position: relative;
}
footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary-light), var(--gold));
}
footer h5 {
  font-family: 'Noto Serif TC', serif;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
footer a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: .9rem;
  display: block;
  margin-bottom: .45rem;
  transition: color .15s;
}
footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .8rem;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .2rem;
  white-space: nowrap;
}
.footer-bottom-links a {
  display: inline;
  margin: 0;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links a:hover { color: var(--gold-light); }
.footer-sep {
  opacity: .4;
  padding: 0 .4rem;
}

/* ── Buttons（覆寫 Bootstrap） ── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 30px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 30px;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-outline-danger { border-radius: 30px; }

/* ── Section 背景 ── */
.section-bg    { background: var(--panel); }
.section-white { background: var(--bg); padding: 3.2rem 0; }

/* ── 浮動 LINE 按鈕 ── */
.btn-float-line {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 999;
  display: block;
  transition: transform .2s;
}
.btn-float-line img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-float-line:hover {
  transform: translateY(-3px) scale(1.03);
}

/* ── 回到頂端按鈕 ── */
.btn-back-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  z-index: 999;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(232,87,123,.35);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── Footer 聯絡資訊 ── */
.footer-desc {
  font-size: .9rem;
  line-height: 1.8;
}
.footer-contact-item {
  font-size: .88rem;
  margin-bottom: .4rem;
  color: rgba(255,255,255,.68);
}
.footer-icon {
  color: var(--gold-light);
  margin-right: .5rem;
}

/* ── Profile Detail ── */
.profile-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(232,87,123,.14);
}
.profile-detail-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--gold-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
}
.profile-detail-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.profile-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: .93rem;
}
.profile-detail-table th,
.profile-detail-table td {
  padding: .55rem .9rem;
}
.profile-detail-table th {
  width: 90px;
  color: var(--text-mid);
  font-weight: 600;
  background: var(--panel);
  border-radius: 8px 0 0 8px;
}
.profile-detail-table td { color: var(--text-dark); background: var(--panel); border-radius: 0 8px 8px 0; }
.profile-detail-section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 4px solid var(--gold);
  padding-left: .7rem;
  margin-bottom: .8rem;
}
.profile-detail-content {
  color: var(--text-mid);
  line-height: 1.9;
  font-size: .93rem;
}
.profile-card-title {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: .4rem;
  font-size: .92rem;
}
.section-related-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

/* ── Article（新聞詳情） ── */
.article-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.1rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 26px rgba(232,87,123,.08);
}
.article-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.article-meta {
  font-size: .83rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.article-content {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text-dark);
}
.article-content p,
.article-content span,
.article-content div,
.article-content li,
.article-content td { font-size: .95rem !important; }
.article-content h1 { font-size: 1.4rem !important; }
.article-content h2 { font-size: 1.2rem !important; }
.article-content h3 { font-size: 1.05rem !important; }
.article-content h4,
.article-content h5,
.article-content h6 { font-size: 1rem !important; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--text-dark); font-weight: 600; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
}
.article-nav a {
  color: var(--primary);
  text-decoration: none;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-nav a:hover { color: var(--primary-dark); }
.article-nav-next { text-align: right; }

/* ── Privacy Consent ── */
.privacy-consent {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.privacy-consent .form-check-label { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }
.privacy-consent a { color: var(--primary); text-decoration: underline; }
.footer-platform-note { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: .8rem; margin-bottom: 0; }

/* ── Contact Form ── */
.contact-form .form-control,
.contact-form .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-size: .93rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(232,87,123,.15);
}
.contact-ref-notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--text-mid);
}
.form-label.form-required::after {
  content: ' *';
  color: var(--primary);
  font-weight: 700;
}

/* ── About Page ── */
.about-section-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(232,87,123,.06);
}
.about-section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8rem;
}
.about-section-content {
  font-size: .93rem;
  line-height: 1.9;
  color: var(--text-mid);
}

/* ── Services Page ── */
.service-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.service-block-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .7rem;
  margin-bottom: 1.2rem;
}
.service-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
}
.service-fee-item {
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}
.service-fee-label { font-size: .9rem; color: var(--text-mid); }
.service-fee-value { font-weight: 700; color: var(--primary); font-size: .95rem; }
.service-bank-item {
  font-size: .92rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.service-memo {
  font-size: .88rem;
  color: var(--text-mid);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-top: .5rem;
  line-height: 1.8;
}

/* ── Services Page Hero ── */
.svc-hero {
  background: linear-gradient(135deg, var(--deep-2) 0%, var(--primary-dark) 55%, var(--gold) 140%);
  padding: 4.2rem 0;
  color: #fff;
}
.svc-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px;
  font-size: .82rem;
  padding: .35rem 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: .04em;
}
.svc-hero-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.svc-hero-title span { color: var(--gold-light); }
.svc-hero-desc { font-size: .98rem; opacity: .92; margin-bottom: 1.8rem; line-height: 1.8; }
.svc-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.svc-stat {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.svc-stat-num {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.svc-stat-num small { font-size: 1rem; }
.svc-stat-label { display: block; font-size: .8rem; opacity: .88; margin-top: .3rem; }

/* ── Service Country Cards ── */
.svc-country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.3rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.svc-country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(232,87,123,.16);
}
.svc-country-flag { font-size: 2.8rem; margin-bottom: .8rem; }
.svc-country-card h3 { font-family: 'Noto Serif TC', serif; font-size: 1.08rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.svc-country-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── Service Timeline ── */
.svc-timeline {
  max-width: 720px;
  margin: 0 auto;
}
.svc-tl-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.svc-tl-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.svc-tl-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,87,123,.3);
}
.svc-tl-icon-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 12px rgba(240,169,58,.35); }
.svc-tl-line {
  width: 2px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(to bottom, var(--primary), var(--border));
  margin: .3rem 0;
}
.svc-tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.2rem;
  flex: 1;
  transition: box-shadow .2s;
}
.svc-tl-card:hover { box-shadow: 0 10px 24px rgba(232,87,123,.1); }
.svc-tl-card-gold { border-color: var(--gold); background: linear-gradient(135deg, #fff, var(--panel)); }
.svc-tl-last .svc-tl-card { margin-bottom: 0; }
.svc-tl-step {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .1em;
  display: block;
  margin-bottom: .4rem;
}
.svc-tl-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.svc-tl-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.8; margin: 0; }

/* ── Service Why Cards ── */
.svc-why-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.4rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.svc-why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(232,87,123,.14);
}
.svc-why-icon {
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: .8rem;
}
.svc-why-card h3 { font-size: .98rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.svc-why-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── FAQ Accordion ── */
.faq-accordion { border-radius: var(--radius); overflow: hidden; }
.faq-item { border: 1px solid var(--border) !important; margin-bottom: .6rem; border-radius: var(--radius-sm) !important; overflow: hidden; }
.faq-item .accordion-button {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--surface);
  padding: 1.05rem 1.3rem;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: var(--panel);
  box-shadow: none;
}
.faq-answer {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.9;
  background: var(--surface);
  padding: 1rem 1.3rem;
}

/* ── Service Fee Cards ── */
.svc-fee-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.svc-fee-card:hover {
  box-shadow: 0 14px 30px rgba(232,87,123,.14);
  transform: translateY(-4px);
}
.svc-fee-flag { font-size: 2.4rem; margin-bottom: .5rem; line-height: 1; }
.svc-fee-country { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
.svc-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: .5rem;
}
.svc-fee-row-full { background: #FBDCE7; }
.svc-fee-label { font-size: .8rem; color: var(--text-mid); }
.svc-fee-price { font-size: .95rem; font-weight: 700; color: var(--primary-dark); }
.svc-fee-memo {
  background: var(--panel);
  border-left: 4px solid var(--gold);
  padding: .9rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--text-mid);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Service Bottom CTA ── */
.svc-bottom-cta {
  background: linear-gradient(135deg, var(--deep-2), var(--primary-dark));
  padding: 4.2rem 0;
  color: #fff;
}
.svc-bottom-cta h2 { font-family: 'Noto Serif TC', serif; font-size: 1.65rem; font-weight: 700; margin-bottom: .8rem; }
.svc-bottom-cta p { font-size: .98rem; opacity: .92; margin-bottom: 1.8rem; }
.svc-bottom-cta .cta-btn { background: linear-gradient(135deg, var(--gold), #E0921E); color: #3a2410; }
.svc-bottom-cta .cta-btn:hover { filter: brightness(1.05); }

/* ── Service Steps ── */
.service-steps { display: flex; flex-direction: column; gap: 1.2rem; }
.service-step-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.service-step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .3rem;
}
.service-step-body p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0;
}

/* ── Service Features ── */
.service-feature-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  height: 100%;
}
.service-feature-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}
.service-feature-item strong { font-size: .93rem; color: var(--text-dark); display: block; margin-bottom: .2rem; }
.service-feature-item p { font-size: .85rem; color: var(--text-mid); margin: 0; line-height: 1.7; }

/* ── Service CTA Block ── */
.service-cta-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 2.1rem;
  text-align: center;
  color: #fff;
  margin-top: 1.5rem;
}
.service-cta-block h3 { font-family: 'Noto Serif TC', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.service-cta-block p { font-size: .92rem; opacity: .92; margin-bottom: 1.2rem; }
.service-cta-block .cta-btn {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.service-cta-block .cta-btn:hover { background: var(--panel); color: var(--primary-dark); transform: translateY(-3px); }

/* ── Sitemap Page ── */
.sitemap-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sitemap-group-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8rem;
}
.sitemap-list ul { padding-left: 1.2rem; list-style: disc; }
.sitemap-list ul li { margin-bottom: .4rem; }
.sitemap-list ul li a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: .92rem;
}
.sitemap-list ul li a:hover { color: var(--primary); }

/* ── Pagination ── */
.pagination {
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: 50% !important;
  width: 38px; height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .88rem;
  padding: 0;
  transition: all .15s;
}
.pagination .page-link:hover {
  background: var(--panel);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.pagination .page-item.disabled .page-link {
  color: var(--border);
  border-color: var(--border);
  background: transparent;
}
.pagination-wrap {
  margin-top: 2rem;
}

/* ── RWD ── */
@media (max-width: 991px) {
  .hero { min-height: 420px; }
  .hero h1 { font-size: 1.8rem; }
  .stat-num { font-size: 1.7rem; }
  .article-box { padding: 1.3rem; }
  .article-nav { flex-direction: column; gap: .4rem; }
  .article-nav a { max-width: 100%; }
  .profile-detail-table th { width: 70px; }
  footer .row > div { margin-bottom: .5rem; }

  /* Bento：佳麗拼接格改 3 欄 */
  .bento-profiles-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
}

@media (max-width: 767px) {
  /* Services */
  .svc-hero { padding: 2.6rem 0; }
  .svc-hero-title { font-size: 1.5rem; }
  .svc-hero-stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .svc-stat { padding: .9rem; }
  .svc-stat-num { font-size: 1.4rem; }
  .svc-tl-card { padding: 1.1rem 1.2rem; }
  .svc-bottom-cta { padding: 2.6rem 0; }
  .svc-bottom-cta h2 { font-size: 1.3rem; }

  /* Topbar */
  .topbar { font-size: .74rem; padding: 5px 0; }
  .topbar-badge { display: none; }

  /* Navbar */
  .navbar-brand-text { font-size: 1.1rem; }
  .navbar-collapse { background: #fff; padding: .6rem 1rem; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .nav-link { padding: .6rem .9rem !important; }
  .nav-cta { margin-top: .3rem; }

  /* Hero */
  .hero { min-height: 340px; }
  .hero-inner { padding: 2rem 1.2rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .9rem; }
  .hero-badge { font-size: .74rem; }
  .hero .btn { font-size: .85rem; padding: .55rem 1.3rem; }

  /* Stats */
  .stats-bar { padding: 1.3rem 0; }
  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: .78rem; }

  /* Bento：手機版佳麗拼接格改 2 欄且取消跨欄 */
  .bento-profiles-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .bento-profiles-grid .bento-span-2 { grid-column: span 2; grid-row: span 1; }
  .bento-stories-grid { grid-auto-rows: 90px; }
  .bento-stories-grid .bento-span-2 { grid-column: span 3; grid-row: span 2; }

  /* Section */
  .section-title { margin-bottom: 1.6rem; }
  .section-title h1, .section-title h2 { font-size: 1.35rem; }
  .section-bg { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .section-white { padding: 2.5rem 0; }

  /* Profile cards */
  .profile-card-body { padding: .8rem; }
  .profile-card-body h5 { font-size: .88rem; }
  .profile-card-btn { font-size: .8rem; padding: .35rem .9rem; }

  /* Profile detail */
  .profile-detail-name { font-size: 1.25rem; }
  .profile-detail-table { font-size: .85rem; }
  .profile-detail-table th, .profile-detail-table td { padding: .45rem .65rem; }

  /* Article */
  .article-box { padding: 1.1rem; }
  .article-title { font-size: 1.25rem; }
  .article-cover { max-height: 240px; }

  /* Contact form */
  .contact-form .form-control,
  .contact-form .form-select { font-size: .88rem; }

  /* About */
  .about-section-item { padding: 1.3rem; }

  /* Services */
  .service-block { padding: 1.3rem; }
  .service-fee-grid { grid-template-columns: 1fr; }

  /* Sidebar */
  .sidebar-widget { margin-bottom: 1rem; }

  /* CTA */
  .cta-section { padding: 2.6rem 0; }
  .cta-btn { font-size: .95rem; padding: .75rem 2.1rem; }

  /* Footer */
  footer { padding: 2.2rem 0 1rem; }
  footer h5 { margin-bottom: .6rem; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
}

@media (max-width: 575px) {
  /* Breadcrumb */
  .breadcrumb { font-size: .78rem; }
  .breadcrumb-item { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Country tabs */
  .country-tabs .tab-link { font-size: .8rem; padding: .3rem .8rem; }

  /* Pagination */
  .pagination .page-link { width: 32px; height: 32px; min-width: 32px; font-size: .8rem; }

  /* Bento：佳麗格改 1 欄 */
  .bento-profiles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Story cards */
  .story-card img { aspect-ratio: 1/1; }

  /* Carousel indicators */
  .carousel-indicators { bottom: .5rem; }
}
