/* ============================================
   时光电影 · 组件样式
   作品卡片 / 风格卡 / 步骤 / 价格 / FAQ / 弹窗
   ============================================ */

/* ============ 作品网格 ============ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 180, 131, 0.35);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
}

.work-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-thumb {
  transform: scale(1.06);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 2;
}

.work-card:hover .work-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-play svg { color: #fff; margin-left: 3px; }

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  z-index: 2;
}

.work-names {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}

.work-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.work-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-meta svg { width: 12px; height: 12px; }

/* ============ 风格网格 ============ */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.style-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.45s var(--ease);
}

.style-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.style-card:hover::before {
  transform: scaleX(1);
}

.style-emoji {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.style-emoji svg { width: 22px; height: 22px; color: var(--accent, var(--gold)); }

.style-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.style-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============ 步骤 ============ */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 34px 26px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.45s var(--ease);
}

.step:hover {
  border-color: rgba(212, 180, 131, 0.3);
  background: var(--bg-elevated);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  color: rgba(212, 180, 131, 0.24);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-dimmer);
}

.how-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 52px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: rgba(212, 180, 131, 0.05);
  border: 1px solid rgba(212, 180, 131, 0.16);
}

.how-note svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.how-note p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ 镜头列表 ============ */
.shot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.shot-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}

.shot-item:hover { border-color: var(--border-strong); }

.shot-idx {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(212, 180, 131, 0.1);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
}

.shot-name {
  font-size: 14px;
  font-weight: 500;
  min-width: 90px;
}

.shot-time {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12.5px;
  color: var(--text-dimmer);
}

.shot-state {
  margin-left: auto;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shot-state.ok { color: #7bc47f; }
.shot-state.doing { color: var(--gold); }
.shot-state.wait { color: var(--text-dimmer); }

.shot-state .spin {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(212, 180, 131, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.shot-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 价格 ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.price-card {
  position: relative;
  padding: 38px 30px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.45s var(--ease);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.price-featured {
  border-color: rgba(212, 180, 131, 0.4);
  background: linear-gradient(180deg, rgba(212, 180, 131, 0.07), var(--bg-card) 40%);
  box-shadow: 0 20px 60px -30px rgba(212, 180, 131, 0.4);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: var(--r-full);
  white-space: nowrap;
}

.price-tag {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.price-num small {
  font-size: 24px;
  vertical-align: super;
  margin-right: 2px;
  color: var(--text-dim);
}

.price-desc {
  font-size: 13px;
  color: var(--text-dimmer);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.price-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(212, 180, 131, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23d4b483' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s;
}

.faq-q:hover { color: var(--gold-bright); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-dim);
  transition: transform 0.4s var(--ease);
}

.faq-icon::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-icon::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-item.open .faq-icon::before {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  padding-right: 40px;
}

/* ============ CTA ============ */
.section-cta { padding: 100px 32px 120px; }

.cta-card {
  position: relative;
  padding: 72px 40px;
  border-radius: var(--r-lg);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 180, 131, 0.1), rgba(201, 134, 134, 0.06));
  border: 1px solid rgba(212, 180, 131, 0.22);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(212, 180, 131, 0.14), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.35;
}

.cta-card p {
  position: relative;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.cta-card .btn { position: relative; }

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: maskIn 0.35s var(--ease);
}

@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: panelIn 0.45s var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: rotate(90deg);
}

/* 步骤条 */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.ws-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dimmer);
  white-space: nowrap;
  transition: color 0.3s;
}

.ws-item span {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.ws-item.active { color: var(--gold-bright); }
.ws-item.active span {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  border-color: transparent;
}

.ws-item.done { color: var(--text-dim); }
.ws-item.done span {
  background: rgba(123, 196, 127, 0.16);
  border-color: rgba(123, 196, 127, 0.4);
  color: #7bc47f;
}

.ws-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 10px;
}

/* 步骤面板 */
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: paneIn 0.4s var(--ease); }

@keyframes paneIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.pane-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pane-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  color: var(--text-dimmer);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--gold-dim);
  background: rgba(212, 180, 131, 0.04);
  color: var(--gold-bright);
}

.upload-zone svg { margin: 0 auto 16px; }

.upload-title {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.upload-hint {
  font-size: 12.5px;
  color: var(--text-dimmer);
}

.upload-hint strong { color: var(--gold-bright); }

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}

.preview-item:hover .preview-remove { opacity: 1; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.form-field .req { color: var(--rose); margin-left: 3px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: all 0.25s;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold-dim);
  background: rgba(212, 180, 131, 0.04);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dimmer);
  font-size: 13px;
}

.field-hint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: var(--text-dimmer);
  pointer-events: none;
  background: var(--bg-elevated);
  padding: 0 4px;
}

.pane-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* 风格选择器 */
.style-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.style-opt {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
}

.style-opt:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.style-opt.selected {
  border-color: var(--gold);
  background: rgba(212, 180, 131, 0.09);
  box-shadow: 0 0 0 1px rgba(212, 180, 131, 0.35);
}

.style-opt h4 {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.style-opt p {
  font-size: 12px;
  color: var(--text-dimmer);
  line-height: 1.55;
}

/* 进度 */
.progress-wrap { margin-bottom: 22px; }

.progress-bar {
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 0.6s var(--ease);
  box-shadow: 0 0 12px rgba(212, 180, 131, 0.6);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

#progressPct {
  font-family: "SF Mono", "Consolas", monospace;
  color: var(--gold-bright);
  font-weight: 600;
}

.shot-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.result-box { margin-top: 24px; }

.result-box video {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .works-grid,
  .styles-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .steps { gap: 16px; }
}

@media (max-width: 700px) {
  .works-grid,
  .styles-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .style-picker { grid-template-columns: 1fr; }
  .modal-panel { padding: 26px 20px 24px; }
  .wizard-steps { gap: 4px; }
  .ws-item { font-size: 11px; }
  .ws-item span { width: 18px; height: 18px; font-size: 10px; }
  .ws-line { margin: 0 4px; }
  .cta-card { padding: 48px 22px; }
  .price-num { font-size: 42px; }
}
