/* ============================================
   科技感美化样式 - Tech Futuristic Theme
   卿の小站 - Qing Xiaozhan
   ============================================ */

:root {
  --tech-bg-primary: #0a0e17;
  --tech-bg-secondary: #111827;
  --tech-bg-card: rgba(17, 24, 39, 0.92);
  --tech-border: rgba(0, 200, 255, 0.15);
  --tech-accent: #00c8ff;
  --tech-accent2: #7c3aed;
  --tech-text: #e2e8f0;
  --tech-text-muted: #94a3b8;
  --tech-gradient: linear-gradient(135deg, #00c8ff 0%, #7c3aed 100%);
  --tech-card-radius: 12px;
  --tech-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(0,200,255,0.05);
}

/* Global */
body {
  background: #0a0e17 !important;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,200,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.03) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  color: #e2e8f0 !important;
  font-family: 'Inter','PingFang SC','Microsoft YaHei',-apple-system,sans-serif !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

#kratos-wrapper, #kratos-page { background: transparent !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0e17; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#00c8ff,#7c3aed); border-radius: 3px; }

/* Header */
#kratos-header-section {
  background: rgba(10,14,23,0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,200,255,0.15) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#kratos-primary-menu { display: flex; align-items: center; gap: 4px; }

#kratos-primary-menu > li > a {
  color: #e2e8f0 !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

#kratos-primary-menu > li > a:hover,
#kratos-primary-menu > li.current-menu-item > a {
  color: #00c8ff !important;
  background: rgba(0,200,255,0.08) !important;
  text-shadow: 0 0 10px rgba(0,200,255,0.3);
}

#kratos-primary-menu .sub-menu {
  background: rgba(17,24,39,0.98) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 10px !important;
  padding: 8px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

#kratos-primary-menu .sub-menu li a {
  color: #e2e8f0 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

#kratos-primary-menu .sub-menu li a:hover {
  background: rgba(0,200,255,0.1) !important;
  color: #00c8ff !important;
  padding-left: 20px !important;
}

/* Hero */
.kratos-start.kratos-hero-2 { position: relative; overflow: hidden; }

.kratos-overlay {
  background: linear-gradient(180deg, rgba(10,14,23,0.4) 0%, rgba(10,14,23,0.7) 60%, rgba(10,14,23,1) 100%) !important;
}

.kratos-cover .desc.desc2 h2 {
  font-size: 2.5em !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #00c8ff 0%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  letter-spacing: 2px;
}

.kratos-cover .desc.desc2 span {
  color: #94a3b8 !important;
  font-size: 1.1em;
  letter-spacing: 4px;
  font-weight: 300;
}

/* Main Content */
#kratos-blog-post { background: transparent !important; position: relative; z-index: 1; }

/* Article Cards */
.kratos-hentry,
.kratos-entry-border-new {
  background: rgba(17,24,39,0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(0,200,255,0.05) !important;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  overflow: hidden;
  margin-bottom: 24px !important;
}

.kratos-hentry:hover,
.kratos-entry-border-new:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.35) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 30px rgba(0,200,255,0.1) !important;
}

.kratos-entry-thumb-new { overflow: hidden; border-radius: 12px 12px 0 0; }

.kratos-entry-thumb-new img {
  transition: transform 0.5s ease, filter 0.5s ease;
  width: 100%; height: auto; object-fit: cover;
}

.kratos-hentry:hover .kratos-entry-thumb-new img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Article title */
.kratos-entry-title-new a {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 1.2em !important;
  transition: color 0.3s ease;
}

.kratos-entry-title-new a:hover {
  color: #00c8ff !important;
  text-shadow: 0 0 15px rgba(0,200,255,0.2);
}

/* Category label */
.kratos-entry-header-new .label {
  background: linear-gradient(135deg, #00c8ff 0%, #7c3aed 100%) !important;
  color: #fff !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none !important;
  display: inline-block;
  margin-bottom: 10px;
}

/* Article excerpt */
.kratos-entry-content-new p {
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.8;
}

/* ========== ARTICLE META - STRONG OVERRIDE ========== */
.kratos-entry-border-new .kratos-post-meta-new,
.kratos-hentry .kratos-post-meta-new {
  background: #0d1520 !important;
  border-top: 1px solid rgba(0,200,255,0.2) !important;
  padding: 14px 20px !important;
  margin-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
}

.kratos-entry-border-new .kratos-post-meta-new span,
.kratos-hentry .kratos-post-meta-new span {
  display: inline-block;
}

.kratos-entry-border-new .kratos-post-meta-new a,
.kratos-hentry .kratos-post-meta-new a,
.kratos-entry-border-new .kratos-post-meta-new span a,
.kratos-hentry .kratos-post-meta-new span a {
  color: #b0c4de !important;
  font-size: 13px !important;
  text-shadow: none !important;
}

.kratos-entry-border-new .kratos-post-meta-new a:hover,
.kratos-hentry .kratos-post-meta-new a:hover {
  color: #00c8ff !important;
}

.kratos-entry-border-new .kratos-post-meta-new .fa,
.kratos-hentry .kratos-post-meta-new .fa {
  color: #00c8ff !important;
  margin-right: 5px;
  font-size: 12px;
}

/* Read more button */
.kratos-entry-border-new .kratos-post-meta-new .read-more,
.kratos-hentry .kratos-post-meta-new .read-more {
  background: linear-gradient(135deg, rgba(0,200,255,0.2), rgba(124,58,237,0.2)) !important;
  color: #fff !important;
  padding: 7px 20px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0,200,255,0.3) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.kratos-entry-border-new .kratos-post-meta-new .read-more:hover,
.kratos-hentry .kratos-post-meta-new .read-more:hover {
  background: linear-gradient(135deg, #00c8ff 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(0,200,255,0.4);
  transform: translateX(2px);
}

/* Sidebar */
#kratos-widget-area .widget {
  background: rgba(17,24,39,0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  color: #e2e8f0 !important;
}

.widget_kratos_about .about-photo {
  border: 3px solid #00c8ff !important;
  box-shadow: 0 0 20px rgba(0,200,255,0.3);
  transition: all 0.3s ease;
}

.widget_kratos_about .about-photo:hover {
  box-shadow: 0 0 30px rgba(0,200,255,0.5);
  transform: scale(1.05);
}

.widget_kratos_about .textwidget p {
  color: #94a3b8 !important;
  font-size: 14px;
  margin-top: 10px;
}

.widget h4, .widget-title, .widget h2 {
  color: #e2e8f0 !important;
  font-size: 16px !important;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,200,255,0.15);
  margin-bottom: 15px !important;
  position: relative;
}

.widget h4::after, .widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(135deg, #00c8ff, #7c3aed);
}

.widget_categories ul { list-style: none; padding: 0; }
.widget_categories ul li { padding: 0; margin: 0; }

.widget_categories ul li a {
  color: #94a3b8 !important;
  padding: 8px 14px !important;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 13px;
  border: 1px solid transparent;
}

.widget_categories ul li a:hover {
  background: rgba(0,200,255,0.08) !important;
  color: #00c8ff !important;
  border-color: rgba(0,200,255,0.15);
  padding-left: 20px !important;
}

/* Search */
.wp-block-search__input {
  background: rgba(17,24,39,0.8) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  color: #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.wp-block-search__input:focus {
  border-color: #00c8ff !important;
  box-shadow: 0 0 15px rgba(0,200,255,0.15);
  outline: none;
}

.wp-block-search__button {
  background: linear-gradient(135deg, #00c8ff, #7c3aed) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.wp-block-search__button:hover {
  box-shadow: 0 0 20px rgba(0,200,255,0.3);
  transform: translateY(-1px);
}

/* Recent comments */
.wp-block-latest-comments { list-style: none; padding: 0; }
.wp-block-latest-comments__comment { padding: 10px 0; border-bottom: 1px solid rgba(0,200,255,0.15); }
.wp-block-latest-comments__comment:last-child { border-bottom: none; }
.wp-block-latest-comments__comment-author { color: #00c8ff !important; font-weight: 500; font-size: 13px; }
.wp-block-latest-comments__comment-link { color: #94a3b8 !important; font-size: 12px; }
.wp-block-latest-comments__comment-link:hover { color: #00c8ff !important; }

/* Audio Player */
.widget_media_audio audio { border-radius: 8px; width: 100%; filter: invert(0.88) hue-rotate(180deg); }

/* Pagination */
.pagination > li > a {
  background: rgba(17,24,39,0.92) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 8px !important;
  margin: 0 3px;
  transition: all 0.3s ease;
}

.pagination > li > a:hover, .pagination > .active > a {
  background: linear-gradient(135deg, #00c8ff, #7c3aed) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px rgba(0,200,255,0.2);
}

/* Footer */
#footer {
  background: rgba(10,14,23,0.95) !important;
  border-top: 1px solid rgba(0,200,255,0.15);
  padding: 40px 0 20px;
}

#footer p { color: #94a3b8 !important; font-size: 13px; line-height: 1.8; }
#footer a { color: #00c8ff !important; transition: all 0.3s ease; }
#footer a:hover { text-shadow: 0 0 10px rgba(0,200,255,0.3); }

/* Floating Tools */
.cd-tool { position: fixed; right: 20px; bottom: 20px; z-index: 999; }

.gotop-btn, .search-box, .waifu-btn {
  background: rgba(17,24,39,0.92) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  color: #00c8ff !important;
  width: 40px; height: 40px;
  border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gotop-btn:hover, .search-box:hover, .waifu-btn:hover {
  background: linear-gradient(135deg, #00c8ff, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0,200,255,0.3);
  transform: scale(1.1);
}

/* Mobile Menu */
#offcanvas-menu { background: rgba(10,14,23,0.98) !important; backdrop-filter: blur(20px); }
#offcanvas-menu a { color: #e2e8f0 !important; }

/* Comments */
.comments-area, .comment-respond {
  background: rgba(17,24,39,0.92) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 12px !important;
  padding: 24px !important;
}

.comment-list li {
  background: rgba(17,24,39,0.92) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 12px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  background: rgba(17,24,39,0.8) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  color: #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.comment-respond input:focus, .comment-respond textarea:focus {
  border-color: #00c8ff !important;
  box-shadow: 0 0 10px rgba(0,200,255,0.1);
  outline: none;
}

.comment-respond .submit {
  background: linear-gradient(135deg, #00c8ff, #7c3aed) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 28px !important;
  font-weight: 600;
  cursor: pointer;
}

.comment-respond .submit:hover {
  box-shadow: 0 0 25px rgba(0,200,255,0.3);
  transform: translateY(-2px);
}

/* Links */
a { color: #00c8ff; transition: all 0.3s ease; }
a:hover { color: #4dd8ff; text-shadow: 0 0 8px rgba(0,200,255,0.2); }

::selection { background: rgba(0,200,255,0.3); color: #fff; }

/* Single Page Content */
.kratos-entry-content, .entry-content { color: #e2e8f0 !important; line-height: 1.9; }

.kratos-entry-content h1, .kratos-entry-content h2, .kratos-entry-content h3,
.entry-content h1, .entry-content h2, .entry-content h3 {
  color: #e2e8f0 !important;
  border-left: 3px solid #00c8ff;
  padding-left: 12px;
  margin-top: 24px;
}

.kratos-entry-content a, .entry-content a {
  color: #00c8ff;
  border-bottom: 1px dashed rgba(0,200,255,0.3);
  padding-bottom: 1px;
}

.kratos-entry-content a:hover, .entry-content a:hover {
  border-bottom-color: #00c8ff;
  text-shadow: 0 0 8px rgba(0,200,255,0.2);
}

.kratos-entry-content code, .entry-content code {
  background: rgba(0,200,255,0.08);
  color: #00c8ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.kratos-entry-content pre, .entry-content pre {
  background: rgba(17,24,39,0.9) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
  border-radius: 8px;
  padding: 16px;
}

.kratos-entry-content blockquote, .entry-content blockquote {
  border-left: 3px solid #00c8ff !important;
  background: rgba(0,200,255,0.05) !important;
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  color: #94a3b8 !important;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.kratos-hentry { animation: fadeInUp 0.6s ease forwards; }
.kratos-hentry:nth-child(1) { animation-delay: 0.05s; }
.kratos-hentry:nth-child(2) { animation-delay: 0.1s; }
.kratos-hentry:nth-child(3) { animation-delay: 0.15s; }
.kratos-hentry:nth-child(4) { animation-delay: 0.2s; }
.kratos-hentry:nth-child(5) { animation-delay: 0.25s; }
.kratos-hentry:nth-child(6) { animation-delay: 0.3s; }
.kratos-hentry:nth-child(7) { animation-delay: 0.35s; }
.kratos-hentry:nth-child(8) { animation-delay: 0.4s; }
.kratos-hentry:nth-child(9) { animation-delay: 0.45s; }
.kratos-hentry:nth-child(10) { animation-delay: 0.5s; }

/* Image hover sweep */
.kratos-entry-thumb-new { position: relative; }
.kratos-entry-thumb-new::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.08), transparent);
  transition: left 0.6s ease;
}
.kratos-hentry:hover .kratos-entry-thumb-new::after { left: 100%; }

/* Mobile toggle */
.kratos-nav-toggle i,
.kratos-nav-toggle i::before,
.kratos-nav-toggle i::after { background-color: #e2e8f0 !important; }

/* Responsive */
@media (max-width: 768px) {
  .kratos-cover .desc.desc2 h2 { font-size: 1.8em !important; }
  .kratos-cover .desc.desc2 span { font-size: 0.9em; letter-spacing: 2px; }
  .kratos-hentry, .kratos-entry-border-new { margin-bottom: 16px !important; }
  #kratos-primary-menu > li > a { padding: 8px 12px !important; font-size: 13px; }
  .cd-tool { right: 12px; bottom: 12px; }
}

/* Live2D */
.waifu { filter: drop-shadow(0 0 10px rgba(0,200,255,0.1)); }
.waifu-tool span { color: #00c8ff !important; transition: all 0.3s ease; }
.waifu-tool span:hover { color: #fff !important; text-shadow: 0 0 10px #00c8ff; }

/* APlayer */
.aplayer { background: rgba(17,24,39,0.92) !important; border: 1px solid rgba(0,200,255,0.15) !important; border-radius: 10px !important; }
.aplayer .aplayer-info .aplayer-music .aplayer-title { color: #e2e8f0 !important; }
.aplayer .aplayer-info .aplayer-music .aplayer-author { color: #94a3b8 !important; }

.xb-snow canvas { pointer-events: none; }
