
   /* ============================================
       增强版留言板块样式 - 支持用户回复
       ============================================ */

    .message-section {
        padding: 60px 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
        overflow: hidden;
    }

    .message-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        opacity: 0.3;
        animation: backgroundMove 20s linear infinite;
    }

    @keyframes backgroundMove {
        0% { transform: translate(0, 0); }
        100% { transform: translate(50px, 50px); }
    }

    .message-section .section-header {
        position: relative;
        z-index: 1;
        margin-bottom: 10px;
    }

    .message-section .section-tag {
        background: rgba(255,255,255,0.2);
        color: white;
        backdrop-filter: blur(10px);
    }

    .message-section .section-title {
        color: white;
        font-size: 28px;
        margin-bottom: 8px;
    }

    .message-section .section-subtitle {
        color: rgba(255,255,255,0.8);
        font-size: 14px;
    }

    .message-wrapper {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 30px;
        margin-top: 30px;
        position: relative;
        z-index: 1;
    }

    .message-form-card,
    .message-list-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .message-form-card:hover,
    .message-list-card:hover {
        transform: translateY(-5px);
        box-shadow: 
            0 35px 60px -15px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }

    .message-form-card h4,
    .message-list-card h4 {
        font-size: 18px;
        margin-bottom: 20px;
        color: #1a202c;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        position: relative;
        padding-bottom: 16px;
    }

    .message-form-card h4::after,
    .message-list-card h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
    }

    .message-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        color: #4a5568;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .form-group:focus-within label {
        color: #667eea;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e2e8f0;
        border-radius: 16px;
        font-size: 15px;
        font-family: inherit;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #f7fafc;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 
            0 0 0 4px rgba(102, 126, 234, 0.1),
            0 4px 12px rgba(102, 126, 234, 0.15);
        transform: translateY(-2px);
    }

    .btn-submit {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 14px 36px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-self: center;
        box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.5);
        position: relative;
        overflow: hidden;
        letter-spacing: 1px;
        white-space: nowrap;  /* 强制文字不换行 */
        flex-shrink: 0;  /* 防止按钮被压缩 */
    }

    .btn-submit:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 20px 40px -5px rgba(102, 126, 234, 0.6);
    }

    .btn-submit:active {
        transform: translateY(-1px) scale(0.98);
    }

    .btn-submit::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }

    .btn-submit:hover::before {
        left: 100%;
    }

    .btn-submit svg {
        transition: transform 0.3s ease;
    }

    .btn-submit:hover svg {
        transform: translateX(3px) rotate(-10deg);
    }

    .btn-submit::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-submit:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 20px 30px -5px rgba(102, 126, 234, 0.5);
    }

    .btn-submit:hover::before {
        left: 100%;
    }

    /* 留言列表 */
    .message-list {
        max-height: 400px;
        overflow-y: auto;
        padding-right: 12px;
    }

    .message-list::-webkit-scrollbar {
        width: 8px;
    }

    .message-list::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #667eea, #764ba2);
        border-radius: 4px;
    }

    /* 留言项 - 支持对话线程 */
    .message-thread {
        margin-bottom: 15px;
        background: linear-gradient(145deg, #f8fafc, #ffffff);
        border-radius: 16px;
        padding: 18px;
        box-shadow: 8px 8px 16px #e2e8f0, -8px -8px 16px #ffffff;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }

    .message-thread:hover {
        transform: translateX(8px);
        box-shadow: 12px 12px 24px #e2e8f0, -4px -4px 12px #ffffff;
    }

    .message-thread::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #667eea, #764ba2);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .message-thread:hover::before {
        opacity: 1;
    }

    /* 主留言 */
    .message-main {
        margin-bottom: 16px;
    }

    .message-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .message-user {
        font-weight: 700;
        color: #1a202c;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
    }

    .message-user::before {
        content: attr(data-initial);
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .message-time {
        font-size: 12px;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 4px 10px;
        border-radius: 20px;
    }

    .message-source {
        font-size: 11px;
        color: #64748b;
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .message-source::before {
        content: "📍";
    }

    .message-content {
        color: #475569;
        line-height: 1.8;
        font-size: 15px;
        padding-left: 46px;
    }

    /* 管理员回复 */
    .admin-reply {
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border-radius: 16px;
        padding: 16px 20px;
        margin: 12px 0 12px 46px;
        position: relative;
        border-left: 4px solid #3b82f6;
    }

    .admin-header {
        font-size: 13px;
        color: #1d4ed8;
        font-weight: 700;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .admin-header::before {
        content: "👮";
    }

    .admin-time {
        font-size: 11px;
        color: #60a5fa;
        margin-left: auto;
    }

    .admin-content {
        color: #1e40af;
        line-height: 1.7;
        font-size: 14px;
    }

    /* 用户回复表单 */
    .user-reply-form {
        background: #f8fafc;
        border-radius: 12px;
        padding: 16px;
        margin: 12px 0 0 46px;
        border: 2px dashed #e2e8f0;
        transition: all 0.3s ease;
    }

    .user-reply-form:hover {
        border-color: #cbd5e1;
        background: #f1f5f9;
    }

    .user-reply-form.active {
        border-color: #667eea;
        background: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    }

    .user-reply-form textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 14px;
        resize: vertical;
        min-height: 80px;
        margin-bottom: 12px;
        font-family: inherit;
    }

    .user-reply-form textarea:focus {
        outline: none;
        border-color: #667eea;
    }

    .reply-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .btn-reply-submit {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
    }

    .btn-reply-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .btn-reply-cancel {
        background: #e2e8f0;
        color: #64748b;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-reply-cancel:hover {
        background: #cbd5e1;
        color: #475569;
    }

    .btn-show-reply {
        background: transparent;
        color: #667eea;
        border: 2px solid #667eea;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        margin: 8px 0 0 46px;
    }

    .btn-show-reply:hover {
        background: #667eea;
        color: white;
    }

    /* 用户回复历史 */
    .user-reply-history {
        background: #f0fdf4;
        border-radius: 12px;
        padding: 14px 18px;
        margin: 10px 0 0 46px;
        border-left: 4px solid #22c55e;
    }

    .user-reply-header {
        font-size: 12px;
        color: #15803d;
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .user-reply-header::before {
        content: "🙋";
    }

    .user-reply-time {
        font-size: 11px;
        color: #86efac;
        margin-left: auto;
    }

    .user-reply-content {
        color: #166534;
        font-size: 14px;
        line-height: 1.6;
    }

    /* 对话连接线 */
    .reply-chain {
        position: relative;
        padding-left: 20px;
    }

    .reply-chain::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
    }

    /* 加载和空状态 */
    .loading-messages,
    .empty-messages {
        text-align: center;
        padding: 60px 20px;
        color: #94a3b8;
    }

    .empty-messages::before {
        content: "💬";
        display: block;
        font-size: 64px;
        margin-bottom: 20px;
        opacity: 0.6;
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    /* 响应式 */
    @media (max-width: 1024px) {
        .message-wrapper {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 640px) {
        .form-row {
            grid-template-columns: 1fr;
        }

        .message-thread {
            padding: 16px;
        }

        .message-content,
        .admin-reply,
        .user-reply-form,
        .user-reply-history,
        .btn-show-reply {
            margin-left: 0;
            padding-left: 16px;
        }

        .reply-chain::before {
            left: 8px;
        }
    }

    /* 引导卡片 */
    .guide-to-message {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        padding: 20px 24px;
        margin-top: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
    }

    .guide-to-message:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    }

    .guide-content {
        display: flex;
        align-items: center;
        gap: 12px;
        color: white;
    }

    .guide-icon {
        font-size: 28px;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    .guide-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .guide-title {
        font-weight: 700;
        font-size: 16px;
    }

    .guide-desc {
        font-size: 14px;
        opacity: 0.9;
    }

    .guide-btn {
        background: white;
        color: #667eea;
        padding: 12px 24px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
        border: none;
        cursor: pointer;
    }

    .guide-btn:hover {
        background: #f8fafc;
        transform: scale(1.05);
    }

    @media (max-width: 640px) {
        .guide-to-message {
            flex-direction: column;
            text-align: center;
        }

        .guide-btn {
            width: 100%;
            justify-content: center;
        }
    }
    /* 多条回复样式 */
    .replies-section {
        margin: 12px 0 0 40px;
        background: linear-gradient(145deg, #f8fafc, #ffffff);
        border-radius: 14px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .replies-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid #e2e8f0;
    }

    .replies-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        color: #1a202c;
        font-size: 15px;
    }

    .replies-title svg {
        color: #667eea;
    }

    .reply-count-badge {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-left: auto;
    }

    .replies-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .admin-reply-item {
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border-radius: 12px;
        padding: 12px;
        border-left: 4px solid #3b82f6;
        position: relative;
        transition: all 0.3s ease;
    }

    .admin-reply-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    }

    .admin-reply-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .admin-reply-header svg {
        color: #3b82f6;
    }

    .admin-name {
        font-weight: 700;
        color: #1d4ed8;
        font-size: 14px;
    }

    .admin-company {
        color: #60a5fa;
        font-size: 13px;
    }

    .admin-time {
        color: #93c5fd;
        font-size: 12px;
        margin-left: auto;
    }

    .admin-reply-content {
        color: #1e40af;
        line-height: 1.8;
        font-size: 14px;
        padding-left: 30px;
    }

    /* 响应式调整 */
    @media (max-width: 640px) {
        .replies-section {
            margin-left: 0;
            padding: 16px;
        }

        .admin-reply-content {
            padding-left: 0;
        }

        .admin-time {
            margin-left: 0;
            width: 100%;
            margin-top: 5px;
        }
    }