/* 檢驗設備頁面專用樣式 */

/* 基本配色方案 */
:root {
    --primary-color: #221814; /* 標準色（黑色） */
    --accent-color: #BF8619; /* 輔助色（金色） */
    --white-color: #FEFEFE; /* 白色 */
}

/* 頁面通用樣式 */
.testing-page {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* 頁面標題區域 */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 24, 20, 0.7);
}

.header-content {
    padding: 2rem 1.5rem;
    color: var(--white-color);
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.header-content .subtitle {
    margin-bottom: 1.5rem;
}

.header-content .intro-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* 設備摘要區域 */
.testing-summary {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}
.testing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .col-lg-6.d-flex .testing-summary {
        min-width: 500px;
    }
}

.testing-item-simple {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.testing-item-simple .name {
    font-weight: 600;
}

.testing-item-simple .quantity {
    color: var(--accent-color);
    font-weight: 700;
}

/* 檢驗設備區域 */
.testing-section {
    padding: 3rem 0;
    margin-top: 0;
    margin-bottom: 0;
}

.testing-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.testing-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    max-width: 800px;
}

/* 設備項目卡片 */
.testing-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

@media (min-width: 992px) {
    .testing-item {
        flex-direction: row;
    }
}

.testing-image {
    flex: 0 0 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .testing-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

.testing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testing-info {
    flex: 1;
    padding: 2rem 1.5rem;
    background-color: var(--white-color);
}

.testing-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.testing-info h2:after {
    display: none;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .specs-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(34, 24, 20, 0.05);
    padding: 0.75rem;
    border-radius: 4px;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    color: var(--accent-color);
}

.equipment-description {
    line-height: 1.6;
    color: var(--primary-color);
}

/* 檢驗流程卡片 */
.process-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(34, 24, 20, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon img {
    max-width: 100%;
    max-height: 100%;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.process-card p {
    color: var(--primary-color);
    line-height: 1.5;
}

/* 品質承諾區域 */
.quality-commitment {
    background-color: rgba(34, 24, 20, 0.05);
    padding: 3rem 0;
    border-radius: 8px;
}

.commitment-content {
    padding: 1.5rem;
}

.commitment-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.commitment-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.commitment-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.commitment-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.commitment-image {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 991px) {
    .header-content {
        padding: 2rem 1rem;
    }
    
    .testing-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        min-height: 400px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .specs-list {
        grid-template-columns: 1fr;
    }
}
