.flex{display:flex;}
.gap20{gap:20px;}
.justify-content-between{justify-content: space-between;}
.justify-content-center{justify-content: center;}
.a-web{text-decoration: none;color: burlywood;}

.banner {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 80%, rgba(255,255,255,0) 100%);
    z-index: 1;
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.sidebar { width: 320px; }
.sidebar-item,
.list-item,
.category-header,
.article-header,
.article-content,
.page-header,
.page-body {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sidebar-item {
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.sidebar-item:hover,
.list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

.sidebar-red{color: var(--primary-color);font-weight: bold;font-size:12px;}
.sidebar-blue{color: var(--accent-color);font-weight: bold;font-size:12px;}

.profile-content p { margin-bottom: 15px; color: #555; line-height: 1.6; }
.tag {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: var(--transition);
}
.tag:hover { background-color: var(--primary-color); color: white; }

.category-header { margin-bottom: 30px; padding: 20px; }
.category-header h2,
.article-header h2,
.page-header h2 { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 10px; }
.category-header p,
.page-meta,
.item-meta { color: var(--light-text); }

.lists,
.article-detail,
.page-content { flex: 1; min-width: 300px; width: 100%; }

.list-item,
.article-header,
.article-content,
.page-header,
.page-body { margin-bottom: 25px; padding: 20px; }

.list-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.list-item h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.list-item h3 a,
.item-meta .category a { color: var(--secondary-color); text-decoration: none; }
.list-item h3 a:hover,
.item-meta .category a:hover { color: var(--primary-color); }

.item-meta,
.page-meta,
.post-meta-container,
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.item-meta {
    margin-bottom: 15px;
    font-size: 14px;
}

.item-meta span::before {
    content: "•";
    margin-right: 5px;
    color: var(--primary-color);
}

.item-desc p {
    margin-bottom: 10px;
    color: #555;
}

.item-tags {
    margin-top: 10px;
}

.read-more,
.comment-submit,
.reply-submit {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.pagination { display: flex; justify-content: center; margin-top: 30px; padding: 15px 0; }
.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.pagination a.active,
.pagination a:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.profile-box .profile-content strong {
    color: var(--secondary-color);
}

.profile-content h3 {
    font-size: 1.05rem;
    margin: 18px 0 10px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 12px;
}

.profile-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background-color: var(--primary-color);
}

.comment-form textarea,
.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
    font-family: inherit;
}

.reply-item { margin-left: 20px; padding-left: 15px; border-left: 3px solid var(--border-color); }
.reply-level2 { margin-left: 40px; }
.reply-form { margin-top: 10px; margin-left: 40px; padding: 10px; background-color: #f8f9fa; border-radius: 6px; display: none; }
.reply-btn { color: var(--accent-color); font-size: 12px; cursor: pointer; margin-left: 10px; }

.markdown-body pre {
    background-color: #f0f3f6;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.markdown-body code {
    font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 768px) {
    .main-content { flex-direction: column; }
    .sidebar { width: 100%; }
}