/* 主站导航栏适配 */
/* 注意：导航栏的固定定位由 nav-fix.css 统一控制，这里不再覆盖 */

/* 调整 Prompt 内容区域，避免被导航栏遮挡 */
#app-root {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html,
body {
    overscroll-behavior: none;
    /* Disable pull-to-refresh */
}

body {
    background-color: #F9F9F7;
    color: #1A1A1A;
    -webkit-font-smoothing: antialiased;
}

/* Prevent Lucide Icon Layout Shift */
i[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Markdown Syntax Highlighting - Strict High Contrast */
/* Syntax symbols are dimmed white */
.md-syntax {
    color: rgba(0, 0, 0, 0.4);
    font-weight: normal;
    user-select: none;
}

/* Headers are bold white */
.md-header {
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Bold text is bold white */
.md-bold {
    color: #111827;
    font-weight: 700;
}

/* Normal text inherits from parent (pure white) */

/* Subtle Grid */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Home Grid Hover Effects */
.strategy-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    border-color: rgba(26, 26, 26, 0.2);
}

/* 确保卡片分割线显示 - 修复 Tailwind preflight 禁用导致的问题 */
.strategy-card>div:last-child {
    border-top: 1px solid #f5f5f5 !important;
    /* 弱化分割线颜色 */
    padding-top: 1.5rem !important;
}

/* 修复分类按钮边框样式 - 确保边框一致 */
#category-buttons button {
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
}

/* 未激活状态的按钮 */
#category-buttons button.bg-gray-100 {
    border-color: #e5e7eb !important;
}

/* 激活状态的按钮 */
#category-buttons button.bg-black {
    border-color: #000000 !important;
}

/* 修复详情页"返回策略库"按钮边框样式 */
#detail-view button[onclick="goHome()"] {
    border: 1px solid #e5e7eb !important;
    box-sizing: border-box !important;
}

#detail-view button[onclick="goHome()"]:hover {
    border-color: #d1d5db !important;
}