/* 基础样式和变量定义 */
: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;
}

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

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

.breadcrumb span {
margin: 0 5px;
}

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

/* 文章内容区域 */
.article-content {
background: white;
border-radius: var(--border-radius);
padding: 30px;
box-shadow: var(--box-shadow);
}

/* 文章头部 */
.article-header {
display: flex;
margin-bottom: 20px;
align-items: flex-start;
}

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

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

.article-title {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 15px;
line-height: 1.3;
}

.article-meta {
display: flex;
font-size: 0.9rem;
color: #666;
flex-wrap: wrap;
}

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

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

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

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

/* 导读信息 */
.article-intro {
background: var(--light-color);
border-radius: var(--border-radius);
padding: 15px;
margin-bottom: 25px;
font-style: italic;
border-left: 4px solid var(--primary-color);
}

/* 文章正文 */
.article-body {
line-height: 1.8;
margin-bottom: 40px;
}

.article-body p {
margin-bottom: 15px;
}

.article-body h2 {
font-size: 1.5rem;
margin: 25px 0 15px;
color: var(--dark-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 8px;
}

.article-body h3 {
font-size: 1.3rem;
margin: 20px 0 10px;
color: var(--dark-color);
}

.article-body img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
border-top: 1px solid #eee;
padding-top: 20px;
}

.nav-prev, .nav-next {
flex: 1;
padding: 10px;
border-radius: var(--border-radius);
transition: var(--transition);
}

.nav-prev {
margin-right: 10px;
text-align: left;
}

.nav-next {
margin-left: 10px;
text-align: right;
}

.nav-prev:hover, .nav-next:hover {
background: var(--light-color);
}

.nav-label {
font-size: 0.9rem;
color: #666;
margin-bottom: 5px;
}

.nav-title {
font-weight: 500;
}

/* 侧边栏区域 */
.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;
}

.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;
}

.copyright {
display: none;
}
}

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

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

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

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

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

.nav-prev, .nav-next {
margin: 0 0 10px 0;
text-align: left;
}
}

@media (max-width: 500px) {
/* 手机设备 */
.article-title {
font-size: 1.5rem;
}
}