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

html{
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #2c2a2a;
    color: #e5e5e5;
}

a {
    text-decoration: none;
}

h6 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: justify;
}

small {
    font-size: .875em;
    color: #b0b0b0;
}

.navbar {
    background-color: #303030;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: text-bottom;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ddd;
    margin: 3px 0;
    transition: 0.2s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    padding: 0.5rem 1rem;
    border: 1px solid #555;
    background-color: #3a3a3a;
    color: #fff;
    border-radius: 6px;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.search-box:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-btn {
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    /* 按钮内容不换行 */
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: #1d4ed8;
}

.main-content {
    width: 100%;
    padding: 0rem 1rem;
    margin: 1rem auto 0;
}

.footer {
    margin-top: 1rem;
    border-top: 1px solid #3a3838;
    color: #e0e0e0;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer a {
    color: #2563eb;
}


@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .desktop-search {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #1f1f1f;
        display: none;
        gap: 0;
        z-index: 100;
        width: 100%;
        max-width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid #444;
    }

    .nav-link {
        padding: 1rem 2rem;
        display: block;
    }

    .nav-link::after {
        display: none;
    }


    .mobile-search {
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .mobile-search .search-box {
        flex: 1;
    }

}


@media (min-width: 769px) {
    .mobile-search {
        display: none;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 720px;
    }
}


@media (min-width: 992px) {
    .main-content {
        max-width: 720px;
    }
}

@media (min-width: 1400px) {
    .main-content {
        max-width: 800px;
    }
}


/* 卡片 */

.card {
    background-color: rgba(255,255,255,0.06);
    padding: 1rem;
    border-radius: 0.375rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.card:hover {
    background-color: #4a4848;
    transition: background-color 0.2s ease;
}

.card a{
    color: #b0b0b0;
}

/* 分页 */
.pagination-container {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  font-family: sans-serif;
}

.pagination {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem; /* 元素间间隔 */
}

.pagination li {
  flex: 1; /* 三个元素等宽 */
}

.page-btn,
.current-page {
  width: 100%;
  text-align: center;
  padding: 0.6rem 0;
  color: #ccc;
  background-color: #3a3838;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
}

.page-btn:hover {
  background-color: #555;
}

.current-page {
  font-weight: bold;
  cursor: default;
  user-select: text;
}
/* 文章css */
.article-header{
	margin: 1.2rem 0rem;
}

.article-biaoti{
	margin-bottom: 1rem;
	font-size: 1.25rem;
	line-height: 1.4;
	text-align: justify
}
.article-meta{
	font-size: 0.9rem;
	color: #aaaaaa;
}

.article-content{
	line-height: 1.8;
	font-size: 1rem;
	color: #e0e0e0;
	text-align: justify
}

.article-content a{
    color: #2563eb;
}

.article-content img{
	display: block;
	margin: 0.5rem auto;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
/* 文章上下篇 */
.fenye-card {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 2rem 0;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}

.fenye-row {
  color: #888;
  width: 45%;
}

.fenye-syy{
    text-align: left;
}

.fenye-xxy{
    text-align: right;
}

.fenye-fg{
    margin-bottom: 0.5rem;
}

.fenye-row a{
    color: #ddd;
    line-height: 1.4;
}

.sousuobiaoti{
    text-align: center;
    margin: 2rem 0rem;
}
/* 视频播放器 */
.dplayer{
    margin-bottom: 0.5rem;
}
