
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fbf3e4;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(212,175,55,.10) 0 220px, transparent 220px),
    radial-gradient(circle at 88% 26%, rgba(200,16,46,.06) 0 260px, transparent 260px);
  color: #3b2f2f;
  font-size: 15px;
  line-height: 1.6;
}
a { color: #c8102e; text-decoration: none; }
a:hover { color: #9f0e26; }
img { max-width: 100%; display: block; }


.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(14px, calc((100% - 1092px) / 2));
  padding-right: max(14px, calc((100% - 1092px) / 2));
}


.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #a60f2d 0%, #c8102e 55%, #d4243a 100%);
  box-shadow: 0 2px 12px rgba(150, 10, 40, .28);
  border-bottom: 1px solid rgba(212,175,55,.55);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; gap: 8px; flex-wrap: nowrap;
}
.logo {
  color: #fff; font-size: 19px; font-weight: 800; white-space: nowrap;
  letter-spacing: 1px; flex: 0 0 auto;
  text-shadow: 0 1px 2px rgba(120,0,20,.35);
}
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: #ffe9d6; font-size: 13px; padding: 6px 9px; border-radius: 16px;
  white-space: nowrap; flex: 0 0 auto;
}
.main-nav a.on, .main-nav a:hover {
  color: #fff; background: linear-gradient(135deg, #d4af37, #c9a227);
  box-shadow: 0 1px 4px rgba(150,110,20,.35);
}


.nav-user { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.nav-balance {
  background: linear-gradient(135deg, #d4af37, #c9a227); color: #7c1d06; font-size: 13px; font-weight: 700;
  padding: 5px 13px; border-radius: 16px; white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(120,80,10,.35), 0 1px 3px rgba(120,80,10,.3);
}
.nav-balance:active { filter: brightness(.94); }
.nav-mini {
  color: #ffe9d6; font-size: 13px; padding: 5px 8px; border-radius: 6px; white-space: nowrap;
}
.nav-mini-strong { color: #7c1d06; background: linear-gradient(135deg, #ffe9b0, #f7d26e); font-weight: 600; }
.nav-mini:active { background: rgba(255,255,255,.14); }


.bottom-nav {
  display: flex;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  width: 100%;
  background: #fffdf7;
  border-top: 1px solid #f0d9a0;
  box-shadow: 0 -3px 14px rgba(160,90,20,.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 7px 0 5px; color: #b08d57; font-size: 11px; min-width: 0;
}
.bn-item.on { color: #c8102e; }
.bn-item:active { background: #fff4df; }
.bn-label { line-height: 1; white-space: nowrap; }
.bn-icon-wrap { position: relative; display: inline-block; line-height: 0; }
.bn-badge {
  position: absolute; top: -6px; right: -12px; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff;
  font-size: 10px; text-align: center; box-sizing: border-box;
}

.main { min-height: 60vh; padding-top: 16px; padding-bottom: 66px; }


.flash {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px;
}
.flash-success { background: #fdf6e3; color: #8a5a00; border: 1px solid #eed68a; }
.flash-error { background: #fdecec; color: #b91c1c; border: 1px solid #f3b7b7; }


.section {
  background: #fffdf8;
  border: 1px solid #f0dcc0;
  border-top: 3px solid #d4af37;
  border-radius: 14px;
  padding: 14px 14px 8px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(160,90,20,.08);
}
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.section-head h2 {
  font-size: 17px; border-left: 4px solid #c8102e; padding-left: 10px; line-height: 1.2;
  color: #8f0f26; font-weight: 700;
}
.section-head .more { font-size: 13px; color: #b08d57; white-space: nowrap; }

.article-list { list-style: none; }
.article-item {
  display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #f0dcc0; align-items: flex-start;
}
.article-item:last-child { border-bottom: none; }
.thumb { width: 96px; height: 66px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #f3e3c3; border: 1px solid #f0dcc0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-body { min-width: 0; flex: 1; }
.item-body .title { color: #4a2530; font-size: 15px; font-weight: 600; display: block; word-break: break-word; }
.item-body .meta { color: #b08d57; font-size: 12px; margin-top: 6px; }

.tag-paid {
  display: inline-block; background: linear-gradient(135deg, #fde3c8, #fbd6b4); color: #c2410c;
  border: 1px solid #f3b56a; font-size: 11px; padding: 1px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: 1px; font-weight: 600; white-space: nowrap;
}
.empty { color: #b08d57; text-align: center; padding: 24px 0; font-size: 14px; }


.crumb { color: #b08d57; font-size: 13px; margin-bottom: 12px; word-break: break-all; }
.crumb a { color: #8a5a3b; }
.pager {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 12px 0 6px; font-size: 14px;
}
.pager a { color: #c8102e; padding: 4px 10px; border: 1px solid #f0dcc0; border-radius: 14px; background: #fffdf8; }
.pg-info { color: #b08d57; }


.article-detail {
  background: #fffdf8; border: 1px solid #f0dcc0; border-radius: 14px;
  padding: 18px 16px; box-shadow: 0 2px 10px rgba(160,90,20,.08);
}
.article-title { font-size: 21px; line-height: 1.4; margin-bottom: 8px; color: #5c1a28; word-break: break-word; }
.article-meta {
  color: #b08d57; font-size: 13px; padding-bottom: 12px;
  border-bottom: 1px dashed #f0dcc0; margin-bottom: 14px; word-break: break-all;
}
.article-content { font-size: 15px; color: #46332f; word-break: break-word; }
.article-content p { margin-bottom: 10px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 10px; }
.article-content blockquote { border-left: 4px solid #d4af37; padding-left: 12px; color: #8a6a3b; margin: 10px 0; background: #fdf6e3; border-radius: 0 8px 8px 0; padding: 8px 12px; }
.article-content pre, .article-content code { background: #f6ecdb; border-radius: 6px; font-family: Consolas, Monaco, monospace; font-size: 13px; }
.article-content pre { padding: 10px; overflow-x: auto; margin-bottom: 10px; max-width: 100%; }
.article-content code { padding: 2px 5px; }
.article-content pre code { padding: 0; background: none; }
.article-content h2, .article-content h3, .article-content h4 { margin: 14px 0 8px; line-height: 1.4; color: #8f0f26; }
.article-content a { color: #c8102e; }
.paid-preview { color: #8a6a3b; }
.dots { text-align: center; color: #c9a227; letter-spacing: 4px; }
.ok-text { color: #b45309; font-weight: 600; }
.err-text { color: #dc2626; }
.gray-text { color: #b08d57; }


.pay-panel {
  margin-top: 16px; border: 2px dashed #d4af37; background: linear-gradient(180deg, #fff6e0, #ffefd0);
  border-radius: 14px; padding: 16px; text-align: center;
}
.pay-issue { color: #a60f2d; font-size: 15px; font-weight: 700; margin-bottom: 8px; word-break: break-all; }
.pay-price { font-size: 27px; color: #c8102e; font-weight: 800; }
.pay-tip { color: #8a6a3b; font-size: 13px; margin: 4px 0 10px; }
.pay-balance { color: #5c1a28; font-size: 14px; margin-bottom: 12px; }


.btn {
  display: inline-block; padding: 9px 18px; border: none; border-radius: 20px; cursor: pointer;
  font-size: 14px; text-align: center; background: #f2e3c6; color: #5c3a1a; line-height: 1.5;
}
.btn-primary {
  background: linear-gradient(135deg, #d4243a, #a60f2d); color: #fff;
  box-shadow: inset 0 -2px 0 rgba(90,0,15,.25), 0 2px 6px rgba(180,20,50,.3);
  border: 1px solid rgba(212,175,55,.65);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: #fffdf8; color: #c8102e; border: 1px solid #ecc58b; }
.btn-danger { background: #fdecec; color: #dc2626; border: 1px solid #f3b7b7; }
.btn-sm { padding: 4px 12px; font-size: 12px; border-radius: 14px; }
.btn-block { display: block; width: 100%; }

.form-card {
  background: #fffdf8; border: 1px solid #f0dcc0; border-top: 3px solid #d4af37;
  border-radius: 14px; padding: 20px 18px; max-width: 480px; margin: 10px auto 20px;
  box-shadow: 0 2px 10px rgba(160,90,20,.08);
}
.form-card h1 { font-size: 19px; margin-bottom: 14px; text-align: center; color: #8f0f26; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #7a5236; margin-bottom: 6px; }
.form-item input[type=text], .form-item input[type=password], .form-item input[type=number],
.form-item select, .form-item textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #e0c9a6; border-radius: 10px; font-size: 15px;
  background: #fffdf8; font-family: inherit; max-width: 100%;
}
.form-item textarea { resize: vertical; }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,.22);
}
.form-tip { font-size: 13px; color: #8a6a3b; text-align: center; margin-top: 12px; }
.form-tip.gray { color: #b08d57; }
.req { color: #dc2626; }
.hint { color: #b08d57; font-size: 12px; margin-top: 4px; }


.user-head {
  background: linear-gradient(135deg, #a60f2d, #d4243a); color: #fff; border-radius: 14px;
  border: 1px solid rgba(212,175,55,.6);
  padding: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
  box-shadow: inset 0 -3px 0 rgba(120,10,30,.25);
}
.user-name { font-size: 18px; font-weight: 700; }
.user-sub { font-size: 12px; opacity: .92; margin-top: 2px; }
.user-nav {
  display: flex; background: #fffdf8; border: 1px solid #f0dcc0; border-radius: 14px;
  padding: 4px; gap: 2px; margin-bottom: 14px;
  overflow-x: auto; box-shadow: 0 1px 4px rgba(160,90,20,.06); scrollbar-width: none;
}
.user-nav::-webkit-scrollbar { display: none; }
.user-nav a {
  flex: 1; text-align: center; padding: 9px 4px; font-size: 13px; color: #7a5236;
  border-radius: 10px; white-space: nowrap; min-width: 0;
}
.user-nav a.on { background: linear-gradient(135deg, #c8102e, #a60f2d); color: #fff; }

.kv { margin-bottom: 16px; }
.kv-item {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed #f0dcc0; font-size: 14px;
}
.kv-item span { color: #8a6a3b; flex: 0 0 auto; }
.kv-item b { font-weight: 600; text-align: right; word-break: break-all; }


.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card {
  background: #fffdf8; border: 1px solid #f0dcc0; border-top: 2px solid #d4af37;
  border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 1px 4px rgba(160,90,20,.06);
}
.stat-num { font-size: 18px; font-weight: 800; color: #c8102e; }
.stat-label { font-size: 12px; color: #b08d57; margin-top: 2px; }


.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #f3e4c9; white-space: nowrap; }
.table th { color: #7a5236; font-weight: 600; background: #fdf3dd; }
.table td:first-child, .table th:first-child { padding-left: 12px; }


.service-page { max-width: 760px; margin: 0 auto; }
.service-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #a60f2d, #d4243a); color: #fff;
  border: 1px solid rgba(212,175,55,.6); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.service-head h1 { font-size: 18px; }
.service-sub { font-size: 12px; opacity: .88; margin-top: 2px; display: block; }
.sound-toggle {
  background: rgba(255,255,255,.16); color: #ffe9d6; border: 1px solid rgba(255,240,200,.5);
  border-radius: 18px; padding: 6px 14px; font-size: 12px; cursor: pointer; white-space: nowrap;
  flex: 0 0 auto;
}
.sound-toggle:active { background: rgba(255,255,255,.28); }

.chat-panel {
  background: #fffdf8; border: 1px solid #f0dcc0; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(160,90,20,.1);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-list {
  height: 52vh; min-height: 340px; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #faf1e0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,.10) 0 120px, transparent 120px),
    radial-gradient(circle at 80% 70%, rgba(200,16,46,.05) 0 140px, transparent 140px);
}
.chat-empty { text-align: center; color: #b08d57; font-size: 13px; padding: 46px 0; }

.chat-msg { display: flex; gap: 8px; max-width: 84%; min-width: 0; }
.chat-msg.is-me { align-self: flex-start; }
.chat-msg.is-admin { align-self: flex-end; flex-direction: row-reverse; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(120,20,40,.2);
}
.chat-msg.is-me .avatar { background: linear-gradient(135deg, #d4af37, #c9a227); color: #7c1d06; }
.chat-msg.is-admin .avatar { background: linear-gradient(135deg, #d4243a, #a60f2d); }
.msg-main { min-width: 0; max-width: 100%; }
.msg-name { font-size: 11px; color: #b08d57; margin: 0 0 3px 2px; }
.chat-msg.is-admin .msg-name { text-align: right; margin: 0 2px 3px 0; }
.msg-bubble {
  padding: 9px 13px; border-radius: 12px; font-size: 14px; word-break: break-word; line-height: 1.55;
  box-shadow: 0 1px 2px rgba(120,20,40,.06);
}
.chat-msg.is-me .msg-bubble { background: #fff; border: 1px solid #ecc58b; border-top-left-radius: 4px; }
.chat-msg.is-admin .msg-bubble {
  background: linear-gradient(135deg, #c8102e, #a60f2d); color: #fff; border-top-right-radius: 4px;
}
.msg-time { font-size: 11px; color: #c9a227; margin-top: 2px; }
.chat-msg.is-admin .msg-time { text-align: right; }
.chat-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid #f0dcc0; align-items: flex-end;
  background: #fffdf8;
}
.chat-input textarea {
  flex: 1; min-width: 0; border: 1px solid #e0c9a6; border-radius: 10px; padding: 9px 12px;
  font-size: 14px; resize: none; font-family: inherit; min-height: 42px;
}
.chat-input textarea:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 2px rgba(212,175,55,.2); }


.paid-section { margin-top: 20px; }
.paid-divider {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: #c8102e; font-size: 13px; font-weight: 700;
}
.paid-divider::before, .paid-divider::after {
  content: ''; flex: 1; height: 1px; min-width: 8px;
  background: repeating-linear-gradient(90deg, #d4af37 0 6px, transparent 6px 10px);
}


.site-footer {
  background: linear-gradient(180deg, #7c1226, #5c0d1d); color: #e8c98f;
  margin-top: 24px; padding: 22px 0 calc(66px + env(safe-area-inset-bottom));
  border-top: 2px solid #d4af37;
}
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.link-cell {
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,.14); color: #ffe9b0;
  border: 1px solid rgba(212,175,55,.4); border-radius: 10px; padding: 12px 6px;
  font-size: 14px; text-align: center; min-height: 44px; min-width: 0; word-break: break-all;
}
.link-cell:active { background: rgba(212,175,55,.26); }
.copyright { text-align: center; font-size: 12px; margin-top: 16px; color: #d8b06a; }


.modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(90, 10, 25, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-mask[hidden] { display: none; }
.modal-box {
  background: #fffdf8; border: 1px solid #d4af37; border-radius: 14px; max-width: 640px; width: 100%;
  max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(90,10,25,.4);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #f0dcc0; flex: 0 0 auto;
}
.modal-title {
  font-size: 15px; font-weight: 600; color: #5c1a28;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px;
}
.modal-close {
  background: #fdf3dd; color: #7a5236; border: none; width: 30px; height: 30px;
  border-radius: 50%; font-size: 15px; cursor: pointer; flex: 0 0 auto; line-height: 1;
}
.modal-close:active { background: #f3e4c9; }
.modal-body { overflow-y: auto; display: flex; align-items: center; justify-content: center; background: #faf1e0; min-height: 80px; }
.modal-body img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }


.issue-tag {
  display: inline-block; background: linear-gradient(135deg, #d4af37, #c9a227); color: #7c1d06;
  font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 4px;
  margin-right: 6px; vertical-align: 1px; white-space: nowrap; font-weight: 600;
}
.article-title .issue-tag { font-size: 13px; padding: 3px 9px; vertical-align: 3px; }
.upd-tag {
  display: inline-block; font-size: 11px; line-height: 1.5; padding: 1px 6px;
  border-radius: 4px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; font-weight: 400;
}
.upd-yes { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.upd-no  { color: #dc2626; background: #fdecec; border: 1px solid #f3b7b7; }
.article-title .upd-tag { font-size: 13px; padding: 3px 9px; vertical-align: 3px; }
.notice-section {
  background: #fff6e0; border: 1px solid #eed68a; border-top: 3px solid #d4af37; border-radius: 14px;
}
.notice-section .section-head { border-bottom: 1px dashed #eed68a; }
.notice-section .section-head h2 { color: #a60f2d; }
.notice-section .article-content { padding: 4px 16px 14px; }




@media (max-width: 640px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  body { font-size: 15px; }
  .logo { font-size: 16px; }
  .nav-balance { padding: 5px 10px; font-size: 12px; }
  .nav-mini { font-size: 12px; padding: 5px 6px; }
  .main-nav a { font-size: 12px; padding: 6px 7px; }
  .section { padding: 12px 12px 6px; }
  .article-item { gap: 10px; }
  .thumb { width: 84px; height: 60px; }
  .article-title { font-size: 19px; }
  .article-detail { padding: 14px 12px; }
  .form-card { padding: 16px 14px; margin: 8px auto 16px; }
  .form-card input[type="text"],
  .form-card input[type="password"],
  .form-card input[type="number"],
  .form-card select,
  .form-card textarea { font-size: 16px; padding: 11px 10px; }
  .form-card .btn { width: 100%; margin-bottom: 8px; }
  .kv-item { font-size: 13px; padding: 7px 0; }
  .table th, .table td { padding: 8px 6px; font-size: 12px; }
  .chat-msg { max-width: 92%; }
  .chat-list { min-height: 300px; }
  .link-cell { font-size: 13px; padding: 10px 4px; }
  .user-nav a { padding: 9px 3px; }
}


@media (min-width: 641px) and (max-width: 900px) {
  body { font-size: 15.5px; }
  .thumb { width: 108px; height: 72px; }
}


@media (min-width: 901px) {
  body { font-size: 16px; }
  .thumb { width: 120px; height: 78px; }
  .article-item .title { font-size: 16px; }
  .article-detail { padding: 28px 32px; }
  .article-title { font-size: 26px; }
  .section { padding: 18px 20px 10px; }
}


@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-card:last-child { grid-column: auto; }
  .user-nav a { font-size: 12px; padding: 9px 2px; }
}


@media (max-width: 360px) {
  .logo { font-size: 15px; }
  .article-title { font-size: 17px; }
  .thumb { width: 76px; height: 56px; }
  .service-head { padding: 12px; }
  .sound-toggle { padding: 5px 10px; }
}


body {
  background-image:
    radial-gradient(circle at 15% 8%, rgba(212,175,55,.10) 0 220px, transparent 220px),
    radial-gradient(circle at 88% 26%, rgba(200,16,46,.06) 0 260px, transparent 260px),
    repeating-linear-gradient(0deg, rgba(212,175,55,.022) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(212,175,55,.022) 0 2px, transparent 2px 34px);
}
a, .btn, .bn-item, .link-cell, .nav-mini, .nav-balance, .sound-toggle {
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}


.site-header { box-shadow: 0 2px 14px rgba(150,10,40,.30), inset 0 -1px 0 rgba(255,230,160,.35); }
.logo { position: relative; padding-left: 14px; }
.logo::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 2px; transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, #ffe9b0, #d4af37);
  box-shadow: 0 0 6px rgba(212,175,55,.7);
}


.section-head h2 { position: relative; display: flex; align-items: center; }
.section-head h2::after {
  content: '◆'; color: #d4af37; font-size: 11px; margin-left: 7px;
  text-shadow: 0 0 4px rgba(212,175,55,.6);
}
.section { transition: box-shadow .22s ease, border-color .22s ease; }
.section:hover { box-shadow: 0 6px 18px rgba(160,90,20,.12); border-color: #e6c47f; }


.article-item { transition: background .18s ease; border-radius: 10px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.article-item:hover { background: rgba(212,175,55,.07); }
.item-body .title { transition: color .18s ease; }
.item-body .title:hover { color: #c8102e; }


.btn { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { box-shadow: inset 0 -2px 0 rgba(90,0,15,.25), 0 3px 8px rgba(180,20,50,.28); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: inset 0 -2px 0 rgba(90,0,15,.25), 0 4px 12px rgba(180,20,50,.36); }
.btn-outline:hover { background: #fff6e0; border-color: #d4af37; }


.form-item input, .form-item select, .form-item textarea {
  transition: border-color .18s ease, box-shadow .18s ease;
}


.user-nav a { transition: background .18s ease, color .18s ease; }
.user-head { box-shadow: inset 0 -3px 0 rgba(120,10,30,.25), 0 4px 14px rgba(150,10,40,.18); }
.stat-card { transition: transform .18s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(160,90,20,.14); }


.table tr { transition: background .15s ease; }
.table tbody tr:hover { background: #fdf3dd; }


.bn-item { position: relative; }
.bn-item.on::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #f5d887, #c9a227);
  box-shadow: 0 1px 4px rgba(201,162,39,.5);
}


.chat-msg { animation: chatIn .28s ease; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-input .btn { border-radius: 18px; padding: 9px 20px; }
.sound-toggle { transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.sound-toggle:hover { box-shadow: 0 0 0 2px rgba(255,233,214,.25); }


.modal-box { animation: popIn .24s ease; }
@keyframes popIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}


.flash { animation: slideIn .3s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


.pager a { transition: background .18s ease, color .18s ease, border-color .18s ease; }
.pager a:hover { background: #fff6e0; border-color: #d4af37; color: #a60f2d; }
.link-cell { transition: background .18s ease, border-color .18s ease, transform .15s ease; }
.link-cell:hover { background: rgba(212,175,55,.24); border-color: #d4af37; transform: translateY(-1px); }


.issue-tag, .upd-tag, .tag-paid { box-shadow: 0 1px 2px rgba(120,60,10,.10); }
.issue-tag { box-shadow: 0 1px 3px rgba(201,162,39,.35); }


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9b36a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c9a227; }
::-webkit-scrollbar-track { background: rgba(212,175,55,.08); }


.notice-section { transition: box-shadow .22s ease, border-color .22s ease; }
.notice-section:hover { box-shadow: 0 6px 18px rgba(201,162,39,.16); border-color: #e6c47f; }


.ad-banner {
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 6px; border: 1px solid #f0dcc0; border-left: 3px solid #d4af37;
  border-radius: 10px; overflow: hidden; background: #fff6e0; text-align: center;
  min-width: 0; transition: box-shadow .2s ease, border-color .2s ease;
}
.ad-banner:hover { box-shadow: 0 4px 12px rgba(201,162,39,.25); border-color: #d4af37; }
.ad-banner img { width: 100%; height: auto; max-height: 140px; object-fit: cover; }
.ad-banner span {
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  color: #a60f2d; font-size: 14px; font-weight: 700; padding: 10px 14px; width: 100%;
}
@media (max-width: 640px) {
  .ad-banner span { font-size: 13px; min-height: 40px; }
}


body {
  background-color: #8f0f26;                         
  background-image: url('../bg.jpg');                
  background-repeat: repeat;
  background-position: top left;
}

.section {
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 4px 18px rgba(90, 20, 20, .18);
}

.link-section { padding-bottom: 14px; }
.link-section .link-grid { margin-top: 2px; }
.link-cell {
  background: linear-gradient(135deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .08));
  color: #8a5a00;
  border: 1px solid #d9b56a;
  font-weight: 600;
}
.link-cell:hover {
  background: rgba(212, 175, 55, .30);
  border-color: #c9a227;
  color: #6b4400;
}

.ad-banner { margin: 0 0 16px; background: rgba(255, 246, 224, .97); }


.sound-diag {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 9999; background: #fff3cd; color: #7a5c00;
  border: 1px solid #e6c26a; border-radius: 8px; padding: 8px 14px;
  font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 92vw;
  display: none; line-height: 1.5;
}



.section { background: #ffffff; }


.section-head { justify-content: center; }
.section-head h2 {
  border-left: none;
  padding: 5px 22px;
  background: linear-gradient(135deg, #a60f2d, #d4243a);
  color: #ffffff;
  border-radius: 20px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(160, 20, 50, .28);
}
.section-head h2::after { content: none; }

.notice-section .section-head h2 {
  background: linear-gradient(135deg, #c9a227, #e8c25a);
  color: #4a3400;
  box-shadow: 0 2px 6px rgba(180, 140, 30, .3);
}


.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item {
  display: block; background: #fff; border: 1px solid #f0dcc0; border-radius: 10px;
  overflow: hidden; text-align: center; min-width: 0;
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}
.gallery-item:hover { box-shadow: 0 5px 14px rgba(160, 90, 20, .15); border-color: #d4af37; transform: translateY(-1px); }
.gallery-item img { width: 100%; height: 130px; object-fit: cover; }
.gallery-cap {
  display: block; padding: 6px 4px; font-size: 12px; color: #8a5a00;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 100px; }
}


@media (max-width: 640px) {
  .wrap { padding-left: 0; padding-right: 0; }
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .main { padding-top: 0; }
  .section {
    border-radius: 0;
    border-left: none; border-right: none;
    border-top: 3px solid #d4af37;
    margin-bottom: 10px;
  }
  .ad-banner { border-radius: 0; margin-bottom: 10px; }
}


.section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ad-banner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ad-banner:hover { border-color: #9ca3af; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ad-banner span { color: #374151; }
.link-cell {
  background: #ffffff; color: #374151;
  border: 1px solid #e5e7eb; font-weight: 500;
}
.link-cell:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }
.gallery-item { border-color: #e5e7eb; background: #ffffff; }
.gallery-item:hover { border-color: #9ca3af; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.gallery-cap { color: #374151; }
.article-item + .article-item { margin-top: 8px; }
.article-item:hover { background: #f9fafb; border-color: #d1d5db; }

.article-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #ffffff;
}
.article-item .title { margin: 0; }


@media (max-width: 640px) {
  .section { border-radius: 0; border-left: none; border-right: none; border-top: 1px solid #e5e7eb; }
  .ad-banner { border-radius: 0; }
  .article-item { border-radius: 6px; }
}



.wrap.main {
  background: #ffffff;
}
body {
  background-color: #8f0f26;
  background-image: url('../bg.jpg');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
}


.cat-tag {
  display: inline-block;
  background: linear-gradient(135deg, #c8102e, #a60f2d);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(160, 20, 50, .30);
}

.item-body .title { font-weight: 700; }
.item-body .title .issue-tag { font-weight: 600; }

.article-item { background: #ffffff; border: 1px solid #e5e7eb; }
.article-item:hover { border-color: #d1d5db; background: #fcfcfd; }


.service-page .chat-panel,
.form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
@media (max-width: 640px) {
  .wrap.main { padding-left: 0; padding-right: 0; }
}



.service-head {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.service-head h1 { color: #c8102e; }
.service-sub { color: #6b7280; }
.sound-toggle {
  background: #ffffff; color: #374151;
  border: 1px solid #d1d5db; border-radius: 6px;
}
.sound-toggle:active { background: #f3f4f6; }
.chat-panel { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: none; }
.chat-list {
  background: #ffffff;
  background-image: none;
}
.chat-empty { color: #9ca3af; }
.chat-input { background: #fafafa; }


.user-head {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #c8102e;
  color: #111827;
  box-shadow: none;
}
.user-name { color: #c8102e; }
.user-sub { color: #6b7280; }
.user-nav { background: #ffffff; border: 1px solid #e5e7eb; box-shadow: none; }
.user-nav a { color: #374151; }
.user-nav a.on { background: linear-gradient(135deg, #c8102e, #a60f2d); color: #fff; }
.form-card { background: #ffffff; border: 1px solid #e5e7eb; border-top: 3px solid #c8102e; box-shadow: none; }
.form-card h1 { color: #c8102e; }
.form-item label { color: #374151; }
.form-item input[type=text], .form-item input[type=password], .form-item input[type=number],
.form-item select, .form-item textarea { background: #ffffff; border-color: #d1d5db; }
.kv-item span { color: #6b7280; }



body.pg-home .wrap.main,
body.pg-list .wrap.main,
body.pg-gallery .wrap.main,
body.pg-other .wrap.main {
  background: transparent;
}

body.pg-service .wrap.main,
body.pg-user .wrap.main {
  background: #ffffff;
}
@media (max-width: 640px) {
  body.pg-service .wrap.main,
  body.pg-user .wrap.main {
    padding-left: 0;
    padding-right: 0;
  }
}


.issue-text {
  display: inline-block;
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}


.article-item .item-body { font-weight: 700; }
.article-item .item-body .upd-tag { font-weight: 600; }



body.pg-user .wrap.main {
  background: transparent;
}
@media (max-width: 640px) {
  body.pg-user .wrap.main { padding-left: 0; padding-right: 0; }
}


.article-item {
  background: linear-gradient(180deg, #f0f7ff 0%, #ddebff 100%);
  border: 1px solid #c8102e;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(160, 20, 50, .08);
}
.article-item:hover {
  border-color: #a60f2d;
  background: linear-gradient(180deg, #eaf3ff 0%, #d4e6fd 100%);
}
.article-item .title { font-size: 17px; }
.article-item .item-body .upd-tag { font-weight: 600; }


.link-cell {
  font-size: 17px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.link-cell:hover {
  border-color: #9ca3af;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}


.article-item .title { font-size: 18px; }
.article-title { font-size: 24px; }
@media (max-width: 640px) {
  .article-item .title { font-size: 17px; }
  .article-title { font-size: 21px; }
}



.cat-tag-1 { background: linear-gradient(135deg, #c8102e, #a60f2d); }
.cat-tag-2 { background: linear-gradient(135deg, #22c55e, #15803d); }
.cat-tag-3 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cat-tag-1, .cat-tag-2, .cat-tag-3 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}


.article-item { justify-content: center; text-align: center; }
.article-item .item-body { text-align: center; }
.article-item .title { font-size: 20px; }
@media (max-width: 640px) {
  .article-item .title { font-size: 18px; }
}


.upd-tag { font-weight: 700; }
.upd-yes { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.upd-no  { color: #dc2626; background: #fdecec; border: 1px solid #f3b7b7; }


body.pg-service .wrap.main { background: transparent; }
.service-page { max-width: 560px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; }
.service-head { border: none; margin-bottom: 10px; padding: 6px 4px; }
.chat-panel { border: 1px solid #e5e7eb; }
@media (max-width: 640px) {
  .service-page { max-width: 100%; border-radius: 0; border-left: none; border-right: none; padding: 10px; }
}



body.pg-home .wrap.main,
body.pg-list .wrap.main,
body.pg-gallery .wrap.main,
body.pg-other .wrap.main,
body.pg-service .wrap.main,
body.pg-user .wrap.main {
  background: #ffffff;
}
@media (max-width: 640px) {
  body.pg-service .wrap.main,
  body.pg-user .wrap.main {
    padding-left: 0;
    padding-right: 0;
  }
}


.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo.has-img { padding-left: 0; }
.logo.has-img::before { content: none; }
.logo-text { display: none; }


.nav-balance {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: none;
  border-radius: 16px;
}
.nav-balance:hover { background: rgba(255, 255, 255, .26); color: #ffffff; }
.nav-mini { color: #ffffff; }
.nav-mini-strong {
  color: #ffffff;
  background: linear-gradient(135deg, #d4af37, #c9a227);
  box-shadow: 0 1px 4px rgba(150, 110, 20, .4);
}
