#info-card {
    background-color: var(--panel-bg-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    display: block;
}

#info-card.hidden {
    opacity: 0.5;
    pointer-events: none;
}

#info-card h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-color);
}

#info-card p {
    margin: 5px 0;
    font-size: 1em;
    color: #666;
}

#info-card .specification {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

#info-card .specification:last-child {
    border-bottom: none;
}

#info-card .spec-name {
    font-weight: bold;
}

#info-card .spec-value {
    color: #555;
}

#info-card .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #999;
    position: absolute;
    top: 10px;
    right: 10px;
}

#info-card .close-btn:hover {
    color: #333;
}

/* 詳細規格按鈕 */
.details-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.details-button:hover {
    background-color: var(--accent-hover-color, #0056b3);
}

/* 模態視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--panel-bg-color);
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

/* 規格區塊樣式 */
.spec-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.spec-section:last-child {
    border-bottom: none;
}

.spec-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--accent-color, #0078d7);
}

.full-spec-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    font-weight: 500;
    color: #555;
    flex: 0 0 40%;
}

.spec-value {
    color: #333;
    text-align: right;
    flex: 0 0 58%;
}

/* 在中等螢幕尺寸上使用雙欄排列 */
@media (min-width: 768px) {
    .full-spec-list {
        grid-template-columns: 1fr 1fr;
        gap: 15px 30px;
    }
}

/* 在小螢幕裝置上調整資訊卡和模態視窗 */
@media (max-width: 768px) {
    #info-card {
        padding: 10px;
    }
    
    #info-card h2 {
        font-size: 1.2em;
    }
    
    #info-card p {
        font-size: 0.9em;
    }
    
    .modal-content {
        width: 95%;
        margin: 30px auto;
        padding: 15px;
    }
    
    .spec-row {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .spec-key {
        margin-bottom: 5px;
    }
    
    .spec-value {
        text-align: left;
    }
}