
:root {
  --color1: #a61b29;
  --text-primary: #ffffff;
  --texture-img: url("../images/texture.png");
}

.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,
.recommended::before,
.about-header,
.privacy-header,
.about-content,
.privacy-content {
  background-color:  rgba(0, 0, 0, .3);
  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-color: var(--color1);
  background-image: var(--texture-img);
  line-height: 1.4;
  overflow-x: hidden;
}

.home-page {
  background-color: var(--color1);
}

.home-page-content {
  max-width: 800px;
  margin: 0 auto;
}


.detail-page {
  padding-top: 45px;
  position: relative;
  min-height: 100vh;
  background-color: white;
}

.detail-page .detail-page-content {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}



.category-wrapper {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 45px);
  width: 100%;
  overflow-x: hidden;
}

@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: 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: space-between;
}

.search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  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;
}


.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%;
  color: var(--text-primary);
}


.back-btn {
  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-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: var(--text-primary);
  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: #ffffff;
  text-transform: none;
}

.footer-eyebrow a {
  color: #ffffff;
  text-decoration: none;
}

.footer-eyebrow a:hover {
  text-decoration: underline;
}

.footer-title {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  color: #ffffff;
  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: 120px;
  min-width: 120px;
  position: fixed;
  left: 0;
  top: 45px;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 800px) {
  .sidebar {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
  }
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--color1);
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  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-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: 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;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 800px) {
  .category-content {
    max-width: 680px;
    width: 680px;
    margin-left: 0;
  }
}


.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;
}

.carousel-container {
  margin: 15px 0;
  padding: 0 16px;
  max-width: 960px;
}

.carousel-container.hidden {
  display: none;
}

.carousel-wrapper {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  aspect-ratio: 16 / 7;
  perspective: 1500px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 0;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 280px;
  height: 85%;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0;
  transform: scale(0.7) translateX(0) translateZ(-200px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  left: 50%;
  margin-left: -140px;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0) translateZ(0);
  width: 320px;
  height: 90%;
  margin-left: -160px;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.carousel-slide.next-slide {
  opacity: 0.8;
  transform: scale(0.85) translateX(220px) translateZ(-100px);
  z-index: 9;
}

.carousel-slide.next-2-slide {
  opacity: 0.5;
  transform: scale(0.75) translateX(380px) translateZ(-180px);
  z-index: 8;
}

.carousel-slide.prev-slide {
  opacity: 0.8;
  transform: scale(0.85) translateX(-220px) translateZ(-100px);
  z-index: 9;
}

.carousel-slide.prev-2-slide {
  opacity: 0.5;
  transform: scale(0.75) translateX(-380px) translateZ(-180px);
  z-index: 8;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  border-radius: 0 0 12px 12px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-slide.active .carousel-slide-title {
  font-size: 16px;
  padding: 15px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.carousel-arrow {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

.category-page .bar-container {
  position: sticky;
  top: 45px;
  z-index: 100;
  background: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}

.category-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-items: center;
  padding: 12px;
  border-radius: 5px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: none;
  border-radius: 5px;
  background: white;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.category-btn .category-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: inherit;
}

.category-btn .category-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.category-btn .category-label {
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  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: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.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.list-style {
  grid-template-columns: 1fr;
}

.home-page .articles-grid .category-section .article-item:nth-child(n+5) {
  display: none;
}

.home-page .articles-grid .category-section.list-style .article-item:nth-child(n+5) {
  display: flex;
}


.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 {
  width: 100%;
  display: flex;
  margin: 0;
  align-items: stretch;
  cursor: pointer;
  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-repeat: repeat;
  background-size: auto;
  border-radius: 8px;
  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-image: var(--texture-img);
  background-repeat: repeat;
  background-size: auto;
  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;
}

.home-page .category-section.list-style .article-item {
  flex-direction: row;
  min-height: 110px;
  height: 110px;
  width: 100%;
}

.home-page .category-section.list-style .article-img {
  width: 140px;
  height: 110px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.home-page .category-section.list-style .article-img img:not(.hot-badge) {
  width: 140px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.home-page .category-section.list-style .article-info {
  padding: 12px 15px;
  margin-left: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-page .category-section.list-style .article-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.home-page .category-section.list-style .article-date {
  display: block;
  font-size: 12px;
  color: white;
  margin-top: auto;
}

.home-page .category-section.list-style .article-info > *:not(.article-title):not(.article-date) {
  display: none;
}


.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;
  position: relative;
}

.article-img {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  margin: 0;
}

.home-page .article-img {
  width: 100%;
  height: 170px;
  border-radius: 8px 8px 0 0;
  padding: 15px;
  overflow: hidden;
  position: relative;
}

.home-page .article-img img:not(.hot-badge) {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.category-grid .article-img {
  width: 110px;
  height: 110px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.category-grid .article-img img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.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;
}

.home-page .article-info {
  padding: 8px;
  justify-content: flex-start;
}

.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-primary);
  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-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 {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
  margin: 0;
  color: var(--text-primary);
  padding: 6px 20px 6px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.category-grid .category-tag {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  border-radius: 0 0 4px 0;
}

.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-top: 15px;
  margin-bottom: 20px;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


#articleImageContainer {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  box-shadow: none;
}

#articleMainImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: 30vh;
  border-radius: 10px;
  object-fit: contain;
  margin: 0 auto;
}

.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: black;
  text-decoration: underline;
}
.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 {
  border-radius: 5px;
}

.detail-title {
  font-size: 20px;
  padding: 0;
  margin-bottom: 12px;
  border-radius: 0;
  line-height: 1.4;
  font-weight: 600;
  background: transparent;
  background-image: none;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-page .detail-title {
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: black;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-date {
  width: auto;
  text-align: center;
  padding: 8px 12px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-category {
  width: auto;
  text-align: center;
  font-weight: 500;
  color: black;
  padding: 8px 12px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-content {
  border-radius: 5px;
  box-shadow: none;
  line-height: 1.8;
  color: #333333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-page .detail-content {
  margin-bottom: 15px;
  color: black;
  line-height: 1.8;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-page .detail-content * {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-page .detail-content h1,
.detail-page .detail-content h2,
.detail-page .detail-content h4,
.detail-page .detail-content h5,
.detail-page .detail-content h6 {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-page .detail-content div,
.detail-page .detail-content span,
.detail-page .detail-content li,
.detail-page .detail-content ul,
.detail-page .detail-content ol {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-content h3 {
  color: black;
  margin: 25px 0 15px 0;
  font-size: 20px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-content p {
  margin-bottom: 15px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.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: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 8px var(--color1), 0 0 0 4px #ffffff;
  margin-bottom: 25px;
  padding: 15px;
  text-align: center;
  position: relative;
}

.recommended-list {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}

.recommended-list .article-item {
  display: flex;
  flex-direction: row;
  min-height: 110px;
  height: 110px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.recommended-list .article-item .article-img {
  width: 140px;
  height: 110px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.recommended-list .article-item .article-img img:not(.hot-badge) {
  width: 140px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.recommended-list .article-item .article-info {
  padding: 12px 15px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-color:  rgba(0, 0, 0, .3);
  flex: 1;
}

.recommended-list .article-item .category-tag {
  display: none;
}

.recommended-list .article-item .article-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  margin-bottom: 8px;
}

.recommended-list .article-item .article-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.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: #ffffff;
  margin-bottom: 15px;
}

.about-header p,
.privacy-header p {
  font-size: 16px;
  color: #ffffff;
}

.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: #ffffff;
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 20px;
  color: #ffffff;
  margin: 15px;
}

.privacy-section h3 {
  font-size: 20px;
  color: #ffffff;
  margin: 25px 0 15px 0;
}

.about-section p,
.privacy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #ffffff;
}

.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: #ffffff;
  margin-bottom: 10px;
  list-style: disc;
}

.privacy-section strong {
  color: #ffffff;
  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: transparent;
  border-radius: 5px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.value-item h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
}

.sidebar-btn {
  position: fixed;
  right: 15px;
  bottom: 260px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-btn 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(--color1);
  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-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;
}
