qoder生成项目

This commit is contained in:
2026-02-13 10:53:54 +08:00
commit 4cab051f9c
24 changed files with 3627 additions and 0 deletions

376
static/css/style.css Normal file
View File

@@ -0,0 +1,376 @@
/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
a {
color: #1890ff;
text-decoration: none;
}
a:hover {
color: #40a9ff;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 0 20px;
}
/* 头部样式 */
.header {
background: #fff;
padding: 30px 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-bottom: 30px;
}
.site-title {
font-size: 28px;
font-weight: 600;
}
.site-title a {
color: #333;
}
.site-desc {
color: #666;
margin-top: 8px;
}
.main-nav {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #eee;
}
.main-nav a {
margin-right: 20px;
color: #666;
font-size: 15px;
}
.main-nav a:hover {
color: #1890ff;
}
/* 主内容区 */
.main {
min-height: 500px;
}
/* 文章列表 */
.post-list {
display: flex;
flex-direction: column;
gap: 25px;
}
.post-item {
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.post-cover img {
width: 100%;
height: 200px;
object-fit: cover;
}
.post-content {
padding: 25px;
}
.post-title {
font-size: 22px;
margin-bottom: 12px;
}
.post-title a {
color: #333;
}
.post-title a:hover {
color: #1890ff;
}
.top-badge {
display: inline-block;
background: #ff4d4f;
color: #fff;
font-size: 12px;
padding: 2px 8px;
border-radius: 4px;
margin-left: 8px;
vertical-align: middle;
}
.post-meta {
color: #999;
font-size: 14px;
margin-bottom: 15px;
}
.post-meta span {
margin-right: 15px;
}
.post-meta a {
color: #666;
}
.tag {
display: inline-block;
background: #f0f0f0;
padding: 2px 8px;
border-radius: 4px;
font-size: 12px;
margin-right: 5px;
}
.post-summary {
color: #666;
line-height: 1.8;
}
.read-more {
display: inline-block;
margin-top: 15px;
color: #1890ff;
}
/* 文章详情 */
.post-detail {
background: #fff;
border-radius: 8px;
padding: 40px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.post-header {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
.post-detail .post-title {
font-size: 28px;
margin-bottom: 15px;
}
.post-body {
line-height: 1.8;
color: #444;
}
.post-body h2,
.post-body h3,
.post-body h4 {
margin: 30px 0 15px;
}
.post-body p {
margin-bottom: 15px;
}
.post-body img {
max-width: 100%;
border-radius: 4px;
}
.post-body pre {
background: #f6f8fa;
padding: 16px;
border-radius: 6px;
overflow-x: auto;
}
.post-body code {
background: #f6f8fa;
padding: 2px 6px;
border-radius: 3px;
font-family: monospace;
}
/* 页面 */
.page-detail {
background: #fff;
border-radius: 8px;
padding: 40px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.page-title {
font-size: 28px;
margin-bottom: 20px;
}
/* 分页 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 40px;
padding: 20px;
}
.pagination a {
padding: 8px 16px;
background: #fff;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.page-info {
color: #666;
}
/* 评论区 */
.comments-section {
background: #fff;
border-radius: 8px;
padding: 30px;
margin-top: 30px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.comments-section h3 {
margin-bottom: 20px;
}
.comment-form {
margin-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px solid #eee;
}
.form-group {
margin-bottom: 15px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.form-group textarea {
min-height: 100px;
resize: vertical;
}
.comment-form button {
background: #1890ff;
color: #fff;
border: none;
padding: 10px 24px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.comment-form button:hover {
background: #40a9ff;
}
.comments-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.comment-item {
padding: 15px;
background: #f9f9f9;
border-radius: 6px;
}
.comment-item.child {
margin-left: 30px;
margin-top: 10px;
background: #f0f0f0;
}
.comment-header {
margin-bottom: 10px;
font-size: 14px;
}
.comment-author {
font-weight: 600;
color: #333;
}
.comment-date {
color: #999;
margin-left: 10px;
}
.comment-content {
color: #555;
line-height: 1.6;
}
.no-comments {
color: #999;
text-align: center;
padding: 30px;
}
/* 空状态 */
.empty {
text-align: center;
padding: 60px;
color: #999;
background: #fff;
border-radius: 8px;
}
/* 底部 */
.footer {
background: #fff;
padding: 30px 0;
margin-top: 50px;
text-align: center;
color: #999;
border-top: 1px solid #eee;
}
/* 响应式 */
@media (max-width: 768px) {
.site-title {
font-size: 24px;
}
.post-detail,
.page-detail {
padding: 20px;
}
.post-detail .post-title {
font-size: 22px;
}
.post-meta span {
display: block;
margin: 5px 0;
}
}