/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #0a0e2a, #1a1f40);
  color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #4da6ff;
  transition: all 0.3s ease;
}

a:hover {
  color: #66b3ff;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* Responsive Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-6, .col-md-8, .col-md-4 {
  padding: 0 15px;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .col-md-6 { flex: 1; }
  .col-md-8 { flex: 0 0 66.6667%; }
  .col-md-4 { flex: 0 0 33.3333%; }
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(10, 14, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-container {
  padding-left: 20px;
  flex-shrink: 0;
}

.logo {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav li a {
  padding: 10px;
  font-weight: bold;
  border-radius: 4px;
}

.nav li a:hover {
  background: rgba(77, 166, 255, 0.2);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 42, 0.95);
    z-index: 1000;
    padding: 10px 0;
  }
  .nav.active {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    padding: 0 20px;
  gap: 5px;
  align-items: flex-start;
  }
}

/* Footer Styles */
.footer {
  background: #1a1f40;
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #2a3a6a;
}

.footer-row {
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9em;
  color: #a0b3d6;
}

@media (max-width: 767px) {
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .footer-info {
    padding: 0 20px;
  }
}

/* Common Components */
.thumb-4-3 {
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  overflow: hidden;
}

.title-truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  margin-top: 10px;
}

.title-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.4;
}

.summary-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #d0d8f0;
  font-size: 0.95em;
  margin-top: 8px;
  line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #a0b3d6;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #66b3ff;
}

/* Pagination */
.pagination {
  margin: 30px 0;
}

.pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination li {
  display: inline-block;
}

.pagination a, .pagination span {
  display: block;
  padding: 8px 15px;
  border: 1px solid #4da6ff;
  border-radius: 4px;
  background: rgba(26, 31, 64, 0.5);
}

.pagination a:hover {
  background: rgba(77, 166, 255, 0.2);
  text-decoration: none;
}

.pagination .thisclass {
  background: rgba(77, 166, 255, 0.3);
  border-color: #66b3ff;
}

/* Article Content Styles */
.article-content {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px dashed #2a3a6a;
  border-bottom: 1px dashed #2a3a6a;
}

.article-content h2, .article-content h3, .article-content h4, .article-content h5 {
  margin: 25px 0 15px;
  color: #66b3ff;
  font-weight: bold;
}

.article-content p {
  margin: 15px 0;
  line-height: 1.7;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 5px;
}

.article-content ul, .article-content ol {
  padding-left: 30px;
  margin: 15px 0;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(26, 31, 64, 0.3);
}

.article-content th, .article-content td {
  border: 1px solid #2a3a6a;
  padding: 12px;
  text-align: left;
}

.article-content th {
  background: rgba(77, 166, 255, 0.2);
  color: #66b3ff;
  font-weight: bold;
}

.article-content tr:nth-child(even) {
  background-color: rgba(77, 166, 255, 0.1);
}

/* Sidebar */
.sidebar {
  margin-top: 30px;
}

.sidebar > div {
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border: 1px solid #2a3a6a;
}

.sidebar h3 {
  margin-bottom: 15px;
  color: #66b3ff;
  font-size: 1.3em;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3a6a;
}

.sidebar ul li {
  padding: 12px 0;
  border-bottom: 1px dashed #2a3a6a;
}

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

@media (min-width: 768px) {
  .sidebar {
    display: block;
    margin-top: 0;
  }
}
img.thumb-4-3 {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
/* Specific Page Styles */
.main-recommend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.recommend-item {
  flex: 1 1 calc(50% - 15px);
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #2a3a6a;
  transition: transform 0.3s ease;
}

.recommend-item:hover {
  transform: translateY(-5px);
  border-color: #4da6ff;
}

.secondary-recommend, .secondary-headline {
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #2a3a6a;
}

.secondary-recommend ul li, .secondary-headline ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #2a3a6a;
}

.main-headline {
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #2a3a6a;
}

.main-headline h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
}

.channel-block {
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #2a3a6a;
}

.channel-block h2 {
  margin-bottom: 15px;
  color: #66b3ff;
  font-size: 1.4em;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3a6a;
}

.channel-block ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #2a3a6a;
  display: flex;
  justify-content: space-between;
}

.channel-block ul li .date {
  color: #a0b3d6;
  font-size: 0.9em;
}

.image-text .item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.image-text .thumb-4-3 {
  border-radius: 5px;
}

.hot-list {
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #2a3a6a;
}

.hot-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.hot-list ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #2a3a6a;
  display: flex;
  align-items: center;
}

.hot-list ul li .category {
  background: rgba(77, 166, 255, 0.2);
  color: #66b3ff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 10px;
  font-size: 0.8em;
}

.friendship-links {
  margin: 40px 0 30px;
  padding-top: 20px;
  border-top: 1px solid #2a3a6a;
}

.friendship-links h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #66b3ff;
  font-size: 1.4em;
}

.friendship-links .links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.friendship-links .links a {
  padding: 8px 15px;
  background: rgba(26, 31, 64, 0.5);
  border-radius: 4px;
  border: 1px solid #2a3a6a;
  transition: all 0.3s ease;
}

.friendship-links .links a:hover {
  background: rgba(77, 166, 255, 0.2);
  border-color: #4da6ff;
  transform: translateY(-3px);
}

.article-list .list-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(26, 31, 64, 0.5);
  border-radius: 8px;
  border: 1px solid #2a3a6a;
  transition: all 0.3s ease;
}
.list-item a {
    flex: 1;
}
.article-list .list-item:hover {
  border-color: #4da6ff;
  transform: translateX(5px);
}

@media (min-width: 576px) {
  .article-list .list-item {
    flex-direction: row;
    align-items: flex-start;
  }
  .article-list .list-item .thumb-4-3 {
    flex: 0 0 40%;
  }
  .article-list .list-item .info {
    flex: 1;
  }
}

.article-list .list-item .info {
  display: flex;
  flex-direction: column;
}

.article-list .list-item .title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.article-list .list-item .summary {
  color: #d0d8f0;
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-list .list-item .meta {
  color: #a0b3d6;
  font-size: 0.9em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  font-size: 0.95em;
  color: #a0b3d6;
  padding-bottom: 15px;
  border-bottom: 1px dashed #2a3a6a;
}

.prev-next {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

@media (min-width: 576px) {
  .prev-next {
    flex-direction: row;
    justify-content: space-between;
  }
}

.prev-next > div {
  flex: 1;
  padding: 15px;
  background: rgba(26, 31, 64, 0.5);
  border-radius: 5px;
  border: 1px solid #2a3a6a;
}

.prev-next a {
  display: block;
  font-weight: bold;
}

.prev-next a:hover {
  color: #66b3ff;
  text-decoration: none;
}

.related-articles {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2a3a6a;
}

.related-articles h3 {
  margin-bottom: 20px;
  color: #66b3ff;
  font-size: 1.3em;
}

.related-articles ul li {
  padding: 12px 0;
  border-bottom: 1px dashed #2a3a6a;
}

/* Additional Utility Classes */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-30 {
  margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .container {
    padding: 15px;
  }
  
  .header {
    padding: 10px 15px;
  }
  
  .main-recommend {
    flex-direction: column;
    gap: 15px;
  }
  
  .recommend-item {
    flex: 1 1 100%;
  }
}