:root {
  --primary-color: #ff6b6b;
  --secondary-color: #9c89b8;
  --background-color: #f8f9fa;
  --card-bg-color: #ffffff;
  --text-color: #333333;
  --light-text: #6c757d;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --footer-bg: #343a40;
  --footer-text: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  /* padding-top: 70px; */
}

/* Navigation Bar */
.navbar {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 8px 12px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 0.85rem;
  width: 220px;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(156, 137, 184, 0.2);
  width: 250px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  font-size: 0.9rem;
}

.user-actions {
  display: flex;
  gap: 12px;
}

.user-actions a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.user-actions a:hover {
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-color);
}

.section-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.view-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.view-more:hover {
  text-decoration: underline;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Novel Card */
.novel-card {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px var(--shadow-color);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
}

.novel-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 12px var(--hover-shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.novel-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.novel-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
}

.novel-desc {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 10px;


  line-height: 1.4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tag {
  background-color: rgba(156, 137, 184, 0.15);
  color: var(--secondary-color);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.read-btn:hover {
  background-color: #ff5252;
  transform: translateY(-1px);
}

/* Read More Button Styles */
.read-more-button {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252, #8e7cc3);
}

.read-more-button:active {
  transform: translateY(0);
}

.read-more-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#load-more-btn:hover {
  background-color: #654321 !important;
}

.update-date {
  font-size: 0.7rem;
  color: var(--light-text);
}

/* Featured Section */
.featured {
  margin-bottom: 30px;
}

.featured .cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.featured .novel-card {
  border: 2px solid var(--secondary-color);
}

/* Categories Section */
.categories {
  margin-bottom: 30px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.category-item {
  margin: 12px 0;
  background-color: var(--card-bg-color);
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.category-title {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-title a {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
}

.category-books {
  list-style: none;
}

.category-books li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.category-books li:last-child {
  border-bottom: none;
}

.category-books a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.85rem;
  display: block;
}

.category-books a:hover {
  color: var(--primary-color);
}

/* History Section */
.history {
  margin-bottom: 30px;
}

.history .cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.history .novel-card {
  box-shadow: 0 2px 6px rgba(156, 137, 184, 0.3);
}

.history .novel-title {
  font-size: 0.85rem;
  -webkit-line-clamp: 1;
  min-height: auto;
}

.history .cover-container {
  height: 180px;
}

.progress-bar {
  height: 3px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Random Recommendations Section */
.random {
  margin-bottom: 30px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 30px 0 15px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-about {
  font-size: 0.88rem;
  margin-bottom: 12px;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
}

.footer-links h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  opacity: 0.7;
}

.fenkai {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 2%;
  }

  .search-box input {
    width: 160px;
  }

  .search-box input:focus {
    width: 180px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .cover-container {
    height: 200px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .nav-right {
    gap: 10px;
  }

  .search-box input {
    width: 130px;
    padding: 6px 10px 6px 28px;
  }

  .search-box input:focus {
    width: 150px;
  }

  .search-box i {
    left: 10px;
    font-size: 0.8rem;
  }

  .user-actions {
    display: none;
  }

  .cover-container {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    padding: 10px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .recommended .novel-card .card-content .update-date {
    display: none;
  }

  footer {

    padding: 10px 0 15px;
  }

  .categories {
    margin-bottom: 12px;
  }

  .featured {
    margin-bottom: 10px;
  }

  .cards-grid {
    margin-bottom: 6px;
  }

  .history {
    margin-bottom: 10px;
  }



}

.logo {
      display: inline-block;
  height: 30px;
}

.imggg {
  height: 100%;
}
