/* 新增回复按钮样式 */
.reply-btn {
    background: #4a6ee0;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s ease;
}

/* 新增IP地址样式 */
.ip {
    color: #718096;
    font-size: 0.8em;
    margin-left: 10px;
    font-family: monospace;
}

.reply-btn:hover {
    background: #3a5ed0;
    transform: translateY(-1px);
}

/* 更新回复表单样式 */
.reply-box {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.reply-box textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
}

.reply-box button {
    padding: 8px 20px;
    font-size: 14px;
}

/* 访客标签样式（留言和回复保持一致） */
.user, 
.reply .user:not(.admin) {
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* 管理员回复标签样式 */
.reply .user.admin {
    background: #e53e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* 消息容器样式 */
.msg {
    scroll-margin-top: 20px;
    position: relative;
}

/* 优化后的回复按钮样式 */
.reply-btn {
    background: transparent;
    color: #4299e1;
    border: 1px solid #4299e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reply-btn:hover {
    background: rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

.reply-btn::before {
    content: "↩";
    font-size: 1.1em;
}

/* 回复表单样式 */
.reply-box {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
    border: 1px solid #e2e8f0;
}

.reply-box textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.reply-box textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.reply-box button {
    padding: 8px 20px;
    font-size: 14px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.reply-box button:hover {
    background: #3182ce;
}


/* 锚点定位样式 */
.msg {
    scroll-margin-top: 20px;
}

/* 其他原有样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 20px;
    background: #ffffff;
    min-height: 100vh;
    zoom: 0.9
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.header {
    background: #f8f9fa;
    color: #2d3748;
    padding: 0px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.header h2 {
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #2d3748;
}

.notice {
    padding: 20px;
    background: #fff9db;
    border-left: 4px solid #ffd43b;
    margin: 20px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #5c3c00;
    zoom: 1.4
}

.notice strong {
    color: #d6336c;
}

.message-form {
    padding: 0 10px 10px;
}

.message-form h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3em;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    background: white;
}

textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.2);
}

.divider {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 20px;
}

.messages-list {
    padding: 0 20px 30px;
}

.messages-list h3 {
    color: #2d3748;
    margin: 20px 0;
    font-weight: 600;
    font-size: 1.3em;
}

.msg {
    background: white;
    border-radius: 10px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.msg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

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

.user {
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.time {
    color: #718096;
    font-size: 1.1em;
}

.message-text {
    line-height: 1.6;
    color: #2d3748;
    padding-left: 5px;
}

.reply {
    margin: 8px 0 0 30px;
    padding: 5px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #4299e1;
    position: relative;
}

.reply::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 15px;
    width: 20px;
    height: 2px;
    background: #e2e8f0;
}

.no-messages {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-style: italic;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-1px);
}

.page-link.current {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.pagination-info {
    text-align: center;
    color: #718096;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* 顶部导航按钮 */
.top-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    background: transparent;
    backdrop-filter: none;
}

.return-btn {
    background: #4299e1;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(66, 153, 225, 0.2);
}

.return-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h2 {
        font-size: 1.8em;
    }
    
    .message-form,
    .messages-list,
    .notice {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .reply {
        margin-left: 15px;
    }
    
    .reply::before {
        left: -15px;
        width: 10px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 0.9em;
        min-width: 35px;
    }
}
