/* Tech-Druid Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --color-emerald-neon: #34d399; /* 更亮的电光绿 */
    --color-gold-loot: #fbbf24;     /* 掉落金 */
    --color-bg-dark: #0a0a0a;
}

body {
    background-color: var(--color-bg-dark);
    /* 背景纹理：微妙的方格纸效果，模拟规划/建造模式 */
    background-image: 
        linear-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: 'Inter', sans-serif;
    color: #ededed;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* 强制直角 */
* { border-radius: 0 !important; }

/* ----------------------
   特色设计：读条采集标题
   ---------------------- */
h1 {
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    color: #fff;
    /* 标题文字带有自然的渐变 */
    background: linear-gradient(135deg, #fff 0%, var(--color-emerald-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

h2 {
    font-weight: 700;
    color: #fff;
    font-size: 1.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* H2 下方的“进度条”装饰 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #262626; /* 进度条槽背景 */
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

/* 模拟 60% 进度的绿色条，体现“采集中”的感觉 */
h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* 固定长度或百分比 */
    height: 4px;
    background: var(--color-emerald-neon);
    z-index: 1;
    box-shadow: 0 0 10px var(--color-emerald-neon); /* 霓虹光晕 */
}

/* 在标题前添加方块装饰 */
h2 span::before {
    content: '■ '; 
    color: var(--color-gold-loot);
    font-size: 0.8em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ----------------------
   侧边栏与导航
   ---------------------- */
.sidebar {
    background-color: #121212 !important;
    border-right: 1px solid #262626 !important;
}

.nav-link {
    color: #a3a3a3;
    border-left: 2px solid transparent; /* 左侧指示条 */
    padding-left: 1rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--color-emerald-neon);
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.05) 0%, transparent 100%);
    padding-left: 1.5rem !important; /* 悬停时向右滑动，像进入方块 */
}

.nav-link.active {
    color: var(--color-gold-loot); /* 激活变为金色 */
    border-left: 2px solid var(--color-gold-loot);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
    font-weight: 700;
}

/* ----------------------
   卡片设计：物品栏风格
   ---------------------- */
.bg-bg-card, pre {
    background-color: #171717 !important;
    border: 1px solid #262626 !important;
    position: relative;
    transition: all 0.2s;
}

/* 卡片悬停：模拟获得经验值的金色光晕 */
.bg-bg-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold-loot) !important;
    box-shadow: 0 4px 20px -5px rgba(251, 191, 36, 0.15); /* 金色呼吸光 */
}

/* ----------------------
   代码块：控制台风格
   ---------------------- */
pre {
    background-color: #050505 !important;
    border-left: 3px solid var(--color-emerald-neon) !important; /* 绿色侧边代表正常运行 */
}

code {
    font-family: 'JetBrains Mono', monospace !important;
}

code:not(pre code) {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--color-emerald-neon);
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 2px 6px;
}

/* ----------------------
   按钮与链接
   ---------------------- */
a.bg-grass {
    background-color: var(--color-emerald-neon) !important;
    color: #000 !important; /* 黑字确保对比度 */
    font-weight: 700;
    box-shadow: 4px 4px 0 0 #000;
    border: 1px solid var(--color-emerald-neon);
    text-transform: uppercase;
}

a.bg-grass:hover {
    background-color: var(--color-gold-loot) !important; /* 悬停变金 */
    border-color: var(--color-gold-loot);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 #000;
}

/* 列表样式优化 */
ul.list-disc li::marker {
    color: var(--color-gold-loot); /* 金色圆点 */
}

/* 表格 */
td, th {
    border-bottom: 1px solid #262626;
    padding: 1rem;
}
tr:hover td {
    background-color: rgba(52, 211, 153, 0.05); /* 绿色高亮行 */
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #404040; }
::-webkit-scrollbar-thumb:hover { background: var(--color-emerald-neon); }