/* WPDemo1 Plugin Frontend Styles */

/* FAQ 样式 */
.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 0;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.faq-question:after {
    content: '+';
    float: right;
    font-size: 20px;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 15px;
    display: none;
    background-color: white;
}

.faq-answer.show {
    display: block;
}

/* 文件下载样式 */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.download-item .file-info {
    flex-grow: 1;
}

.download-item .file-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.download-item .file-meta {
    font-size: 14px;
    color: #666;
}

.download-item .download-btn {
    background-color: #007cba;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.download-item .download-btn:hover {
    background-color: #005a87;
}

/* 产品咨询模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.close-modal {
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background-color: #218838;
}

/* 后台样式 */
.wpdemo1-admin-page .card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wpdemo1-admin-page .card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wpdemo1-admin-page .card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.wpdemo1-admin-page .card li {
    margin-bottom: 8px;
}

.wpdemo1-admin-page .card a {
    text-decoration: none;
    color: #0073aa;
}

.wpdemo1-admin-page .card a:hover {
    text-decoration: underline;
}