/* 以物易物论坛前端样式 */

.fmid-exchange-forum-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fmid-exchange-forum-header {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.fmid-exchange-forum-header .button {
    margin-right: 10px;
}

#fmid-exchange-create-topic-form {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 30px;
}

.fmid-exchange-form {
    display: flex;
    flex-direction: column;
}

.fmid-exchange-form p {
    margin-bottom: 15px;
}

.fmid-exchange-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.fmid-exchange-form input[type="text"],
.fmid-exchange-form input[type="email"],
.fmid-exchange-form input[type="password"],
.fmid-exchange-form input[type="date"],
.fmid-exchange-form input[type="number"],
.fmid-exchange-form textarea,
.fmid-exchange-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
}

.fmid-exchange-form textarea {
    resize: vertical;
    min-height: 150px;
}

.fmid-exchange-form input[type="checkbox"],
.fmid-exchange-form input[type="radio"] {
    margin-right: 5px;
}

.fmid-exchange-form .button {
    align-self: flex-start;
    margin-top: 10px;
}

.fmid-exchange-topics-list {
    margin-top: 30px;
}

.fmid-exchange-topics-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fmid-exchange-topic-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.fmid-exchange-topic-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fmid-exchange-topic-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.fmid-exchange-topic-header h3 {
    margin: 0;
    flex: 1;
}

.fmid-exchange-topic-header h3 a {
    color: #0073aa;
    text-decoration: none;
}

.fmid-exchange-topic-header h3 a:hover {
    color: #005a87;
    text-decoration: underline;
}

.fmid-exchange-topic-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 12px;
}

.fmid-exchange-topic-type.sell {
    background-color: #ffcccc;
    color: #cc0000;
}

.fmid-exchange-topic-type.buy {
    background-color: #ccffcc;
    color: #00cc00;
}

.fmid-exchange-topic-pinned,
.fmid-exchange-topic-featured {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 12px;
    background-color: #fff3cd;
    color: #856404;
}

.fmid-exchange-topic-content {
    margin-bottom: 15px;
}

.fmid-exchange-topic-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.fmid-exchange-item-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

.fmid-exchange-image-thumbnail {
    max-width: 100px;
    max-height: 100px;
}

.fmid-exchange-image-medium {
    max-width: 200px;
    max-height: 200px;
}

.fmid-exchange-image-large {
    max-width: 300px;
    max-height: 300px;
}

.fmid-exchange-topic-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

.fmid-exchange-topic-meta span {
    display: inline-block;
}

.fmid-exchange-topic-range,
.fmid-exchange-topic-methods {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

/* 用户个人中心样式 */

.fmid-exchange-user-profile-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fmid-exchange-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.fmid-exchange-avatar {
    flex-shrink: 0;
}

.fmid-exchange-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.fmid-exchange-user-info {
    flex: 1;
}

.fmid-exchange-user-info h2 {
    margin: 0 0 10px 0;
}

.fmid-exchange-user-info p {
    margin: 5px 0;
    color: #666;
}

.fmid-exchange-profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #0073aa;
}

.tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.fmid-exchange-profile-content {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.fmid-exchange-user-items-list,
.fmid-exchange-transactions-list,
.fmid-exchange-accounting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fmid-exchange-user-item,
.fmid-exchange-transactions-list li,
.fmid-exchange-accounting-list li {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.fmid-exchange-user-item h4 {
    margin: 0 0 10px 0;
}

.fmid-exchange-item-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.fmid-exchange-quoted-item-preview {
    background-color: #f0f0f0;
    padding: 15px;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
    margin: 10px 0;
}

.fmid-exchange-quoted-item-preview h4 {
    margin: 0 0 10px 0;
}

.fmid-exchange-quoted-item-preview p {
    margin: 5px 0;
    font-size: 13px;
}

.fmid-exchange-preview-image {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
    margin-bottom: 10px;
}

.fmid-exchange-pagination {
    margin-top: 20px;
    text-align: center;
}

.fmid-exchange-pagination a,
.fmid-exchange-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #0073aa;
}

.fmid-exchange-pagination a:hover {
    background-color: #0073aa;
    color: #ffffff;
}

.fmid-exchange-pagination .current {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

/* 响应式设计 */

@media (max-width: 768px) {
    .fmid-exchange-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .fmid-exchange-topic-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fmid-exchange-topic-meta {
        flex-direction: column;
        gap: 5px;
    }

    .fmid-exchange-form input[type="text"],
    .fmid-exchange-form input[type="email"],
    .fmid-exchange-form input[type="password"],
    .fmid-exchange-form input[type="date"],
    .fmid-exchange-form input[type="number"],
    .fmid-exchange-form textarea,
    .fmid-exchange-form select {
        font-size: 16px; /* 防止iOS自动放大 */
    }
}

