/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", "Segoe UI", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: #469BFD; }
a:hover { color: #E67324; }
.clear { clear: both; }
.clearfix::after { content: ''; display: block; clear: both; }

/* ===== 头部 ===== */
#header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#header .wrap { max-width: 1000px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
#header .logo img { height: 45px; }
#header .nav ul { list-style: none; display: flex; gap: 25px; flex-wrap: wrap; }
#header .nav li a { color: #333; font-size: 15px; }
#header .nav li a:hover, #header .nav li.cur a { color: #469BFD; }
.header-user { display: flex; align-items: center; gap: 10px; }
.header-user a { text-decoration: none; }

.pcadwrap { background: #fff; }
.pcadwrap > div { max-width: 1000px; margin: 5px auto; text-align: center; padding: 0 10px; }

/* ===== 主体 ===== */
.mainwrap { max-width: 1000px; margin: 15px auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }

/* 列表筛选 */
.list_btn { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.list_btn a { display: inline-block; padding: 5px 14px; margin: 0 8px 8px 0; background: #f1f5f9; border-radius: 15px; color: #333; font-size: 13px; }
.list_btn a.cur, .list_btn a:hover { background: #469BFD; color: #fff; }
.del { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.del .key { padding: 8px; width: 250px; max-width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; }
.del .btn { padding: 8px 20px; background: #469BFD; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.del .fabu { padding: 8px 20px; background: #E67324; color: #fff; border-radius: 6px; }

.list_tit { background: #fff8e1; padding: 10px 15px; margin: 10px 0; border-left: 3px solid #ffa000; font-size: 13px; border-radius: 4px; }
.list_tit em { font-style: normal; color: #E67324; font-weight: bold; }

/* 列表 */
.list_main ul { list-style: none; }
.list_main li { padding: 12px 5px; border-bottom: 1px solid #f1f5f9; line-height: 1.7; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list_main li.top { background: #fffde7; }
.list_main .type { display: inline-block; padding: 2px 8px; color: #fff; border-radius: 3px; font-size: 11px; flex-shrink: 0; }
.list_main .badge { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 10px; color: #fff; flex-shrink: 0; }
.svip-badge { background: #d32f2f; }
.vip-badge { background: #ff9800; }
.list_main .content { flex: 1; color: #333; min-width: 200px; }
.list_main .time { color: #999; font-size: 12px; flex-shrink: 0; }

.pagination { text-align: center; padding: 20px 0; font-size: 13px; color: #64748b; }
.pagination a { padding: 4px 12px; margin: 0 3px; background: #f1f5f9; border-radius: 4px; color: #469BFD; }
.pagination span { margin: 0 5px; }

/* ===== 发布表单 ===== */
.publish-wrap { padding: 10px; }
.publish-notice { background: #fff3e0; padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; font-size: 13px; line-height: 1.8; }
.notice-label { color: #999; margin-right: 10px; }
.notice-item { display: inline-block; color: #E67324; margin-right: 15px; }

.form-row { margin: 15px 0; }
.form-label { display: inline-block; width: 90px; text-align: right; color: #64748b; vertical-align: top; line-height: 32px; }
.form-content { display: inline-block; margin-left: 10px; max-width: calc(100% - 120px); vertical-align: top; }
.form-content textarea { padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; width: 600px; max-width: 100%; }
.form-content input[type=text], .form-content input[type=password] { padding: 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; }
.hint { color: #94a3b8; font-size: 12px; margin-top: 5px; }
.btn-submit { padding: 10px 40px; background: #469BFD; color: #fff; border: 0; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn-reset { padding: 10px 30px; background: #e2e8f0; color: #333; border: 0; border-radius: 6px; font-size: 15px; cursor: pointer; margin-left: 10px; }

/* 登录遮罩 */
.login-mask { position: absolute; background: rgba(255,255,255,.96); }

/* 列表页底部发布表单 */
.list-publish { background: #fff; padding: 35px 40px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-top: 30px; }
.list-publish h3 { font-size: 18px; margin-bottom: 20px; color: #1e293b; border-left: 4px solid #469BFD; padding-left: 12px; font-weight: 600; }
.pub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.pub-header h3 { margin-bottom: 0; }
.pub-user-status { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.status-tag { background: #e8f5e9; color: #2e7d32; padding: 5px 14px; border-radius: 15px; font-size: 12px; }
.status-tag.guest { background: #f1f5f9; color: #64748b; }
.logout-link { color: #f44336; font-size: 13px; }
.logout-link:hover { text-decoration: underline; }

.pub-tx { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pub-tx label { display: inline-flex; align-items: center; padding: 8px 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all .2s; }
.pub-tx label:hover { border-color: #469BFD; background: #eff6ff; }
.pub-tx label input { margin-right: 6px; }
.pub-field { margin-bottom: 18px; }
.pub-field textarea { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; min-height: 100px; outline: none; resize: vertical; box-sizing: border-box; background: #fafafa; }
.pub-field textarea:focus { border-color: #469BFD; background: #fff; box-shadow: 0 0 0 3px rgba(70,155,253,.1); }
.pub-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pub-row input[type=text], .pub-row input[type=password] { flex: 1; min-width: 140px; padding: 13px 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; background: #fafafa; box-sizing: border-box; }
.pub-row input:focus { border-color: #469BFD; background: #fff; box-shadow: 0 0 0 3px rgba(70,155,253,.1); }
.pub-captcha { width: 100px !important; flex: 0 0 100px !important; }
.pub-captcha-img { height: 46px; border-radius: 6px; cursor: pointer; border: 1px solid #e2e8f0; }
.pub-submit { padding: 14px 50px; background: linear-gradient(135deg, #469BFD, #3b82f6); color: #fff; border: 0; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(70,155,253,.3); margin-top: 10px; }

/* ===== 详情页行式布局 ===== */
/* 列表卡片式 */
.info-item-card { background: #fff; border: 1px solid #eef0f3; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; transition: box-shadow .2s; }
.info-item-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.info-item-card:has(.item-badge.svip) { border-left: 3px solid #d32f2f; background: #fffafa; }
.info-item-card:has(.item-badge.vip) { border-left: 3px solid #E67324; background: #fffbf5; }
.info-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.item-type { display: inline-block; padding: 2px 10px; color: #fff; border-radius: 3px; font-size: 12px; }
.item-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; color: #fff; }
.item-badge.svip { background: #d32f2f; }
.item-badge.vip { background: #E67324; }
.item-time { margin-left: auto; color: #999; font-size: 12px; }
.item-content { font-size: 15px; line-height: 1.7; color: #333; display: block; }
.item-content:hover { color: #469BFD; }
.info-rows { width: 100%; }
.info-row { display: flex; border-bottom: 1px solid #f0f0f0; }
.info-row:nth-child(odd) { background: #fafafa; }
.info-row-label { width: 100px; flex-shrink: 0; text-align: right; padding: 15px 15px 15px 0; color: #666; font-size: 14px; line-height: 1.8; }
.info-row-value { flex: 1; padding: 15px; font-size: 15px; line-height: 1.8; color: #333; }
.info-content-text { font-size: 16px; font-weight: 500; }
.row-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; color: #fff; margin-left: 8px; vertical-align: middle; }
.row-badge.svip { background: #d32f2f; }
.row-badge.vip { background: #E67324; }
.del-pwd-input { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; width: 220px; }
.del-orange-btn { padding: 8px 20px; background: #E67324; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; margin-left: 8px; }

/* ===== 页脚 ===== */
.footer { background: #fff; padding: 25px 20px; text-align: center; color: #94a3b8; font-size: 12px; line-height: 2; margin-top: 20px; }
.footer b { color: #64748b; }

/* ===== 认证页（登录/注册） ===== */
.auth-wrap { max-width: 400px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.auth-wrap h2 { margin-bottom: 20px; text-align: center; color: #1e293b; }
.auth-error { background: #fef2f2; color: #dc2626; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; }
.auth-ok { background: #f0fdf4; color: #16a34a; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; }
.auth-field { margin: 15px 0; }
.auth-field label { display: block; margin-bottom: 5px; color: #64748b; font-size: 13px; }
.auth-field input { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.btn-submit { width: 100%; padding: 12px; }
.auth-link { display: block; text-align: center; margin-top: 12px; font-size: 13px; }

/* ==========================================
   响应式：平板和手机（<768px）
   ========================================== */
@media (max-width: 768px) {
  body { font-size: 13px; }

  #header .wrap { padding: 10px 15px; flex-direction: column; gap: 10px; }
  #header .logo img { height: 35px; }
  #header .nav ul { gap: 15px; justify-content: center; }
  #header .nav li a { font-size: 14px; }

  .mainwrap { margin: 10px; padding: 15px; border-radius: 8px; }

  .list_btn a { padding: 4px 12px; font-size: 12px; }
  .del .key { width: 100%; }

  .list_main li { padding: 10px 2px; }
  .list_main .content { min-width: 0; font-size: 13px; }
  .list_main .time { font-size: 11px; }

  /* 表单在手机上变全宽 */
  .form-label { display: block; width: 100%; text-align: left; line-height: 1.5; margin-bottom: 5px; }
  .form-content { display: block; margin-left: 0; max-width: 100%; }
  .form-content textarea { width: 100%; box-sizing: border-box; }

  .btn-submit, .btn-reset { width: 100%; margin: 5px 0; padding: 12px; }

  .info-detail .title { display: block; width: 100%; text-align: left; margin-bottom: 5px; }
  .info-detail .content { display: block; margin-left: 0; }

  .plus { flex-direction: column; }
  .plus > div { min-width: 100%; }

  .auth-wrap { margin: 20px 15px; padding: 20px; }

  .pagination a { padding: 6px 14px; display: inline-block; margin-bottom: 5px; }
}
