/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0.0
*/

/* ============================================
   强力测试代码 - 如果这些生效，说明CSS能加载！
   ============================================ */

/* 测试1：整个页面背景变亮粉色 - 最明显测试 */
html, body, body * {
    background-color: #ffccff !important;
    background-image: none !important;
    min-height: 100vh !important;
}

/* 测试2：所有文字变红色、变大、加粗 */
body, div, p, span, h1, h2, h3, h4, h5, h6, 
li, td, th, a, strong, em, i, b, label, caption,
input, textarea, select, option, button {
    color: #ff0000 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

/* 测试3：所有链接和按钮特殊样式 */
a, .button, button, input[type="button"], 
input[type="submit"], [class*="btn"], [class*="button"],
[role="button"], [onclick] {
    background-color: yellow !important;
    border: 10px solid blue !important;
    padding: 25px 40px !important;
    display: inline-block !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 20px rgba(0,0,255,0.5) !important;
    text-transform: uppercase !important;
    margin: 15px !important;
}

/* 测试4：所有图片加绿色发光边框 */
img, [src], [data-src], [data-lazy-src],
picture, source, svg, canvas {
    border: 15px solid #00ff00 !important;
    border-radius: 20px !important;
    box-shadow: 0 0 30px #00ff00 !important;
    transform: scale(1.1) !important;
    filter: hue-rotate(180deg) !important;
}

/* 测试5：所有输入框特殊样式 */
input, textarea, select {
    background-color: #ffff00 !important;
    border: 8px solid #ff00ff !important;
    padding: 20px !important;
    font-size: 24px !important;
    color: #0000ff !important;
    border-radius: 10px !important;
}

/* 测试6：所有容器加橙色虚线边框 */
div, section, article, header, footer, 
main, aside, nav, figure, form, fieldset {
    border: 5px dashed #ff9900 !important;
    margin: 10px !important;
    padding: 20px !important;
    position: relative !important;
}

/* 测试7：添加测试水印 */
body::before {
    content: "✅ CSS加载成功！正在工作 ✅" !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: #00ff00 !important;
    font-size: 60px !important;
    font-weight: bold !important;
    padding: 40px 60px !important;
    border-radius: 20px !important;
    z-index: 999999 !important;
    text-align: center !important;
    box-shadow: 0 0 50px #00ff00 !important;
    animation: pulse 2s infinite !important;
    border: 10px solid #00ff00 !important;
}

/* 测试8：添加闪烁动画 */
@keyframes pulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 测试9：鼠标悬停效果 */
*:hover {
    background-color: rgba(255, 255, 0, 0.3) !important;
    transform: rotate(1deg) !important;
    transition: all 0.3s ease !important;
}

/* 测试10：第一个子元素特殊标记 */
body > *:first-child::after {
    content: "🎯 CSS注入点" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: red !important;
    color: white !important;
    padding: 10px !important;
    font-size: 16px !important;
    z-index: 999998 !important;
}

/* 测试11：每段文字前加图标 */
p::before, h1::before, h2::before, h3::before, 
div::before, span::before, li::before {
    content: "🔹 " !important;
    color: #ff00ff !important;
    font-size: 32px !important;
    margin-right: 10px !important;
}

/* 测试12：表格特殊样式 */
table, tr, td, th {
    background: repeating-linear-gradient(
        45deg,
        #ffcccc,
        #ffcccc 10px,
        #ccccff 10px,
        #ccccff 20px
    ) !important;
    border: 5px solid purple !important;
}

/* 测试13：列表项特殊标记 */
li {
    background-color: #ccffcc !important;
    margin: 10px 0 !important;
    padding: 15px !important;
    border-left: 10px solid orange !important;
}

/* 测试14：页面滚动条样式 */
::-webkit-scrollbar {
    width: 30px !important;
    background: linear-gradient(45deg, red, yellow, green, blue) !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff00ff, #00ffff) !important;
    border-radius: 15px !important;
    border: 5px solid white !important;
}

/* 测试15：文本选择样式 */
::selection {
    background: #ff00ff !important;
    color: white !important;
    text-shadow: 2px 2px 4px black !important;
}

/* 测试16：焦点元素样式 */
:focus {
    outline: 20px solid #ffff00 !important;
    box-shadow: 0 0 40px #ffff00 !important;
    background: black !important;
    color: yellow !important;
}

/* ============================================
   页面恢复正常后，删除上面的所有测试代码，
   只保留下面的修复样式
   ============================================ */

/* 基础修复样式（测试成功后保留这些） */

/* 1. 修复标题样式 */
.entry-title, 
.page-title,
h1, h2, h3 {
    color: #333333;
    font-weight: bold;
    margin: 20px 0;
}

/* 2. 修复按钮样式 */
.wp-block-button__link,
.button,
button,
a.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 3. 修复主要内容区域 */
.entry-content,
.page-content {
    line-height: 1.8;
    font-size: 18px;
    color: #555;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* 4. 修复导航菜单 */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
    margin-right: 20px;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
}

.main-navigation a:hover {
    color: #667eea;
}

/* 5. 修复页脚 */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 30px;
    margin-top: 100px;
}

/* 6. 修复响应式 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 32px;
    }
}

/* ============================================
   调试信息（仅管理员可见）
   ============================================ */
.logged-in.admin-bar body::after {
    content: "🎯 子主题CSS已加载" !important;
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    background: green !important;
    color: white !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    z-index: 999999 !important;
}