/*
  Custom SEO-friendly visual refresh for bqgpc
  - Non-breaking: only overrides existing classes/selectors
  - No functional changes
*/

/* Theme variables */
:root {
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --ink-900: #0f172a;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-600: #374151;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 14px rgba(2,6,23,0.08);
  --shadow-lg: 0 12px 24px rgba(2,6,23,0.12);
}

/* Base typography */
html, body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink-700);
  background: var(--bg-page);
  line-height: 1.6;
}

a { color: var(--brand-600); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--brand-500); }

/* Layout containers */
.bk-container.bk-biqunaicc {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Top bar and header */
.bk-topbar {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--ink-200);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bk-topbar-con {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.bk-topbar a { 
  color: var(--ink-200); 
  transition: color .15s ease;
  text-decoration: none;
}
.bk-topbar a:hover { 
  color: #fff; 
}
.bk-topbar-sethome, .bk-topbar-addfavorite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-6);
  transition: background-color .15s ease;
}
.bk-topbar-sethome:hover, .bk-topbar-addfavorite:hover {
  background: rgba(255,255,255,0.1);
}
.bk-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bk-topbar-right a {
  padding: 4px 12px;
  border-radius: var(--radius-6);
  transition: all .15s ease;
}
.bk-topbar-right a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.bk-site-header { 
  border-bottom: 1px solid var(--ink-300); 
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.96)); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.bk-site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400), var(--brand-600));
  opacity: 0.3;
}
.bk-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 20px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.95) 100%);
  border-radius: var(--radius-8);
  margin: 10px auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 1200px;
  width: calc(100% - 40px);
  height: auto !important;
  position: relative;
}
.bk-logo {
  flex-shrink: 0;
}
.bk-logo a { 
  text-decoration: none !important; 
  color: var(--brand-600) !important; 
  font-weight: 700 !important; 
  font-size: 32px !important;
  transition: all .2s ease;
  text-shadow: 0 2px 4px rgba(232,135,60,0.15);
  display: inline-block !important;
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-8);
  background: linear-gradient(135deg, rgba(232,135,60,0.05) 0%, rgba(249,115,22,0.05) 100%);
  float: none !important;
  height: auto !important;
  width: auto !important;
  line-height: 1.2 !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}
.bk-logo a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-8);
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
}
.bk-logo a:hover {
  color: var(--brand-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,135,60,0.2);
}
.bk-logo a:hover::before {
  opacity: 0.3;
}

/* Primary nav */
nav.bk-site-nav { 
  background: linear-gradient(135deg, #fff1e6 0%, #ffd4b3 100%);
  box-shadow: 0 2px 8px rgba(232,169,108,0.3);
  border-radius: var(--radius-8);
  margin: 10px auto;
  max-width: 1200px;
  width: calc(100% - 40px);
  overflow: visible !important;
}
ul.bk-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  list-style: none !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}
ul.bk-nav > li {
  float: none !important;
  line-height: normal !important;
  margin: 0 !important;
}
ul.bk-nav > li > a {
  display: inline-block !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-6) !important;
  color: #b07040 !important;
  border: 1px solid rgba(176,112,64,0.2) !important;
  background: rgba(255,255,255,0.5) !important;
  transition: all .2s ease !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  height: auto !important;
  overflow: visible !important;
}
ul.bk-nav > li > a:hover { 
  background: rgba(255,255,255,0.8) !important; 
  border-color: rgba(176,112,64,0.4) !important; 
  box-shadow: 0 2px 8px rgba(176,112,64,0.2) !important;
  transform: translateY(-1px) !important;
  color: #8b4520 !important;
}
ul.bk-nav > li > a:active {
  transform: translateY(0) !important;
}

/* Search */
.bk-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 600px;
  background: #fff;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-10);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all .2s ease;
}
.bk-search-form:focus-within {
  border-color: var(--brand-400);
  box-shadow: 0 4px 16px rgba(232,135,60,0.2);
}
.bk-input-text.bk-input-key {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-8);
  background: transparent;
  font-size: 14px;
  transition: all .18s ease;
}
.bk-input-text.bk-input-key::placeholder {
  color: var(--ink-400);
}
.bk-btn-tosearch {
  padding: 10px 24px;
  border-radius: var(--radius-8);
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(232,135,60,0.3);
  transition: all .2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.bk-btn-tosearch:hover { 
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%); 
  box-shadow: 0 4px 12px rgba(232,135,60,0.4); 
  transform: translateY(-1px); 
}
.bk-btn-tosearch:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232,135,60,0.3);
}
.bk-input-text.bk-input-key:focus { 
  outline: none; 
}

/* Section headers */
.bk-layout-tit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 2px solid var(--ink-200);
  position: relative;
}
.bk-layout-tit::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--brand-600);
  border-radius: 2px;
  display: inline-block;
}

/* Lists */
.bk-txt-list li { line-height: 1.8; }
.bk-txt-list-row3 li, .bk-txt-list-row5 li { padding: 2px 0; }

/* Cards */
.bk-tp-box { border: 1px solid #f3f4f6; border-radius: var(--radius-10); padding: 12px; background: var(--bg-card); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease; }
.bk-tp-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bk-detail-box { border: 1px solid #f3f4f6; border-radius: var(--radius-12); padding: 16px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.bk-imgbox img { border-radius: var(--radius-8); display: block; width: 100%; height: auto; object-fit: cover; }

/* Read page */
.bk-word-read {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: var(--radius-12);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  line-height: 1.9;
}
.bk-read-btn a {
  display: inline-block;
  margin: 6px 6px 6px 0;
  padding: 6px 10px;
  border-radius: var(--radius-6);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  transition: all .18s ease;
}
.bk-read-btn a:hover { background: var(--brand-100); border-color: var(--brand-200); box-shadow: var(--shadow-sm); }

/* Footer */
.bk-footer { 
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%); 
  color: #9ca3af; 
  padding: 32px 0; 
  border-top: 3px solid var(--brand-600);
  margin-top: 40px;
  position: relative;
}
.bk-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.bk-pc-footer { 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.bk-pc-footer p { 
  line-height: 2;
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  letter-spacing: 0.5px;
}
.bk-footer a { 
  color: #cbd5e1; 
  transition: color .15s ease;
  text-decoration: none;
}
.bk-footer a:hover { 
  color: #fff; 
  text-decoration: underline;
}

/* Home page specific styles */
.bk-novel-home .bk-container.bk-biqunaicc {
  padding-top: 24px;
  padding-bottom: 24px;
}

.bk-novel-home .bk-row {
  margin-bottom: 24px;
}

/* Home page layout card */
.bk-novel-home .bk-layout.bk-layout2 {
  background: var(--bg-card);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s ease;
  width: 100% !important;
  float: none !important;
}

.bk-novel-home .bk-layout.bk-layout2:hover {
  box-shadow: var(--shadow-lg);
}

/* Home page title */
.bk-novel-home .bk-layout2 .bk-layout-tit {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 20px;
  margin: 0;
  border: none;
  border-bottom: 2px solid var(--brand-400);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-novel-home .bk-layout2 .bk-layout-tit::before {
  content: "📚";
  width: auto;
  height: auto;
  background: none;
  font-size: 20px;
  display: inline-block;
}

.bk-novel-home .bk-layout2 .bk-layout-tit::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin-left: 12px;
}

/* Home page list */
.bk-novel-home .bk-txt-list {
  padding: 16px 20px;
  background: var(--bg-card);
}

.bk-novel-home .bk-txt-list-row5 li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-200);
  transition: background-color .15s ease, padding-left .15s ease;
  border-radius: var(--radius-6);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-novel-home .bk-txt-list-row5 li:hover {
  background-color: var(--brand-50);
  padding-left: 8px;
}

.bk-novel-home .bk-txt-list-row5 li:last-child {
  border-bottom: none;
}

.bk-novel-home .bk-txt-list-row5 li a {
  color: var(--ink-700);
  font-size: 14px;
  transition: color .15s ease;
  text-decoration: none;
}

.bk-novel-home .bk-txt-list-row5 li a:hover {
  color: var(--brand-600);
  font-weight: 500;
}

.bk-novel-home .bk-txt-list-row5 .bk-s1 {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  width: auto !important;
  min-width: 75px;
}

.bk-novel-home .bk-txt-list-row5 .bk-s2 {
  color: var(--ink-600);
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-novel-home .bk-txt-list-row5 .bk-s2 a {
  color: var(--ink-700);
  font-weight: 500;
}

/* 隐藏章节名 */
.bk-novel-home .bk-txt-list-row5 .bk-s3 {
  display: none !important;
}

.bk-novel-home .bk-txt-list-row5 .bk-s4 {
  color: var(--ink-400);
  font-size: 12px;
  flex-shrink: 0;
  width: auto !important;
  text-align: left !important;
  white-space: nowrap;
  margin-right: 0 !important;
}

.bk-novel-home .bk-txt-list-row5 .bk-s5 {
  color: var(--ink-400);
  font-size: 12px;
  flex-shrink: 0;
  float: none !important;
  margin-left: 0 !important;
  white-space: nowrap;
  margin-left: 8px;
}

/* Home page spacing */
.bk-novel-home .bk-site-main {
  min-height: 60vh;
}

/* Latest tags section */
.bk-novel-home .bk-layout3 {
  background: var(--bg-card);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.bk-novel-home .bk-layout3 .bk-layout-tit {
  background: linear-gradient(135deg, #e8873c 0%, #d47830 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 20px;
  margin: 0;
  border: none;
  border-bottom: 2px solid #a85520;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-novel-home .bk-layout3 .bk-layout-tit::before {
  content: "🏷️";
  width: auto;
  height: auto;
  background: none;
  font-size: 20px;
  display: inline-block;
}

.bk-novel-home .bk-layout3 .bk-layout-tit::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin-left: 12px;
}

.bk-novel-home .bk-tag-news {
  padding: 16px 20px;
  background: var(--bg-card);
  height: auto !important;
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bk-novel-home .bk-tag-news > a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-6);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
  line-height: 1.5;
}

.bk-novel-home .bk-tag-news > a:hover {
  background: var(--brand-100);
  border-color: var(--brand-400);
  color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* 隐藏空标签 - 使用JavaScript处理，这里先设置基础样式 */
.bk-novel-home .bk-tag-news > a {
  min-width: 0;
  min-height: 0;
}

/* 隐藏没有文本内容的标签 */
.bk-novel-home .bk-tag-news > a:empty {
  display: none !important;
}

/* 隐藏没有href或href为空的标签 */
.bk-novel-home .bk-tag-news > a:not([href]),
.bk-novel-home .bk-tag-news > a[href=""],
.bk-novel-home .bk-tag-news > a[href="#"] {
  display: none !important;
}

/* Comment section styles */
.bk-comment-list {
	margin-top: 20px;
}
.bk-comment-item {
	padding: 15px;
	margin-bottom: 15px;
	background: #f9f9f9;
	border-left: 3px solid #e8873c;
	border-radius: 4px;
}
.bk-comment-nickname {
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	font-size: 14px;
}
.bk-comment-content {
	color: #666;
	line-height: 1.6;
	font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .bk-input-text.bk-input-key { min-width: 160px; }
  .bk-header { flex-direction: column; align-items: stretch; }
  .bk-novel-home .bk-layout2 .bk-layout-tit {
    font-size: 18px;
    padding: 12px 16px;
  }
  .bk-novel-home .bk-txt-list {
    padding: 12px 16px;
  }
}


