/* ============================================
   现代化通用样式 - 深蓝到青色主题
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 75px;
  max-width: 750px;
  margin: 0 auto;
  font-size: 14px;
  color: #1a202c;
  background-color: #f7fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #1a202c;
}

li {
  list-style: none;
}

/* ========== Header 头部样式 ========== */
.header {
  max-width: 750px;
  margin: 0 auto;
  height: 5rem;
  box-sizing: border-box;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 149;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  background-size: 100% 100%;
  box-shadow: 0px 4px 20px 0px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(10px);
}

.logo {
  min-width: 150px;
  height: 100%;
  line-height: 44px;
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.logo-a {
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.home-icon {
  width: 26px;
}

/* ========== 导航栏搜索按钮样式 ========== */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.75rem;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: 8px;
}

.nav-search-btn svg {
  color: #ffffff;
  width: 1.2rem;
  height: 1.2rem;
}

/* ========== 搜索容器样式 ========== */
#searchContainer {
  background: linear-gradient(135deg, rgba(247, 250, 252, 0.95) 0%, rgba(237, 242, 247, 0.95) 100%);
  margin: 0;
  padding: 1rem 0 0.75rem;
  backdrop-filter: blur(10px);
}

.search-guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.75rem;
  margin: 0 .75rem;
  background-color: #ffffff;
  border-radius: 10px;
  font-size: 0.875rem;
  text-align: left;
  padding: 0 0.875rem;
  color: #666;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
  cursor: pointer;
}

.search-guide svg {
  margin-right: 0.75rem;
  color: #2563eb;
  flex-shrink: 0;
}

.search-guide span {
  flex: 1;
  color: #4a5568;
  font-weight: 400;
}

/* ========== 搜索按钮样式 ========== */
.search-guide::after {
  content: '';
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: 1.2rem 1.2rem;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.25);
}

.search-area {
  width: 260px;
  height: 2.75rem;
  background: #ffffff;
  border-radius: 10px;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  bottom: 0;
  margin: auto;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  padding: 0 0.875rem;
}

.search-area img {
  position: static;
  margin-right: 0.75rem;
  width: 1.2rem;
  height: 1.2rem;
  color: #2563eb;
  opacity: 0.6;
}

.search-input {
  border: none;
  background: none;
  height: 100%;
  width: 100%;
  color: #1a202c;
  padding: 0;
  font-size: 0.875rem;
  outline: none;
  flex: 1;
  font-weight: 400;
}

.search-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* ========== 搜索图标按钮样式 ========== */
.search-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.25);
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.search-icon img {
  width: 1.2rem;
  height: 1.2rem;
  filter: brightness(0) invert(1);
  position: static;
  margin: 0;
}

/* ========== Footer 页脚样式 ========== */
.novel-footer {
  padding: 1.5rem 15px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  text-align: center;
  font-size: 12px;
  color: #e2e8f0;
  margin-top: 1rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.novel-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  opacity: 0.5;
}

.footer-social {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-social p {
  margin: 0;
  line-height: 1.8;
  color: #cbd5e1;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* ========== 工具类样式 ========== */
.positionFixed {
  bottom: 0px;
  left: 50%;
  position: fixed;
  transform: translate(-50%, 0%);
  z-index: 999;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ad-div {
  width: 100%;
  min-width: 250px;
  clear: both;
  border-radius: 12px;
  overflow: hidden;
}

.t_de {
  height: 0.2rem;
  max-width: 100%;
  line-height: 0.3rem;
  font-size: 0.6rem;
  padding: 0.5rem 0 1rem 0;
  box-sizing: border-box;
  color: #94a3b8;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.grecaptcha-badge {
  visibility: hidden;
}

.sort,
.num,
.tag,
.cate1 {
  color: #2563eb;
  border-color: #2563eb;
}

/* ========== 面包屑导航样式 ========== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0.75rem 8px;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.breadcrumbsItem {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  max-width: 100%;
}

.breadcrumbsItem:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: #cbd5e1;
  font-weight: 300;
}

.breadcrumbsItem a {
  color: #2563eb;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  font-weight: 500;
  border-radius: 6px;
}

.breadcrumbsItem:last-child a {
  color: #1a202c;
  font-weight: 700;
  max-width: none;
  white-space: normal;
  cursor: default;
}


.breadcrumbsItem a.cate {
  color: #2563eb;
  font-weight: 500;
}

/* ========== 分页样式 ========== */
.PAGE {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 15px 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.PAGE li {
  margin: 0;
}

.PAGE li a,
.PAGE li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  color: #4a5568;
  background-color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.PAGE li.active a {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  font-weight: 600;
}

.PAGE li span {
  color: #cbd5e1;
  cursor: default;
  background-color: #f7fafc;
  border-color: #e2e8f0;
}

/* ========== 上一页下一页的箭头样式 ========== */
.PAGE li:first-child a,
.PAGE li:last-child a {
  padding: 0 0.875rem;
  font-weight: 600;
}

/* ========== 列表文本样式 ========== */
#listText {
  display: flex;
  border: 0;
  padding: 1rem 1rem;
  background: transparent;
}

/* ========== 响应式设计 ========== */
@media screen and (min-width: 750px) {
  body {
    max-width: 1200px;
  }

  .header {
    max-width: 1200px;
  }

  .breadcrumbs {
    margin: 20px 2rem 15px;
    padding: 1rem 1.5rem;
  }

  .novel-footer {
    padding: 3rem 30px;
  }
}

@media screen and (max-width: 749px) {
  .PAGE {
    padding: 20px 0;
    gap: 0.375rem;
  }

  .PAGE li a,
  .PAGE li span {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }

  .breadcrumbs {
    margin: 15px 0.75rem 10px;
    padding: 0.625rem 0.875rem;
  }
}

/* ========== 平滑滚动 ========== */
html {
  scroll-behavior: smooth;
}

/* ========== 选择文本样式 ========== */
::selection {
  background-color: rgba(37, 99, 235, 0.2);
  color: #1a202c;
}

::-moz-selection {
  background-color: rgba(37, 99, 235, 0.2);
  color: #1a202c;
}
