/* 抓周介紹 */
#抓周介紹 p strong.h4.text-danger {
    display: block;
    background-color: #b52026;   /* 品牌主色背景 */
    color: #ffffff !important;   /* 文字轉為純白，保證清晰度 */
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
    
    /* 絲絨質感的內陰影與外投影 */
    box-shadow: 
        inset 0 0 100px rgba(0,0,0,0.2),  /* 內暗影：產生立體凹陷感 */
        0 15px 35px rgba(181, 32, 38, 0.2); /* 外投影：讓區塊浮現 */
    
    border-top: 2px solid #f8e6b8;    /* 頂部淡金細線：精緻感來源 */
    border-bottom: 2px solid #f8e6b8; /* 底部淡金細線 */
    
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    letter-spacing: 3px;
    position: relative;
    transition: all 0.5s ease;
    width: 100vw;               /* 強制撐滿視窗 */
    margin-left: calc(-50vw + 50%); /* 抵消 container 的縮排，產生滿版氣勢 */
}

/* 裝飾：左側燙金圓點 */
#抓周介紹 p strong.h4.text-danger::before {
    content: "●";
    color: #f8e6b8;
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    letter-spacing: 5px;
}

/* 裝飾：右側燙金圓點 */
#抓周介紹 p strong.h4.text-danger::after {
    content: "●";
    color: #f8e6b8;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    letter-spacing: 5px;
}

/* 懸停效果 */
#抓周介紹 p strong.h4.text-danger:hover {
    background-color: #a31b21; /* 稍微加深 */
    letter-spacing: 5px;       /* 字距微擴張，產生莊嚴感 */
    box-shadow: 
        inset 0 0 120px rgba(0,0,0,0.3),
        0 20px 45px rgba(181, 32, 38, 0.3);
}

/* 手機版適配 */
@media (max-width: 768px) {
    #抓周介紹 p strong.h4.text-danger {
        font-size: 1.2rem !important;
        padding: 30px 15px;
        letter-spacing: 1px;
    }
    #抓周介紹 p strong.h4.text-danger::before,
    #抓周介紹 p strong.h4.text-danger::after {
        display: none;
    }
}
/* END 抓周介紹 */

/* 目錄導覽 */
.catalog-container-refined {
    background:none;
    border-radius: 15px;
    padding: 35px;
    border: 1px solid #eee;
}

/* 連結按鈕 */
.menubox-refined .nav-item-link {
    display: block;
    background: #fff;
    color: #b52026;
    border: 1px solid #e0e0e0;
    padding: 12px 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* 懸停：整塊變紅，白字 */
.menubox-refined .nav-item-link:hover {
    background: #b52026;
    color: #fff !important;
    border-color: #b52026;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(181, 32, 38, 0.2);
}

/* 重點項目加粗邊框 */
.nav-item-link.featured {
    border-left: 4px solid #b52026;
}


/* 基礎連結樣式 */
.nav-item-link.featured {
    display: flex;
    align-items: center; /* 讓 Icon 和文字垂直居中 */
    justify-content: flex-start;
    padding: 12px 15px;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-left: 4px solid #b52026; /* 妳要求的特色紅線 */
    margin-bottom: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Icon 樣式 */
.nav-item-link.featured i {
    color: #b52026; /* 統一品牌紅 */
    font-size: 1.1rem;
    margin-right: 12px; /* 與文字的間距 */
    width: 20px; /* 固定寬度讓文字對齊更整齊 */
    text-align: center;
    transition: transform 0.3s ease;
}

/* 懸停效果：背景變色，Icon 縮放 */
.nav-item-link.featured:hover {
    background-color: #b52026;
    color: #fff !important;
    border-color: #b52026;
    transform: translateX(5px); /* 輕微向右位移 */
}

.nav-item-link.featured:hover i {
    color: #fff;
    transform: scale(1.2); /* Icon 放大 */
}


/* --- 行動裝置 (手機/平板) 字體與排版微調 --- */
@media (max-width: 768px) {
    /* 1. 調整目錄容器內距，讓畫面不擁擠 */
    .catalog-container-refined {
        padding: 20px 15px;
    }

    /* 2. 調整按鈕文字大小與間距 */
    .menubox-refined .nav-item-link.featured {
        padding: 10px 12px;  /* 稍微縮小內距 */
        margin-bottom: 10px; /* 減少間距 */
        font-size: 1.05rem !important; /* 手機版最舒適的閱讀大小 */
        letter-spacing: 0px; /* 移除過寬的字距 */
    }

    /* 3. 調整 Icon 大小與距離 */
    .nav-item-link.featured i {
        font-size: 1rem;      /* Icon 稍微縮小一點點 */
        margin-right: 8px;    /* 縮短與文字的距離 */
        width: 18px;          /* 寬度微調 */
    }

    /* 4. 手機版取消 translateX 效果 (選配) */
    /* 手機操作通常是點擊，位移效果有時會讓使用者困惑，可視需求保留或改小 */
    .nav-item-link.featured:hover {
        transform: translateX(3px); 
    }
}

/* --- 極小螢幕 (iPhone SE 等) 額外優化 --- */
@media (max-width: 375px) {
    .menubox-refined .nav-item-link.featured {
        font-size: 0.95rem !important; /* 避免文字太長溢出 */
        padding: 8px 10px;
    }
}
/* END 目錄導覽 */



/* 服務項目 */
#item-main-services {
    padding: 80px 0;
    background: #fff;
}

/* 標題對齊高級樣式 */
#item-main-services .section-header h2 {
    color: #b52026;
    font-weight: 900;
    letter-spacing: 2px;
}

/* 卡片容器設計 */
.service-nav-col {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.service-nav-col:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(181, 32, 38, 0.1);
    border-color: rgba(181, 32, 38, 0.2);
}

/* 圖片效果：懸停放大 */
.service-nav-col .img-box {
    position: relative;
    overflow: hidden;
}

.service-nav-col .img-box img {
    transition: transform 0.6s ease;
}

.service-nav-col:hover .img-box img {
    transform: scale(1.1);
}

/* 序號圖示優化 */
.service-nav-col .badge-no {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #b52026;
    color: #fff;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-style: italic;
    border-radius: 20px 0 0 0;
    font-size: 1.1rem;
}

/* 文字區域樣式 */
.service-nav-content {
    padding: 25px 20px;
    text-align: center;
}

.service-nav-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #b52026;
    font-weight: 700;
}

.service-nav-content h3 a {
    color: #333;
    transition: 0.3s;
    text-decoration: none;
}

.service-nav-col:hover .service-nav-content h3 a {
    color: #b52026;
}

.service-nav-content .btn-arrow {
    margin-top: 15px;
    display: inline-block;
    color: #b52026;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}
/* END 服務項目 */

/* 實際範例 */
.case-item-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

.case-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(181, 32, 38, 0.12);
    border-color: rgba(181, 32, 38, 0.2);
}

/* 圖片容器：加入精緻的 Overlay */
.case-img-box {
    position: relative;
    overflow: hidden;
}

.case-img-box img {
    transition: transform 0.6s ease;
}

.case-item-card:hover .case-img-box img {
    transform: scale(1.1);
}

/* 數字編號：改為精緻印章感 */
.case-number-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(181, 32, 38, 0.8);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* 標題區域調教 */
.case-content {
    padding: 20px;
    text-align: center;
}

.case-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.case-content h4 span.category-tag {
    color: #b52026;
    background: rgba(181, 32, 38, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

/* 底部查看連結線條 */
.case-view-more {
    margin-top: 12px;
    display: inline-block;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 1px;
    transition: 0.3s;
}

.case-item-card:hover .case-view-more {
    color: #b52026;
    font-weight: 700;
}
/* END實際範例 */

/* 影片介紹 */
.video-container-premium {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 12px; /* 創造出像相框一樣的白邊 */
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 懸停動態：影片框輕微浮起並與品牌紅呼應 */
.video-container-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 100px rgba(181, 32, 38, 0.15); /* 這裡加入淡淡的品牌紅投影 */
}

/* RWD 調整 */
@media (max-width: 991px) {
    #item-premium-cinema { padding: 60px 0; }
    .cinema-frame { padding: 20px 0; }
    .video-container-premium { padding: 8px; }
}
/* END影片介紹 */


/* 參加人數 */ 
#facts-shuyan-count {
  padding: 100px 0;
  /* 照片牆背景圖路徑 */
  background: url('../img/baby_party_1year/all-banner-2.jpg') center center no-repeat fixed;
  background-size: cover;
  position: relative;
  color: #fff;
}

/* 遮罩 */
#facts-shuyan-count::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* 深色遮罩，確保文字白亮 */
  backdrop-filter: blur(3px); /* 輕微模糊背景，減少照片干擾 */
  z-index: 1;
}

#facts-shuyan-count .container {
  position: relative;
  z-index: 2; /* 確保內容在遮罩上方 */
}

/* 標題與數字優化 */
#facts-shuyan-count .section-header h3 {
  color: #f8e6b8; /* 使用燙金色增加高級感 */
  font-weight: 900;
  letter-spacing: 2px;
}

#facts-shuyan-count .section-header p {
  color: #eee;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 數字動態效果 */
.counter-box {
  margin: 40px 0;
}

.counter-box span {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
  line-height: 1;
  text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.counter-box p {
  padding: 0;
  margin: 10px 0 0 0;
  font-size: 1.5rem;
  color: #f8e6b8;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* 按鈕 */
.facts-cta-btn {
  display: inline-block;
  padding: 12px 45px;
  border: 2px solid #f8e6b8;
  color: #f8e6b8 !important;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: 0.3s;
  text-decoration: none !important;
  margin-top: 20px;
}

.facts-cta-btn:hover {
  background: #f8e6b8;
  color: #b52026 !important;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .counter-box span { font-size: 3.5rem; }
  #facts-shuyan-count { padding: 60px 0; }
}
/* END參加人數 */

/* 參加方式 */
.method-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px; /* 防止上下黏住 */
}

.method-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(181, 32, 38, 0.15);
  border-color: #b52026;
}

/* 圖片比例控制 */
.method-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.method-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.method-card:hover .method-img-wrap img {
  transform: scale(1.1);
}

/* 文字描述區域 */
.method-body {
  padding: 30px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.method-body h4 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.method-body p {
  font-size: 1rem;
  color: #777;
  line-height: 1.8;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

/* 按鈕 */
.method-btn {
  display: inline-block;
  background: #b52026;
  color: #fff !important;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none !important;
  box-shadow: 0 5px 15px rgba(181, 32, 38, 0.2);
  align-self: center;
}

.method-card:hover .method-btn {
  background: #333;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .method-body { padding: 20px; }
  .method-body h4 { font-size: 1.3rem; }
}
/* END參加方式 */

/* 最新案例推薦分享 */ 
.portfolio-wrap-refined {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  position: relative;
}

.portfolio-wrap-refined:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* 強制圖片比例：解決大小不一問題 */
.img-container-fixed {
  width: 100%;
  aspect-ratio: 16 / 10; /* 黃金比例 */
  overflow: hidden;
  position: relative;
}

.img-container-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 關鍵：自動裁切 */
  transition: transform 0.6s ease;
}

.portfolio-wrap-refined:hover .img-container-fixed img {
  transform: scale(1.1);
}

/* 資訊描述區塊 */
.portfolio-info-premium {
  padding: 20px;
  text-align: center;
}

.portfolio-info-premium h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  height: 50px; /* 固定高度讓排版對齊 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最多兩行 */
  -webkit-box-orient: vertical;
}

.portfolio-info-premium h4 a {
  color: #333;
  transition: 0.3s;
  text-decoration: none;
}

.portfolio-wrap-refined:hover .portfolio-info-premium h4 a {
  color: #b52026;
}

.portfolio-date-label {
  color: #999;
  font-size: 0.9rem;
  display: block;
  letter-spacing: 1px;
}

/* 底部按鈕 */
.cta-btn-all {
  display: inline-block;
  background: #b52026;
  color: #fff !important;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(181,32,38,0.2);
  text-decoration: none !important;
}

.cta-btn-all:hover {
  background: #333;
  transform: scale(1.05);
}

/* END最新案例推薦分享 */


/* 古裝禮服 */ 
.clothing-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.clothing-item {
  padding: 10px;
  flex: 0 0 25%; /* PC 一排四個 */
  max-width: 25%;
}

/* 卡片 */
.clothing-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.clothing-wrap:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(181, 32, 38, 0.12);
  border-color: #b52026;
}

/* 統一圖片比例：*/
.clothing-img-box {
  width: 100%;
  aspect-ratio: 3 / 4; 
  overflow: hidden;
  background: #f9f9f9;
  position: relative;
}

.clothing-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.clothing-wrap:hover .clothing-img-box img {
  transform: scale(1.1);
}

/* 資訊描述區塊 */
.clothing-info {
  padding: 20px;
  text-align: center;
  background: #fff;
}

.clothing-info h5 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
  transition: 0.3s;
}

.clothing-wrap:hover .clothing-info h5 {
  color: #b52026;
}

.clothing-info p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
  height: 45px; /* 固定兩行高度 */
  overflow: hidden;
  margin-bottom: 0;
}

/* 底部大按鈕 */
.btn-clothing-all {
  display: inline-block;
  background: #b52026;
  color: #fff !important;
  padding: 15px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(181, 32, 38, 0.2);
  text-decoration: none !important;
  margin-top: 40px;
}

.btn-clothing-all:hover {
  background: #333;
  transform: scale(1.05);
}

/* 響應式調整 */
@media (max-width: 1200px) {
  .clothing-item { flex: 0 0 33.33%; max-width: 33.33%; }
}
@media (max-width: 768px) {
  .clothing-item { flex: 0 0 50%; max-width: 50%; }
  .clothing-info { padding: 15px 10px; }
  .clothing-info h5 { font-size: 1rem; }
}

/* END古裝禮服 */