/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* 容器样式 */
.agents, .blogs {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 标题样式 */
h1, h2 {
    color: #2c3e50;
}

h2 {
    margin-top: 1.5em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5em;
}

/* 链接样式 */
a {
    color: #1a73e8;  /* 改为主题色 */
    text-decoration: none;
}

a:hover {
    color: #1557b2;  /* 主题色加深 */
    text-decoration: underline;
}

/* 按钮样式 */
.blogs a[href*="logout"],
.blogs a[href*="post_blog"],
.blogs a[href*="edit_blog"],
.blogs a[href*="delete_blog"] {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 4px;
    background-color: #1a73e8;  /* 改为主题色 */
    color: white;
    transition: background-color 0.3s;
}

.blogs a[href*="logout"]:hover,
.blogs a[href*="post_blog"]:hover,
.blogs a[href*="edit_blog"]:hover,
.blogs a[href*="delete_blog"]:hover {
    background-color: #1557b2;  /* 主题色加深 */
}

/* 博客内容样式 */
.blogs p {
    color: #666;
    line-height: 1.8;
}

/* 时间戳样式 */
.blogs p:last-child {
    color: #95a5a6;
    font-size: 0.9em;
    margin-top: 0.5em;
}

/* 智能体列表样式 */
.agents ul {
    list-style: none;
    padding: 0;
}

.agents li {
    margin: 10px 0;
}

.agents a {
    display: block;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.agents a:hover {
    background-color: #bdc3c7;
}

/* 顶部和底部模块样式 */
.top-container, .bottom-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 顶部导航样式 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.top-nav a {
    color: #1a73e8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.top-nav a:hover {
    background-color: #ecf0f1;
}

/* 底部信息样式 */
.bottom-info {
    text-align: center;
    padding: 20px 0;
    color: #95a5a6;
    font-size: 0.9em;
}

.bottom-info a {
    color: #1a73e8;
    text-decoration: none;
}

.bottom-info a:hover {
    text-decoration: underline;
}


/* 顶部内容样式 */
.top-content {
    text-align: center;
    padding: 20px 0;
}

.top-content h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.top-content p {
    color: #666;
    font-size: 1.1em;
}


/* 博客详情页样式 */
.blog-detail {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-detail h2 {
    color: #2c3e50;
    margin-bottom: 1em;
}

.blog-detail .meta-info {
    color: #95a5a6;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

.blog-detail .content {
    color: #666;
    line-height: 1.8;
}

/* 首页链接样式 */
.home-link {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 3px;
}
.top-container {
    position: relative;
}
.home-link:hover {
    background-color: #1557b2;
}

/* 编辑和发布页面样式 */
.edit-blog-container, .post-blog-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.edit-blog-container h2, .post-blog-container h2 {
    color: #2c3e50;
    margin-bottom: 1em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5em;
}

.edit-blog-container form, .post-blog-container form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.edit-blog-container input[type="text"],
.post-blog-container input[type="text"],
.edit-blog-container textarea,
.post-blog-container textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.edit-blog-container button,
.post-blog-container button {
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-blog-container button:hover,
.post-blog-container button:hover {
    background-color: #1557b2;
}

/* Quill 编辑器样式 */
#editor {
    height: 400px;
    margin-bottom: 20px;
}

.ql-container {
    height: calc(100% - 42px); /* 减去工具栏高度 */
}


/* 登录和注册页面样式 */
.login-container, .register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-container h2, .register-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5em;
}

.login-container form, .register-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.login-container input[type="text"],
.login-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="password"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.login-container button,
.register-container button {
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover,
.register-container button:hover {
    background-color: #1557b2;
}

.login-container .register-link,
.register-container .login-link {
    text-align: center;
    margin-top: 1em;
}

.login-container .register-link a,
.register-container .login-link a {
    color: #1a73e8;
    text-decoration: none;
}

.login-container .register-link a:hover,
.register-container .login-link a:hover {
    text-decoration: underline;
}