* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* 页面容器 */
.guestbook-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.guestbook-header {
    background: linear-gradient(135deg, #032541 0%, #01b4e4 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(3, 37, 65, 0.2);
    position: relative;
    overflow: hidden;
    top: 10px;
}

.guestbook-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.guestbook-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.guestbook-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #032541;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #01b4e4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 180, 228, 0.3);
}

.back-link svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* 评论区域容器 */
.comments-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.comments-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #032541, #01b4e4, #032541);
}

/* 自定义discuss评论样式 */
#Discuss-Comments {
    font-family: 'Arial', sans-serif;
}

/* 覆盖默认样式，使其与网站主题一致 */
#Discuss-Comments .discuss-comment-form {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e9ecef !important;
}

#Discuss-Comments .discuss-comment-form textarea {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease !important;
}

#Discuss-Comments .discuss-comment-form textarea:focus {
    border-color: #01b4e4 !important;
    box-shadow: 0 0 0 3px rgba(1, 180, 228, 0.1) !important;
}

#Discuss-Comments .discuss-comment-form button {
    background: linear-gradient(135deg, #032541, #01b4e4) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#Discuss-Comments .discuss-comment-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(1, 180, 228, 0.3) !important;
}

#Discuss-Comments .discuss-comment-item {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border-left: 4px solid #01b4e4 !important;
    transition: all 0.3s ease !important;
}

#Discuss-Comments .discuss-comment-item:hover {
    background: #e9ecef !important;
    transform: translateX(5px) !important;
}

#Discuss-Comments .discuss-comment-author {
    color: #032541 !important;
    font-weight: 600 !important;
}

#Discuss-Comments .discuss-comment-content {
    color: #333 !important;
    line-height: 1.6 !important;
    margin: 10px 0 !important;
}

#Discuss-Comments .discuss-comment-time {
    color: #6c757d !important;
    font-size: 12px !important;
}

/* 加载动画 */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    flex-direction: column;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #01b4e4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-text {
    color: #6c757d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guestbook-container {
        padding: 0 15px;
    }

    .guestbook-header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .guestbook-header h1 {
        font-size: 2rem;
    }

    .guestbook-header p {
        font-size: 1rem;
    }

    .comments-wrapper {
        padding: 20px;
        border-radius: 10px;
    }

    .back-link {
        margin-bottom: 15px;
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }

    .guestbook-header h1 {
        font-size: 1.8rem;
    }

    .guestbook-header p {
        font-size: 0.9rem;
    }

    .comments-wrapper {
        padding: 15px;
    }

    #Discuss-Comments .discuss-comment-form {
        padding: 15px !important;
    }

    #Discuss-Comments .discuss-comment-item {
        padding: 12px !important;
    }
}

/* 主题切换动画 */
.theme-transition {
    transition: all 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #032541, #01b4e4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #01b4e4, #032541);
}

/* 美化引用和代码块 */
#Discuss-Comments blockquote {
    border-left: 4px solid #01b4e4 !important;
    background: #f8f9fa !important;
    padding: 10px 15px !important;
    margin: 10px 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

#Discuss-Comments code {
    background: #e9ecef !important;
    color: #032541 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
}

#Discuss-Comments pre {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 15px !important;
    overflow-x: auto !important;
}
