/* ===== Settings / News / Help ===== */
.settings-page {
  padding: 0 0 110px;
  width: 100%;
}
.settings-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 16px;
}
.settings-head h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  text-align: center;
}
.settings-head .back-btn {
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: transparent; color: var(--text);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.settings-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: -8px 0 16px;
  text-align: center;
}

.settings-list {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, #e8ecef);
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border, #eef1f4);
  cursor: pointer;
  background: transparent;
  width: 100%;
  border-left: none; border-right: none; border-top: none;
  text-align: left;
  font: inherit;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: var(--bg-hover, #f5f7fa); }
.settings-item .si-icon {
  width: 28px;
  font-size: 20px;
  color: var(--text);
  text-align: center;
  flex-shrink: 0;
}
.settings-item .si-body { flex: 1; min-width: 0; }
.settings-item .si-title { font-size: 15px; font-weight: 600; }
.settings-item .si-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-item .si-right {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.settings-item .si-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.settings-logout {
  margin-top: 20px;
  padding: 14px 16px;
  color: #e11d48 !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* News list */
.news-banner {
  background: #eef4ff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
[data-theme="dark"] .news-banner { background: #1a2333; }
.news-banner i { font-size: 22px; color: var(--accent, #3b82f6); margin-top: 2px; }
.news-banner h2 { margin: 0 0 4px; font-size: 17px; }
.news-banner p { margin: 0; font-size: 13px; color: var(--text-muted); }

.news-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e8ecef);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card:active { opacity: 0.92; }
.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.news-badge {
  display: inline-block;
  background: #e8f0ff;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
[data-theme="dark"] .news-badge { background: #1e3a5f; color: #93c5fd; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.news-card .news-sum {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
}
.news-cover {
  width: 100%;
  border-radius: 12px;
  margin: 10px 0;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* News detail */
.news-detail {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e8ecef);
  border-radius: 18px;
  padding: 20px 18px 28px;
}
.news-detail-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.news-detail-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.news-detail h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}
.news-detail .lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.news-detail .body {
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.news-detail .cover-full {
  width: 100%;
  border-radius: 14px;
  margin: 12px 0 16px;
  max-height: 360px;
  object-fit: cover;
}
.news-detail .meta-date {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Help */
.help-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e8ecef);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.help-card h3 { margin: 0 0 14px; font-size: 17px; }
.help-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.help-input, .help-textarea {
  width: 100%;
  border: 1px solid var(--border, #e5e9ef);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: var(--bg, #f8fafc);
  color: var(--text);
  box-sizing: border-box;
  resize: vertical;
}
.help-textarea { min-height: 120px; }
.help-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 12px;
}
.help-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.help-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.help-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}
.help-empty i { font-size: 36px; opacity: 0.4; margin-bottom: 10px; }
.help-ticket {
  border: 1px solid var(--border, #e8ecef);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.help-ticket .ht-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.help-ticket .ht-subj { font-weight: 600; font-size: 14px; }
.help-ticket .ht-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2563eb;
}
.help-ticket .ht-status.answered { background: #dcfce7; color: #16a34a; }
.help-ticket .ht-status.closed { background: #f1f5f9; color: #64748b; }
.help-ticket .ht-msg {
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre-wrap;
}
.help-ticket .ht-reply {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #e5e9ef);
  font-size: 13px;
}
.help-alert {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.help-alert.ok { background: #dcfce7; color: #166534; }
.help-alert.err { background: #fee2e2; color: #991b1b; }

@media (min-width: 900px) {
  .settings-page { padding-top: 16px; }
}
