/* ======================================================
   楊老師著作 CSS
   ====================================================== */

/* 1. 書籍外框卡片 */
.book-shelf-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden; /* 確保圓角 */
    border: 1px solid #eee;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.book-shelf-item:hover {
    box-shadow: 0 15px 35px rgba(82, 4, 114, 0.12) !important;
}

/* 2. 書籍圖片容器 (解決空白過大問題) */
.book-img-box {
    background: #f8f8f8; /* 淺灰色襯底，讓書封更立體 */
    padding: 30px !important; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. 書籍圖片本體 (解決圖片太小問題) */
.book-cover-img {
    width: 90%; 
    max-width: 320px; /* 加大圖片上限，展現氣勢 */
    height: auto;
    border-radius: 4px 10px 10px 4px;
    box-shadow: 10px 15px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.book-shelf-item:hover .book-cover-img {
    transform: scale(1.05) rotateY(-5deg); /* 懸停時稍微放大並側轉 */
}

/* 4. 右側文字資訊區 */
.book-info-box {
    padding: 40px !important;
}

.book-meta-badge {
    background: #f8f0fc;
    color: #520472;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

/* 標題紅飾條 */
.book-title-highlight {
    color: #520472;
    font-weight: 800;
    border-left: 6px solid #FF0000;
    padding-left: 15px;
    margin-bottom: 20px;
}

.book-intro-text {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 20px;
}

.book-detail-list p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #666;
}

/* 5. 按鈕樣式 */
.btn-outline-purple {
    border: 2px solid #520472;
    color: #520472;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-purple:hover {
    background: #520472;
    color: #fff !important;
    text-decoration: none;
}

.btn-buy {
    background: #FF0000;
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* ======================================================
   姓名學 CSS
   ====================================================== */
   /* 1. 紅色短線 (對齊免費算命頁) */
.red-short-line {
    width: 40px;
    height: 3px;
    background-color: #d40210;
    border: none;
    margin: 15px auto;
}

/* 2. 書封圖片效果 (增加層次感而非死板的邊框) */
.book-main-img {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 2px;
    transition: 0.3s;
}
.book-main-img:hover {
    transform: translateY(-5px);
}

/* 3. 老師自序區塊 (對齊紫色左側粗線設計) */
.teacher-intro-quote {
    padding: 20px 25px;
    border-left: 5px solid #520472;
    background-color: #fcfaff; /* 極淺紫，幾近白色 */
}
.teacher-intro-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

/* 4. 出版資訊盒 */
.book-specs-box {
    border-top: 1px solid #eee;
    color: #666;
}
.book-specs-box small {
    display: inline-block;
    width: 80px;
}

/* 5. 幫助清單圖示顏色 */
.text-purple {
    color: #520472 !important;
}

/* --- 按鈕樣式修正：全圓角、高對比、全站統一 --- */

/* 1. 修正專業紫按鈕 (全圓角) */
.btn-purple-pill {
    background-color: #520472 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 50px !important; /* 確保是橢圓膠囊型 */
    font-size: 1.1rem;
    padding-left: 35px !important;
    padding-right: 35px !important;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-purple-pill:hover {
    background-color: #3a0351 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(82, 4, 114, 0.4) !important;
}

/* 2. 修正訂購金黃按鈕 (全圓角，拒絕白底黑字) */
.btn-warning-pill {
    background-color: #ffc107 !important; /* 統一使用金黃色 */
    border: none !important;
    color: #333333 !important; /* 深灰字提升質感 */
    border-radius: 50px !important; /* 確保與紫鈕形狀一致 */
    font-size: 1.1rem;
    padding-left: 35px !important;
    padding-right: 35px !important;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-warning-pill:hover {
    background-color: #e0a800 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 193, 7, 0.4) !important;
}

/* 強制加粗文字 */
.btn b {
    font-weight: 700;
}

/* 針對手機版的按鈕排版微調 */
@media (max-width: 576px) {
    .action-btn-group .btn {
        width: 100%; /* 手機版讓按鈕滿版，更好點擊 */
        margin-right: 0 !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/* 確保按鈕高度一致 */
.btn-warning-pill, .btn-purple-pill {
    min-height: 56px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 姓名學目錄大綱 */
/* 手風琴目錄專屬樣式 */
.custom-accordion .card {
    border-radius: 8px !important;
    overflow: hidden;
}

.catalog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #520472; /* 專業紫 */
}

.bg-light-purple {
    background-color: #fdfaff; /* 極淺紫色背景 */
}

.catalog-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.catalog-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
}

.catalog-list li::before {
    content: "•";
    color: #ffc107; /* 金黃色點綴 */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 展開時旋轉圖示 */
.btn:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
    transition: 0.3s;
}

/* 自序區塊專屬美化 */
.preface-main-card {
    border-top: 5px solid #520472; /* 頂部紫色粗線，增加厚重感 */
}

.text-purple {
    color: #520472 !important;
}

.border-left-purple {
    border-left: 4px solid #520472;
    font-style: italic;
    color: #555;
}

.preface-features-box i {
    font-size: 0.9rem;
}

.chart-wrapper img {
    border-radius: 4px;
    max-width: 100%;
}

/* 針對行動版調整字體大小 */
@media (max-width: 768px) {
    .preface-content-text {
        font-size: 1rem !important;
    }
    .quote-lead .h4 {
        font-size: 1.2rem;
    }
}


/* 姓名學專屬導覽連結樣式 */
.book-nav-item {
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 5px 10px;
    transition: 0.3s;
}

.book-nav-item:hover {
    color: #ffc107 !important; /* 滑鼠移過變金黃色 */
    background-color: rgba(255,255,255,0.1); /* 微微發光效果 */
    border-radius: 4px;
}

/* --- 6個小方塊專用：紫色底亮黃字 --- */

.feature-card-purple {
    background-color: #ba0404 !important; /* 強制方塊為紫色 */
    border: 2px solid #cc0000;
    transition: all 0.3s ease;
}

.feature-card-purple:hover {
    transform: translateY(-10px);
    background-color: #3d0354 !important; /* 懸停時深紫色 */
    box-shadow: 0 15px 30px rgba(82, 4, 114, 0.4) !important;
    border-color: #8818b7; /* 懸停時邊框變亮黃 */
}

/* 方塊內的亮黃色標題 */
.text-yellow {
    color: #ffc107 !important;
    letter-spacing: 1px;
}

/* 方塊內的白色描述文字（帶透明度增加質感） */
.text-white-op {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
}

/* 方塊內的 Icon 圖示：黃底紫字 */
.feature-icon-yellow {
    width: 55px;
    height: 55px;
    background-color: #ffc107;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

