﻿
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
.container_top {
    max-width: 768px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.container {
    max-width: 768px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding:20px 0px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* 供求信息标题 */
.info-header {
    background-color: #1e88e5;
    color: white;
    padding: 12px 15px;
    margin:0px 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

    .info-header:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
        animation: shine 2s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 基本信息部分 */
.info-section {
    margin: 20px 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    width: 80px;
    font-weight: bold;
    text-align: justify;
    text-align-last: justify;
    padding-right: 10px;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
}

/* 详细信息部分 */
.detail-section {
    margin: 20px 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.section-title {
    background-color: #f0f0f0;
    padding: 8px 15px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 4px solid #1e88e5;
}

.detail-content {
    display: flex;
    align-items: flex-start;
}

.product-image {
    width: 120px;
    height: 120px;
    margin-right: 15px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.product-description {
    flex: 1;
    width: 100%; /* 继承父容器宽度 */
    overflow-wrap: break-word; /* 允许在单词内断行 */
    word-break: break-all; /* 强制所有字符都能断行 */
    white-space: normal; /* 确保文本正常换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 超出时显示省略号(可选) */
    display: inline-block; /* 确保宽度限制生效 */
}

/* 反馈部分 */
.feedback-section {
    margin: 0px 15px;
}

.feedback-form {
    background-color: #e5f8ff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #afeafc;
}

.form-title {
    text-align: center;
    margin-bottom: 15px;
    color: #d32f2f;
    font-weight: bold;
}

.form-group {
    margin-bottom: 12px;
}

    .form-group span {
        display: inline-block;
        width: 60px;
        text-align: right;
        margin-right: 10px;
    }

.form-control {
    width: 300px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

    .submit-btn:hover {
        background-color: #1565c0;
    }

.warning-note {
    text-align: center;
    color: #d32f2f;
    font-weight: bold;
    margin-top: 15px;
    font-size: 14px;
}

.message-info {
    color: #d32f2f;
    text-align: center;
    margin: 10px 0;
}
