/* =========================================
   阿鹿小站 v2.0 - 商品詳細內容頁 (content.css) [明亮版 Light Mode]
   ========================================= */

.content-page {
    padding: 50px 5%;
    min-height: calc(100vh - 300px); 
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff; /* 🌟 核心改變：主容器變純白 */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* 🌟 柔和陰影 */
    border: 1px solid #eaeaea; /* 🌟 淺色邊框 */
}

.product-top {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    background-color: #f8f9fa; /* 🌟 圖片背景改為非常淺的灰色，襯托圖片 */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #f1f2f6;
}

.product-gallery a {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-gallery a:hover {
    transform: scale(1.02);
}

.product-gallery img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-details {
    flex: 1.2;
    color: #333333; /* 🌟 預設文字變深灰 */
}

/* 標籤顏色 */
.detail-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.badge-item { background-color: #f39c12; }  
.badge-game { background-color: #00c853; }  
.badge-manga { background-color: var(--accent-color); } 
.badge-gift { background-color: #9c27b0; } 
.badge-vote { background-color: #e91e63; } 
.badge-content { background-color: #3f51b5; } 

.detail-title {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #2c3e50; /* 🌟 標題變深藍灰色 */
}

.detail-brand {
    color: #7f8c8d; /* 🌟 品牌文字變中灰色 */
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.detail-brand span {
    color: #2c3e50; /* 🌟 品牌名稱變深色 */
    font-weight: bold;
}

/* 🌟 價格區塊變亮 */
.detail-price-box {
    background-color: #f8f9fa; /* 淺灰底 */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #27ae60; /* 綠色左邊框 */
    border: 1px solid #eaeaea;
    border-left-width: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6; /* 🌟 淺灰色 */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.current-price {
    font-size: 2.5rem;
    color: #27ae60; /* 🌟 綠色 */
    font-weight: bold;
}

.current-price.free { color: #007bff; } /* 🌟 免費改為品牌藍 */

/* === 操作按鈕區塊 (動態切換) === */
.action-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 數量輸入框 */
.qty-input {
    width: 80px;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 30px;
    border: 1px solid #ccc; /* 🌟 灰色邊框 */
    background-color: #fff;
    color: #333;
}

.cart-btn {
    flex-grow: 1; 
    font-size: 1.2rem;
    padding: 15px;
}

/* 🌟 返回按鈕改為淺灰色底 */
.btn-secondary {
    background-color: #f1f2f6;
    color: #555555;
    border: 1px solid #dfe4ea;
}

.btn-secondary:hover {
    background-color: #dfe4ea;
    color: #333;
    border-color: #ced6e0;
    transform: translateY(-3px);
}

/* 遊戲綠 */
.btn-game {
    background-color: #27ae60;
    color: #fff;
    border: 2px solid #27ae60;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
.btn-game:hover {
    background-color: #2ecc71; border-color: #2ecc71;
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* 動漫粉 */
.btn-manga {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}
.btn-manga:hover {
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

/* 下半部：詳細介紹區塊 */
.product-description-box {
    border-top: 1px dashed #eaeaea; /* 🌟 分隔線改淺灰 */
    padding-top: 40px;
}

.desc-title {
    font-size: 1.6rem;
    color: #2c3e50; /* 🌟 標題變深藍灰 */
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.desc-content {
    color: #555555; /* 🌟 內文變深灰 */
    line-height: 1.8;
    font-size: 1.1rem;
    overflow-wrap: break-word;
}

.desc-content img, .desc-content iframe {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .product-container { padding: 20px; }
    .product-top { flex-direction: column; gap: 30px; }
    .detail-title { font-size: 1.6rem; }
    .current-price { font-size: 2rem; }
    .action-box { flex-direction: column; }
}

.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.class-icon {
    height: 40px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================
   漫畫章節列表 (Manga Chapters)
   ========================================= */
.manga-chapters-box {
    border-top: 1px dashed #eaeaea; /* 🌟 分隔線改淺灰 */
    padding-top: 40px;
    margin-bottom: 40px;
}

.chapter-type-title {
    color: #333333; /* 🌟 標題變深灰 */
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.chapter-btn {
    background-color: #fdfdfd; /* 🌟 淺白底 */
    border: 1px solid var(--accent-color);
    color: var(--accent-color); /* 🌟 文字變粉紅 */
    padding: 12px 10px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-btn:hover {
    background-color: var(--accent-color);
    color: #fff; /* 🌟 滑鼠移入變粉紅底白字 */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.2);
    text-decoration: none;
}

html { scroll-behavior: smooth; }

/* =========================================
   留言區 (Comment Section) - 白底修正
   ========================================= */
/* 因為你在 content.php 裡寫死了一些留言區的樣式，我們用 CSS 強制蓋過去 */
.comment-section { border-top-color: #eaeaea !important; }
.desc-content { color: #555 !important; }
.admin-reply { 
    background-color: #f8f9fa !important; /* 管理員回覆改淺灰底 */
    border-left-color: #007bff !important; /* 左側邊框改品牌藍 */
}
.admin-reply strong { color: #007bff !important; }
.admin-reply div { color: #555 !important; }
.comment-item { border-bottom-color: #eaeaea !important; }
.comment-item .ask-box > div > div:nth-child(2) { color: #333 !important; } /* 留言內文變深色 */