@charset "UTF-8";

/* ==========================================================================
   PK-QA.css - Styles for QA List and Detail Pages
   Breadcrumb 、 Pagination 樣式已移至 pk-style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. General Layout & Typography
   -------------------------------------------------------------------------- */
.qa-container {
    padding: 30px 0;
    font-family: "微軟正黑體", "新細明體", futuramedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Search Bar
   Styles moved to pk-style.css (Global Component)
   -------------------------------------------------------------------------- */

/* Legacy Search Bar (QAList - Keep for backward compatibility if needed) */
.qa-search-wrapper {
    margin-bottom: 40px;
    padding: 0 15px;
}

.qa-search-wrapper .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    display: table; /* Bootstrap 3 requirement */
    width: 100%;
}

.qa-search-wrapper .form-control {
    height: 50px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    box-shadow: none;
    float: left;
    width: 100%;
    margin-bottom: 0;
    display: table-cell;
}

.qa-search-wrapper .form-control:focus {
    border-color: #256C53;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(37, 108, 83, 0.2);
}

.qa-search-wrapper .input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    display: table-cell;
}

.btn-qa-search {
    height: 50px;
    background-color: #256C53 !important;
    color: #fff !important;
    border: 1px solid #256C53;
    border-radius: 0 4px 4px 0; /* Rounded corners on right */
    margin-left: -1px;
    font-size: 20px;
    padding: 0 25px;
    transition: all 0.3s ease;
}

.btn-qa-search:hover {
    background-color: #1e5643 !important;
    border-color: #1e5643;
}

/* --------------------------------------------------------------------------
   3. Product Card (Shared by List Item & Detail Sidebar)
   -------------------------------------------------------------------------- */
.qa-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%; /* For equal height in grid */
    display: flex;
    flex-direction: column;
}

.qa-product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #256C53;
}

/* Image Area */
.qa-product-card .image-container {
    margin-bottom: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qa-product-card .image-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transition: transform 0.5s ease;
}

.qa-product-card:hover .image-container img {
    transform: scale(1.05);
}

/* Text Info */
.qa-product-card .info-container {
    flex-grow: 1; /* Pushes buttons to bottom */
    margin-bottom: 15px;
}

.qa-product-card .sku {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    display: block;
}

.qa-product-card .name {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* Fixed height for 2 lines */
}

/* Link wrapper for whole card (optional usage) */
.qa-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.qa-product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.qa-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Primary Action: Product Info (More Important) */
.btn-qa-primary {
    background-color: #256C53;
    color: #fff !important;
    border: 1px solid #256C53;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-qa-primary:hover, 
.btn-qa-primary:focus, 
.btn-qa-primary:active {
    background-color: #1e5643;
    border-color: #1e5643;
    color: #fff !important;
    text-decoration: none;
}

/* Secondary Action: Technical Inquiry */
.btn-qa-secondary {
    background-color: #fff;
    color: #256C53;
    border: 1px solid #256C53;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-qa-secondary:hover, 
.btn-qa-secondary:focus,
.btn-qa-secondary:active {
    background-color: #f0f9f6;
    color: #1e5643;
    border-color: #1e5643;
    text-decoration: none;
}

/* Back Button */
.btn-qa-back {
    background-color: transparent;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

.btn-qa-back:hover,
.btn-qa-back:focus {
    background-color: #f5f5f5;
    color: #333;
    border-color: #999;
    text-decoration: none;
}

.btn-qa-back i {
    margin-right: 5px;
}

/* List Spacing */
.qa-list-item {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Detail Spacing */
@media (min-width: 768px) {
    .qa-sidebar-col {
        padding-right: 30px;
    }
    .qa-content-col {
        padding-left: 30px;
    }
}

/* --------------------------------------------------------------------------
   5. QA Detail Content (QADetail)
   -------------------------------------------------------------------------- */
.qa-detail-list .qa-item {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qa-detail-list .qa-title {
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    border-left: 5px solid #256C53;
    border-radius: 4px 4px 0 0;
}

.qa-detail-list .qa-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.qa-detail-list .qa-content {
    padding: 25px 30px;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.qa-detail-list .qa-content p {
    margin-bottom: 15px;
}

.qa-detail-list .qa-content ul, 
.qa-detail-list .qa-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.qa-detail-list .qa-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------
   6. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .qa-sticky-sidebar {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 767px) {
    .qa-search-wrapper {
        padding: 0;
    }
    
    .qa-product-card {
        margin-bottom: 20px;
    }
}

/* --------------------------------------------------------------------------
   7. Tabs (for Download Page)
   -------------------------------------------------------------------------- */
.nav-tabs {
    border-bottom: 2px solid #256C53;
    margin-bottom: 30px;
}

.nav-tabs > li > a {
    margin-right: 5px;
    border: 1px solid #e0e0e0;
    border-bottom-color: transparent;
    border-radius: 4px 4px 0 0;
    color: #555;
    font-weight: 600;
    font-size: 16px;
    background-color: #f9f9f9;
    padding: 10px 20px;
    transition: all 0.3s;
}

.nav-tabs > li > a:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.nav-tabs > li.active > a, 
.nav-tabs > li.active > a:hover, 
.nav-tabs > li.active > a:focus {
    color: #fff;
    background-color: #256C53;
    border: 1px solid #256C53;
    border-bottom-color: transparent;
    cursor: default;
}

.tab-content {
    padding: 10px 0;
}