/**
 * 全站文字顏色優化 - 依照 updateV1.md 規格
 * 將所有主要文字內容調整為純黑色 (#000000)
 */

/* 基本文字元素 */
body, p, div, span, li, td, th, 
h1, h2, h3, h4, h5, h6,
.text-dark, .text-primary, .text-secondary,
.card-text, .card-title, .list-group-item {
    color: #000000 !important;
}

/* 導航選單 */
.navbar-nav .nav-link,
.navbar-brand,
.nav-link {
    color: #000000 !important;
}

/* 表格內容 */
table, table td, table th,
.table, .table td, .table th {
    color: #000000 !important;
}

/* 表單元素 */
.form-control, .form-select, .form-check-label,
input[type="text"], input[type="email"], input[type="tel"],
textarea, select, label {
    color: #000000 !important;
}

/* 品牌頁面文字 */
.brand-info, .brand-description,
.product-info, .product-description,
.portfolio-info, .portfolio-description {
    color: #000000 !important;
}

/* 內容區塊 */
.content, .main-content, .page-content,
.article-content, .news-content {
    color: #000000 !important;
}

/* 保留互動元件的特殊色彩（懸停狀態） */
a:hover, .btn:hover, .nav-link:hover {
    /* 保持原有的懸停效果 */
}

/* 按鈕保持原有樣式，但確保對比度 */
.btn, .button {
    /* 保持按鈕原有顏色設計 */
}

/* 響應式橫幅樣式 */
.homepage-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.homepage-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000000;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 8px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000000 !important;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #000000 !important;
}

/* 兩欄式佈局 - 桌面版 */
.two-column-layout {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.sidebar-categories {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.content-area {
    flex: 1;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    margin-bottom: 0.5rem;
}

.category-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-menu a:hover,
.category-menu a.active {
    background-color: #e9ecef;
}

/* 產品/作品集網格 */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.item-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-card-body {
    padding: 1rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000 !important;
}

.item-description {
    font-size: 0.9rem;
    color: #000000 !important;
    margin-bottom: 0.5rem;
}

/* 手機版頁籤設計 */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-categories {
        flex: none;
        position: static;
        margin-bottom: 1rem;
    }
    
    .mobile-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-tab {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        margin-right: 0.5rem;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        color: #000000 !important;
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .mobile-tab.active {
        background: #007bff;
        color: #fff !important;
        border-color: #007bff;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
}

/* FAQ 樣式 */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    color: #000000 !important;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: #333333 !important;
    line-height: 1.6;
    padding-left: 1rem;
}

.faq-divider {
    border-top: 2px dashed #dee2e6;
    margin: 1.5rem 0;
}