:root {
  --color1: #2c9678;
  --color2: #d36987;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-primary);
}

body {
  background: var(--bg-light);
  line-height: 1.6;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fixed {
  position: fixed;
}

.dsn {
  display: none;
}

main {
  margin-bottom: 80px;
}

.page-content {
  margin-top: 10px;
}

.home-page main {
  margin-top: 0;
}

.header {
  background: var(--color1);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 15px 20px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.sidebar-toggle {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.sidebar-toggle svg {
  width: 22px;
  height: 22px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo p {
  font-weight: 700;
  font-size: 18px;
  -webkit-background-clip: text;
  background-clip: text;
}

.back-button-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}

.back-button-header:hover {
  background: var(--bg-card-hover);
  transform: translateX(-2px);
  border-color: var(--color1);
}

.back-button-header svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.back-button-header span {
  font-weight: 500;
}

.search-bar {
  background: transparent;
  transition: all 0.3s ease;
  z-index: 999;
}

.search-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease;
  background: var(--bg-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 60px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-card);
  color: var(--text-primary);
  max-width: 700px;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-input:focus {
  border-color: var(--color1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-clear {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: none;
}

.search-clear:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.search-clear svg {
  width: 18px;
  height: 18px;
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search-results-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.search-results-info {
  color: var(--text-secondary);
  font-size: 14px;
}

.search-results-info span {
  color: var(--text-primary);
  font-weight: 600;
}

.clear-search-btn {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.home-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home_article-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.home_article-item:hover {
  border-color: var(--color1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.categories-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 15px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.categories-title::before {
  display: none;
}

.category-bar {
  background: transparent;
  padding: 0 15px;
  border-bottom: none;
  overflow-x: auto;
  margin: 10px 0;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
  width: auto;
  height: auto;
  font-size: 14px;
  font-weight: 500;
}

.category-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  font-weight: bold;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
}

.top-articles-section {
  margin: 30px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.top-articles-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-articles-title::before {
  display: none;
}

.top-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.top-article-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.top-article-item::after {
  display: none;
}

.top-article-item:hover {
  background: var(--bg-card);
  border-color: var(--color1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.top-article-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.top-article-item:nth-child(1) .top-article-number {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

.top-article-item:nth-child(2) .top-article-number {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.25);
}

.top-article-item:nth-child(3) .top-article-number {
  background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.25);
}

.top-article-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Increased line clamp for more space */
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.top-article-item:hover .top-article-title {
  color: var(--color1);
}

.random-articles-section {
  margin: 30px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.random-articles-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.random-articles-title::before {
  display: none;
}

.random-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0;
}

.random-article-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.random-article-item::after {
  display: none;
}

.random-article-item:hover {
  background: var(--bg-card);
  border-color: var(--color1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.random-article-image {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: var(--bg-card-hover);
}

.random-article-title {
  position: static;
  transform: none;
  width: auto;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Increased line clamp for more space */
  -webkit-box-orient: vertical;
  border-radius: 0;
  text-shadow: none;
  background: transparent;
  flex: none;
  padding: 0;
  transition: color 0.3s ease;
}

.random-article-item:hover .random-article-title {
  color: var(--color1);
}

@media (min-width: 768px) {
  .random-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .random-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ads {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ads > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-page-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

.article-detail {
  padding: 30px 0;
  width: 100%;
}

.article-header {
  text-align: center;
}

.article-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-detail-meta {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.article-meta-top {
  margin-bottom: 10px;
}

.article-meta-top span {
  margin: 0 10px;
}

.article-meta-bottom {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.article-meta-bottom span {
  margin: 0 10px;
}

.article-detail-section {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 4px solid var(--color1);
}

.article-detail-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.article-detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 30px;
  background: var(--bg-card);
}

.article-detail-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.8;
  color: var(--text-primary);
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.article-item {
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
}

.article-item p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 16px;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.article-item h1,
.article-item h2,
.article-item h3,
.article-item h4,
.article-item h5,
.article-item h6 {
  margin: 30px 0 15px 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-item h3 {
  color: var(--color1);
  font-size: 22px;
}

.article-item ul,
.article-item ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-item li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-item strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-item table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-detail-content h3 {
  color: var(--color1);
  margin: 30px 0 15px 0;
  font-size: 22px;
}

.article-detail-content p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.article-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  margin: 15px 0;
  width: 100%;
}

.article-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-detail-content th,
.article-detail-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  white-space: normal !important;
}

.article-detail-content th {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.article-detail-content td {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color1);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--color2);
}

.category-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--color1);
}

.category-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  border-radius: 12px;
}

.category-card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.category-card-content {
  flex: 1;
}

.category-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.category-card-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.category-card-arrow {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
  color: var(--color1);
  transform: translateX(4px);
}

.category-card-arrow svg {
  width: 20px;
  height: 20px;
}

.current-category-articles {
  width: 100%;
}

.article-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  width: 100%;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 0;
  border: 3px solid var(--color1);
  margin-top: 20px;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  border-color: var(--color1);
}

.article-card:hover::before {
  opacity: 1;
}

.article-image {
  width: 55%;
  height: 90px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--border-color);
  border-radius: 12px 12px 0 0;
  margin: 20px auto;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid var(--color1);
}

.article-card:hover .article-image img {
  transform: scale(1.1);
  border: 3px solid var(--color1);
}

.article-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 14px;
}

.article-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  position: relative;
}

.article-card:hover .article-title {
  color: var(--color1);
}

.article-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 0;
  gap: 10px;
}

.article-type {
  background: transparent;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--color1);
  font-weight: 700;
  border: 2px solid var(--color1);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.article-type::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  border-radius: 6px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-type {
  color: white;
  border-color: transparent;
}

.article-card:hover .article-type::before {
  opacity: 1;
}

.article-time {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  transition: all 0.3s ease;
  margin-left: 0;
}

.article-time::before {
  content: "⏰️";
  font-size: 14px;
}

.article-card:hover .article-time {
  color: var(--text-primary);
}

.article-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-type-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  margin-top: 8px;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.empty-state-text {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-state-subtext {
  font-size: 14px;
  color: var(--text-secondary);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-card-hover);
  border-top: 4px solid var(--color1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.about-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.about-section {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
}

.about-section:last-child {
  border-bottom: none;
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color1);
  margin: 28px 0 16px 0;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.about-section li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
  list-style: disc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--color1);
}

.item-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.contact-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  border-radius: 12px;
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.privacy-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.privacy-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.privacy-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.privacy-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.privacy-section {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
  border-bottom: none;
}

.privacy-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.privacy-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 16px 0;
}

.privacy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.privacy-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.privacy-section li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
  list-style: disc;
}

.privacy-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-top: 40px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 20px;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color1);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  transition: right 0.3s ease;
  display: none;
}

.sidebar-menu.active {
  right: 0;
  display: block;
}

.sidebar-menu.active + .sidebar-overlay {
  display: block;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}

.sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  border-left: 1px solid var(--border-color);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  height: 64px;
  box-sizing: border-box;
}

.sidebar-header::before {
  display: none;
}

.sidebar-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 56px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar-item::before {
  display: none;
}

.sidebar-item:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateX(0);
  box-shadow: none;
  padding-left: 28px;
}

.sidebar-item svg {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sidebar-item:hover svg {
  color: var(--color1);
  transform: scale(1);
}

.sidebar-item span {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.sidebar-item.active {
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  color: var(--color1);
  border-left: 3px solid var(--color1);
  box-shadow: none;
}

.sidebar-item.active svg {
  color: var(--color1);
}

.sidebar-item.active::before {
  width: 0;
}

.sidebar-category {
  margin: 0;
}

.sidebar-category-title {
  padding: 20px 24px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.back-home-btn {
  position: fixed;
  right: 20px;
  bottom: 300px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  z-index: 3000;
  text-decoration: none;
}

.back-home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.back-home-btn:active {
  transform: translateY(0) scale(0.98);
}

.back-home-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.2),
    0 8px 25px rgba(99, 102, 241, 0.3);
}

.back-home-btn svg {
  width: 24px;
  height: 24px;
}

.random-redirect-notice {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.redirect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.redirect-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.redirect-text {
  flex: 1;
}

.redirect-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.redirect-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.redirect-countdown {
  font-size: 20px;
  font-weight: 700;
  color: var(--color1);
}

.redirect-cancel-btn {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.redirect-cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.featured-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.featured-icon {
  font-size: 24px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.8;
  }
}

.featured-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
  border-color: var(--color1);
}

.featured-image {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content {
  padding: 14px;
}

.featured-title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card:hover .featured-title-text {
  color: var(--color1);
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.featured-type {
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color1);
  font-weight: 500;
}

.articles-container {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

#articlesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
}

@media (min-width: 768px) {
  #articlesGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  #articlesGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1200px) {
  #articlesGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}
