/* =========================================================
   领克·领地 复刻版 —— 样式
   ========================================================= */

:root {
  --brand: #e6002d;
  --brand-dark: #b80024;
  --ink: #111214;
  --ink-2: #4a4d52;
  --ink-3: #8b8f96;
  --line: #ececef;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #e9eaee;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.app-shell {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* ---------------- 通用组件 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary[disabled] {
  background: #f0b3bd;
  cursor: default;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-bottom: 1px solid var(--line);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 100%;
}

.field .prefix {
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.field .ghost-btn {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 2px;
}

.field .ghost-btn[disabled] {
  color: var(--ink-3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 12px);
  max-width: 78vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(17, 18, 20, 0.9);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 999;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skeleton {
  background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------------- 登录页 ---------------- */

.login-page {
  min-height: 100vh;
  background: radial-gradient(120% 80% at 20% 0%, #2a2d33 0%, #16181c 45%, #0a0b0d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0 26px calc(28px + var(--safe-bottom));
}

.login-hero {
  padding-top: 74px;
  padding-bottom: 34px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.55);
}

.login-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.login-title {
  margin: 18px 0 6px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
}

.login-tabs {
  display: flex;
  gap: 26px;
  margin: 6px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.login-tab {
  position: relative;
  padding: 12px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.login-tab.active {
  color: #fff;
  font-weight: 600;
}

.login-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.login-form .field {
  border-color: rgba(255, 255, 255, 0.14);
}

.login-form .field input {
  color: #fff;
}

.login-form .field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.login-form .field .prefix {
  color: rgba(255, 255, 255, 0.7);
}

.login-form .field .ghost-btn {
  color: #ff5b6e;
}

.login-actions {
  margin-top: 28px;
}

.login-actions .btn-primary {
  height: 50px;
  font-size: 16.5px;
}

.login-agree {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
}

.login-agree input {
  margin-top: 2px;
  accent-color: var(--brand);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.login-alert {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(230, 0, 45, 0.12);
  border: 1px solid rgba(230, 0, 45, 0.32);
  color: #ff8b9b;
  font-size: 12.5px;
  line-height: 1.6;
  display: none;
}

.login-alert.show {
  display: block;
}

.login-foot {
  margin-top: auto;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11.5px;
  line-height: 1.7;
}

.login-foot a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 登录方式卡片 */
.alt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.alt-card + .alt-card {
  margin-top: 10px;
}

.alt-card .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
}

.alt-card .tx {
  flex: 1;
  min-width: 0;
}

.alt-card .tx b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.alt-card .tx span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.alt-card .arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

details.advanced {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
}

details.advanced summary {
  cursor: pointer;
  list-style: none;
}

details.advanced summary::-webkit-details-marker {
  display: none;
}

details.advanced textarea {
  width: 100%;
  height: 76px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  resize: none;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.modal-mask.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(22px + var(--safe-bottom));
  animation: slideUp 0.24s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.modal p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.modal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f7f9;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- 列表页 ---------------- */

.feed-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.feed-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}

.feed-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.feed-title small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--ink-3);
  margin-top: 1px;
}

.feed-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.feed-user img,
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6e8ec;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 4px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  padding: 8px 0 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.tab.active {
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.feed-list {
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.04);
}

.card:active {
  background: #fafafb;
}

.card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.card-meta .name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

.card-meta .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #cfd2d8;
}

.card-cover {
  position: relative;
  width: 108px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #eceef1;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-cover .badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
}

.list-end {
  padding: 18px 0 34px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
}

.empty {
  padding: 70px 30px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------------- 详情页 ---------------- */

.article-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 17px;
  line-height: 1;
}

.article-body {
  background: #fff;
  padding: 20px 18px 26px;
}

.article-title {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
}

.article-author .avatar {
  width: 38px;
  height: 38px;
}

.article-author .who {
  flex: 1;
  min-width: 0;
}

.article-author .who b {
  font-size: 14px;
  font-weight: 600;
}

.article-author .who span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-tags span {
  padding: 3px 9px;
  border-radius: 6px;
  background: #f4f5f7;
  color: var(--ink-2);
  font-size: 11.5px;
}

.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #24262a;
  word-break: break-word;
}

.article-content p {
  margin: 0 0 14px;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 4px 0 14px;
  display: block;
}

.article-content a {
  color: var(--brand);
  text-decoration: underline;
}

.article-content video {
  width: 100%;
  border-radius: 10px;
}

.article-stats {
  color: var(--ink-3);
  font-size: 12px;
  padding: 16px 0 4px;
}

/* 互动条 */
.article-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 8px solid var(--bg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f4f5f7;
  font-size: 13px;
  color: var(--ink-2);
}

.chip.liked {
  background: rgba(230, 0, 45, 0.1);
  color: var(--brand);
  font-weight: 600;
}

/* 评论 */
.comment-section {
  background: #fff;
  padding: 18px 18px 30px;
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.comment-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.comment-head span {
  font-size: 12px;
  color: var(--ink-3);
}

.comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f4f5f7;
}

.comment:last-child {
  border-bottom: 0;
}

.comment .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-name {
  font-size: 13px;
  font-weight: 600;
  color: #3a3d43;
}

.comment-badge {
  padding: 0 5px;
  border-radius: 4px;
  background: #f2f3f5;
  color: var(--ink-3);
  font-size: 10px;
}

.comment-text {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #202226;
  word-break: break-word;
}

.comment-text .reply-to {
  color: var(--brand);
}

.comment-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.comment-foot button {
  font-size: 11.5px;
  color: var(--ink-3);
}

.comment-foot button:hover {
  color: var(--brand);
}

.sub-comments {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fa;
}

.sub-comments .comment {
  padding: 8px 0;
  border-bottom: 0;
}

.sub-comments .comment .avatar {
  width: 26px;
  height: 26px;
}

.sub-comments .comment-text {
  font-size: 13.5px;
}

.sub-comments .comment-name {
  font-size: 12px;
}

/* 底部输入条 */
.reply-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.reply-bar .field-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
}

.reply-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.reply-bar .send {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.reply-bar .send[disabled] {
  background: #f2c3ca;
}

.reply-bar .reply-target {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

.reply-bar.replying .reply-target {
  display: flex;
}

/* 详情页加载 / 错误 */
.page-loading {
  padding: 26px 18px;
  background: #fff;
}

.error-box {
  padding: 90px 30px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 400px) {
  .card-cover {
    width: 96px;
    height: 76px;
  }
  .article-title {
    font-size: 21px;
  }
}

/* ------------------------------------------------------------------ */
/* 人机验证（极验 v4 滑块）                                             */
/* ------------------------------------------------------------------ */

.captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.captcha-mask.show {
  display: flex;
}

.captcha-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 14px;
  background: #1b1b1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 82vw;
}

.captcha-card .spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #e6002d;
}

/* 极验自带的关闭按钮太小，补一点触控面积由其内部样式控制，这里只调容器 */
.geetest_box,
.geetest_container {
  max-width: 100vw;
}

.captcha-fallback {
  margin-top: 10px;
  display: none;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.captcha-fallback.show {
  display: block;
}

/* ================================================================== */
/* AI 自动评论控制台                                                    */
/* ================================================================== */

.auto-page {
  background: #0e0f11;
  color: #f2f3f5;
  padding-bottom: 30px;
}

.auto-head {
  padding: 18px 18px 16px;
  background: radial-gradient(120% 80% at 20% 0%, #2a0d14 0%, #121316 60%, #0e0f11 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auto-head-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.auto-back {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.auto-head-title {
  margin-left: auto;
  letter-spacing: 0.02em;
}

.auto-head-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(230, 0, 45, 0.8);
}

.auto-head h1 {
  margin: 14px 0 6px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.auto-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.auto-login-tip {
  margin: 14px 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(230, 0, 45, 0.14);
  border: 1px solid rgba(230, 0, 45, 0.35);
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffd7de;
}

.auto-login-tip a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.auto-card {
  margin: 12px 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: #17181b;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* 状态卡 */
.auto-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auto-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.auto-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4c5058;
  flex: none;
}

.auto-led.on {
  background: #2fd07a;
  box-shadow: 0 0 0 4px rgba(47, 208, 122, 0.16);
  animation: autoPulse 1.6s ease-in-out infinite;
}

.auto-led.on.dry {
  background: #f5a623;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16);
}

@keyframes autoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.auto-nums {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.auto-nums b {
  display: block;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.auto-current {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auto-current-title {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-current-comment {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #fff;
}

.auto-current-comment:empty {
  display: none;
}

.auto-mask {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.auto-mask b {
  color: #f5a623;
  font-size: 14px;
}

.auto-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.auto-btn {
  flex: 1;
  height: 44px;
  font-size: 15px;
}

.auto-btn-stop {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.auto-actions-sub {
  margin-top: 10px;
  justify-content: space-between;
}

.auto-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auto-preview {
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 11px 12px;
}

.auto-preview-head {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.auto-preview-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
}

/* 表单 */
.auto-h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auto-h2-gap {
  margin-top: 22px;
}

.auto-hint {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
}

.auto-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.auto-input,
.auto-textarea {
  width: 100%;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.auto-input:focus,
.auto-textarea:focus {
  border-color: rgba(230, 0, 45, 0.6);
}

.auto-input::placeholder,
.auto-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.auto-textarea {
  resize: vertical;
  line-height: 1.6;
  font-size: 13px;
}

.auto-input-sm {
  width: 70px;
  text-align: center;
  padding: 9px 6px;
}

.auto-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-dash {
  color: rgba(255, 255, 255, 0.3);
}

.auto-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.auto-presets button {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

.auto-presets button:active {
  background: rgba(255, 255, 255, 0.08);
}

.auto-mini-btn {
  flex: none;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(230, 0, 45, 0.16);
  border: 1px solid rgba(230, 0, 45, 0.4);
  color: #ff8fa3;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.auto-mini-btn[disabled] {
  opacity: 0.6;
}

.auto-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auto-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.auto-range {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  margin: 12px 0;
}

.auto-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #17181b;
  box-shadow: 0 0 0 1px rgba(230, 0, 45, 0.5);
}

.auto-val {
  color: #ff8fa3;
  font-variant-numeric: tabular-nums;
}

.auto-switch-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.auto-switch-col {
  flex-direction: column;
  gap: 10px;
}

.auto-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.auto-switch input {
  appearance: none;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.18s ease;
  flex: none;
}

.auto-switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.auto-switch input:checked {
  background: var(--brand);
}

.auto-switch input:checked::after {
  transform: translateX(15px);
}

.auto-save {
  margin-top: 18px;
  height: 44px;
  font-size: 15px;
}

.auto-save-tip {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  min-height: 16px;
}

/* 日志 */
.auto-clear {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.auto-log {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 12px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
}

.auto-log-empty {
  color: rgba(255, 255, 255, 0.28);
  padding: 14px 4px;
  text-align: center;
  font-size: 12px;
}

.auto-log-item {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-all;
}

.auto-log-item .t {
  color: rgba(255, 255, 255, 0.28);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.auto-log-item.lv-error .m {
  color: #ff7b8f;
}

.auto-log-item.lv-warn .m {
  color: #f5c26b;
}

.auto-log-item.lv-info .m {
  color: rgba(255, 255, 255, 0.75);
}

.auto-foot {
  margin: 16px 18px 0;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

/* 列表页顶部「AI 评论」入口 */
.feed-ai {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(230, 0, 45, 0.08);
  border: 1px solid rgba(230, 0, 45, 0.28);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.feed-ai:active {
  background: rgba(230, 0, 45, 0.16);
}

.feed-ai + .feed-user {
  margin-left: 0;
}
