/* ===== 行者孙Python PC 网页版样式 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f7f9fb;
    color: #333;
}

/* 导航 Logo 图标 */
.brand-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

/* 导航链接 hover 效果 */
.navbar .nav-link {
    font-weight: 500;
    border-radius: 20px;
    padding: .35rem 1rem;
    margin: 0 .1rem;
}
.navbar .nav-link:hover { background: rgba(255,255,255,.18); }
.navbar .nav-link.active { background: rgba(255,255,255,.25); }

/* 区块标题 */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c2b3a;
}

/* 统计卡片 */
.stat-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
}

/* 轮播图 */
.banner-img {
    max-height: 360px;
    object-fit: cover;
    background: #e9ecef;
}

/* 卡片 hover 上浮 */
.resource-card,
.course-card {
    transition: transform .18s ease, box-shadow .18s ease;
}
.resource-card:hover,
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
}

/* 资源/课程图标方块 */
.resource-icon,
.course-icon {
    color: #555;
}

/* 首页能力卡片 */
.feature-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
}
.feature-icon { font-size: 2.2rem; }

/* 富文本正文排版 */
.article-content {
    line-height: 1.9;
    font-size: 1.05rem;
    word-break: break-word;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-content pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}
.article-content blockquote {
    border-left: 4px solid #008ADF;
    background: #f0f8fe;
    padding: .6rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}
.article-content a { color: #008ADF; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.article-content td,
.article-content th {
    border: 1px solid #dee2e6;
    padding: .5rem .75rem;
}

/* 关于我 */
.about-content { line-height: 1.9; }
.about-content img { max-width: 100%; border-radius: 8px; }
