/* 留言板优化样式 */
.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.guestbook-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.guestbook-form:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.guestbook-form h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.guestbook-form h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00A7EB, #3690cf);
    border-radius: 2px;
}

.guestbook-form .form-desc {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

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

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00A7EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 167, 235, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.focused label {
    color: #00A7EB;
}

.submit-btn {
    background: linear-gradient(135deg, #00A7EB, #3690cf);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 167, 235, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 235, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.required {
    color: #ff4757;
    margin-left: 4px;
}

/* 留言列表样式 */
.guestbook-list {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.guestbook-list h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.guestbook-list h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00A7EB, #3690cf);
    border-radius: 2px;
}

.guestbook-item {
    position: relative;
    padding: 25px;
    margin-bottom: 25px;
    background: #fafbfc;
    border-radius: 12px;
    border-left: 4px solid #00A7EB;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guestbook-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.guestbook-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: #00A7EB;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e8e8e8;
}

.guestbook-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.guestbook-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A7EB, #3690cf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 167, 235, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guestbook-item:hover .guestbook-avatar {
    transform: scale(1.05);
}

.guestbook-info {
    flex: 1;
}

.guestbook-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.guestbook-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.guestbook-time {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.guestbook-time i {
    margin-right: 5px;
    font-size: 12px;
}

.guestbook-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid #e8e8e8;
}

/* 管理员回复样式 */
.admin-reply {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 4px solid #ff6b6b;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.admin-reply:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e8e8e8;
}

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

.admin-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.admin-name {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
}

.admin-reply-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    padding: 10px;
    background: #fafbfc;
    border-radius: 6px;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #666;
}

.pagination a:hover {
    background: #00A7EB;
    color: white;
    border-color: #00A7EB;
    transform: translateY(-1px);
}

.pagination .current {
    background: #00A7EB;
    color: white;
    border-color: #00A7EB;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading i {
    font-size: 24px;
    color: #00A7EB;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .guestbook-container {
        padding: 10px;
    }
    
    .guestbook-form,
    .guestbook-list {
        padding: 20px;
    }
    
    .guestbook-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .guestbook-avatar {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .guestbook-form h3,
    .guestbook-list h3 {
        font-size: 20px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .guestbook-container {
        padding: 5px;
    }
    
    .guestbook-form,
    .guestbook-list {
        padding: 15px;
    }
    
    .guestbook-item {
        padding: 15px;
    }
    
    .admin-reply {
        padding: 15px;
    }
} 