/* FKCMS 前台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; background: #f7f8fa; }
a { color: #1e6ebb; text-decoration: none; }
a:hover { color: #e33; }
.container { width: 1080px; max-width: 96%; margin: 0 auto; }

/* 头部 */
.site-header { background: #fff; border-bottom: 2px solid #1e6ebb; }
.header-inner { display: flex; align-items: center; height: 64px; }
.site-logo { font-size: 24px; font-weight: 700; color: #1e6ebb; margin-right: 40px; }
.site-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a { padding: 6px 14px; border-radius: 3px; color: #333; font-size: 15px; }
.site-nav a:hover, .site-nav a.active { background: #1e6ebb; color: #fff; }
.nav-toggle { display: none; }

.site-main { padding: 20px 0 40px; min-height: 60vh; }

/* 面包屑 */
.breadcrumb { color: #888; font-size: 13px; margin-bottom: 14px; }
.breadcrumb a { color: #888; }

/* 布局：主列 + 侧栏 */
.layout { display: flex; gap: 16px; }
.layout-main { flex: 1; min-width: 0; }
.layout-side { width: 280px; flex-shrink: 0; }

/* 卡片 */
.card { background: #fff; border-radius: 4px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card-title { font-size: 17px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid #eee; }

/* 文章列表 */
.article-list { list-style: none; }
.article-list li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; }
.article-list li:last-child { border-bottom: none; }
.article-list .title { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-list .badge-top { background: #e33; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 2px; margin-right: 8px; }
.article-list .date { color: #999; font-size: 13px; margin-left: 16px; }
.empty-tip { text-align: center; color: #999; padding: 40px 0; }

/* 分页 */
.pager { text-align: center; margin-top: 20px; }
.pager a, .pager span { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; background: #fff; color: #333; font-size: 14px; }
.pager span.current { background: #1e6ebb; border-color: #1e6ebb; color: #fff; }
.pager span.dots { border: none; background: none; }

/* 详情页 */
.detail-title { font-size: 26px; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { color: #999; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.detail-meta span { margin-right: 18px; }
.detail-content { font-size: 16px; line-height: 1.9; }
.detail-content img { max-width: 100%; height: auto; border-radius: 3px; }
.detail-content p { margin-bottom: 14px; }
.detail-content pre, .detail-content code { background: #f4f4f4; padding: 2px 6px; border-radius: 3px; }
.detail-nav { margin-top: 30px; padding-top: 16px; border-top: 1px solid #eee; font-size: 14px; line-height: 2; }

/* 侧栏 */
.side-box h3 { font-size: 16px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #eee; }
.side-list { list-style: none; }
.side-list li { padding: 7px 0; border-bottom: 1px dashed #f0f0f0; }
.side-list li:last-child { border-bottom: none; }
.side-list .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .d { color: #aaa; font-size: 12px; }

/* 页脚 */
.site-footer { background: #23262e; color: #9aa0a8; padding: 28px 0; text-align: center; font-size: 14px; line-height: 2; }

/* 模型扩展字段 */
.detail-extras { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.detail-extras h3 { font-size: 16px; margin-bottom: 12px; }
.extra-row { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; font-size: 15px; }
.extra-title { color: #888; margin-right: 10px; }

/* 会员区 */
.member-area { display: flex; gap: 10px; align-items: center; margin-left: 20px; }
.member-link { font-size: 14px; color: #555; white-space: nowrap; }
.member-link:hover { color: #1e6ebb; }
.member-link-strong { color: #1e6ebb; font-weight: 600; }

.member-box { width: 420px; max-width: 94%; margin: 40px auto; background: #fff; border-radius: 4px; padding: 28px 32px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.member-box h2 { font-size: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.member-box h3 { font-size: 16px; margin: 24px 0 12px; }
.member-box .form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.member-box .form-row label { width: 60px; font-size: 14px; color: #666; flex-shrink: 0; }
.member-box .form-row input[type=text], .member-box .form-row input[type=password], .member-box .form-row input[type=email] { flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; }
.member-btn { padding: 9px 26px; background: #1e6ebb; color: #fff; border: none; border-radius: 3px; font-size: 15px; cursor: pointer; }
.member-btn:hover { background: #175a9c; }
.member-btn-plain { background: #fff; color: #666; border: 1px solid #ddd; text-decoration: none; }
.member-tip { font-size: 13px; color: #888; margin-top: 10px; }
.member-info { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.member-info th, .member-info td { text-align: left; padding: 8px 6px; border-bottom: 1px dashed #eee; font-size: 14px; font-weight: normal; }
.member-info th { width: 90px; color: #888; }

/* 幻灯片 */
.fk-slide { position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 8px; }
.fk-slide-item img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .code { font-size: 90px; font-weight: 700; color: #1e6ebb; }
.notfound .msg { color: #888; margin: 16px 0 24px; }

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .layout-side { width: 100%; }
    .nav-toggle { display: block; background: none; border: none; font-size: 22px; cursor: pointer; }
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; z-index: 10; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
    .site-nav.open { display: flex; flex-direction: column; }
    .header-inner { position: relative; }
}

/* ===== header 站内搜索（阶段十二） ===== */
.header-search{display:flex;align-items:center;gap:4px;margin-left:10px;}
.header-search input{width:130px;padding:4px 8px;border:1px solid #ddd;border-radius:14px;font-size:12px;outline:none;}
.header-search input:focus{border-color:#1e9fff;}
.header-search button{border:0;background:none;cursor:pointer;font-size:13px;padding:2px 4px;}
@media (max-width:768px){.header-search{display:none;}}

/* ===== 评论（阶段十三） ===== */
.comment-box h3{display:flex;justify-content:space-between;align-items:center;}
.comment-item{border-bottom:1px solid #f0f0f0;padding:10px 0;}
.comment-meta{font-size:12px;color:#999;margin-bottom:4px;}
.comment-meta .c-user{color:#1e9fff;margin-right:8px;}
.c-badge{display:inline-block;font-size:11px;color:#1e9fff;background:#eaf4ff;border-radius:3px;padding:1px 5px;margin-right:8px;vertical-align:1px;}
.c-content{font-size:14px;color:#333;line-height:1.7;white-space:pre-wrap;word-break:break-word;margin:0;}
.comment-pager{margin-top:10px;font-size:13px;}
.comment-pager a{margin-right:10px;color:#1e9fff;}
.c-agree{border:0;background:none;color:#999;cursor:pointer;font-size:12px;float:right;padding:2px 4px;}
.c-agree:hover{color:#1e9fff;}
.comment-reply{margin-top:6px;padding:8px 10px;background:#f5f9ff;border-radius:4px;}
.comment-reply .reply-tag{font-size:12px;color:#1e9fff;margin-bottom:4px;display:inline-block;}
.comment-reply .c-time{font-size:11px;color:#bbb;}
.digg-btn{border:1px solid #1e9fff;background:#fff;color:#1e9fff;border-radius:14px;padding:3px 12px;font-size:13px;cursor:pointer;}
.digg-btn:hover{background:#1e9fff;color:#fff;}

/* ===== 内容分页（阶段十七） ===== */
.content-pager{margin-top:14px;padding-top:10px;border-top:1px dashed #e5e5e5;font-size:13px;}
.content-pager a,.content-pager span{margin-right:8px;}
.content-pager a{color:#1e9fff;}
.content-pager .cur{color:#333;font-weight:bold;}
.content-pager .pages-total{color:#999;font-size:12px;float:right;}

/* ===== 友情链接（阶段十七） ===== */
.fk-friendlink{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.fk-friendlink a{color:#666;font-size:13px;text-decoration:none;}
.fk-friendlink a:hover{color:#1e9fff;}
.fk-friendlink img{vertical-align:middle;border:0;}
