
/* ===== 免责声明样式 ===== */
.disclaimer-notice {
    background-color: #fff8e6; /* 浅黄色背景 */
    border-left: 4px solid #ffc107; /* 左侧橙色边框 */
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.disclaimer-notice h3 {
    color: #d32f2f; /* 红色标题 */
    margin-top: 0;
    font-size: 16px;
}

.disclaimer-notice p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}
/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
        background-color: transparent; /* 透明，继承.header的深蓝色 */
    /* 或直接设置为深蓝色 */
    background-color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header nav a:hover {
    background-color: #34495e;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-sell {
    background-color: #e74c3c;
}

.btn-sell:hover {
    background-color: #c0392b;
}

.btn-buy {
    background-color: #2ecc71;
}

.btn-buy:hover {
    background-color: #27ae60;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-edit {
    background-color: #f39c12;
}

.btn-edit:hover {
    background-color: #d35400;
}

.btn-cancel {
    background-color: #95a5a6;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-group input {
    flex: 1;
}

.price-group select {
    width: auto;
}

/* 信息列表样式 */
.filter-section {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-form input,
.filter-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.listing {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.listing.buy {
    border-left: 4px solid #2ecc71;
}

.listing.sell {
    border-left: 4px solid #e74c3c;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.listing-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.listing-price {
    font-size: 20px;
    color: #e67e22;
    font-weight: bold;
}

.listing-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.listing-meta span {
    margin-right: 10px;
}

.listing-description {
    margin: 10px 0;
    line-height: 1.6;
}

.listing-contact {
    margin: 10px 0;
    font-size: 14px;
}

/* 详情页样式 */
.listing-detail {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.listing-detail.buy {
    border-left: 4px solid #2ecc71;
}

.listing-detail.sell {
    border-left: 4px solid #e74c3c;
}

/* 信息列表样式 - 修改类型文本 */
.listing.buy .listing-meta span:first-child,
.listing-detail.buy .detail-meta span:first-child {
    color: #9b59b6; /* 蓝色 */
    font-weight: bold;
    font-size: 1.05em;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase; /* 可选：转为大写 */
}

.listing.sell .listing-meta span:first-child,
.listing-detail.sell .detail-meta span:first-child {
    color: #2ecc71; /* 绿色 */
    font-weight: bold;
    font-size: 1.05em;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase; /* 可选：转为大写 */
}

/* 保持现有的边框指示色 */
.listing.buy {
    border-left: 4px solid #3498db; /* 蓝色 */
}

.listing.sell {
    border-left: 4px solid #2ecc71; /* 绿色 */
}

.listing-detail.buy {
    border-left: 4px solid #3498db; /* 蓝色 */
}

.listing-detail.sell {
    border-left: 4px solid #2ecc71; /* 绿色 */
}
.detail-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.detail-price {
    font-size: 28px;
    color: #e67e22;
    font-weight: bold;
}

.detail-meta {
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-description {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    line-height: 1.6;
}

.contact-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 4px;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* 密码验证表单 */
.password-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: none;
}

.password-form h3 {
    margin-top: 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 错误消息 */
.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffeeee;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header nav {
        margin-top: 10px;
    }
    
    .header nav a {
        margin: 0 5px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listing-header,
    .detail-header {
        flex-direction: column;
    }
    
    .listing-title,
    .detail-title {
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    
}