/* ================================================
   留言板 专用样式 — 零图片，纯 CSS
   ================================================ */

/* ---- 容器 ---- */
.ly-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0 40px;
  font-family: "Microsoft YaHei", "PingFang SC", SimSun, sans-serif;
}

/* ---- 顶部横幅 ---- */
.ly-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #5BA4E6 0%, #3B82C4 50%, #2563A8 100%);
  border-radius: 8px 8px 0 0;
  padding: 14px 24px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(59,130,196,0.25);
}
.ly-banner-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3px;
}
.ly-banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* ---- 标签切换按钮（美化按钮样式） ---- */
.ly-tab-bar {
  display: flex;
  gap: 0;
  background: transparent;
  border: none;
  padding: 0;
  align-items: center;
}
.ly-tab-bar .ly-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #3B82C4, #5BA4E6);
  border: none;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
}
.ly-tab-bar .ly-tab-btn:hover {
  background: linear-gradient(135deg, #2563A8, #3B82C4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 3px 6px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.ly-tab-bar .ly-tab-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
}
.ly-tab-bar .ly-tab-btn.active {
  background: linear-gradient(135deg, #fff, #f0f7ff);
  color: #3B82C4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,1);
}
.ly-tab-bar .ly-tab-btn.active:hover {
  background: linear-gradient(135deg, #fff, #e8f3fc);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 3px 6px rgba(0,0,0,0.2);
  color: #2563A8;
}
.ly-tab-bar .ly-tab-btn + .ly-tab-btn {
  margin-left: 12px;
}

/* ---- 表格表头 ---- */
.ly-list {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #3B82C4;
  background: #fff;
  margin-bottom: 0;
}
.ly-list thead tr {
  background: linear-gradient(90deg, #3B82C4, #5BA4E6);
}
.ly-list th {
  padding: 10px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ly-list th:last-child { border-right: none; }

/* ---- 留言行 ---- */
.ly-list tbody tr {
  border-bottom: 1px solid #eef3f8;
  transition: background .15s;
}
.ly-list tbody tr:hover {
  background: #f0f7fc;
}
.ly-list tbody tr:last-child {
  border-bottom: none;
}
.ly-list td {
  padding: 10px 8px;
  font-size: 13px;
  color: #555;
  vertical-align: middle;
}
.ly-list .col-st  { width: 36px;  text-align: center; }
.ly-list .col-tt  { width: auto; }
.ly-list .col-us  { width: 110px; text-align: center; }
.ly-list .col-dt  { width: 130px; text-align: center; }

/* ---- 状态图标 ---- */
.ly-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
  vertical-align: middle;
}
.ly-dot.has-reply {
  background: #27ae60;
  box-shadow: 0 0 4px rgba(39,174,96,0.5);
}
.ly-dot.no-reply {
  background: #e67e22;
  box-shadow: 0 0 4px rgba(230,126,34,0.4);
}

/* ---- 留言标题 ---- */
.ly-title-link {
  color: #2c5aa0;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
}
.ly-title-link:hover {
  color: #e74c3c;
  text-decoration: underline;
}
.ly-has-reply-tag {
  display: inline-block;
  font-size: 11px;
  color: #27ae60;
  background: #eaf7ef;
  border: 1px solid #a9d5b8;
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.ly-no-reply-tag {
  display: inline-block;
  font-size: 11px;
  color: #e67e22;
  background: #fef5e7;
  border: 1px solid #f5c99a;
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- 分页条 ---- */
.ly-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-top: none;
  font-size: 13px;
  color: #555;
}
.ly-pager a {
  padding: 4px 12px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #ccc;
  color: #3B82C4;
  text-decoration: none;
  font-size: 12px;
}
.ly-pager a:hover {
  background: #e8f3fb;
  border-color: #3B82C4;
}
.ly-pager .pager-info {
  font-size: 12px;
  color: #888;
}
.ly-pager select.pager-sel {
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  color: #555;
  background: #fff;
}

/* ---- 底部装饰 ---- */
.ly-footer {
  height: 6px;
  background: linear-gradient(90deg, #2563A8, #5BA4E6, #2563A8);
  border-radius: 0 0 8px 8px;
}

/* ---- 留言详情页 ---- */
.ly-detail-card {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #3B82C4;
  background: #fff;
  margin-bottom: 0;
}
.ly-detail-header {
  padding: 14px 20px;
  background: linear-gradient(90deg, #3B82C4, #5BA4E6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ly-detail-title {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}
.ly-cat-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}
.ly-detail-body {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.ly-author-cell {
  display: table-cell;
  width: 180px;
  padding: 20px 14px;
  background: #f8f9fb;
  border-right: 1px solid #e8ecf0;
  vertical-align: top;
  text-align: center;
}
.ly-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  line-height: 64px;
  background: linear-gradient(135deg, #3B82C4, #5BA4E6);
  box-shadow: 0 2px 8px rgba(59,130,196,0.3);
}
.ly-author-info {
  font-size: 12px;
  color: #666;
  text-align: left;
  margin-top: 4px;
}
.ly-author-info p {
  margin: 5px 0;
  padding: 2px 0;
  border-bottom: 1px solid #e8ecf0;
}
.ly-author-info .lbl {
  color: #999;
  display: inline-block;
  width: 44px;
}
.ly-content-cell {
  display: table-cell;
  padding: 20px 24px;
  font-size: 14px;
  color: #333;
  line-height: 1.9;
  vertical-align: top;
}
.ly-content-cell p { margin: 0 0 8px; }
.ly-content-cell p:last-child { margin-bottom: 0; }

/* ---- 管理员回复 ---- */
.ly-reply-card {
  border: 1px solid #e0e0e0;
  border-top: none;
  background: #fff;
  display: table;
  width: 100%;
  table-layout: fixed;
}
.ly-reply-cell {
  display: table-cell;
  width: 180px;
  padding: 16px 14px;
  background: #fff9f0;
  border-right: 1px solid #f0e4cc;
  vertical-align: top;
  text-align: center;
}
.ly-reply-ico {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 2px 6px rgba(230,126,34,0.3);
}
.ly-reply-content {
  display: table-cell;
  padding: 16px 24px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  vertical-align: top;
}

/* ---- 写留言表单 ---- */
.ly-form-wrap {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #3B82C4;
  background: #fff;
  padding: 24px;
}
.ly-form-table {
  width: 100%;
  max-width: 780px;
  border-collapse: collapse;
}
.ly-form-table td {
  padding: 10px 6px;
  font-size: 13px;
  vertical-align: middle;
}
.ly-form-table .f-label {
  width: 110px;
  text-align: right;
  color: #555;
  font-weight: bold;
  padding-right: 12px;
}
.ly-form-table .f-label .required {
  color: #e74c3c;
  margin-right: 2px;
}
.ly-form-table input[type="text"],
.ly-form-table input[type="email"],
.ly-form-table select,
.ly-form-table textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.ly-form-table input[type="text"]:focus,
.ly-form-table input[type="email"]:focus,
.ly-form-table select:focus,
.ly-form-table textarea:focus {
  border-color: #3B82C4;
  box-shadow: 0 0 0 3px rgba(59,130,196,0.12);
  background: #fff;
  outline: none;
}
.ly-form-table textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
.ly-form-table select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.ly-form-table .radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ly-form-table .radio-group input[type="radio"] {
  accent-color: #3B82C4;
  width: 14px;
  height: 14px;
}
.ly-form-table .radio-group label {
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.ly-form-hint {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
}
.ly-form-actions {
  padding: 14px 0 4px 116px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.ly-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: inherit;
}
.ly-btn-primary {
  background: linear-gradient(135deg, #3B82C4, #5BA4E6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,196,0.3);
}
.ly-btn-primary:hover {
  background: linear-gradient(135deg, #2563A8, #3B82C4);
  box-shadow: 0 4px 12px rgba(59,130,196,0.4);
  transform: translateY(-1px);
}
.ly-btn-outline {
  background: #fff;
  color: #666;
  border: 1px solid #ccc;
}
.ly-btn-outline:hover {
  background: #f5f5f5;
  border-color: #aaa;
}
.ly-vcode-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ly-vcode-input {
  width: 100px !important;
}
.ly-vcode-img {
  height: 34px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  vertical-align: middle;
}
.ly-notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  color: #856404;
  margin: 10px 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ly-notice::before {
  content: "\26A0";
  flex-shrink: 0;
}

/* ---- 空状态 ---- */
.ly-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 14px;
}
.ly-empty::before {
  content: "\2709";
  display: block;
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .3;
}

/* ---- 底部 ---- */
.ly-footer-bar {
  height: 6px;
  background: linear-gradient(90deg, #2563A8, #5BA4E6, #2563A8);
  border-radius: 0 0 8px 8px;
}

/* ---- 响应式 ---- */
@media (max-width: 700px) {
  .ly-detail-body,
  .ly-reply-card {
    display: block;
  }
  .ly-author-cell,
  .ly-reply-cell {
    width: auto;
    border-right: none;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
  }
  .ly-avatar { margin: 0; }
  .ly-author-info { margin-top: 0; }
  .ly-content-cell,
  .ly-reply-content {
    padding: 16px;
  }
  .ly-form-actions { padding-left: 0; }
  .ly-form-table .f-label { text-align: left; width: auto; }
}
