/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.guestbook-section {
    margin-bottom: 4rem;
    margin-top: 5rem;
}

h2 {
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 1rem auto;
}

/* 留言表单样式 */
.message-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

label {
    color: #666;
    font-size: 0.9rem;
}

input,
textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary-gold);
    outline: none;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-self: end;
}

.submit-btn:hover {
    background: #8c780c;
}

/* 留言展示区样式 */
.messages-container {
    max-width: 800px;
    margin: 0 auto;
}

.messages-container h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.messages-list {
    display: grid;
    gap: 1.5rem;
}

.message-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.message-card:hover {
    transform: translateY(-5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.message-author {
    font-weight: bold;
    color: #1a1a1a;
}

.message-content {
    color: #333;
    line-height: 1.5;
}

/* 提示框样式 */
.toast-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: top 0.5s ease;
}

.toast {
    padding: 1rem 2rem;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

.toast-container.show {
    top: 20px;
}
