
:root {
  --color-primary: #373834;
  --text-primary: #FFFFFF;
  --primary-background-alpha-10: rgba(235, 164, 111, 0.1);
  --primary-background-alpha-30: rgba(235, 164, 111, 0.3);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #000;
}

body {
  background-color: white;
  line-height: 1.4;
  overflow-x: hidden;
}



.home-page {
  background-color: var(--color-primary);
}

.home-page-content {
  max-width: 800px;
  margin: 0 auto;
}


.detail-page {
  padding-top: 0;
}

.detail-page .detail-page-content {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}


.category-wrapper {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 45px);
  width: 100%;
  overflow-x: hidden;
}

.category-page main {
  margin-top: 45px;
}


.about-page,
.privacy-page {
  margin-top: 45px;
  max-width: 800px;
  padding: 15px;
}



.header {
  background: var(--color-primary);
  color: white;
  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;
}

.home-page .header-content {
  justify-content: center;
}


.category-page .header-content {
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}

.category-page .page-title {
  font-size: 18px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  color: var(--text-primary);
}


.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo p {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}



.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.back-button-header {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-primary);
  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-button-header {
  padding: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  justify-content: center;
}

.category-page .back-button-header svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}


.back-button-header.detail-image-back {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background: white;
  opacity: 0.6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-button-header.detail-image-back svg {
  color: var(--color-primary);
}



.footer {
  background-color: var(--color-primary);
  margin-top: 20px;
  width: 100%;
  border-radius: 2px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  gap: 30px;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-copyright {
  color: var(--text-primary);
  font-size: 14px;
  padding-top: 10px;
  border-top: 1px solid white;
}



.search-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.search-input-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);
  border: 1px solid var(--primary-background-alpha-30);
  transition: all 0.3s ease;
  margin: 0 20px;
}

.search-input-wrapper:focus-within {
  box-shadow: 0 6px 20px var(--primary-background-alpha-30),
    0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-background-alpha-30);
  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;
  background: var(--color-primary);
  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;
  background: transparent;
  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-results-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  padding: 10px;
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.search-results-info {
  color: #666;
  font-size: 14px;
}

.search-results-info span {
  color: #333;
  font-weight: 600;
}

.clear-search-btn {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid #999;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}



.category-sidebar {
  width: 120px;
  min-width: 120px;
  background: var(--color-primary);
  position: fixed;
  left: 0;
  top: 45px;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
  display: block;
  visibility: visible;
}

.category-sidebar::-webkit-scrollbar {
  width: 4px;
}

.category-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.category-sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-background-alpha-30);
  border-radius: 2px;
}

.category-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 14px;
  position: relative;
  gap: 8px;
  border-bottom: 1px dashed white;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.sidebar-item.active {
  background: white;
  color: #000;
  font-weight: 500;
}

.sidebar-item.active .category-icon,
.sidebar-item .category-icon:hover {
  opacity: 1;
}

.sidebar-item .category-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sidebar-item .category-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item .sidebar-divider {
  height: 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  margin: 8px 0 0 0;
  padding: 0;
  background: none;
  width: calc(100% - 16px);
  margin-left: 8px;
  margin-right: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.category-content {
  flex: 1;
  margin-left: 120px;
  background: white;
  position: relative;
  min-height: calc(100vh - 45px);
  width: calc(100% - 120px);
  max-width: calc(100% - 120px);
  overflow-x: hidden;
  box-sizing: border-box;
  padding-right: 10px;
}

.category-header {
  display: flex;
  align-items: center;
  padding: 15px 15px 0 15px;
}

.category-title {
  font-size: 24px;
  color: var(--color-primary);
  margin: 0;
  font-weight: 400;
}

.current-category-articles {
  position: relative;
  z-index: 1;
}

.category-articles {
  padding: 0;
  background: white;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}



.category-bar-container {
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.category-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
}

.category-bar::-webkit-scrollbar {
  height: 4px;
}

.category-bar::-webkit-scrollbar-track {
  background: transparent;
}

.category-bar::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

.category-bar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.category-btn {
  flex: 0 0 auto;
  width: fit-content;
  min-width: fit-content;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
}

.category-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-primary);
  font-weight: 500;
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 10px;
  background: white;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-bottom: 40px;
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-card-content {
  flex: 1;
}

.category-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.category-card-count {
  font-size: 14px;
  color: #666;
}

.category-card-arrow {
  color: #999;
}

.category-card-arrow svg {
  width: 20px;
  height: 20px;
}



.articles-container {
  padding: 5px 10px;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}


.category-results-container,
.search-results-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  background: white;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.home-page .search-results-container {
  background: transparent;
  padding: 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 {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.home-page .article-item {
  flex-direction: row;
  background: transparent;
  border-bottom: 1px solid white;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 12px;
  padding-bottom: 10px;
}


.category-grid .article-item {
  flex-direction: row;
  background: white;
  border-bottom: 1px solid #7a7979;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 12px;
  padding-bottom: 10px;
  min-height: auto;
  height: auto;
  max-height: none;
  align-items: stretch;
  overflow: visible;
}


.detail-page .article-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-card {
  border: 1px solid #999;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: none;
  height: auto;
}


.article-img,
.article-image {
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.article-img {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  margin: 0;
}

.home-page .article-img {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.home-page .article-img .article-image-main,
.home-page .article-img img:not(.hot-badge) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-grid .article-img {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.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;
}

.category-grid .article-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hot-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: auto;
  height: 28px;
  max-height: 28px;
  max-width: 40px;
  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;
  gap: 8px;
}

.category-grid .article-info {
  padding: 10px 10px 0 10px;
  justify-content: flex-start;
  gap: 8px;
  flex-direction: column;
}

.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 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.home-page .article-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.article-content .article-title {
  margin: 0 0 10px 0;
}


.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}


.article-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.article-rating .stars {
  display: flex;
  gap: 2px;
}

.article-rating .star {
  width: 14px;
  height: 14px;
  fill: #ffd700;
}

.article-rating .rating-text {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}


.article-tag {
  color: #999;
  font-size: 12px;
  margin-top: 0;
}

.article-type {
  color: var(--color-primary);
  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 {
  margin: 0;
  color: white;
}

.category-grid .category-tag {
  display: none;
}

.article-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  margin-top: auto;
}

.home-page .article-date {
  color: var(--text-primary);
  margin-top: 0;
}

.category-grid .article-date {
  margin-top: 0;
  color: #333;
}



.article-detail {
  width: 100%;
}


.article-header.detail-image-header {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

#articleImageContainer {
  width: 100%;
  max-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
}

#articleMainImage {
  max-width: 100%;
  max-height: 30vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
}

#articleMainImage[src]:not([src=""]) {
  display: block;
}

.back-button-header.detail-title-back {
  position: relative;
  margin-top: 0;
  margin-bottom: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  opacity: 0.9;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.back-button-header.detail-title-back svg {
  color: var(--color-primary);
}


.detail-page .detail-content-wrapper {
  background: linear-gradient(to bottom, var(--color-primary) 150px, white 200px);
  padding: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 50px;
  border-radius: 20px 20px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}


.detail-title-wrapper {
  margin-bottom: 10px;
}

.article-detail-title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.article-detail-title.detail-page-title {
  font-weight: bold;
  margin: 0;
  margin-bottom: 10px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

#articleAuthor:empty,
#articleTime:empty {
  display: none;
}

#articleSource {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  display: inline-block;
}

#articleSource:empty {
  display: none;
}

.article-detail-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-detail-content.detail-page-content {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
  font-size: 15px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-detail-content h3 {
  color: var(--color-primary);
  margin: 25px 0 15px 0;
  font-size: 20px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-detail-content p {
  margin-bottom: 10px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-detail-content img {
  max-width: 100%;
  height: auto;
}

.article-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);
}

.article-detail-content th,
.article-detail-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  word-wrap: break-word;
  hyphens: auto;
  font-size: 14px;
}

.article-detail-content th {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
}

.article-detail-content td {
  line-height: 1.5;
}

.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(--color-primary);
  border-radius: 3px;
}



.recommended-section {
  padding: 20px;
  position: relative;
}

.recommended-section::before {
  content: "Hot Articles";
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #999;
  position: relative;
}

.recommended-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}

.recommended-articles .article-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 10px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: 1px solid var(--color-primary);
  min-height: 280px;
}

.recommended-articles .article-card .article-image {
  width: 100%;
  height: 180px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.recommended-articles .article-card .article-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.recommended-articles .article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommended-articles .article-card .article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.recommended-articles .article-card .article-title {
  font-size: 16px;
  color: #333;
  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-articles .article-card .article-tag {
  font-size: 12px;
  color: #999;
  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: 2px dashed var(--color-primary);
  background: white;
  border-radius: 15px;
}

.about-header h1,
.privacy-header h1 {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.about-header p,
.privacy-header p {
  font-size: 16px;
  color: #666;
}

.about-content,
.privacy-content {
  background: white;
  border-radius: 15px;
  border: 2px dashed var(--color-primary);
  overflow: hidden;
}

.about-section,
.privacy-section {
  padding: 15px;
  border-bottom: 2px dashed var(--color-primary);
}

.about-section:last-child,
.privacy-section:last-child {
  border-bottom: none;
}

.about-section h2,
.privacy-section h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin: 15px;
}

.privacy-section h3 {
  font-size: 20px;
  color: #000;
  margin: 25px 0 15px 0;
}

.about-section p,
.privacy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.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: #666;
  margin-bottom: 10px;
  list-style: disc;
}

.privacy-section strong {
  color: #333;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 2px dashed var(--color-primary);
}

.value-item h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}



.sidebar-toggle-float {
  position: fixed;
  right: 15px;
  bottom: 265px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-toggle-float svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.back-home-btn {
  position: fixed;
  right: 15px;
  bottom: 300px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  text-decoration: none;
}

.back-home-btn svg {
  width: 36px;
  height: 36px;
}



.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-state-text {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.empty-state-subtext {
  font-size: 14px;
  color: #999;
}

.empty-state-subtext a {
  color: var(--color-primary);
  text-decoration: none;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.error-state,
.loading-state,
.cache-notice,
.default-categories {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.error-icon,
.notice-icon,
.default-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.error-text,
.loading-text,
.notice-text,
.default-text {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
}

.notice-subtext,
.default-subtext {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.retry-btn,
.refresh-btn {
  padding: 10px 20px;
  background: #ba7ac7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}
