/*
Theme Name: Kadence Child - ZYDAO
Theme URI: https://zydao.xyz/
Description: ZYDAO 官方博客子主题：深色 + 金色，基于 Kadence。
Author: ZYDAO
Template: kadence
Version: 1.4.0
*/

/* 品牌色 */
:root {
  --zydao-gold: #F0B90B;
  --zydao-gold-light: #F8D33A;
  --zydao-bg: #0B0E11;
  --zydao-bg2: #12161C;
  --zydao-card: #151B22;
  --zydao-text: #E6E8EB;
  --zydao-dim: #9AA4B0;
  --zydao-border: #232B36;
  --global-palette1: #F0B90B;
  --global-palette2: #F8D33A;
  --global-palette3: #0B0E11;
  --global-palette4: #12161C;
  --global-palette5: #E6E8EB;
  --global-palette6: #9AA4B0;
  --global-palette7: #FFFFFF;
  --global-palette8: #F0B90B;
  --global-palette9: #1B2434;
}

/* 全站深色底 */
body, body.custom-background {
  background-color: #0B0E11 !important;
  color: #E6E8EB !important;
}
.site, .site-main, .content-area, .content-wrap, #primary, .primary-content-area {
  background-color: #0B0E11 !important;
}
article, .entry, .post, .type-post, .type-page, .content-box, .entry-content-wrap {
  background-color: #151B22 !important;
  border-color: #232B36 !important;
  color: #E6E8EB !important;
}

/* 顶栏 */
.site-header, .site-header-inner, .site-header-wrap {
  background-color: #12161C !important;
  border-bottom: 1px solid #232B36 !important;
}
.site-branding .site-title, .site-branding .site-title a,
.mobile-site-branding .site-title, .mobile-site-branding .site-title a {
  color: #F0B90B !important;
}
.site-branding .site-description {
  color: #9AA4B0 !important;
}

/* 顶部站群导航条 */
.zydao-topbar {
  background: #0B0E11;
  border-bottom: 1px solid #232B36;
  font-size: 13px;
}
.zydao-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}
.zydao-topbar a {
  color: #9AA4B0 !important;
  text-decoration: none !important;
}
.zydao-topbar a:hover {
  color: #F0B90B !important;
}
.zydao-topbar .zydao-topbar-blog {
  margin-left: auto;
  color: #F0B90B;
  font-weight: 700;
}

/* 标题与正文 */
.entry-title, .entry-title a, h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF !important;
}
.entry-content, .entry-content p, .entry-summary, .post-excerpt {
  color: #E6E8EB !important;
}
.entry-meta, .entry-meta a, .posted-on, .post-author, .cat-links, .tags-links {
  color: #9AA4B0 !important;
}

/* 链接与按钮 */
a {
  color: #F0B90B !important;
}
a:hover {
  color: #F8D33A !important;
}
.button, button, input[type="submit"], input[type="button"],
.wp-block-button__link, .wp-element-button {
  background-color: #F0B90B !important;
  border-color: #F0B90B !important;
  color: #0B0E11 !important;
}
.button:hover, button:hover, input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #F8D33A !important;
  border-color: #F8D33A !important;
  color: #0B0E11 !important;
}

/* 导航菜单 */
.main-navigation a, .primary-menu a, .menu a {
  color: #E6E8EB !important;
}
.main-navigation a:hover, .primary-menu a:hover, .menu a:hover,
.main-navigation .current-menu-item > a {
  color: #F0B90B !important;
}

/* 侧栏与小工具 */
.widget, .widget-area, .sidebar, #secondary {
  background-color: #0B0E11 !important;
  color: #E6E8EB !important;
}
.widget-title, .widgettitle {
  color: #FFFFFF !important;
  border-bottom: 2px solid #F0B90B !important;
}
.widget a {
  color: #E6E8EB !important;
}
.widget a:hover {
  color: #F0B90B !important;
}

/* 页脚 */
.site-footer, .site-footer-wrap, .footer-widget-area {
  background-color: #12161C !important;
  border-top: 1px solid #232B36 !important;
  color: #9AA4B0 !important;
}
.site-footer a {
  color: #9AA4B0 !important;
}
.site-footer a:hover {
  color: #F0B90B !important;
}

/* 表单 */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
textarea, select {
  background-color: #151B22 !important;
  border: 1px solid #232B36 !important;
  color: #E6E8EB !important;
}

/* 分隔线与引用 */
hr, .wp-block-separator {
  border-color: #232B36 !important;
  background-color: #232B36 !important;
}
blockquote, .wp-block-quote {
  border-left: 3px solid #F0B90B !important;
  color: #E6E8EB !important;
}
code, pre {
  background-color: #12161C !important;
  color: #F8D33A !important;
  border-color: #232B36 !important;
}
table, th, td {
  border-color: #232B36 !important;
  color: #E6E8EB !important;
}

/* 首页轮播：左视频右文章 */
.zydao-hero {
  display: flex;
  gap: 24px;
  background-color: #151B22 !important;
  border: 1px solid #232B36;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 28px;
}
.zydao-hero-video { flex: 1 1 55%; min-width: 0; }
.zydao-hero-video video { width: 100%; border-radius: 8px; background: #000; display: block; }
.zydao-hero-videotitle { color: #9AA4B0; font-size: 13px; margin-top: 8px; }
.zydao-hero-posts { flex: 1 1 45%; min-width: 0; display: flex; flex-direction: column; }
.zydao-hero-label { color: #F0B90B; font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.zydao-hero-slide { display: none; }
.zydao-hero-slide.active { display: block; }
.zydao-hero-cat { display: inline-block; color: #F0B90B; font-size: 12px; border: 1px solid #F0B90B; border-radius: 4px; padding: 2px 8px; margin-bottom: 10px; }
.zydao-hero-slide h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.4; }
.zydao-hero-slide h3 a { color: #FFFFFF !important; text-decoration: none !important; }
.zydao-hero-slide p { color: #E6E8EB; font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.zydao-hero-more { color: #F0B90B !important; font-size: 14px; }
.zydao-hero-dots { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }
.zydao-hero-dots button { width: 10px !important; height: 10px !important; border-radius: 50% !important; border: none !important; background: #3A4552 !important; cursor: pointer; padding: 0 !important; }
.zydao-hero-dots button.active { background: #F0B90B !important; }
@media (max-width: 768px) {
  .zydao-hero { flex-direction: column; }
}

/* 分类导航条：5 个版块 */
.zydao-catnav {
  background-color: #12161C !important;
  border-bottom: 1px solid #232B36;
}
.zydao-catnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  align-items: center;
}
.zydao-catnav a {
  color: #E6E8EB !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
}
.zydao-catnav a:hover { color: #F0B90B !important; }
.zydao-catnav a.active { color: #F0B90B !important; border-bottom: 2px solid #F0B90B; }

/* 分类页归档标题区：浅底白字看不清，改深底金字 */
.archive-hero-section,
.entry-header.post-archive-title {
  background-color: #12161C !important;
}
.page-title.archive-title,
.archive-hero-section .archive-title {
  color: #F0B90B !important;
}
.archive-hero-section .archive-description,
.archive-description {
  color: #E6E8EB !important;
}
