/* 基础样式和变量定义 */
:root {
--primary-color: #00FFFF;
--secondary-color: #00CCCC;
--text-color: #333333;
--light-color: #f5f5f5;
--dark-color: #222222;
--border-radius: 4px;
--box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--light-color);
overflow-x: hidden;
}

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

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

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

/* 导航栏样式 */
.navbar {
background-color: var(--primary-color);
box-shadow: var(--box-shadow);
position: sticky;
top: 0;
z-index: 1000;
padding: 0 15px;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
max-width: 1170px;
margin: 0 auto;
}

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

.logo:hover{
color: white;
}

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

.nav-item {
margin-left: 30px;
}

.nav-link {
color: var(--dark-color);
font-weight: 500;
}

.nav-link:hover {
color: white;
}

.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
font-size: 1.5rem;
color: var(--dark-color);
}

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
font-size: 0.9rem;
margin-bottom: 20px;
overflow: hidden;
}

.breadcrumb a {
color: var(--dark-color);
word-break: break-word;
}

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

.breadcrumb span {
margin: 0 5px;
white-space: nowrap;
}

/* 主要内容区域布局 */
.main-content {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 30px;
margin-bottom: 40px;
}

/* 文字列表区域 */
.word-list-section {
margin-bottom: 40px;
}

.word-list-title {
font-size: 1.5rem;
margin-bottom: 20px;
color: var(--dark-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
}

.word-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 15px;
background: white;
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--box-shadow);
}

.word-item {
text-align: center;
padding: 10px;
background: var(--light-color);
border-radius: var(--border-radius);
transition: var(--transition);
word-break: break-word;
overflow-wrap: break-word;
}

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

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

.article-list-title {
font-size: 1.5rem;
margin-bottom: 20px;
color: var(--dark-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
}

.article-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.article-item {
display: flex;
background: white;
border-radius: var(--border-radius);
padding: 15px;
box-shadow: var(--box-shadow);
transition: var(--transition);
overflow: hidden;
}

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

.article-thumbnail {
width: 120px;
height: 80px;
object-fit: cover;
border-radius: var(--border-radius);
margin-right: 15px;
flex-shrink: 0;
}

.article-info {
flex: 1;
overflow: hidden;
}

.article-title {
font-size: 1.1rem;
margin-bottom: 10px;
word-break: break-word;
overflow-wrap: break-word;
}

.article-meta {
display: flex;
font-size: 0.85rem;
color: #666;
margin-bottom: 10px;
flex-wrap: wrap;
}

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

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

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

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

.views::before {
content: "👁️";
}

.article-excerpt {
color: #555;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 0.9rem;
word-break: break-word;
overflow-wrap: break-word;
}

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

.pagination a {
display: inline-block;
padding: 8px 15px;
margin: 5px;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: var(--transition);
word-break: keep-all;
white-space: nowrap;
}

.pagination a:hover, .pagination a.active {
background: var(--primary-color);
color: white;
}

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

.sidebar-section {
background: white;
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--box-shadow);
}

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

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

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

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

.sidebar-link {
color: var(--text-color);
transition: var(--transition);
display: block;
word-break: break-word;
overflow-wrap: break-word;
}

.sidebar-link:hover {
color: var(--primary-color);
padding-left: 5px;
}

/* 底部样式 */
.footer {
background-color: var(--dark-color);
color: white;
text-align: center;
padding: 30px 0;
margin-top: 50px;
}

.footer a {
color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板和手机导航 */
.hamburger {
display: block;
}

.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: var(--primary-color);
width: 100%;
text-align: center;
transition: var(--transition);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
z-index: 999;
}

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

.nav-item {
margin: 15px 0;
}

/* 平板设备 */
.main-content {
grid-template-columns: 1fr;
}

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

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

.copyright {
display: none;
}
}

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

.article-list {
grid-template-columns: 1fr;
}

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

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

/* 手机设备面包屑导航优化 */
.breadcrumb {
padding: 10px 0;
font-size: 0.85rem;
}

/* 手机设备文字列表优化 */
.word-item {
padding: 8px 5px;
font-size: 0.9rem;
}

/* 手机设备文章列表优化 */
.article-title {
font-size: 1rem;
line-height: 1.4;
}

.article-excerpt {
font-size: 0.85rem;
-webkit-line-clamp: 3;
}

/* 手机设备分页优化 */
.pagination {
justify-content: flex-start;
}

.pagination a {
padding: 6px 12px;
font-size: 0.9rem;
}

/* 手机设备侧边栏优化 */
.sidebar-link {
font-size: 0.9rem;
line-height: 1.4;
}
}

@media (max-width: 500px) {
/* 手机设备 */
.article-item {
flex-direction: column;
}

.article-thumbnail {
width: 100%;
height: 150px;
margin-right: 0;
margin-bottom: 10px;
}

.article-meta span {
margin-right: 0;
}

/* 小屏手机文字列表优化 */
.word-list {
grid-template-columns: 1fr;
gap: 10px;
}

.word-item {
padding: 10px;
}
}