:root {
  --color1: #e2e7bf;
  --color2: #2b313f;
  --texture-img: url("../images/bedge-grunge.png");
  --text-color: #ffffff; 
  --text-secondary-color: rgba(255,255,255,0.8); 
}

.bg-texture,
.header,
.footer,
.sidebar,
.sidebar-menu,
.category-bar,
.search-button,
.search-clear,
.results-clear,
.home-page .article-info,
.home-page .category-tag,
.category-grid .category-tag,
.detail-content,
.recommended::before,
.recommended-list .article-card .article-content,
.about-header,
.privacy-header,
.about-content,
.privacy-content {
  background-color: var(--color2);
  background-repeat: repeat;
  background-size: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #000;
}

html,
body {
  background: linear-gradient(135deg, #0a1929 0%, #1a0b2e 50%, #16213e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

html::before,
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    );
  animation: sparkle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.home-page {
  background: linear-gradient(135deg, #0a1929 0%, #1a0b2e 50%, #16213e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
}

.home-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(100, 150, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(200, 100, 255, 0.1) 0%,
      transparent 40%
    );
  animation: glowMove 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowMove {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(20px, -20px) scale(1.1);
    opacity: 0.7;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.6;
  }
}

.home-page-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detail-page {
  padding-top: 45px;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1929 0%, #1a0b2e 50%, #16213e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

.detail-page .detail-page-content {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.category-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 45px);
  width: 100%;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 60px;
}

@media (min-width: 800px) {
  .category-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

.category-page main {
  margin-top: 45px;
}

.about-page,
.privacy-page {
  margin: 45px auto 0;
  max-width: 800px;
  padding: 15px;
  color: #ffffff;
}

.header {
  color: var(--text-color);
  padding: 5px 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 45px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  gap: 8px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.home-page .header-content {
  justify-content: space-between;
}

.search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.2s ease;
  position: relative;
  width: 40px;
  height: 40px;
}

.search-toggle:hover {
  opacity: 0.8;
}

.search-toggle svg {
  width: 24px;
  height: 24px;
}

.search-toggle .search-icon {
  display: block;
}

.search-toggle .close-icon {
  display: none;
}

.search-toggle.active .search-icon {
  display: none;
}

.search-toggle.active .close-icon {
  display: block !important;
}

.category-page .header-content {
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}

.detail-page .header-content {
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #ffffff;
}

.logo-image {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 6px;
}

.detail-page .logo,
.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.detail-page .logo img,
.logo-center img {
  pointer-events: auto;
  cursor: pointer;
}

.category-page .page-title {
  font-size: 18px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0;
  color: white;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  font-size: 14px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.category-page .back-btn {
  padding: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  justify-content: center;
}

.category-page .back-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

.detail-page .back-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

.footer {
  margin-top: 30px;
  width: 100%;
  border-radius: 0;
  padding: 28px 12px 32px;
}

.footer-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-color);
  text-transform: none;
}

.footer-eyebrow a {
  color: var(--text-color);
  text-decoration: none;
}

.footer-eyebrow a:hover {
  text-decoration: underline;
}

.footer-title {
  margin: 0;
  font-size: 24px;
  color: var(--text-color);
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.6;
}

.search-container {
  max-width: 500px;
  margin: 10px auto 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  margin: 0 20px;
}

.search-wrapper:focus-within {
  transform: translateY(-1px);
}

.search-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px 0 0 999px;
  font-size: 15px;
  outline: none;
  background: white;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: #fafafa;
}

.search-input::placeholder {
  color: #999;
}

.search-button {
  width: 52px;
  height: 42px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.search-button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.search-button svg {
  width: 20px;
  height: 20px;
}

.search-clear {
  width: 46px;
  height: 42px;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.search-clear svg {
  width: 20px;
  height: 20px;
}

.search-clear svg path {
  stroke: white;
}

.results-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  padding: 10px;
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 10px auto;
  width: 100%;
}

.results-info {
  color: #666;
  font-size: 14px;
}

.results-info span {
  color: #333;
  font-weight: 600;
}

.results-clear {
  color: white;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  border: none;
}

.sidebar {
  width: 100%;
  height: 50px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 800px) {
  .sidebar {
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.sidebar::-webkit-scrollbar {
  height: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar__list {
  display: flex;
  flex-direction: row;
  gap: 8px; 
  align-items: center; 
  justify-content: flex-start; 
  padding: 8px 12px; 
  border-radius: 5px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1); 
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: thin; 
  scroll-behavior: smooth; 
  height: auto; 
}

.sidebar__item {
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 6px; 
  padding: 6px 12px; 
  border: none; 
  border-radius: 5px; 
  background: white; 
  color: #6b7280; 
  font-size: 13px; 
  font-weight: 500; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  flex-shrink: 0; 
  white-space: nowrap; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15); 
  min-width: auto; 
  height: auto; 
}

.sidebar__item:hover {
  background: #f3f4f6; 
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.2); 
  transform: translateY(-2px); 
}

.sidebar__item.active {
  background: var(--color2); 
  color: white; 
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4), 
    0 3px 10px rgba(214, 40, 40, 0.3); 
}

.sidebar__item:last-child {
  border-right: none;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.sidebar-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.sidebar-close:hover {
  opacity: 0.7;
}

.sidebar-close svg {
  width: 24px;
  height: 24px;
}

.sidebar-items {
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 15px;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 500;
}

.sidebar-category {
  padding: 0;
}

.category-content {
  flex: 1;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
  min-height: calc(100vh - 45px);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

@media (min-width: 800px) {
  .category-content {
    max-width: 680px;
    width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

.current-articles {
  position: relative;
  z-index: 1;
}

.category-articles {
  padding: 0;
  background: white;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.bar-container {
  padding: 0 16px;
  max-width: 960px;
}

.category-page .bar-container {
  position: sticky;
  top: 45px;
  z-index: 100;
  background: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}

.category-bar {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-bar::-webkit-scrollbar {
  height: 4px;
}

.category-bar::-webkit-scrollbar-track {
  background: transparent;
}

.category-bar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.category-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  background: white;
  color: #6b7280; 
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--color2);
  color: var(--text-color);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4),
    0 3px 10px rgba(214, 40, 40, 0.3);
}

.category-bar .category-btn .category-icon-wrapper {
  display: none;
}

.category-btn .category-icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: inherit;
  flex-shrink: 0;
}

.category-btn .category-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-btn .category-label {
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
  position: relative;
  padding-right: 16px;
}

.category-bar .category-btn .category-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  background: white;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-bottom: 40px;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .category-grid {
    max-width: 680px;
  }
}

.home-page .articles-container {
  padding: 0;
  max-width: 100%;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.home-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  max-width: 100%;
}

.home-page .articles-grid .category-section {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.home-page .articles-grid .category-section .article-item:nth-child(n + 5) {
  display: none;
}

.home-page .articles-grid .ads {
  grid-column: span 2;
  width: 100%;
}

.home-page .articles-grid .results {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0;
  background: transparent;
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.home-page .results .article-item {
  width: 100%;
  margin: 0;
}

.article-item,
.article-card {
  width: 100%;
  display: flex;
  margin: 0;
  align-items: stretch;
  cursor: pointer;
  background: white;
}

.article-item {
  height: auto;
  min-height: 80px;
  border: none;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-direction: row;
}

.article-item:hover,
.home-page .article-item:hover,
.category-grid .article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-page .article-item {
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-grid .article-item {
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-page .detail-content .article-item {
  display: block;
  min-height: auto;
  height: auto;
  overflow: visible;
  cursor: default;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
}

.article-img,
.article-image {
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.article-img {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid var(--color1);
}

.article-img::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--color2);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
  transform: rotate(45deg);
}

.article-img::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid var(--color2);
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}

.article-item:hover .article-img {
  border-color: var(--color2);
}

.home-page .article-img {
  width: 100%;
  height: 170px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--color1), var(--color2)) border-box;
}

.home-page .article-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  pointer-events: none;
}

.home-page .article-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-bottom: 30px solid rgba(214, 40, 40, 0.6);
  z-index: 2;
  pointer-events: none;
}

.home-page .article-img img:not(.hot-badge) {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  transition: transform 0.3s ease;
}

.home-page .article-item:hover .article-img img:not(.hot-badge) {
  transform: scale(1.05);
}

.category-grid .article-img {
  width: 110px;
  height: 110px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.category-grid .article-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color1), var(--color2));
  z-index: 2;
  pointer-events: none;
}

.category-grid .article-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background: var(--color2);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.category-grid .article-img img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  transition: transform 0.3s ease;
}

.category-grid .article-item:hover .article-img img {
  transform: scale(1.08);
}

.article-image {
  position: relative;
  border-radius: 0;
  background: #f0f0f0;
  width: 100%;
  height: 180px;
}

.article-img img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  width: auto;
  height: 24px;
  max-height: 24px;
  max-width: 50px;
  object-fit: contain;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-info,
.article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.article-info {
  padding: 10px 10px 0 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .article-info {
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px;
  color: #ffffff;
}

.category-grid .article-info {
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px;
}

.article-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  color: #333;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  line-height: 1.5;
  font-weight: 500;
}

.category-grid .article-title {
  color: #333; 
  font-size: 12px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.home-page .article-title {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .article-title {
  margin: 0 0 10px 0;
}

.article-tag {
  color: #999;
  font-size: 12px;
  margin-top: 0;
}

.article-type {
 color: var(--text-secondary-color);;
  opacity: 0.8;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #4a90e2;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  width: fit-content;
  margin-bottom: 4px;
}

.home-page .category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  margin: 0;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--color2);
  background-image: var(--texture-img);
  background-repeat: repeat;
  background-size: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-grid .category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  color: white;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--color2);
  background-image: var(--texture-img);
  background-repeat: repeat;
  background-size: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  margin-top: auto;
}

.home-page .article-date {
  display: none;
}

.category-grid .article-date {
  display: none;
}

.article-detail {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-header.detail-image-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

#articleImageContainer {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  box-shadow: none;
  position: relative;
  border-top: 5px solid var(--color2);
  border-bottom: 5px solid var(--color1);
}

#articleImageContainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-right: 4px solid var(--color2);
  border-bottom: 4px solid var(--color2);
  z-index: 2;
  pointer-events: none;
}

#articleImageContainer::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-left: 4px solid var(--color1);
  border-top: 4px solid var(--color1);
  z-index: 2;
  pointer-events: none;
}

#articleMainImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 50vh;
  position: relative;
  z-index: 0;
  transition: transform 0.5s ease;
}

.detail-page:hover #articleMainImage {
  transform: scale(1.02);
}

.detail-page .detail-wrapper {
  padding: 15px;
  border-radius: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: none;
  max-width: 100%;
  color: black;
}

.detail-page .detail-wrapper a {
  color: var(--text-color);
  text-decoration: underline;
}

.detail-page .detail-wrapper a:hover {
  color: var(--text-secondary-color);
}

.detail-page .detail-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.title-wrapper {
  margin-bottom: 16px;
  padding: 15px;
  border-radius: 5px;
  background-color: #fff;
  background-repeat: repeat;
  background-size: auto;
  color: #000;
}

.detail-title {
  font-size: 16px;
  padding: 0;
  margin-bottom: 12px;
  border-radius: 0;
  font-weight: 600;
  background: transparent;
  background-image: none;
}

.detail-page .detail-title {
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: black;
  gap: 10px;
}

.detail-date {
  width: auto;
  text-align: center;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  background-image: none;
}

.detail-category {
  width: auto;
  text-align: center;
  font-weight: 500;
  color: black;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  background-image: none;
}

.detail-content {
  border-radius: 5px;
  box-shadow: none;
  line-height: 1.8;
  color: #000; 
  padding: 5px;
  background-color: #fff;
}

.detail-page .detail-content {
  margin-bottom: 15px;
  color: #000; 
  line-height: 1.8;
  max-width: 100%;
  background-color: #fff;
  white-space: normal;
  word-break: break-all;
}

.detail-content h3 {
  color: var(--text-color);
  margin: 25px 0 15px 0;
  font-size: 20px;
}

.detail-content p {
  padding: 10px;
}

.detail-content img {
  max-width: 100%;
  height: auto;
}

.detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-content th,
.detail-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  word-wrap: break-word;
  hyphens: auto;
  font-size: 14px;
}

.detail-content th {
  background-color: var(--color1);
  color: #333;
  font-weight: 600;
}

.detail-content td {
  line-height: 1.5;
  color: #333;
  background-color: white;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color1);
  border-radius: 3px;
}

.recommended {
  padding: 20px;
  position: relative;
}

.recommended::before {
  content: "Hot Articles";
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-color);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 8px var(--color2), 0 0 0 4px #ffffff;
  margin-bottom: 25px;
  padding: 15px;
  text-align: center;
  position: relative;
}

.recommended-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}

.recommended-list .article-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  min-height: 280px;
}

.recommended-list .article-card .article-image {
  width: 100%;
  height: 180px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border-top: 4px solid var(--color2);
}

.recommended-list .article-card .article-image::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-left: 3px solid var(--color1);
  border-bottom: 3px solid var(--color1);
  z-index: 2;
  pointer-events: none;
}

.recommended-list .article-card .article-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-right: 25px solid transparent;
  border-bottom: 25px solid var(--color1);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.recommended-list .article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommended-list .article-card .article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.recommended-list .article-card .article-title {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.recommended-list .article-card .article-tag {
  font-size: 12px;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.about-header,
.privacy-header {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 5px;
}

.about-header h1,
.privacy-header h1 {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 15px;
}

.about-header p,
.privacy-header p {
  font-size: 16px;
  color: var(--text-color);
}

.about-content,
.privacy-content {
  border-radius: 5px;
  overflow: hidden;
}

.about-section,
.privacy-section {
  padding: 15px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.about-section:last-child,
.privacy-section:last-child {
  border-bottom: none;
}

.about-section h2,
.privacy-section h2 {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 20px;
  color: var(--text-color);
  margin: 15px;
}

.privacy-section h3 {
  font-size: 20px;
  color: var(--text-color);
  margin: 25px 0 15px 0;
}

.about-section p,
.privacy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.about-section ul,
.privacy-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.about-section li,
.privacy-section li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 10px;
  list-style: disc;
}

.privacy-section strong {
  color: var(--text-color);
  font-weight: 600;
}

.values-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  text-align: center;
  padding: 10px;
  background: transparent;
  border-radius: 5px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.value-item h3 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
}

.sidebar-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
  border-radius: 4px;
}

.sidebar-btn:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.back-home-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  background: transparent;
}

.back-home-btn:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
}

.back-home-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.ads {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ads > div {
  width: 100%;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-text {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.empty-subtext {
  font-size: 14px;
  color: #999;
}

.empty-subtext a {
  color: var(--color1);
  text-decoration: none;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1929 0%, #1a0b2e 50%, #16213e 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
  line-height: normal;
  padding: 0;
}

#scrollToTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1a0b2e 0%, #2a1b3e 50%, #26314e 100%);
}

#scrollToTopBtn:active {
  transform: translateY(1px);
}


#scrollToTopBtn::before {
  content: "↑";
  position: relative;
  font-size: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


#scrollToTopBtn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


#scrollToTopBtn {
  display: none !important;
}


body:has(#scrollToTopBtn) {
  padding-bottom: 70px;
}
