/* =========================================
   阿鹿小站 v2.0 - 首頁專屬樣式 (index.css)
   ========================================= */

/* --- 動態輪播大看板 (Slider) --- */
.acg-slider-container {
    position: relative;
    width: 100%;
    max-width: 1920px; 
    margin: 0 auto;
    background-color: var(--bg-dark);
    overflow: hidden;
}
.acg-slider { display: flex; position: relative; }
.slide {
    display: none; 
    width: 100%;
    animation: fadeEffect 0.8s ease-in-out; 
}
.slide.active { display: block; }
.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; 
}
@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}
.slider-btn:hover { background-color: var(--primary-color); }
.slider-btn.prev { left: 0; border-radius: 0 5px 5px 0; }
.slider-btn.next { right: 0; border-radius: 5px 0 0 5px; }
.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* --- 最新消息區塊 (News Ticker) --- */
.acg-news-container {
    max-width: 1400px;
    margin: 20px auto 30px auto; 
    padding: 0 5%;
    position: relative;
    z-index: 20;
    display: flex;
}
.news-label {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}
.news-content {
    background-color: #26263c; 
    flex-grow: 1;
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.news-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.news-list li:last-child { border-bottom: none; }
.news-date {
    color: #cccccc; 
    font-size: 0.9rem;
    font-family: monospace;
}
.news-tag {
    background-color: #00c853;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.news-list a {
    color: var(--text-white);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    transition: color 0.3s;
}
.news-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.news-more {
    justify-content: flex-end; 
    border-bottom: none !important; 
    padding: 5px 0 !important; 
}
.news-more a {
    color: var(--primary-color) !important; 
    font-size: 0.9rem !important;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease !important;
}
.news-more a:hover {
    color: var(--accent-color) !important; 
    text-decoration: none !important;
    transform: translateX(5px); 
}
@media screen and (max-width: 768px) {
    .acg-news-container { flex-direction: column; margin-top: 20px; }
    .news-label { border-radius: 8px 8px 0 0; justify-content: center; }
    .news-content {
        border-radius: 0 0 8px 8px;
        border: 1px solid rgba(255,255,255,0.1);
        border-top: none;
        padding: 10px;
    }
    .news-list li { flex-wrap: wrap; gap: 5px; }
    .news-list a { width: 100%; white-space: normal; }
}

/* --- 商品/漫畫展示卡片 (Product Grid) --- */
.content-wrapper {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    color: var(--text-white);
    border-left: 6px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
.acg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
/* --- 🌟 明亮版：商品卡片滑鼠碰到的特效 --- */
.acg-card:hover {
    transform: translateY(-5px); /* 微微浮起 */
    border: 2px solid var(--primary-color); /* 邊框變成品牌藍 */
    /* 陰影變成柔和的深灰色，帶一點點藍色光暈 */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 123, 255, 0.1); 
}

/* --- 🌟 明亮版：商品卡片預設狀態 (讓卡片浮凸出來) --- */
.acg-card {
    background-color: #ffffff; /* 卡片保持純白底 */
    border: 1px solid #eaeaea; /* 🌟 加上極淺的灰色邊框勾勒輪廓 */
    border-radius: 10px; /* 給予圓角，視覺更柔和 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 🌟 關鍵：預設就給一層淡淡的陰影 */
    overflow: hidden; /* 確保圖片不會超出圓角 */
    transition: all 0.3s ease; /* 確保動畫順暢 */
    display: flex;
    flex-direction: column;
}
.card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
    background-color: #ffffff; 
}
.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
    padding: 10px; 
}
.acg-card:hover .card-image img { transform: scale(1.1); }
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.badge-item { background-color: #f39c12; }  
.badge-game { background-color: #00c853; }  
.badge-manga { background-color: var(--accent-color); } 
.card-info {
    padding: 15px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title {
    color: var(--text-white);
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price { color: #00e676; font-weight: bold; font-size: 1.1rem; }
/* =========================================
   🌟 明亮版 (Light Mode) 文字與卡片顏色修正
   ========================================= */

/* 1. 修正大標題 (例如：遊戲區 game) */
.section-title {
    color: #2c3e50 !important; /* 文字改為深藍灰色 */
    text-shadow: none !important; /* 移除白底看不清的發光特效 */
}

/* 2. 確保卡片下半部的資訊區塊是純白底色 */
.acg-card .card-info {
    background-color: #ffffff; 
}

/* 3. 修正商品/遊戲卡片內的標題文字 */
.acg-card .card-title {
    color: #333333 !important; /* 遊戲名稱改為深灰色 */
    font-weight: bold;
}

/* 4. 一般價格顏色調整 */
.acg-card .price {
    color: #e74c3c !important; /* 一般金額改為紅色，比較醒目 */
}
/* 🌟 修正：讓免費的價格維持藍青色，不要被一般價格的紅色蓋掉 */
.acg-card .price[style*="0288d1"] {
    color: #0288d1 !important;
}