:root {
  --primary: #ff5f00;
  --primary-deep: #ff2e2e;
  --primary-grad: linear-gradient(135deg, #ff5f00 0%, #ff2e2e 100%);
  --gold: #f5b942;
  --gold-light: #ffe2a8;
  --dark: #191310;
  --dark-2: #241a12;
  --bg: #f3efe9;
  --card: #ffffff;
  --line: #ece4da;
  --text: #292017;
  --muted: #8d7f6f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(41, 24, 8, .08);
  --shadow-sm: 0 3px 10px rgba(41, 24, 8, .06);
  --header-h: 58px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; border: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0; }

.site-float-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(90deg, #17100b 0%, #241408 60%, #2a1508 100%);
  border-bottom: 1px solid rgba(245, 185, 66, .22);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.site-header-inner {
  width: 100%; max-width: 800px; margin: 0 auto; padding: 0;
  display: flex; align-items: center; gap: 16px;
}

.left-logo-link { display: flex; align-items: center; gap: 10px; min-width: 0; }

.left-logo {
  height: 38px; width: auto; border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(245, 185, 66, .35), 0 4px 12px rgba(0, 0, 0, .4);
  flex: none;
}

.left-logo-text {
  font-size: 19px; font-weight: 800; letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}

.left-logo-text b { color: var(--gold); }

.site-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }

.site-nav a {
  color: #d8cfc2; font-size: 14.5px; padding: 7px 14px; border-radius: 8px;
  white-space: nowrap; transition: color .2s, background .2s;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav a.is-on { color: #fff; background: var(--primary-grad); box-shadow: 0 3px 10px rgba(255, 95, 0, .35); }

.right-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.home-link {
  color: #ffe9d6; font-size: 14px; font-weight: 600;
  padding: 7px 15px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .22);
  transition: all .2s;
}

.home-link:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.home-link.is-primary { background: var(--primary-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(255, 95, 0, .35); }
.home-link.is-primary:hover { filter: brightness(1.08); color: #fff; }

.site-header-offset { height: var(--header-h); }

#fixed-kj-strip { background: var(--dark-2); border-bottom: 1px solid var(--line); }
#fixed-kj-strip iframe { display: block; width: 100%; height: 44px; border: 0; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pad { padding: 16px 2px; }

.list-title {
  font-size: 17px; font-weight: 800; color: var(--dark);
  padding-left: 12px; position: relative;
}

.list-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 18px; border-radius: 3px; background: var(--primary-grad);
}

.section { margin: 14px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.section-head .title {
  font-size: 18px; font-weight: 800; color: var(--dark);
  display: flex; align-items: center; gap: 8px;
}

.section-head .title::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--primary-grad);
}

.section-more { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; font-size: 15px; font-weight: 700;
  padding: 10px 22px; color: #fff; background: var(--primary-grad);
  box-shadow: 0 4px 14px rgba(255, 95, 0, .28);
  transition: filter .2s, transform .1s;
}

.btn:hover { filter: brightness(1.07); opacity: 1; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: rgba(255, 95, 0, .08); filter: none;}
.btn-sm { padding: 6px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ghost { background: #f1ece4; color: var(--muted); box-shadow: none; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin: 14px 0; }
.form-card h1 { font-size: 19px; margin-bottom: 16px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.form-card h1::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--primary-grad); }

.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-item input,
.form-item select,
.form-item textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #e2d9cc; border-radius: 10px;
  background: #fdfbf8; outline: none; transition: border .2s, box-shadow .2s;
}

.form-item input:focus,
.form-item textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 95, 0, .14); background: #fff; }

.form-tip { font-size: 13px; color: var(--muted); margin-top: 10px; }

.flash { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.flash-error { background: #fdecec; color: #c1272d; border: 1px solid #f5c8c8; }
.flash-success { background: #eaf7ec; color: #1f8a3d; border: 1px solid #bfe6c8; }

.hint { font-size: 13px; color: var(--muted); }
.gray-text { color: var(--muted); }
.err-text { color: #c1272d; font-size: 13px; }
.ok-text { color: #1f8a3d; }

.empty { text-align: center; color: var(--muted); padding: 28px 0; font-size: 14px; }

.article-list { display: flex; flex-direction: column; }
.article-item, .post-list li, .list-body-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
}

.article-item:last-child, .post-list li:last-child, .list-body-row:last-child { border-bottom: 0; }

.article-thumb, .thumb {
  width: 68px; height: 68px; border-radius: 12px; object-fit: cover; flex: none;
  background: #f0e9de;
}

.article-main { flex: 1; min-width: 0; }

.article-title, .post-title {
  font-size: 15.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.article-meta, .post-meta {
  margin-top: 6px; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.issue-tag, .upd-tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #f3ede3; color: var(--muted); }
.upd-tag.upd-yes { background: #fff2e2; color: #c25700; }
.upd-tag.upd-no { background: #f3ede3; color: var(--muted); }

.post-badge { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; flex: none; }
.post-badge-sell { background: var(--primary-grad); color: #fff; box-shadow: 0 2px 8px rgba(255, 95, 0, .3); }
.post-badge-idle { background: #efe9df; color: var(--muted); }

.post-end-gif { display: inline-block; width: auto; height: 18px; vertical-align: -3px; margin-left: 2px; }

.post-list { display: flex; flex-direction: column; }
.post-list li { align-items: flex-start; }
.post-name { flex: 1; min-width: 0; }
.post-author { font-size: 12.5px; color: var(--muted); flex: none; }

.pg-info { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 18px 0 6px; }
.pager a, .pager span {
  min-width: 36px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--line);
}

.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .is-cur { background: var(--primary-grad); color: #fff; border-color: transparent; font-weight: 700; }

.article-detail { padding: 20px; }
.article-detail h1 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
.article-content { font-size: 15.5px; line-height: 1.9; color: #33271a; word-break: break-word; }
.article-content img { border-radius: 10px; }

.author-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, #2a1206, #571a08 45%, #7a240a);
  border: 1px solid rgba(245, 185, 66, .35); color: #fff;
  margin-bottom: 16px;
}

.author-banner-text { padding: 18px 20px; position: relative; z-index: 2; }
.author-banner .author-name { font-size: 22px; font-weight: 800; }
.author-name.ys2-red { color: var(--gold); }
.author-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 233, 214, .85); }

.author-head { position: relative; }
.art-actions { position: relative; z-index: 1; }
.art-seal-bg {
  position: absolute; bottom: -4px; right: 0;
  display: flex; gap: 6px;
  z-index: 0; pointer-events: none;
  opacity: .3;
}
.art-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border: 3px solid currentColor; border-radius: 50%;
  transform: rotate(-14deg);
  font-size: 18px; font-weight: 800; letter-spacing: 3px;
  color: #c0392b; background: transparent;
}
.art-seal-hot { color: #e74c3c; }
.art-seal-rec { color: #1e8449; }

.big-txt { font-size: 15.5px; line-height: 1.9; }
.big-txt img { border-radius: 8px; }

.author-title-box {
  display: inline-block; padding: 6px 22px; border-radius: 8px;
  background: linear-gradient(120deg, #2a1206, #7a240a);
  color: var(--gold-light); font-weight: 800; font-size: 16px;
  border: 1px solid rgba(245, 185, 66, .4);
  margin: 12px 0 8px;
}

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  background: #fdf3e7; color: #7a3d0a; font-weight: 700; text-align: left;
  padding: 10px 12px; border-bottom: 2px solid #f5d9b8; white-space: nowrap;
}

.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.table tr:hover td { background: #fdf8f1; }

.modal-mask {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 8, 2, .78); backdrop-filter: blur(4px);
}

.modal-box {
  width: min(92vw, 720px); max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--dark); color: #fff;
}

.modal-title { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: 0; color: #c9bdaa; font-size: 20px; line-height: 1; padding: 4px 8px; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 18px; overflow: auto; }
.modal-body img { display: block; margin: 0 auto; border-radius: 10px; }

.bottom-nav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.bottom-nav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; color: #a99a87; font-size: 11.5px;
}

.bottom-nav .bn-item.is-on, .bottom-nav .bn-item.on { color: var(--primary); font-weight: 700; }
.bn-icon { display: block; }
.bn-icon-wrap { position: relative; }
.bn-badge {
  position: absolute; top: -7px; right: -12px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 10px; background: var(--primary-deep); color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.home-promo-banner { display: block; border-radius: var(--radius); box-shadow: var(--shadow); }

.kj-widget-wrap { margin-top: 10px; }
.kj-dual-frame { border: 0; border-radius: 10px; background: #fff; }

.home-info-links { display: flex; gap: 10px; margin-top: 12px; }
.home-info-link {
  flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--primary-grad); box-shadow: 0 4px 12px rgba(255, 95, 0, .25);
}

.home-info-link-gs { background: linear-gradient(135deg, #2a1c0d, #5a3a12); color: var(--gold-light); box-shadow: none; }

.home-urgent-wrap { margin: 14px 0; }
.home-urgent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.home-urgent-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #2a1206, #6b1e07);
  font-size: 15px; letter-spacing: 1px;
}

.home-urgent-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.home-urgent-body { padding: 10px 16px; }
.home-urgent-body li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--text); }
.home-urgent-body li:last-child { border-bottom: 0; }

.home-login-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 10px; margin: 10px 0 8px; padding: 10px 14px; border-radius: 8px;
  background: linear-gradient(90deg, #0b7a31, #128f3d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.home-login-form { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.hl-field { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #cfe3d4; border-radius: 5px; padding: 0 10px; font-size: 14px; color: #333; height: 34px; box-sizing: border-box; }
.hl-ico { font-size: 14px; line-height: 1; }
.hl-ico-user { color: #8b3df0; }
.hl-ico-pass { color: #e8860d; }
.hl-txt { color: #555; white-space: nowrap; }
.hl-field input { border: 0; outline: 0; background: transparent; width: 92px; color: #333; font-size: 13px; height: 100%; }
.hl-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 20px; border: 0; border-radius: 5px; color: #fff; font-size: 14px; text-align: center; cursor: pointer; text-decoration: none; box-sizing: border-box; white-space: nowrap; }
.hl-btn-login { background: linear-gradient(180deg, #f0342e, #d92a22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.hl-btn-reg { background: linear-gradient(180deg, #3f7ff0, #2d67d9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.hl-btn-cz { background: linear-gradient(180deg, #3f7ff0, #2d67d9); }
.hl-welcome { color: #fff; font-size: 15px; font-weight: bold; }
.home-login-bar.logged .hl-btn { padding: 5px 14px; font-size: 13px; }  
@media (max-width: 640px) { .hl-field input { width: 64px; } .hl-btn { padding: 0 12px; } .home-login-bar.logged .hl-btn { padding: 0 10px; } }

.gs2-section { margin: 14px 0; }
.gs2-title-stage { display: flex; align-items: center; gap: 10px; padding: 0 4px; margin-bottom: 10px; }
.gs2-title-text {
  font-size: 19px; font-weight: 800; color: var(--dark);
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.gs2-brand { font-size: 13px; color: var(--muted); }
.gs2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-grad); }

.ad-banner { border-radius: 12px; overflow: hidden; }
.link-ads-wrap { margin: 14px 0; }
.link-ads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link-ads-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.link-ads-item img { display: block; width: 100%; height: 130px; object-fit: cover; }
.gallery-cap {
  padding: 8px 12px; font-size: 13px; color: var(--text); background: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gallery-item { display: block; }

.list-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.list-crumb a { color: var(--muted); }
.list-crumb a:hover { color: var(--primary); }

.search-panel { padding: 22px 18px; }
.search-box { display: flex; gap: 10px; }
.search-box input {
  flex: 1; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #e2d9cc;
  background: #fdfbf8; outline: none; font-size: 15px;
}

.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 95, 0, .14); }
.search-box button { border: 0; border-radius: 12px; padding: 0 24px; background: var(--primary-grad); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(255, 95, 0, .28); }

.user-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0; padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #17100b, #3a1c0a 55%, #571d08);
  border: 1px solid rgba(245, 185, 66, .32);
  color: #fff; box-shadow: var(--shadow);
}

.user-name { font-size: 20px; font-weight: 800; }
.user-sub { margin-top: 5px; font-size: 13px; color: rgba(255, 233, 214, .85); }
.user-sub b { color: var(--gold); }

.user-nav {
  display: flex; gap: 6px; margin: 14px 0; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.user-nav a {
  flex: 1; text-align: center; padding: 9px 8px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s;
  scroll-snap-align: center;
}

.user-nav a.is-on, .user-nav a.on { background: var(--primary-grad); color: #fff; box-shadow: 0 3px 10px rgba(255, 95, 0, .3); flex: 1.2; padding-left:18px;padding-right:18px;}
.user-nav .user-nav-exit { color: #c1272d; }

.kv { display: flex; flex-direction: column; margin-bottom: 16px; }
.kv-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}

.kv-item span:first-child { color: var(--muted); }

.stat-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0;
}

.stat-panel .stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  text-align: center; padding: 14px 8px; box-shadow: var(--shadow-sm);
}

.stat-panel .stat-num { font-size: 20px; font-weight: 800; color: var(--primary); }
.stat-panel .stat-lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.record-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
}

.record-item:last-child { border-bottom: 0; }
.record-item .ri-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.service-chat {
  display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 138px);
  min-height: 420px;
}

.chat-head { padding: 14px 16px; font-weight: 800; color: #fff; background: var(--primary-grad); border-radius: var(--radius) var(--radius) 0 0; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #faf6f0; }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

.chat-msg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.65; }
.chat-msg .cm-time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.chat-msg.is-user { align-self: flex-end; background: var(--primary-grad); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.is-user .cm-time { color: rgba(255, 255, 255, .75); text-align: right; }
.chat-msg.is-admin { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }

.chat-form {
  display: flex; gap: 10px; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}

.chat-form textarea {
  flex: 1; resize: none; height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #e2d9cc; outline: none; background: #fdfbf8;
}

.chat-form .chat-tools { display: flex; gap: 8px; align-items: center; }
.chat-form .chat-img-btn {
  width: 46px; height: 46px; border-radius: 10px; border: 1px dashed #d8c9b2;
  background: #fdf8f0; color: var(--muted); font-size: 20px; display: flex; align-items: center; justify-content: center;
}

.chat-form .chat-send {
  height: 46px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--primary-grad); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(255, 95, 0, .28);
}

.service-offline {
  text-align: center; padding: 40px 16px; color: var(--muted);
  border: 1px dashed #d8c9b2; border-radius: 12px; background: #fdf8f0;
}

.service-offline b { color: var(--primary); font-size: 17px; display: block; margin-bottom: 8px; }

.kj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kj-tabs a, .kj-tabs button {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 600;
}

.kj-tabs a.is-on, .kj-tabs button.is-on { background: var(--primary-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(255, 95, 0, .28); }
.kj-year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.kj-year-tabs a, .kj-year-tabs button { padding: 5px 13px; border-radius: 8px; font-size: 13px; background: #f1ece4; color: var(--muted); }
.kj-year-tabs a.is-on { background: var(--dark); color: var(--gold); }

.kjls-head { font-size: 14px; color: var(--muted); padding: 8px 2px; }
.kjls-head b { color: var(--primary-deep); font-size: 16px; }
.kjls-list { display: flex; flex-direction: column; }
.kjls-row { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.kjls-row:last-child { border-bottom: 0; }
.kjls-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 8px; }
.kjls-issue { font-weight: 800; color: var(--dark); }
.kjls-date { color: var(--muted); }
.kjls-balls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kjls-ball {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.kjls-ball b { font-size: 15px; line-height: 1.1; }
.kjls-ball i { font-size: 9px; font-style: normal; opacity: .92; line-height: 1; }
.kjls-ball.kjls-red { background: linear-gradient(135deg, #ff5f5f, #d82f2f); }
.kjls-ball.kjls-blue { background: linear-gradient(135deg, #4a7dff, #2456c9); }
.kjls-ball.kjls-green { background: linear-gradient(135deg, #3ecf6e, #1f9e4c); }
.kjls-plus { font-size: 18px; color: var(--muted); font-weight: 800; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-float-header .site-header-inner { padding: 0 10px !important; }  
  .left-logo-text { font-size: 17px; }
  .right-wrap .home-link { padding: 6px 12px; font-size: 13.5px; }
  .wrap { padding: 0 2px; }
  body { font-size: 14.5px; }
  .article-title { font-size: 14.5px; }
  .article-detail { padding: 14px; }
  .article-content { font-size: 15px; }
  .stat-panel { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .link-ads-grid { gap: 10px; }
  .link-ads-item img { height: 96px; }
}

@media (min-width: 861px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
}

@media (max-width: 860px) {
  body { padding-bottom: 64px; }
}

.kj-widget-root { background: var(--dark); border-radius: var(--radius); overflow: hidden; }
.kj-widget-tabbar { display: flex; gap: 6px; padding: 12px 12px 0; }
.kj-widget-tabbar button {
  padding: 8px 18px; border-radius: 9px 9px 0 0; border: 0;
  background: rgba(255, 255, 255, .08); color: rgba(255, 233, 214, .75); font-weight: 700; font-size: 14px;
}

.kj-widget-tabbar button.is-on { background: #fff; color: var(--primary); }
.kj-widget-body { padding: 12px; }
.kj-widget-row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.kj-widget-row:last-child { border-bottom: 0; }
.kj-widget-issue { color: var(--gold); font-size: 13px; font-weight: 700; width: 74px; flex: none; }
.kj-widget-balls { display: flex; gap: 5px; flex-wrap: wrap; }
.kj-widget-ball {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.kj-widget-ball.b-red { background: linear-gradient(135deg, #ff5f5f, #d82f2f); }
.kj-widget-ball.b-blue { background: linear-gradient(135deg, #4a7dff, #2456c9); }
.kj-widget-ball.b-green { background: linear-gradient(135deg, #3ecf6e, #1f9e4c); }
.kj-widget-more { display: block; text-align: center; color: var(--gold); font-size: 12.5px; padding: 9px 0 2px; }

.kj-strip-root {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px;
  background: linear-gradient(90deg, #17100b, #2a1206);
  color: rgba(255, 233, 214, .9); font-size: 13px; overflow: hidden; white-space: nowrap;
}

.kj-strip-title { color: var(--gold); font-weight: 800; flex: none; }
.kj-strip-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
.kj-strip-items { display: inline-flex; gap: 26px; align-items: center; height: 100%; }
.kj-strip-item { display: inline-flex; align-items: center; gap: 6px; }
.kj-strip-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700;
}

.kj-strip-ball.ball-1, .kj-strip-ball.ball-2, .kj-strip-ball.ball-3,
.kj-strip-ball.ball-4, .kj-strip-ball.ball-5, .kj-strip-ball.ball-6,
.kj-strip-ball.ball-7 { background: linear-gradient(135deg, #ff5f5f, #d82f2f); }

.formula-charts-section { margin-top: 14px; }
.formula-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.formula-tab {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600;
}

.formula-tab.is-on { background: var(--primary-grad); color: #fff; border-color: transparent; }
.formula-stage { display: block; width: 100%; border: 0; border-radius: 12px; overflow: hidden; padding: 0; background: #000; }
.formula-stage img { display: block; width: 100%; }

.live-draw-section { margin-top: 14px; }
.live-draw-toggle {
  width: 100%; text-align: left; border: 0; background: none; color: var(--dark);
  cursor: pointer;
}

.live-draw-body { margin-top: 10px; }
.live-draw-frame { border: 0; border-radius: 12px; }

.duilianpt { border-radius: 10px; }
.duilianpt1 { border-radius: 10px; }

.bbs-slogan-row td {
  font-size: 13.5px; font-weight: 700; color: #8a2c00;
  background: linear-gradient(90deg, #fff3e2, #ffe6cf) !important;
}

.paywall-box {
  border: 1.5px dashed #f0c896; border-radius: 12px; background: #fffaf2;
  padding: 18px; text-align: center; margin: 16px 0;
}

.paywall-box .paywall-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.paywall-box .paywall-tip { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }


.site-header-inner { justify-content: space-between; }
.site-nav { display: none !important; }

.post-list li a {
  display: flex; flex-wrap: wrap; align-items: baseline;
  width: 100%; text-decoration: none;
}
.post-list .post-name {
  flex: 1 1 100%;
  font-size: 17px; font-weight: 700; line-height: 1.5;
  margin: 3px 0 5px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}
.post-list .post-plate, .post-list .am-issue, .post-list .post-author {
  flex: none; margin-right: 6px;
}

.kj-top-banner { margin-bottom: 10px !important; }

.bbs-foot-promo {
  position: relative;
  margin: 22px 0 14px !important;
  padding: 20px 16px 18px !important;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff7ec 0%, #fff 55%, #fff3e0 100%);
  border: 2px solid var(--primary, #ff6a00);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, .12), 0 10px 30px rgba(255, 95, 0, .16);
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.bbs-foot-promo::before {
  content: "VIP 内容";
  position: absolute; top: -11px; left: 16px;
  padding: 2px 12px; border-radius: 20px;
  background: linear-gradient(90deg, #ff5f3d, #ff2e2e);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(255, 47, 47, .4);
  animation: payTagFloat 2.4s ease-in-out infinite;
}
@keyframes payTagFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.bbs-foot-promo p { margin: 0 !important; padding: 0 !important; line-height: 1.6 !important; }
.bbs-foot-promo .pay-panel {
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px dashed rgba(255, 106, 0, .45);
}
.bbs-foot-promo .pay-issue {
  color: var(--primary-deep, #c8301a); font-size: 16px; font-weight: 800;
  margin-bottom: 8px; word-break: break-all; letter-spacing: .5px;
}
.bbs-foot-promo .pay-info { margin: 10px 0 6px; }
.bbs-foot-promo .pay-balance { color: #7a4a12; font-size: 14px; font-weight: 600; margin: 10px 0 12px; }
.bbs-foot-promo .btn-primary {
  color: #fff !important;
  background: linear-gradient(90deg, #ff5f3d, #ff2e2e) !important;
  border: 0 !important;
  font-size: 16px !important; font-weight: 800 !important; letter-spacing: 2px;
  box-shadow: 0 0 0 0 rgba(255, 47, 47, .55) !important;
  animation: payBtnGlow 1.5s ease-in-out infinite !important;
}
@keyframes payBtnGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 47, 47, .55), 0 6px 18px rgba(255, 47, 47, .35); }
  50%  { box-shadow: 0 0 0 8px rgba(255, 47, 47, 0), 0 6px 22px rgba(255, 47, 47, .5); }
  100% { box-shadow: 0 0 0 0 rgba(255, 47, 47, .55), 0 6px 18px rgba(255, 47, 47, .35); }
}
.bbs-foot-promo .bbs-paid-info {
  margin: 12px 0 0 !important; padding-top: 12px !important;
  border-top: 2px dashed var(--primary, #ff6a00);
}
.bbs-foot-promo .bbs-paid-author, .bbs-foot-promo .bbs-paid-count {
  margin: 0 0 6px !important; font-size: 14px; color: #333; line-height: 1.6 !important;
}
.bbs-foot-promo .bbs-paid-author .name { color: var(--primary-deep, #c8301a); font-weight: 800; }
.bbs-foot-promo .bbs-paid-count .num { color: var(--primary-deep, #c8301a); font-weight: 800; }
.bbs-foot-promo .bbs-paid-count .coin { color: #1565c0; font-weight: 800; }

.latest-unlock.is-locked { cursor: pointer; }
.unlock-mosaic-full {
  display: inline-block; width: 100%;
  padding: 22px 12px; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #3a3a3a 0 8px, #4b4b4b 8px 16px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.unlock-mosaic-tip {
  display: block; text-align: center;
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px;
  animation: payTipPulse 1.6s ease-in-out infinite;
}
@keyframes payTipPulse { 0%,100% { opacity: 1; } 50% { opacity: .62; } }
.unlock-coin { color: #ffd24a; font-weight: 900; font-size: 17px; }

.user-card form .btn-primary,
.user-card form .btn,
.user-card .form-item + .btn-primary {
  display: block; margin: 6px auto 0;
}
.user-card form .btn-primary {
  width: fit-content; min-width: 160px;
  text-align: center;
}

.flows-table { width: 100%; table-layout: auto; }
.flows-table th, .flows-table td {
  white-space: nowrap; padding: 7px 6px; font-size: 12.5px;
}
.flows-table td { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.purchases-table th, .purchases-table td {
  white-space: nowrap; padding: 8px 8px; font-size: 13px;
}
.purchases-table td:first-child { white-space: normal; min-width: 150px; max-width: 320px; }


.post-list .post-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-all;
  line-height: 1.5;
}
.post-list li a .post-plate,
.post-list li a .am-issue,
.post-list li a .post-author {
  flex: none;
}
.post-list li a .post-badge,
.post-list li a .post-end-gif {
  flex: none;
  margin-left: 6px;
}

.article-col-ad { margin: 12px 0; }
#articleTopAds { margin: 8px 0 10px; }  
.article-col-ad .ad-banner {
  display: block; border-radius: 10px; overflow: hidden;
  text-decoration: none;
}
.article-col-ad .ad-banner img { display: block; width: 100%; }
.article-col-ad .ad-banner span {
  display: block; padding: 10px 12px;
  background: linear-gradient(90deg, #fff3e6, #ffe8d6);
  color: #c8301a; font-weight: 700; text-align: center;
}

.pay-marquee {
  overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, #ff5f3d, #ff2e2e);
  color: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  padding: 6px 0; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(255, 47, 47, .3);
}
.pay-marquee span {
  display: inline-block; padding-left: 100%;
  animation: payMarquee 14s linear infinite;
}
@keyframes payMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.bbs-foot-promo {
  position: relative;
  margin: 22px 0 14px !important;
  padding: 20px 16px 18px !important;
  border-radius: 16px;
  border: 4px solid transparent;
  background:
    linear-gradient(#fffdf7, #fffdf7) padding-box,
    linear-gradient(90deg, #ff2e2e 0%, #ff8c00 25%, #ffe600 50%, #00c4ff 75%, #ff2e2e 100%) border-box;
  background-size: auto auto, 220% 100%;
  background-position: 0 0, 0% 0;
  animation: payColorFlow 3.5s linear infinite;
  box-shadow: 0 0 0 1px rgba(255, 80, 0, .25), 0 0 22px rgba(255, 80, 0, .38), 0 12px 30px rgba(255, 60, 0, .22);
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
@keyframes payColorFlow {
  0%   { background-position: 0 0, 0% 0; }
  100% { background-position: 0 0, 220% 0; }
}

.form-card form .btn-primary,
.form-card .form-item + .btn-primary,
.form-card form button[type="submit"] {
  display: block;
  margin: 6px auto 0;
  width: fit-content;
  min-width: 160px;
  text-align: center;
}

.home-col-ad { margin: 10px 0 4px; }
.home-col-ad .ad-banner {
  display: block; border-radius: 10px; overflow: hidden;
  text-decoration: none;
}
.home-col-ad .ad-banner img { display: block; width: 100%; }
.home-col-ad .ad-banner span {
  display: block; padding: 10px 12px;
  background: linear-gradient(90deg, #fff3e6, #ffe8d6);
  color: #c8301a; font-weight: 700; text-align: center;
}


.sx-wrap-table td span.red,
.sx-wrap-table td span.blue,
.sx-wrap-table td span.green {
  margin: 2px 3px;
}
.sx-wrap-table td { line-height: 2; }

.post-list li a {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.post-list .post-plate,
.post-list .am-issue,
.post-list .post-author {
  font-size: 16px;
}
.post-list .post-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
}
.post-list .post-badge { font-size: 14px; }
.post-list .post-end-gif { font-size: 13px; }

.sx-wrap-table td.a-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sx-wrap-table td.a-left .sx-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sx-wrap-table td.a-left span.red,
.sx-wrap-table td.a-left span.blue,
.sx-wrap-table td.a-left span.green {
  margin: 0;
}


.post-list { text-align: center; }
.post-list li { padding: 3px; background: #fff; }
.post-list li a {
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #f0d8b8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}
.post-list .post-plate,
.post-list .am-issue,
.post-list .post-author,
.post-list .post-name,
.post-list .post-badge,
.post-list .post-end-gif {
  display: inline;
  flex: none;
  font-size: inherit;
  white-space: nowrap;
  overflow: visible;
}

.post-author.ys2-red { color: #ff0000; font-weight: 800; }
.post-author.ys2-blue { color: #0000ff; font-weight: 800; }
.post-author.ys2-green { color: #0caa00; font-weight: 800; }
.post-author.ys2-purple { color: #6a0dad; font-weight: 800; }

#moreTopAds { margin: 10px 0 4px; }

.sx-wrap-table td.a-left { gap: 4px; }
.sx-wrap-table td.a-left .sx-balls { gap: 4px; }

.post-list li { text-align: center; }
.post-list li a {
  width: 90%;
  margin: 0 auto;
  height: 42px;
  line-height: 42px;
  font-size: clamp(15px, 4.6vw, 20px);
}
.post-list .post-badge { font-size: 0.85em; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 ; }
.site-header-inner { width: 100%; max-width: 800px; margin: 0 auto; padding: 0; }
@media (min-width: 861px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 2px; }
}


#homeTopAds { margin: 10px 0 10px; text-align: center; }  
#homeTopAds .ad-banner { display: inline-block; max-width: 100%; }
#homeTopAds .ad-banner img { display: block; margin: 0 auto; width: auto; max-width: 100%; }

.post-list li { border-bottom: 0 !important; }
.post-list li a { width: 100%; }
.author-banner a.author-name { text-decoration: none; cursor: pointer; }

.post-list li a {
  height: 50px;
  line-height: 50px;
  font-size: clamp(16px, 5vw, 22px);
  border-radius: 12px;
}

.author-sub {
  color: #ffd97a;
  text-align: center;
  background: rgba(0, 0, 0, .35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.kj-top-banner {
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep, #c62828));
  color: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 800;
  letter-spacing: 1px;
}
.author-sub {
  color: #fff;
  background: var(--primary-grad, linear-gradient(90deg, #ff7a00, #ff2e2e));
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}


.author-sub { font-size: 22px; }

.bbs-foot-promo {
  border: 5px solid transparent;
  background:
    linear-gradient(#fffdf7, #fffdf7) padding-box,
    linear-gradient(90deg, #ff2e2e 0%, #ff8c00 25%, #ffe600 50%, #00c4ff 75%, #ff2e2e 100%) border-box;
  background-size: auto auto, 240% 100%;
  background-position: 0 0, 0% 0;
  animation: payColorFlow 3s linear infinite;
  box-shadow: 0 0 0 2px rgba(255, 80, 0, .25), 0 0 26px rgba(255, 80, 0, .45), 0 14px 34px rgba(255, 60, 0, .28);
}
.bbs-foot-promo::before { content: none; }

.bbs-kefu-block { padding: 4px 0; }
.bbs-kefu-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.bbs-kefu-title .brand { color: var(--primary-deep, #c62828); }
.bbs-kefu-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary, #ff6a00), var(--primary-deep, #c62828));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 90, 20, .35);
}
.bbs-kefu-note { font-size: 13px; color: #777; margin: 8px 0 10px !important; }
.bbs-coin-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.bbs-coin-list .item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #f0d8b8;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 14px;
  text-align: center;
}
.bbs-coin-list .item .yen { color: var(--primary-deep, #c62828); font-weight: 800; }
.bbs-coin-list .item .coin { color: #1565c0; font-weight: 800; }
.bbs-foot-promo .bbs-tip, .bbs-foot-promo .bbs-warn { font-size: 13.5px; color: #555; margin: 8px 0 !important; }
.bbs-label { color: var(--primary-deep, #c62828); font-weight: 800; }

.home-promo-banner {
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
  border-radius: var(--radius);
  box-shadow: none;
}

.kj-widget-wrap { border-radius: 0; }
.home-promo-banner {
  margin: -16px;
  width: calc(100% + 32px);
  border-radius: 0;
  box-shadow: none;
}

.service-chat {
  height: calc(100vh - var(--header-h) - 72px);   
  height: calc(100dvh - var(--header-h) - 72px);  
  min-height: 360px;
  max-height: calc(100dvh - var(--header-h) - 72px);
}
.search-panel { margin-top:20px; }  

.kj-widget-wrap { border-radius: var(--radius); }  
.home-promo-banner {
  margin: -16px;
  width: calc(100% + 32px);
  max-width: calc(100% + 32px);
  border-radius: var(--radius);
  box-shadow: none;
}


.service-chat {
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.chat-head {
  background: var(--primary-grad);
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 0;
}
.chat-head .sound-toggle {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.chat-list { background: var(--card); padding: 12px; gap: 12px; }
.chat-empty { color: var(--muted); padding: 50px 0; font-size: 13px; }
.chat-msg { max-width: 82%; display: flex; gap: 8px; padding: 0; background: none; border: 0; font-size: 14px; line-height: 1.55; }
.chat-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.is-admin { align-self: flex-start; background: none; border: 0; box-shadow: none; }
.chat-msg .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.chat-msg.is-admin .avatar { background: var(--primary-grad); }
.chat-msg.is-me .avatar { background: linear-gradient(135deg, #334155, #64748b); }
.msg-main { min-width: 0; max-width: 76%; }
.msg-name { font-size: 11px; color: var(--muted); margin: 0 0 3px 2px; }
.chat-msg.is-admin .msg-name { text-align: left; margin: 0 0 3px 2px; }
.chat-msg.is-me .msg-name { text-align: right; margin: 0 2px 3px 0; }
.msg-bubble {
  display: inline-block; padding: 8px 12px; border-radius: 12px;
  word-break: break-word; line-height: 1.55; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.chat-msg.is-me .msg-bubble { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--text); }
.chat-msg.is-admin .msg-bubble {
  background: none; border: 0; box-shadow: none; padding: 0; color: var(--text); border-radius: 0;
}
.msg-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-msg.is-admin .msg-time { text-align: left; }
.chat-msg.is-me .msg-time { text-align: right; }
.chat-form { border-top: 1px solid var(--line); background: var(--card); border-radius: 0; }
.chat-form textarea {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  min-height: 42px; height: auto;
}
.chat-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 0, 0, .06); }
.chat-img-btn { border: 1px dashed var(--line); background: var(--card); color: var(--primary); }
.chat-send { background: var(--primary-grad); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }

html, body { overflow-x: hidden; }

.left-logo { box-shadow: none; }
.kj-widget-wrap {
  margin-top: 0;
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
}
.home-promo-banner { border-radius: 0; }

.home-promo-banner { display: block; width: 100%; max-width: 100%; margin: 0; box-shadow: none; }

