:root {
--primary-color: #BF0060;
--secondary-color: #f8f8f8;
--text-color: #333;
--light-text: #777;
--shadow: 0 4px 8px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
}

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

body {
color: var(--text-color);
line-height: 1.6;
background-color: #fff;
}

a {
text-decoration: none;
color: var(--primary-color);
transition: var(--transition);
}

a:hover {
opacity: 0.8;
}

.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* 导航栏样式 */
header {
background-color: #fff;
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
}

.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}

.nav-links {
display: flex;
list-style: none;
}

.nav-links li {
margin-left: 25px;
position: relative;
}

.nav-links a {
color: var(--text-color);
font-weight: 500;
padding: 5px 0;
}

.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--primary-color);
transition: var(--transition);
}

.nav-links a:hover::after {
width: 100%;
}

.nav-links a:hover {
color: var(--primary-color);
}

.hamburger {
display: none;
cursor: pointer;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 25px;
}

.hamburger div {
width: 100%;
height: 3px;
background-color: var(--primary-color);
transition: var(--transition);
}

/* 面包屑导航 */
.breadcrumb {
padding: 20px 0;
font-size: 0.9rem;
color: var(--light-text);
}

.breadcrumb a {
color: var(--light-text);
}

.breadcrumb a:hover {
color: var(--primary-color);
}

.breadcrumb span {
margin: 0 8px;
}

/* 主内容区布局 */
.main-content {
display: flex;
gap: 30px;
margin: 30px 0;
}

.left-column {
flex: 2;
}

.right-column {
flex: 1;
}

/* 标签列表 */
.tag-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 15px;
margin-bottom: 40px;
}

.tag-item {
background-color: var(--secondary-color);
padding: 10px;
text-align: center;
border-radius: 4px;
transition: var(--transition);
}

.tag-item:hover {
background-color: var(--primary-color);
color: white;
transform: translateY(-3px);
}

.tag-item a:hover {
color: white;
transform: translateY(-3px);
}

/* 文章列表 */
.article-list {
margin-bottom: 40px;
}

.article-item {
display: flex;
margin-bottom: 30px;
padding: 15px;
background: #fff;
border-radius: 8px;
box-shadow: var(--shadow);
transition: var(--transition);
}

.article-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.article-thumb {
flex: 0 0 200px;
height: 150px;
margin-right: 20px;
border-radius: 6px;
overflow: hidden;
}

.article-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

.article-info {
flex: 1;
}

.article-title {
font-size: 1.2rem;
margin-bottom: 10px;
}

.article-desc {
color: var(--light-text);
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.article-meta {
display: flex;
font-size: 0.9rem;
color: var(--light-text);
}

.meta-item {
margin-right: 20px;
display: flex;
align-items: center;
}

.meta-item::before {
margin-right: 5px;
}

.author::before {
content: "👤";
}

.date::before {
content: "📅";
}

.views::before {
content: "👀";
}

/* 分页 */
.pagination {
display: flex;
justify-content: center;
margin-top: 30px;
}

.page-item {
margin: 0 5px;
}

.page-link {
display: block;
padding: 8px 15px;
border: 1px solid #ddd;
border-radius: 4px;
color: var(--text-color);
}

.page-link:hover, .page-link.active {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}

/* 侧边栏列表 */
.sidebar-list {
margin-bottom: 30px;
}

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

.sidebar-item {
padding: 10px 0;
border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
border-bottom: none;
}

.sidebar-item a {
color: var(--text-color);
}

.sidebar-item a:hover {
color: var(--primary-color);
}

/* 页脚 */
footer {
background-color: var(--secondary-color);
padding: 30px 0;
text-align: center;
margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.hamburger {
display: flex;
}

.nav-links {
position: fixed;
top: 70px;
left: -100%;
width: 100%;
height: calc(100vh - 70px);
background-color: white;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 30px;
transition: var(--transition);
box-shadow: var(--shadow);
}

.nav-links.active {
left: 0;
}

.nav-links li {
margin: 15px 0;
}

.tag-list {
grid-template-columns: repeat(4, 1fr);
}

.copyright {
display: none !important;
}
}

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

.article-item {
flex-direction: column;
}

.article-thumb {
flex: 0 0 100%;
margin-right: 0;
margin-bottom: 15px;
}

.article-meta {
flex-direction: column;
}

.meta-item {
margin-bottom: 5px;
}
}

@media (max-width: 500px) {
.tag-list {
grid-template-columns: repeat(2, 1fr);
}

.article-list .article-item {
width: 100%;
margin-right: 0;
}
}

@media (min-width: 769px) and (max-width: 900px) {
.article-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.article-item {
flex-direction: column;
margin-bottom: 0;
}

.article-thumb {
flex: 0 0 100%;
margin-right: 0;
margin-bottom: 15px;
}
}