/* 海报生成区域 */
#posterBox {
position: fixed;
top: -9999px;
left: -9999px;
width: 800px;
background: var(--poster-box-bg);
padding: 40px;
border-radius: 16px;
color: var(--text-main);
font-family: 'Noto Sans SC', sans-serif;
box-shadow: var(--poster-box-shadow);
}
.poster-header {
text-align: center;
margin-bottom: 30px;
border-bottom: 2px solid var(--poster-header-border);
padding-bottom: 20px;
}
.poster-title {
font-family: 'ZCOOL KuaiLe', cursive;
font-size: 36px;
color: var(--primary);
text-shadow: var(--poster-title-text-shadow);
margin-bottom: 10px;
}
.poster-time {
color: var(--text-dim);
font-size: 14px;
}
.poster-content {
display: flex;
flex-direction: column;
gap: 10px;
}
.poster-rank-item {
display: flex;
align-items: center;
background: var(--poster-item-bg);
padding: 15px;
border-radius: 8px;
border-left: 5px solid transparent;
}
.poster-rank-item.top-1 { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent); }
.poster-rank-item.top-2 { border-left-color: var(--silver); }
.poster-rank-item.top-3 { border-left-color: var(--bronze); }
.poster-rank-num {
width: 40px;
font-size: 20px;
font-weight: bold;
font-family: 'ZCOOL KuaiLe', cursive;
text-align: center;
}
.top-1 .poster-rank-num { color: var(--gold); }
.top-2 .poster-rank-num { color: var(--silver); }
.top-3 .poster-rank-num { color: var(--bronze); }
.poster-rank-name {
flex: 1;
font-size: 18px;
padding-left: 15px;
}
.poster-rank-score {
font-size: 20px;
font-weight: bold;
color: var(--primary);
}
.poster-footer {
margin-top: 30px;
text-align: center;
color: var(--text-dim);
font-size: 12px;
border-top: 1px solid var(--poster-btn-secondary-border);
padding-top: 15px;
}
.poster-total {
text-align: center;
margin-top: 20px;
font-size: 16px;
color: var(--text-dim);
}
.poster-total span {
color: var(--primary);
font-weight: bold;
font-size: 20px;
}

/* 海报编辑页面样式 */
.poster-edit-modal {
display: none;
position: fixed;
z-index: 3000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0);
justify-content: center;
align-items: center;
padding: 20px;
}
.poster-edit-modal.show {
display: flex;
animation: fadeIn 0.3s ease forwards;
}
.poster-edit-modal.hiding {
animation: fadeOut 0.3s ease forwards;
}
.poster-edit-container {
background: var(--poster-edit-panel-bg);
border: 2px solid var(--poster-edit-panel-border);
border-radius: 16px;
width: 90%;
max-width: 1000px;
max-height: 90vh;
display: flex;
flex-direction: column;
box-shadow: 0 0 30px var(--poster-edit-panel-shadow);
animation: slideIn 0.3s ease;
}
.poster-edit-modal.hiding .poster-edit-container {
animation: slideOut 0.3s ease-out forwards;
}
.poster-edit-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 25px;
border-bottom: 1px solid var(--poster-edit-header-border);
}
.poster-edit-title {
font-family: 'ZCOOL KuaiLe', cursive;
color: var(--primary);
font-size: 24px;
margin: 0;
}
.poster-edit-close {
background: none;
border: none;
color: var(--text-dim);
font-size: 28px;
cursor: pointer;
transition: color 0.2s;
line-height: 1;
padding: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.poster-edit-close:hover {
color: var(--primary);
background: rgba(69, 243, 255, 0.1);
}
.poster-edit-body {
flex: 1;
display: flex;
gap: 25px;
padding: 25px;
overflow: hidden;
}
.poster-preview-section {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.poster-preview-label {
color: var(--text-dim);
font-size: 14px;
margin-bottom: 10px;
}
.poster-preview-wrapper {
flex: 1;
background: rgba(0, 0, 0, 0.3);
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
min-height: 300px;
}
#posterPreviewImage {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
transition: filter 0.2s ease;
}
#posterPreviewImage.poster-loading {
filter: blur(3px);
}
.poster-loading-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 300px;
}
.poster-loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(69, 243, 255, 0.2);
border-top-color: #45f3ff;
border-radius: 50%;
animation: poster-spin 0.8s linear infinite;
position: absolute;
z-index: 10;
}
@keyframes poster-spin {
to {
transform: rotate(360deg);
}
}
.poster-settings-section {
width: 300px;
display: flex;
flex-direction: column;
gap: 15px;
overflow-y: auto;
padding-right: 5px;
}
.poster-setting-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.poster-setting-label {
color: var(--text-main);
font-size: 14px;
font-weight: 500;
}
.poster-setting-input {
width: 100%;
padding: 10px 12px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(69, 243, 255, 0.2);
border-radius: 8px;
color: var(--text-main);
font-size: 14px;
font-family: 'Noto Sans SC', sans-serif;
transition: border-color 0.2s;
}
.poster-setting-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: var(--input-focus-shadow);
}
/* 自定义主题选择器 */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--poster-input-bg);
  border: 1px solid var(--poster-input-border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.custom-select-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-dim), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-select-trigger:hover {
  border-color: var(--primary-border-strong);
  box-shadow: 0 0 15px var(--primary-glow);
}

.custom-select-trigger:hover::before {
  opacity: 1;
}

.custom-select-trigger.open {
  border-color: var(--primary-border-highlight);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 20px var(--primary-glow);
}

.custom-select-trigger.open::before {
  opacity: 1;
}

.custom-select-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-theme-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-select-trigger.open .custom-select-theme-icon {
  transform: scale(1.1);
}

.custom-select-text {
  position: relative;
  z-index: 1;
}

.custom-select-arrow {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--settings-panel-bg);
  border: 1px solid var(--primary-border-strong);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px var(--card-shadow);
  backdrop-filter: blur(10px);
}

.custom-select-dropdown.open {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
  animation: dropdownSlideIn 0.3s ease forwards;
}

@keyframes dropdownSlideIn {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--primary-border);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.custom-select-option:last-child {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}

.custom-select-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-option:hover {
  background: var(--primary-dim);
  padding-left: 20px;
}

.custom-select-option:hover::before {
  transform: scaleY(1);
}

.custom-select-option.selected {
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 500;
}

.custom-select-option.selected::before {
  transform: scaleY(1);
}

.custom-select-option-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-select-option:hover .custom-select-option-icon {
  transform: scale(1.15);
}

.custom-select-option-name {
  flex: 1;
  font-size: 14px;
}

.custom-select-option-check {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-select-option.selected .custom-select-option-check {
  opacity: 1;
  transform: scale(1);
}

/* 主题颜色预览条 */
.theme-color-preview {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.theme-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.custom-select-option:hover .theme-color-dot {
  transform: scale(1.2);
}

/* 滚动条美化 */
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* 海报主题选择组样式调整 */
.poster-setting-group .poster-setting-select {
  display: none;
}
.color-picker-wrapper {
display: flex;
align-items: center;
gap: 10px;
}
.poster-color-picker {
width: 50px;
height: 36px;
border: none;
border-radius: 8px;
cursor: pointer;
background: none;
}
.poster-color-picker::-webkit-color-swatch-wrapper {
padding: 0;
}
.poster-color-picker::-webkit-color-swatch {
border: 2px solid rgba(69, 243, 255, 0.3);
border-radius: 6px;
}
.color-value {
color: var(--text-dim);
font-size: 13px;
font-family: monospace;
}
.poster-range-wrapper {
display: flex;
align-items: center;
gap: 12px;
}
.poster-range {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 6px;
background: rgba(0, 0, 0, 0.3);
border-radius: 3px;
outline: none;
}
.poster-range::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: var(--primary);
border-radius: 50%;
cursor: pointer;
box-shadow: var(--poster-range-thumb-shadow);
}
.poster-range::-moz-range-thumb {
width: 18px;
height: 18px;
background: var(--primary);
border-radius: 50%;
cursor: pointer;
border: none;
box-shadow: var(--poster-range-thumb-shadow);
}
.range-value {
color: var(--primary);
font-size: 14px;
font-weight: bold;
min-width: 24px;
text-align: center;
}
.poster-edit-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 20px 25px;
border-top: 1px solid rgba(69, 243, 255, 0.2);
}
.poster-btn {
padding: 12px 24px;
border-radius: 8px;
font-size: 15px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
font-family: 'Noto Sans SC', sans-serif;
border: none;
}
.poster-btn-primary {
background: linear-gradient(135deg, rgba(69, 243, 255, 0.2), rgba(69, 243, 255, 0.1));
color: var(--primary);
border: 1px solid rgba(69, 243, 255, 0.4);
}
.poster-btn-primary:hover {
background: linear-gradient(135deg, rgba(69, 243, 255, 0.3), rgba(69, 243, 255, 0.2));
box-shadow: var(--poster-btn-hover-shadow);
}
.poster-btn-secondary {
background: rgba(255, 255, 255, 0.05);
color: var(--text-dim);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.poster-btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-main);
}
@media (max-width: 768px) {
.poster-edit-body {
flex-direction: column;
}
.poster-settings-section {
width: 100%;
max-height: 300px;
}
}

/* 导出方式选择弹窗样式 */