/* 基础复位 */
body { display: flex; margin: 0; font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f4f7f6; color: #333; min-height: 100vh; }

/* 左侧固定侧边栏 */
.sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

/* 侧边栏折叠菜单 */
details { margin-bottom: 15px; cursor: pointer; }
summary { 
    font-weight: bold; 
    padding: 12px; 
    background: #34495e; 
    border-radius: 6px;
    list-style: none;
    transition: background 0.3s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: #1abc9c; }

.sidebar ul { padding-left: 10px; margin: 10px 0; list-style: none; }
.sidebar li { margin-bottom: 10px; }

/* 修改侧边栏链接颜色 */
.sidebar a { color: #ecf0f1; opacity: 0.8; transition: opacity 0.3s; }
.sidebar a:hover { opacity: 1; color: #1abc9c; }

/* 修改侧边栏小标题颜色 */
.sidebar h3 { 
    font-size: 0.8rem; 
    color: #95a5a6; /* 调亮一点，不要太黑 */
    text-transform: uppercase; 
    margin-top: 25px; 
}

/* 右侧主内容区 */
.main-content { flex: 1; padding: 40px; display: flex; justify-content: center; }
.article-container { width: 100%; max-width: 800px; }

/* 1. 正文中的所有链接：改用更有质感的橙色或深灰色 */
.content a {
    color: #f38020;
    text-decoration: none;
    border-bottom: 1px solid rgba(243, 128, 32, 0.3); /* 淡淡的下划线 */
    transition: 0.3s;
}
.content a:hover {
    color: #d35400; /* 悬停颜色加深 */
    border-bottom: 2px solid #d35400;
}

/* 文章卡片样式 */
.article-card { 
    background: #fff; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    line-height: 1.8;
}

h1 { color: #2c3e50; margin-top: 0; font-size: 2.2em; border-bottom: 3px solid #1abc9c; padding-bottom: 10px; }
.meta { color: #999; font-size: 0.9em; margin-bottom: 30px; }

/* 广告位占位（以后放 AdSense 代码） */
.ad-slot { 
    background: #fffdf0; 
    border: 1px dashed #f1c40f; 
    padding: 20px; 
    margin: 25px 0; 
    text-align: center; 
    color: #d35400; 
    font-weight: bold;
}

/* 评论区样式 */
.comment-section { margin-top: 50px; border-top: 2px solid #eee; padding-top: 30px; }
.comment-item { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 15px; border-left: 4px solid #ddd; }
.comment-user { font-weight: bold; color: #2c3e50; }
.comment-meta { font-size: 0.8em; color: #999; margin-left: 10px; }

/* 图片样式 */
.post-figure {
    margin: 25px 0;
    text-align: center;
}
.post-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.post-figure figcaption {
    font-size: 0.85em;
    color: #777;
    margin-top: 8px;
    font-style: italic;
}

/* 只有在首页工具箱页面下，这些样式才生效 */
.home-tool-page .container { max-width: 100%; box-shadow: none; padding: 0; }
.home-tool-page .tool-section { margin-bottom: 25px; }
.home-tool-page input { width: 100%; border: 1px solid #ddd; }
.home-tool-page button { background: #f38020; color: white; }

.about-text {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa; /* 浅灰色背景 */
    border-left: 4px solid #1abc9c; /* 配合你顶部的翡翠绿边框 */
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    border-radius: 4px;
}

/* 针对截图细节的最后微调 */
.home-brand-nav { 
    font-size: 1.1rem; 
    font-weight: bold; 
    color: #1abc9c !important; 
    padding-bottom: 20px; 
    display: block; 
    text-decoration: none;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}
.footer-center { 
    text-align: center; 
    margin-top: 40px; 
    padding: 30px 0; 
    border-top: 1px solid #eee; 
    color: #999; 
    font-size: 0.85rem; 
    width: 100%;
}
.footer-center a { color: #888; text-decoration: none; margin: 0 10px; }
.footer-center a:hover { text-decoration: underline; }

/* 移动端兼容性补丁 */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* 手机端让侧边栏排到上面，正文在下面 */
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative; /* 手机端取消固定 */
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .main-content {
        padding: 20px;
    }
    .article-card {
        padding: 20px; /* 缩小内边距，给文字腾空间 */
    }
}

