/* =============================================================================
   標題樣式系統 (Title Styles System) - v3.0
   現代化重新設計版本
   ============================================================================= */

/* 基礎樣式 - 所有標題共用 */
.hp-section-header {
margin-bottom: 20px;
}

.main-layout-header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
gap: 15px;
--hp-link-color: #2271b1; /* Default link color */
}

.main-layout-title {
margin: 0;
display: flex;
align-items: center;
}

.main-layout-title i {
margin-right: 10px;
font-size: 1.3rem;
}

.main-layout-more-link {
display: inline-flex;
align-items: center;
text-decoration: none;
color: var(--hp-link-color);
border: 1px solid var(--hp-link-color);
padding: 6px 12px;
border-radius: 4px;
transition: all 0.3s ease;
font-size: 0.9rem;
font-weight: 500;
}

.main-layout-more-link:hover {
background-color: var(--hp-link-color);
color: #fff !important;
}

.hp-section-title {
margin: 0;
display: flex;
align-items: center;
font-size: 1.4rem;
font-weight: 700;
line-height: 1.4;
color: #1a1a2e;
}

/* 移除所有樣式的預設 :after */
.hp-section-title:after {
content: none;
}

/* =============================================================================
   樣式 1: 無樣式 (None)
   ============================================================================= */
.title-style-none .main-layout-header {
padding: 0;
margin-bottom: 15px;
}

.title-style-none .hp-section-title {
color: inherit;
}

/* =============================================================================
   樣式 2: 預設樣式 (Default) - 底部細線
   ============================================================================= */
.title-style-default .main-layout-header {
padding: 12px 0;
margin-bottom: 20px;
border-bottom: 2px solid var(--header-accent-color, #e5e5e5);
}

.title-style-default .hp-section-title {
color: #1a1a2e;
}

/* =============================================================================
   樣式 3: 左側色塊 (Side Accent) - 簡潔左邊框
   ============================================================================= */
.title-style-modern .main-layout-header,
.title-style-modern h3.hp-section-title {
padding-left: 12px;
border-left: 4px solid var(--header-accent-color, #3b82f6);
}

.title-style-modern .hp-section-title {
color: #1a1a2e;
}

/* =============================================================================
   樣式 4: 圓角標籤 (Tag) - 現代化標籤設計
   ============================================================================= */
.title-style-ribbon .hp-section-title,
.title-style-ribbon h3.hp-section-title {
background: var(--header-accent-color, #3b82f6);
color: #fff !important;
padding: 8px 16px;
border-radius: 6px;
display: inline-flex;
font-size: 1.2rem;
}

.title-style-ribbon .hp-section-title i {
color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   樣式 5: 漸層底線 (Gradient Underline) - 短漸層線
   ============================================================================= */
.title-style-purple-underline .hp-section-title,
.title-style-purple-underline h3.hp-section-title {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
font-size: 1.4em;
font-weight: 700;
color: #1a1a1a;
}

.title-style-purple-underline .hp-section-title:after {
content: '';
position: absolute;
bottom: -3px;
left: 0;
width: 80px;
height: 3px;
background: linear-gradient(90deg, #667eea, #764ba2);
border-radius: 2px;
}

/* =============================================================================
   樣式 6: 雙層底線 (Dual Line) - 主線加輔線
   ============================================================================= */
.title-style-gradient-underline .hp-section-title,
.title-style-gradient-underline h3.hp-section-title {
position: relative;
padding-bottom: 12px;
}

.title-style-gradient-underline .hp-section-title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, 
var(--header-accent-color, #3b82f6) 0%,
var(--header-accent-color, #3b82f6) 60px,
#e5e5e5 60px,
#e5e5e5 100%
);
}

/* =============================================================================
   樣式 7: 點綴圓點 (Dot Accent) - 左側小圓點
   ============================================================================= */
.title-style-modern-double .hp-section-title,
.title-style-modern-double h3.hp-section-title {
position: relative;
padding-left: 18px;
}

.title-style-modern-double .hp-section-title:before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
background-color: var(--header-accent-color, #3b82f6);
border-radius: 50%;
}

/* =============================================================================
   樣式 8: 居中樣式 (Centered) - 兩側短線
   ============================================================================= */
.title-style-accent-bracket .main-layout-header {
justify-content: center !important;
}

.title-style-accent-bracket .hp-section-title,
.title-style-accent-bracket h3.hp-section-title {
display: flex;
align-items: center;
gap: 12px;
}

.title-style-accent-bracket .hp-section-title:before,
.title-style-accent-bracket .hp-section-title:after {
content: '';
display: block;
width: 40px;
height: 2px;
background-color: var(--header-accent-color, #3b82f6);
}

.title-style-accent-bracket .main-layout-more-link {
position: absolute;
right: 0;
}

/* =============================================================================
   樣式 9: 左側粗線 (Left Border) - 經典左邊框
   ============================================================================= */
.title-style-left-border .hp-section-title,
.title-style-left-border h3.hp-section-title {
border-left: 5px solid var(--header-accent-color, #3b82f6);
padding-left: 15px;
}

/* =============================================================================
   樣式 10: 背景色塊 (Solid Background) - 全寬背景
   ============================================================================= */
.title-style-centered-line .main-layout-header {
background-color: var(--header-accent-color, #3b82f6);
padding: 10px 16px !important;
border-radius: 4px;
margin-bottom: 20px;
}

.title-style-centered-line .hp-section-title {
color: #fff !important;
}

.title-style-centered-line .hp-section-title i {
color: rgba(255,255,255,0.9);
}

.title-style-centered-line .main-layout-more-link {
color: #fff !important;
border-color: rgba(255,255,255,0.5) !important;
}

.title-style-centered-line .main-layout-more-link:hover {
background-color: #fff !important;
color: var(--header-accent-color, #3b82f6) !important;
}

/* =============================================================================
   樣式 11: 底線圓點 (Underline Dot) - 底線末端圓點
   ============================================================================= */
.title-style-block-bg .hp-section-title,
.title-style-block-bg h3.hp-section-title {
position: relative;
padding-bottom: 10px;
}

.title-style-block-bg .hp-section-title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 60px;
height: 3px;
background-color: var(--header-accent-color, #3b82f6);
border-radius: 3px;
}

.title-style-block-bg .hp-section-title:before {
content: '';
position: absolute;
left: 63px;
bottom: -2px;
width: 7px;
height: 7px;
background-color: var(--header-accent-color, #3b82f6);
border-radius: 50%;
}

/* =============================================================================
   樣式 12: 簡約底線 (Simple Underline) - 純色短底線
   ============================================================================= */
.title-style-dot-accent .hp-section-title,
.title-style-dot-accent h3.hp-section-title {
position: relative;
padding-bottom: 10px;
}

.title-style-dot-accent .hp-section-title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 3px;
background-color: var(--header-accent-color, #3b82f6);
border-radius: 3px;
}

/* =============================================================================
   樣式 13: 陰影標籤 (Shadow Tag) - 帶陰影的標籤
   ============================================================================= */
.title-style-two-tone .hp-section-title,
.title-style-two-tone h3.hp-section-title {
background: var(--header-accent-color, #3b82f6);
color: #fff !important;
padding: 10px 20px;
border-radius: 4px;
display: inline-flex;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.title-style-two-tone .hp-section-title i {
color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   樣式 14: 斜角標籤 (Angled Tag) - 簡化版
   ============================================================================= */
.title-style-angled-tag .hp-section-title,
.title-style-angled-tag h3.hp-section-title {
background: var(--header-accent-color, #3b82f6);
color: #fff !important;
padding: 8px 24px 8px 16px;
display: inline-flex;
border-radius: 4px 20px 20px 4px;
}

.title-style-angled-tag .hp-section-title i {
color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   樣式 15: 輕量發光 (Subtle Glow) - 柔和發光效果
   ============================================================================= */
.title-style-neon .hp-section-title,
.title-style-neon h3.hp-section-title {
color: var(--header-accent-color, #3b82f6);
text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
font-weight: 800;
}

/* =============================================================================
   樣式 16: 側邊漸層 (Side Gradient Border) - 現代感垂直漸層
   ============================================================================= */
.title-style-side-gradient-border .hp-section-title,
.title-style-side-gradient-border h3.hp-section-title {
position: relative;
padding-left: 15px;
}

.title-style-side-gradient-border .hp-section-title:before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 6px;
background: linear-gradient(180deg, var(--header-accent-color, #3b82f6) 0%, rgba(59, 130, 246, 0.2) 100%);
border-radius: 4px;
}

/* =============================================================================
   樣式 17: 現代粗底線 (Modern Bold Underline) - 簡約粗底線
   ============================================================================= */
.title-style-modern-bold-underline .hp-section-title,
.title-style-modern-bold-underline h3.hp-section-title {
position: relative;
padding-bottom: 12px;
}

.title-style-modern-bold-underline .hp-section-title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 45px;
height: 5px;
background-color: var(--header-accent-color, #3b82f6);
border-radius: 2px;
}

/* =============================================================================
   樣式 18: 柔和玻璃 (Glass Soft)
   ============================================================================= */
.title-style-glass-soft .main-layout-header,
.title-style-glass-soft .hp-section-title {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 12px 20px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
display: inline-block;
}

/* =============================================================================
   樣式 19: 霓虹發光 (Neon Glow)
   ============================================================================= */
.title-style-neon-glow .main-layout-header,
.title-style-neon-glow .hp-section-title {
color: var(--header-accent-color, #3b82f6);
text-shadow: 0 0 8px var(--header-accent-color, rgba(59, 130, 246, 0.5));
border-bottom: 2px solid var(--header-accent-color, #3b82f6);
padding-bottom: 5px;
display: inline-block;
}

/* =============================================================================
   響應式調整
   ============================================================================= */
@media (max-width: 767px) {
.hp-section-title {
font-size: 1.2rem;
}

.title-style-accent-bracket .hp-section-title:before,
.title-style-accent-bracket .hp-section-title:after {
width: 25px;
}

.title-style-ribbon .hp-section-title,
.title-style-angled-tag .hp-section-title,
.title-style-two-tone .hp-section-title {
padding: 6px 12px;
font-size: 1.1rem;
}

.title-style-centered-line .main-layout-header {
padding: 8px 12px !important;
}
}
