/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c8a15c;
  --primary-dark: #a8833f;
  --bg: #4b4b4b;
  --card-bg: #565656;
  --border: #6a6a6a;
  --text: #f0f0f0;
  --text-light: #b0b0b0;
  --radius: 12px;
  --tabbar-height: 56px;
  --topbar-height: 50px;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

#app {
  min-height: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

.page {
  display: none;
  min-height: 100%;
}
.page.active {
  display: block;
}

/* ============ 登录页 ============ */
#login-page {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  display: none;
  align-items: center;
  justify-content: center;
}
#login-page.active {
  display: flex;
}
.login-box {
  width: 85%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}
.login-logo {
  font-size: 60px;
  margin-bottom: 16px;
}
.login-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.login-sub {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 40px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-input {
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.login-input::placeholder {
  color: #999;
}
.login-btn {
  margin-top: 8px;
}
.login-tip {
  margin-top: 24px;
  font-size: 12px;
  color: #888;
}

/* ============ 通用按钮 ============ */
.btn-primary {
  background: linear-gradient(180deg, #e8c98a 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  padding: 14px 0;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:active {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-ghost {
  background: linear-gradient(180deg, #6a6a6a 0%, #565656 100%);
  color: #f0f0f0;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-ghost:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-danger {
  background: linear-gradient(180deg, #e85a5a 0%, #d43c3c 50%, #b32b2b 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-danger:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ============ 顶部栏 ============ */
.topbar {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  height: var(--topbar-height);
  background: var(--bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 100;
}
.topbar-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c8a15c;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.5), 0 3px 8px rgba(0,0,0,0.3);
}
.topbar-actions {
  position: absolute;
  right: 16px;
}
.topbar-user {
  font-size: 13px;
  color: var(--primary);
}

/* ============ 筛选栏 ============ */
.filter-bar {
  position: static;
  top: auto;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 8px 0;
}
.filter-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 12px;
  gap: 8px;
}
.filter-scroll + .filter-scroll {
  margin-top: 6px;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}
.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #6a6a6a 0%, #565656 100%);
  color: var(--filter-color, #d0d0d0);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 2px 3px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.filter-tag.active {
  background: linear-gradient(180deg, #e8c98a 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow: 0 3px 5px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============ 内容区 ============ */
.content {
  padding: 12px 12px calc(var(--tabbar-height) + 20px);
  min-height: 100%;
}

/* 瀑布流 */
.waterfall {
  display: flex;
  gap: 10px;
}
.waterfall-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
}
.work-img {
  width: 100%;
  display: block;
  background: var(--border);
}
.work-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.work-info {
  padding: 10px 12px;
}
.work-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c8a15c;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.5), 0 3px 8px rgba(0,0,0,0.3);
}
.work-meta {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.work-comment {
  margin-top: 6px;
  font-size: 12px;
  color: #b0b0b0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.comment-actions {
  margin-top: 4px;
  display: flex;
  gap: 12px;
}
.comment-action-btn {
  font-size: 12px;
  color: #c8a15c;
  cursor: pointer;
}
.comment-action-btn.danger {
  color: #d43c3c;
}
.comment-form {
  margin-top: 8px;
}
.comment-field-item {
  margin-bottom: 10px;
}
.comment-field-item .form-label {
  font-size: 13px;
  margin-bottom: 4px;
}
.comment-field {
  width: 100%;
}

/* 选片图片预览 */
.sel-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sel-img-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}
.sel-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sel-img-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  cursor: pointer;
}
.work-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(200, 161, 92, 0.12);
  color: var(--primary);
}
.gold-badge {
  background: linear-gradient(135deg, #f7d774, #e6b422);
  color: #6b4e00;
  font-weight: 700;
  border: 1px solid #d4a017;
  box-shadow: 0 1px 3px rgba(212, 160, 23, 0.4);
}
.work-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-author {
  font-size: 12px;
  color: var(--text-light);
}
.work-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}

/* 空状态 */
.empty {
  text-align: center;
  color: #bbb;
  padding: 80px 0;
  font-size: 14px;
}
.loading {
  text-align: center;
  color: #bbb;
  padding: 20px 0;
  font-size: 13px;
}

/* ============ 首页模块样式 ============ */
.banner-module {
  width: 100%;
  height: 180px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.notice-module {
  background: #4a4030;
  color: #ad6800;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 13px;
  border: 1px solid #ffe7ba;
}
.notice-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.notice-label {
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.notice-wrap {
  flex: 1;
  overflow: hidden;
}
.notice-text {
  display: inline-block;
  white-space: nowrap;
  color: #ffe7ba;
  animation: notice-scroll 20s linear infinite;
  padding-left: 100%;
}
@keyframes notice-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.work-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-card-list {
  width: 100%;
}

/* 三列网格布局 */
.work-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.work-card-grid3 {
  width: 100%;
}
.work-card-grid3 .work-info {
  padding: 6px 8px;
}
.work-card-grid3 .work-title {
  font-size: 12px;
}

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  height: var(--tabbar-height);
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #999;
  cursor: pointer;
}
.tab.active {
  color: var(--primary);
}
.tab-icon {
  font-size: 20px;
}

/* ============ 发布页 ============ */
.publish-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
}
.form-item {
  margin-bottom: 20px;
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.required {
  color: #e64340;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.form-textarea {
  height: 80px;
  resize: none;
}
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f2f2f2;
  color: #b0b0b0;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.attachment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.attachment-item {
  position: relative;
  width: 100px;
  height: 100px;
}
.attachment-thumb {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--border);
}
.attachment-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  cursor: pointer;
}
.attachment-add {
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
  font-size: 12px;
}
.attachment-add .add-icon {
  font-size: 28px;
}
.form-hint {
  font-size: 12px;
  color: #bbb;
  margin-top: 8px;
}

/* ============ 详情页（弹窗） ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.modal-content {
  flex: 1;
  overflow-y: auto;
  background: var(--card-bg);
  margin: 40px 12px 12px;
  border-radius: 12px;
}
.modal-swiper {
  width: 100%;
  height: 300px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.modal-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.modal-media.zoomed {
  object-fit: fill;
  cursor: zoom-out;
}

/* ===== 全屏图片预览 ===== */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.fs-back {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
  z-index: 1002;
  backdrop-filter: blur(4px);
}
.fs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1002;
  user-select: none;
}
.fs-arrow-left {
  left: 12px;
}
.fs-arrow-right {
  right: 12px;
}
.fs-indicator {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 14px;
  z-index: 1002;
}
.fs-comment-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1003;
}
.fs-comment-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}
.fs-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.fs-comment-send {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #c8a15c;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  z-index: 201;
}
.modal-back {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  z-index: 201;
  line-height: 20px;
}
.modal-annotate {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(200, 161, 92, 0.92);
  color: #fff;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 201;
  line-height: 20px;
}
.swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-size: 22px;
  cursor: pointer;
  z-index: 200;
  user-select: none;
}
.swiper-arrow-left {
  left: 10px;
}
.swiper-arrow-right {
  right: 10px;
}
.swiper-indicator {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 200;
}
.modal-body {
  padding: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
}
.modal-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.modal-author {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}
.modal-desc {
  margin-top: 12px;
  font-size: 14px;
  color: #b0b0b0;
}
.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.modal-action-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 14px;
}
.modal-action-btn.liked {
  color: #e64340;
}
.comment-section {
  margin-top: 20px;
}
.comment-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-author {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.comment-content {
  margin-top: 4px;
  font-size: 14px;
}
.comment-input-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.comment-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}
.comment-send {
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* 轻量提示 toast */
#toast-tip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#toast-tip.show {
  opacity: 1;
}

/* ============ 我的页 ============ */
.profile-card {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius);
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}
.avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.profile-name {
  font-size: 18px;
  font-weight: 600;
}
.profile-role {
  font-size: 12px;
  color: var(--primary);
  margin-top: 4px;
}
.menu-list {
  margin-top: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-icon {
  font-size: 22px;
  margin-right: 12px;
}
.menu-body {
  flex: 1;
}
.menu-title {
  font-size: 15px;
}
.menu-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.menu-arrow {
  color: #ccc;
  font-size: 20px;
}

/* ============ 管理后台 ============ */
.admin-tabs {
  display: flex;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.admin-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #b0b0b0;
  cursor: pointer;
}
.admin-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.admin-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.module-btn {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  margin-left: 12px;
}
.module-btn.danger {
  color: #e64340;
}
.module-add-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.module-add-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: #f7f3ea;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  border: 1px dashed var(--primary);
}
.field-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.field-label-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.field-required {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #999;
  cursor: pointer;
}
.field-required.on {
  background: var(--primary);
  color: #fff;
}

/* ============ 数据看板 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.stat-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.stat-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.store-stat-row {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.store-stat-name {
  font-size: 14px;
  font-weight: 600;
}
.store-stat-detail {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============ 表单/选片字段 ============ */
.selection-fields {
  margin-top: 4px;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #b0b0b0;
  cursor: pointer;
  margin-right: 12px;
}
.rating-group {
  display: flex;
  gap: 4px;
}
.rating-star {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  user-select: none;
}
.rating-star.active {
  color: #f5a623;
}
/* 标准化/创意评分 slider */
.score-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary, #c8a15c);
  cursor: pointer;
}
.score-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary, #c8a15c);
  cursor: pointer;
  border: none;
}
.score-value {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary, #c8a15c);
}
/* 等级栏 */
.grade-bar {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.grade-tag {
  padding: 4px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 13px;
  color: #bbb;
  transition: all 0.2s;
  user-select: none;
}
.grade-tag.active {
  font-weight: 600;
}
/* 详情页评分区块 */
.rate-box {
  margin-top: 16px;
  padding: 14px;
  background: var(--card-bg);
  border-radius: 10px;
}
.rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.rate-label {
  font-size: 13px;
  color: #b0b0b0;
  width: 70px;
  flex-shrink: 0;
}
/* 授权点评人员列表 */
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-name {
  font-size: 15px;
  font-weight: 600;
}
.user-role {
  font-size: 12px;
  color: #999;
  padding: 2px 8px;
  background: #f2f2f2;
  border-radius: 10px;
}
.user-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b0b0b0;
  cursor: pointer;
}
.user-toggle input {
  width: 18px;
  height: 18px;
}
.user-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b0b0b0;
}
.user-store select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--card-bg);
  color: var(--text);
}
.form-module-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.form-module-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* 字段选项编辑 */
.field-type-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--card-bg);
  color: #b0b0b0;
  flex-shrink: 0;
}
.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #f7f3ea;
  color: var(--primary);
}
.option-del {
  cursor: pointer;
  color: #999;
  font-weight: 700;
}
.option-input {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  width: 120px;
  outline: none;
}

/* 作品详情里的选片数据展示 */
.selection-box {
  margin-top: 12px;
  background: #faf8f3;
  border-radius: 8px;
  padding: 12px;
}
.selection-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.selection-row {
  display: flex;
  padding: 4px 0;
  font-size: 13px;
}
.selection-key {
  color: #999;
  width: 90px;
  flex-shrink: 0;
}
.selection-val {
  color: #f0f0f0;
  flex: 1;
}
.selection-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.selection-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
}

/* ============ 图片保护（禁止下载） ============ */
img {
  -webkit-touch-callout: none; /* 禁止 iOS 长按弹出保存 */
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* ============ 推荐作品专栏 ============ */
.rec-section {
  margin: 12px 0 16px;
}
.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.rec-title {
  font-size: 16px;
  font-weight: 700;
  color: #6b4e00;
}
.rec-more {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}
.rec-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rec-scroll::-webkit-scrollbar {
  display: none;
}
.rec-scroll-auto {
  overflow: hidden;
  animation: rec-marquee 30s linear infinite;
}
.rec-scroll-auto:hover {
  animation-play-state: paused;
}
@keyframes rec-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.rec-card {
  flex-shrink: 0;
  width: 110px;
  cursor: pointer;
}
.rec-img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.rec-name {
  font-size: 12px;
  color: #b0b0b0;
  margin-top: 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f7f5f2;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.member-name {
  font-size: 13px;
  font-weight: 600;
  color: #3a3733;
}
.member-role {
  font-size: 11px;
  color: #b8860b;
  background: #fff3cd;
  padding: 1px 8px;
  border-radius: 10px;
}

/* ============ 滚动公告栏 ============ */
.ticker-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff0f0, #ffe0e0);
  border: 1px solid #f5a0a0;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0 4px;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e64340;
  margin-right: 12px;
  white-space: nowrap;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
}
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: #e64340;
  font-weight: 600;
  animation: ticker-scroll 20s linear infinite;
  padding-left: 100%;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============ 作品卡片发布时间 ============ */
.work-time {
  font-size: 11px;
  color: #b0b0b0;
  margin-right: 8px;
}

/* ============ 点评公示板 ============ */
.board-section {
  margin: 0 0 12px;
}
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}
.board-title {
  font-size: 16px;
  font-weight: 700;
  color: #3a3733;
}
.board-sub {
  font-size: 11px;
  color: #b0b0b0;
}
.board-notice {
  font-size: 12px;
  color: #8a6d3b;
  background: #fff8e6;
  border: 1px dashed #e6d3a3;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.board-list::-webkit-scrollbar {
  width: 4px;
}
.board-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}
.board-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #faf8f5;
  border: 1px solid #eee;
  border-radius: 10px;
}
.board-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.board-body {
  flex: 1;
  min-width: 0;
}
.board-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.board-author {
  font-size: 13px;
  font-weight: 600;
  color: #b8860b;
}
.board-tag {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 1px 8px;
  border-radius: 10px;
}
.board-time {
  font-size: 11px;
  color: #b0b0b0;
  margin-left: auto;
}
.board-content {
  font-size: 13px;
  color: #3a3733;
  margin-top: 6px;
  line-height: 1.5;
  word-break: break-all;
}
.board-edit-hint {
  font-size: 11px;
  color: #c8a15c;
  margin-top: 6px;
}
.board-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.board-action-btn {
  font-size: 12px;
  color: #c8a15c;
  cursor: pointer;
}
.board-action-btn.danger {
  color: #e64340;
}
.board-more {
  font-size: 11px;
  color: #b0b0b0;
  text-align: center;
  padding: 8px 0 4px;
}
.board-item[onclick] {
  cursor: pointer;
}

/* ============ 图片批注画布 ============ */
.annotate-overlay {
  flex-direction: column;
  background: #000;
}
.annotate-stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.annotate-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.annotate-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: crosshair;
}
.annotate-toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1003;
}
.annotate-tool {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.annotate-tool.active {
  background: #c8a15c;
  font-weight: 600;
}
.annotate-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.75);
  z-index: 1003;
}
.annotate-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.annotate-nav-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 20px;
  cursor: pointer;
}
.annotate-indicator {
  color: #fff;
  font-size: 13px;
}
.annotate-actions {
  display: flex;
  gap: 10px;
}
.annotate-cancel {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
.annotate-publish {
  padding: 10px 18px;
  background: #c8a15c;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
