/* 量产先锋 前端门户样式 - 零几年朴素风（白底 / 系统默认字体 / 细灰线 / 朴素蓝链接） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Tahoma, Verdana, 'Microsoft YaHei', '宋体', sans-serif;
    background: #fff;
    color: #333;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* 修复：body 改为 flex 后，直接子元素需显式撑满宽度，否则会被 max-width+margin:auto 压成窄条 */
body > header, body > main, body > footer { width: 100%; }
a { text-decoration: none; color: #2b6fb3; }
a:hover { text-decoration: underline; }
.mp-container { max-width: 1180px; margin: 0 auto; padding: 0 10px; }

/* 顶部导航 */
.mp-header { background: #e8eef5; border-bottom: 1px solid #c5d2e0; color: #333; }
.mp-header-inner { display: flex; align-items: center; height: 40px; gap: 14px; }
.mp-logo { display: flex; align-items: center; gap: 6px; color: #2b6fb3; font-weight: bold; font-size: 15px; }
.mp-logo-img { height: 52px; width: auto; display: block; }
.mp-logo-mark { background: #2b6fb3; color: #fff; padding: 1px 5px; font-size: 12px; }
.mp-nav { display: flex; gap: 0; flex: 1; }
.mp-nav-item { color: #333; padding: 0 12px; line-height: 40px; border-right: 1px solid #c5d2e0; font-size: 12px; }
.mp-nav-item:first-child { border-left: 1px solid #c5d2e0; }
.mp-nav-item:hover { background: #d8e3f0; text-decoration: none; }
.mp-nav-item.active { background: #2b6fb3; color: #fff; }
.mp-nav-item.active:hover { background: #2b6fb3; }
.mp-user-box { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mp-points { background: #f3f3f3; color: #c00; padding: 1px 6px; border: 1px solid #ccc; font-weight: bold; }
.mp-user-link { color: #2b6fb3; }
.mp-btn { padding: 3px 10px; font-size: 12px; }
.mp-btn-primary { background: #2b6fb3; color: #fff; }
.mp-btn-points { padding: 2px 10px; background: #e88b00; border-color: #d57e00; font-weight: bold; }
.mp-btn-points:hover { background: #d57e00; color: #fff; }
.mp-btn-primary:hover { background: #1f5a96; text-decoration: none; }
.mp-btn-ghost { color: #333; border: 1px solid #c5d2e0; }
.mp-btn-ghost:hover { background: #d8e3f0; text-decoration: none; }

/* 主体 */
.mp-main { padding-top: 12px; padding-bottom: 30px; min-height: 60vh; flex: 1 0 auto; }

/* 搜索区 */
.mp-hero { background: #f5f8fb; border: 1px solid #dbe3ec; padding: 14px 16px; margin-bottom: 14px; }
.mp-hero h1 { font-size: 15px; margin-bottom: 6px; color: #2b3a4a; }
.mp-hero p { color: #666; margin-bottom: 10px; }
.mp-search { display: flex; width: 100%; }
.mp-search input { flex: 1; padding: 5px 8px; border: 1px solid #aab4c0; border-right: none; font-size: 12px; font-family: inherit; }
.mp-search button { padding: 5px 18px; border: 1px solid #2b6fb3; background: #2b6fb3; color: #fff; cursor: pointer; font-size: 12px; font-family: inherit; }
.mp-search button:hover { background: #1f5a96; }

/* 区块标题 */
.mp-section-title { font-size: 14px; font-weight: bold; margin: 16px 0 10px; padding: 5px 8px; color: #fff; background: #5b7da6; }
.mp-section-sub { font-size: 12px; color: #999; font-weight: normal; }
.mp-recharge-link { display: inline-block; margin-top: 4px; font-size: 13px; color: #2b6fb3; font-weight: bold; }
.mp-recharge-link:hover { text-decoration: underline; }

/* 板块引导区（工具帖子 / 文件共享 分离） */
.mp-board { margin-bottom: 22px; border: 1px solid #dbe3ec; background: #fff; }
.mp-board-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #eef2f7; border-bottom: 1px solid #dbe3ec; }
.mp-board-head .mp-board-title { font-size: 14px; font-weight: bold; color: #2b3a4a; }
.mp-board-head .mp-board-more { font-size: 12px; color: #2b6fb3; }
.mp-board-body { padding: 12px; }
.mp-board-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-side-tip { background: #f9fafc; border: 1px dashed #c5d2e0; padding: 12px; font-size: 12px; color: #666; line-height: 1.8; }
.mp-side-tip h4 { font-size: 13px; color: #2b3a4a; margin-bottom: 6px; }
@media (max-width: 768px) { .mp-board-split { grid-template-columns: 1fr; } }

/* 分类标签 */
.mp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mp-cat { padding: 3px 12px; background: #f3f3f3; border: 1px solid #ccc; color: #333; font-size: 12px; }
.mp-cat:hover, .mp-cat.active { background: #2b6fb3; color: #fff; border-color: #2b6fb3; text-decoration: none; }

/* 帖子列表 */
.mp-post-list { display: flex; flex-direction: column; }
.mp-post-card { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 10px 4px; display: flex; gap: 12px; }
.mp-post-card:hover { background: #f7f9fc; }
.mp-post-thumb { width: 70px; height: 70px; border: 1px solid #ddd; background: #f3f3f3; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #666; font-size: 12px; }
.mp-post-body { flex: 1; min-width: 0; }
.mp-post-title { font-size: 14px; font-weight: bold; color: #2b3a4a; margin-bottom: 4px; }
.mp-post-title:hover { color: #2b6fb3; }
.mp-post-meta { color: #999; font-size: 12px; margin-bottom: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.mp-post-excerpt { color: #666; font-size: 12px; line-height: 1.7; }
.mp-post-tags { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.mp-tag { background: #eef2f7; color: #555; border: 1px solid #dbe3ec; padding: 0 6px; font-size: 12px; }

/* 文件网格 */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); gap: 14px; }
.mp-file-card { background: #fff; border: 1px solid #e0e0e0; padding: 12px; }
.mp-file-card:hover { background: #f7f9fc; }
.mp-file-name { font-weight: bold; color: #2b3a4a; margin-bottom: 4px; font-size: 13px; }
.mp-file-size { color: #999; font-size: 12px; margin-bottom: 8px; }
.mp-points-badge { display: inline-block; background: #fff; color: #c00; border: 1px solid #c00; padding: 0 6px; font-size: 12px; }
.mp-points-badge.free { color: #090; border-color: #090; }

/* 通用按钮 */
.mp-action { display: inline-block; padding: 4px 12px; background: #5b7da6; color: #fff; font-size: 12px; border: 1px solid #4a6a90; cursor: pointer; }
.mp-action:hover { background: #4a6a90; text-decoration: none; }
.mp-action.orange { background: #c00; border-color: #a00; }
.mp-action.orange:hover { background: #a00; }
.mp-action.disabled { background: #ccc; border-color: #bbb; color: #fff; cursor: not-allowed; }

/* 空状态 */
.mp-empty { text-align: center; color: #999; padding: 40px 0; border: 1px solid #e5e5e5; background: #fafafa; }

/* 分页 */
.mp-pager { display: flex; gap: 4px; justify-content: center; margin: 18px 0; }
.mp-pager a, .mp-pager span { padding: 3px 9px; background: #fff; border: 1px solid #ccc; color: #333; font-size: 12px; }
.mp-pager a:hover { background: #f0f0f0; text-decoration: none; }
.mp-pager .active { background: #2b6fb3; color: #fff; border-color: #2b6fb3; }

/* 详情页 */
.mp-detail-title { font-size: 16px; font-weight: bold; color: #2b3a4a; margin-bottom: 8px; border-bottom: 1px solid #ccc; padding-bottom: 6px; }
.mp-detail-meta { color: #999; font-size: 12px; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; border-bottom: 1px dashed #ddd; padding-bottom: 10px; }
.mp-detail-content { line-height: 1.9; color: #333; font-size: 13px; }
.mp-detail-content img { max-width: 100%; border: 1px solid #ddd; }
.mp-side { background: #fff; border: 1px solid #e0e0e0; padding: 12px; }
.mp-side h3 { font-size: 13px; color: #2b3a4a; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.mp-copy-btn { margin-left: 8px; padding: 3px 12px; font-size: 13px; line-height: 1.5; color: #fff; background: #2b6fb3; border: none; border-radius: 5px; cursor: pointer; vertical-align: middle; }
.mp-copy-btn:hover { background: #245d96; }
.mp-auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 30px 15px; }
.mp-auth-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid #e1e8f0; border-radius: 12px; box-shadow: 0 4px 18px rgba(30,60,100,.08); padding: 28px 26px; }
.mp-auth-title { font-size: 20px; color: #1f3a5d; margin-bottom: 6px; text-align: center; }
.mp-auth-sub { font-size: 13px; color: #8a97a5; margin-top: 0; margin-bottom: 28px; text-align: center; line-height: 1.5; }
.mp-auth-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; padding: 9px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.mp-auth-form label { display: block; font-size: 13px; color: #44566a; margin-bottom: 14px; }
.mp-auth-form input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #cdd7e2; border-radius: 7px; font-size: 15px; box-sizing: border-box; }
.mp-auth-form input:focus { outline: none; border-color: #2b6fb3; box-shadow: 0 0 0 2px rgba(43,111,179,.15); }
.mp-auth-submit { width: 100%; margin-top: 4px; padding: 11px; font-size: 15px; }
.mp-auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: #6b7c8d; }
.mp-auth-foot a { color: #2b6fb3; text-decoration: none; }
/* 详情页多个下载链接 */
.mp-dl-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #e3e8ee; }
.mp-dl-item:last-child { border-bottom: none; }
.mp-dl-no { font-size: 13px; color: #8a97a5; font-weight: 600; min-width: 46px; }
.mp-dl-code { font-size: 14px; color: #3a4a5a; display: inline-flex; align-items: center; gap: 6px; }
/* 验证码行：输入框 + 发送按钮并排 */
.mp-code-row { display: flex; gap: 8px; align-items: stretch; }
.mp-code-row input { flex: 1; }
.mp-code-row .mp-btn { white-space: nowrap; padding: 3px 12px; }
.mp-tip { display: block; font-size: 12px; color: #27ae60; margin-top: 4px; margin-bottom: 6px; }
.mp-auth-error { margin-bottom: 12px; font-size: 13px; }
/* 找回密码专属 */
.mp-auth-step { font-size: 13px; color: #2b6fb3; font-weight: 600; margin-bottom: 14px; }
.mp-sec-box label { display: block; margin-bottom: 12px; font-size: 13px; color: #3a4a5a; }
.mp-sec-box .sec-ans { margin-top: 6px; }
.mp-or-line { text-align: center; color: #9aa7b3; font-size: 12px; margin: 14px 0; position: relative; }
.mp-or-line::before, .mp-or-line::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e3e8ee; }
.mp-or-line::before { left: 0; } .mp-or-line::after { right: 0; }
.mp-or-line span { background: #fff; padding: 0 10px; position: relative; z-index: 1; }
.mp-btn-link { background: none; border: none; color: #6b7c8d; font-size: 12px; margin-top: 10px; cursor: pointer; text-decoration: underline; }
.mp-auth-sep { color: #cbd5df; margin: 0 8px; }

/* 表格 */
.mp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ccc; }
.mp-table th, .mp-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e5e5e5; font-size: 12px; }
.mp-table th { background: #eef2f7; color: #333; font-weight: bold; }
.mp-table tr:hover td { background: #f7f9fc; }

/* 表单 */
.mp-form { background: #fff; border: 1px solid #ccc; padding: 16px; max-width: 640px; }
.mp-form label { display: block; font-weight: bold; color: #333; margin: 10px 0 4px; font-size: 12px; }
.mp-form input[type=text], .mp-form input[type=number], .mp-form textarea, .mp-form select {
    width: 100%; padding: 5px 8px; border: 1px solid #aab4c0; font-size: 12px; font-family: inherit; color: #333;
}
.mp-form textarea { min-height: 100px; resize: vertical; }

/* 页脚 */
.mp-footer { background: #f3f3f3; color: #999; text-align: center; padding: 14px 0; margin-top: 24px; font-size: 12px; line-height: 1.9; border-top: 1px solid #ddd; }
.mp-footer-sub { color: #aaa; font-size: 12px; margin-top: 4px; }
.mp-footer-link { color: #2b6fb3; text-decoration: none; }
.mp-footer-link:hover { color: #1f4e79; text-decoration: underline; }

/* 响应式 */
@media (max-width: 768px) {
    .mp-header-inner { height: auto; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
    .mp-nav { display: flex; order: 3; width: 100%; flex: none; overflow-x: auto; }
    .mp-nav-item { line-height: 34px; padding: 0 10px; border-right: 1px solid #c5d2e0; }
    .mp-user-box { margin-left: auto; }
    .mp-search { flex-wrap: wrap; }
    .mp-search select { flex: 1 1 40%; min-width: 120px; }
    .mp-search input { flex: 1 1 100%; border-right: 1px solid #aab4c0; }
    .mp-search button { flex: 1 1 100%; }
    .mp-post-card { flex-direction: column; }
    .mp-post-thumb { width: 100%; height: 90px; }
    .mp-grid { grid-template-columns: 1fr; }
    .mp-detail-meta { gap: 8px; }
    .mp-folder-grid { grid-template-columns: 1fr; }
    .mp-table { display: block; overflow-x: auto; white-space: nowrap; }
    .mp-table th, .mp-table td { white-space: nowrap; }
}

/* 网盘式目录：面包屑 */
.mp-breadcrumb { font-size: 13px; color: #666; padding: 4px 0 12px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.mp-breadcrumb a { color: #2b6fb3; text-decoration: none; }
.mp-breadcrumb a:hover { text-decoration: underline; }
.mp-breadcrumb .sep { margin: 0 6px; color: #bbb; }
.mp-breadcrumb .cur { color: #333; font-weight: 600; }

/* 网盘式目录：文件夹卡片 */
.mp-folder-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mp-folder-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 6px; text-decoration: none; color: #333; transition: all .15s; }
.mp-folder-card:hover { background: #eef4fb; border-color: #2b6fb3; transform: translateY(-2px); }
.mp-folder-icon { font-size: 22px; line-height: 1; }
.mp-folder-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
