:root {
--primary-color: #1ad1ff;
--primary-dark: #00a0cc;
--primary-light: #80e8ff;
--text-color: #333;
--bg-color: #f5f5f5;
--card-bg: #fff;
--shadow-color: rgba(26, 209, 255, 0.3);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
}

/* 导航栏样式 */
header {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
padding: 0 5%;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
height: 70px;
}

.logo a {
color: white;
text-decoration: none;
font-size: 1.8rem;
font-weight: bold;
letter-spacing: 1px;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
display: inline-block;
position: relative;
}

.logo a:after {
content: '';
position: absolute;
width: 0;
height: 3px;
bottom: -5px;
left: 0;
background-color: white;
transition: width 0.3s ease;
}

.logo a:hover {
transform: scale(1.05);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo a:hover:after {
width: 100%;
}

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

.nav-menu li {
margin-left: 30px;
position: relative;
}

.nav-menu a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 10px 0;
transition: all 0.3s ease;
position: relative;
display: inline-block;
}

.nav-menu a:before {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: white;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}

.nav-menu a:hover {
transform: translateY(-3px);
text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.nav-menu a:hover:before {
transform: scaleX(1);
transform-origin: left;
}

/* 汉堡菜单 */
.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
width: 30px;
height: 24px;
position: relative;
}

.hamburger span {
display: block;
position: absolute;
height: 3px;
width: 100%;
background: white;
border-radius: 3px;
opacity: 1;
left: 0;
transform: rotate(0deg);
transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
top: 0px;
}

.hamburger span:nth-child(2) {
top: 10px;
}

.hamburger span:nth-child(3) {
top: 20px;
}

/* 主要内容区域 */
.container {
max-width: 1200px;
margin: 40px auto;
padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
margin-bottom: 30px;
padding: 15px 20px;
background: var(--card-bg);
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
/* 添加换行属性 */
word-wrap: break-word;
overflow-wrap: break-word;
}

.breadcrumb a {
color: var(--primary-dark);
text-decoration: none;
transition: color 0.3s ease;
}

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

.breadcrumb span {
margin: 0 8px;
color: #666;
}

/* 主要内容布局 */
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

/* 标签云样式 */
.tag-cloud {
background: var(--card-bg);
border-radius: 10px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}

.tag-title {
font-size: 1.4rem;
margin-bottom: 20px;
color: var(--primary-dark);
position: relative;
padding-bottom: 10px;
}

.tag-title:after {
content: '';
position: absolute;
width: 50px;
height: 3px;
background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
bottom: 0;
left: 0;
}

.tags {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 15px;
}

.tag {
background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
padding: 10px 15px;
border-radius: 5px;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
/* 添加换行属性 */
word-wrap: break-word;
overflow-wrap: break-word;
}

.tag:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px var(--shadow-color);
}

.tag a {
color: white;
text-decoration: none;
font-weight: 500;
}

/* 文章列表样式 */
.article-list {
background: var(--card-bg);
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

.article-item {
display: flex;
padding: 25px;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
}

.article-item:hover {
background-color: rgba(26, 209, 255, 0.05);
transform: translateX(5px);
}

.article-thumb {
width: 150px;
height: 100px;
border-radius: 5px;
overflow: hidden;
margin-right: 20px;
flex-shrink: 0;
}

.article-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.article-item:hover .article-thumb img {
transform: scale(1.1);
}

.article-info {
flex-grow: 1;
}

.article-title {
font-size: 1.3rem;
margin-bottom: 10px;
/* 添加换行属性 */
word-wrap: break-word;
overflow-wrap: break-word;
}

.article-title a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}

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

.article-meta {
display: flex;
align-items: center;
margin-bottom: 10px;
color: #666;
font-size: 0.9rem;
}

.article-meta span {
margin-right: 15px;
display: flex;
align-items: center;
}

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

.article-meta .author:before {
content: "👤";
}

.article-meta .date:before {
content: "📅";
}

.article-meta .read-count:before {
content: "👁️";
}

.article-description {
color: #666;
line-height: 1.6;
/* 添加换行属性 */
word-wrap: break-word;
overflow-wrap: break-word;
}

/* 分页样式 */
.pagination {
display: flex;
justify-content: center;
padding: 30px 0;
background: var(--card-bg);
border-radius: 0 0 10px 10px;
flex-wrap: wrap; /* 允许分页按钮换行 */
}

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

.page-link {
display: inline-block;
padding: 8px 15px;
background: var(--card-bg);
color: var(--text-color);
text-decoration: none;
border-radius: 5px;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
box-shadow: 0 5px 15px var(--shadow-color);
}

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

/* 侧边栏样式 */
.sidebar {
display: flex;
flex-direction: column;
gap: 30px;
}

.sidebar-widget {
background: var(--card-bg);
border-radius: 10px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
font-size: 1.4rem;
margin-bottom: 20px;
color: var(--primary-dark);
position: relative;
padding-bottom: 10px;
}

.widget-title:after {
content: '';
position: absolute;
width: 50px;
height: 3px;
background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
bottom: 0;
left: 0;
}

.widget-list {
list-style: none;
}

.widget-item {
padding: 12px 0;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
/* 添加换行属性 */
word-wrap: break-word;
overflow-wrap: break-word;
}

.widget-item:hover {
transform: translateX(5px);
}

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

.widget-item a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}

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

/* 底部样式 */
footer {
background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
color: white;
padding: 30px 0;
text-align: center;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.footer-logo {
font-size: 1.5rem;
margin-bottom: 15px;
}

.footer-logo a {
color: white;
text-decoration: none;
transition: all 0.3s ease;
}

.footer-logo a:hover {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.copyright {
font-size: 0.9rem;
opacity: 0.8;
}

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

.nav-menu {
position: fixed;
top: 70px;
right: -100%;
width: 80%;
height: calc(100vh - 70px);
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
flex-direction: column;
align-items: center;
padding-top: 50px;
transition: right 0.5s ease;
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
right: 0;
}

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

.hamburger.active span:nth-child(1) {
top: 10px;
transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
left: -60px;
}

.hamburger.active span:nth-child(3) {
top: 10px;
transform: rotate(-135deg);
}

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

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
}

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

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

.article-meta {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}

/* 手机视图下确保所有内容都能换行 */
.breadcrumb, 
.tag,
.article-title,
.article-description,
.widget-item {
word-wrap: break-word;
overflow-wrap: break-word;
}
}

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

/* 在更小的屏幕上，进一步确保分页按钮换行 */
.pagination {
gap: 10px;
}
}