/* ============ 传奇发布站 前台样式 ============ */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.7 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f4f6f9; color: #333; }
a { color: #333; text-decoration: none; }
a:hover { color: #c0392b; }
h1, h2, h3 { margin: 0 0 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 14px; }
.logo { font-size: 24px; font-weight: 800; color: #c0392b; white-space: nowrap; }
.logo:hover { color: #a7301f; }
.search-box { flex: 1; display: flex; max-width: 520px; }
.search-box input { flex: 1; padding: 9px 13px; border: 2px solid #c0392b; border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; }
.search-box input:focus { outline: none; }
.search-box button { padding: 0 22px; background: #c0392b; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 15px; }
.header-tel { color: #888; font-size: 13px; white-space: nowrap; }

/* 头部用户区 */
.header-user { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.user-link { color: #666; font-size: 14px; }
.user-link:hover { color: #c0392b; }
.btn-register, .btn-publish { padding: 6px 14px; border-radius: 4px; font-size: 14px; }
.btn-register { border: 1px solid #c0392b; color: #c0392b; }
.btn-register:hover { background: #fff5f5; }
.btn-publish { background: linear-gradient(135deg,#c0392b,#e74c3c); color: #fff; font-weight: 500; }
.btn-publish:hover { background: linear-gradient(135deg,#a7301f,#c0392b); color: #fff; }
.user-name { color: #333; font-size: 14px; }
.user-name span { font-size: 12px; margin-left: 2px; }
.logout-link { color: #999; font-size: 12px; }
.logout-link:hover { color: #c0392b; }

.main-nav { background: #c0392b; }
.main-nav .wrap { display: flex; align-items: center; }
.main-nav a { color: #fff; padding: 12px 20px; display: block; font-size: 15px; }
.main-nav a:hover { background: #a7301f; color: #fff; }
.nav-item { position: relative; }
.nav-item > a { font-weight: 600; }
.nav-home { background: #a7301f; }
.nav-drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 50; min-width: 400px; padding: 8px; }
.nav-item:hover .nav-drop { display: flex; flex-wrap: wrap; }
.nav-drop a { color: #333; padding: 6px 12px; font-size: 13px; }
.nav-drop a:hover { background: #f4f6f9; color: #c0392b; }

.notice-bar { background: #fff8e6; color: #8a6d1e; font-size: 13px; padding: 9px 0; border-bottom: 1px solid #f5e6bf; }

.site-main { padding-top: 18px; padding-bottom: 30px; }

/* 面板 */
.panel { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 18px; overflow: hidden; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #eef0f3; }
.panel-hd h1, .panel-hd h2 { margin: 0; font-size: 17px; position: relative; padding-left: 12px; }
.panel-hd h1::before, .panel-hd h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: #c0392b; border-radius: 2px; }
.panel-hd .more { font-size: 13px; color: #999; }
.panel-hd .more:hover { color: #c0392b; }
.panel-bd { padding: 16px 18px; }

/* 开服表格 */
.server-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.server-table th, .server-table td { padding: 10px 8px; border-bottom: 1px solid #eef0f3; text-align: left; }
.server-table th { background: #fafbfc; color: #666; font-weight: 600; white-space: nowrap; }
.server-table tr:hover td { background: #fcfcfd; }
.col-name { width: 30%; }
.td-name a { font-weight: 600; color: #1a3c6e; }
.td-name a:hover { color: #c0392b; }
.feat { display: block; color: #999; font-size: 12px; font-style: normal; margin-top: 2px; }
.tag-top { display: inline-block; background: #c0392b; color: #fff; font-size: 11px; padding: 0 4px; border-radius: 2px; margin-left: 5px; font-style: normal; }
.td-time { color: #c0392b; font-weight: 600; white-space: nowrap; }
.st { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.st1 { background: #fff3e0; color: #e07b00; }
.st2 { background: #eafaf0; color: #14722c; }
.st3 { background: #eef1f5; color: #666; }
.btn-mini { display: inline-block; padding: 3px 10px; border: 1px solid #c0392b; color: #c0392b; border-radius: 3px; font-size: 12px; }
.btn-mini:hover { background: #c0392b; color: #fff; }

/* 卡片式开服 */
.server-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.server-cards li a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fafbfc; border: 1px solid #eef0f3; border-radius: 5px; font-size: 13px; }
.server-cards li a:hover { border-color: #c0392b; background: #fff; }
.sc-name { font-weight: 600; color: #1a3c6e; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ver, .sc-line { color: #888; font-size: 12px; }
.sc-time { color: #c0392b; font-weight: 600; }

/* 置顶/高亮样式 */
.server-table tr.row-top { background: #fffbf5; }
.server-table tr.row-top td { border-top: 1px solid #ffe7ba; border-bottom: 1px solid #ffe7ba; }
.tag-top { display: inline-block; padding: 1px 6px; background: #c0392b; color: #fff; font-size: 11px; border-radius: 2px; margin-left: 6px; vertical-align: middle; font-style: normal; }
.tag-color { display: inline-block; padding: 1px 5px; font-size: 11px; border-radius: 2px; margin-left: 4px; vertical-align: middle; font-style: normal; border: 1px solid; }
.tag-red { color: #e53935; border-color: #ffcdd2; background: #ffebee; }
.tag-gold { color: #f6a900; border-color: #ffe082; background: #fff8e1; }
.tag-green { color: #17a34a; border-color: #c8e6c9; background: #f1f8e9; }
.tag-blue { color: #1e64d4; border-color: #bbdefb; background: #e3f2fd; }

/* 栏目格子 */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-grid li a { display: block; padding: 14px 16px; background: linear-gradient(135deg, #fff, #fafbfc); border: 1px solid #eef0f3; border-radius: 6px; }
.cat-grid li a:hover { border-color: #c0392b; box-shadow: 0 4px 12px rgba(192,57,43,.12); }
.cat-grid li strong { display: block; font-size: 15px; color: #1a3c6e; margin-bottom: 6px; }
.cat-grid li span { font-size: 12px; color: #999; }

/* 文章列表 */
.art-list { list-style: none; margin: 0; padding: 0; }
.art-list li { padding: 9px 0; border-bottom: 1px dashed #eef0f3; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.art-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-meta { color: #bbb; font-size: 12px; white-space: nowrap; }
.art-list-lg li { display: block; padding: 13px 0; }
.art-list-lg h3 { font-size: 15px; margin: 0 0 4px; }
.art-list-lg p { margin: 0 0 6px; color: #888; font-size: 13px; }

/* 关键词云 */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-cloud a { padding: 5px 12px; background: #f4f6f9; border-radius: 14px; font-size: 13px; color: #555; }
.kw-cloud a:hover { background: #c0392b; color: #fff; }
.kw-cloud a.kw-rel { background: #fff3e0; color: #c0392b; font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 面包屑 */
.crumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.crumb a { color: #888; }
.crumb-cur { font-weight: 600; color: #c0392b !important; }

/* 详情页 */
.detail-wrap { display: block; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.info-table th, .info-table td { padding: 10px 12px; border: 1px solid #eef0f3; }
.info-table th { background: #fafbfc; color: #666; width: 90px; text-align: left; font-weight: 600; }
.feature-box { background: #fff8e6; border-left: 3px solid #f0ad4e; padding: 10px 14px; border-radius: 0 4px 4px 0; margin-bottom: 16px; }
.detail-content { line-height: 1.9; color: #444; }
.detail-content h2 { font-size: 16px; margin: 18px 0 10px; padding-left: 10px; border-left: 3px solid #c0392b; }
.detail-content p { margin: 0 0 12px; }
.detail-op { margin-top: 18px; }
.btn-gift, .btn-game { display: inline-block; padding: 10px 26px; border-radius: 4px; color: #fff !important; margin-right: 12px; font-size: 15px; }
.btn-gift { background: #e07b00; }
.btn-game { background: #c0392b; }
.btn-gift:hover, .btn-game:hover { opacity: .9; }
.art-info { color: #999; font-size: 13px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eef0f3; }
.kw-link { color: #1a6fd4; border-bottom: 1px dashed #1a6fd4; }

/* 关键词落地页 */
.kw-intro { background: #f9fafc; border-radius: 6px; padding: 14px 16px; color: #555; line-height: 1.9; margin-bottom: 18px; }
.sub-title { font-size: 15px; margin: 18px 0 12px; padding-left: 10px; border-left: 3px solid #c0392b; }
.cat-desc { color: #777; margin-bottom: 16px; }

/* 留言板 */
.msg-form { background: #fafbfc; border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.form-row { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.form-row label { width: 80px; padding-top: 8px; color: #666; font-size: 13px; }
.form-row input, .form-row textarea { flex: 1; padding: 8px 11px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; font-family: inherit; }
.form-row button { padding: 9px 26px; background: #c0392b; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { padding: 14px 0; border-bottom: 1px dashed #eef0f3; }
.msg-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.msg-top span { color: #bbb; font-size: 12px; }
.msg-reply { background: #f4f6f9; padding: 8px 12px; border-radius: 4px; font-size: 13px; color: #666; margin-top: 8px; }
.tip-ok { background: #eafaf0; color: #14722c; padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.tip-err { background: #fdecec; color: #a00; padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }

/* 分页 */
.pagination { margin-top: 18px; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid #e2e6ea; border-radius: 4px; font-size: 13px; background: #fff; }
.pagination a:hover { border-color: #c0392b; color: #c0392b; }
.pagination span.current { background: #c0392b; color: #fff; border-color: #c0392b; }
.pagination span.disabled { color: #ccc; }
.empty { color: #999; text-align: center; padding: 26px 0; }

.ad-box { margin-bottom: 18px; text-align: center; }
.ad-box a { display: block; padding: 14px; background: #fff; border-radius: 6px; color: #999; }

/* FAQ */
.faq h3 { font-size: 14px; color: #1a3c6e; margin: 14px 0 6px; }
.faq p { color: #666; margin: 0 0 8px; }

/* 页面底部（关于本站） */
.seo-intro p { color: #666; margin: 0 0 10px; }

/* 404 */
.error-page { text-align: center; padding: 50px 0; }
.error-page h1 { font-size: 68px; color: #c0392b; margin: 0; }
.err-links { list-style: none; padding: 0; margin: 18px 0 0; }
.err-links li { display: inline-block; margin: 0 10px; }

/* 底部 */
.site-footer { background: #fff; margin-top: 20px; padding: 24px 0 30px; border-top: 1px solid #eef0f3; }
.foot-kw, .foot-link { margin-bottom: 12px; font-size: 13px; line-height: 2; }
.foot-kw span, .foot-link span { color: #999; }
.foot-kw a, .foot-link a { color: #777; margin-right: 12px; }
.foot-copy { border-top: 1px solid #eef0f3; padding-top: 14px; color: #999; font-size: 13px; }
.foot-copy p { margin: 0 0 4px; }
.foot-tips { color: #bbb; font-size: 12px; line-height: 1.8; }

.back-top { position: fixed; right: 22px; bottom: 40px; width: 42px; height: 42px; line-height: 42px; text-align: center; background: #c0392b; color: #fff; border-radius: 50%; font-size: 20px; opacity: .8; }
.back-top:hover { opacity: 1; color: #fff; }

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-box { max-width: none; order: 3; width: 100%; }
  .header-tel { display: none; }
  .header-user { gap: 8px; margin-left: 0; }
  .header-user .btn-publish { padding: 6px 10px; }
  .user-name span { display: none; }
  .main-nav .wrap { overflow-x: auto; }
  .main-nav a { padding: 11px 13px; font-size: 14px; white-space: nowrap; }
  .nav-drop { min-width: 280px; }
  .two-col { grid-template-columns: 1fr; }
  .server-table { font-size: 12px; }
  .server-table th, .server-table td { padding: 8px 5px; }
  .info-table th { width: 76px; }
  .form-row { display: block; }
  .form-row label { display: block; width: auto; padding: 0 0 4px; }
}
