/* 页面特定样式 - 对齐微信小程序设计 */

/* ===== 登录页 ===== */
.login-page {
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--color-light-bg) 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header .logo {
  font-size: 36px;
  margin-bottom: 8px;
}

.slogan {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.login-form {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form .form-input {
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
}

.btn-login {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-login:active {
  opacity: 0.8;
  transform: scale(0.98);
}

.login-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.login-switch a {
  color: var(--color-primary);
  margin-left: 4px;
}

.login-tip {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--color-text-hint);
}

/* ===== 首页 ===== */
/* 欢迎区域 */
.welcome-section {
  padding: 24px 16px 16px;
  background: var(--color-card-bg);
}

.welcome-title {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.welcome-subtitle {
  font-size: 13px;
  color: var(--color-text-hint);
  margin-top: 4px;
  display: block;
}

/* 创作按钮卡片 */
.action-buttons {
  padding: 0 16px 16px;
  background: var(--color-card-bg);
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-card:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.action-card.primary {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
}

.action-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon {
  font-size: 22px;
}

.action-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.action-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* 区块通用 */
.home-section {
  background: var(--color-card-bg);
  margin-top: 12px;
  padding: 16px 0;
}

.home-section-header {
  display: flex;
  align-items: center;
  padding: 0 16px 12px;
  gap: 8px;
}

.home-section-title {
  font-size: 16px;
  font-weight: bold;
  flex: 1;
}

.home-section-notice {
  font-size: 12px;
  color: var(--color-warning);
}

.home-section-more {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--color-text-hint);
  font-size: 13px;
}

.more-arrow {
  font-size: 14px;
}

/* 最近作品横向滚动 */
.recent-scroll {
  padding: 0 16px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.recent-scroll::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex-shrink: 0;
  width: 130px;
  cursor: pointer;
}

.recent-cover {
  width: 130px;
  height: 173px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--color-light-bg);
  position: relative;
}

.recent-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-bg);
}

.recent-placeholder-icon {
  font-size: 36px;
  opacity: 0.4;
}

.recent-title {
  font-size: 13px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  color: var(--color-text-primary);
}

.recent-count {
  font-size: 11px;
  color: var(--color-text-hint);
  margin-top: 2px;
  display: block;
}

/* 状态标签 */
.status-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #fff;
}

.status-tag.processing {
  background: rgba(255, 165, 0, 0.9);
}

.status-tag.failed {
  background: rgba(244, 67, 54, 0.9);
}

/* 工具网格 */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-light-bg);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.tool-card:active {
  transform: scale(0.97);
}

.tool-icon {
  font-size: 24px;
}

.tool-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ===== 个人中心 ===== */
.profile-user-card {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  padding: 32px 24px;
  text-align: center;
}

.profile-avatar-wrap {
  display: block;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.profile-avatar-edit-tip {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 0 0 40px 40px;
  width: 80px;
  text-align: center;
}

.profile-username {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-top: 12px;
}

.profile-uid-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
}

.profile-uid-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-uid-copy {
  font-size: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-points-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  cursor: pointer;
}

.profile-points-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.profile-points-value {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin: 4px 0;
}

.profile-points-detail {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

/* VIP 横幅 */
.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FF8C00, #FFB800);
  border-radius: var(--border-radius-md);
  cursor: pointer;
}

.vip-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-banner-icon {
  font-size: 26px;
}

.vip-banner-text {
  display: flex;
  flex-direction: column;
}

.vip-banner-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}

.vip-banner-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.vip-banner-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #FF8C00;
  font-size: 13px;
  font-weight: 600;
  border-radius: 14px;
  white-space: nowrap;
}

/* 功能菜单 */
.menu-section {
  margin: 0 16px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.menu-section-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid var(--color-border);
}

.menu-list {
  padding: 12px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  margin: 0 12px 8px;
  background: var(--color-light-bg);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.menu-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.menu-content {
  flex: 1;
  min-width: 0;
}

.menu-content-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.menu-content-desc {
  font-size: 12px;
  color: var(--color-text-hint);
  margin-top: 2px;
}

.menu-arrow {
  font-size: 18px;
  color: var(--color-text-hint);
  margin-left: 8px;
}

/* ===== 作品库 ===== */
.gallery-tab-bar {
  display: flex;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.gallery-tab-item {
  flex: 1;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-hint);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab-item.active {
  color: var(--color-primary);
  font-weight: bold;
}

.gallery-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* 子Tab */
.sub-tab-bar {
  display: flex;
  background: var(--color-card-bg);
  padding: 8px 12px;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
}

.sub-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: var(--border-radius-sm);
  background: var(--color-light-bg);
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab-item.active {
  background: rgba(255, 165, 0, 0.1);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
}

.sub-tab-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.sub-tab-text {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.sub-tab-item.active .sub-tab-text {
  color: var(--color-primary);
  font-weight: bold;
}

/* 作品保留期限提示 */
.work-time-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: #E65100;
  font-weight: 500;
  gap: 8px;
}

/* 作品组卡片 */
.group-card {
  background: var(--color-card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0 12px 12px;
}

.group-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.group-title-section {
  flex: 1;
  min-width: 0;
}

.group-title {
  font-size: 15px;
  font-weight: bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.group-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.group-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  background: var(--color-light-bg);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
}

.group-action-btn:active {
  opacity: 0.7;
  transform: scale(0.95);
}

.group-action-icon {
  font-size: 14px;
}

.group-action-text {
  font-size: 11px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* 缩略图 */
.group-thumbnails {
  display: flex;
  gap: 4px;
  padding: 0 16px 12px;
}

.group-thumbnail-item {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-light-bg);
}

.group-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--color-light-bg);
  font-size: 12px;
  color: var(--color-text-hint);
}

.group-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.group-status-icon {
  font-size: 14px;
}

.group-status-text {
  font-size: 12px;
  font-weight: 600;
}

.group-status-text.success { color: #4CAF50; }
.group-status-text.error { color: #F44336; }
.group-status-text.processing {
  color: #FF9800;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.group-stats {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.group-create-time {
  font-size: 11px;
}

/* 进度条 */
.progress-container {
  padding: 0 16px 12px;
  background: var(--color-light-bg);
}

.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9800, #FF5722);
  border-radius: 2px;
  transition: width 0.5s;
}

/* FAB 浮动按钮 */
.fab {
  position: fixed;
  bottom: calc(80px + var(--safe-area-bottom));
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
  font-size: 34px;
  font-weight: bold;
  z-index: 50;
  cursor: pointer;
  transition: all 0.2s;
}

.fab:active {
  transform: scale(0.9);
}

/* ===== 积分页面 ===== */
.points-balance-card {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  margin: 0 0 12px;
}

.points-balance-label {
  font-size: 12px;
  opacity: 0.8;
}

.points-balance-value {
  font-size: 36px;
  font-weight: bold;
  margin: 4px 0;
}

.points-balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.points-rules-btn {
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.points-list {
  background: var(--color-card-bg);
  margin: 0 16px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.points-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.points-item:last-child {
  border-bottom: none;
}

.points-desc {
  font-size: 14px;
  color: var(--color-text-primary);
}

.points-time {
  font-size: 11px;
  color: var(--color-text-hint);
  margin-top: 2px;
}

.points-change {
  font-size: 16px;
  font-weight: bold;
  text-align: right;
}

.points-change.positive {
  color: #4CAF50;
}

.points-change.negative {
  color: #F44336;
}

.points-after {
  font-size: 11px;
  color: var(--color-text-hint);
  margin-top: 2px;
}

/* ===== 创作表单 ===== */
.create-page .section {
  background: var(--color-card-bg);
  margin: 12px 16px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: none;
}

.create-page .section-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  background: var(--color-light-bg);
}

.create-page .section-icon {
  font-size: 20px;
  margin-right: 8px;
}

.create-page .section-title-text {
  font-size: 16px;
  flex: 1;
}

/* 模型提示 */
.model-hint {
  padding: 12px 16px;
  background: rgba(255, 165, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}
.model-hint-title {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.model-hint-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* 模型类型选择 */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.model-card {
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  background: #f0f0f0;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card.active {
  background: #fff4e6;
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.model-card:active {
  transform: scale(0.95);
}

.model-icon {
  font-size: 28px;
}

.model-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-primary);
  text-align: center;
}

/* 文案输入 */
.create-page .prompt-input {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: none;
  font-size: 14px;
  color: var(--color-text-primary);
  resize: none;
  font-family: inherit;
  line-height: 1.6;
}

.create-page .prompt-input:focus {
  outline: none;
}

.create-page .char-count-row {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.create-page .char-count {
  font-size: 12px;
  color: var(--color-text-hint);
}

.create-page .char-count.warn {
  color: #ff4444;
  font-weight: bold;
}

/* 风格选择网格 */
/* ==================== 画面风格（4×2网格） ==================== */
.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}

.style-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.style-grid-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
}

.style-grid-item:active {
  transform: scale(0.95);
}

.style-grid-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.upload-plus {
  font-size: 40px;
  color: var(--color-primary);
  font-weight: 300;
}

.style-grid-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-grid-name {
  font-size: 11px;
  color: var(--color-text-secondary);
  padding: 4px 2px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 放大镜按钮 */
.magnifier-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(255, 152, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(255, 152, 0, 0.4);
  z-index: 2;
  cursor: pointer;
}

.magnifier-icon {
  font-size: 14px;
  color: #fff;
  line-height: 1;
}

/* 自定义风格标记 */
.custom-style-item {
  border-color: #4CAF50;
}

.custom-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #4CAF50;
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  z-index: 2;
}

.custom-cover-img {
  opacity: 0.9;
}

/* 查看全部 */
.view-all-cover {
  background: #f0f0f0;
}

.view-all-dots {
  font-size: 24px;
  color: #999;
  letter-spacing: 4px;
}

/* 自定义风格图片预览 */
.custom-style-preview {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.custom-img-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
}

.custom-img-thumb {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.custom-img-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.custom-img-delete span {
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

.custom-img-add {
  width: 60px;
  height: 60px;
  border: 2px dashed var(--color-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  cursor: pointer;
}

.custom-img-add span {
  font-size: 24px;
  color: var(--color-primary);
  line-height: 1;
}

/* 图片比例选择 */
.ratio-options {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
}

.ratio-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-light-bg);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ratio-tag.active {
  background: var(--color-primary);
  color: #fff;
}

/* 底部固定按钮 */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + var(--safe-area-bottom));
  background: var(--color-card-bg);
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  max-width: 750px;
  margin: 0 auto;
  z-index: 50;
}

.btn-reset {
  flex: 1;
  padding: 14px;
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.btn-create {
  flex: 2;
  padding: 14px;
  font-size: 16px;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-create:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* ===== 分镜编辑 ===== */
.storyboard-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.nav-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-primary);
}

/* 字幕设置摘要栏 */
.subtitle-settings-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin: 8px 12px 0;
  background: #f8f8f8;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  gap: 8px;
}

.subtitle-settings-bar:active {
  opacity: 0.7;
}

.settings-bar-items {
  display: flex;
  flex: 1;
  gap: 12px;
  overflow-x: auto;
}

.setting-bar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.setting-bar-label {
  font-size: 10px;
  color: var(--color-text-hint);
}

.setting-bar-value {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid #ddd;
}

.settings-bar-arrow {
  color: var(--color-text-hint);
  font-size: 16px;
}

/* 分镜卡片 */
.clip-card {
  background: var(--color-card-bg);
  margin: 8px 12px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.clip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-light-bg);
}

.clip-number {
  font-size: 14px;
  font-weight: bold;
}

.clip-type-label {
  font-size: 11px;
  color: var(--color-primary);
  margin-left: 8px;
  padding: 2px 6px;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 4px;
}

.clip-header-right {
  display: flex;
  gap: 4px;
}

.clip-action-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.clip-action-btn:active {
  opacity: 0.7;
}

.clip-action-btn.insert {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.clip-action-btn.delete {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

.clip-subtitle-area {
  padding: 12px 16px;
}

.clip-subtitle-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.clip-subtitle-label {
  font-size: 13px;
  font-weight: 500;
}

.clip-char-count {
  font-size: 12px;
  color: var(--color-text-hint);
}

.clip-char-count.warn {
  color: #F44336;
  font-weight: bold;
}

/* ===== 作品查看 ===== */
.work-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.work-image-container {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
}

.work-image-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.work-detail {
  padding: 16px;
  background: var(--color-card-bg);
}

.work-subtitle {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.work-action-buttons {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
}

.work-action-buttons .btn {
  flex: 1;
}

/* ===== 视频编辑页 ===== */
.video-edit-page {
  overflow: hidden;
  height: 100vh;
}

.video-config-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: 90px;
}

/* 视频模型选择卡片 */
.video-edit-page .model-list {
  display: flex;
  gap: 10px;
}

.video-model-card {
  flex: 1;
  background: #f8f9fc;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.video-model-card.selected {
  border-color: var(--color-primary);
  background: #fff4e6;
}

.video-model-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-model-card .model-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}

.video-model-card .model-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: block;
}

.video-model-card .model-desc {
  font-size: 11px;
  color: var(--color-text-hint);
  display: block;
  margin-top: 4px;
}

/* 配音角色选择区域 */
.video-edit-page .voice-section {
  padding-bottom: 12px;
}

.video-edit-page .section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.video-edit-page .section-header-row .section-title {
  margin-bottom: 0;
}

.video-edit-page .voice-count {
  font-size: 12px;
  color: var(--color-text-hint);
  background: #f0f0f5;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 搜索框 */
.video-edit-page .voice-search {
  position: relative;
  margin-bottom: 12px;
}

.video-edit-page .voice-search-input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 14px;
  background: #f5f6fa;
  border: 1.5px solid #e8eaf0;
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-text-primary);
  box-sizing: border-box;
  font-family: inherit;
}

.video-edit-page .voice-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.video-edit-page .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  cursor: pointer;
}

/* 场景分类标签 */
.video-edit-page .scene-scroll {
  white-space: nowrap;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.video-edit-page .scene-scroll::-webkit-scrollbar {
  display: none;
}

.video-edit-page .scene-grid-scroll {
  display: inline-grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 6px;
  padding: 0 2px;
}

.video-edit-page .scene-grid-item {
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 11px;
  color: #666;
  background: #f0f1f5;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
}

.video-edit-page .scene-grid-item.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

/* 多维度筛选行 */
.video-edit-page .filter-row {
  margin-bottom: 12px;
  padding: 8px 0;
  border-top: 1px solid #f0f1f5;
  border-bottom: 1px solid #f0f1f5;
}

.video-edit-page .filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.video-edit-page .filter-group:last-child {
  margin-bottom: 0;
}

.video-edit-page .filter-label {
  font-size: 12px;
  color: var(--color-text-hint);
  flex-shrink: 0;
  width: 32px;
}

.video-edit-page .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.video-edit-page .filter-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #666;
  background: #f5f6fa;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.video-edit-page .filter-tag.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

/* 音色卡片网格 */
.video-edit-page .voice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-edit-page .voice-grid-collapsed {
  max-height: 380px;
  overflow: hidden;
}

/* 最近使用 */
.video-edit-page .recent-voices {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e8e8e8;
}

.video-edit-page .recent-label {
  font-size: 12px;
  color: var(--color-text-hint);
  margin-bottom: 8px;
  display: block;
}

.video-edit-page .recent-grid {
  display: flex;
  gap: 8px;
}

.video-edit-page .recent-card {
  flex: 1;
  max-width: calc(25% - 6px);
  background: #f8f9fc;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-edit-page .recent-card.selected {
  border-color: var(--color-primary);
  background: #fff4e6;
}

.video-edit-page .recent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 4px;
  object-fit: cover;
}

.video-edit-page .recent-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8eaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.video-edit-page .recent-name {
  font-size: 10px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.video-edit-page .recent-selected-check {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 10px;
  color: var(--color-primary);
  font-weight: bold;
}

/* 展开/收起按钮 */
.video-edit-page .voice-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-primary);
  background: #fff4e6;
  border-radius: 6px;
  cursor: pointer;
}

.video-edit-page .voice-expand-btn:active {
  background: #ffe0b2;
}

.video-edit-page .expand-icon {
  font-size: 10px;
}

/* 音色卡片 */
.video-edit-page .voice-card {
  width: calc(25% - 6px);
  background: #fafbfd;
  border: 1.5px solid #eee;
  border-radius: 10px;
  padding: 8px 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-edit-page .voice-card.selected {
  border-color: var(--color-primary);
  background: #fff4e6;
}

.video-edit-page .voice-card.playing {
  border-color: #f59e0b;
  background: #fffcf5;
}

.video-edit-page .voice-card.selected.playing {
  border-color: var(--color-primary);
  background: #fff4e6;
}

.video-edit-page .card-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

.video-edit-page .avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.video-edit-page .avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text-hint);
}

.video-edit-page .avatar-playing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-edit-page .avatar-selected-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  border: 1.5px solid #fff;
}

.video-edit-page .voice-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
  margin-bottom: 2px;
  line-height: 1.3;
}

.video-edit-page .card-tags {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 4px;
  flex-wrap: nowrap;
}

.video-edit-page .gender-dot {
  font-size: 9px;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1.5;
}

.video-edit-page .gender-dot.male {
  background: #e8f4fd;
  color: #1976d2;
}

.video-edit-page .gender-dot.female {
  background: #fde8f0;
  color: #d63384;
}

.video-edit-page .gender-dot.neutral {
  background: #f0f0f5;
  color: #666;
}

.video-edit-page .benchmark-dot {
  font-size: 9px;
  padding: 0 4px;
  border-radius: 3px;
  background: #fef3c7;
  color: #b45309;
  line-height: 1.5;
}

/* 迷你试听按钮 */
.video-edit-page .mini-play-btn {
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.video-edit-page .mini-play-btn.is-playing {
  background: #f59e0b;
}

/* 空状态 */
.video-edit-page .voice-empty {
  text-align: center;
  padding: 40px 0;
  color: #bbb;
  font-size: 14px;
}

/* 正在播放条 */
.video-edit-page .playing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 10px;
}

.video-edit-page .playing-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.video-edit-page .playing-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.video-edit-page .playing-name {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-edit-page .playing-stop {
  font-size: 12px;
  color: #f59e0b;
  padding: 4px 12px;
  border: 1px solid #f59e0b;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 作品组预览 */
.video-edit-page .preview-scroll {
  white-space: nowrap;
  padding: 4px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.video-edit-page .preview-scroll::-webkit-scrollbar {
  display: none;
}

.video-edit-page .preview-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-right: 8px;
  display: inline-block;
  object-fit: cover;
  background: var(--color-light-bg);
}

.video-edit-page .preview-count {
  font-size: 12px;
  color: var(--color-text-hint);
  display: block;
  margin-top: 8px;
}

/* 底部固定操作栏 */
.video-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-area-bottom));
  background: var(--color-card-bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 100;
  gap: 12px;
  max-width: 750px;
  margin: 0 auto;
}

.video-bottom-bar .bottom-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-bottom-bar .bottom-label {
  font-size: 13px;
  color: var(--color-text-hint);
  flex-shrink: 0;
}

.video-bottom-bar .bottom-voice-name {
  font-size: 13px;
  color: var(--color-text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-bottom-bar .generate-btn {
  flex-shrink: 0;
  min-width: 120px;
  height: 42px;
  line-height: 42px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.video-bottom-bar .generate-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.video-bottom-bar .generate-btn:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

/* ===== 个人中心底部按钮 ===== */
.profile-bottom-btns {
  padding: 16px;
  background: var(--color-card-bg);
  margin-top: 16px;
}

.profile-bottom-btns button {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.profile-bottom-btns button:last-child {
  margin-bottom: 0;
}

.profile-bottom-btns button:active {
  transform: scale(0.98);
  opacity: 0.8;
}
