/* ===== 团队文化墙样式 ===== */

/* 首页轮播区 */
.culture-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  margin-bottom: 14px;
}
.cw-empty-carousel {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
  font-size: 13px;
  border-radius: 12px;
}
.cw-track {
  display: flex;
  transition: transform .5s ease;
}
.cw-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.cw-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.cw-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 30px 14px 12px;
  color: #fff;
}
.cw-slide-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-slide-meta {
  font-size: 12px;
  opacity: .85;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cw-slide-stats {
  display: flex;
  gap: 10px;
}
.cw-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.cw-dots .cw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s;
}
.cw-dots .cw-dot.active {
  background: #fff;
}
.cw-entry {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.4);
  color: #fff;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* 瀑布流 */
.cw-grid {
  column-count: 2;
  column-gap: 10px;
  padding: 0;
}
.cw-item {
  break-inside: avoid;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .15s;
}
.cw-item:active {
  transform: scale(.98);
}
.cw-item img {
  width: 100%;
  display: block;
}
.cw-item-info {
  padding: 8px 10px;
}
.cw-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-item-meta {
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cw-likes {
  color: #e53935;
}
.cw-item-stats {
  display: flex;
  gap: 8px;
  color: #999;
}
.cw-item-stats span:first-child {
  color: #e53935;
}
.cw-status {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.cw-status.pending {
  background: #fff3e0;
  color: #e65100;
}
.cw-status.rejected {
  background: #ffebee;
  color: #c62828;
}

/* 瀑布流卡片热评 */
.cw-hot-cmt {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}
.cw-hot-cmt .hot-tag {
  color: #ff6b35;
  font-weight: 600;
  flex-shrink: 0;
}
.cw-hot-cmt .hot-name {
  color: #5a5a5a;
  flex-shrink: 0;
}
.cw-hot-cmt .hot-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cw-hot-cmt .hot-likes {
  color: #e53935;
  flex-shrink: 0;
  font-size: 10px;
}

/* 浮动上传按钮 */
.cw-fab {
  position: fixed;
  bottom: calc(var(--tab-h, 56px) + env(safe-area-inset-bottom, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--blue, #2563EB);
  border-radius: 50%;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37,99,235,.4);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 审核角标 */
.cw-review-badge {
  position: fixed;
  bottom: calc(var(--tab-h, 56px) + env(safe-area-inset-bottom, 0px) + 16px);
  right: 16px;
  background: #ff9800;
  color: #fff;
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 90;
}
.cw-review-count {
  background: #fff;
  color: #ff9800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* ===== 查看大图（弹窗） ===== */
.cw-viewer {
  position: relative;
}
.cw-viewer-top {
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,.5);
  border-radius: 8px 8px 0 0;
}
.cw-viewer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.cw-viewer-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
  touch-action: pan-x pan-y;
  background: #000;
}
.cw-viewer-img-wrap img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 0;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .25s ease;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  cursor: zoom-in;
}
/* 点击全屏提示 */
.cw-zoom-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  padding: 3px 10px;
  pointer-events: none;
  white-space: nowrap;
}
/* 缩放按钮 */
.cw-zoom-btns {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.cw-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cw-zoom-btn:active {
  background: rgba(0,0,0,.7);
}
.cw-viewer-info {
  background: rgba(0,0,0,.7);
  border-radius: 0 0 8px 8px;
  margin: 0;
  padding: 12px 14px;
  color: #fff;
}
.cw-v-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cw-v-meta {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 8px;
}
.cw-v-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cw-v-actions {
  display: flex;
  gap: 10px;
}
.cw-v-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cw-v-btn.liked {
  background: #e53935;
}
.cw-v-btn.cw-v-del {
  background: rgba(244,67,54,.3);
}

/* 评论区 */
.cw-v-cmt-section {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 8px;
}
.cw-v-cmt-title {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 4px;
}
.cw-v-cmt-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.cw-v-cmt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cw-v-cmt:first-child {
  border-top: none;
}
.cw-v-cmt-body {
  flex: 1;
  min-width: 0;
}
.cw-v-cmt-name {
  font-size: 12px;
  color: #8ab4f8;
}
.cw-v-cmt-text {
  font-size: 13px;
  margin-top: 1px;
  word-break: break-word;
}
.cw-v-cmt-like {
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.5);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.cw-v-cmt-like.liked {
  color: #e53935;
  background: rgba(229,57,53,.15);
}
.cw-v-cmt-empty {
  font-size: 12px;
  opacity: .5;
  padding: 6px 0;
}
.cw-v-cmt-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cw-v-cmt-input-row input {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.cw-v-cmt-input-row input::placeholder {
  color: rgba(255,255,255,.5);
}
.cw-v-cmt-input-row button {
  background: var(--blue, #2563EB);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== 上传弹窗 ===== */
.cw-upload-box {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  margin: 20px auto;
  overflow: hidden;
}
.cw-modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cw-modal-head h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.cw-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}
.cw-upload-body {
  padding: 16px;
}
.cw-field {
  margin-bottom: 14px;
}
.cw-field label {
  font-size: 13px;
  color: #555;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}
.cw-field input[type="text"],
.cw-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  resize: none;
}
.cw-field input[type="text"]:focus,
.cw-field textarea:focus {
  border-color: var(--blue, #2563EB);
}
.cw-field textarea {
  height: 60px;
}
.cw-upload-drop {
  border: 2px dashed #ccc;
  border-radius: 10px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 13px;
  gap: 6px;
  transition: border-color .2s;
}
.cw-upload-drop:hover {
  border-color: var(--blue, #2563EB);
  color: var(--blue, #2563EB);
}
.cw-upload-icon {
  font-size: 32px;
}
.cw-upload-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
}
.cw-upload-submit {
  width: 100%;
  background: var(--blue, #2563EB);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.cw-upload-submit:active {
  background: #1d4ed8;
}
.cw-upload-submit:disabled {
  background: #93a3b8;
  cursor: not-allowed;
}
.cw-upload-hint {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== 审核弹窗 ===== */
.cw-review-box {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  margin: 20px auto;
  overflow: hidden;
}
.cw-review-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 16px;
}
.cw-review-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cw-review-item:last-child {
  border-bottom: none;
}
.cw-review-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cw-review-info {
  flex: 1;
  min-width: 0;
}
.cw-r-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-r-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.cw-r-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.cw-review-actions {
  display: flex;
  gap: 6px;
}
.cw-btn-approve {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
}
.cw-btn-reject {
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
}
