/* ============================================================
   9IPHP 皮肤的补充样式
   皮肤本体（base.css）按 Solo 9IPHP 原样引入，此文件只补皮肤里没有的
   部分：搜索框宽度、评论表单、提示条、存档行内信息等。
   配色跟随皮肤：主色 #ff4d3a，灰阶 #aaa / #666，边框 #ededed / #eee。
   ============================================================ */

/* ---------- 头部 ---------- */

/* 皮肤里搜索框没给宽度，默认会撑满 */
.navbar .form {
  width: 240px;
}
.navbar .form input {
  height: 30px;
  line-height: 28px;
}
.banner h1 {
  font-size: 28px;
  font-weight: 700;
  margin-right: 4px;
}
.banner .fn__flex-inline {
  vertical-align: middle;
}

/* ---------- 列表 / 文章 ---------- */

.post .meta i {
  margin-right: 3px;
  font-size: 12px;
}
.post .meta {
  font-size: 13px;
}
.post .tags .tag {
  margin-top: 10px;
}
.post .vditor-reset {
  color: #444;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* 列表摘要里的图片不该撑破卡片 */
.vditor-reset img {
  max-width: 100%;
  height: auto;
}

/* 存档列表里的一行信息 */
.list a.post-title {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.list a.post-title time {
  flex: none;
  font-size: 12px;
}
.list a.post-title {
  text-overflow: ellipsis;
}
.ft-views {
  margin-left: auto;
  flex: none;
  font-size: 12px;
}

/* ---------- 评论 ---------- */

#comments {
  margin-top: 10px;
}
.comments {
  padding: 0;
  margin-bottom: 20px;
}
#commentForm {
  border-top: 1px solid #f1f1f1;
  padding-top: 20px;
}
.comment-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.comment-fields input {
  flex: 1;
  min-width: 0;
}
#commentForm textarea {
  display: block;
  margin-bottom: 10px;
  min-height: 100px;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.btn-submit {
  display: inline-block;
  background-color: #ff4d3a;
  color: #fff;
  border: 0;
  padding: 0 16px;
  line-height: 32px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-submit:hover {
  background-color: #e42f19;
  color: #fff;
}

/* ---------- 提示条 ---------- */

.alert {
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid transparent;
}
.alert-ok {
  background-color: #effaf3;
  border-color: #c6ecd5;
  color: #2c7a4b;
}
.alert-error {
  background-color: #fdf0ee;
  border-color: #f7cfc9;
  color: #c0291a;
}

/* ---------- 杂项 ---------- */

.title h2 {
  font-size: 16px;
  font-weight: 400;
}
.title h2 small {
  color: #aaa;
  font-size: 12px;
  font-weight: 400;
}
.other .tags {
  padding: 20px 0 0;
}
.post .ft__center h1 {
  font-size: 48px;
  color: #ff4d3a;
  margin: 20px 0 10px;
}
.icon-up {
  z-index: 20;
}

@media (max-width: 700px) {
  .banner h1 {
    font-size: 20px;
  }
  .comment-fields {
    flex-direction: column;
  }
  .post .meta {
    font-size: 12px;
  }
}
