.interaction-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.interaction-panel-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.interaction-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    backdrop-filter: blur(30px) saturate(1.8);
    z-index: 999;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.1); 
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}
.interaction-panel.active {
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; 
    border-bottom: 1px solid rgba(230, 230, 230, 0.5); 
}
.panel-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600; 
    color: #333;
}
.close-panel-btn {
    background: none;
    border: none;
    font-size: 30px; 
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}
.close-panel-btn:hover {
    color: #555; 
}

.panel-content-scroll {
    flex-grow: 1;
    padding: 25px; 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.interaction-panel-bottom-mask {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #fff 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1000;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0f0f0; 
}

.grid-item-value {
    font-size: 26px; 
    font-weight: bold;
    display: block;
    color: #ff8c00; 
}
.grid-item-label {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}
.panel-list-item {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}
.panel-list-item strong {
    color: #333;
}
.panel-content hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 25px 0;
}
.panel-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.comment-record {
    background-color: transparent; 
    border: 1px dashed #ccc; 
    padding: 15px; 
    margin-bottom: 12px;
    font-size: 14px;
    border-radius: 8px; 
    transition: border-color 0.2s ease-in-out;
    cursor: pointer; 
}

.comment-record:hover {
    border-color: #ff8c00; 
}

.comment-record p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}
.comment-record-meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    text-align: right;
}
.comment-list .avatar {
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.comment-record.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}