/*
Theme Name: ISABERS Blocksy Child
Theme URI: https://isabers.com
Description: ISABERS 光剑品牌子主题 — 基于 Blocksy
Author: ISABERS
Template: blocksy
Version: 1.0.0
License: GPLv2 or later
Text Domain: isabers-blocksy
*/

/* ═══════════════════════════════════════
   ISABERS 暗色光剑主题 — 完整覆盖
   通过 CSS 变量直接控制 Blocksy 颜色
   ═══════════════════════════════════════ */

/* —— 强制覆盖 Blocksy 全局变量 —— */
:root {
    --theme-palette-color-1: #e02828 !important;  /* 光剑红 */
    --theme-palette-color-2: #ff3b3b !important;  /* hover 红 */
    --theme-palette-color-3: #b0b0c0 !important;  /* 正文灰 */
    --theme-palette-color-4: #ffffff !important;  /* 标题白 */
    --theme-palette-color-5: #2a2a38 !important;  /* 边框暗 */
    --theme-palette-color-6: #141420 !important;  /* 浅暗面 */
    --theme-palette-color-7: #0a0a12 !important;  /* 页面背景 */
    --theme-palette-color-8: #11111a !important;  /* 卡片背景 */
    --theme-text-color: var(--theme-palette-color-3) !important;
    --theme-link-initial-color: var(--theme-palette-color-1) !important;
    --theme-link-hover-color: var(--theme-palette-color-2) !important;
    --theme-headings-color: var(--theme-palette-color-4) !important;
    --theme-border-color: var(--theme-palette-color-5) !important;
}

/* —— 页面背景 —— */
body {
    background-color: #080810 !important;
    color: #e8e8ec;
}

/* —— Header 暗色 —— */
.ct-header { background-color: #080810 !important; }
.site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* —— Logo 文字 —— */
.site-title a {
    color: #ffffff !important;
    font-size: 1.5rem;
}

/* —— 导航 —— */
.header-menu-1 .menu > li > a {
    color: #c0c0d0 !important;
}
.header-menu-1 .menu > li > a:hover,
.header-menu-1 .menu > li.current-menu-item > a {
    color: #e02828 !important;
}

/* —— 卡片 —— */
.entry-card, .product, article > .ct-media-container {
    background: #11111a !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.entry-card:hover, .product:hover {
    border-color: rgba(224,40,40,0.3);
    box-shadow: 0 0 20px rgba(224,40,40,0.08);
}

/* —— 博客卡片文字 —— */
.entry-card .entry-title a { color: #ffffff !important; }
.entry-card .entry-title a:hover { color: #e02828 !important; }

/* —— 博客文章排版 —— */
.entry-content { 
    font-size: 1.05rem; 
    line-height: 1.8;
    color: #d0d0dc;
}
.entry-content h2 {
    color: #ffffff;
    border-left: 3px solid #e02828;
    padding-left: 14px;
    margin-top: 2em;
}
.entry-content h3 { color: #d0d0e0; }
.entry-content strong { color: #ffffff; }
.entry-content a { color: #e02828; }

/* —— 按钮 —— */
.ct-button, button, .button, .wp-block-button__link,
.woocommerce button.button, .woocommerce a.button,
.ct-search-form .wp-element-button {
    background: #e02828 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    transition: background 0.2s, box-shadow 0.2s;
}
.ct-button:hover, button:hover, .button:hover,
.woocommerce button.button:hover,
.ct-search-form .wp-element-button:hover {
    background: #ff3b3b !important;
    box-shadow: 0 0 16px rgba(224,40,40,0.4);
}

/* —— Footer —— */
.ct-footer {
    background-color: #060610 !important;
    color: #9ca3af;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* —— 产品卡片 —— */
.woocommerce .products .product .woocommerce-loop-product__title {
    color: #ffffff !important;
}
.woocommerce .products .product .price {
    color: #e02828 !important;
    font-weight: 600;
}

/* —— 表单 —— */
input[type="search"], input[type="text"], input[type="email"],
select, textarea {
    background: #1a1a24 !important;
    color: #e8e8ec !important;
    border-color: #333340 !important;
}

/* —— 搜索弹窗 —— */
#search-modal {
    background-color: rgba(8,8,16,0.98) !important;
}
#search-modal .ct-search-form input {
    color: #ffffff !important;
}

/* —— 移动端菜单 —— */
#offcanvas .ct-panel-inner {
    background-color: #080810 !important;
}
.mobile-menu a {
    color: #e0e0ec !important;
}
.mobile-menu .current-menu-item > a {
    color: #e02828 !important;
}

/* —— 页面标题 —— */
.hero-section { background-color: #080810 !important; }
.page-title { color: #ffffff !important; }

/* —— 博客列表页 —— */
[data-prefix="blog"] .entry-header .page-title {
    color: #ffffff !important;
}

/* —— 产品分类页 —— */
.woocommerce-loop-category__title { color: #ffffff !important; }

/* —— 首页隐藏标题栏 —— */
.home .hero-section {
    display: none !important;
}
/* —— 隐藏默认版权 —— */
.ct-footer-copyright { display: none !important; }
