﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

 .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close:hover,
        .close:focus {
            color: #0e6eb6;
            text-decoration: none;
            cursor: pointer;
        }

  #myModal {
            display: none; /* 默认隐藏弹框 */
           
        }
        .books .search{width: 290px;height: 40px;border: 1px solid #e0e0e0;box-sizing: border-box;margin-right: 20px;position: relative;}
 #myBtn{float: right;box-sizing: border-box;line-height: 40px;}


.container {
    position: fixed;
    top: 50%;
    left: 50%;
    max-height: 100vh;
    overflow: auto;
    box-sizing: border-box;
    transform:translateX(-50%) translateY(-50%);
    z-index: 999;
    max-width: 560px;
    /* margin: 30px auto; */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    border-bottom: 2px solid #0e6eb6;
    padding-bottom: 10px;
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #0e6eb6;
    color: #333;
}

/* 搜索部分样式 */
.search-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

label {
    width: 100px;
    font-size: 14px;
    color: #555;
    text-align: right;
    padding-right: 15px;
}

.form-control {
    flex: 1;
    max-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #0e6eb6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 110, 182, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 下拉菜单样式 */
.select-wrapper {
    position: relative;
    flex: 1;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

/* 日期范围样式 */
.date-range {
    display: flex;
    align-items: center;
    flex: 1;
}

.year-select {
    width: 80px;
}

.month-select {
    width: 60px;
    margin-left: 8px;
}

.separator {
    margin: 0 10px;
    color: #666;
}

/* 价格范围样式 */
.price-range {
    display: flex;
    align-items: center;
    flex: 1;
}

.price-range input {
    width: 90px;
}

 /*复选框样式 
.packaging-options {
    display: flex;
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 5px;
}*/
/* 复选框样式 */
.packaging-options {
    display: flex;
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    -webkit-appearance: checkbox!important;
    appearance: checkbox;
    width: 16px;
    height: 16px;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #0e6eb6;
    color: white;
}

.btn-primary:hover {
    background-color: #0c5d9a;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        height: 600px;
        width: 360px;
        overflow: scroll;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .date-range, .price-range {
        flex-wrap: wrap;
    }
    
    .year-select, .month-select {
        width: 45%;
        margin: 5px 0;
    }
    
    .separator {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .price-range input {
        width: 45%;
    }
}

